/* 
 * TzPay — Main Application Styles
 * Focus on Premium Dark Mode, Responsive Design & FinTech Aesthetics.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Base Brand Colors (Premium Gold & Pure Dark) */
    --primary: #F5A623;        /* TzPay Orange/Gold - EXACT */
    --primary-dark: #D97706;
    --primary-glow: rgba(245, 166, 35, 0.12);
    --primary-gradient: linear-gradient(135deg, #F5A623 0%, #D97706 100%);
    
    /* Brand Aliases for Forward Compatibility */
    --gold: #F5A623;
    --gold-dark: #D97706;
    --gold-glow: rgba(245, 166, 35, 0.15);
    
    /* Layout & Surface Colors (Dark Mode Default) */
    --bg-dark: #0A0A0C;        /* Richer Dark */
    --bg-nav: rgba(15, 15, 17, 0.8); /* For Glassmorphism */
    --bg-card: #14141F;        /* Premium Card Surface */
    --bg-card-hover: #1c1c2b;
    --bg-input: #1C1C2B;

    /* Text Colors */
    --text: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-label: #9CA3AF;

    /* Semantic Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Borders & Utilities */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    
    /* Effects */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 16px;
    --blur: 12px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
}

/* ─── Global Reset ──────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--primary);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ─── Layout Structure ──────────────────────────────── */
.app-layout, .admin-layout { 
    display: flex; 
    min-height: 100vh; 
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.main-content { 
    flex: 1; 
    padding: 20px 32px; 
    width: calc(100% - 250px); /* Explicit to prevent overflow pushing */
    min-width: 0; /* Critical for grid/flex blowout */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* ─── Navbar ────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 72px;
    background: var(--bg-nav);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}
.nav-logo h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.nav-logo h1 span:first-child { color: var(--text); }
.nav-logo h1 span:last-child { color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-user { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.nav-user strong { color: var(--text); font-weight: 700; }
.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-height: 44px; /* Touch target */
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-logout:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-glow); }

/* ─── Sidebar ───────────────────────────────────────── */
.sidebar {
    width: 250px;
    background: var(--bg-nav);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-right: 1px solid var(--border);
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
}
.sidebar-mobile-header { display: none; }
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10001;
    min-height: 44px; /* Touch target */
}
.mobile-toggle span {
    width: 100%;
    height: 2.5px;
    background: var(--text);
    border-radius: 4px;
    transition: all var(--transition);
}

.sidebar-nav { list-style: none; margin-bottom: 24px; padding: 0; }
.sidebar-label {
    padding: 8px 24px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.sidebar-nav > li > a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 4px solid transparent;
    text-decoration: none;
    min-height: 48px; /* Touch target */
}
.sidebar-nav > li > a:hover { 
    color: var(--text); 
    background: rgba(212,175,55,0.06); 
    padding-left: 28px;
}
.sidebar-nav > li > a.active {
    color: var(--primary);
    background: rgba(212,175,55,0.08);
    border-left: 4px solid var(--primary);
    font-weight: 600;
    padding-left: 28px;
}
.sidebar-nav li a .nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }

/* ─── Forms / Touch Targets ─────────────────────────── */
.form-group { margin-bottom: 20px; width: 100%; box-sizing: border-box; }
.form-group label {
    display: block;
    font-size: clamp(11px, 2vw, 12px);
    font-weight: 600;
    color: var(--text-label);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px; /* Touch optimized */
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
    box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-row { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 16px; 
    width: 100%; 
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    min-height: 52px; /* Premium touch target size */
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
    text-align: center;
}
.btn-primary {
    width: 100%;
    background: var(--primary-gradient);
    color: #000;
    box-shadow: 0 4px 14px 0 rgba(245, 166, 35, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
    filter: brightness(1.1);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-glow);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--bg-card-hover); transform: translateY(-2px); }
.btn-success { background: var(--success); color: #000; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(16,185,129,0.3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(239,68,68,0.3); }
.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 40px; }
.btn-block { width: 100%; display: flex; }

/* ─── Page Header ───────────────────────────────────── */
.page-header { margin-bottom: 30px; }
.page-header h2 { 
    font-size: clamp(22px, 4vw, 28px); 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: var(--text); 
    letter-spacing: -0.5px; 
}
.page-header p { color: var(--text-muted); font-size: clamp(14px, 2vw, 15px); }

