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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --bg: #0F172A;
    --bg2: #1E293B;
    --bg3: #334155;
    --text: #F1F5F9;
    --text2: #94A3B8;
    --border: #334155;
    --radius: 12px;
    --radius-sm: 8px;
}

/* ── User page light-theme overrides ── */
body.user-page {
    --primary: #3548fe;
    --primary-dark: #2a3ad4;
    --secondary: #2ebd59;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f5f7fb;
    --bg2: #ffffff;
    --bg3: #eef1f6;
    --text: #1a2138;
    --text2: #6b7280;
    --border: #e5e7eb;
    --muted: #9ca3af;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}
body.user-page {
    font-family: 'DM Sans', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
}

.hidden { display: none !important; }

/* ─── Screen Layout ────────────────────────────────────────────── */
.screen { min-height: 100vh; }

/* ─── Connect Screen ──────────────────────────────────────────── */
.connect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 20px;
    text-align: center;
}

.logo-section { margin-bottom: 30px; }
.logo-icon { font-size: 56px; margin-bottom: 12px; }
.logo-section h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.tagline { color: var(--text2); font-size: 14px; }

.features-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.feature {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    text-align: center;
}
.feature span { display: block; font-size: 22px; font-weight: 700; color: var(--secondary); }
.feature small { color: var(--text2); font-size: 12px; }

.connect-note { color: var(--text2); font-size: 12px; margin-top: 14px; }

.referral-section {
    margin-top: 24px;
    width: 100%;
    max-width: 380px;
    text-align: left;
}
.referral-section label { font-size: 13px; color: var(--text2); margin-bottom: 6px; display: block; }

/* ── Referral Banner ── */
.ref-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(16,185,129,.08));
    border: 1px solid rgba(37,99,235,.2);
    border-radius: 12px;
    animation: refBannerIn .4s ease;
}
.ref-banner.hidden { display: none; }
.ref-banner-icon {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}
.ref-banner-text { flex: 1; min-width: 0; }
.ref-banner-label { display: block; font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; line-height: 1; margin-bottom: 2px; }
.ref-banner-addr { display: block; font-size: 14px; font-weight: 500; color: var(--text); font-family: 'Space Grotesk', monospace; cursor: default; }
.ref-banner-clear {
    background: none; border: none; cursor: pointer;
    font-size: 20px; line-height: 1; color: var(--text2);
    padding: 4px; border-radius: 6px; transition: .15s;
}
.ref-banner-clear:hover { background: rgba(239,68,68,.1); color: var(--danger); }
@keyframes refBannerIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
#ref-input-wrap.hidden { display: none; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--secondary); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #DC2626; }
.btn-warning { background: #D97706; }
.btn-warning:hover { background: #B45309; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }

.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 6px; }
.btn-block { width: 100%; }

.wallet-icon { font-size: 18px; }

/* ─── Top Bar ──────────────────────────────────────────────────── */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 10px; }
.logo-sm { font-size: 22px; }
.brand-name { font-weight: 700; font-size: 16px; }
.addr-badge {
    background: var(--bg3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: monospace;
    color: var(--text2);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.addr-badge:hover {
    background: var(--primary);
    color: #fff;
}
.addr-badge:hover svg { opacity: 1; }
.admin-bar { border-bottom-color: var(--warning); }
.admin-badge { border: 1px solid var(--warning); color: var(--warning); }

/* ─── Status Banner ────────────────────────────────────────────── */
.status-banner {
    padding: 10px 20px;
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid var(--warning);
    font-size: 13px;
    color: var(--warning);
}
.status-banner.warning { background: rgba(239, 68, 68, 0.15); border-left-color: var(--danger); color: var(--danger); }

.activation-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: center;
    margin: 12px;
    padding: 24px 20px;
}
.activation-card h3 { color: var(--danger); margin-bottom: 8px; }
.activation-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.activation-card .btn { font-size: 16px; padding: 14px; }

/* ─── Tab Navigation ───────────────────────────────────────────── */
.tab-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    background: var(--bg2);
    padding: 4px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 50px;
    z-index: 40;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: max-content;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--primary); color: #fff; }

.tab-content { padding: 20px; }

/* ─── Stats Grid ───────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.stat-card small { display: block; color: var(--text2); font-size: 11px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card span { display: block; font-size: 20px; font-weight: 700; }
.stat-card.primary { border-color: var(--primary); }
.stat-card.primary span { color: var(--primary); }
.stat-card.success { border-color: var(--secondary); }
.stat-card.success span { color: var(--secondary); }
.stat-card.warning { border-color: var(--warning); }
.stat-card.warning span { color: var(--warning); }

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.card-header h3 { margin-bottom: 0; }
.card-desc { color: var(--text2); font-size: 13px; margin-bottom: 16px; }

/* ─── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }

.input-field {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--primary); }
.input-field::placeholder { color: var(--text2); opacity: 0.6; }

.input-sm { width: auto; min-width: 130px; padding: 6px 10px; font-size: 12px; }

/* ─── Wallet Dropdown ──────────────────────────────────────────── */
.wallet-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.wallet-dropdown .dd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.wallet-dropdown .dd-item:last-child { border-bottom: none; }
.wallet-dropdown .dd-item:hover { background: var(--bg3); }
.wallet-dropdown .dd-addr { color: var(--text); font-family: monospace; font-size: 12px; }
.wallet-dropdown .dd-bal { color: var(--secondary); font-weight: 600; font-size: 13px; white-space: nowrap; margin-left: 12px; }

.balance-info {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 14px;
}
.balance-info strong { color: var(--secondary); }

.filter-row { display: flex; gap: 8px; align-items: center; }

/* ─── Tables ───────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th, .data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table th {
    color: var(--text2);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table tr:hover td { background: rgba(148, 163, 184, 0.08); }

.addr-cell { font-family: monospace; font-size: 12px; white-space: nowrap; }
.full-addr { word-break: break-all; white-space: normal; font-size: 11px; vertical-align: middle; }
.copy-icon {
    background: none; border: none; cursor: pointer; font-size: 13px;
    padding: 2px 4px; margin-left: 4px; vertical-align: middle;
    opacity: 0.5; transition: opacity 0.2s;
}
.copy-icon:hover { opacity: 1; }

/* ─── Packages Grid ────────────────────────────────────────────── */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.package-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    transition: border-color 0.2s;
}
.package-card:hover { border-color: var(--primary); }
.package-card.pkg-disabled { opacity: 0.55; }
.package-card.pkg-disabled:hover { border-color: var(--border); transform: none; box-shadow: none; }
.pkg-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pkg-amount { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.pkg-details { color: var(--text2); font-size: 12px; margin-bottom: 16px; line-height: 1.8; }
.btn-buy { width: 100%; }

/* ─── Purchase Confirmation Modal ──────────────────────────────── */
.pm-pkg-name { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .8px; text-align: center; }
.pm-pkg-price { font-size: 32px; font-weight: 800; color: var(--primary); text-align: center; margin: 6px 0 16px; }
.pm-divider { height: 1px; background: var(--border); margin: 0 -24px 16px; }
.pm-funding-breakdown { background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.pm-funding-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text2); margin-bottom: 10px; }
.pm-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.pm-row-total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.pm-label { display: flex; align-items: center; gap: 8px; color: var(--text); }
.pm-value { font-weight: 600; color: var(--text); }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pm-dot-green { background: var(--secondary); }
.pm-dot-blue { background: var(--primary); }
.pm-warning { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 8px; color: #ef4444; font-size: 13px; line-height: 1.4; }
.pm-warning svg { flex-shrink: 0; margin-top: 1px; }

/* ─── List Container ───────────────────────────────────────────── */
.list-container { max-height: 400px; overflow-y: auto; }

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    gap: 10px;
}
.list-item:last-child { border-bottom: none; }

