/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* ===== FENX v2 — light two-tone fintech ===== */
    --accent: #4F46E5;            /* indigo signature */
    --accent-dim: #4338CA;
    --accent-soft: #ECEDFD;
    --accent-glow: rgba(79, 70, 229, 0.14);
    --pos: #0FA968;              /* gains */
    --neg: #E5484D;             /* losses */

    --bg: #EEF1F5;              /* app background */
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F4F6F9;
    --bg-card-border: #E6E9EE;
    --surface: #F5F7FA;

    --ink: #101828;            /* primary text */
    --text: #101828;
    --text-2: #5B6675;
    --text-3: #98A1B0;
    --line: #E6E9EE;

    --rail: #101828;           /* dark ink rail */
    --rail-2: #1B2740;
    --rail-w: 68px;

    --nav-h: 64px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --radius: 18px;
    --radius-sm: 12px;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    height: 100%;
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

.hidden { display: none !important; }

/* ===== Global Top Bar ===== */
.global-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-t) + 12px) 16px 12px;
    background: rgba(11, 14, 17, 0.85);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.global-logo {
    font-size: 21px;
    font-weight: 800;
    color: #EAECEF;
    letter-spacing: -0.5px;
}
.global-logo em, .global-logo .x { color: #F0B90B; font-style: normal; }

.global-logo i { margin-right: 3px; font-size: 16px; opacity: 0.85; }

.notif-btn, .admin-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.notif-btn {
    background: var(--bg-card);
    color: var(--text-2);
}

.admin-btn {
    background: #F0B90B;
    color: #0B0E11;
}

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #ef4444;
    border: 2px solid var(--bg, #0B0E11);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: notifPulse 1.8s ease-in-out infinite;
}
@keyframes notifPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ===== Notification Panel — mobile bottom sheet ===== */
.notif-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    max-height: 220px;
    background: var(--bg-elevated);
    border-radius: 14px 14px 0 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
}

.notif-panel.show {
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 7px;
    border-bottom: 1px solid var(--bg-card-border);
    flex-shrink: 0;
}

.notif-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.notif-header button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-2);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-panel::before {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: var(--bg-card-border);
    border-radius: 2px;
    margin: 6px auto 0;
    flex-shrink: 0;
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 10px calc(var(--nav-h) + var(--safe-b) + 6px);
}

.notif-item {
    display: flex;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
}

.notif-item.unread {
    border-color: rgba(212, 162, 9, 0.3);
    background: rgba(212, 162, 9, 0.06);
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    margin-top: 5px;
    flex-shrink: 0;
}

.notif-item.unread .notif-dot {
    background: #D4A209;
}

.notif-content p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.notif-time {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 4px;
    display: block;
}

/* ===== App Shell ===== */
.app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.screen {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
}

/* Applied when any full-screen modal is open — freezes background scroll */
.screen.scroll-locked {
    overflow: hidden;
    /* iOS needs touch-action:none on the overlay, but this prevents keyboard-driven jump */
}

.page {
    padding: 0 16px 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Top Bar (legacy, hidden - using global-bar now) ===== */
.top-bar { display: none; }
.logo { display: none; }

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 20px 0 28px;
}

.hero-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-stars i {
    font-size: 18px;
    color: #F0B90B;
    opacity: 0.5;
    animation: starPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(240, 185, 11, 0.5));
}

.hero-stars i:nth-child(2) { animation-delay: 0.2s; }
.hero-stars i:nth-child(3) { animation-delay: 0.4s; }
.hero-stars i:nth-child(4) { animation-delay: 0.6s; }
.hero-stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes starPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #F8D33A 0%, #F0B90B 50%, #D4A209 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero-sub {
    color: var(--text-3);
    font-size: 14px;
    margin-top: 6px;
    font-weight: 400;
}

/* ===== Bottom Nav ===== */
.nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: calc(var(--nav-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: rgba(11, 14, 17, 0.88);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-3);
    font-size: 9.5px;
    font-weight: 500;
    padding: 6px 7px;
    border-radius: 14px;
    transition: color 0.2s;
    position: relative;
    flex: 1;
    min-width: 0;
}

.nav-icon {
    font-size: 19px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.nav-tab.active {
    color: var(--accent);
}

.nav-tab.active .nav-icon {
    transform: scale(1.1);
}

.nav-tab.active::before {
    content: '';
    position: absolute;
    inset: 2px 0;
    background: rgba(240, 185, 11, 0.12);
    border-radius: 12px;
    z-index: -1;
}

.nav-tab:active {
    transform: scale(0.92);
}

/* ===== Center CTA (Buy) — floating gold action ===== */
.nav-tab-cta {
    color: #0B0E11;
}
.nav-tab-cta .nav-icon {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F8D33A, #F0B90B);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4), 0 0 0 5px rgba(11, 14, 17, 1);
    color: #0B0E11;
    font-size: 22px;
}
.nav-tab-cta span {
    color: #F0B90B;
    font-weight: 700;
}
.nav-tab-cta.active::before {
    display: none;
}
.nav-tab-cta.active .nav-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 26px rgba(240, 185, 11, 0.55), 0 0 0 5px rgba(11, 14, 17, 1);
}
.nav-tab-cta:active .nav-icon {
    transform: scale(0.94);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-icon {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== Glass Card ===== */
.card {
    margin-bottom: 14px;
}

.glass {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-header i {
    color: var(--text-2);
    font-size: 15px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
    opacity: 0.85;
}

.btn-primary {
    background: linear-gradient(135deg, #F0B90B 0%, #D4A209 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(240, 185, 11, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.btn-wallet-home {
    background: #486151;
    border-color: #5a7663;
    color: #fff;
}
.btn-wallet-home:active { background: #3a4f42; }

.btn-admin-blue {
    background: #D4A209;
    color: #fff;
    margin-top: 14px;
    width: auto;
    display: inline-flex;
    padding: 10px 20px;
    font-size: 13px;
}

.action-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== Steps ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}

/* ===== Page Titles ===== */
.page-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #F8D33A 0%, #F0B90B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    margin-bottom: 22px;
}

/* ===== Package Cards ===== */
.packages-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pkg-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.pkg-card.featured {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-card-hover);
}

.pkg-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: var(--bg);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkg-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkg-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    line-height: 1.1;
}

.pkg-price span {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 400;
}

.pkg-features {
    list-style: none;
    margin-bottom: 18px;
}

.pkg-features li {
    font-size: 13px;
    color: var(--text-2);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkg-features li i {
    color: var(--accent);
    font-size: 10px;
    width: 14px;
    text-align: center;
    opacity: 0.6;
}

/* ===== Package Terms ===== */
.pkg-terms-card {
    margin-top: 20px;
}

.pkg-terms-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.pkg-terms-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(212, 162, 9, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8D33A;
    font-size: 16px;
    flex-shrink: 0;
}

.pkg-terms-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.pkg-terms-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pkg-term-item {
    display: flex;
    gap: 12px;
}

.pkg-term-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8D33A;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pkg-term-badge.renew { color: #66BB6A; background: rgba(102, 187, 106, 0.08); }
.pkg-term-badge.protect { color: #FFA726; background: rgba(255, 167, 38, 0.08); }
.pkg-term-badge.upgrade { color: #AB47BC; background: rgba(171, 71, 188, 0.08); }
.pkg-term-badge.referral { color: #26C6DA; background: rgba(38, 198, 218, 0.08); }

.pkg-term-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.pkg-term-content p {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.7;
}

.pkg-terms-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-card-border);
    text-align: center;
}

.pkg-terms-footer p {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.6;
}

/* ===== Referral Code Box ===== */
.referral-code-box {
    text-align: center;
    margin-bottom: 16px;
}

.code-label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.code-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 5px;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

/* ===== Referrals List ===== */
.referrals-list {
    min-height: 80px;
}

.ref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ref-item:last-child { border-bottom: none; }
.ref-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.ref-item-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.ref-item-right { text-align: end; }
.ref-item-commission { font-size: 14px; font-weight: 700; }
.ref-item-commission.earned { color: #66BB6A; }
.ref-item-commission.pending { color: var(--text-3); }
.ref-item-status { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.ref-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.ref-info { flex: 1; }

.ref-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.ref-date {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.ref-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.ref-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #66BB6A;
}

.ref-badge.pending {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-2);
}

/* ===== Withdrawal Rejected Banner ===== */
.wd-rejected-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(239, 83, 80, 0.06);
    border: 1px solid rgba(239, 83, 80, 0.15);
    border-radius: 12px;
    margin-bottom: 14px;
    color: #EF5350;
    font-size: 13px;
}

.wd-rejected-banner i { margin-top: 3px; flex-shrink: 0; }
.wd-rejected-banner strong { display: block; margin-bottom: 2px; }
.wd-rejected-banner p { font-size: 11px; color: var(--text-2); line-height: 1.5; margin: 0; }

/* ===== Transfer Modal ===== */
.transfer-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-2);
}
.transfer-balance-row strong { color: var(--text-1); font-size: 15px; }

.transfer-fee-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tfr-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-2);
}
.tfr-fee strong { color: #ef4444; }
.tfr-net { border-top: 1px solid var(--border); padding-top: 6px; }
.tfr-net strong { color: #66BB6A; font-size: 15px; }

/* Name hint on signup */
.name-id-hint {
    margin-top: 6px;
    font-size: 11.5px;
    color: #F8D33A;
    background: rgba(248, 211, 58,0.08);
    border: 1px solid rgba(248, 211, 58,0.2);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.5;
}
.name-id-hint i { margin-top: 2px; flex-shrink: 0; }

/* ===== IQD Note ===== */
.wd-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-2);
}
.wd-balance-row strong {
    color: #66BB6A;
    font-size: 16px;
    font-weight: 700;
}
.wd-quick-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.wd-quick-btn {
    flex: 1;
    padding: 8px 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.wd-quick-btn:hover { background: rgba(255,255,255,0.12); }
.wd-quick-all {
    border-color: rgba(102,187,106,0.4);
    background: rgba(102,187,106,0.08);
    color: #66BB6A;
}
.wd-quick-all:hover { background: rgba(102,187,106,0.18); }

.wd-iqd-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 167, 38, 0.06);
    border: 1px solid rgba(255, 167, 38, 0.12);
    border-radius: 8px;
    font-size: 11px;
    color: #FFA726;
    flex-wrap: wrap;
}

