/* ============================================
   AxioreMarkets — Shared Design System
   ============================================ */

:root {
    --bg: #070a0f;
    --sidebar: #0c1219;
    --card: #121a25;
    --card2: #151e2c;
    --border: #1d2a3a;
    --border2: #223247;
    --text: #e6eef8;
    --muted: #8291a8;
    --muted2: #9aa9c2;
    --green: #1ec28b;
    --green2: #10b981;
    --red: #ff4d5a;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --orange: #f59e0b;
}

[data-theme="light"] {
    --bg: #f0f2f5;
    --sidebar: #ffffff;
    --card: #ffffff;
    --card2: #f5f7fa;
    --border: #dde1e6;
    --border2: #c8cdd4;
    --text: #1a1d23;
    --muted: #6b7280;
    --muted2: #4b5563;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* --- Scroll reveal (enabled only when JS is present) --- */
.js .reveal { opacity: 0; }
.js .reveal.visible { opacity: 1; animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #233044; border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- Focus visible (accessibility fix #17) --- */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* --- Reduced motion (accessibility fix #18) --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- App Layout --- */
.app {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 50% -10%, #14233a 0%, transparent 60%), var(--bg);
}

/* --- Sidebar --- */
.sidebar {
    width: 256px; flex-shrink: 0;
    background: rgba(12, 18, 25, 0.96);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    overflow: hidden; z-index: 30;
}

.brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.brand-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    display: grid; place-items: center;
    color: white; font-weight: 800; font-size: 12px;
    letter-spacing: -0.5px;
}

.brand h1 { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; margin: 0; line-height: 1; }
.brand p { font-size: 11px; color: var(--muted); margin: 2px 0 0; }

.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-section { font-size: 10px; letter-spacing: 0.12em; color: #5b6b85; font-weight: 700; margin: 14px 8px 8px; }

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 10px;
    color: #8da0bb; font-size: 13px; font-weight: 500;
    transition: 0.15s; width: 100%;
    border: none; background: transparent; text-align: left;
}
.nav-item i { font-size: 16px; opacity: 0.9; }
.nav-item:hover { background: #15202f; color: #cfe0f7; }
.nav-item.active { background: #18273f; color: #7eb8ff; box-shadow: inset 0 0 0 1px #254063; }

.nav-item .badge {
    margin-left: auto; background: #1e3a5a; color: #7fb6ff;
    font-size: 10px; padding: 2px 6px; border-radius: 999px; font-weight: 700;
}
.badge-green { background: #1a2e1f; color: #34d399; }

.sidebar-footer {
    padding: 14px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}

.avatar {
    width: 34px; height: 34px; border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: grid; place-items: center;
    font-weight: 700; font-size: 12px; flex-shrink: 0;
}

.flex-1 { flex: 1; min-width: 0; }
.text-xs { font-size: 11px; }
.fw-700 { font-weight: 700; }
.lh-1 { line-height: 1; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.color-green { color: var(--green); }
.color-muted { color: var(--muted); }

/* --- Main Content Area --- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* --- Top Bar --- */
.topbar {
    height: 62px; display: flex; align-items: center; gap: 16px;
    padding: 0 18px; border-bottom: 1px solid var(--border);
    background: rgba(10, 15, 22, 0.9); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 20;
}

.hamburger {
    display: none; width: 38px; height: 38px;
    border-radius: 10px; border: 1px solid var(--border);
    background: #111a27; color: #cbd5e1;
    align-items: center; justify-content: center;
}

.top-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }

.search-wrap { flex: 1; max-width: 520px; margin: 0 auto; position: relative; }
.search-wrap input {
    width: 100%; height: 38px; background: #0f1722;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 0 40px 0 36px; color: var(--text);
    font-size: 13px; outline: none;
}
.search-wrap input::placeholder { color: #6b7a94; }
.search-wrap .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6b7a94; }

.kbd {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-size: 10px; color: #6b7a94; border: 1px solid var(--border);
    padding: 3px 6px; border-radius: 6px; background: #0d1520;
    display: none;
}
@media (min-width: 900px) { .kbd { display: block; } }

.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 36px; height: 36px; border-radius: 999px;
    background: #121c2a; border: 1px solid var(--border);
    display: grid; place-items: center;
    color: #9fb3cc; position: relative;
}
.icon-btn:hover { background: #172334; }

.notif-dot {
    position: absolute; top: -2px; right: -2px;
    width: 16px; height: 16px; background: var(--red);
    color: white; font-size: 9px; font-weight: 800;
    border-radius: 999px; display: grid; place-items: center;
    border: 2px solid var(--bg);
}

.user-pill {
    width: 32px; height: 32px; border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: grid; place-items: center;
    font-weight: 800; font-size: 11px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* --- Content Area --- */
.content { padding: 18px; overflow: auto; }

/* --- Page Heading --- */
.page-heading {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.page-heading h2 { margin: 0; font-size: 18px; font-weight: 800; }
.page-heading .live-badge {
    background: var(--green); color: white;
    font-size: 11px; padding: 4px 8px; border-radius: 999px;
    font-weight: 700; display: flex; align-items: center; gap: 4px;
}
.live-badge .pulse-dot {
    width: 6px; height: 6px; background: white; border-radius: 999px;
    display: inline-block;
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Cards --- */
.card {
    background: linear-gradient(180deg, #131d2a 0%, #111a27 100%);
    border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden;
}
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 10px;
}
.card-head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: -0.2px; }
.card-padded { padding: 14px; }

.link {
    font-size: 11px; color: #5aa9ff; font-weight: 600;
    background: none; border: none;
}
.link:hover { text-decoration: underline; }

/* --- Chips --- */
.chip {
    font-size: 10px; padding: 4px 8px; border-radius: 999px;
    background: #0f1a28; border: 1px solid var(--border);
    color: var(--muted); font-weight: 600;
    transition: 0.15s;
}
.chip.active { background: #1a2d4a; color: #8ec0ff; border-color: #2a4a7a; }
.chip-row { display: flex; gap: 8px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; height: 38px; border-radius: 10px; border: none;
    font-weight: 700; font-size: 13px; transition: 0.15s;
    padding: 0 16px;
}
.btn-full { width: 100%; }
.btn-green { background: var(--green); color: white; box-shadow: 0 6px 18px rgba(30, 194, 139, 0.25); }
.btn-green:hover { background: #15b07e; transform: translateY(-1px); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: #152233; }
.btn-sm { height: 32px; font-size: 12px; padding: 0 12px; }
.btn-xs { height: 28px; font-size: 11px; padding: 0 10px; border-radius: 999px; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    font-size: 10px; letter-spacing: 0.06em; color: var(--muted);
    font-weight: 700; text-align: left; padding: 8px 12px;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td {
    padding: 10px 12px; font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* --- Badges --- */
.badge-buy { font-size: 10px; background: rgba(16, 185, 129, 0.15); color: var(--green); padding: 3px 6px; border-radius: 999px; font-weight: 700; }
.badge-sell { font-size: 10px; background: rgba(239, 68, 68, 0.15); color: var(--red); padding: 3px 6px; border-radius: 999px; font-weight: 700; }
.badge-open { background: #1a2a1f; color: var(--green); padding: 3px 8px; border-radius: 999px; font-size: 11px; }
.badge-filled { background: #1a2333; color: var(--muted); padding: 3px 8px; border-radius: 999px; font-size: 11px; }

/* --- Forms --- */
.field { margin-bottom: 10px; }
.field label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; font-weight: 500; }
.field .input-wrap { position: relative; }

.select, .input {
    width: 100%; height: 36px; background: #0e1724;
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); padding: 0 12px; font-size: 12px; outline: none;
}
.input::placeholder { color: #5b6e8a; }
.input.error { border-color: var(--red); box-shadow: 0 0 0 1px rgba(255, 77, 90, 0.2); }
.input-inner-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-size: 11px; color: #5aa9ff; font-weight: 700;
    background: none; border: none;
}

/* --- Tabs --- */
.tabs {
    display: flex; background: #0d1520; border-radius: 999px;
    padding: 3px; border: 1px solid var(--border); gap: 3px; margin-bottom: 14px;
}
.tab {
    flex: 1; height: 28px; border-radius: 999px; border: none;
    background: transparent; color: var(--muted);
    font-size: 12px; font-weight: 700;
}
.tab.active { background: var(--green); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.tab.active.sell { background: #ef4444; }

/* --- Range / Slider --- */
.range-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.range-row input[type=range] { flex: 1; accent-color: var(--green); }
.pct { font-size: 10px; color: var(--muted); font-weight: 700; }
.available-row { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 10px; }

/* --- Toggle Switch --- */
.switch {
    width: 36px; height: 20px; background: #223244; border-radius: 999px;
    position: relative; cursor: pointer; transition: 0.2s;
    border: 1px solid var(--border); flex-shrink: 0;
}
.switch.on { background: var(--green); border-color: var(--green); }
.switch::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; background: white; border-radius: 999px;
    transition: 0.2s; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.switch.on::after { transform: translateX(16px); }

/* --- Modal --- */
.modal-bg {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px); display: flex; align-items: center;
    justify-content: center; z-index: 50; padding: 16px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal {
    background: #131d2b; border: 1px solid var(--border2);
    border-radius: 18px; max-width: 440px; width: 100%;
    padding: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 20px; padding: 0; }

/* --- Toast --- */
.toast-wrap {
    position: fixed; right: 16px; bottom: 16px; z-index: 60;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
    background: #0f1a28; color: white; border: 1px solid var(--border);
    padding: 12px 14px; border-radius: 12px; font-size: 13px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(10px); opacity: 0;
    animation: toastIn 0.25s forwards;
    pointer-events: auto;
}
.toast.toast-err { border-color: rgba(255, 77, 90, 0.4); }
.toast.toast-warn { border-color: rgba(245, 158, 11, 0.4); }
.toast .toast-icon { font-size: 16px; flex-shrink: 0; }
.toast .toast-icon.err { color: var(--red); }
.toast .toast-icon.warn { color: var(--orange); }
.toast .toast-icon.ok { color: var(--green); }
@keyframes toastIn { to { transform: none; opacity: 1; } }

/* --- Overlay (mobile sidebar) --- */
.overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
    z-index: 25; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.overlay.open { opacity: 1; pointer-events: auto; display: block; }

/* --- Audit Banner --- */
.audit-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent);
    border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 12px;
    padding: 10px 14px; display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.audit-banner b { font-size: 12px; letter-spacing: 0.04em; }
.audit-banner .banner-body { flex: 1; }
.audit-banner .banner-sub { font-size: 11px; color: var(--muted); }
.audit-banner .dismiss-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); border-radius: 999px;
    padding: 6px 10px; font-size: 11px;
}

/* --- Stats Grid --- */
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 1400px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat { padding: 14px 14px 12px; position: relative; overflow: hidden; }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; margin: 6px 0 4px; letter-spacing: -0.5px; }
.stat-change { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }
.stat-icon {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 999px;
    display: grid; place-items: center; font-size: 16px;
}
.spark { height: 28px; margin-top: 6px; }

/* --- Mid Grid --- */
.mid-grid { display: grid; grid-template-columns: 1.05fr 1.15fr 1.2fr 0.92fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 1200px) { .mid-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .mid-grid { grid-template-columns: 1fr; } }

/* --- Bottom Grid --- */
.bottom-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.15fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 1200px) { .bottom-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .bottom-grid { grid-template-columns: 1fr; } }

/* --- Footer Grid --- */
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 12px; }
@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .footer-grid { grid-template-columns: 1fr; } }

/* --- Market List --- */
.market-list { padding: 0 10px 10px; }
.coin-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 6px; border-radius: 10px;
}
.coin-row:hover { background: #152233; }
.coin-icon {
    width: 28px; height: 28px; border-radius: 999px;
    display: grid; place-items: center; font-size: 13px;
    font-weight: 800; color: white; flex-shrink: 0;
}
.coin-meta { flex: 1; min-width: 0; }
.coin-name { font-size: 12px; font-weight: 700; line-height: 1; }
.coin-pair { font-size: 10px; color: var(--muted); }
.coin-price { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; text-align: right; }
.coin-change { font-size: 10px; font-weight: 700; text-align: right; }
.mini-spark { width: 64px; height: 22px; opacity: 0.9; }

/* --- Allocation / Donut --- */
.allocation-wrap { padding: 0 14px 14px; }
.donut-box { position: relative; height: 170px; display: grid; place-items: center; }
.donut-center { position: absolute; text-align: center; }
.donut-center div:first-child { font-size: 10px; color: var(--muted); }
.donut-center div:last-child { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 16px; }

.legend { display: grid; gap: 6px; margin-top: 10px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #cbd5e1; }
.dot { width: 8px; height: 8px; border-radius: 999px; }

/* --- Chart --- */
.performance-top { display: flex; align-items: center; gap: 8px; }
.chart-box { padding: 6px 10px 10px; height: 190px; }
.perf-metrics { padding: 0 14px; }
.perf-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 800; color: var(--green); }
.perf-pct { font-size: 11px; color: var(--green); }

/* --- Quick Trade --- */
.quick-trade { padding: 12px; }

/* --- Activity --- */
.activity-list { padding: 6px 12px 12px; display: grid; gap: 10px; }
.activity { display: flex; gap: 10px; align-items: flex-start; }
.activity-dot {
    width: 26px; height: 26px; border-radius: 999px;
    display: grid; place-items: center; font-size: 12px;
    flex-shrink: 0; margin-top: 1px;
}
.activity b { font-size: 12px; }
.activity p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.time { font-size: 10px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* --- Quick Actions --- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px 12px; }
.qa {
    height: 52px; border-radius: 12px; border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; font-size: 11px;
    font-weight: 600; transition: 0.15s; color: inherit;
}
.qa i { font-size: 16px; }
.qa:hover { transform: translateY(-2px); filter: brightness(1.08); }
.qa-deposit { background: #0e2a1c; color: #34d399; border-color: #1a3a2a; }
.qa-withdraw { background: #1a1f3a; color: #818cf8; border-color: #2a2e5a; }
.qa-trade { background: #0f2a44; color: #60a5fa; border-color: #1e3a5a; }
.qa-neutral { background: #1e293b; color: #94a3b8; }
.qa-buy { background: #2a1f0f; color: #f59e0b; border-color: #3a2a14; }
.qa-earn { background: #2a1744; color: #c084fc; border-color: #3b1f6b; }

/* --- Alerts Row --- */
.alert-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.alert-row:last-child { border: none; }

/* --- Security --- */
.security { padding: 12px; display: grid; gap: 10px; }
.security-flex { display: flex; gap: 14px; align-items: center; }
.sec-item { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sec-item:first-child { margin-top: 0; }
.sec-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center; font-size: 14px;
    background: #0f1e2e; border: 1px solid var(--border);
}
.sec-title { font-size: 12px; font-weight: 700; }
.sec-desc { font-size: 11px; color: var(--muted); }

.shield {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    display: grid; place-items: center; font-size: 28px;
    color: white; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* --- News --- */
.news { padding: 0 12px 12px; display: grid; gap: 10px; }
.news-item { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.news-item:last-child { border: none; }
.news-title { font-size: 12px; font-weight: 600; line-height: 1.3; }
.news-meta { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* --- Settings --- */
.settings-layout { display: grid; grid-template-columns: 300px 1fr; gap: 12px; }
@media (max-width: 700px) { .settings-layout { grid-template-columns: 1fr; } }
.settings-tab {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 10px;
    color: #8da0bb; font-size: 13px; font-weight: 500;
    transition: 0.15s; width: 100%;
    border: none; background: transparent; text-align: left;
}
.settings-tab:hover { background: #15202f; color: #cfe0f7; }
.settings-tab.active { background: #18273f; color: #7eb8ff; box-shadow: inset 0 0 0 1px #254063; }
.settings-tab i { font-size: 16px; opacity: 0.9; }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.setting-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px; background: #0d1520; border: 1px solid var(--border);
    border-radius: 12px;
}
.setting-row + .setting-row { margin-top: 10px; }
.setting-title { font-size: 13px; font-weight: 700; }
.setting-desc { font-size: 11px; color: var(--muted); }

/* --- Support --- */
.support-grid { display: grid; grid-template-columns: 1fr 320px; gap: 12px; }
@media (max-width: 700px) { .support-grid { grid-template-columns: 1fr; } }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.help-card {
    padding: 12px; background: #0d1520;
    border: 1px solid var(--border); border-radius: 12px;
}
.help-card i { font-size: 18px; }
.help-card .help-title { font-weight: 700; margin-top: 6px; font-size: 13px; }
.help-card .help-desc { font-size: 11px; color: var(--muted); }

/* --- Deposit Modal --- */
.deposit-network {
    background: #0d1520; border: 1px solid var(--border);
    border-radius: 12px; padding: 12px; display: flex;
    gap: 10px; align-items: center;
}
.deposit-icon {
    width: 40px; height: 40px; border-radius: 999px;
    background: #f59e0b; display: grid; place-items: center;
    color: white; flex-shrink: 0;
}
.qr-box {
    width: 140px; height: 140px; background: white;
    border-radius: 12px; margin: 0 auto;
    display: grid; place-items: center; color: #111; font-size: 42px;
}
.address-box {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    background: #0d1520; border: 1px solid var(--border);
    padding: 8px; border-radius: 8px; margin-top: 10px;
    word-break: break-all; text-align: center;
}

/* --- Confirm Modal --- */
.confirm-body { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.confirm-actions { display: flex; gap: 8px; }
.confirm-actions .btn { flex: 1; }

/* --- Skeleton Loaders --- */
.skeleton {
    background: linear-gradient(90deg, #131d2a 25%, #1a2638 50%, #131d2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
.skeleton-text { height: 14px; width: 80%; margin-bottom: 8px; }
.skeleton-text.short { width: 50%; }
.skeleton-chart { height: 180px; width: 100%; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Order Book --- */
.order-book { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.order-col h4 { font-size: 11px; font-weight: 700; margin: 0 0 6px; }
.order-col.bids h4 { color: var(--green); }
.order-col.asks h4 { color: var(--red); }

/* --- Utility --- */
.mono { font-family: 'JetBrains Mono', monospace; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple); }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.fw-600 { font-weight: 600; }
.fw-800 { font-weight: 800; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-18 { font-size: 18px; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .sidebar {
        position: fixed; left: 0; top: 0;
        transform: translateX(-100%); transition: 0.25s;
    }
    .sidebar.open { transform: none; }
    .hamburger { display: grid; }
    .search-wrap { max-width: none; }
    .top-title { display: none; }
}

@media (max-width: 640px) {
    .settings-layout { grid-template-columns: 1fr; }
    .support-grid { grid-template-columns: 1fr; }
    .help-grid { grid-template-columns: 1fr; }
    .order-book { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Landing Page
   ============================================ */

.landing-page {
    background: radial-gradient(1200px 600px at 50% -10%, #14233a 0%, transparent 60%), var(--bg);
    min-height: 100vh;
}

/* Nav */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(10, 15, 22, 0.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 64px; display: flex; align-items: center;
}
.landing-nav-inner {
    max-width: 1200px; width: 100%; margin: 0 auto;
    padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
}
.landing-logo { display: flex; align-items: center; gap: 10px; }
.landing-logo .mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1ec28b);
    display: grid; place-items: center;
    color: white; font-weight: 800; font-size: 13px;
}
.landing-logo .name { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }
.landing-links { display: flex; align-items: center; gap: 28px; }
.landing-links a { font-size: 13px; color: var(--muted); font-weight: 500; transition: color 0.15s; }
.landing-links a:hover { color: var(--text); }
.landing-actions { display: flex; align-items: center; gap: 10px; }
.landing-actions .btn-signin { font-size: 13px; font-weight: 600; color: var(--text); padding: 8px 16px; border-radius: 10px; transition: 0.15s; }
.landing-actions .btn-signin:hover { background: rgba(255,255,255,0.05); }
.landing-actions .btn-cta {
    font-size: 13px; font-weight: 700; color: white; background: var(--green);
    padding: 9px 22px; border-radius: 10px; box-shadow: 0 6px 20px rgba(30,194,139,0.3);
    transition: 0.15s;
}
.landing-actions .btn-cta:hover { background: #15b07e; transform: translateY(-1px); }
.landing-hamburger {
    display: none; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--border); background: #111a27; color: #cbd5e1;
    align-items: center; justify-content: center;
}

/* Mobile menu */
.landing-mobile-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(12, 18, 25, 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); padding: 16px 24px;
    flex-direction: column; gap: 8px; z-index: 49;
}
.landing-mobile-menu.open { display: flex; }
.landing-mobile-menu a {
    padding: 10px 12px; border-radius: 10px; font-size: 14px;
    color: var(--muted); font-weight: 500; display: block;
}
.landing-mobile-menu a:hover { background: #15202f; color: var(--text); }
.landing-mobile-menu .mobile-cta {
    background: var(--green); color: white; text-align: center;
    font-weight: 700; margin-top: 8px;
}
.landing-mobile-menu .mobile-cta:hover { background: #15b07e; }

/* Hero */
.hero-section { padding: 140px 24px 48px; text-align: center; position: relative; overflow: hidden; }
.hero-glow-1 {
    position: absolute; top: 10%; left: -10%;
    width: 400px; height: 400px; background: rgba(59,130,246,0.12);
    border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-glow-2 {
    position: absolute; bottom: 10%; right: -10%;
    width: 400px; height: 400px; background: rgba(30,194,139,0.08);
    border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-trust-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(30,194,139,0.1); border: 1px solid rgba(30,194,139,0.2);
    border-radius: 999px; padding: 6px 16px; margin-bottom: 24px;
    font-size: 12px; color: var(--green); font-weight: 600;
}
.hero-trust-badge .dot {
    width: 7px; height: 7px; background: var(--green); border-radius: 50%;
    animation: pulse 1.6s ease-in-out infinite;
}
.hero-section h1 {
    font-size: clamp(36px, 6vw, 58px); font-weight: 800;
    letter-spacing: -1.5px; line-height: 1.12; margin: 0 0 20px;
}
.hero-section h1 .gradient-text {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 17px; color: var(--muted); max-width: 560px;
    margin: 0 auto 36px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.hero-btn-primary {
    height: 50px; padding: 0 32px; border-radius: 14px;
    background: var(--green); color: white; font-size: 16px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 28px rgba(30,194,139,0.3);
    transition: 0.2s; border: none;
}
.hero-btn-primary:hover { background: #15b07e; transform: translateY(-2px); }
.hero-btn-outline {
    height: 50px; padding: 0 32px; border-radius: 14px;
    background: transparent; color: var(--text); font-size: 16px;
    font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); transition: 0.2s;
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.04); }
.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; max-width: 720px; margin: 0 auto;
}
.hero-stat {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 18px 12px; text-align: center;
}
.hero-stat .stat-num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 800; }
.hero-stat .stat-lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Section */
.landing-section { padding: 80px 24px; }
.landing-section.alt { background: rgba(18,26,37,0.3); }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 12px; }
.section-header p { color: var(--muted); font-size: 15px; max-width: 540px; margin: 0 auto; }

/* Feature cards */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 28px 24px;
    transition: 0.25s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border2); }
.feature-card .feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(30,194,139,0.16));
    border: 1px solid rgba(59,130,246,0.25);
    display: grid; place-items: center; margin-bottom: 16px;
}
.feature-card .feat-icon i { font-size: 24px; color: #60a5fa; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Steps */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step-card { text-align: center; padding: 28px 20px; }
.step-card .step-num {
    width: 60px; height: 60px; border-radius: 18px;
    background: rgba(30,194,139,0.1); border: 1px solid rgba(30,194,139,0.2);
    display: grid; place-items: center; margin: 0 auto 20px;
    color: var(--green);
}
.step-card .step-num i { font-size: 26px; }
.step-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.step-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Security grid */
.security-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.security-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px 18px; text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}
.security-card:hover { transform: translateY(-3px); border-color: var(--border2); }
.security-card .sec-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.22);
    display: grid; place-items: center; margin: 0 auto 16px; color: #60a5fa;
}
.security-card .sec-icon i { font-size: 26px; }
.security-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.security-card p { font-size: 12px; color: var(--muted); margin: 0; }

/* Testimonials */
.testimonial-slider-wrap { position: relative; max-width: 640px; margin: 0 auto; }
.testimonial-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 28px; text-align: center;
}
.testimonial-card .stars { font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; color: #f59e0b; }
.testimonial-card .quote { font-size: 14px; color: var(--muted2); font-style: italic; line-height: 1.7; margin-bottom: 20px; }
.testimonial-card .author { display: flex; align-items: center; justify-content: center; gap: 10px; }
.testimonial-card .author-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1ec28b);
    display: grid; place-items: center; font-weight: 800; font-size: 15px; color: white;
}
.testimonial-card .author-name { font-size: 13px; font-weight: 700; }
.testimonial-card .author-loc { font-size: 11px; color: var(--muted); }
.testimonial-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--border);
    color: var(--text); font-size: 22px; display: grid; place-items: center;
    transition: 0.15s;
}
.testimonial-nav-btn:hover { background: var(--card2); }
.testimonial-nav-btn.prev { left: -48px; }
.testimonial-nav-btn.next { right: -48px; }
.testimonial-dots-row { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.t-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border);
    border: none; cursor: pointer; transition: 0.2s; padding: 0;
}
.t-dot.active { background: var(--green); width: 28px; border-radius: 999px; }

/* FAQ */
.faq-list { max-width: 680px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
}
.faq-q {
    width: 100%; padding: 16px 20px; background: none; border: none;
    color: var(--text); font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
    text-align: left; cursor: pointer;
}
.faq-q .chevron { font-size: 18px; transition: transform 0.2s; color: var(--muted); }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    padding: 0 20px; font-size: 13px; color: var(--muted); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 16px; }

/* Market movers */
.movers-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.mover-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 12px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.mover-card:hover { transform: translateY(-2px); border-color: var(--border2); }
.mover-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #f2f5f9; position: relative; overflow: hidden;
    display: grid; place-items: center; flex-shrink: 0;
}
.mover-icon img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 6px; z-index: 1; }
.mover-icon .mover-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-weight: 800; font-size: 15px; color: #fff; z-index: 0;
}
.mover-info { flex: 1; min-width: 0; }
.mover-symbol { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mover-type {
    font-size: 9px; padding: 2px 6px; border-radius: 999px;
    font-weight: 700; text-transform: uppercase;
}
.mover-type.crypto { background: rgba(59,130,246,0.15); color: var(--blue); }
.mover-type.stock { background: rgba(139,92,246,0.15); color: var(--purple); }
.mover-price { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; margin-top: 2px; }
.mover-change { font-size: 11px; font-weight: 600; margin-top: 2px; }

/* Services grid */
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.service-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px 18px; text-align: center;
    transition: 0.25s;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--border2); }
.service-card .svc-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(30,194,139,0.14));
    border: 1px solid rgba(59,130,246,0.22);
    display: grid; place-items: center; margin: 0 auto 14px; color: #60a5fa;
}
.service-card .svc-icon i { font-size: 24px; }
.service-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.service-card p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Footer */
.landing-footer {
    border-top: 1px solid var(--border); padding: 40px 24px 32px;
}
.landing-footer .footer-grid { max-width: 1200px; margin: 0 auto; }
.landing-footer .footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.landing-footer .footer-col a {
    display: block; font-size: 13px; color: var(--muted2); padding: 5px 0;
    transition: color 0.15s;
}
.landing-footer .footer-col a:hover { color: var(--text); }
.landing-footer .footer-bottom {
    padding-top: 28px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin-left: auto; margin-right: auto;
    font-size: 12px; color: var(--muted);
}

/* Stats band */
.stats-band { padding: 0 24px 40px; }
.stats-band .hero-stats { max-width: 1100px; }

/* Section CTA + disclaimer */
.section-cta { text-align: center; margin-top: 40px; }
.disclaimer { font-size: 12px; color: var(--muted); margin: 20px auto 0; max-width: 560px; text-align: center; line-height: 1.6; }
.disclaimer.center { text-align: center; }

/* Stock section decorative chart */
.stock-section { position: relative; overflow: hidden; }
.stock-visual { position: absolute; inset: 0; pointer-events: none; opacity: 0.05; }
.stock-section .section-container { position: relative; }

/* Market movers detail */
.mover-top { display: flex; align-items: center; gap: 6px; }
.mover-symbol { font-size: 13px; font-weight: 700; }
.mover-name { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mover-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.mover-price { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; }
.mover-change { font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.mover-change.up { color: var(--green); }
.mover-change.down { color: var(--red); }

/* Affiliate opportunity cards */
.opp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.opp-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px 20px;
    display: flex; flex-direction: column; gap: 12px;
    transition: 0.25s;
}
.opp-card:hover { transform: translateY(-3px); border-color: var(--border2); }
.opp-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #60a5fa; }
.opp-cat i { font-size: 20px; }
.opp-commission {
    font-size: 11px; color: var(--green);
    background: rgba(30,194,139,0.08); border: 1px solid rgba(30,194,139,0.22);
    border-radius: 999px; padding: 5px 12px; align-self: flex-start; font-weight: 600;
}
.opp-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; flex: 1; }
.opp-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--green); transition: gap 0.2s;
}
.opp-cta:hover { gap: 10px; }