.earning-type { color: var(--text2); font-size: 12px; }
.amount-green { color: var(--secondary); font-weight: 600; }

/* ─── Badges ───────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: capitalize;
}
.badge-active { background: rgba(16, 185, 129, 0.15); color: var(--secondary); }
.badge-inactive { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-success { background: rgba(0, 168, 97, 0.25); color: #00e676; }
body.user-page .badge-success { color: #059669; }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-processing { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.badge-completed { background: rgba(16, 185, 129, 0.15); color: var(--secondary); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* ─── Package Status & Progress ────────────────────────────────── */
.package-status { margin-top: 10px; }
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg3);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
}

/* ─── Referral Info ────────────────────────────────────────────── */
.referral-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.ref-stat {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.ref-stat small { display: block; color: var(--text2); font-size: 11px; margin-bottom: 4px; }
.ref-stat span { font-size: 18px; font-weight: 700; color: var(--secondary); }

.copy-box {
    display: flex;
    gap: 8px;
    align-items: center;
}
.copy-box .input-field { flex: 1; }

.team-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.team-stats > div {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.team-stats small { display: block; color: var(--text2); font-size: 11px; margin-bottom: 4px; }
.team-stats span { font-size: 20px; font-weight: 700; }

.ref-level {
    font-size: 11px;
    color: var(--text2);
    padding: 2px 8px;
    background: var(--bg3);
    border-radius: 4px;
    display: inline-block;
}

/* ─── Team Network Component ───────────────────────────────────── */
.tnet-card { padding: 0; overflow: hidden; }
.tnet-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 18px 0;
}
.tnet-title { font-size: 17px; font-weight: 700; margin: 0; }
.tnet-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.tnet-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
    margin-top: 14px;
}
.tns-box {
    text-align: center;
    padding: 10px 6px 12px;
    border-right: 1px solid var(--border);
}
.tns-box:last-child { border-right: none; }
.tns-num { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.1; }
.tns-highlight .tns-num { color: var(--secondary); }
.tns-lbl { font-size: 9px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

/* Level overview row */
.tnet-level-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid var(--border);
}
.tnl-card {
    padding: 12px 14px;
    border-right: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
}
.tnl-card:last-child { border-right: none; }
.tnl-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.tnl-card[data-lvl="1"]::before { background: var(--primary); }
.tnl-card[data-lvl="2"]::before { background: var(--secondary); }
.tnl-card[data-lvl="3"]::before { background: var(--warning); }
.tnl-card[data-lvl="4"]::before { background: #ec4899; }
.tnl-card:hover { background: var(--bg3); }
.tnl-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.tnl-card[data-lvl="1"] .tnl-badge { color: var(--primary); }
.tnl-card[data-lvl="2"] .tnl-badge { color: var(--secondary); }
.tnl-card[data-lvl="3"] .tnl-badge { color: var(--warning); }
.tnl-card[data-lvl="4"] .tnl-badge { color: #ec4899; }
.tnl-count { font-size: 18px; font-weight: 800; line-height: 1.1; }
.tnl-count span { font-size: 10px; font-weight: 400; color: var(--text2); }
.tnl-rate { font-size: 10px; color: var(--text2); margin: 3px 0 5px; }
.tnl-comm { font-size: 13px; font-weight: 700; }
.tnl-card[data-lvl="1"] .tnl-comm { color: var(--primary); }
.tnl-card[data-lvl="2"] .tnl-comm { color: var(--secondary); }
.tnl-card[data-lvl="3"] .tnl-comm { color: var(--warning); }
.tnl-card[data-lvl="4"] .tnl-comm { color: #ec4899; }
.tnl-comm-lbl { font-size: 9px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.4px; }

/* Tab bar */
.tnet-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 14px;
    gap: 2px;
}
.tnt-btn {
    background: none;
    border: none;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.tnt-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.tnt-btn:hover:not(.active) { color: var(--text); }

/* Members panel */
#tnet-panel { padding: 12px; min-height: 100px; }
.tm-list { display: flex; flex-direction: column; gap: 7px; }
.tm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s;
}
.tm-row:hover { border-color: var(--primary); }
.tm-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.tm-body { flex: 1; min-width: 0; }
.tm-wallet { font-family: 'Courier New', monospace; font-size: 12px; font-weight: 600; color: var(--text); }
.tm-details { display: flex; gap: 6px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.tm-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
}
.tm-badge-topup  { background: rgba(16,185,129,0.12); color: #10B981; border: 1px solid rgba(16,185,129,0.3); }
.tm-badge-paid   { background: rgba(79,70,229,0.10); color: var(--primary); border: 1px solid rgba(79,70,229,0.25); }
.tm-badge-unpaid { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.tm-meta { font-size: 11px; color: var(--text2); }
.tm-right { text-align: right; flex-shrink: 0; }
.tm-joined { font-size: 10px; color: var(--text2); }

/* skeleton/placeholder state */
.tnl-skeleton { opacity: 0.45; pointer-events: none; }

/* responsive */
@media (max-width: 500px) {
    .tnet-summary { grid-template-columns: repeat(2, 1fr); }
    .tnet-level-row { grid-template-columns: repeat(2, 1fr); }
    .tnl-card:nth-child(2) { border-right: none; }
    .tnl-card:nth-child(3) { border-top: 1px solid var(--border); }
    .tnl-card:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
    .tnl-card:nth-child(5) { border-top: 1px solid var(--border); }
    .tns-box:nth-child(2) { border-right: none; }
    .tns-box:nth-child(3) { border-top: 1px solid var(--border); }
    .tns-box:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* ─── Result Box ───────────────────────────────────────────────── */
.result-box {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.text-green { color: var(--secondary); }
.text-red { color: var(--danger); }

/* ─── Utility ──────────────────────────────────────────────────── */
.muted { color: var(--text2); font-size: 13px; text-align: center; padding: 20px 0; }

/* ─── Loading Overlay ──────────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 16px;
}
.loading-overlay p { color: var(--text2); font-size: 14px; }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast ────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    z-index: 2000;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease;
}
.toast.info { background: var(--primary); color: #fff; }
.toast.success { background: var(--secondary); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .features-row { gap: 10px; }
    .feature { padding: 10px 14px; }
    .feature span { font-size: 18px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-card span { font-size: 17px; }

    .referral-info-grid { grid-template-columns: repeat(2, 1fr); }

    .packages-grid { grid-template-columns: 1fr; }
    .pkg-amount { font-size: 24px; }

    .tab-content { padding: 14px; }

    .card-header { flex-direction: column; align-items: flex-start; }
    .filter-row { width: 100%; }
    .input-sm { flex: 1; }
}

@media (max-width: 480px) {
    .top-bar { padding: 10px 14px; }
    .tab-nav { top: 44px; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
    .logo-icon { font-size: 44px; }
    .logo-section h1 { font-size: 22px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .tab { padding: 8px 12px; font-size: 12px; }
}

/* ── Wallet & Onboarding Modals ──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.modal-box {
    background: var(--bg2);
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    animation: modalIn 0.25s ease;
}
.modal-box-lg {
    max-width: 520px;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
body.user-page .modal-header h2 { color: var(--text); }
.modal-close-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close-btn:hover { color: #fff; }

/* ── Custom Confirm Dialog ─────────────────────────────────────────── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.confirm-overlay.confirm-visible { opacity: 1; }
.confirm-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 24px 22px;
    width: 100%;
    max-width: 360px;
    position: relative;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), opacity 0.22s ease;
    opacity: 0;
}
.confirm-overlay.confirm-visible .confirm-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.confirm-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.confirm-close-btn:hover { color: var(--text); background: var(--bg3); }
.confirm-icon { font-size: 36px; margin-bottom: 10px; }
.confirm-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}
.confirm-msg {
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.55;
    margin: 0 0 20px;
}
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.confirm-actions .btn {
    flex: 1;
    max-width: 130px;
    padding: 9px 14px;
    font-size: 14px;
    border-radius: 10px;
}

.modal-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Wallet options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.wallet-option:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--primary);
    transform: translateX(4px);
}
.wallet-option:active {
    transform: scale(0.98);
}
.wallet-option-detected {
    border-color: var(--secondary);
    background: rgba(16, 185, 129, 0.08);
}
.wo-icon {
    font-size: 30px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 10px;
    flex-shrink: 0;
}
.wo-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
}
.wo-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.wo-text strong {
    color: #fff;
    font-size: 15px;
}
.wo-text small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}
.wo-arrow {
    color: var(--muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.wallet-option:hover .wo-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Wallet modal states */
.wm-box { overflow: hidden; }
.wm-state { transition: opacity 0.2s ease; }
.wm-connecting {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 36px;
}
.wm-pulse-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}
.wm-pulse-ring::before,
.wm-pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: wmPulse 1.6s ease-out infinite;
}
.wm-pulse-ring::after {
    animation-delay: 0.4s;
}
@keyframes wmPulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}
.wm-pulse-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    animation: wmDotPulse 1.2s ease-in-out infinite;
}
@keyframes wmDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.5; }
}
.wm-connecting-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text2);
    animation: wmTextFade 1.5s ease-in-out infinite;
}
@keyframes wmTextFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.wm-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: modalIn 0.25s ease;
}
.wm-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.wm-retry-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    background: none;
    border: 2px dashed var(--border);
    border-radius: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wm-retry-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--primary);
}

