* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #050302;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow: hidden;
    padding: 0;
    margin: 0;
    color: #f5e6d3;
}

.container {
    padding: 20px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

@media (max-width: 768px) {

    html,
    body {
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body {
        display: block !important;
        background: #0a0604 !important;
    }

    #login-page,
    #app-wrapper.logged-in {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        height: auto !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow-y: auto !important;
    }

    .bottom-nav {
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    .modal-overlay,
    #custom-alert-modal {
        max-width: 100% !important;
    }
}

@media (min-width: 769px) {
    body {
        background: #050302;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: 100vh;
        overflow: hidden;
    }

    #login-page,
    #app-wrapper.logged-in {
        width: 100%;
        max-width: 480px;
        height: 100dvh;
        margin: 0 auto;
        background: #0a0604;
        border-radius: 16px;
        border: 2px solid rgba(201, 162, 108, 0.35);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(201, 162, 108, 0.15);
    }

    #login-page,
    #app-wrapper.logged-in {
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #login-page::-webkit-scrollbar,
    #app-wrapper.logged-in::-webkit-scrollbar {
        display: none;
    }
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    padding: 0;
    background-color: #0a0604;
}

#login-page.login-container {
    padding: 0 !important;
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background-color: #0a0604 !important;
    height: 100% !important;
    width: 100% !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.logo-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 15px;
    flex-shrink: 0;
    z-index: 5;
    position: relative;
}

.app-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid #c9a26c;
    box-shadow: 0 4px 15px rgba(201, 162, 108, 0.4);
    background-color: #1a1310;
}

.app-brand-text {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #f5e6d3;
}

.login-hero-banner {
    width: 100%;
    flex: 1;
    min-height: 0;
    height: auto;
    background-image: linear-gradient(180deg, #5c3a1e 0%, #0a0604 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.top-lang-badge {
    display: none !important;
}

.login-card-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 10px auto 20px auto;
    padding: 0 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

#login-form,
#register-form,
#forgot-form {
    background-color: #1a1310 !important;
    border: 1px solid rgba(201, 162, 108, 0.25);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
    width: 100% !important;
    max-width: 440px !important;
    display: flex;
    flex-direction: column;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #1a1310;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(201, 162, 108, 0.25);
    border-radius: 0 0 16px 16px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #c4b49a;
    font-size: 12px;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #c9a26c;
    font-weight: 600;
}

.wallet-card {
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.35);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f5e6d3;
}

.wallet-pill {
    background: #241a14;
    border: 1px solid rgba(201, 162, 108, 0.2);
    border-radius: 30px;
    padding: 15px;
    text-align: center;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 5px;
}

.wallet-pill h4 {
    font-size: 13px;
    color: #c4b49a;
    font-weight: 400;
    margin-bottom: 5px;
}

.wallet-pill h3 {
    color: #c9a26c;
    font-size: 20px;
}

.icon-row {
    display: flex;
    justify-content: space-between;
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.2);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #c4b49a;
    font-size: 12px;
    cursor: pointer;
}

.icon-btn i {
    width: 50px;
    height: 50px;
    background: #241a14;
    border: 1px solid #5c3a1e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a26c;
    font-size: 18px;
    margin-bottom: 8px;
}

.icon-btn.wide {
    background: #241a14;
    border: 1px solid #5c3a1e;
    padding: 15px;
    border-radius: 30px;
    flex-direction: row;
    width: 48%;
    justify-content: center;
}

.icon-btn.wide i {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    margin-right: 10px;
    color: #c9a26c;
    font-size: 24px;
    margin-bottom: 0;
}

/* ========================================= */
/* FEATURE CARDS (Spin / Mystery / Leaderboard) */
/* ========================================= */

.feature-card {
    background: linear-gradient(135deg, #1a1310 0%, #241a14 100%);
    border: 1px solid rgba(201, 162, 108, 0.25);
    border-radius: 16px;
    padding: 15px 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c9a26c, #8B5A2B, #c9a26c);
}

.spin-card::before {
    background: linear-gradient(90deg, #f6c344, #ff8c00, #f6c344);
}

.mystery-card::before {
    background: linear-gradient(90deg, #ff4d8a, #c9a26c, #ff4d8a);
}

.leaderboard-card::before {
    background: linear-gradient(90deg, #f6c344, #c0c0c0, #cd7f32, #f6c344);
}

.feature-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.feature-title h4 {
    color: #f5e6d3;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.feature-subtitle {
    color: #c4b49a;
    font-size: 11px;
    line-height: 1.4;
    display: block;
}

.spin-token-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0;
    padding: 10px;
    background: rgba(201, 162, 108, 0.06);
    border: 1px solid rgba(201, 162, 108, 0.2);
    border-radius: 10px;
    flex-wrap: wrap;
}

.spin-token-label {
    color: #c4b49a;
    font-size: 12px;
}

.spin-token-number {
    color: #c9a26c;
    font-size: 22px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
    text-shadow: 0 0 10px rgba(201, 162, 108, 0.6);
}

.spin-token-number.mystery-number {
    color: #ff4d8a;
    text-shadow: 0 0 10px rgba(255, 77, 138, 0.5);
}

.feature-action-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ========================================= */
/* LUCKY SPIN — YELLOW CTA (matches reference) */
/* ========================================= */
.spin-btn {
    background: linear-gradient(180deg, #FFD84D 0%, #F4C430 55%, #E8A317 100%);
    color: #1a1310;
    box-shadow:
        0 6px 0 #B98212,
        0 8px 20px rgba(244, 196, 48, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    border: 2px solid #B98212;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 18px 20px;
    font-size: 17px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 #B98212,
        0 10px 24px rgba(244, 196, 48, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #B98212,
        0 4px 12px rgba(244, 196, 48, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mystery-btn {
    background: linear-gradient(135deg, #ff4d8a, #C2185B);
    color: #f5e6d3;
    box-shadow: 0 4px 15px rgba(255, 77, 138, 0.4);
}

.mystery-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 138, 0.6);
}

.feature-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.spin-win-display,
.mystery-win-display {
    margin-top: 12px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.2), rgba(201, 162, 108, 0.1));
    border: 1px solid #38a169;
    border-radius: 12px;
    text-align: center;
    animation: winPopIn 0.5s ease-out;
}

@keyframes winPopIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.spin-win-label,
.mystery-win-label {
    color: #c4b49a;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-win-amount,
.mystery-win-amount {
    color: #38a169;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(56, 161, 105, 0.5);
}

.mystery-win-prize {
    color: #f6c344;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mystery-history-section {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 162, 108, 0.15);
}

.mystery-history-title {
    color: #c4b49a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mystery-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 12px;
    border-left: 2px solid #ff4d8a;
}

.leaderboard-prizes-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
}

.leaderboard-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(201, 162, 108, 0.08);
}

.leaderboard-refresh-btn {
    width: 100%;
    margin-top: 12px;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid rgba(201, 162, 108, 0.35);
    border-radius: 8px;
    color: #c9a26c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.leaderboard-refresh-btn:hover {
    background: rgba(201, 162, 108, 0.08);
    border-color: #c9a26c;
}

/* ========================================= */
/* SPIN WHEEL — matches uploaded reference   */
/* ========================================= */
.spin-wheel-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 22px auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 22px;
    padding-bottom: 22px;
}

.spin-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 32px solid #F4C430;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.65));
    z-index: 10;
    pointer-events: none;
}

.spin-pointer::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -18px;
    width: 36px;
    height: 6px;
    background: linear-gradient(180deg, #FFD84D, #E8A317);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.spin-wheel-outer {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 9px;
    box-shadow:
        0 0 0 2px #FFFFFF,
        0 0 0 4px rgba(255, 255, 255, 0.55),
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(244, 196, 48, 0.15);
    position: relative;
}

#spin-wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    overflow: visible;
}

#spin-wheel-group {
    transform-origin: 200px 200px;
    transform-box: fill-box;
    transform-origin: center center;
    transition: transform 4.5s cubic-bezier(0.15, 0.85, 0.25, 1);
    will-change: transform;
}

#spin-wheel-group.spinning {
    transition: transform 4.5s cubic-bezier(0.15, 0.85, 0.25, 1);
}

@media (max-width: 400px) {
    .spin-wheel-wrap {
        max-width: 260px;
    }

    .spin-pointer {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 28px;
    }

    .spin-pointer::after {
        left: -15px;
        width: 30px;
    }
}

/* Legacy spin wheel animation (kept harmless for safety) */
@keyframes spinRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1440deg);
    }
}

#spin-wheel.spinning,
.spinning {
    animation: spinRotate 2.5s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

/* Mystery box opening animation */
@keyframes mysteryShake {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    15% {
        transform: rotate(-8deg) scale(1.05);
    }

    30% {
        transform: rotate(8deg) scale(1.05);
    }

    45% {
        transform: rotate(-6deg) scale(1.08);
    }

    60% {
        transform: rotate(6deg) scale(1.08);
    }

    75% {
        transform: rotate(-3deg) scale(1.1);
    }

    90% {
        transform: rotate(3deg) scale(1.12);
    }
}

.opening {
    animation: mysteryShake 2s ease-in-out;
}

/* VIP tier badge */
#vip-tier-badge {
    transition: all 0.3s ease;
}

/* VIP tier admin inputs */
.vip-tier-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #241a14;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #c9a26c;
}

.vip-tier-label {
    font-weight: 700;
    color: #c9a26c;
    font-size: 13px;
    margin-bottom: 4px;
}

.vip-tier-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vip-tier-field span {
    font-size: 11px;
    color: #c4b49a;
    font-weight: 500;
}