/* Service card CTA */
.svc-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--green); transition: gap 0.2s; }
.svc-cta:hover { gap: 10px; }

/* Footer brand + disclosure */
.footer-brand { max-width: 1200px; margin: 0 auto 28px; }
.footer-disclosure {
    max-width: 1200px; margin: 24px auto 0; padding: 14px 16px;
    background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.18);
    border-radius: 12px; font-size: 12px; color: var(--muted); line-height: 1.7;
}

/* Responsive landing */
@media (max-width: 900px) {
    .landing-links { display: none; }
    .landing-hamburger { display: grid; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr 1fr; }
    .movers-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .opp-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-nav-btn.prev { left: -10px; }
    .testimonial-nav-btn.next { right: -10px; }
    .landing-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .hero-section { padding: 120px 16px 48px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .movers-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .opp-grid { grid-template-columns: 1fr; }
    .landing-section { padding: 48px 16px; }
    .landing-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   KYC document upload
   ============================================ */
.kyc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 768px) { .kyc-grid { grid-template-columns: 1fr; } }

/* Admin user-edit layout */
.user-edit-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.user-edit-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .user-edit-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .user-edit-grid-2 { grid-template-columns: 1fr; } }
.kyc-upload {
    display: block; border: 1.5px dashed var(--border2); border-radius: 12px;
    background: #0d1520; cursor: pointer; padding: 18px; text-align: center;
    transition: 0.15s; min-height: 90px;
}
.kyc-upload:hover { border-color: #60a5fa; background: #0f1a28; }
.kyc-upload .kyc-upload-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kyc-file-info { display: flex; align-items: center; gap: 8px; justify-content: center; }
.kyc-progress { margin-top: 10px; }
.kyc-progress-bar { height: 6px; background: #0d1520; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.kyc-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #1ec28b); transition: width 0.15s; }
.kyc-spin { animation: kycSpin 1s linear infinite; }
@keyframes kycSpin { to { transform: rotate(360deg); } }

/* ============================================
   Admin wallet balance adjustment
   ============================================ */
.wallet-adjust { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.wallet-adjust .field { flex: 1 1 130px; min-width: 110px; }
.wallet-adjust .field .input { min-height: 44px; }
.wallet-adjust .btn { min-height: 44px; min-width: 150px; white-space: nowrap; }

/* ============================================
   Admin & dashboard responsive hardening
   ============================================ */
@media (max-width: 768px) {
    .modal { max-width: 94vw; max-height: 88vh; overflow-y: auto; }
    .input, .select, textarea.input, .btn { min-height: 42px; font-size: 14px; }
    .btn-sm { min-height: 36px; }
    .btn-xs { min-height: 32px; padding: 0 12px; }
    .wallet-adjust { flex-direction: column; align-items: stretch; }
    .wallet-adjust .btn { width: 100%; }
    .audit-banner { flex-wrap: wrap; gap: 8px; }
    .page-heading { flex-wrap: wrap; gap: 8px; }
    .card-head { flex-wrap: wrap; gap: 8px; }
    .table th, .table td { padding: 10px 8px; }
    .settings-tab { min-height: 40px; }
    #notifDropdown { right: 8px; left: 8px; width: auto; }
    .topbar { padding: 0 10px; gap: 8px; }
    .top-actions { gap: 6px; }
    .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .search-wrap { display: none; }
    .table th, .table td { font-size: 12px; padding: 8px 6px; }
    .stat-value { font-size: 15px; }
    .card-padded { padding: 12px; }
    .content { padding: 12px; }
}
@media (max-width: 400px) {
    .stats-grid { gap: 8px; }
    .btn { padding: 0 12px; }
}

/* Inline-grid overrides: collapse fixed 3-col / fixed-sidebar grids on mobile.
   (Inline styles beat class rules, so these use !important.) */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr 1fr !important; }
    div[style*="grid-template-columns:1fr 300px"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:340px 1fr"] { grid-template-columns: 1fr !important; }
    div[style*="grid-template-columns:380px 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
    div[style*="repeat(auto-fill,minmax(380px,1fr))"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
    div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
}