/* ── Stepper ────────────────────────────────────────────────────────── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}
.step {
    display: flex;
    align-items: center;
    gap: 0;
}
.step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg3);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--bg3);
    transition: all 0.3s;
    flex-shrink: 0;
}
.step.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
}
.step.done .step-num {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}
.step-line {
    width: 48px;
    height: 3px;
    background: var(--bg3);
    transition: background 0.3s;
}
.step.done .step-line {
    background: var(--secondary);
}

/* ── Onboarding Steps ──────────────────────────────────────────────── */
.ob-step {
    padding: 8px 0;
}
.ob-step h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}
body.user-page .ob-step h3 { color: var(--text); }
.ob-info-box {
    background: var(--bg3);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.ob-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ob-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
}
body.user-page .ob-check-item { color: var(--text); }
.ob-check-icon {
    color: var(--secondary);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.ob-highlight {
    color: var(--warning);
    font-weight: 600;
}
.ob-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
}
.ob-detail-row:last-child { border-bottom: none; }
.ob-pay-amount {
    text-align: center;
    margin: 16px 0;
}
.ob-pay-big {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}
.ob-done-icon {
    font-size: 60px;
    text-align: center;
    margin-bottom: 12px;
}
.ob-error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}
.ob-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}
.text-pending { color: var(--warning); font-weight: 600; }
.text-success { color: var(--secondary); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }

/* ── Approval modal (minimal) ── */
.am-box {
    max-width: 340px;
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
}
.am-close {
    position: absolute;
    top: 10px;
    right: 12px;
}
.am-status-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.am-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.am-icon--pending {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}
.am-icon--pending .am-spinner {
    animation: amSpin 1s linear infinite;
}
@keyframes amSpin {
    to { transform: rotate(360deg); }
}
.am-icon--ok {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
}
.am-icon--ok::after {
    content: '\2713';
    font-size: 24px;
    font-weight: 700;
}
.am-icon--ok .am-spinner { display: none; }
.am-icon--fail {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}
.am-icon--fail::after {
    content: '\2717';
    font-size: 24px;
    font-weight: 700;
}
.am-icon--fail .am-spinner { display: none; }
.am-status-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text2);
}

/* ── Activation Banner ──────────────────────────────────────────────── */
.activation-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.10));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.activation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.activation-content span {
    color: var(--warning);
    font-weight: 600;
    font-size: 14px;
}

/* ── Modal / Onboarding Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
    .modal-box {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .modal-header h2 { font-size: 17px; }
    .wallet-option { padding: 12px 14px; }
    .wo-icon { font-size: 24px; width: 36px; height: 36px; }
    .wo-icon svg { width: 28px; height: 28px; }
    .step-num { width: 28px; height: 28px; font-size: 12px; }
    .step-line { width: 30px; }
    .ob-pay-big { font-size: 28px; }
    .ob-done-icon { font-size: 48px; }
    .activation-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   USER PAGE — LANDING & DASHBOARD LIGHT THEME
   ═══════════════════════════════════════════════════════════════════════ */

/* ── User-page modal overrides ── */
body.user-page .modal-overlay { background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(8px); }
body.user-page .modal-box {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}
body.user-page .modal-header h3 { color: var(--text); }
body.user-page .modal-close-btn { color: var(--text2); }
body.user-page .modal-close-btn:hover { color: var(--text); }
body.user-page .modal-desc { color: var(--text2); }
body.user-page .wallet-option {
    background: var(--bg);
    border: 2px solid var(--border);
}
body.user-page .wallet-option:hover {
    background: rgba(53, 72, 254, 0.04);
    border-color: var(--primary);
}
body.user-page .wo-icon { background: #fff; border: 1px solid var(--border); }
body.user-page .wo-text strong { color: var(--text); }
body.user-page .wo-text small { color: var(--text2); }
body.user-page .wo-arrow { color: var(--text2); }
body.user-page .wm-error { background: rgba(239, 68, 68, 0.06); }
body.user-page .wm-retry-btn { border-color: var(--border); }
body.user-page .ob-info-box { background: var(--bg); }
body.user-page .ob-detail-row { color: var(--text); border-bottom-color: var(--border); }
body.user-page .loading-overlay { background: rgba(245, 247, 251, 0.92); }
body.user-page .loading-overlay p { color: var(--text2); }
body.user-page .spinner { border-color: var(--border); border-top-color: var(--primary); }

/* ── User-page top-bar ── */
body.user-page .top-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
body.user-page .brand-name { color: var(--text); }
body.user-page .addr-badge {
    background: var(--bg);
    color: var(--text2);
    border: 1px solid var(--border);
}
body.user-page .btn-outline {
    border-color: var(--border);
    color: var(--text2);
}
body.user-page .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.hist-tab.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* ── User-page tab nav ── */
body.user-page .tab-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 6px 8px;
}
body.user-page .tab {
    color: var(--text2);
    border-radius: 8px;
    transition: all 0.2s;
}
body.user-page .tab:hover { color: var(--text); background: var(--bg); }
body.user-page .tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(53, 72, 254, 0.25);
}

/* ── User-page cards ── */
body.user-page .card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
body.user-page .card h3 { color: var(--text); }