.wd-iqd-note i { font-size: 12px; flex-shrink: 0; }

.wd-iqd-preview {
    color: var(--text-2);
}

.wd-iqd-preview strong {
    color: #66BB6A;
}

/* Withdrawal fee breakdown */
.wd-fee-breakdown {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}
.wd-fee-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.wd-fee-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-2);
    padding: 3px 0;
}
.wd-fee-row span:last-child { color: #EF5350; }
.wd-fee-net {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 6px;
    padding-top: 6px;
    font-weight: 700;
}
.wd-fee-net span { color: var(--text) !important; }
.wd-fee-net span:last-child { color: #66BB6A !important; }

/* ===== Withdraw Methods ===== */
.wd-methods {
    display: flex;
    gap: 8px;
}

.wd-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    background: var(--surface);
    border: 1.5px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: var(--text-3);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.wd-method i, .wd-method-icon {
    font-size: 18px;
}

.wd-method-icon {
    font-weight: 800;
    font-style: normal;
}

.wd-method.active {
    border-color: #66BB6A;
    color: #66BB6A;
    background: rgba(102, 187, 106, 0.06);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 34px 16px;
}

.empty-state i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 14px;
}

.empty-state p {
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: calc(var(--safe-t) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--accent);
    color: var(--bg);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== Weekly Offers ===== */

@keyframes liveBlink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

.weekly-section {
    margin-bottom: 4px;
}

/* Header bar */
.weekly-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--bg-card-border);
    border-bottom: none;
}

.weekly-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: liveBlink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.weekly-live-label {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    letter-spacing: 1.5px;
}

.weekly-timer-label {
    font-size: 11px;
    color: var(--text-3);
    margin-right: auto;
}

.weekly-countdown {
    display: flex;
    align-items: center;
    gap: 2px;
    direction: ltr;
}

.wcd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    padding: 3px 7px;
    min-width: 30px;
}
.wcd-box span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.wcd-box small { font-size: 8px; color: var(--text-3); margin-top: 1px; }
.wcd-sep { font-size: 12px; color: var(--text-3); padding: 0 1px; margin-bottom: 8px; }

/* Section title banner */
.weekly-fire-banner {
    padding: 18px 16px 14px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-top: none;
    border-bottom: none;
    text-align: center;
}

.wfb-fire { display: none; }

.wfb-text { text-align: center; }

.wfb-top {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 6px;
}

.wfb-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.wfb-sub {
    font-size: 12px;
    color: var(--text-3);
}

/* Weekly package cards */
.weekly-packages-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--bg-card-border);
    border: 1px solid var(--bg-card-border);
    border-top: none;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.weekly-pkg-card {
    background: var(--bg-card);
    padding: 16px;
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.weekly-pkg-card:hover,
.weekly-pkg-card:active {
    background: var(--bg-card-hover);
}
.weekly-pkg-card:last-child {
    border-radius: 0 0 17px 17px;
}

/* Best seller highlight */
.weekly-pkg-best {
    background: linear-gradient(135deg, rgba(255,215,0,0.04) 0%, var(--bg-card) 60%);
    border-right: 3px solid rgba(212,175,55,0.5);
}
.weekly-pkg-best:hover, .weekly-pkg-best:active {
    background: linear-gradient(135deg, rgba(255,215,0,0.07) 0%, var(--bg-card-hover) 60%);
}

.weekly-best-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    color: #C9A84C;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    width: fit-content;
    margin-bottom: -2px;
}

.weekly-pkg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weekly-pkg-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.weekly-pkg-percent {
    font-size: 22px;
    font-weight: 800;
    color: #4ade80;
    line-height: 1;
}
.weekly-pkg-percent small {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-3);
    display: block;
    text-align: center;
}

.weekly-pkg-price {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
    direction: ltr;
    text-align: right;
}
.weekly-pkg-price span { font-size: 11px; }

.weekly-pkg-reward {
    display: flex;
    align-items: baseline;
    gap: 6px;
    direction: ltr;
}
.weekly-pkg-reward i { color: #4ade80; font-size: 12px; }
.weekly-pkg-reward strong { font-size: 22px; font-weight: 800; color: var(--text); }
.weekly-pkg-reward span { font-size: 12px; color: var(--text-3); }

.weekly-pkg-pairs {
    font-size: 11px;
    color: var(--text-3);
}
.weekly-pkg-pairs i { color: var(--text-3); margin-left: 4px; }

.weekly-pkg-btn {
    width: 100%;
    margin-top: 2px;
}
.weekly-pkg-best .weekly-pkg-btn {
    background: var(--accent) !important;
    color: var(--bg) !important;
    border-color: transparent !important;
    font-weight: 700;
}

/* Section divider */
.section-divider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 4px;
}
.section-divider-line {
    flex: 1;
    height: 1px;
    background: var(--bg-card-border);
}
.section-divider-text {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== Weekly Offer Popup ===== */
.weekly-popup-overlay {
    align-items: center !important;
    padding: 20px 16px !important;
}

.weekly-popup-modal {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--bg-card-border) !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 400px !important;
    padding: 24px 20px 24px !important;
    text-align: center;
}

.wpo-fire-row {
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.wpo-badge {
    display: inline-block;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    color: #C9A84C;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.wpo-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.wpo-packages {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--bg-card-border);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    text-align: right;
}

.wpo-pkg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    padding: 11px 14px;
}
.wpo-pkg-hot {
    background: linear-gradient(135deg, rgba(212,175,55,0.04) 0%, var(--bg-card) 60%);
}

.wpo-pkg-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.wpo-pkg-val {
    font-size: 15px;
    font-weight: 700;
    color: #4ade80;
    direction: ltr;
}
.wpo-pkg-val small { font-size: 10px; color: var(--text-3); font-weight: 400; }

.wpo-sub {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 18px;
    line-height: 1.6;
}
.wpo-sub strong { color: var(--text-2); }

.wpo-btns { display: flex; flex-direction: column; gap: 8px; }

.wpo-view-btn { font-weight: 700 !important; }

.wpo-dismiss-btn {
    font-size: 13px;
    color: var(--text-3) !important;
    border-color: transparent !important;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--nav-h) - var(--safe-b) - 40px);
    padding-top: 0;
}

.login-hero {
    text-align: center;
    padding: 0 0 28px;
}

.login-hero h1 {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #F8D33A 0%, #F0B90B 50%, #D4A209 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.login-hero .hero-sub {
    color: var(--text-3);
    font-size: 14px;
    margin-top: 6px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrap {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    transition: border-color 0.2s;
}

.input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
}

.input-wrap i {
    color: var(--text-3);
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    padding: 14px 10px;
    width: 100%;
}

.input-wrap input::placeholder {
    color: var(--text-3);
}

.input-hint {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 5px;
    padding: 0 2px;
}

.toggle-pw {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    padding: 4px;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
}

/* Captcha */
.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.captcha-question span {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.captcha-refresh:active {
    transform: rotate(180deg);
}

/* ===== Country Picker ===== */
.phone-field-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    min-width: 88px;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.country-btn:hover {
    border-color: rgba(255,255,255,0.2);
}

.country-btn #selected-flag {
    font-size: 18px;
    line-height: 1;
}

.country-btn #selected-dial {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.country-btn #country-chevron {
    font-size: 10px;
    color: var(--text-3);
    transition: transform 0.2s;
    margin-left: 2px;
}

.phone-local-wrap {
    flex: 1;
}

.country-dropdown {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    margin-top: 6px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 100;
}