.vip-tier-field input {
    padding: 8px 10px;
    border: 1px solid #5c3a1e;
    border-radius: 6px;
    background: #1a1310;
    color: #f5e6d3;
    font-size: 13px;
}

/* ========================================= */
/* OVAL / ELLIPTICAL PRODUCT CARDS           */
/* Large border-radius creates a pill/oval   */
/* silhouette. Every sub-element (header,    */
/* image box, rows, button row) inherits     */
/* soft rounded corners so the card reads    */
/* as one smooth ellipse.                    */
/* ========================================= */

.product-card-wrapper {
    position: relative;
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 18px rgba(201, 162, 108, 0.18));
}

.product-card {
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.35);
    border-radius: 60px;
    overflow: hidden;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(201, 162, 108, 0.05);
}

.prod-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px 14px 30px;
    background: #1a1310;
    border-bottom: 1px solid rgba(201, 162, 108, 0.25);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.prod-name {
    font-size: 16px;
    font-weight: 700;
    color: #f5e6d3;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}

.prod-duration-badge {
    background: #c9a26c;
    color: #1a1310;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    margin-left: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.4);
}

.prod-content {
    display: flex;
    align-items: stretch;
    padding: 0 8px;
}

.prod-img-box {
    width: 45%;
    background: #0a0604;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-right: 1px solid rgba(201, 162, 108, 0.25);
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
}

.prod-img-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 100px;
    border-radius: 20px;
}

.prod-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 8px;
}

.prod-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(201, 162, 108, 0.12);
    border-radius: 12px;
}

.prod-row:last-child {
    border-bottom: none;
}

.prod-row .label {
    color: #f5e6d3;
    font-size: 13px;
}

.prod-row .value {
    font-size: 13px;
    font-weight: 600;
}

.value.cyan {
    color: #c9a26c;
}

.value.green {
    color: #38a169;
}

.value.yellow {
    color: #f6c344;
}

.btn-invest-row {
    display: flex;
    justify-content: center;
    padding: 14px 30px 22px 30px;
    background: #1a1310;
    border-top: 1px solid rgba(201, 162, 108, 0.25);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.btn-invest {
    background: linear-gradient(135deg, #c9a26c, #8B5A2B);
    color: #1a1310;
    border: none;
    padding: 12px 45px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 162, 108, 0.4);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-invest:hover {
    background: linear-gradient(135deg, #deb887, #a06a35);
    box-shadow: 0 6px 20px rgba(201, 162, 108, 0.7);
    transform: translateY(-1px);
}

.btn-presale {
    background: linear-gradient(135deg, #c9a26c, #8B5A2B);
    color: #1a1310;
    border: none;
    padding: 12px 45px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
    box-shadow: 0 4px 15px rgba(201, 162, 108, 0.4);
}

.card-locked {
    filter: blur(1px) brightness(0.85);
    opacity: 0.8;
    pointer-events: none;
    background: #1a1310 !important;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(10, 6, 4, 0.8);
    backdrop-filter: blur(3px);
    border-radius: 60px;
    pointer-events: auto;
}

.lock-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 108, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.lock-icon i {
    font-size: 20px;
    color: #c9a26c;
}

.presale-badge {
    background: #c9a26c;
    color: #1a1310;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.4);
}

.team-header {
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.35);
    border-radius: 16px;
    padding: 20px;
    color: #f5e6d3;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.team-code {
    background: rgba(201, 162, 108, 0.1);
    border: 1px solid rgba(201, 162, 108, 0.25);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    color: #c9a26c;
}

.team-level {
    background: #241a14;
    border: 1px solid #5c3a1e;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #c9a26c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c4b49a;
}

.team-level h4 {
    color: #c9a26c;
}

.btn-collapse {
    background: #c9a26c;
    color: #1a1310;
    border: none;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(201, 162, 108, 0.4);
    transition: all 0.2s ease;
}

.btn-collapse:hover {
    background: #deb887;
}

.team-member-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #5c3a1e;
    font-size: 14px;
    color: #c4b49a;
}

.team-member-item:last-child {
    border-bottom: none;
}

.team-member-item strong {
    color: #f5e6d3;
}

.tabs {
    display: flex;
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.2);
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 25px;
    font-weight: 600;
    color: #c4b49a;
    cursor: pointer;
}

.tab.active {
    background: #c9a26c;
    color: #1a1310;
    box-shadow: 0 2px 8px rgba(201, 162, 108, 0.4);
}

.pay-channel {
    flex: 1;
    background: #241a14;
    border: 1px solid #5c3a1e;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #c4b49a;
    cursor: pointer;
    transition: all 0.2s;
}

.pay-channel.active {
    border-color: #c9a26c;
    color: #c9a26c;
    background: #0a0604;
}

.withdraw-channel-btn {
    background: #241a14;
    border: 1px solid #5c3a1e;
    color: #c9a26c;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.withdraw-channel-btn.active {
    border-color: #c9a26c;
    background: #0a0604;
}

.input-with-all {
    display: flex;
    align-items: center;
    border: 1px solid #5c3a1e;
    border-radius: 8px;
    padding: 10px 15px;
    background: #241a14;
}

.input-with-all input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #f5e6d3;
    margin-left: 10px;
    background: transparent;
}

.btn-all {
    background: #c9a26c;
    color: #1a1310;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(201, 162, 108, 0.4);
    transition: all 0.2s ease;
}

.btn-all:hover {
    background: #deb887;
}

.vertical-title {
    color: #f5e6d3;
    font-weight: 600;
    margin-bottom: 10px;
    border-left: 3px solid #c9a26c;
    padding-left: 8px;
    display: inline-block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.35);
    border-radius: 16px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
}

.modal-box label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #c4b49a;
}

.modal-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #5c3a1e;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background: #241a14;
    color: #f5e6d3;
}

.modal-box input[type="file"] {
    padding: 8px;
}

.modal-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #5c3a1e;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background: #241a14;
    color: #f5e6d3;
    min-height: 100px;
}

.admin-btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #f5e6d3;
    margin-left: 5px;
}

.admin-btn-edit {
    background: #c9a26c;
    color: #1a1310;
}

.admin-btn-edit:hover {
    background: #deb887;
}

.admin-btn-delete {
    background: #e53e3e;
}

#custom-alert-modal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

#custom-alert-modal.active {
    display: flex;
}

.custom-alert-box {
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.35);
    border-radius: 16px;
    padding: 25px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
    color: #f5e6d3;
}

.custom-alert-box h4 {
    color: #c9a26c;
    margin-bottom: 15px;
    font-size: 18px;
}

.custom-alert-box p {
    color: #c4b49a;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.custom-alert-box button {
    background: #c9a26c;
    color: #1a1310;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(201, 162, 108, 0.4);
}

.custom-alert-box button:hover {
    background: #deb887;
}

#page-recharge,
#page-withdraw,
#page-add-bank,
#page-invoice,
#page-gift,
#page-admin {
    background: #0a0604 !important;
    color: #f5e6d3 !important;
}

#page-recharge h3,
#page-withdraw h3,
#page-add-bank h3,
#page-invoice h3,
#page-gift h3,
#page-admin h3,
#page-recharge h4,
#page-withdraw h4,
#page-add-bank h4,
#page-invoice h4,
#page-gift h4,
#page-admin h4,
#page-recharge label,
#page-withdraw label,
#page-add-bank label,
#page-invoice label,
#page-gift label,
#page-admin label {
    color: #c9a26c !important;
}

#page-recharge div[style*="background: white"],
#page-withdraw div[style*="background: white"],
#page-add-bank div[style*="background: white"],
#page-invoice div[style*="background: white"],
#page-gift div[style*="background: white"],
#page-admin div[style*="background: white"],
#page-recharge div[style*="background: #fcf6ef"],
#page-withdraw div[style*="background: #fcf6ef"],
#page-add-bank div[style*="background: #fcf6ef"],
#page-invoice div[style*="background: #fcf6ef"],
#page-gift div[style*="background: #fcf6ef"],
#page-admin div[style*="background: #fcf6ef"] {
    background: #1a1310 !important;
    border: 1px solid #5c3a1e !important;
    color: #f5e6d3 !important;
}

#page-recharge div[style*="background: #c9a26c"],
#page-withdraw div[style*="background: #c9a26c"],
#page-add-bank div[style*="background: #c9a26c"],
#page-invoice div[style*="background: #c9a26c"],
#page-gift div[style*="background: #c9a26c"],
#page-admin div[style*="background: #c9a26c"] {
    background: #c9a26c !important;
    color: #1a1310 !important;
}

#page-recharge p,
#page-recharge span,
#page-withdraw p,
#page-withdraw span,
#page-add-bank p,
#page-add-bank span,
#page-invoice p,
#page-invoice span,
#page-gift p,
#page-gift span,
#page-admin p,
#page-admin span,
#page-recharge div[style*="color: #4a5568"],
#page-withdraw div[style*="color: #4a5568"],
#page-add-bank div[style*="color: #4a5568"],
#page-invoice div[style*="color: #4a5568"],
#page-gift div[style*="color: #4a5568"],
#page-admin div[style*="color: #4a5568"] {
    color: #c4b49a !important;
}

#page-recharge input,
#page-withdraw input,
#page-add-bank input,
#page-invoice input,
#page-gift input,
#page-admin input,
#page-recharge select,
#page-withdraw select,
#page-add-bank select,
#page-invoice select,
#page-gift select,
#page-admin select {
    background: #241a14 !important;
    border: 1px solid #5c3a1e !important;
    color: #f5e6d3 !important;
    outline: none;
}

#page-recharge button,
#page-withdraw button,
#page-add-bank button,
#page-invoice button,
#page-gift button,
#page-admin button {
    background: #c9a26c !important;
    color: #1a1310 !important;
    border: none !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(201, 162, 108, 0.4) !important;
}

