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

:root {
    --accent: #D1D5DB;
    --accent-dim: #9CA3AF;
    --accent-glow: rgba(255, 255, 255, 0.06);
    --bg: #0B1120;
    --bg-elevated: #101829;
    --bg-card: #141E33;
    --bg-card-hover: #1A2540;
    --bg-card-border: rgba(255, 255, 255, 0.06);
    --text: #F0F0F0;
    --text-2: #9CA3AF;
    --text-3: #5B6578;
    --surface: #1C2A45;
    --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: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -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) + 10px) 16px 10px;
    background: linear-gradient(to bottom, var(--bg) 80%, transparent);
}

.global-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

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

.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: #2563EB;
    color: #fff;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #EF5350;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Notification Panel ===== */
.notif-panel {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 100vh;
    background: var(--bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.notif-panel.show {
    opacity: 1;
    pointer-events: all;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-t) + 14px) 16px 14px;
}

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

.notif-header button {
    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;
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 24px;
}

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

.notif-item.unread {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 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: #2563EB;
}

.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);
}

.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: var(--accent);
    opacity: 0.4;
    animation: starPulse 2.5s ease-in-out infinite;
}

.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;
    color: var(--accent);
    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(18, 18, 18, 0.95);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    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: 10px;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 14px;
    transition: color 0.2s;
    position: relative;
}

.nav-icon {
    font-size: 20px;
    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;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

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

/* ===== 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: var(--accent);
    color: var(--bg);
}

.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: #2563EB;
    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;
    color: var(--accent);
    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(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
    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: #60A5FA;
    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: #60a5fa;
    background: rgba(96,165,250,0.08);
    border: 1px solid rgba(96,165,250,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);
}

/* ===== 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: 32px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.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);
}

/* 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-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;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px;
    padding-bottom: calc(20px + 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;
}

.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, #0f1a30 0%, #141E33 50%, #1a2540 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: #2563EB; opacity: 0.9; }
.mc-c2 { left: 16px; background: #60A5FA; 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(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: bannerPulse 3s ease-in-out infinite;
}

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

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

.dwb-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #60A5FA;
    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(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #60A5FA;
    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: #60A5FA !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(37, 99, 235, 0.12);
    color: #60A5FA;
    border: 1px solid rgba(37, 99, 235, 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(37, 99, 235, 0.05) !important;
    border-color: rgba(37, 99, 235, 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: #60a5fa;
    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: #60a5fa;
    background: rgba(96,165,250,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(96,165,250,0.08);
    border: 1px solid rgba(96,165,250,0.25);
    border-radius: 12px;
    color: #60a5fa;
    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(96,165,250,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 25s 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.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 ===== */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #66BB6A;
    margin-left: auto;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.profit-active-badge {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-3);
    background: rgba(102,187,106,0.08);
    border: 1px solid rgba(102,187,106,0.2);
    padding: 3px 9px;
    border-radius: 20px;
}
.profit-active-badge #profit-active-count {
    font-weight: 700;
    color: #66BB6A;
}

.profit-feed {
    max-height: 290px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profit-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
    flex-shrink: 0;
}

.profit-entry.profit-large {
    background: rgba(102,187,106,0.06);
    border-color: rgba(102,187,106,0.2);
    box-shadow: 0 0 12px rgba(102,187,106,0.08);
}

.profit-entry.profit-enter {
    animation: profitSlideIn 0.35s cubic-bezier(0.22,1,0.36,1);
}

@keyframes profitSlideIn {
    from {
        opacity: 0;
        transform: translateX(-18px) scale(0.97);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border-width: 0;
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        max-height: 60px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.profit-entry.profit-exit {
    animation: profitSlideOut 0.3s ease forwards;
}

@keyframes profitSlideOut {
    to {
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin: 0;
        border-width: 0;
    }
}

.profit-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

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

.profit-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profit-meta {
    font-size: 10px;
    color: var(--text-3);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profit-amount {
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: -0.3px;
}
.pfe-profit   { color: #66BB6A; }
.pfe-trade    { color: #60a5fa; }
.pfe-ref      { color: #f59e0b; }
.pfe-activated {
    color: #a78bfa;
    font-size: 11px;
    font-weight: 600;
    background: rgba(167,139,250,0.12);
    padding: 3px 8px;
    border-radius: 8px;
}

/* ===== 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(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
    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: #60A5FA; }
.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, #60A5FA, #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: #60A5FA; box-shadow: 0 0 4px #60A5FA; }
.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: #2563EB;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.ref-used-tag {
    background: rgba(37,99,235,0.1);
    color: #60A5FA;
    border-color: rgba(37,99,235,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(96, 165, 250, 0.3);
    color: #60A5FA;
    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(37, 99, 235, 0.1); color: #60A5FA; }
.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(37, 99, 235, 0.1);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #60A5FA;
}

.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: 'Noto Sans Arabic', '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: #2563EB;
    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(96,165,250,0.1);
    color: #60a5fa;
    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(96,165,250,0.1);
    color: #60a5fa;
    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(245,197,24,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(245,197,24,0.15);
}
.about-logo-stars { color: #f5c518; 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: #f5c518; }

.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: #f5c518; 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: #f5c518; }
.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);
}