/* ── User-page stat cards ── */
body.user-page .stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
body.user-page .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 4px 0 0 4px;
}
body.user-page .stat-card.primary::before { background: var(--primary); }
body.user-page .stat-card.warning::before { background: var(--warning); }
body.user-page .stat-card.stat-activation::before { background: #6366f1; }
body.user-page .stat-card.stat-investing::before { background: var(--secondary); }
body.user-page .stat-card.stat-earned::before { background: #06b6d4; }

/* ── User-page status banner ── */
body.user-page .status-banner {
    background: rgba(245, 158, 11, 0.06);
    border-left: 4px solid var(--warning);
}

/* ── User-page activation card ── */
body.user-page .activation-card {
    background: #fff;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--danger);
}

/* ── User-page input fields ── */
body.user-page .input-field {
    background: #fff;
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
body.user-page .input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(53, 72, 254, 0.1);
}
body.user-page .input-field::placeholder { color: var(--muted); }

/* ── User-page table ── */
body.user-page .data-table th { color: var(--text2); font-size: 11px; }
body.user-page .data-table td { border-bottom-color: var(--border); }
body.user-page .data-table tr:hover td { background: rgba(53, 72, 254, 0.02); }

/* ── User-page packages ── */
body.user-page .package-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
body.user-page .package-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(53, 72, 254, 0.12);
    transform: translateY(-2px);
}
body.user-page .package-card.pkg-disabled:hover {
    border-color: var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transform: none;
}

/* ── User-page referral ── */
body.user-page .ref-stat,
body.user-page .team-stats > div {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* ── User-page result box ── */
body.user-page .result-box { background: var(--bg); }

/* ── User-page badge overrides ── */
body.user-page .badge-active { background: rgba(46, 189, 89, 0.1); color: var(--secondary); }
body.user-page .badge-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
body.user-page .badge-processing { background: rgba(251, 191, 36, 0.12); color: #d97706; }
body.user-page .badge-inactive { background: rgba(239, 68, 68, 0.08); color: var(--danger); }

/* ── User-page dashboard helpers ── */
body.user-page .stats-grid { gap: 14px; }
body.user-page .claim-btn {
    background: linear-gradient(135deg, #2ebd59, #25a04b) !important;
    box-shadow: 0 4px 16px rgba(46, 189, 89, 0.3);
}
body.user-page .claim-btn:hover { filter: brightness(1.05); }
body.user-page .next-claim-box {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
}
/* Pending ROI mode — amber border */
body.user-page .next-claim-box.roi-pending-active {
    border-color: rgba(245, 158, 11, 0.4) !important;
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
}
.roi-pending-pill {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    vertical-align: middle;
    animation: roi-pill-pulse 2s ease-in-out infinite;
}
@keyframes roi-pill-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}
/* ── Claim window expiry bar ── */
.claim-window-inner {
    background: linear-gradient(135deg, #fffbf2, #fef9e7);
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 10px;
    padding: 9px 13px;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.claim-window-box.warning .claim-window-inner {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    border-color: rgba(234,88,12,0.42);
}
.claim-window-box.urgent .claim-window-inner {
    background: linear-gradient(135deg, #fff5f5, #fee2e2);
    border-color: rgba(239,68,68,0.5);
    animation: cw-urgent-pulse 1.4s ease-in-out infinite;
}
@keyframes cw-urgent-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
    50% { box-shadow: 0 0 0 3px rgba(239,68,68,0.16); }
}
.claim-window-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #92400e;
}
.claim-window-box.warning .claim-window-label { color: #c2410c; }
.claim-window-box.urgent .claim-window-label { color: #dc2626; }
.claim-window-timer {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1.5px;
    color: #b45309;
}
.claim-window-box.warning .claim-window-timer { color: #ea580c; }
.claim-window-box.urgent .claim-window-timer { color: #dc2626; }
.claim-window-bar-wrap {
    height: 3px;
    background: rgba(0,0,0,0.07);
    border-radius: 3px;
    margin: 7px 0 5px;
    overflow: hidden;
}
.claim-window-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fcd34d);
    border-radius: 3px;
    transition: width 1s linear, background 0.5s;
}
.claim-window-box.warning .claim-window-bar { background: linear-gradient(90deg, #ea580c, #fb923c); }
.claim-window-box.urgent .claim-window-bar { background: linear-gradient(90deg, #dc2626, #f87171); }
.claim-window-sub {
    font-size: 10px;
    color: #78350f;
    display: block;
    text-align: center;
}
.claim-window-box.warning .claim-window-sub { color: #9a3412; }
.claim-window-box.urgent .claim-window-sub { color: #991b1b; }
body.user-page .roi-cycle-card {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
body.user-page .invest-card-wrap {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
body.user-page .blocked-banner {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
body.user-page .airdrop-banner {
    background: linear-gradient(135deg, rgba(46, 189, 89, 0.08), rgba(46, 189, 89, 0.04)) !important;
    border: 1px solid rgba(46, 189, 89, 0.2) !important;
    color: var(--text) !important;
}

/* ── Airdrop Celebration Popup ─────────────────────────────────────── */
.airdrop-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.airdrop-popup-overlay.airdrop-popup-in { opacity: 1; }
.airdrop-popup-overlay.hidden { display: none !important; }
.airdrop-popup-box {
    position: relative;
    background: #fff;
    border-radius: 28px;
    padding: 40px 32px 32px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.12);
    transform: translateY(32px) scale(0.94);
    transition: transform 0.45s cubic-bezier(.34,1.56,.64,1), opacity 0.35s ease;
    opacity: 0;
    overflow: hidden;
}
.airdrop-popup-in .airdrop-popup-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}
/* Shimmer background */
.airdrop-popup-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(52,211,153,0.07) 0%, rgba(59,130,246,0.05) 50%, rgba(167,139,250,0.07) 100%);
    pointer-events: none;
}
/* Spinning ring behind emoji */
.airdrop-confetti-ring {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(#34d399, #3b82f6, #f59e0b, #ec4899, #34d399);
    filter: blur(18px);
    opacity: 0.35;
    animation: airdrop-spin 6s linear infinite;
}
@keyframes airdrop-spin {
    to { transform: translateX(-50%) rotate(360deg); }
}
.airdrop-emoji {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
    animation: airdrop-bounce 1.2s cubic-bezier(.36,.07,.19,.97) 0.3s both;
}
@keyframes airdrop-bounce {
    0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(8deg); opacity: 1; }
    80%  { transform: scale(0.92) rotate(-4deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.airdrop-popup-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.airdrop-popup-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}
.airdrop-amount-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #6ee7b7;
    border-radius: 16px;
    padding: 12px 28px;
    margin-bottom: 16px;
}
.airdrop-amount-badge span {
    font-size: 36px;
    font-weight: 900;
    color: #059669;
    letter-spacing: -1px;
    line-height: 1;
}
.airdrop-amount-badge small {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}
.airdrop-popup-note {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 22px;
    padding: 0 4px;
}
.airdrop-claim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(16,185,129,0.4);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}
.airdrop-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16,185,129,0.5);
}
.airdrop-claim-btn:active { transform: translateY(0); }
.airdrop-skip-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s;
}
.airdrop-skip-btn:hover { color: #6b7280; }

/* ── Airdrop Claim Banner (persistent top bar) ── */
.airdrop-claim-banner {
    position: relative;
    margin: 8px 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border: 1.5px solid #6ee7b7;
    overflow: hidden;
    animation: acb-slideIn 0.4s cubic-bezier(.34,1.56,.64,1) both;
}
.airdrop-claim-banner.hidden { display: none !important; }
@keyframes acb-slideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.acb-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.acb-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.acb-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    animation: acb-wiggle 2s ease-in-out infinite;
}
@keyframes acb-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-8deg); }
    75%      { transform: rotate(8deg); }
}
.acb-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.acb-label {
    font-size: 12px;
    font-weight: 600;
    color: #065f46;
    letter-spacing: 0.3px;
}
.acb-amount {
    font-size: 17px;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.3px;
}
.acb-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(16,185,129,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.acb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(16,185,129,0.45);
}
.acb-btn:active { transform: translateY(0); }
body.user-page .ticket-item {
    border-color: var(--border);
}
body.user-page .ticket-item:hover {
    background: rgba(53, 72, 254, 0.04) !important;
}
body.user-page .msg-admin {
    background: rgba(53, 72, 254, 0.08);
}
body.user-page .msg-user {
    background: #f0f1f5;
}

/* ═══════════════════════════════════════════════════════════════════════
   LANDING PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════ */

/* Gradient text utility */
.grad-text {
    background: linear-gradient(135deg, #3548fe 0%, #2ebd59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero .grad-text {
    background: linear-gradient(135deg, #60efff 0%, #2ebd59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Container ── */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ── */
.lp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    transition: box-shadow 0.3s;
}
.lp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.lp-logo-icon { display: flex; align-items: center; flex-shrink: 0; }
.lp-logo-icon--sm svg { width: 26px; height: 26px; }
.lp-logo-img { height: 38px; width: auto; object-fit: contain; flex-shrink: 0; }
.lp-logo-img--sm { height: 30px; }
.logo-accent { color: var(--primary); }
.lp-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.lp-nav-links {
    display: flex;
    gap: 36px;
}
.lp-nav-links a {
    text-decoration: none;
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.lp-nav-links a:hover { color: var(--primary); }
.lp-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s;
}
.lp-nav-links a:hover::after { transform: scaleX(1); }
.lp-nav-btn {
    border-radius: 10px;
    padding: 10px 28px;
    font-size: 14px;
    gap: 6px;
    background: var(--secondary);
    font-weight: 600;
}
.lp-nav-btn:hover { background: #25a04b; }
.lp-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.lp-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.lp-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.lp-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.lp-hero {
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #3548fe 0%, #2a3ad4 40%, #1e2ca8 100%);
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.lp-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
}
.lp-hero-orb--1 {
    width: 600px;
    height: 600px;
    background: #60efff;
    top: -150px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}
.lp-hero-orb--2 {
    width: 500px;
    height: 500px;
    background: #2ebd59;
    bottom: -100px;
    left: -80px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}
.lp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.lp-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}
.lp-hero-content { flex: 1; }
.lp-hero-visual {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.lp-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ebd59;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.lp-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.lp-hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.lp-hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}
.lp-hero-btn { border-radius: 10px; }
.lp-hero-actions .btn-primary {
    background: #2ebd59;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(46, 189, 89, 0.35);
    position: relative;
    overflow: hidden;
}
.lp-hero-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(25deg);
    animation: btnShine 4s ease-in-out infinite;
}
@keyframes btnShine {
    0%, 100% { left: -60%; }
    50% { left: 120%; }
}
.lp-hero-actions .btn-primary:hover { background: #25a04b; }
.lp-hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.lp-hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ── Hero Referral Section ── */
body.user-page #connect-screen .referral-section {
    max-width: 420px;
}
.lp-hero .referral-section label { color: rgba(255,255,255,0.6); }
.lp-hero .referral-section .input-field {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.lp-hero .referral-section .input-field::placeholder { color: rgba(255,255,255,0.4); }
.lp-hero .referral-section .input-field:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.lp-hero .ref-banner {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.lp-hero .ref-banner-label { color: rgba(255,255,255,0.7); }
.lp-hero .ref-banner-addr { color: #fff; }
.lp-hero .ref-banner-icon { background: rgba(255,255,255,0.15); }
.lp-hero .ref-banner-clear { color: rgba(255,255,255,0.5); }
.lp-hero .ref-banner-clear:hover { color: #ff6b6b; background: rgba(255,0,0,0.1); }

/* ── Float Cards (Hero Visual) ── */
.lp-hero-card-stack {
    position: relative;
    width: 300px;
    height: 340px;
}
.lp-float-card {
    position: absolute;
    background: #fff;
    border: none;
    border-radius: 18px;
    padding: 26px 34px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}
.lp-float-card:hover { transform: translateY(-6px) !important; }
.lp-float-card--1 {
    top: 0;
    left: 0;
    animation: cardFloat 6s ease-in-out infinite;
}
.lp-float-card--2 {
    top: 80px;
    right: 0;
    animation: cardFloat 6s ease-in-out 1s infinite;
}
.lp-float-card--3 {
    bottom: 0;
    left: 30px;
    animation: cardFloat 6s ease-in-out 2s infinite;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.lp-float-val {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 38px;
    font-weight: 700;
    background: linear-gradient(135deg, #3548fe, #2ebd59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.lp-float-label {
    display: block;
    font-size: 13px;
    color: var(--text2);
    font-weight: 500;
    margin-top: 6px;
}

/* ── Ticker Bar ── */
.lp-ticker {
    background: linear-gradient(90deg, #0d1117, #161b22, #0d1117);
    color: #fff;
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid rgba(46, 189, 89, 0.15);
    border-bottom: 1px solid rgba(53, 72, 254, 0.15);
}
.lp-ticker-track {
    display: flex;
    gap: 48px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.lp-ticker-track span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.85;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Section Layout ── */
.lp-section {
    padding: 100px 0;
}
.lp-section--alt {
    background: #fff;
}
.lp-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.lp-section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(53, 72, 254, 0.06);
    border: 1px solid rgba(53, 72, 254, 0.12);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.lp-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.lp-section-desc {
    font-size: 16px;
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── About Grid ── */
.lp-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.lp-about-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.lp-about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.lp-about-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(53, 72, 254, 0.08);
    border: 2px solid rgba(53, 72, 254, 0.15);
    color: var(--primary);
    margin-bottom: 20px;
}
.lp-about-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.lp-about-card p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Features Grid ── */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.lp-feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 26px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.lp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: var(--primary);
}
.lp-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 2px solid transparent;
}
.lp-feature-icon--blue { background: rgba(53, 72, 254, 0.08); color: #3548fe; border-color: rgba(53, 72, 254, 0.2); }
.lp-feature-icon--green { background: rgba(46, 189, 89, 0.08); color: #2ebd59; border-color: rgba(46, 189, 89, 0.2); }
.lp-feature-icon--purple { background: rgba(139, 92, 246, 0.08); color: #8B5CF6; border-color: rgba(139, 92, 246, 0.2); }
.lp-feature-icon--amber { background: rgba(245, 158, 11, 0.08); color: #F59E0B; border-color: rgba(245, 158, 11, 0.2); }
.lp-feature-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.lp-feature-card p {
    color: var(--text2);
    font-size: 13px;
    line-height: 1.65;
}

/* ── How It Works / Steps ── */
.lp-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.lp-step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 30px;
    text-align: center;
    max-width: 300px;
    flex: 1;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.lp-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.lp-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3548fe, #2ebd59);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(53, 72, 254, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}
.lp-step-card:hover .lp-step-num {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(53, 72, 254, 0.4);
}
.lp-step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 60px;
    flex-shrink: 0;
    border-radius: 2px;
}
.lp-step-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.lp-step-card p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.65;
}

/* ── Stats Bar ── */
.lp-stats-bar {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a2138 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.lp-stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(53,72,254,0.5), transparent);
    transform: translateX(-50%);
}
.lp-stats-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46,189,89,0.5), transparent);
    transform: translateX(-50%);
}
.lp-stats-inner {
    display: flex;
    justify-content: space-around;
    gap: 24px;
}
.lp-stat-item { text-align: center; }
.lp-stat-val {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
}
.lp-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── FAQ ── */
.lp-faq-container { max-width: 720px; }
.lp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lp-faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-faq-item:hover { border-color: var(--primary); }
.lp-faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(53, 72, 254, 0.08);
}
.lp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}
.lp-faq-q svg {
    flex-shrink: 0;
    color: var(--text2);
    transition: transform 0.3s;
}
.lp-faq-item.open .lp-faq-q svg { transform: rotate(180deg); }
.lp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.lp-faq-item.open .lp-faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}
.lp-faq-a p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Footer ── */
.lp-footer {
    background: linear-gradient(180deg, #0d1117, #0a0d12);
    padding: 50px 0 30px;
    position: relative;
}
.lp-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(53,72,254,0.4), rgba(46,189,89,0.4), transparent);
}
.lp-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lp-footer .lp-logo-text { color: #fff; }
.lp-footer .logo-accent { color: #60efff; }
.lp-footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
}
.lp-footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}
.lp-footer-links {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}
.lp-footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}
.lp-footer-links a:hover { color: #60efff; }
.lp-footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.lp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    transition: all 0.25s;
}
.lp-social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Trust Badges Bar ── */
.lp-trust-bar {
    padding: 40px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.lp-trust-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.lp-trust-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text2);
}
.lp-trust-logos {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.lp-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lp-trust-item:hover { opacity: 1; }
.lp-trust-item svg { color: var(--primary); }

/* ── About Split Layout ── */
.lp-about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}
.lp-about-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.lp-about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.lp-about-img-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.lp-about-img-badge-val {
    display: block;
    font-size: 28px;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #3548fe, #2ebd59);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-about-img-badge-label {
    font-size: 12px;
    color: var(--text2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lp-about-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
}
.lp-about-text > p {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}
.lp-about-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.lp-about-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.lp-about-point-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(53,72,254,0.08), rgba(46,189,89,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.lp-about-point strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.lp-about-point p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin: 0;
}

/* ── Why Choose Us / Showcase ── */
.lp-showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}
.lp-showcase-row--reverse {
    direction: rtl;
    margin-top: 80px;
}
.lp-showcase-row--reverse > * {
    direction: ltr;
}
.lp-showcase-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.lp-showcase-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.lp-showcase-img-wrap:hover .lp-showcase-img {
    transform: scale(1.03);
}
.lp-showcase-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.3;
}
.lp-showcase-text > p {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.lp-showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lp-showcase-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.lp-showcase-list li svg { flex-shrink: 0; }

/* ── CTA Banner ── */
.lp-cta-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?w=1400&q=75') center/cover no-repeat;
    padding: 100px 0;
    overflow: hidden;
}
.lp-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,33,56,0.92), rgba(53,72,254,0.88));
}
.lp-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.lp-cta-inner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.lp-cta-inner p {
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.lp-cta-btn {
    font-size: 16px !important;
    padding: 16px 36px !important;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(46,189,89,0.3);
}

/* ── Hero Image ── */
.lp-hero-img-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.15;
    z-index: 0;
}
.lp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lp-hero-card-stack {
    position: relative;
    z-index: 1;
}