#page-recharge .fa-arrow-left,
#page-withdraw .fa-arrow-left,
#page-add-bank .fa-arrow-left,
#page-invoice .fa-arrow-left,
#page-gift .fa-arrow-left,
#page-admin .fa-arrow-left {
    color: #c9a26c !important;
}

#invoice-list>div {
    background: #1a1310 !important;
    border: 1px solid #5c3a1e !important;
    box-shadow: none !important;
}

#invoice-list div[style*="color: #1a202c"] {
    color: #f5e6d3 !important;
}

#invoice-list div[style*="color: #718096"] {
    color: #c4b49a !important;
}

#invoice-list div[style*="color: #c9a26c"] {
    color: #c9a26c !important;
}

#page-add-bank .back-header {
    background: transparent !important;
}

#page-add-bank h3 {
    color: #f5e6d3 !important;
}

#page-team .team-header {
    background: #1a1310 !important;
    border: 1px solid rgba(201, 162, 108, 0.35) !important;
    color: #f5e6d3 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8) !important;
}

#page-team .team-code {
    background: rgba(201, 162, 108, 0.1) !important;
    border: 1px solid rgba(201, 162, 108, 0.25) !important;
    color: #c9a26c !important;
}

#page-team .team-code span {
    color: #c4b49a !important;
}

#page-team .team-code strong {
    color: #c9a26c !important;
}

#page-team .team-code button {
    background: #c9a26c !important;
    color: #1a1310 !important;
    border: none !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(201, 162, 108, 0.4) !important;
}

#page-team .team-code button:hover {
    background: #deb887 !important;
}

#page-team .team-level {
    background: #241a14 !important;
    border: 1px solid rgba(201, 162, 108, 0.25) !important;
    border-left: 4px solid #c9a26c !important;
    color: #c4b49a !important;
}

#page-team .team-level h4 {
    color: #c9a26c !important;
}

#page-team .team-level strong {
    color: #c9a26c !important;
}

#page-team .btn-collapse {
    background: #c9a26c !important;
    color: #1a1310 !important;
}

#page-team .btn-collapse:hover {
    background: #deb887 !important;
}

html,
body {
    height: 100%;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

@media (max-width: 768px) {

    html,
    body {
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
}

#login-page,
#app-wrapper.logged-in,
.page.container,
.login-card-wrapper {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#login-page::-webkit-scrollbar,
#app-wrapper.logged-in::-webkit-scrollbar,
.page.container::-webkit-scrollbar,
.login-card-wrapper::-webkit-scrollbar {
    display: none !important;
}

@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(201, 162, 108, 0.8));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(201, 162, 108, 1)) drop-shadow(0 0 30px rgba(201, 162, 108, 0.6));
        transform: scale(1.05);
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(201, 162, 108, 0.8));
        transform: scale(1);
    }
}

.glow-signal {
    animation: glowPulse 2s ease-in-out infinite;
    display: inline-block;
}

#page-recharge div[style*="background: #c9a26c"],
#page-withdraw div[style*="background: #c9a26c"] {
    background: #c9a26c !important;
    color: #1a1310 !important;
}

#page-recharge div[style*="background: #c9a26c"] span,
#page-recharge div[style*="background: #c9a26c"] strong,
#page-withdraw div[style*="background: #c9a26c"] span,
#page-withdraw div[style*="background: #c9a26c"] strong {
    color: #1a1310 !important;
    font-weight: 700 !important;
}

#recharge-balance,
#withdraw-balance {
    color: #1a1310 !important;
}

#modal-cs .modal-box h3,
#modal-cs .modal-box>p {
    color: #f5e6d3 !important;
}

#modal-cs .fa-times {
    color: #c4b49a !important;
}

#modal-cs .modal-box div[style*="background: #f4f8fc"] p {
    color: #1a1310 !important;
}

#modal-cs .modal-box div[style*="background: #f4f8fc"] i {
    color: #1a1310 !important;
}

.investment-line {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-wrap: nowrap;
    font-size: 14px;
    color: #c9a26c;
}

.investment-line .price-tag {
    white-space: nowrap;
}

.hidden {
    display: none;
}

#login-page {
    display: flex;
}

#app-wrapper {
    display: none;
}

#app-wrapper.logged-in {
    display: block;
    padding-bottom: 80px;
}

.progress-bar {
    height: 4px;
    background: #241a14;
    border-radius: 2px;
    margin: 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #c9a26c;
    border-radius: 2px;
    width: 0;
}

.payment-channels {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pay-btn {
    flex: 1;
    background: #1a1310;
    border: 1px solid #5c3a1e;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #c4b49a;
    cursor: pointer;
}

.pay-btn.active {
    border-color: #c9a26c;
    color: #c9a26c;
    background: #241a14;
}

.team-members-container {
    padding: 10px 20px 20px;
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.2);
    border-radius: 0 0 12px 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    border-left: 4px solid #c9a26c;
}

#login-page .input-block label {
    color: #c9a26c !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#login-page .input-block label i {
    color: #c9a26c !important;
    font-size: 14px !important;
}

#login-page .input-group-with-prefix {
    background: #241a14 !important;
    border: 1px solid #5c3a1e !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#login-page .input-group-with-prefix:focus-within {
    border-color: #c9a26c !important;
    box-shadow: 0 0 8px rgba(201, 162, 108, 0.4) !important;
}

#login-page .input-group-with-prefix .prefix {
    color: #c4b49a !important;
    padding: 10px 15px;
    border-right: 1px solid #3a2a1c;
    font-size: 14px !important;
    margin-right: 0 !important;
}

#login-page .input-group-with-prefix input {
    background: transparent !important;
    border: none !important;
    color: #f5e6d3 !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
}

#login-page .input-block>input {
    background: #241a14 !important;
    border: 1px solid #5c3a1e !important;
    border-radius: 8px !important;
    color: #f5e6d3 !important;
    padding: 12px 15px !important;
    box-shadow: none !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#login-page .input-block>input:focus {
    border-color: #c9a26c !important;
    box-shadow: 0 0 8px rgba(201, 162, 108, 0.4) !important;
    outline: none;
}

#login-page .input-block input::placeholder {
    color: #7a6450 !important;
}

.terms-block {
    margin: 10px 0 5px 0;
    font-size: 13px;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    color: #c4b49a;
    cursor: pointer;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.custom-checkbox-label input {
    accent-color: #c9a26c;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.custom-checkbox-label a {
    color: #c9a26c;
    text-decoration: underline;
    margin-left: 4px;
}

#login-page .btn-primary {
    background: linear-gradient(90deg, #c9a26c, #8B5A2B) !important;
    color: #1a1310 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(201, 162, 108, 0.4) !important;
    margin-top: 15px !important;
    letter-spacing: 1px;
    border: none !important;
    width: 100% !important;
    padding: 12px 0 !important;
}

#login-page .btn-primary:hover {
    background: linear-gradient(90deg, #deb887, #a06a35) !important;
    box-shadow: 0 6px 20px rgba(201, 162, 108, 0.6) !important;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 15px 0;
    width: 100%;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(201, 162, 108, 0.25);
}

.auth-divider span {
    position: relative;
    background: #1a1310;
    padding: 0 15px;
    color: #c9a26c;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(201, 162, 108, 0.35);
    border-radius: 10px;
}

#login-page .btn-secondary {
    background: transparent !important;
    color: #c9a26c !important;
    border: 1px solid #5c3a1e !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px !important;
    position: relative;
    width: 100% !important;
    padding: 12px 0 !important;
}

#login-page .btn-secondary:hover {
    background: rgba(201, 162, 108, 0.08) !important;
    border-color: #c9a26c !important;
}

/* Withdrawal Records Panel */
.withdrawal-records-panel {
    background: #241a14;
    border: 1px solid #5c3a1e;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    color: #f5e6d3;
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(201, 162, 108, 0.25);
    padding-bottom: 10px;
}

.records-title {
    font-size: 14px;
    font-weight: bold;
    color: #c9a26c;
    letter-spacing: 0.5px;
}

.live-badge {
    background: rgba(56, 161, 105, 0.2);
    color: #38a169;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #38a169;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.records-list {
    max-height: 300px;
    overflow-y: auto;
}

.record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1310;
    border: 1px solid rgba(201, 162, 108, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
}

.record-account {
    color: #c4b49a;
    font-size: 13px;
}

.record-amount {
    color: #c9a26c;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.record-amount i {
    font-size: 12px;
}

.no-records {
    text-align: center;
    padding: 20px;
    color: #7a6450;
    font-size: 13px;
}

@media (max-width: 480px) {
    .prod-content {
        display: flex !important;
        flex-direction: row !important;
    }

    .prod-img-box {
        width: 42% !important;
        min-width: 42% !important;
        max-width: 42% !important;
    }

    .prod-table {
        min-width: 0 !important;
        flex: 1 !important;
        width: 58% !important;
    }

    .prod-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 8px !important;
    }

    .prod-row .label {
        flex: 1 1 40% !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    .prod-row .value {
        flex: 1 1 50% !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        text-align: right !important;
        white-space: normal !important;
    }

    .prod-row .label {
        word-break: break-word !important;
    }
}

@media (max-width: 400px) {

    .prod-row .label,
    .prod-row .value {
        font-size: 11px !important;
    }
}