/* ─── Wallet Card (Always visible, responsive) ──────── */
.wallet-card {
    background: linear-gradient(135deg, #1A182E 0%, #252244 100%);
    border: 1px solid rgba(245, 166, 35, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 166, 35, 0.05);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 40px);
    border-radius: var(--radius);
    width: 100%;
}
.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.wallet-label {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}
.wallet-balance {
    font-size: clamp(36px, 8vw, 48px);
    font-weight: 800;
    margin: 12px 0 28px;
    color: #fff;
    word-break: break-all;
    line-height: 1;
}
.wallet-balance small { font-size: 0.5em; opacity: 0.7; }
.wallet-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; }
.wallet-actions .btn {
    flex: 1;
    min-width: 140px;
}
.wallet-actions .btn:hover { background: rgba(212,175,55,0.2); border-color: var(--primary); color: #fff; }

/* ─── Cards & Grids ─────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap; 
    gap: 12px; 
}
.card-header h3 { font-size: 16px; font-weight: 700; }

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-bottom: 32px; 
    width: 100%;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.4); }
.stat-card .stat-icon { font-size: 28px; margin-bottom: 12px; color: var(--primary); }
.stat-card .stat-value { font-size: clamp(20px, 4vw, 24px); font-weight: 700; margin-bottom: 4px; color: var(--text); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

/* ─── Reponsive Tables ──────────────────────────────── */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto; /* CRITICAL requirement for mobile */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; }
table th {
    text-align: left;
    padding: 14px 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.1);
    white-space: nowrap;
}
table td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid rgba(45,45,45,0.4);
    vertical-align: middle;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 200px;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(212,175,55,0.04); }

/* ─── Services / Features ───────────────────────────── */
.feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 24px; 
    width: 100%;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-card:hover {
    border-color: rgba(245, 166, 35, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    background: var(--bg-card-hover);
}
.feature-card .feature-icon { font-size: 40px; margin-bottom: 20px; color: var(--primary); transition: transform 0.3s; }
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.feature-card .price { color: var(--primary); font-weight: 800; font-size: 20px; margin-top: auto; }

/* ─── Badges ────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-admin { background: var(--danger-bg); color: var(--danger); text-transform: uppercase; font-size: 10px; }

/* ─── Alerts & Callouts ─────────────────────────────── */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}
.alert-success { background: var(--success-bg); border: 1px solid rgba(16,185,129,0.2); color: var(--success); }
.alert-danger { background: var(--danger-bg); border: 1px solid rgba(239,68,68,0.2); color: var(--danger); }

/* ─── MEDIA QUERY BREAKPOINTS ───────────────────────── */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .main-content { padding: 24px 32px; }
    .feature-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* Tablets Landscape & Phablets */
@media (max-width: 768px) {
    .sidebar { 
        position: fixed;
        top: 0; left: 0; bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0,0,0,0.6);
        width: 250px;
    }
    .sidebar.active { transform: translateX(0); }
    .sidebar-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 28px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 16px;
    }
    .sidebar-close {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 32px;
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-toggle { display: flex; }
    .navbar { padding: 0 20px; height: 64px; }
    .nav-user { display: none; } /* Hide user text to save real estate */
    
    .main-content { 
        padding: 20px 16px; 
        width: 100%;
    }
    
    .stats-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    
    .form-row { grid-template-columns: 1fr; }
    
    table th, table td { padding: 14px 16px; font-size: 13.5px; }
}

/* Mobile Devices (Phones) */
@media (max-width: 480px) {
    .main-content { padding: 20px 16px; }
    .navbar { padding: 0 16px; height: 60px; }
    
    .btn-logout span { display: none; }
    .btn-logout { padding: 8px 12px; }
    
    /* 100% width stacking */
    .stats-grid, .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .wallet-actions { flex-direction: column; }
    .wallet-actions .btn { width: 100%; justify-content: center; }
    
    .card-header { flex-direction: column; align-items: flex-start; }
    .card-header .btn { width: 100%; }
    
    /* Ensure forms are perfectly safe from overflow */
    .form-group input, 
    .form-group select, 
    .form-group textarea { font-size: 16px; /* Prevents autozoom on iOS Safari */ }
    
    .alert { flex-direction: column; align-items: flex-start; }
}

/* ─── Light Mode Override ───────────────────────────── */
:root.light-mode {
    --bg-dark: #FFFFFF;
    --bg-nav: #FFFFFF;
    --bg-card: #F9FAFB;
    --bg-card-hover: #f1f5f9;
    --bg-input: #F9FAFB;
    --text: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-label: #4b5563;
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
}