/* ── Landing Page Responsive ── */
@media (max-width: 1024px) {
    .lp-hero-visual { flex: 0 0 280px; }
    .lp-hero-card-stack { width: 240px; height: 290px; }
    .lp-float-val { font-size: 28px; }
    .lp-float-card { padding: 18px 24px; }
    .lp-hero-title { font-size: 44px; }
}

@media (max-width: 768px) {
    .lp-nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    }
    .lp-nav-links.open { display: flex; }
    .lp-nav-links a::after { display: none; }
    .lp-nav-btn { display: none; }
    .lp-mobile-toggle { display: flex; }

    .lp-hero { padding: 120px 0 60px; }
    .lp-hero-inner { flex-direction: column; gap: 40px; text-align: center; }
    .lp-hero-visual { flex: none; }
    .lp-hero-title { font-size: 36px; }
    .lp-hero-desc { margin: 0 auto 28px; font-size: 15px; }
    .lp-hero-actions { justify-content: center; }
    body.user-page #connect-screen .referral-section { margin: 0 auto; }

    .lp-about-grid { grid-template-columns: 1fr; }
    .lp-about-split { grid-template-columns: 1fr; gap: 30px; }
    .lp-about-img { height: 280px; }
    .lp-showcase-row,
    .lp-showcase-row--reverse { grid-template-columns: 1fr; gap: 30px; }
    .lp-showcase-row--reverse { direction: ltr; margin-top: 50px; }
    .lp-showcase-img { height: 260px; }
    .lp-cta-inner h2 { font-size: 30px; }
    .lp-cta-banner { padding: 70px 0; }
    .lp-trust-logos { gap: 20px; }
    .lp-trust-item { font-size: 12px; }
    .lp-features-grid { grid-template-columns: 1fr; }

    .lp-steps { flex-direction: column; align-items: center; gap: 0; }
    .lp-step-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }
    .lp-step-card { max-width: 100%; }

    .lp-stats-inner { flex-wrap: wrap; }
    .lp-stat-val { font-size: 34px; }

    .lp-section { padding: 70px 0; }
    .lp-section-title { font-size: 30px; }
}