/* RTL & MULTILINGUAL OVERRIDES */
body[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

body[dir="rtl"] .input-group-with-prefix .prefix {
    border-right: none !important;
    border-left: 1px solid #3a2a1c !important;
    margin-right: 0 !important;
    margin-left: 10px !important;
}

body[dir="rtl"] .input-group-with-prefix {
    display: flex;
}

body[dir="rtl"] .input-group-with-prefix input {
    flex: 1;
    width: 100%;
    min-width: 0;
}

body[dir="rtl"] .input-block>input {
    width: 100%;
    box-sizing: border-box;
}

body[dir="rtl"] .icon-btn.wide i {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

body[dir="rtl"] .team-level {
    border-left: none !important;
    border-right: 4px solid #c9a26c !important;
}

body[dir="rtl"] .vertical-title {
    border-left: none !important;
    border-right: 3px solid #c9a26c !important;
    padding-left: 0 !important;
    padding-right: 8px !important;
}

body[dir="rtl"] .prod-img-box {
    border-right: none !important;
    border-left: 1px solid rgba(201, 162, 108, 0.25) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 40px !important;
    border-bottom-right-radius: 40px !important;
}

body[dir="rtl"] .prod-duration-badge {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

body[dir="rtl"] .custom-checkbox-label input {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

body[dir="rtl"] .btn-all {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

body[dir="rtl"] .input-with-all input {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

body[dir="rtl"] .team-member-item {
    text-align: right;
}

.wallet-pill h3,
.wallet-card strong,
.record-amount,
.value.cyan,
.value.green,
.value.yellow {
    direction: ltr;
    display: inline-block;
}

/* LE LEGAL AGREEMENT SCROLL */
.le-legal-scroll {
    scrollbar-width: thin;
    scrollbar-color: #8B5A2B #0a0604;
}

.le-legal-scroll::-webkit-scrollbar {
    width: 6px;
}

.le-legal-scroll::-webkit-scrollbar-track {
    background: #0a0604;
    border-radius: 3px;
}

.le-legal-scroll::-webkit-scrollbar-thumb {
    background: #8B5A2B;
    border-radius: 3px;
}

.le-legal-scroll::-webkit-scrollbar-thumb:hover {
    background: #c9a26c;
}

/* WITHDRAWAL OPERATING HOURS */

#withdrawal-schedule-banner {
    display: none;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.55;
    transition: background 0.3s ease, border-color 0.3s ease;
    word-break: break-word;
}

#withdrawal-schedule-banner i {
    margin-right: 4px;
}

body[dir="rtl"] #withdrawal-schedule-banner i {
    margin-right: 0;
    margin-left: 4px;
}

#withdrawal-schedule-banner>div {
    color: #c4b49a !important;
}

#withdrawal-schedule-banner>div:first-child {
    color: inherit !important;
    font-weight: bold;
}

#withdrawal-closed-message {
    display: none;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

#withdrawal-closed-message,
#withdrawal-closed-message span {
    color: #e53e3e !important;
}

#page-admin div[style*="color: #718096"] {
    color: #c4b49a !important;
}

#withdrawal-schedule-preview {
    background: #241a14 !important;
    border: 1px solid #5c3a1e !important;
    color: #c4b49a !important;
}

#withdrawal-schedule-preview i {
    color: #c9a26c !important;
}

#withdrawal-schedule-preview strong {
    color: #c9a26c !important;
}

#withdrawal-timezone,
#withdrawal-timezone option,
#withdrawal-schedule-enabled,
#withdrawal-schedule-enabled option {
    background-color: #241a14 !important;
    color: #f5e6d3 !important;
}

#withdrawal-opening-time,
#withdrawal-closing-time {
    color-scheme: dark;
}

@media (max-width: 400px) {
    #withdrawal-schedule-banner {
        padding: 10px 12px;
        font-size: 12px;
    }

    #withdrawal-closed-message {
        padding: 12px;
        font-size: 12px;
    }
}

/* ========================================= */
/* AI HEAD BANNER — 3D Y-axis rotation       */
/*                                           */
/* The head turns around its vertical axis   */
/* (left-to-right), showing the front face,  */
/* then the mirrored back face, then back.   */
/* Real depth comes from perspective +       */
/* preserve-3d + backface-visibility.        */
/* ========================================= */

.ai-head-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    background:
        radial-gradient(ellipse at center, #241a14 0%, #0a0604 75%);
    border: 1px solid rgba(201, 162, 108, 0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.7),
        inset 0 0 50px rgba(201, 162, 108, 0.06),
        inset 0 0 8px rgba(201, 162, 108, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    /* perspective gives the 3D rotation real depth */
    perspective: 1200px;
    perspective-origin: center center;
    isolation: isolate;
}

/* Radial vignette so the image edges fade into the brown container */
.ai-head-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center,
            transparent 35%,
            rgba(26, 19, 16, 0.55) 75%,
            rgba(10, 6, 4, 0.95) 100%);
    pointer-events: none;
    z-index: 3;
    border-radius: 20px;
}

/* Subtle gold sheen across the top — ties into the luxury theme */
.ai-head-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(201, 162, 108, 0.9) 50%,
            transparent 100%);
    z-index: 4;
    pointer-events: none;
}

/* The 3D stage that actually rotates */
.ai-head-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: aiHead3DRotate 240s linear infinite;
    will-change: transform;
}

@keyframes aiHead3DRotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Base image styles shared by front and back */
.ai-head-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: screen;
    filter:
        hue-rotate(-25deg) saturate(1.15) brightness(1.05) contrast(1.05);
    opacity: 0.92;
    transition: filter 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
    user-select: none;
    /* Hide whichever face is turned away from the camera */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Front face — faces the viewer at 0° */
.ai-head-front {
    transform: rotateY(0deg) scale(1.15);
}

/* Back face — mirrored so it reads as the reverse side of the head */
.ai-head-back {
    transform: rotateY(180deg) scaleX(-1) scale(1.15);
}

.ai-head-container:hover .ai-head-img {
    filter:
        hue-rotate(-25deg) saturate(1.35) brightness(1.2) contrast(1.1);
    opacity: 1;
}

/* On very small screens, tighten the height */
@media (max-width: 400px) {
    .ai-head-container {
        height: 170px;
    }
}

/* RTL — the image is symmetric so no change needed, but keep the border-radius crisp */
body[dir="rtl"] .ai-head-container,
body[dir="rtl"] .ai-head-container::after {
    border-radius: 20px;
}

/* ========================================= */
/* MYSTERY BOX VISUAL & ANIMATIONS           */
/* ========================================= */

.mystery-box-visual-wrap {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin: 10px auto 20px auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mystery-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 77, 138, 0.4) 0%, rgba(194, 24, 91, 0) 70%);
    border-radius: 50%;
    animation: mysteryPulseBg 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes mysteryPulseBg {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

#mystery-box-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    transform-origin: bottom center;
}

#mystery-box-visual svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Enhanced pre-opening shake and brighten effect */
@keyframes mysteryEnhancedShake {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }

    10%,
    30%,
    50%,
    70% {
        transform: rotate(-8deg) scale(1.05);
        filter: brightness(1.1);
    }

    20%,
    40%,
    60%,
    80% {
        transform: rotate(8deg) scale(1.05);
        filter: brightness(1.1);
    }

    85% {
        transform: rotate(-12deg) scale(1.1);
        filter: brightness(1.3);
    }

    90% {
        transform: rotate(12deg) scale(1.15);
        filter: brightness(1.5);
    }

    95% {
        transform: rotate(0deg) scale(1.2);
        filter: brightness(1.8);
    }
}

#mystery-box-visual.opening {
    animation: mysteryEnhancedShake 2s cubic-bezier(.36, .07, .19, .97) both;
}

/* Make the background aura explode outward when the box pops */
@keyframes mysteryExplode {
    0% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.mystery-box-visual-wrap:has(#mystery-box-visual.opening) .mystery-glow-bg {
    animation: mysteryExplode 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ========================================= */
/* LEADERBOARD VISUAL ENHANCEMENTS           */
/* ========================================= */

/* Animated Trophy Icon */
.leaderboard-trophy {
    display: inline-block;
    transform-origin: bottom center;
    animation: trophyPulse 3s infinite ease-in-out;
}

@keyframes trophyPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 2px 4px rgba(246, 195, 68, 0.4));
    }

    25% {
        transform: scale(1.15) rotate(-6deg);
        filter: drop-shadow(0 6px 12px rgba(246, 195, 68, 0.8));
    }

    75% {
        transform: scale(1.15) rotate(6deg);
        filter: drop-shadow(0 6px 12px rgba(246, 195, 68, 0.8));
    }
}