.country-search-input {
    width: 100%;
    background: var(--bg-card);
    border: none;
    border-bottom: 1px solid var(--bg-card-border);
    color: var(--text);
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.country-search-input::placeholder {
    color: var(--text-3);
}

.country-list {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.country-list::-webkit-scrollbar { width: 4px; }
.country-list::-webkit-scrollbar-track { background: transparent; }
.country-list::-webkit-scrollbar-thumb { background: var(--bg-card-border); border-radius: 2px; }

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--bg-card-border);
}

.country-item:last-child { border-bottom: none; }

.country-item:hover {
    background: var(--bg-card);
}

.ci-flag { font-size: 20px; line-height: 1; flex-shrink: 0; }

.ci-name {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ci-dial {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 600;
    flex-shrink: 0;
    direction: ltr;
}

/* Login Tabs */
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--bg-card-border);
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    color: var(--text-3);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab.active {
    background: var(--surface);
    color: var(--text);
}

/* Login error */
.login-error {
    color: #EF5350;
    font-size: 13px;
    text-align: center;
    min-height: 0;
    transition: min-height 0.2s;
}

.login-error:not(:empty) {
    min-height: 20px;
}

/* ===== Wallet Page ===== */
.wallet-header {
    margin-bottom: 20px;
}

.wallet-greeting {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 14px;
}

.wallet-greeting span {
    color: var(--text);
    font-weight: 600;
}

.wallet-balance-box {
    text-align: center;
    padding: 28px 20px;
    position: relative;
}