@media (max-width: 480px) {
    .lp-hero-title { font-size: 30px; }
    .lp-hero-desc { font-size: 14px; }
    .lp-hero-card-stack { width: 220px; height: 270px; }
    .lp-float-val { font-size: 24px; }
    .lp-float-card { padding: 16px 20px; border-radius: 14px; }
    .lp-hero-actions { flex-direction: column; }
    .lp-hero-btn { width: 100%; }
    .lp-stats-inner { gap: 24px; }
    .lp-stat-item { min-width: 40%; }
    .lp-stat-val { font-size: 28px; }
    .lp-section-title { font-size: 26px; }
    .lp-showcase-text h3 { font-size: 22px; }
    .lp-cta-inner h2 { font-size: 24px; }
    .lp-cta-inner p { font-size: 14px; }
    .lp-footer-links { gap: 16px; }
    .lp-footer-links a { font-size: 12px; }
    .lp-about-text h3 { font-size: 20px; }
    .lp-about-img { height: 240px; }
    .lp-showcase-img { height: 220px; }
}


/* ── Ticket System ─────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════
   LIVE TRADING & CRYPTO SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Particles Canvas ── */
.lp-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ── Dark Section ── */
.lp-section--dark {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    padding: 100px 0;
}
.lp-section-tag--light {
    background: rgba(46, 189, 89, 0.1);
    border-color: rgba(46, 189, 89, 0.2);
    color: #2ebd59;
}
.lp-section-title--white { color: #fff; }
.lp-section-desc--light { color: rgba(255,255,255,0.6); }

/* ── Trading Chart ── */
.lp-trading-wrap {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 0 80px rgba(46, 189, 89, 0.06);
}
.lp-trading-canvas {
    width: 100%;
    height: 320px;
    display: block;
}
.lp-trading-overlay {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 2;
}
.lp-trading-pair {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}
.lp-trading-pair-icon {
    font-size: 28px;
    font-weight: 700;
    color: #f7931a;
}
.lp-trading-pair strong {
    display: block;
    color: #fff;
    font-size: 15px;
}
.lp-trading-price {
    display: block;
    color: #2ebd59;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
}
.lp-trading-change {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
}
.lp-trading-change--up {
    background: rgba(46, 189, 89, 0.15);
    color: #2ebd59;
}
.lp-trading-change--down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ── Crypto Ticker Grid ── */
.lp-crypto-ticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.lp-crypto-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.lp-crypto-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(53,72,254,0.05), rgba(46,189,89,0.05));
    opacity: 0;
    transition: opacity 0.3s;
}
.lp-crypto-card:hover {
    border-color: rgba(53, 72, 254, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.lp-crypto-card:hover::before { opacity: 1; }
.lp-crypto-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.lp-crypto-card-head strong { color: #fff; font-size: 15px; display: block; }
.lp-crypto-card-head small { color: rgba(255,255,255,0.5); font-size: 12px; }
.lp-crypto-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}
.lp-crypto-icon--btc { background: linear-gradient(135deg, #f7931a, #e88a15); color: #fff; }
.lp-crypto-icon--eth { background: linear-gradient(135deg, #627eea, #4f6dd8); color: #fff; }
.lp-crypto-icon--bnb { background: linear-gradient(135deg, #f3ba2f, #d8a420); color: #1a1a2e; }
.lp-crypto-icon--usdt { background: linear-gradient(135deg, #26a17b, #1f8a6a); color: #fff; }
.lp-crypto-price {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.lp-crypto-change {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.lp-crypto-change--up { color: #2ebd59; }
.lp-crypto-change--down { color: #ef4444; }
.lp-spark-chart {
    width: 100%;
    height: 50px;
    display: block;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-animate="stagger"] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(7) { transition-delay: 0.47s; opacity: 1; transform: translateY(0); }
[data-animate="stagger"].is-visible > *:nth-child(8) { transition-delay: 0.54s; opacity: 1; transform: translateY(0); }

/* ── Glow effects for feature cards ── */
.lp-feature-card:hover .lp-feature-icon {
    box-shadow: 0 0 24px rgba(53, 72, 254, 0.3);
}
.lp-feature-card:hover .lp-feature-icon--green {
    box-shadow: 0 0 24px rgba(46, 189, 89, 0.3);
}
.lp-feature-card:hover .lp-feature-icon--purple {
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.3);
}
.lp-feature-card:hover .lp-feature-icon--amber {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
}

/* ── Enhanced Hero ── */
.lp-hero-title .grad-text {
    display: inline;
    position: relative;
}
.lp-hero-content .lp-badge {
    animation: fadeSlideIn 0.6s 0.2s both;
}
.lp-hero-content .lp-hero-title {
    animation: fadeSlideIn 0.6s 0.35s both;
}
.lp-hero-content .lp-hero-desc {
    animation: fadeSlideIn 0.6s 0.5s both;
}
.lp-hero-content .lp-hero-actions {
    animation: fadeSlideIn 0.6s 0.65s both;
}
.lp-hero-visual {
    animation: fadeSlideIn 0.8s 0.4s both;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Trading section responsive ── */
@media (max-width: 1024px) {
    .lp-crypto-ticker-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .lp-trading-canvas { height: 240px; }
    .lp-section--dark { padding: 70px 0; }
    .lp-crypto-ticker-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .lp-crypto-card { padding: 16px 14px; }
    .lp-crypto-price { font-size: 17px; }
}
@media (max-width: 480px) {
    .lp-crypto-ticker-grid { grid-template-columns: 1fr; }
    .lp-trading-canvas { height: 200px; }
    .lp-trading-pair { padding: 8px 14px; gap: 10px; }
    .lp-trading-pair-icon { font-size: 22px; }
    .lp-trading-price { font-size: 15px; }
}

/* ── Ticket System ─────────────────────────────────────────────── */
.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e00;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}
/* Tab notification dots */
.tab-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}
.tab-dot--red { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.25); }
.tab-dot--yellow { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,0.25); }
/* Ticket list unread dot (yellow = admin replied, unread) */
.ticket-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(245,158,11,0.22);
}
.ticket-item {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
}
.ticket-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.ticket-date {
    font-size: 11px;
    color: var(--text2);
}
.ticket-subject {
    color: var(--text2);
    font-size: 12px;
    margin: 4px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ticket-att-label {
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 4px;
}
.ticket-att-link {
    color: var(--primary);
    font-size: 12px;
    margin-right: 8px;
}
.msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
}
.msg-admin {
    align-self: flex-start;
    background: rgba(53, 72, 254, 0.15);
}
.msg-user {
    align-self: flex-end;
    background: var(--bg3);
}
.msg-sender {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text2);
}
.msg-admin .msg-sender {
    color: var(--primary);
}
.msg-time {
    font-size: 10px;
    color: var(--text2);
    margin-top: 4px;
}
#ticket-detail-messages,
#admin-ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Admin Ticket Layout ───────────────────────────────────────── */
.admin-ticket-wrap {
    display: flex;
    gap: 12px;
    height: 70vh;
}
.admin-ticket-sidebar {
    width: 300px;
    min-width: 260px;
    overflow-y: auto;
    padding: 10px;
}
.admin-ticket-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.admin-ticket-reply-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-ticket-reply-row .input-field {
    flex: 1;
    min-width: 0;
}

/* ── User Ticket Reply Row ─────────────────────────────────────── */
.ticket-reply-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.ticket-reply-row .input-field {
    flex: 1;
    min-width: 0;
}

/* ── Responsive — Tablet ───────────────────────────────────────── */
@media (max-width: 768px) {
    /* Top bar */
    .top-bar {
        padding: 10px 12px;
        gap: 8px;
        min-height: 48px;
    }
    .tab-nav { top: 48px; }
    .top-bar-left { gap: 8px; min-width: 0; flex-shrink: 1; }
    .top-bar-right {
        gap: 6px;
        flex-shrink: 0;
    }
    .top-bar-brand {
        font-size: 13px;
    }
    .addr-badge {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
        padding: 3px 8px;
    }
    /* Tabs — smaller size, still horizontal scroll */
    .tab {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 12px;
    }
    /* Admin ticket layout — stack vertically */
    .admin-ticket-wrap {
        flex-direction: column;
        height: auto;
    }
    .admin-ticket-sidebar {
        width: 100%;
        min-width: unset;
        max-height: 35vh;
        overflow-y: auto;
    }
    .admin-ticket-detail {
        min-height: 50vh;
    }
    /* Admin ticket reply */
    .admin-ticket-reply-row {
        flex-direction: column;
    }
    .admin-ticket-reply-row .input-field {
        width: 100%;
    }
    #admin-ticket-reply-files {
        max-width: 100% !important;
    }
    /* User ticket reply */
    .ticket-reply-row {
        flex-direction: column;
    }
    .ticket-reply-row .input-field {
        width: 100%;
    }
    /* User ticket messages area */
    #ticket-detail-messages {
        max-height: 40vh !important;
    }
    /* Filter rows */
    .filter-row {
        flex-wrap: wrap;
    }
    /* Referral info grid */
    .referral-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Responsive — Mobile ───────────────────────────────────────── */
@media (max-width: 480px) {
    /* Top bar — tight: hide brand text, logo only + addr + disconnect */
    .top-bar {
        padding: 7px 10px;
        min-height: 44px;
    }
    .top-bar-left { gap: 6px; }
    .top-bar-left img {
        height: 22px !important;
    }
    .top-bar-brand {
        display: none;  /* hide brand text on very small screens */
    }
    .addr-badge {
        max-width: 100px;
        font-size: 10px;
        padding: 3px 7px;
        border-radius: 14px;
    }
    .top-bar-disconnect {
        padding: 4px 9px !important;
        font-size: 11px !important;
    }
    .btn-sm {
        padding: 4px 10px;
        font-size: 11px;
    }
    /* Tabs */
    .tab {
        padding: 7px 10px;
        font-size: 11px;
    }
    /* Tab content */
    .tab-content {
        padding: 10px;
    }
    /* Stat cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .stat-card {
        padding: 10px 8px;
    }
    .stat-card span {
        font-size: 15px;
    }
    .stat-card small {
        font-size: 10px;
    }
    /* Cards */
    .card {
        padding: 14px 12px;
        margin-bottom: 10px;
    }
    .card h3 {
        font-size: 14px;
    }
    /* Tables */
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    /* Packages grid */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .pkg-amount {
        font-size: 22px;
    }
    /* Referral */
    .referral-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .ref-stat {
        padding: 8px;
    }
    .ref-stat span {
        font-size: 15px;
    }
    .team-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    /* Copy box */
    .copy-box {
        flex-direction: column;
    }
    .copy-box .btn {
        width: 100%;
    }
    /* Admin ticket sidebar */
    .admin-ticket-sidebar {
        max-height: 30vh;
    }
    /* Form group */
    .form-group label {
        font-size: 12px;
    }
    .input-field {
        padding: 8px 10px;
        font-size: 13px;
    }
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .btn-block {
        font-size: 14px;
        padding: 12px;
    }
    /* Modals */
    .modal-box {
        padding: 18px 14px;
        max-width: 95vw;
    }
    /* Ticket messages */
    #ticket-detail-messages,
    #admin-ticket-messages {
        font-size: 13px;
    }
    /* List items */
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    /* Result box */
    .result-box {
        padding: 10px 12px;
        font-size: 12px;
    }
    /* Activation card */
    .activation-card {
        margin: 8px;
        padding: 16px 14px;
    }
    /* Status banner */
    .status-banner {
        padding: 8px 12px;
        font-size: 12px;
    }
    /* Airdrop / announcement banners */
    #airdrop-banner {
        flex-direction: column !important;
        text-align: center;
        gap: 8px !important;
        margin: 8px !important;
        padding: 10px !important;
        font-size: 13px;
    }
    /* Balance info */
    .balance-info {
        font-size: 12px;
    }
}

/* Earnings History Accordion */
.roi-acc-card { margin-bottom: 12px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.roi-acc-header { padding: 14px; cursor: pointer; transition: background 0.15s; }
.roi-acc-header:hover { background: rgba(53, 72, 254, 0.02); }
.roi-acc-icon { color: var(--text2); transition: transform 0.3s; }
.roi-acc-body { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.hist-earn-sub { background: transparent; border: 1px solid transparent; color: var(--text2); transition: all 0.2s; border-radius: 8px; }
.hist-earn-sub.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.bg-green { background: #10b981; }
.bg-red { background: #ef4444; }
.bg-gray { background: #e5e7eb; }
.roi-progress-mini { display: flex; flex-direction: column; }
.roi-seg { flex: 1; border-radius: 2px; }

/* ─── Announcements (User Side) ──────────────────────────────────── */
#announcements-bar { padding: 0 0 8px; overflow: hidden; }
.ann-scroll-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ann-scroll-wrap::-webkit-scrollbar { display: none; }
.ann-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: ann-scroll linear infinite;
    padding: 0 12px;
}
.ann-track:hover { animation-play-state: paused; }
@keyframes ann-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ann-card {
    background: linear-gradient(135deg, rgba(30,42,70,0.85), rgba(20,28,50,0.9));
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 260px;
    max-width: 360px;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ann-card:hover { border-color: rgba(99,102,241,0.4); box-shadow: 0 0 12px rgba(99,102,241,0.12); }
.ann-card:active { transform: scale(0.98); }
.ann-card-head { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ann-icon { font-size: 16px; flex-shrink: 0; }
.ann-title { font-weight: 700; font-size: 13px; color: #f1f5f9; overflow: hidden; text-overflow: ellipsis; }
.ann-body { margin: 4px 0 0; font-size: 12px; color: #cbd5e1; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-tag {
    font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 2px 7px; border-radius: 10px; flex-shrink: 0;
}
.ann-tag-news       { background: #1e3a5f; color: #93c5fd; }
.ann-tag-announcement { background: #3b1f5e; color: #d8b4fe; }
.ann-tag-update     { background: #1a3a2a; color: #6ee7b7; }
.ann-tag-alert      { background: #4a1c1c; color: #fca5a5; }

/* ─── Announcement Popup ─────────────────────────────────────────── */
.ann-popup-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.25s ease;
}
.ann-popup-overlay.visible { opacity: 1; }
.ann-popup {
    background: linear-gradient(160deg, #1a2240 0%, #131a30 100%);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 16px;
    padding: 28px 24px 22px;
    max-width: 440px; width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.08);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s ease;
}
.ann-popup-overlay.visible .ann-popup { transform: translateY(0) scale(1); }
.ann-popup-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; color: #94a3b8;
    font-size: 24px; cursor: pointer; line-height: 1;
    transition: color 0.15s;
}
.ann-popup-close:hover { color: #f1f5f9; }
.ann-popup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ann-popup-title { color: #f1f5f9; font-size: 18px; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.ann-popup-body { color: #cbd5e1; font-size: 14px; line-height: 1.6; word-wrap: break-word; white-space: pre-wrap; }
.ann-popup-time { margin-top: 16px; font-size: 11px; color: #64748b; }

/* ── Maintenance Modal ── */
.maint-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    animation: maint-fade-in 0.35s ease;
}
.maint-overlay.hidden { display: none; }
@keyframes maint-fade-in { from { opacity: 0; } to { opacity: 1; } }

.maint-box {
    position: relative;
    width: 92%; max-width: 440px;
    background: linear-gradient(165deg, #0c1929 0%, #0a0f1a 50%, #0d1117 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
    padding: 48px 36px 36px;
    text-align: center;
    box-shadow:
        0 0 80px rgba(59, 130, 246, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: maint-box-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes maint-box-in {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.maint-close {
    position: absolute; top: 16px; right: 18px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8; font-size: 20px; width: 34px; height: 34px;
    border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.maint-close:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }

.maint-icon-wrap {
    position: relative; width: 88px; height: 88px;
    margin: 0 auto 28px; display: flex; align-items: center; justify-content: center;
}
.maint-icon-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(251, 191, 36, 0.5);
    border-right-color: rgba(251, 191, 36, 0.2);
    animation: maint-spin 3s linear infinite;
}
.maint-icon-ring--2 {
    inset: 8px; border-top-color: rgba(245, 158, 11, 0.3);
    border-right-color: transparent; border-left-color: rgba(245, 158, 11, 0.15);
    animation-duration: 4.5s; animation-direction: reverse;
}
@keyframes maint-spin { to { transform: rotate(360deg); } }

.maint-icon-svg {
    width: 36px; height: 36px; color: #fbbf24;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.35));
    animation: maint-wrench 2.5s ease-in-out infinite;
}
@keyframes maint-wrench {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-12deg); }
    30% { transform: rotate(8deg); }
    45% { transform: rotate(-4deg); }
    60% { transform: rotate(0deg); }
}

.maint-title {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: 26px; font-weight: 700; color: #f1f5f9;
    margin: 0 0 12px; letter-spacing: -0.3px;
    background: linear-gradient(135deg, #f1f5f9 30%, #fbbf24 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.maint-msg {
    font-size: 14.5px; line-height: 1.65; color: #94a3b8;
    margin: 0 0 24px; max-width: 340px; margin-inline: auto;
}

.maint-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 100px; padding: 8px 18px;
    font-size: 12.5px; color: #fbbf24; font-weight: 500;
    margin-bottom: 24px;
}

.maint-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    animation: maint-pulse-anim 1.5s ease-in-out infinite;
}
@keyframes maint-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.maint-btn {
    display: block; width: 100%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fbbf24; font-size: 14px; font-weight: 600;
    padding: 13px 24px; border-radius: 14px; cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}
.maint-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
    transform: translateY(-1px);
}