/* Enhanced Recessed Prize Bar */
.enhanced-prizes-bar {
    background: linear-gradient(180deg, #120d0a 0%, #1a1310 100%);
    border: 1px solid rgba(201, 162, 108, 0.3);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(201, 162, 108, 0.05);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Chunky Metallic Action Button */
.leaderboard-btn {
    background: linear-gradient(135deg, #c9a26c, #8B5A2B);
    color: #1a1310;
    box-shadow:
        0 4px 0 #6e4620,
        0 6px 15px rgba(201, 162, 108, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid #deb887;
    margin-top: 15px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.leaderboard-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #deb887, #a06a35);
    box-shadow:
        0 6px 0 #6e4620,
        0 8px 20px rgba(201, 162, 108, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.leaderboard-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #6e4620,
        0 4px 10px rgba(201, 162, 108, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===================================================== */
/* ============== PREMIUM LOGIN REDESIGN =============== */
/* ===================================================== */

#login-page {
    background:
        radial-gradient(circle at top, rgba(201, 162, 108, 0.15) 0%, transparent 55%),
        radial-gradient(circle at bottom, rgba(139, 90, 43, 0.12) 0%, transparent 60%),
        #0a0604 !important;
}

#login-page .logo-wrapper {
    margin-top: 35px;
    margin-bottom: 20px;
}

#login-page .app-logo {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    border: 2px solid transparent;
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B, #c9a26c, #f6c344) border-box;
    box-shadow:
        0 8px 32px rgba(201, 162, 108, 0.35),
        0 0 60px rgba(201, 162, 108, 0.25),
        inset 0 0 20px rgba(201, 162, 108, 0.1);
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        box-shadow:
            0 8px 32px rgba(201, 162, 108, 0.35),
            0 0 60px rgba(201, 162, 108, 0.25),
            inset 0 0 20px rgba(201, 162, 108, 0.1);
    }

    50% {
        box-shadow:
            0 8px 40px rgba(246, 195, 68, 0.5),
            0 0 80px rgba(246, 195, 68, 0.35),
            inset 0 0 25px rgba(201, 162, 108, 0.15);
    }
}

#login-page .app-brand-text {
    font-size: 22px;
    letter-spacing: 4px;
    text-transform: none;
    background: linear-gradient(90deg, #c9a26c, #f6c344, #c9a26c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-top: 12px;
    filter: drop-shadow(0 0 12px rgba(201, 162, 108, 0.4));
}

#login-page .login-hero-banner {
    background-image:
        radial-gradient(ellipse at center, rgba(201, 162, 108, 0.15) 0%, transparent 70%),
        linear-gradient(180deg, #5c3a1e 0%, #1a1310 100%);
    min-height: 40px;
    max-height: 80px;
}

#login-page .login-card-wrapper {
    margin-top: -30px;
}

#login-page #login-form,
#login-page #register-form,
#login-page #forgot-form {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(145deg, rgba(201, 162, 108, 0.55), rgba(139, 90, 43, 0.15), rgba(201, 162, 108, 0.4)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 24px !important;
    padding: 28px 22px !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(201, 162, 108, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

#login-page .input-block {
    margin-bottom: 16px;
}

#login-page .input-block label {
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 8px !important;
}

#login-page .input-group-with-prefix {
    border-radius: 14px !important;
    padding: 2px !important;
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.4), rgba(92, 58, 30, 0.6)) border-box !important;
    border: 1.5px solid transparent !important;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.03) !important;
    transition: all 0.3s ease !important;
}

#login-page .input-group-with-prefix:focus-within {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B) border-box !important;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(201, 162, 108, 0.35) !important;
    transform: translateY(-1px);
}

#login-page .input-group-with-prefix .prefix {
    border-right-color: rgba(201, 162, 108, 0.15) !important;
    padding: 12px 15px !important;
}

#login-page .input-group-with-prefix input {
    padding: 14px 16px !important;
    font-size: 15px !important;
    letter-spacing: 0.3px;
}

#login-page .input-block>input {
    border-radius: 14px !important;
    padding: 14px 16px !important;
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.4), rgba(92, 58, 30, 0.6)) border-box !important;
    border: 1.5px solid transparent !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease !important;
}

#login-page .input-block>input:focus {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B) border-box !important;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(201, 162, 108, 0.35) !important;
    transform: translateY(-1px);
    outline: none !important;
}

#login-page .terms-block {
    padding: 4px 0;
}

#login-page .custom-checkbox-label {
    font-size: 12.5px !important;
    line-height: 1.5;
}

#login-page .custom-checkbox-label input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    margin-right: 10px;
}

#login-page .btn-primary {
    background: linear-gradient(135deg, #f6c344 0%, #c9a26c 45%, #8B5A2B 100%) !important;
    color: #0a0604 !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    border-radius: 14px !important;
    padding: 16px 0 !important;
    margin-top: 20px !important;
    box-shadow:
        0 8px 20px rgba(201, 162, 108, 0.45),
        0 0 0 1px rgba(246, 195, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#login-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.6s ease;
}

#login-page .btn-primary:hover::before {
    left: 100%;
}

#login-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(201, 162, 108, 0.6),
        0 0 0 1px rgba(246, 195, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

#login-page .btn-primary:active {
    transform: translateY(0);
}

#login-page .auth-divider span {
    background: #1a1310 !important;
    border: 1.5px solid rgba(201, 162, 108, 0.35) !important;
    border-radius: 20px !important;
    padding: 4px 18px !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    box-shadow: 0 0 12px rgba(201, 162, 108, 0.15);
}

#login-page .btn-secondary {
    background: linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.5), rgba(92, 58, 30, 0.6)) border-box !important;
    border: 1.5px solid transparent !important;
    color: #c9a26c !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    border-radius: 14px !important;
    padding: 14px 0 !important;
    margin-top: 12px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#login-page .btn-secondary:hover {
    background: linear-gradient(rgba(201, 162, 108, 0.08), rgba(201, 162, 108, 0.08)) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c) border-box !important;
    color: #f6c344 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 162, 108, 0.25);
}

/* ===================================================== */
/* ============= PREMIUM ME PAGE REDESIGN ============== */
/* ===================================================== */

#page-me {
    padding-top: 20px;
}

/* Profile header */
#page-me>div:first-child {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(246, 195, 68, 0.6), rgba(139, 90, 43, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px;
    padding: 16px 18px !important;
    margin-bottom: 12px !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

#page-me>div:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f6c344, #c9a26c, #8B5A2B);
    border-radius: 18px 0 0 18px;
}

#profile-phone {
    font-size: 16px !important;
    letter-spacing: 0.5px;
    color: #f5e6d3 !important;
    padding-left: 4px;
}

/* UID line */
#page-me>div:nth-child(2) {
    background: rgba(201, 162, 108, 0.06);
    border: 1px solid rgba(201, 162, 108, 0.15);
    border-radius: 12px;
    padding: 10px 16px !important;
    font-size: 12.5px;
    letter-spacing: 0.5px;
    margin-bottom: 16px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

#profile-uid {
    color: #f6c344 !important;
    font-weight: 600;
}

#page-me>div:nth-child(2) .far.fa-copy {
    color: #c9a26c !important;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#page-me>div:nth-child(2) .far.fa-copy:hover {
    background: rgba(201, 162, 108, 0.15);
    transform: scale(1.1);
}

/* Wallet pills */
#page-me .wallet-pill {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.45), rgba(92, 58, 30, 0.4)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px !important;
    padding: 18px 14px !important;
    margin: 0 !important;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

#page-me .wallet-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a26c, transparent);
    opacity: 0.6;
}

#page-me .wallet-pill:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(201, 162, 108, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

#page-me .wallet-pill h4 {
    font-size: 11px !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px !important;
}

#page-me .wallet-pill h3 {
    font-size: 19px !important;
    letter-spacing: 0.3px;
    color: #f6c344 !important;
    text-shadow: 0 0 20px rgba(246, 195, 68, 0.35);
}

/* Icon rows */
#page-me .icon-row {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.3), rgba(92, 58, 30, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 20px !important;
    padding: 18px 15px !important;
    margin-bottom: 14px !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    gap: 8px !important;
}

#page-me .icon-btn {
    font-size: 11px !important;
    letter-spacing: 0.3px;
    color: #c4b49a !important;
    transition: all 0.25s ease;
    padding: 4px;
    border-radius: 12px;
}

#page-me .icon-btn:hover {
    color: #f6c344 !important;
    transform: translateY(-2px);
}

#page-me .icon-btn i {
    width: 54px !important;
    height: 54px !important;
    background:
        linear-gradient(135deg, rgba(201, 162, 108, 0.15), rgba(139, 90, 43, 0.08)) !important;
    border: 1.5px solid rgba(201, 162, 108, 0.35) !important;
    border-radius: 18px !important;
    color: #f6c344 !important;
    font-size: 20px !important;
    margin-bottom: 10px !important;
    transition: all 0.25s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#page-me .icon-btn:hover i {
    background: linear-gradient(135deg, rgba(246, 195, 68, 0.25), rgba(201, 162, 108, 0.15)) !important;
    border-color: #f6c344 !important;
    box-shadow:
        0 6px 18px rgba(246, 195, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Withdrawal records panel */
#page-me .withdrawal-records-panel {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(56, 161, 105, 0.35), rgba(201, 162, 108, 0.2)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 20px !important;
    padding: 18px !important;
    margin-top: 16px !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
}

#page-me .records-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(201, 162, 108, 0.15);
}

#page-me .records-title {
    font-size: 12.5px !important;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#page-me .live-badge {
    background: rgba(56, 161, 105, 0.15) !important;
    border: 1px solid rgba(56, 161, 105, 0.4);
    padding: 3px 10px !important;
    font-size: 10px !important;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(56, 161, 105, 0.3);
}

#page-me .records-list>div {
    color: #7a6450 !important;
    font-size: 13px;
    padding: 24px 20px !important;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px dashed rgba(201, 162, 108, 0.15);
}

/* Admin panel button */
#page-me #admin-panel-btn {
    border-radius: 16px !important;
    padding: 16px !important;
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(246, 195, 68, 0.5), rgba(139, 90, 43, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.25s ease;
}

#page-me #admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 162, 108, 0.25) !important;
}

/* Log out button */
#page-me>.btn-primary {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(229, 62, 62, 0.6), rgba(139, 90, 43, 0.4)) border-box !important;
    border: 1.5px solid transparent !important;
    color: #f6c344 !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    border-radius: 16px !important;
    padding: 16px 0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

#page-me>.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #e53e3e, #c9a26c);
}

#page-me>.btn-primary:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(rgba(229, 62, 62, 0.1), rgba(229, 62, 62, 0.1)) padding-box,
        linear-gradient(135deg, #e53e3e, #f6c344) border-box !important;
    box-shadow: 0 10px 28px rgba(229, 62, 62, 0.3) !important;
}

/* RTL adjustments */
body[dir="rtl"] #page-me>div:first-child::before {
    left: auto;
    right: 0;
    border-radius: 0 18px 18px 0;
}