:root.light-mode body { background-color: var(--bg-dark); color: var(--text); }
:root.light-mode .card,
:root.light-mode .stat-card,
:root.light-mode .feature-card,
:root.light-mode .table-container { background: var(--bg-card); border-color: var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

:root.light-mode .navbar,
:root.light-mode .sidebar {
    background: var(--bg-nav);
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

:root.light-mode .wallet-card {
    /* Always keep the beautiful dark aesthetic for the wallet card as per premium design */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-color: rgba(212, 175, 55, 0.4);
}

:root.light-mode table th { background: #f1f5f9; color: #4b5563; }
:root.light-mode table tr:hover td { background: rgba(0,0,0,0.02); }
:root.light-mode .form-group input { border-color: #d1d5db; background: #fff; }

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.theme-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ─── Sell USDT Specifics ───────────────────────────── */
.sell-card { max-width: 520px; margin: 0 auto 32px; }
.sell-summary {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}
.sell-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.sell-summary-row:last-child { margin-bottom: 0; }
.sell-summary-row.total {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
}
.sell-summary-label { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.sell-summary-value { font-weight: 700; font-size: 15px; color: var(--text); }
.sell-summary-value.highlight { color: var(--primary); }
.sell-summary-value.success { color: var(--success); font-size: 18px; }

/* ─── Modal System ──────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    margin: 0;
    padding: 32px;
    border-radius: var(--radius);
}
.modal-header h3 { font-size: 20px; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.modal-body { margin-bottom: 24px; }
.modal-info-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}
.info-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.info-row:last-child { margin-bottom: 0; }
.info-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 16px; font-weight: 700; color: var(--text); }
.info-value.highlight { color: var(--success); font-size: 20px; }

.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }

/* ─── Custom Form Controls ─────────────────────────── */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 20px 0;
    user-select: none;
}
.checkbox-container input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ─── Mobile Overrides ──────────────────────────────── */
@media (max-width: 480px) {
    .modal-card { padding: 24px 20px; }
    .modal-actions { flex-direction: column; }
    .sell-card { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════
   AUTH SPLIT-SCREEN LAYOUT (Phase 2)
   ═══════════════════════════════════════════════════ */
.auth-split {
    display: flex; min-height: 100vh; overflow: hidden;
}
.auth-panel {
    flex: 1; display: none; background: linear-gradient(135deg, var(--bg) 0%, rgba(245, 166, 35, 0.05) 100%);
    border-right: 1px solid var(--border-light); 
    flex-direction: column; justify-content: center; padding: 60px;
    position: relative; overflow: hidden;
}
.auth-panel::before {
    content: ''; position: absolute; top: -10%; left: 50%;
    width: 60vh; height: 60vh; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 60%);
    filter: blur(40px); pointer-events: none;
}
.auth-content {
    flex: 1.2; display: flex; flex-direction: column; justify-content: center;
    padding: clamp(24px, 5vw, 48px); background: var(--bg); position: relative;
    max-width: 600px; margin: 0 auto;
}
.auth-form-wrapper { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-logo { 
    font-family: var(--font-display, 'Inter'); 
    font-size: clamp(24px, 5vw, 28px); 
    font-weight: 800; 
    letter-spacing: -1px; 
    margin-bottom: 32px; 
}
.auth-header h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); margin-bottom: 32px; font-size: 15px; }

/* ═══════════════════════════════════════════════════
   PREMIUM DASHBOARD LAYOUT (Phase 3)
   ═══════════════════════════════════════════════════ */
.dash-layout { display: flex; min-height: 100vh; background: #0A0A0C; }
.dash-sidebar {
    width: 280px; background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column; transition: all 0.3s ease;
    z-index: 50; position: fixed; top: 0; bottom: 0; left: 0;
}
.dash-main {
    flex: 1; margin-left: 280px; padding: clamp(20px, 5vw, 40px); display: flex; flex-direction: column;
    max-width: calc(100vw - 280px);
}
.dash-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: clamp(24px, 5vw, 40px); padding-bottom: 24px; border-bottom: 1px solid var(--border-light);
}

/* Stat Cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(20,20,31,0.5) 100%);
    border: 1px solid var(--border-light); border-radius: 20px;
    padding: 24px; position: relative; overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(245, 166, 35, 0.3); }

/* Decorative Gradient Border Glow for Wallet Card */
.wallet-glow-card {
    background: #0A0A0C; border-radius: 24px; position: relative;
    padding: 3px; z-index: 1; /* Space for border */
}
.wallet-glow-card::before {
    content: ''; position: absolute; inset: 0; border-radius: 24px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.3), rgba(245, 166, 35, 0.05), rgba(255,255,255,0.02));
    z-index: -1; margin: -1px;
}
.wallet-glow-inner {
    background: #0A0A0C; border-radius: 22px; padding: 32px;
    height: 100%; display: flex; flex-direction: column; justify-content: center;
}

@media (min-width: 992px) {
    .auth-panel { display: flex; }
}
@media (max-width: 1024px) {
    .dash-sidebar { transform: translateX(-100%); }
    .dash-main { margin-left: 0; max-width: 100vw; }
    .dash-sidebar.open { transform: translateX(0); }
}
@media (max-width: 640px) {
    .auth-content { padding: 30px 20px; }
    .dash-main { padding: 24px 16px; }
    .dash-header { align-items: center; gap: 12px; }
    .dash-header h2 { font-size: 18px; }
    .dash-header .header-user-info { display: none !important; }
}