.wallet-label {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.wallet-balance {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.wallet-currency {
    font-size: 24px;
    color: var(--text-2);
    font-weight: 600;
    vertical-align: top;
    margin-right: 2px;
}

.wallet-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    background: var(--surface);
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.wallet-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wallet-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 16px 10px;
    color: var(--text-2);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.wallet-action-btn:active {
    background: var(--bg-card-hover);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text);
}

/* Transactions */
.tx-list {
    min-height: 60px;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tx-item:last-child { border-bottom: none; }

.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tx-icon.credit {
    background: rgba(76, 175, 80, 0.1);
    color: #66BB6A;
}

.tx-icon.debit {
    background: rgba(239, 83, 80, 0.1);
    color: #EF5350;
}

.tx-info { flex: 1; }

.tx-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.tx-date {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 2px;
}

.tx-amount {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tx-amount.credit { color: #66BB6A; }
.tx-amount.debit { color: #EF5350; }

/* ===== Dashboard ===== */
.invest-prompt-btn {
    margin-bottom: 20px;
    font-size: 14px;
}

.market-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-3);
}

.market-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.market-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    padding: 16px;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.market-card:active {
    background: var(--bg-card-hover);
}

.market-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.market-logo.gold { background: rgba(255, 215, 0, 0.12); color: #FFD700; }
.market-logo.silver { background: rgba(192, 192, 192, 0.15); color: #C0C0C0; }
.market-logo.oil { background: rgba(139, 90, 43, 0.15); color: #D4914A; }
.market-logo.gas { background: rgba(100, 181, 246, 0.12); color: #64B5F6; }
.market-logo.platinum { background: rgba(200, 200, 210, 0.12); color: #B8B8C8; }
.market-logo.copper { background: rgba(205, 127, 50, 0.12); color: #CD7F32; }
.market-logo.coin { background: rgba(255, 255, 255, 0.05); padding: 5px; }
.market-logo.coin img { display: block; }

.market-info {
    flex: 1;
    min-width: 0;
}

.market-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.market-symbol {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}

.market-price-col {
    text-align: right;
    flex-shrink: 0;
}

.market-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.market-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 6px;
}

.market-change.up {
    color: #66BB6A;
    background: rgba(76, 175, 80, 0.1);
}

.market-change.down {
    color: #EF5350;
    background: rgba(239, 83, 80, 0.1);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-overlay.show .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    background: var(--surface);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-asset {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.modal-asset:active {
    background: var(--bg-card-hover);
}

.modal-asset .market-logo {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

.modal-asset-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.modal-asset-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
}

/* ===== Home Balance Block ===== */
.home-balance-block {
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.hbb-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hbb-label {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbb-balance {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.hbb-ref {
    font-size: 12px;
    color: var(--text-3);
}
.hbb-ref strong { color: var(--text-2); letter-spacing: 1px; }

.hbb-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.hbb-mc-circles {
    position: relative;
    width: 44px;
    height: 28px;
}
.hbb-mc-circles::before,
.hbb-mc-circles::after {
    content: '';
    width: 28px; height: 28px;
    border-radius: 50%;
    position: absolute; top: 0;
}
.hbb-mc-circles::before { left: 0; background: #EB001B; opacity: 0.85; }
.hbb-mc-circles::after  { left: 16px; background: #F79E1B; opacity: 0.85; }

.hbb-mc-label {
    font-size: 9px;
    color: var(--text-3);
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.hbb-card-btn {
    width: 100%;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

/* ===== Card Info Modal ===== */
.card-info-box {
    max-width: 360px;
}

/* Visual card */
.vcard {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.vcard::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.vcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.vcard-logo {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.vcard-chip {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
}

.vcard-number {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.vcard-bottom {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.vcard-sub {
    font-size: 8px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.vcard-val {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.vcard-exp { min-width: 52px; }

.vcard-brand-circles {
    margin-right: 0;
    margin-left: auto;
    position: relative;
    width: 44px; height: 28px;
    flex-shrink: 0;
}
.vcard-bc1, .vcard-bc2 {
    width: 28px; height: 28px;
    border-radius: 50%;
    position: absolute; top: 0;
}
.vcard-bc1 { left: 0; background: #EB001B; opacity: 0.85; }
.vcard-bc2 { left: 16px; background: #F79E1B; opacity: 0.85; }

/* Card fields list */
.card-info-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.cif-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.cif-label {
    font-size: 12px;
    color: var(--text-3);
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cif-val {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.cif-copy {
    background: none;
    border: none;
    color: var(--text-3);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
}
.cif-copy:active { color: #66BB6A; }

.card-info-note {
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Keep old mc-card styles for wallet page */
.mc-card-wallet {
    background: linear-gradient(145deg, #181A20 0%, #141033 50%, #1a1540 100%);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.mc-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.mc-logo { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.mc-circles { display: flex; position: relative; width: 44px; height: 28px; }
.mc-circle { width: 28px; height: 28px; border-radius: 50%; position: absolute; top: 0; }
.mc-c1 { left: 0; background: #D4A209; opacity: 0.9; }
.mc-c2 { left: 16px; background: #F8D33A; opacity: 0.7; }
.mc-balance { font-size: 28px; font-weight: 800; color: #fff; position: relative; z-index: 1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mc-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; position: relative; z-index: 1; }
.mc-ref { flex: 1; }
.mc-ref-label { font-size: 9px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.mc-ref-code { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.8); letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.mc-badge { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); padding: 3px 10px; border-radius: 6px; letter-spacing: 1px; }
.mc-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 1; }
.mc-holder-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1.5px; }
.mc-brand { display: flex; align-items: center; gap: 6px; }
.mc-brand span { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.5px; text-transform: lowercase; }
.mc-brand-circles { display: flex; position: relative; width: 32px; height: 20px; }
.mc-bc { width: 20px; height: 20px; border-radius: 50%; position: absolute; top: 0; }
.mc-bc1 { left: 0; background: #EB001B; opacity: 0.85; }
.mc-bc2 { left: 12px; background: #F79E1B; opacity: 0.85; }

/* ===== Daily Wheel Banner (Home) ===== */
.daily-wheel-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid rgba(212, 162, 9, 0.25);
    background: rgba(212, 162, 9, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% { border-color: rgba(212, 162, 9, 0.25); }
    50% { border-color: rgba(212, 162, 9, 0.5); box-shadow: 0 0 16px rgba(212, 162, 9,0.1); }
}

.dwb-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dwb-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(212, 162, 9, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #F8D33A;
    animation: spinSlow 6s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dwb-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.dwb-sub {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 2px;
}

.dwb-arrow {
    color: var(--text-3);
    font-size: 13px;
}

/* ===== Global Wheel Modal ===== */
.wheel-global-card {
    text-align: center;
    padding: 24px 20px calc(32px + var(--safe-b)) !important;
    border-radius: 28px 28px 0 0 !important;
    overflow: visible !important;
}

.wheel-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-modal-top {
    margin-bottom: 4px;
}

.wheel-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 162, 9, 0.12);
    border: 1px solid rgba(212, 162, 9, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #F8D33A;
    margin: 0 auto 10px;
}

.wheel-modal-top h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.wheel-modal-sub {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 3px;
}

.wheel-skip-btn {
    background: none;
    border: none;
    color: var(--text-3);
    font-family: inherit;
    font-size: 13px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

/* ===== Wallet Stats Row ===== */
.wallet-stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-stat-card {
    flex: 1;
    padding: 14px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wsc-icon {
    font-size: 16px;
    color: var(--text-3);
    margin-bottom: 2px;
}

.wheel-stat-icon {
    color: #F8D33A !important;
    animation: spinSlow 6s linear infinite;
}

.wsc-label {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wsc-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.tx-count-badge {
    margin-inline-start: auto;
    background: rgba(255,255,255,0.06);
    color: var(--text-3);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
}

/* ===== Lucky Wheel (canvas area) ===== */
.lucky-wheel-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 16px !important;
}

.wheel-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 12px auto 16px;
}

.wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    color: var(--text);
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
    line-height: 1;
}

#wheel-canvas {
    display: block;
    border-radius: 50%;
    box-shadow: 0 6px 30px rgba(0,0,0,0.5);
}

.spin-btn {
    width: 100%;
    font-size: 15px;
    padding: 14px;
    letter-spacing: 0.3px;
}

.spin-note {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 10px;
    line-height: 1.5;
}

.spin-badge {
    margin-inline-start: auto;
    background: rgba(212, 162, 9, 0.12);
    color: #F8D33A;
    border: 1px solid rgba(212, 162, 9, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes spinWin {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.spin-result-amount {
    font-size: 56px;
    font-weight: 800;
    color: #4ADE80;
    animation: spinWin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    line-height: 1;
    margin-bottom: 10px;
}

.spin-result-amount.jackpot {
    color: #FBBF24;
    font-size: 64px;
}

/* ===== Ratings Modal ===== */
.ratings-modal-inner {
    max-height: 88vh;
    border-radius: 24px 24px 0 0 !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ratings-modal-inner .modal-header {
    padding: 18px 16px 14px;
    margin: 0;
    border-bottom: 1px solid var(--bg-card-border);
    flex-shrink: 0;
}

.ratings-summary {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--bg-card-border);
    flex-shrink: 0;
    align-items: center;
}

.ratings-left {
    text-align: center;
    flex-shrink: 0;
    min-width: 72px;
}

.ratings-big-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.ratings-big-stars {
    color: #FBBF24;
    font-size: 13px;
    margin: 4px 0;
    letter-spacing: 1px;
}

.ratings-total-count {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 500;
}

.ratings-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rbar-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rbar-lbl {
    font-size: 11px;
    color: var(--text-2);
    font-weight: 600;
    width: 10px;
    text-align: right;
}

.rbar-track {
    flex: 1;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}

.rbar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.rbar-5 { background: #22C55E; }
.rbar-4 { background: #86EFAC; }
.rbar-3 { background: #FBBF24; }
.rbar-2 { background: #F97316; }
.rbar-1 { background: #EF5350; }

.rbar-cnt {
    font-size: 10px;
    color: var(--text-3);
    width: 24px;
    text-align: left;
}

.reviews-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.review-item {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.review-item:last-child { border-bottom: none; }

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.review-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.review-date {
    font-size: 10px;
    color: var(--text-3);
}

.review-stars {
    color: #FBBF24;
    font-size: 12px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.review-stars .star-empty {
    color: var(--surface);
}

.review-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.load-more-reviews-btn {
    flex-shrink: 0;
    border-radius: 0 !important;
    border-top: 1px solid var(--bg-card-border) !important;
    margin: 0 !important;
    padding: 14px !important;
}

/* How it works note */
.how-note {
    padding: 12px !important;
    background: rgba(212, 162, 9, 0.05) !important;
    border-color: rgba(212, 162, 9, 0.1) !important;
}

.how-note p {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.7;
}

/* ===== Strategic Partners ===== */
.partners-section {
    margin-top: 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 12px;
    background: var(--surface);
    transition: background 0.2s;
}

.partner-logo i, .partner-logo svg {
    font-size: 22px;
    height: 24px;
}

.partner-logo .fa-ethereum { color: #627EEA; }
.partner-logo .fa-bitcoin { color: #F7931A; }
.partner-logo .fa-oil-well { color: #D4914A; }
.partner-logo .fa-fire-flame-simple { color: #FFD700; }
.partner-logo .fa-gas-pump { color: #4CAF50; }
.partner-logo .fa-coins { color: #FFD700; }
.partner-logo .fa-chart-line { color: #2196F3; }

.partner-logo span {
    font-size: 9px;
    color: var(--text-3);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* ===== News Section ===== */
.news-section { padding-bottom: 4px; }

.news-live-dot {
    width: 8px; height: 8px;
    background: #F8D33A;
    border-radius: 50%;
    margin-right: auto;
    animation: pulse-dot 1.6s infinite;
}

.news-loading {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-3); padding: 20px 0;
    justify-content: center; font-size: 14px;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.news-card {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.news-card:active { background: rgba(255,255,255,0.08); }

.news-img-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 90px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.news-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.news-body {
    flex: 1;
    padding: 10px 10px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-source {
    font-size: 10px;
    font-weight: 600;
    color: #F8D33A;
    background: rgba(248, 211, 58,0.12);
    padding: 2px 7px;
    border-radius: 20px;
}

.news-time {
    font-size: 10px;
    color: var(--text-3);
}

.news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-extra {
    flex-direction: column;
    gap: 12px;
}

.news-show-more {
    width: 100%;
    margin-top: 4px;
    padding: 10px;
    background: rgba(248, 211, 58,0.08);
    border: 1px solid rgba(248, 211, 58,0.25);
    border-radius: 12px;
    color: #F8D33A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.news-show-more:active { background: rgba(248, 211, 58,0.16); }

/* ===== Market Ticker ===== */
.ticker-wrapper {
    width: calc(100% + 32px);
    margin-left: -16px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.ticker-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: tickerScroll 12s linear infinite;
    will-change: transform;
}

.ticker-loading {
    padding: 12px 20px;
    color: var(--text-3);
    font-size: 12px;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

body.rtl .ticker-track {
    animation: tickerScrollRTL 25s linear infinite;
}

@keyframes tickerScrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    flex-shrink: 0;
    border-right: 1px solid var(--bg-card-border);
}

.ticker-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.ticker-logo.coin { background: rgba(255, 255, 255, 0.05); padding: 3px; }
.ticker-logo.coin img { display: block; }
.ticker-logo.gold { background: rgba(255, 215, 0, 0.12); color: #FFD700; }
.ticker-logo.silver { background: rgba(192, 192, 192, 0.15); color: #C0C0C0; }
.ticker-logo.oil { background: rgba(139, 90, 43, 0.15); color: #D4914A; }
.ticker-logo.gas { background: rgba(100, 181, 246, 0.12); color: #64B5F6; }
.ticker-logo.platinum { background: rgba(200, 200, 210, 0.12); color: #B8B8C8; }
.ticker-logo.copper { background: rgba(205, 127, 50, 0.12); color: #CD7F32; }

.ticker-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.ticker-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    white-space: nowrap;
}

.ticker-change {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.ticker-change.up {
    color: #66BB6A;
    background: rgba(76, 175, 80, 0.1);
}

.ticker-change.down {
    color: #EF5350;
    background: rgba(239, 83, 80, 0.1);
}

/* ===== Live Profit Feed ===== */
/* ===== Trading Status Widget ===== */
.trade-widget-card { padding: 0; overflow: hidden; }

.tw-loading {
    padding: 18px;
    text-align: center;
    color: var(--text-3);
    font-size: 16px;
}

.tw-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tw-header {
    padding: 14px 16px 12px;
}

.tw-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.tw-icon-live    { background: rgba(74,222,128,0.1); color: #4ade80; }
.tw-icon-done    { background: rgba(248, 211, 58,0.1); color: #F8D33A; }
.tw-icon-ready   { background: rgba(209,213,219,0.08); color: var(--accent); }
.tw-icon-none    { background: rgba(255,255,255,0.04); color: var(--text-3); }

.tw-icon-live i  { animation: liveBlink 1.2s ease-in-out infinite; }

.tw-info { flex: 1; min-width: 0; }
.tw-title { font-size: 14px; font-weight: 700; color: var(--text); }
.tw-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.tw-action-link { color: var(--text-3); font-size: 12px; }

/* Cooldown timer bar */
.tw-countdown-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px 14px;
    direction: ltr;
    border-top: 1px solid var(--bg-card-border);
}
.tw-cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 44px;
}
.tw-cd-box span { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.tw-cd-box small { font-size: 9px; color: var(--text-3); margin-top: 2px; }
.tw-cd-sep { font-size: 16px; color: var(--text-3); margin-bottom: 14px; }

/* Active rounds */
.tw-rounds {
    border-top: 1px solid var(--bg-card-border);
    padding: 4px 0;
}
.tw-round-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
}
.tw-round-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: liveBlink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
.tw-round-name  { flex: 1; font-weight: 600; color: var(--text); font-size: 13px; }
.tw-round-info  { color: var(--text-3); font-size: 11px; }
.tw-round-profit{ color: #4ade80; font-weight: 700; font-size: 13px; margin-right: 4px; }
.tw-round-timer { color: var(--text-2); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; direction: ltr; }

/* Ready / reward bar */
.tw-reward-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 12px;
    border-top: 1px solid var(--bg-card-border);
    font-size: 12px;
}
.tw-reward-label { color: var(--text-3); }
.tw-reward-val   { font-size: 15px; font-weight: 800; color: #4ade80; margin-right: auto; }
.tw-reward-pairs { color: var(--text-3); font-size: 11px; }

/* ===== Package Daily Reward ===== */
.pkg-daily-reward {
    font-size: 16px;
    font-weight: 700;
    color: #66BB6A;
    margin-bottom: 4px;
}

.pkg-daily-reward i {
    font-size: 13px;
    margin-right: 4px;
}

.pkg-daily-reward span {
    font-size: 12px;
    font-weight: 400;
    color: rgba(102, 187, 106, 0.6);
}

.pkg-pairs {
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 12px;
}

.pkg-pairs i {
    margin-right: 4px;
    font-size: 11px;
}

.pkg-feature-reward {
    color: #66BB6A !important;
    font-weight: 600;
}

.pkg-feature-reward i {
    color: #66BB6A !important;
    opacity: 1 !important;
}

.pkg-feature-pairs {
    color: var(--text) !important;
    font-weight: 600;
}

.pkg-feature-pairs i {
    color: var(--text) !important;
    opacity: 1 !important;
}

/* ===== Package Modal ===== */
.pkg-modal-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.pkg-modal-price span {
    font-size: 14px;
    color: var(--text-3);
    font-weight: 400;
}

.pkg-modal-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pkg-modal-question {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin: 16px 0 12px;
}

.pkg-modal-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== No Package State ===== */
.no-package-state {
    text-align: center;
    padding: 30px 0 20px;
}

.no-pkg-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-3);
}

.no-package-state h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.no-pkg-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 20px;
}

.no-pkg-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.no-pkg-stat { text-align: center; }

.no-pkg-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #66BB6A;
}

.no-pkg-stat-label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.no-pkg-quote {
    font-size: 14px;
    font-style: italic;
    color: var(--text-2);
    margin-bottom: 12px;
    padding: 0 10px;
    line-height: 1.5;
}

.no-pkg-sub {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
    padding: 0 8px;
}

/* ===== Package Banner ===== */
.active-pkg-banner {
    padding: 16px !important;
}

.pkg-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pkg-banner-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.pkg-banner-name i {
    color: #66BB6A;
    margin-right: 6px;
}

.pkg-banner-reward {
    font-size: 14px;
    font-weight: 700;
    color: #66BB6A;
}

.pkg-banner-pairs {
    font-size: 11px;
    color: var(--text-3);
}

/* Locked market card */
.market-card.locked {
    opacity: 0.4;
    border-style: dashed;
    cursor: default;
}

.locked-logo {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-3) !important;
}

/* ===== Trade Cards ===== */
.trade-pick { cursor: pointer; position: relative; }
.trade-pick:active { transform: scale(0.98); }

.best-pick {
    border-color: rgba(102, 187, 106, 0.3) !important;
    background: rgba(102, 187, 106, 0.04) !important;
}

.best-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #66BB6A;
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.trade-meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--bg-card-border);
    width: 100%;
}

.trade-meta-item {
    font-size: 10px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.trade-meta-item i { font-size: 9px; }

.target-tag {
    color: #66BB6A !important;
    font-weight: 600;
}

.market-card.trade-pick {
    flex-wrap: wrap;
}

/* ===== Bot Note ===== */
.bot-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px !important;
}

.bot-note-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(212, 162, 9, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8D33A;
    font-size: 14px;
    flex-shrink: 0;
}

.bot-note p {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.6;
}

/* ===== Trade Execution Screen ===== */
.trade-header {
    text-align: center;
    padding: 18px !important;
    margin-bottom: 12px;
}

.trade-market-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.trade-target {
    font-size: 14px;
    color: #66BB6A;
    font-weight: 600;
    margin-top: 2px;
}

.trade-terminal {
    padding: 14px !important;
    margin-bottom: 12px;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Fira Code', monospace, 'Inter';
}

.term-line {
    font-size: 11px;
    padding: 3px 0;
    line-height: 1.5;
    animation: termFade 0.3s ease;
}

@keyframes termFade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.term-time {
    color: var(--text-3);
    margin-right: 6px;
}

.term-analyzing { color: #F8D33A; }
.term-executing { color: #FFA726; }
.term-closing { color: #66BB6A; }

/* Progress Bar */
.trade-progress-wrap {
    margin-bottom: 12px;
}

.trade-progress-bar {
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.trade-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F8D33A, #66BB6A);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.trade-progress-label {
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
}

/* ETA */
.trade-eta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px !important;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-2);
}

.trade-eta i { color: #FFA726; }

/* Circular Countdown */
.trade-countdown {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.circle-countdown {
    position: relative;
    width: 160px;
    height: 160px;
}

.countdown-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 4;
}

.countdown-circle {
    fill: none;
    stroke: #66BB6A;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 6px rgba(102, 187, 106, 0.4));
}

.countdown-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-timer {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.countdown-label {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Terminal Animations */
.term-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.term-boot { color: #AB47BC; }
.term-boot .term-indicator { background: #AB47BC; box-shadow: 0 0 4px #AB47BC; animation: indicatorPulse 0.6s ease infinite; }
.term-analyzing .term-indicator { background: #F8D33A; box-shadow: 0 0 4px #F8D33A; }
.term-executing .term-indicator { background: #FFA726; box-shadow: 0 0 4px #FFA726; animation: indicatorPulse 0.8s ease infinite; }
.term-closing .term-indicator { background: #66BB6A; box-shadow: 0 0 4px #66BB6A; }

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes termFade {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Used Market */
.used-market {
    opacity: 0.4;
    pointer-events: auto;
    cursor: not-allowed;
}

.used-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--surface);
    color: var(--text-3);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Cooldown Banner */
.cooldown-banner {
    text-align: center;
    padding: 30px 20px !important;
}

.cooldown-icon {
    font-size: 36px;
    color: #FFA726;
    margin-bottom: 12px;
    animation: cooldownPulse 2s ease-in-out infinite;
}

@keyframes cooldownPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cooldown-banner h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.cooldown-banner p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
}

.cooldown-time {
    font-size: 32px;
    font-weight: 800;
    color: #FFA726;
    margin: 12px 0;
    font-variant-numeric: tabular-nums;
}

.cooldown-sub {
    font-size: 11px;
    color: var(--text-3) !important;
    margin-top: 6px;
}

/* Trade Success Modal */
.trade-success-modal {
    text-align: center;
    padding: 30px 20px !important;
}

.trade-success-icon {
    font-size: 50px;
    color: #66BB6A;
    margin-bottom: 12px;
}

.trade-success-modal h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.trade-success-amount {
    font-size: 36px;
    font-weight: 800;
    color: #66BB6A;
    margin-bottom: 14px;
}

.trade-success-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 8px;
}

.trade-success-sub {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

/* ===== Market Loading Candles ===== */
.market-loading-candles {
    text-align: center;
    padding: 30px 20px;
}

.loading-candles-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 60px;
    margin-bottom: 14px;
}

.lc {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12px;
    animation: lcBounce 1.2s ease-in-out infinite;
}

.lc::before {
    content: '';
    width: 2px;
    height: var(--wick-h, 8px);
    border-radius: 1px;
}

.lc::after {
    content: '';
    width: 12px;
    height: var(--body-h, 20px);
    border-radius: 2px;
}

@keyframes lcBounce {
    0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

.market-loading-candles p {
    font-size: 12px;
    color: var(--text-3);
}

/* Confirm modal candles */
.confirm-candles {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 50px;
    margin-bottom: 14px;
}

/* ===== Running Trade Card ===== */
.running-trade {
    border-color: rgba(255, 167, 38, 0.2) !important;
    background: rgba(255, 167, 38, 0.04) !important;
    position: relative;
}

.running-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 167, 38, 0.15);
    color: #FFA726;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.running-timer {
    text-align: center;
    flex-shrink: 0;
}

.running-time {
    font-size: 20px;
    font-weight: 800;
    color: #FFA726;
    font-variant-numeric: tabular-nums;
}

.running-label {
    font-size: 9px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== After Trade Prompt ===== */
.trade-after-prompt {
    margin-top: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.trade-after-prompt p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ===== Candlestick Chart ===== */
.candle-chart-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 80px;
    padding: 10px 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10px;
    animation: candleAppear 0.4s ease;
}

.candle::before {
    content: '';
    width: 2px;
    height: var(--wick-h, 8px);
    border-radius: 1px;
}

.candle::after {
    content: '';
    width: 10px;
    height: var(--body-h, 20px);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.candle-green::before { background: #4CAF50; }
.candle-green::after { background: #4CAF50; box-shadow: 0 0 6px rgba(76, 175, 80, 0.3); }
.candle-red::before { background: #EF5350; }
.candle-red::after { background: #EF5350; box-shadow: 0 0 6px rgba(239, 83, 80, 0.3); }

@keyframes candleAppear {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

.candle-pop {
    animation: candlePop 0.4s ease;
}

@keyframes candlePop {
    0% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1.15); }
    100% { transform: scaleY(1); opacity: 1; }
}

/* ===== Select Input ===== */
.select-wrap select {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    padding: 14px 10px;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.select-wrap select option {
    background: var(--bg-card);
    color: var(--text);
}

/* ===== Admin Page ===== */
.admin-reward-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-card, .admin-wd-card {
    margin-bottom: 10px;
    padding: 14px !important;
}

.admin-user-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.admin-user-info { flex: 1; min-width: 0; }

.admin-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tag {
    font-size: 9px;
    background: #D4A209;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.ref-used-tag {
    background: rgba(212, 162, 9,0.1);
    color: #F8D33A;
    border-color: rgba(212, 162, 9,0.2) !important;
}

.admin-user-phone {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}

.admin-user-balance, .admin-wd-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

.admin-user-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--text-3);
}

.admin-user-meta i {
    margin-right: 3px;
    font-size: 10px;
}

.admin-section {
    min-height: 60px;
}

/* ===== Ticket Cards ===== */
.admin-ticket-card { margin-bottom: 10px; padding: 14px !important; }

.ticket-process-form { margin-top: 8px; }

.admin-action-btn {
    background: none;
    border: 1px solid rgba(102, 187, 106, 0.3);
    color: #66BB6A;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    margin-left: auto;
}

.admin-action-btn.approve:active { background: rgba(102, 187, 106, 0.1); }

.admin-action-btn.reject {
    border-color: rgba(239, 83, 80, 0.3);
    color: #EF5350;
}

.admin-action-btn.unlock-btn {
    border-color: rgba(248, 211, 58, 0.3);
    color: #F8D33A;
    margin-left: auto;
}

.admin-action-btn.lock-btn {
    border-color: rgba(239, 83, 80, 0.3);
    color: #EF5350;
    margin-left: auto;
}

/* ===== Ticket Success ===== */
.ticket-success {
    text-align: center;
    padding: 20px 0;
}

.ticket-success i.fa-check-circle {
    font-size: 48px;
    color: #66BB6A;
    margin-bottom: 10px;
}

.ticket-success h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.ticket-success p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ===== Purchase Section ===== */
.purchase-divider {
    height: 1px;
    background: var(--bg-card-border);
    margin: 16px 0;
}

.purchase-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.purchase-title i {
    color: var(--accent-dim);
    margin-right: 6px;
}

.purchase-sub {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.5;
}

/* ===== More Page ===== */
.more-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.more-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px !important;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

.more-item:active { background: var(--bg-card-hover); }

.more-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-2);
    flex-shrink: 0;
}

.support-icon { background: rgba(212, 162, 9, 0.1); color: #F8D33A; }
.about-icon { background: rgba(255, 215, 0, 0.08); color: #FFD700; }

.more-info { flex: 1; }
.more-label { font-size: 14px; font-weight: 600; }
.more-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.more-arrow { color: var(--text-3); font-size: 12px; }

/* ===== Support Page ===== */
.support-hero {
    text-align: center;
    padding: 20px 0 24px;
}

.support-icon-big {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 162, 9, 0.1);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #F8D33A;
}

.support-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

.support-note {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 12px;
}

/* ===== Settings Page ===== */
.lang-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.lang-option .lang-check {
    display: none;
    color: #66BB6A;
}

.lang-option.active {
    border-color: #66BB6A;
}

.lang-option.active .lang-check {
    display: inline;
}

/* ===== RTL Support ===== */
body.rtl {
    font-family: 'Cairo', 'Inter', -apple-system, sans-serif;
}

body.rtl .logo i,
body.rtl .global-logo i { margin-right: 0; margin-left: 4px; }

body.rtl .more-arrow { transform: rotate(180deg); }

body.rtl .term-time { margin-right: 0; margin-left: 6px; }
body.rtl .term-indicator { margin-right: 0; margin-left: 4px; }

body.rtl .card-header i { margin-right: 0; }
body.rtl .step-num { margin-right: 0; }

body.rtl .input-wrap i:first-child { margin-right: 0; }

body.rtl .notif-dot { margin-right: 0; }

/* ===== Admin Quick Actions ===== */
.admin-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.admin-quick-select {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    padding: 8px 10px;
    appearance: none;
    -webkit-appearance: none;
}

.admin-quick-select option {
    background: var(--bg-card);
    color: var(--text);
}

.admin-quick-btn {
    background: #D4A209;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.admin-quick-btn:active {
    opacity: 0.8;
}

/* ===== Account Page ===== */
.account-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.acc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-card-border);
}

.acc-row:last-child { border-bottom: none; }

.acc-label {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-label i { font-size: 11px; width: 14px; text-align: center; }

.acc-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.acc-code {
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    color: #66BB6A;
}

/* ===== Responsive ===== */
@media (max-width: 380px) {
    .hero h1 { font-size: 24px; }
    .stat-value { font-size: 20px; }
    .pkg-price { font-size: 28px; }
    .code-value { font-size: 24px; letter-spacing: 3px; }
}

@media (min-width: 431px) {
    .app {
        border-left: 1px solid rgba(255, 255, 255, 0.03);
        border-right: 1px solid rgba(255, 255, 255, 0.03);
    }
}

/* ===== Account Security ===== */
.acc-security-list { display: flex; flex-direction: column; }

.acc-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: inherit;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}
.acc-security-row:last-child { border-bottom: none; }

.acc-security-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acc-security-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(248, 211, 58,0.1);
    color: #F8D33A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.acc-security-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    text-align: right;
}

.acc-security-sub {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
    text-align: right;
}

.acc-security-arrow { color: var(--text-3); font-size: 12px; }

/* Change password modal */
.chpw-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(248, 211, 58,0.1);
    color: #F8D33A;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.chpw-msg {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ===== Floating Support Button ===== */
.support-fab {
    position: fixed;
    bottom: 90px;
    left: 18px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 18px rgba(37,211,102,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}
.support-fab:active,
.support-fab.active { transform: scale(0.92); box-shadow: 0 2px 10px rgba(37,211,102,0.3); }

.support-fab-icon {
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s;
}
.support-fab.active .support-fab-icon { transform: rotate(15deg); }

.support-fab-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid #25D366;
    border-radius: 50%;
    animation: pulse-dot 1.8s infinite;
}

.support-bubble {
    position: fixed;
    bottom: 152px;
    left: 14px;
    width: 260px;
    border-radius: 18px;
    padding: 16px;
    z-index: 998;
    transform: scale(0.85) translateY(12px);
    transform-origin: bottom left;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), opacity 0.2s;
}
.support-bubble.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.support-bubble-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.support-bubble-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-bubble-info { flex: 1; }
.support-bubble-name { font-size: 13px; font-weight: 700; color: var(--text-1); }
.support-bubble-status { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 5px; margin-top: 1px; }

.support-online-dot {
    width: 7px; height: 7px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.6s infinite;
}

.support-bubble-close {
    background: none; border: none;
    color: var(--text-3); font-size: 16px;
    cursor: pointer; padding: 4px;
}

.support-bubble-msg {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.support-bubble-actions {
    display: flex;
    gap: 8px;
}

.support-bubble-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.support-bubble-btn:active { opacity: 0.75; }

.support-tg {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
}
.support-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

/* ===== About Section ===== */
.about-section { padding: 8px 0 24px; }

.about-hero {
    border-radius: 18px;
    padding: 28px 20px 20px;
    text-align: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(240, 185, 11, 0.2);
}
.about-logo-stars { color: #F0B90B; font-size: 18px; letter-spacing: 4px; margin-bottom: 8px; }
.about-brand { font-size: 22px; font-weight: 800; color: var(--text); }
.about-tagline { font-size: 13px; color: var(--text-3); margin-top: 4px; margin-bottom: 16px; }
.about-badges-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.about-badge {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px; color: var(--text-2);
}
.about-badge i { font-size: 11px; color: #F0B90B; }

.about-card { margin-bottom: 12px; padding: 18px 16px; }
.about-card p { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.about-card-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: var(--text);
    margin-bottom: 12px;
}
.about-card-header i { color: #F0B90B; font-size: 16px; }

.about-features-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-top: 14px;
}
.about-feature {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px; padding: 10px 12px;
    font-size: 12px; color: var(--text-2);
}
.about-feature i { color: #66BB6A; font-size: 14px; flex-shrink: 0; }

.about-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-top: 14px;
}
.about-stat { text-align: center; }
.about-stat-val { font-size: 16px; font-weight: 800; color: #F0B90B; }
.about-stat-lbl { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.about-footer {
    text-align: center; padding: 20px 0 8px;
    font-size: 12px; color: var(--text-3);
}

/* ===== Page Loader ===== */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity 0.4s ease;
    pointer-events: all;
}
#page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loader-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.07);
    border-top-color: var(--accent);
    animation: loader-spin 0.8s linear infinite;
}
@keyframes loader-spin {
    to { transform: rotate(360deg); }
}
.loader-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-3);
    letter-spacing: 0.5px;
}
.loader-logo-text i {
    color: var(--accent);
    margin-left: 4px;
}

/* ===== TOP PRO Mastercard Block ===== */
.mc-card-block {
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,179,0,0.25);
    background: linear-gradient(135deg, rgba(255,179,0,0.06) 0%, rgba(26,34,54,0.6) 100%);
    overflow: hidden;
}
.mc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}
.mc-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mc-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6D00, #FFB300);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #000; flex-shrink: 0;
}
.mc-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFB300;
}
.mc-card-sub {
    font-size: 11px;
    color: rgba(255,200,100,0.6);
    margin-top: 2px;
}
.mc-learn-toggle {
    color: rgba(255,179,0,0.5);
    font-size: 13px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.mc-card-top:hover .mc-learn-toggle { color: #FFB300; }
.mc-card-details {
    padding: 0 16px 14px;
    border-top: 1px solid rgba(255,179,0,0.1);
}
.mc-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,220,150,0.8);
    padding: 6px 0;
    line-height: 1.5;
    direction: rtl;
}
.mc-detail-row i {
    color: #FFB300;
    font-size: 11px;
    margin-top: 2px;
    flex-shrink: 0;
}
.mc-detail-note {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255,179,0,0.07);
    border: 1px solid rgba(255,179,0,0.15);
    border-radius: 8px;
    font-size: 11px;
    color: rgba(255,200,100,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}
.mc-detail-note i { color: #FFB300; flex-shrink: 0; }
.feat-mc { color: #FFB300 !important; }

/* ===== Platform Update Notification ===== */
.upd-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    transition: opacity 0.35s ease;
}
.upd-card {
    width: 100%;
    max-width: 430px;
    background: linear-gradient(160deg, #0B0E11 0%, #181A20 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.upd-version-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.upd-version-badge {
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    color: #818CF8;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 12px;
    letter-spacing: 0.3px;
}
.upd-new-tag {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 20px;
    padding: 3px 9px;
    letter-spacing: 0.5px;
}
.upd-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(240, 185, 11,0.15));
    border: 1px solid rgba(99,102,241,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #818CF8;
    margin-bottom: 14px;
}
.upd-title {
    font-size: 22px;
    font-weight: 900;
    color: #F0F0F0;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.upd-sub {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 20px;
}
.upd-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}
.upd-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    direction: rtl;
}
.upd-item-mc {
    background: rgba(255,179,0,0.06);
    border-color: rgba(255,179,0,0.2);
}
.upd-item-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(99,102,241,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #818CF8;
    flex-shrink: 0;
}
.upd-item-icon.mc {
    background: linear-gradient(135deg,#FF6D00,#FFB300);
    color: #000;
}
.upd-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #F0F0F0;
    margin-bottom: 3px;
}
.upd-item-sub {
    font-size: 11px;
    color: var(--text-2);
    line-height: 1.5;
}
.upd-ok-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366F1, #F0B90B);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    padding: 15px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.15s;
}
.upd-ok-btn:active { transform: scale(0.97); opacity: 0.9; }

/* ===== Why FenX (redesigned trust block) ===== */
.wf-list { display: flex; flex-direction: column; gap: 10px; }
.wf-row {
    display: flex; align-items: center; gap: 13px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
}
.wf-ic {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #F0B90B; background: rgba(240,185,11,0.1);
}
.wf-title { font-size: 14px; font-weight: 700; color: #EAECEF; margin-bottom: 2px; }
.wf-sub { font-size: 12px; color: #848E9C; line-height: 1.5; }

/* ===== Trusted Exchanges Slideshow (boxless, wide) ===== */
.exch-card { background: transparent; border: none; padding: 0; margin-bottom: 22px; }
.exch-label { text-align: center; font-size: 12px; color: #848E9C; margin-bottom: 12px; letter-spacing: 0.3px; }
.exch-slider { position: relative; width: 100%; height: 150px; border-radius: 14px; overflow: hidden; }
.exch-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 11px;
    opacity: 0; transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.exch-slide.active { opacity: 1; transform: scale(1); }
.exch-gif { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.exch-fallback { align-items: center; gap: 11px; }
.exch-name { font-size: 28px; font-weight: 800; color: #EAECEF; letter-spacing: -0.5px; }
.exch-bybit span { color: #F7A600; }
.exch-okx { letter-spacing: 1px; }
.exch-okx span { color: #F0B90B; }
.exch-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.exch-dot { width: 6px; height: 6px; border-radius: 50%; background: #2B3139; transition: background 0.3s, width 0.3s; }
.exch-dot.active { background: #F0B90B; width: 18px; border-radius: 3px; }

/* ===== Wallet — flat balance strip (redesigned) ===== */
.wallet-balance-strip {
    text-align: center;
    padding: 30px 16px 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wbs-label { font-size: 11px; color: #848E9C; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.wbs-amount {
    font-size: 46px; font-weight: 800; color: #EAECEF;
    letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums;
}
.wbs-ref {
    margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; color: #848E9C;
    background: rgba(240,185,11,0.06); border: 1px solid rgba(240,185,11,0.16);
    padding: 7px 14px; border-radius: 20px;
}
.wbs-ref i { font-size: 10px; color: #F0B90B; }
.wbs-ref strong { color: #F0B90B; letter-spacing: 1px; }

/* Wallet stat cards — flatter, gold accent */
.wallet-page .wallet-stat-card {
    background: #1E2026;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 16px 10px;
}
.wallet-page .wallet-stat-card .wsc-icon { color: #F0B90B; }

/* Wallet action buttons — squarer, gold icon tiles */
.wallet-page .action-icon {
    border-radius: 12px;
    background: rgba(240,185,11,0.1);
    color: #F0B90B;
}
.wallet-page .wallet-action-btn { border-radius: 14px; }

/* ===== Home quick action tiles (redesigned) ===== */
.home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.ha-tile {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 16px 8px;
    background: #16191E; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; text-decoration: none;
    color: #C7CBD1; font-size: 12px; font-weight: 600;
    transition: transform 0.12s, border-color 0.18s;
    -webkit-tap-highlight-color: transparent; text-align: center;
}
.ha-tile:active { transform: scale(0.96); }
.ha-ic {
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #F0B90B; background: rgba(240,185,11,0.1);
}
/* Primary tile = gold filled */
.ha-primary { background: linear-gradient(160deg, rgba(240,185,11,0.16), rgba(240,185,11,0.05)); border-color: rgba(240,185,11,0.35); color: #F0B90B; }
.ha-primary .ha-ic { background: linear-gradient(135deg, #F8D33A, #F0B90B); color: #0B0E11; }

/* ===== Home hero emblem (new) ===== */
.hero-emblem {
    position: relative; width: 78px; height: 78px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    animation: emblemFloat 3.6s ease-in-out infinite;
}
.hero-emblem::before {
    content: ''; position: absolute; inset: 9px; border-radius: 50%;
    background: linear-gradient(145deg, #F8D33A, #F0B90B);
    box-shadow: 0 10px 34px rgba(240,185,11,0.5);
}
.hero-emblem i { position: relative; z-index: 1; font-size: 32px; color: #0B0E11; }
.he-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(240,185,11,0.4);
    animation: emblemPulse 2.6s ease-in-out infinite;
}
@keyframes emblemFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes emblemPulse { 0%,100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.12); opacity: 1; } }

/* ===== Balance card v2 (redesigned) ===== */
.balance-v2 {
    position: relative; margin-bottom: 18px; padding: 26px 22px 22px;
    border-radius: 22px; text-align: center; overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(240,185,11,0.10), transparent 60%),
        linear-gradient(160deg, #1C1F26 0%, #121419 100%);
    border: 1px solid rgba(240,185,11,0.22);
}
.bv2-glow {
    position: absolute; top: -64px; left: 50%; transform: translateX(-50%);
    width: 220px; height: 130px;
    background: radial-gradient(circle, rgba(240,185,11,0.2), transparent 70%);
    pointer-events: none;
}
.bv2-top { font-size: 12px; color: #9AA0A6; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.bv2-top i { color: #F0B90B; }
.bv2-amount { font-size: 42px; font-weight: 800; color: #EAECEF; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.bv2-ref {
    margin-top: 16px; display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; color: #9AA0A6;
    background: rgba(240,185,11,0.08); border: 1px solid rgba(240,185,11,0.2);
    padding: 7px 14px; border-radius: 999px;
}
.bv2-ref i { color: #F0B90B; font-size: 11px; }
.bv2-ref strong { color: #F0B90B; letter-spacing: 1px; }
.bv2-copy { background: none; border: none; color: #F0B90B; cursor: pointer; padding: 2px 2px; font-size: 13px; -webkit-tap-highlight-color: transparent; }
.bv2-copy:active { transform: scale(0.88); }

/* ===== Draggable Support FAB ===== */
.support-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--nav-h) + 22px + var(--safe-b));
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(145deg, #F8D33A, #F0B90B);
    color: #0B0E11; display: flex; align-items: center; justify-content: center;
    font-size: 21px; text-decoration: none;
    box-shadow: 0 8px 24px rgba(240,185,11,0.45);
    z-index: 9500; cursor: grab; touch-action: none;
    -webkit-tap-highlight-color: transparent;
    animation: fabBob 3s ease-in-out infinite;
}
.support-fab:active { cursor: grabbing; }
@keyframes fabBob { 0%,100% { box-shadow: 0 8px 24px rgba(240,185,11,0.4); } 50% { box-shadow: 0 12px 30px rgba(240,185,11,0.6); } }

/* ====================================================================
   FENX v2 — Light two-tone fintech · Left rail shell · Design system
   ==================================================================== */
#page-loader { background: #FFFFFF !important; color: var(--ink); }
.loader-logo-text { color: var(--ink) !important; }
.loader-ring { border-color: var(--accent) transparent var(--accent) transparent !important; }

/* ---- Shell ---- */
.fx-shell { min-height: 100%; }
.fx-rail {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--rail-w);
    background: var(--rail);
    display: flex; flex-direction: column; align-items: center;
    padding: calc(var(--safe-t) + 12px) 0 calc(var(--safe-b) + 12px);
    z-index: 200;
}
.fx-brand {
    width: 40px; height: 40px; border-radius: 13px;
    background: linear-gradient(150deg, #6D5EF6, #4F46E5);
    color: #fff; font-weight: 900; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; margin-bottom: 18px; flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(79,70,229,0.45);
}
.fx-rail-nav { display: flex; flex-direction: column; gap: 4px; width: 100%; align-items: center; flex: 1; }
.fx-rail-item {
    position: relative; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0; text-decoration: none;
    color: rgba(255,255,255,0.5); font-size: 9px; font-weight: 600;
    -webkit-tap-highlight-color: transparent; transition: color 0.15s;
}
.fx-rail-item i { font-size: 18px; }
.fx-rail-item span { letter-spacing: 0.1px; }
.fx-rail-item:hover { color: rgba(255,255,255,0.8); }
.fx-rail-item.active { color: #fff; }
.fx-rail-item.active::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    background: var(--accent); border-radius: 0 4px 4px 0;
}
.fx-rail-item.active i {
    background: rgba(124,92,246,0.22); color: #fff;
    width: 38px; height: 30px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.fx-rail-foot {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--rail-2); color: #fff; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    margin-top: 8px; border: 2px solid rgba(255,255,255,0.12);
}

/* ---- Canvas ---- */
.fx-canvas { margin-left: var(--rail-w); min-height: 100vh; display: flex; flex-direction: column; }
.fx-topline {
    position: sticky; top: 0; z-index: 90;
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(var(--safe-t) + 14px) 18px 12px;
    background: rgba(238,241,245,0.82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.fx-topline-brand { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.4px; }
.fx-topline-brand b { color: var(--accent); }
.fx-topline-actions { display: flex; align-items: center; gap: 10px; }
.fx-icon-btn {
    position: relative; width: 40px; height: 40px; border-radius: 13px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2, #5B6675);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fx-canvas-full { margin-left: 0; }
.screen { flex: 1; padding: 6px 18px 42px; max-width: 760px; margin: 0 auto; width: 100%; }
.fx-canvas-full .screen { padding: 0; max-width: none; }

/* ---- Core components ---- */
.fx-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.fx-section { margin-top: 22px; }
.fx-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fx-section-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.fx-section-link { font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.fx-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }

.fx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 14px; border: none;
    font-family: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer;
    text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform 0.12s, filter 0.15s;
}
.fx-btn:active { transform: scale(0.98); }
.fx-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,0.28); }
.fx-btn-primary:active { filter: brightness(0.96); }
.fx-btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.fx-btn-block { width: 100%; }

.fx-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.fx-pill-pos { background: rgba(15,169,104,0.1); color: var(--pos); }
.fx-pill-neg { background: rgba(229,72,77,0.1); color: var(--neg); }
.fx-pill-soft { background: var(--accent-soft); color: var(--accent); }

.fx-grid { display: grid; gap: 12px; }
.fx-grid-2 { grid-template-columns: 1fr 1fr; }

/* ===== v2 — re-theme legacy components to light fintech ===== */
.btn-primary { background: var(--accent) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(79,70,229,0.26) !important; }
.btn-ghost { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }
.btn-wallet-home { background: var(--accent-soft) !important; color: var(--accent) !important; border: none !important; }
.btn-wallet-home:active { background: #E0E2FB !important; }

.page-title { background: none !important; -webkit-text-fill-color: var(--ink) !important; color: var(--ink) !important; text-align: right; font-size: 22px; letter-spacing: -0.5px; margin-bottom: 4px; }
.page-subtitle { text-align: right; color: var(--text-2); margin-bottom: 20px; }

.card.glass, .glass, .stat-card { box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.card-header h3, .modal-header h3 { color: var(--ink); }
.card-header i { color: var(--accent); }

.modal { background: #fff; color: var(--ink); }
.modal.glass, .modal .glass { background: #fff; }
.modal-close { color: var(--text-2); }
.modal-overlay { background: rgba(16,24,40,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.notif-panel { background: #fff; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -12px 40px rgba(16,24,40,0.14); }
.notif-header h3 { color: var(--ink); }
.notif-item { border-color: var(--line) !important; }
.notif-item p { color: var(--ink); }

.empty-state i { color: var(--line); }
.empty-state p { color: var(--text-3); }

.input-wrap { background: var(--surface); border: 1px solid var(--line); }
.input-wrap input { color: var(--ink); }
.input-wrap input::placeholder { color: var(--text-3); }
.input-wrap i { color: var(--text-3); }
.input-group label { color: var(--text-2); }

.stat-value { color: var(--ink); }
.stat-label { color: var(--text-2); }
.live-dot, .ticker-change.up { }
.toast { background: var(--ink) !important; color: #fff !important; }

/* support fab → indigo */
.support-fab { background: linear-gradient(145deg, #6D5EF6, #4F46E5) !important; color: #fff !important; box-shadow: 0 8px 24px rgba(79,70,229,0.4) !important; }

/* ===== v2 — Session (dashboard) light theme ===== */
.sesh-h1 { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.6px; margin: 6px 2px 16px; }
.sesh-empty { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 22px; text-align: center; box-shadow: 0 6px 20px rgba(16,24,40,0.06); }
.sesh-empty-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.sesh-empty h2 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.no-pkg-text { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.sesh-empty-stats { display: flex; gap: 12px; margin-top: 18px; }
.no-pkg-stat { flex: 1; background: var(--surface); border-radius: 14px; padding: 14px; }
.no-pkg-stat-val { font-size: 22px; font-weight: 800; color: var(--accent); }
.no-pkg-stat-label { font-size: 11px; color: var(--text-2); margin-top: 4px; }

.sesh-pick-head { margin: 22px 2px 14px; }
.sesh-pick-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.sesh-pick-sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }

.bot-note { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid #DEE0FB; border-radius: 16px; padding: 14px; margin-top: 14px; }
.bot-note-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.bot-note p { font-size: 12.5px; color: var(--accent-dim); line-height: 1.7; }
.active-pkg-banner { color: var(--ink); }

/* Market cards (JS-rendered) → light */
.market-grid { display: flex; flex-direction: column; gap: 10px; }
.market-card { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.market-card.best-pick { border-color: var(--accent) !important; box-shadow: 0 8px 22px rgba(79,70,229,0.14); }
.market-card.used-market { opacity: 0.55; }
.market-logo, .market-logo.coin { background: var(--surface) !important; }
.market-name { color: var(--ink) !important; }
.market-symbol { color: var(--text-2) !important; }
.market-price { color: var(--ink) !important; }
.market-change.up { color: var(--pos) !important; }
.market-change.down { color: var(--neg) !important; }
.trade-meta { color: var(--text-2); }
.trade-meta-item { background: var(--surface) !important; color: var(--text-2) !important; }
.trade-meta-item.target-tag { background: rgba(15,169,104,0.1) !important; color: var(--pos) !important; }
.trade-meta-item i { color: var(--accent) !important; }
.best-badge { background: var(--accent) !important; color: #fff !important; }
.used-badge { background: var(--surface) !important; color: var(--text-2) !important; }
.running-trade { border-color: var(--accent) !important; }
.running-badge { background: var(--accent-soft) !important; color: var(--accent) !important; }
.running-time { color: var(--ink) !important; }
.running-label { color: var(--text-2) !important; }

/* Trade screen → light */
.trade-header, .trade-terminal, .trade-eta, .candle-chart-wrap { background: #fff !important; border: 1px solid var(--line) !important; color: var(--ink); }
.trade-market-name { color: var(--ink) !important; }
.trade-target { color: var(--pos) !important; }
.trade-progress-bar { background: var(--surface) !important; }
.trade-progress-fill { background: var(--accent) !important; }
.trade-progress-label { color: var(--text-2) !important; }
.trade-terminal { color: var(--text-2) !important; }
.countdown-bg { stroke: var(--line) !important; }
.countdown-circle { stroke: var(--accent) !important; }
.countdown-timer { color: var(--ink) !important; }
.countdown-label { color: var(--text-2) !important; }
.trade-success-amount, #success-amount, #confirm-profit { color: var(--pos) !important; }
.trade-success-icon { color: var(--pos) !important; }