body[dir="rtl"] #page-me>.btn-primary::before {
    left: auto;
    right: 0;
}

/* ===================================================== */
/* ============ PREMIUM WITHDRAW PAGE REDESIGN ========= */
/* ===================================================== */

/* Page background — subtle gold radial vignette */
#page-withdraw {
    background:
        radial-gradient(circle at top, rgba(201, 162, 108, 0.10) 0%, transparent 45%),
        radial-gradient(circle at bottom, rgba(139, 90, 43, 0.08) 0%, transparent 55%),
        #0a0604 !important;
}

/* ── Back header — cleaner look, subtle bottom hairline ── */
#page-withdraw>div:first-child {
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(201, 162, 108, 0.15);
    margin-bottom: 16px;
}

#page-withdraw>div:first-child h3 {
    font-size: 17px !important;
    letter-spacing: 1.2px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

#page-withdraw>div:first-child .fa-arrow-left {
    padding: 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

#page-withdraw>div:first-child .fa-arrow-left:hover {
    background: rgba(201, 162, 108, 0.12);
    transform: translateX(-3px);
}

/* ── Balance bar — premium gradient with left accent ── */
#page-withdraw>div:nth-child(2) {
    background:
        linear-gradient(#c9a26c, #c9a26c) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B) border-box !important;
    border: 2px solid transparent !important;
    border-radius: 18px !important;
    padding: 18px 22px !important;
    margin-bottom: 18px !important;
    box-shadow:
        0 10px 28px rgba(201, 162, 108, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    position: relative;
    overflow: hidden;
}

#page-withdraw>div:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

#page-withdraw>div:nth-child(2)>span:first-child {
    color: #1a1310 !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 13px !important;
    position: relative;
    z-index: 1;
}

#withdraw-balance {
    color: #1a1310 !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ── Schedule banner — richer card style ── */
#withdrawal-schedule-banner {
    border-radius: 14px !important;
    padding: 14px 18px !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    border: 1px solid transparent !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

#withdrawal-schedule-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.4;
    pointer-events: none;
}

/* ── Closed message — bolder, icon-driven card ── */
#withdrawal-closed-message {
    border-radius: 14px !important;
    padding: 16px 18px 16px 48px !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    position: relative;
    background: rgba(229, 62, 62, 0.10) !important;
    border: 1px solid rgba(229, 62, 62, 0.35) !important;
    border-left: 4px solid #e53e3e !important;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.15);
    color: #ff8f8f !important;
    backdrop-filter: blur(4px);
}

#withdrawal-closed-message::before {
    content: '\f05e';
    /* fa-ban */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #e53e3e;
    font-size: 20px;
    text-shadow: 0 0 12px rgba(229, 62, 62, 0.6);
}

/* ── Wallet address card — glassy border with gold accent ── */
#page-withdraw div[style*="background: #1a1310"][style*="border: 1px solid #5c3a1e"] {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.45), rgba(92, 58, 30, 0.35)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px !important;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    padding: 18px !important;
}

#withdraw-network-title {
    font-size: 13px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
}

/* ── USDT address input — premium inset field ── */
#page-withdraw div[style*="background: #241a14"][style*="border: 1px solid #5c3a1e"],
#page-withdraw div[style*="border-radius: 8px"][style*="background: #241a14"] {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.4), rgba(92, 58, 30, 0.5)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55) !important;
    transition: all 0.28s ease;
}

#page-withdraw div[style*="background: #241a14"][style*="border: 1px solid #5c3a1e"]:focus-within,
#page-withdraw div[style*="border-radius: 8px"][style*="background: #241a14"]:focus-within {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B) border-box !important;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(201, 162, 108, 0.3) !important;
    transform: translateY(-1px);
}

#withdraw-usdt-address,
#withdraw-amount {
    color: #f5e6d3 !important;
    font-size: 14.5px !important;
    letter-spacing: 0.3px;
    background: transparent !important;
}

#withdraw-usdt-address::placeholder,
#withdraw-amount::placeholder {
    color: #7a6450 !important;
}

#withdraw-network-hint,
#withdraw-min-hint {
    font-size: 11.5px !important;
    color: #c4b49a !important;
    line-height: 1.55 !important;
    margin-top: 10px !important;
    padding-left: 2px;
}

/* ── "Select Channel" header — add gold tick marker ── */
#page-withdraw div[style*="color: #f5e6d3"][style*="font-weight: 600"] {
    position: relative;
    padding-left: 14px;
    font-size: 13px !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

#page-withdraw div[style*="color: #f5e6d3"][style*="font-weight: 600"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(180deg, #f6c344, #c9a26c);
    box-shadow: 0 0 8px rgba(246, 195, 68, 0.5);
}

/* ── USDT channel button — premium pill ── */
.withdraw-channel-btn {
    background:
        linear-gradient(#c9a26c, #c9a26c) padding-box,
        linear-gradient(135deg, #f6c344, #8B5A2B) border-box !important;
    border: 2px solid transparent !important;
    color: #1a1310 !important;
    font-weight: 800 !important;
    padding: 12px 36px !important;
    border-radius: 30px !important;
    cursor: pointer;
    letter-spacing: 1.2px;
    font-size: 13px;
    box-shadow:
        0 6px 18px rgba(201, 162, 108, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
    text-transform: uppercase;
}

.withdraw-channel-btn.active {
    border-color: transparent !important;
    background:
        linear-gradient(#f6c344, #c9a26c) padding-box,
        linear-gradient(135deg, #ffd970, #8B5A2B) border-box !important;
    color: #1a1310 !important;
    box-shadow:
        0 8px 24px rgba(246, 195, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* ── Balance withdrawal input & ALL button ── */
.input-with-all {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.4), rgba(92, 58, 30, 0.5)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55) !important;
    transition: all 0.28s ease;
}

.input-with-all:focus-within {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B) border-box !important;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(201, 162, 108, 0.3) !important;
    transform: translateY(-1px);
}

.btn-all {
    background: linear-gradient(135deg, #f6c344, #c9a26c) !important;
    color: #1a1310 !important;
    border: none !important;
    font-weight: 800 !important;
    padding: 7px 18px !important;
    border-radius: 20px !important;
    letter-spacing: 0.8px;
    font-size: 12px !important;
    box-shadow:
        0 4px 12px rgba(246, 195, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-all:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px rgba(246, 195, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ── Send button — bold gradient with animated shine ── */
#page-withdraw .btn-primary {
    background: linear-gradient(135deg, #f6c344 0%, #c9a26c 45%, #8B5A2B 100%) !important;
    color: #0a0604 !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    border-radius: 16px !important;
    padding: 18px 0 !important;
    font-size: 16px !important;
    box-shadow:
        0 10px 26px rgba(201, 162, 108, 0.45),
        0 0 0 1px rgba(246, 195, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#page-withdraw .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

#page-withdraw .btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

#page-withdraw .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(201, 162, 108, 0.6),
        0 0 0 1px rgba(246, 195, 68, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

#page-withdraw .btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

#page-withdraw .btn-primary:disabled {
    background: linear-gradient(135deg, #3a2a1c, #241a14) !important;
    color: #7a6450 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    letter-spacing: 1.5px;
}

/* ── Warm Reminder card ── */
#page-withdraw>div:last-child {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.35), rgba(92, 58, 30, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px !important;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    padding: 20px !important;
}

#page-withdraw>div:last-child>div:first-child {
    font-size: 13px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 162, 108, 0.15);
    margin-bottom: 14px !important;
}

#page-withdraw>div:last-child>div:last-child p {
    padding-left: 6px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s ease;
}

#page-withdraw>div:last-child>div:last-child p:hover {
    border-left-color: rgba(201, 162, 108, 0.4);
}

/* ── RTL adjustments ── */
body[dir="rtl"] #withdrawal-closed-message {
    padding: 16px 48px 16px 18px !important;
}

body[dir="rtl"] #withdrawal-closed-message::before {
    left: auto;
    right: 18px;
}

body[dir="rtl"] #page-withdraw div[style*="color: #f5e6d3"][style*="font-weight: 600"] {
    padding-left: 0;
    padding-right: 14px;
}

body[dir="rtl"] #page-withdraw div[style*="color: #f5e6d3"][style*="font-weight: 600"]::before {
    left: auto;
    right: 0;
}

body[dir="rtl"] #page-withdraw>div:first-child .fa-arrow-left:hover {
    transform: translateX(3px);
}

/* ── Mobile tightening ── */
@media (max-width: 400px) {
    #page-withdraw>div:nth-child(2) {
        padding: 14px 16px !important;
    }

    #withdraw-balance {
        font-size: 18px !important;
    }

    .withdraw-channel-btn {
        padding: 10px 28px !important;
        font-size: 12px;
    }

    #page-withdraw .btn-primary {
        padding: 16px 0 !important;
        font-size: 15px !important;
    }
}

/* ===================================================== */
/* ========== PREMIUM RECHARGE PAGE REDESIGN =========== */
/* ===================================================== */

#page-recharge {
    background:
        radial-gradient(circle at top, rgba(201, 162, 108, 0.10) 0%, transparent 45%),
        radial-gradient(circle at bottom, rgba(139, 90, 43, 0.08) 0%, transparent 55%),
        #0a0604 !important;
}

#page-recharge>div:first-child {
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(201, 162, 108, 0.15);
    margin-bottom: 16px;
}

#page-recharge>div:first-child h3 {
    font-size: 17px !important;
    letter-spacing: 1.2px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

#page-recharge>div:first-child .fa-arrow-left {
    padding: 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

#page-recharge>div:first-child .fa-arrow-left:hover {
    background: rgba(201, 162, 108, 0.12);
    transform: translateX(-3px);
}

