/* =========================================
   COMISI — UI COMPONENTS
   ========================================= */

/* === CARDS === */
.role-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.role-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-pale), transparent);
    opacity: 0;
    transition: opacity 0.22s;
}
.role-card:hover, .role-card:active {
    border-color: var(--gold-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.role-card:hover::before { opacity: 1; }
.role-card:active { transform: scale(0.98); }

.role-card .card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.role-card .card-sub {
    font-size: 0.78rem;
    color: var(--text-sub);
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}
.history-card:hover { box-shadow: var(--shadow-sm); }

/* === ICON SQUARE === */
.icon-square {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--gold-pale);
    color: var(--gold-deep);
}

/* === BUTTONS === */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-warm), var(--gold-main));
    color: var(--text-on-gold);
    border: none;
    padding: 14px 24px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.3px;
}
.btn-gold:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(200,155,60,0.38);
}
.btn-gold:active { transform: scale(0.98); filter: brightness(0.97); }

.btn-gold-outline {
    background: transparent;
    color: var(--gold-deep);
    border: 1.5px solid var(--gold-main);
    padding: 12px 24px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-gold-outline:hover {
    background: var(--gold-pale);
    box-shadow: var(--shadow-gold);
}

/* === ICON BUTTON === */
.btn-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.btn-icon:hover { transform: scale(1.08); }
.btn-icon:active { transform: scale(0.95); }

/* === INPUTS === */
.modern-input {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--r-pill);
    padding: 13px 20px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modern-input:focus {
    border-color: var(--gold-main);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.modern-input::placeholder { color: var(--text-hint); }

/* Bootstrap form override */
.form-control:focus, .form-select:focus {
    border-color: var(--gold-main) !important;
    box-shadow: 0 0 0 3px var(--gold-glow) !important;
}

/* === MODALS === */
.modal-content {
    background-color: var(--bg-modal);
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-xl) !important;
    overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--border-soft); }
.modal-footer { border-top: 1px solid var(--border-soft); }

/* Payment Options */
.payment-opt {
    padding: 15px 18px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border-soft);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
}
.payment-opt:hover { border-color: var(--border-warm); background: var(--gold-pale); }
.payment-opt.active {
    border-color: var(--gold-main) !important;
    background: var(--gold-pale) !important;
    box-shadow: inset 0 0 0 1px var(--gold-light);
}

/* === SPLASH SCREEN === */
#splashScreen {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #FFF9EE 0%, #FDF2D8 60%, #F5E8C0 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, visibility 0.7s;
}
#splashScreen.hide-splash {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

/* Neng SVG Avatar */
.neng-avatar-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
}
.neng-halo {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,155,60,0.3) 0%, transparent 70%);
    animation: haloGlow 3s ease-in-out infinite;
}
.neng-avatar-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: nengFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 12px 24px rgba(200,155,60,0.35));
}
.splash-dot-loader {
    display: flex; gap: 6px; margin-top: 20px;
}
.splash-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold-warm);
    animation: blink 1.2s ease-in-out infinite;
}
.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

/* === BADGE / TAG === */
.skill-tag {
    background: var(--gold-pale);
    color: var(--gold-deep);
    border: 1px solid var(--gold-light);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
    margin-bottom: 5px;
    animation: fadeIn 0.25s ease-out;
}
.skill-tag i { cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.skill-tag i:hover { opacity: 1; }

/* Upload Box */
.upload-box {
    border: 2px dashed var(--border-warm);
    border-radius: var(--r-md);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-input);
    transition: all 0.2s ease;
    position: relative;
}
.upload-box:hover { border-color: var(--gold-main); background: var(--gold-pale); }
.upload-box.has-file { border-color: var(--success); background: rgba(40,160,99,0.06); border-style: solid; }
.upload-icon { font-size: 1.6rem; color: var(--text-hint); margin-bottom: 6px; }

/* === STATUS INDICATORS === */
.status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot.green  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.yellow { background: #E8A020; box-shadow: 0 0 6px #E8A020; animation: blink 1.2s ease-in-out infinite; }
.status-dot.red    { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* Star Rating */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; cursor: pointer; color: var(--border-warm); transition: color 0.15s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--gold-warm); }
/* --- KUNCI AVATAR IMAGE --- */
.avatar-img-locked {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mencegah gambar gepeng */
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}
.ctx-avatar-box { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--gold-light); flex-shrink: 0; }
.brand-icon-box { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--gold-warm), var(--gold-main)); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-gold); }
/* --- LUXURY DROPDOWN MENU --- */
.lux-dropdown-menu {
    width: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.lux-wallet-card {
    background: linear-gradient(135deg, #161108 0%, #2A1F0D 100%);
    border: 1px solid rgba(200, 155, 60, 0.2);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}
.lux-wallet-card::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.lux-menu-item {
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-bottom: 1px solid var(--border-soft);
}
.lux-menu-item:last-child { border-bottom: none; }
.lux-menu-item:hover {
    background: var(--bg-input) !important;
    padding-left: 28px !important;
}
.lux-menu-item i { transition: color 0.25s; }
.lux-menu-item:hover i { color: var(--gold-deep) !important; }