/* Balance bar */
#page-recharge>div:nth-child(2) {
    background:
        linear-gradient(#c9a26c, #c9a26c) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B) border-box !important;
    border: 2px solid transparent !important;
    border-radius: 18px !important;
    padding: 18px 22px !important;
    margin-bottom: 18px !important;
    box-shadow:
        0 10px 28px rgba(201, 162, 108, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    position: relative;
    overflow: hidden;
}

#page-recharge>div:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

#page-recharge>div:nth-child(2)>span:first-child {
    color: #1a1310 !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 13px !important;
    position: relative;
    z-index: 1;
}

#recharge-balance {
    color: #1a1310 !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* First Deposit Bonus banner */
#page-recharge>div:nth-child(3) {
    background: linear-gradient(135deg, #8B5A2B 0%, #5c3a1e 100%) !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    margin-bottom: 18px !important;
    box-shadow:
        0 6px 20px rgba(139, 90, 43, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 108, 0.35) !important;
}

#page-recharge>div:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f6c344, transparent);
    opacity: 0.7;
}

/* Deposit details card */
#page-recharge>div:nth-child(4) {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.45), rgba(92, 58, 30, 0.35)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px !important;
    padding: 20px !important;
    margin-bottom: 18px !important;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

/* Minimum deposit pill */
#page-recharge div[data-i18n="Minimum Deposit: 2 USDT"] {
    background: linear-gradient(135deg, rgba(246, 195, 68, 0.15), rgba(201, 162, 108, 0.08)) !important;
    border: 1px solid rgba(246, 195, 68, 0.4) !important;
    border-left: 4px solid #f6c344 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #f6c344 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(246, 195, 68, 0.15);
    position: relative;
    overflow: hidden;
}

/* Amount and TXID input wrappers */
#page-recharge div[style*="background: #241a14"][style*="border: 1px solid #5c3a1e"] {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.4), rgba(92, 58, 30, 0.5)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55) !important;
    transition: all 0.28s ease;
}

#page-recharge div[style*="background: #241a14"][style*="border: 1px solid #5c3a1e"]:focus-within {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, #f6c344, #c9a26c, #8B5A2B) border-box !important;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(201, 162, 108, 0.3) !important;
    transform: translateY(-1px);
}

#recharge-amount,
#recharge-txid {
    color: #f5e6d3 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px;
    background: transparent !important;
}

#recharge-amount::placeholder,
#recharge-txid::placeholder {
    color: #7a6450 !important;
}

/* Rewards info card */
#page-recharge>div:nth-child(6) {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(255, 77, 138, 0.3), rgba(201, 162, 108, 0.25)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    padding: 16px 18px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important;
}

/* I Have Paid button */
#page-recharge .btn-primary {
    background: linear-gradient(135deg, #f6c344 0%, #c9a26c 45%, #8B5A2B 100%) !important;
    color: #0a0604 !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    border-radius: 16px !important;
    padding: 18px 0 !important;
    font-size: 16px !important;
    box-shadow:
        0 10px 26px rgba(201, 162, 108, 0.45),
        0 0 0 1px rgba(246, 195, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#page-recharge .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
}

#page-recharge .btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

#page-recharge .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(201, 162, 108, 0.6),
        0 0 0 1px rgba(246, 195, 68, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

#page-recharge .btn-primary:disabled {
    background: linear-gradient(135deg, #3a2a1c, #241a14) !important;
    color: #7a6450 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Warm Reminder card (last) */
#page-recharge>div:last-child {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.35), rgba(92, 58, 30, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px !important;
    padding: 20px !important;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
}

#page-recharge>div:last-child>div:first-child {
    font-size: 13px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 162, 108, 0.15);
    margin-bottom: 14px !important;
}

/* ===================================================== */
/* ========== PREMIUM INVOICE PAGE REDESIGN ============ */
/* ===================================================== */

#page-invoice {
    background:
        radial-gradient(circle at top, rgba(201, 162, 108, 0.08) 0%, transparent 45%),
        #0a0604 !important;
}

#page-invoice>div:first-child {
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(201, 162, 108, 0.15);
    margin-bottom: 18px;
}

#page-invoice>div:first-child h3 {
    font-size: 17px !important;
    letter-spacing: 1.2px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

#page-invoice>div:first-child .fa-arrow-left {
    padding: 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

#page-invoice>div:first-child .fa-arrow-left:hover {
    background: rgba(201, 162, 108, 0.12);
    transform: translateX(-3px);
}

#invoice-list>div {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.35), rgba(92, 58, 30, 0.25)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 16px !important;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

#invoice-list>div:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px rgba(201, 162, 108, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(201, 162, 108, 0.5) !important;
}

#invoice-list>div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #f6c344, #c9a26c, #8B5A2B);
    opacity: 0.85;
}

#invoice-list>div>div:first-child>div:first-child {
    color: #f5e6d3 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px;
}

#invoice-list>div>div:first-child>div:last-child {
    color: #7a6450 !important;
    font-size: 12px !important;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

#invoice-list>div>div:last-child {
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    text-shadow: 0 0 12px currentColor;
    white-space: nowrap;
}

/* Empty state for invoice */
#invoice-list>div[style*="text-align: center"] {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.25), rgba(92, 58, 30, 0.2)) border-box !important;
    padding: 50px 30px !important;
    border-style: dashed !important;
    text-align: center;
}

#invoice-list>div[style*="text-align: center"]::before {
    display: none;
}

/* ===================================================== */
/* ========== PREMIUM TEAM PAGE REDESIGN =============== */
/* ===================================================== */

#page-team {
    background:
        radial-gradient(circle at top, rgba(201, 162, 108, 0.08) 0%, transparent 45%),
        #0a0604 !important;
}

/* Team header */
#page-team .team-header {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.5), rgba(139, 90, 43, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 20px !important;
    padding: 22px !important;
    margin-bottom: 18px !important;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    position: relative;
    overflow: hidden;
}

#page-team .team-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f6c344, #c9a26c, #8B5A2B, #c9a26c, #f6c344);
}

#page-team .team-header .fa-user-plus {
    color: #f6c344 !important;
    filter: drop-shadow(0 0 12px rgba(246, 195, 68, 0.5));
}

#page-team .team-header h4 {
    font-size: 12px !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase;
    color: #c4b49a !important;
    margin-bottom: 4px !important;
}

#page-team .team-header h3 {
    font-size: 18px !important;
    letter-spacing: 0.5px !important;
    color: #f5e6d3 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 20px rgba(201, 162, 108, 0.4);
}

/* Code/link boxes */
#page-team .team-code {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.35), rgba(92, 58, 30, 0.4)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 12px 0 !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

#page-team .team-code>div>span {
    color: #7a6450 !important;
    letter-spacing: 1.2px !important;
    font-size: 11px !important;
    text-transform: uppercase;
}

#page-team .team-code>div>strong {
    color: #f6c344 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px;
    word-break: break-all;
    display: inline-block;
    margin-top: 4px;
}

#page-team .team-code button {
    background: linear-gradient(135deg, #f6c344, #c9a26c) !important;
    color: #1a1310 !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    box-shadow:
        0 4px 12px rgba(246, 195, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 12px !important;
}

#page-team .team-code button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px rgba(246, 195, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* Total earnings wallet card */
#page-team .wallet-card {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(56, 161, 105, 0.4), rgba(201, 162, 108, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px !important;
    padding: 20px !important;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    margin-bottom: 20px !important;
}

#page-team .wallet-card .fa-chart-line {
    color: #f6c344 !important;
    filter: drop-shadow(0 0 10px rgba(246, 195, 68, 0.4));
}

#page-team .wallet-card span[data-i18n] {
    color: #c4b49a !important;
    letter-spacing: 0.5px;
    font-size: 13px;
}

#team-total-earnings {
    color: #f6c344 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(246, 195, 68, 0.5);
}

/* "Team members" heading */
#page-team>h4 {
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    margin-bottom: 12px !important;
    padding-left: 12px;
    border-left: 3px solid #c9a26c;
    color: #c9a26c !important;
}

/* Level cards */
#page-team .team-level {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.3), rgba(92, 58, 30, 0.25)) border-box !important;
    border: 1.5px solid transparent !important;
    border-left: none !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#page-team .team-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f6c344, #c9a26c, #8B5A2B);
    border-radius: 16px 0 0 16px;
}

#page-team .team-level:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201, 162, 108, 0.15) !important;
    border-color: rgba(201, 162, 108, 0.5) !important;
}

#page-team .team-level h4 {
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    margin-bottom: 4px !important;
    color: #f6c344 !important;
    text-transform: uppercase;
}

#page-team .team-level>div>span {
    color: #c4b49a !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
}

#page-team .team-level>div>strong {
    color: #f6c344 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
}

#page-team .team-level>div>div>span:first-child {
    color: #c4b49a !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#page-team .team-level>div>div>span[style*="color: #c9a26c"] {
    color: #f6c344 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
}

/* Expand button */
#page-team .btn-collapse {
    background: linear-gradient(135deg, #f6c344, #c9a26c) !important;
    color: #1a1310 !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    box-shadow:
        0 4px 12px rgba(246, 195, 68, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#page-team .btn-collapse:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px rgba(246, 195, 68, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* Team member items in expanded view */
#page-team [id^="team-level-"][id$="-members"] {
    background:
        linear-gradient(#0f0a07, #0f0a07) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.25), rgba(92, 58, 30, 0.2)) border-box !important;
    border: 1.5px solid transparent !important;
    border-left: none !important;
    border-top: none !important;
    border-radius: 0 0 16px 16px !important;
    padding: 16px !important;
    margin-top: -12px !important;
    margin-bottom: 12px !important;
    position: relative;
}

#page-team .team-member-item {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(201, 162, 108, 0.12) !important;
    font-size: 13px !important;
}

#page-team .team-member-item strong {
    color: #f6c344 !important;
    font-weight: 700 !important;
}

/* RTL for team page */
body[dir="rtl"] #page-team .team-level::before {
    left: auto;
    right: 0;
    border-radius: 0 16px 16px 0;
}

body[dir="rtl"] #page-team>h4 {
    padding-left: 0;
    padding-right: 12px;
    border-left: none;
    border-right: 3px solid #c9a26c;
}

/* ===================================================== */
/* ========== PREMIUM ORDER PAGE REDESIGN ============== */
/* ===================================================== */

#page-order {
    background:
        radial-gradient(circle at top, rgba(201, 162, 108, 0.08) 0%, transparent 45%),
        #0a0604 !important;
}

/* Tabs container */
#page-order .tabs {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.4), rgba(92, 58, 30, 0.3)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 40px !important;
    padding: 6px !important;
    margin-bottom: 20px !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

#page-order .tab {
    padding: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px;
    border-radius: 34px !important;
    transition: all 0.3s ease;
    color: #c4b49a !important;
}

#page-order .tab.active {
    background: linear-gradient(135deg, #f6c344, #c9a26c) !important;
    color: #1a1310 !important;
    box-shadow:
        0 6px 18px rgba(246, 195, 68, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    font-weight: 900 !important;
    letter-spacing: 1px;
}

/* Order cards */
#order-list>div {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.35), rgba(92, 58, 30, 0.25)) border-box !important;
    border: 1.5px solid transparent !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex !important;
    align-items: center;
    gap: 16px;
}

#order-list>div:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 26px rgba(201, 162, 108, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

/* Image placeholder box */
#order-list>div>div:first-child {
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px !important;
    background:
        linear-gradient(135deg, rgba(201, 162, 108, 0.15), rgba(139, 90, 43, 0.08)) !important;
    border: 1.5px solid rgba(201, 162, 108, 0.3) !important;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    overflow: hidden;
}

#order-list>div>div:first-child i {
    color: #f6c344 !important;
    font-size: 26px !important;
    filter: drop-shadow(0 0 8px rgba(246, 195, 68, 0.4));
}

#order-list>div>div:first-child img {
    border-radius: 12px;
}

/* Order name */
#order-list>div>div:nth-child(2)>div:first-child {
    color: #f5e6d3 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Order details lines */
#order-list>div>div:nth-child(2)>div:not(:first-child) {
    color: #c4b49a !important;
    font-size: 12px !important;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

#order-list>div>div:nth-child(2)>div span[style*="color: #00e5ff"] {
    color: #f6c344 !important;
    font-weight: 700 !important;
}

/* Status badge */
#order-list>div>div:last-child>span {
    font-weight: 800 !important;
    font-size: 11px !important;
    letter-spacing: 1.2px;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    white-space: nowrap;
}

#order-list>div>div:last-child>span[style*="#319795"] {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.25), rgba(56, 161, 105, 0.1)) !important;
    color: #4ade80 !important;
    border-color: rgba(56, 161, 105, 0.5) !important;
    box-shadow:
        0 3px 10px rgba(56, 161, 105, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

/* Completed state (grey) */
#order-list>div>div:last-child>span[style*="#718096"] {
    background: linear-gradient(135deg, rgba(113, 128, 150, 0.25), rgba(113, 128, 150, 0.1)) !important;
    color: #c4b49a !important;
    border-color: rgba(113, 128, 150, 0.4) !important;
}

/* Empty state for orders */
#order-list>div[style*="text-align: center"] {
    background:
        linear-gradient(#1a1310, #1a1310) padding-box,
        linear-gradient(135deg, rgba(201, 162, 108, 0.25), rgba(92, 58, 30, 0.2)) border-box !important;
    border: 1.5px dashed transparent !important;
    padding: 60px 30px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px !important;
}

#order-list>div[style*="text-align: center"] i {
    color: #c9a26c !important;
    font-size: 52px !important;
    margin-bottom: 16px !important;
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(201, 162, 108, 0.4));
}

/* Loading state */
#order-list>div[style*="text-align:center"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 40px !important;
    color: #c4b49a !important;
}

/* RTL adjustments for order page */
body[dir="rtl"] #order-list>div {
    flex-direction: row-reverse;
}

/* ===================================================== */
/* ========== MOBILE TIGHTENING (ALL NEW PAGES) ======== */
/* ===================================================== */

@media (max-width: 400px) {
    #page-recharge>div:nth-child(2) {
        padding: 14px 16px !important;
    }

    #recharge-balance {
        font-size: 18px !important;
    }

    #page-recharge .btn-primary {
        padding: 16px 0 !important;
        font-size: 15px !important;
    }

    #page-team .team-header {
        padding: 18px !important;
    }

    #page-team .team-header h3 {
        font-size: 16px !important;
    }

    #page-team .team-code {
        padding: 12px 14px !important;
    }

    #page-team .team-code>div>strong {
        font-size: 13px !important;
    }

    #page-team .team-code button {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }

    #page-team .team-level {
        padding: 14px 16px !important;
    }

    #page-team .team-level h4 {
        font-size: 13px !important;
    }

    #page-team .btn-collapse {
        padding: 6px 12px !important;
        font-size: 10px !important;
    }

    #order-list>div {
        padding: 14px !important;
        gap: 12px;
    }

    #order-list>div>div:first-child {
        width: 50px !important;
        height: 50px !important;
    }

    #order-list>div>div:nth-child(2)>div:first-child {
        font-size: 13px !important;
    }

    #invoice-list>div {
        padding: 14px 16px !important;
    }

    #invoice-list>div>div:first-child>div:first-child {
        font-size: 13px !important;
    }

    #invoice-list>div>div:last-child {
        font-size: 14px !important;
    }
}

/* ========================================= */
/* AI HEAD — PRODUCT RUSH + SPREAD EFFECT    */
/* ========================================= */

/* Container that holds the rushing product tiles. Sits above the AI head
   image but below the gold sheen and vignette for visual layering. */
.ai-product-rush {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

/* Individual product tile that rushes in from either side. */
.ai-rush-tile {
    position: absolute;
    top: 50%;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(26, 19, 16, 0.96), rgba(36, 26, 20, 0.96));
    border: 1px solid rgba(201, 162, 108, 0.75);
    border-radius: 10px;
    color: #f6c344;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.7),
        0 0 14px rgba(201, 162, 108, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    will-change: transform, opacity;
    transform: translateY(-50%);
}

/* Wind streak trailing behind the tile. Direction is flipped per side. */
.ai-rush-tile::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 90px;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.ai-rush-tile.from-right::after {
    right: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 229, 255, 0.35) 40%,
            rgba(0, 229, 255, 0.85) 100%);
}

.ai-rush-tile.from-left::after {
    left: 100%;
    background: linear-gradient(270deg,
            transparent 0%,
            rgba(0, 229, 255, 0.35) 40%,
            rgba(0, 229, 255, 0.85) 100%);
}

/* Keyframes — tiles rush in, hold, then fade */

.ai-rush-tile.from-right {
    animation: aiRushFromRight 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes aiRushFromRight {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(260px) scale(0.55);
    }

    22% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1.02);
    }

    30% {
        transform: translateY(-50%) translateX(0) scale(1);
    }

    72% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(0) scale(0.9);
    }
}

.ai-rush-tile.from-left {
    animation: aiRushFromLeft 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes aiRushFromLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-260px) scale(0.55);
    }

    22% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1.02);
    }

    30% {
        transform: translateY(-50%) translateX(0) scale(1);
    }

    72% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(0) scale(0.9);
    }
}

/* ------------------------------------------------------------ */
/* AI HEAD SPREAD — when the rush finishes, the head "spreads"   */
/* outward to cover its card with a bright cyan glow.            */
/* ------------------------------------------------------------ */

.ai-head-spread-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            rgba(0, 229, 255, 0.55) 0%,
            rgba(0, 229, 255, 0.22) 30%,
            rgba(0, 229, 255, 0.06) 55%,
            transparent 75%);
    opacity: 0;
    transform: scale(0.25);
    z-index: 4;
    border-radius: 20px;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.ai-head-container.spreading .ai-head-spread-overlay {
    animation: aiHeadSpread 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes aiHeadSpread {
    0% {
        opacity: 0;
        transform: scale(0.25);
    }

    35% {
        opacity: 1;
        transform: scale(1.05);
    }

    65% {
        opacity: 0.75;
        transform: scale(1.35);
    }

    100% {
        opacity: 0;
        transform: scale(1.7);
    }
}

/* Pause the rotation while spreading so the pose holds steady. */
.ai-head-container.spreading .ai-head-3d {
    animation-play-state: paused;
}

/* Briefly brighten and inflate the head itself as it "spreads". */
.ai-head-container.spreading .ai-head-img {
    animation: aiHeadBloom 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes aiHeadBloom {
    0% {
        filter: hue-rotate(-25deg) saturate(1.15) brightness(1.05) contrast(1.05);
        opacity: 0.92;
    }

    40% {
        filter: hue-rotate(-25deg) saturate(1.6) brightness(1.55) contrast(1.1);
        opacity: 1;
    }

    100% {
        filter: hue-rotate(-25deg) saturate(1.15) brightness(1.05) contrast(1.05);
        opacity: 0.92;
    }
}

/* Mobile tightening — fewer tiles, shorter streaks */
@media (max-width: 400px) {
    .ai-rush-tile {
        padding: 5px 10px;
        font-size: 9.5px;
        letter-spacing: 0.6px;
    }

    .ai-rush-tile::after {
        width: 60px;
    }
}