/* ============================================================
   TRADEVAULT PRO - MAIN STYLESHEET
   Dark Theme | Glassmorphism | Premium Financial Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0b0e11;
    --bg-secondary: #151a21;
    --bg-tertiary: #1c2128;
    --bg-card: rgba(28, 33, 40, 0.7);
    --bg-glass: rgba(28, 33, 40, 0.4);
    --bg-hover: rgba(45, 55, 72, 0.5);
    --bg-input: #0f1419;
    --accent-primary: #00c853;
    --accent-secondary: #00e676;
    --accent-dark: #009624;
    --accent-glow: rgba(0, 200, 83, 0.3);
    --color-success: #00c853;
    --color-danger: #ff5252;
    --color-warning: #ffb300;
    --color-info: #448aff;
    --color-primary: #00c853;
    --text-primary: #ffffff;
    --text-secondary: #a0a8b8;
    --text-muted: #5c6475;
    --text-green: #00e676;
    --text-red: #ff5252;
    --nav-active: #ff9100;
    --nav-active-glow: rgba(255, 145, 0, 0.35);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(0, 200, 83, 0.5);
    --glass-bg: rgba(28, 33, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-primary); background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-size: 1.125rem; font-weight: 700; }

.glass { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.glass-light { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-color); }
.glass-card { background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.glass-card:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3); }

.app-container { display: flex; min-height: 100vh; }

/* ===== SIDEBAR - FIXED SCROLLING ===== */
.sidebar { width: 280px; height: 100vh; background: var(--bg-secondary); border-right: 1px solid var(--border-color); position: fixed; left: 0; top: 0; z-index: 100; transition: transform var(--transition-base); display: flex; flex-direction: column; overflow: hidden; }
.sidebar .sidebar-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: var(--space-md); }
.sidebar .sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar .sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar .sidebar-scroll::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-full); }
.main-content { flex: 1; margin-left: 280px; min-height: 100vh; transition: margin-left var(--transition-base); }
.content-wrapper { padding: var(--space-lg); max-width: 1440px; margin: 0 auto; }

/* Sidebar Header & User */
.sidebar-header { padding: var(--space-lg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.sidebar-logo { width: 42px; height: 42px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; color: var(--bg-primary); }
.sidebar-brand { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.sidebar-user { padding: var(--space-lg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.sidebar-user-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: white; flex-shrink: 0; overflow: hidden; }
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-id { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.sidebar-footer { padding: var(--space-lg); border-top: 1px solid var(--border-color); flex-shrink: 0; }

/* Sidebar Navigation */
.sidebar-nav { padding: var(--space-md); list-style: none; }
.sidebar-nav-section { padding: var(--space-sm) var(--space-md); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-top: var(--space-md); }
.sidebar-nav-item { margin: 2px 0; }
.sidebar-nav-link { display: flex; align-items: center; gap: var(--space-md); padding: 0.75rem var(--space-md); border-radius: var(--radius-md); color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all var(--transition-fast); position: relative; }
.sidebar-nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-nav-link.active { background: rgba(0, 200, 83, 0.1); color: var(--accent-primary); font-weight: 600; }
.sidebar-nav-link.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--accent-primary); border-radius: 0 3px 3px 0; }
.sidebar-nav-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Top Header */
.top-header { height: 70px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-xl); position: sticky; top: 0; z-index: 90; }
.header-search { position: relative; width: 320px; }
.header-search input { width: 100%; padding: 0.6rem 1rem 0.6rem 2.5rem; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-primary); font-size: 0.875rem; transition: all var(--transition-fast); }
.header-search input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }
.header-search input::placeholder { color: var(--text-muted); }
.header-search-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: var(--space-md); }
.header-btn { width: 40px; height: 40px; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); position: relative; }
.header-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--text-muted); }
.header-btn .badge-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: var(--color-danger); color: white; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.header-profile { display: flex; align-items: center; gap: var(--space-sm); padding: 0.25rem 0.75rem 0.25rem 0.25rem; border-radius: var(--radius-full); cursor: pointer; transition: background var(--transition-fast); }
.header-profile:hover { background: var(--bg-hover); }
.header-avatar { width: 36px; height: 36px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; overflow: hidden; }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* TradingView Ticker Tape */
.ticker-tape-bar { background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
.ticker-tape-bar .tradingview-widget-container { height: 44px; }
.ticker-tape-bar iframe { height: 44px !important; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-xl); }
.stat-card { background: var(--glass-card); border-radius: var(--radius-lg); padding: var(--space-lg); position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); opacity: 0.5; }
.stat-card-accent::before { opacity: 1; height: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-xs); }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); letter-spacing: -0.02em; }
.stat-change { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; font-weight: 600; margin-top: var(--space-xs); padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); }
.stat-change.positive { color: var(--color-success); background: rgba(0, 200, 83, 0.1); }
.stat-change.negative { color: var(--color-danger); background: rgba(255, 82, 82, 0.1); }

/* Cards */
.card { background: var(--glass-card); border-radius: var(--radius-lg); border: 1px solid var(--glass-border); overflow: hidden; }
.card-header { padding: var(--space-lg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.card-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.card-body { padding: var(--space-lg); }
.card-footer { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.02); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th { padding: 0.875rem var(--space-md); text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.data-table tbody td { padding: 1rem var(--space-md); border-bottom: 1px solid var(--border-color); font-size: 0.875rem; color: var(--text-secondary); vertical-align: middle; }
.data-table tbody tr { transition: background var(--transition-fast); }
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.badge-green { background: rgba(0, 200, 83, 0.15); color: var(--color-success); }
.badge-red { background: rgba(255, 82, 82, 0.15); color: var(--color-danger); }
.badge-yellow { background: rgba(255, 179, 0, 0.15); color: var(--color-warning); }
.badge-blue { background: rgba(68, 138, 255, 0.15); color: var(--color-info); }
.badge-gray { background: rgba(92, 100, 117, 0.15); color: var(--text-muted); }
.badge-orange { background: rgba(255, 145, 0, 0.15); color: #ff9100; }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 0.625rem 1.25rem; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all var(--transition-fast); font-family: var(--font-primary); position: relative; overflow: hidden; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: var(--bg-primary); box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--text-muted); }
.btn-outline { background: transparent; color: var(--accent-primary); border: 1px solid var(--accent-primary); }
.btn-outline:hover:not(:disabled) { background: rgba(0, 200, 83, 0.1); }
.btn-danger { background: rgba(255, 82, 82, 0.15); color: var(--color-danger); border: 1px solid rgba(255, 82, 82, 0.3); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 82, 82, 0.25); }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Forms */
.form-group { margin-bottom: var(--space-md); }
.form-label { display: block; margin-bottom: var(--space-xs); font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.form-label-required::after { content: ' *'; color: var(--color-danger); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.875rem; font-family: var(--font-primary); transition: all var(--transition-fast); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235c6475' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-error { color: var(--color-danger); font-size: 0.8rem; margin-top: var(--space-xs); }
.form-hint { color: var(--text-muted); font-size: 0.75rem; margin-top: var(--space-xs); }
.form-check { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; }
.form-check-input { width: 18px; height: 18px; accent-color: var(--accent-primary); cursor: pointer; }
.form-check-label { font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; }

/* File Upload */
.file-upload { border: 2px dashed var(--border-color); border-radius: var(--radius-lg); padding: var(--space-xl); text-align: center; cursor: pointer; transition: all var(--transition-fast); position: relative; }
.file-upload:hover { border-color: var(--accent-primary); background: rgba(0, 200, 83, 0.03); }
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-icon { width: 48px; height: 48px; margin: 0 auto var(--space-sm); color: var(--text-muted); }

/* Tabs */
.tabs { display: flex; gap: var(--space-xs); border-bottom: 1px solid var(--border-color); margin-bottom: var(--space-lg); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); text-decoration: none; }
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); width: 90%; max-width: 560px; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(0.95); transition: transform var(--transition-base); }
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header { padding: var(--space-lg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--bg-hover); border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.modal-close:hover { background: var(--color-danger); color: white; }
.modal-body { padding: var(--space-lg); }
.modal-footer { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: var(--space-sm); }

/* Alerts - SOLID COLORS */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; margin-bottom: var(--space-md); border-left: 4px solid; }
.alert-success { background: #00c853; color: #ffffff; border-color: #009624; }
.alert-error { background: #ff5252; color: #ffffff; border-color: #d32f2f; }
.alert-warning { background: #ffb300; color: #1a1a1a; border-color: #ff8f00; }
.alert-info { background: #448aff; color: #ffffff; border-color: #2962ff; }

/* Pagination */
.pagination { display: flex; justify-content: center; padding: var(--space-lg) 0; }
.pagination-links { display: flex; gap: var(--space-xs); align-items: center; }
.pagination-link { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 0.75rem; border-radius: var(--radius-md); background: var(--bg-tertiary); color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: all var(--transition-fast); }
.pagination-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.pagination-link.active { background: var(--accent-primary); color: var(--bg-primary); }

/* Chart Container */
.chart-container { position: relative; height: 500px; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; }
.tradingview-widget-container { width: 100%; height: 100%; }

/* Asset List */
.asset-list { display: flex; flex-direction: column; gap: 2px; }
.asset-item { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem var(--space-md); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); }
.asset-item:hover { background: var(--bg-hover); }
.asset-item.active { background: rgba(0, 200, 83, 0.08); border-left: 3px solid var(--accent-primary); }
.asset-info { display: flex; align-items: center; gap: var(--space-md); }
.asset-icon { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.asset-details { min-width: 0; }
.asset-name { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.asset-symbol { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.asset-price-info { text-align: right; }
.asset-price { font-weight: 600; font-size: 0.875rem; font-family: var(--font-mono); }
.asset-change { font-size: 0.75rem; font-weight: 600; }
.asset-change.up { color: var(--color-success); }
.asset-change.down { color: var(--color-danger); }

/* Ticker */
.ticker { display: flex; gap: var(--space-xl); padding: var(--space-sm) var(--space-lg); background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker-item { display: flex; align-items: center; gap: var(--space-sm); white-space: nowrap; flex-shrink: 0; }

/* Trade Panel */
.trade-panel { background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: var(--space-lg); }
.trade-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--border-color); }
.trade-type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.trade-type-btn { padding: 0.75rem; border-radius: var(--radius-md); border: none; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all var(--transition-fast); }
.trade-type-btn.buy { background: rgba(0, 200, 83, 0.15); color: var(--color-success); }
.trade-type-btn.buy.active { background: var(--color-success); color: white; }
.trade-type-btn.sell { background: rgba(255, 82, 82, 0.15); color: var(--color-danger); }
.trade-type-btn.sell.active { background: var(--color-danger); color: white; }

/* Progress Bar */
.progress-bar { height: 8px; background: var(--bg-input); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.5s ease; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); }

/* Mobile Bottom Nav */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-secondary); border-top: 1px solid var(--border-color); z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.mobile-nav-items { display: flex; justify-content: space-around; align-items: flex-end; position: relative; height: 64px; padding: 0 var(--space-sm); }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; padding-bottom: 8px; color: var(--text-muted); text-decoration: none; font-size: 0.75rem; font-weight: 500; transition: color var(--transition-fast); flex: 1; }
.mobile-nav-item.active { color: var(--bn-green); font-weight: 700; }
.mobile-nav-item i, .mobile-nav-item svg { width: 24px; height: 24px; transition: transform 0.2s ease, filter 0.2s ease; }
.mobile-nav-item.active i, .mobile-nav-item.active svg {
    transform: scale(1.45) translateY(-4px);
    filter: drop-shadow(0 0 8px rgba(0, 200, 83, 0.7));
}
.mobile-nav-center-wrap { position: relative; display: flex; align-items: flex-start; justify-content: center; flex: 0 0 70px; height: 100%; }
.mobile-nav-center { position: relative; top: -26px; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: var(--radius-full); background: var(--bn-green); color: #fff; box-shadow: 0 6px 18px rgba(0,200,83,0.35); text-decoration: none; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.mobile-nav-center:hover, .mobile-nav-center:active { transform: translateY(-2px); box-shadow: 0 8px 24px var(--nav-active-glow); }
.mobile-nav-center i, .mobile-nav-center svg { width: 36px; height: 36px; font-size: 36px; line-height: 1; }

/* Mobile Toggle */
.mobile-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); align-items: center; justify-content: center; cursor: pointer; }

/* Sidebar Overlay (Mobile) */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 99; }
.sidebar-overlay.active { display: block; }

/* ===== ADMIN STYLES ===== */
.admin-sidebar { width: 260px; height: 100vh; background: #0d1117; border-right: 1px solid var(--border-color); position: fixed; left: 0; top: 0; z-index: 100; display: flex; flex-direction: column; overflow: hidden; }
.admin-sidebar .sidebar-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: var(--space-md); }
.admin-sidebar .sidebar-scroll::-webkit-scrollbar { width: 4px; }
.admin-sidebar .sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar .sidebar-scroll::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-full); }
.admin-main { margin-left: 260px; min-height: 100vh; background: var(--bg-primary); width: calc(100% - 260px); }
.admin-main .content-wrapper { max-width: 1200px; margin: 0 auto; width: 100%; }
.admin-topbar { height: 60px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 0; z-index: 90; }
.admin-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; border-radius: 0; transition: all 0.15s; border-left: 3px solid transparent; }
.admin-nav-link:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); }
.admin-nav-link.active { background: rgba(255,145,0,0.08); color: #ff9100; border-left-color: #ff9100; }
.stat-card-admin { background: var(--glass-card); border-radius: var(--radius-lg); padding: 1.25rem; border: 1px solid var(--glass-border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .admin-main { margin-left: 0; width: 100%; }
    .mobile-toggle { display: flex !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .header-search { width: 200px; }
    .mobile-nav { display: block !important; }
    .main-content { padding-bottom: 90px; }
    .admin-main { padding-bottom: 90px; }
}

@media (max-width: 768px) {
    /* FORCE SINGLE COLUMN ON ALL PAGES */
    .stats-grid { grid-template-columns: 1fr !important; }
    .stats-row { grid-template-columns: 1fr !important; }
    .grid.grid-cols-2 { grid-template-columns: 1fr !important; }
    .grid.grid-cols-3 { grid-template-columns: 1fr !important; }
    .grid.grid-cols-4 { grid-template-columns: 1fr !important; }
    .admin-grid-cols-2 { grid-template-columns: 1fr !important; }
    .admin-grid-cols-3 { grid-template-columns: 1fr !important; }
    .bn-asset-cards { grid-template-columns: 1fr !important; }
    .bn-quick-actions { grid-template-columns: repeat(4, 1fr) !important; }
    .payment-method-select { grid-template-columns: 1fr !important; }

    .header-search { display: none; }
    .content-wrapper { padding: var(--space-md); }
    .top-header { padding: 0 var(--space-md); }
    .admin-topbar { padding: 0 var(--space-md); }
    .mobile-nav { display: block !important; }
    .main-content { padding-bottom: 90px; }
    .admin-main { padding-bottom: 90px; }
    .chart-container { height: 350px; }
    .modal { width: 95%; margin: var(--space-md); }
    .trade-layout { grid-template-columns: 1fr !important; height: auto; min-height: auto; }
    .trade-panel { order: -1; }

    /* Dashboard responsive */
    .balance-card { min-height: auto; }
    .balance-card-content { flex-direction: column; padding: var(--space-lg); }
    .balance-card-left { min-width: 100%; }
    .balance-amount { font-size: 2rem; }
    .balance-card-right { width: 100%; justify-content: center; }
    .donut-container { width: 120px; height: 120px; }
    .stat-card-v2 { padding: var(--space-md); }
    .stat-v2-value { font-size: 1.2rem; }
    .quick-action-btn { padding: var(--space-md); font-size: 0.8rem; }

    /* Asset list responsive */
    .asset-item-v2 { padding: 0.625rem var(--space-sm); }
    .asset-item-v2 .asset-right { gap: var(--space-sm); }
    .market-stats-bar { gap: var(--space-md); padding: var(--space-sm) var(--space-md); flex-wrap: wrap; }
    .asset-pills { gap: 0.35rem; }
    .asset-pill { padding: 0.3rem 0.65rem; font-size: 0.75rem; }

    /* Trade modal responsive */
    .trade-modal { width: 95%; }
    .pg-modal { width: 95%; }

    /* Trading page responsive - STACK LAYOUT */
    .trade-layout-responsive { grid-template-columns: 1fr !important; }
    .trade-asset-panel { max-height: 400px; order: 2; }
    .trade-chart-panel { order: 1; }
    .trade-chart-panel .card { min-height: 300px !important; }
    .trade-chart-panel .card-body { min-height: 300px !important; }
    .trade-categories-tabs { gap: 0.15rem; }
    .trade-cat-tab { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
    .trade-pill { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
    .market-stats-bar { gap: var(--space-sm); padding: var(--space-sm); }
    .market-stat-label { font-size: 0.6rem; }
    .market-stat-value { font-size: 0.8rem; }
    /* Markets: cards on mobile */
    .markets-card-grid { display: grid !important; grid-template-columns: 1fr !important; }
    .markets-table-desktop { display: none !important; }

    /* Binance dashboard mobile */
    .bn-balance-amount, .bn-balance-hidden { font-size: 1.75rem; }
    .bn-market-chart { display: none; }
    .bn-market-row { gap: var(--space-sm); padding: 0.625rem var(--space-sm); }
    .bn-market-trade-btn { padding: 0.3rem 0.75rem; font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .stat-value { font-size: 1.4rem; }
    .card-header, .card-body { padding: var(--space-md); }
    .data-table { font-size: 0.8rem; }
    .data-table thead th, .data-table tbody td { padding: 0.625rem var(--space-sm); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%); background-size: 2000px 100%; animation: shimmer 2s infinite linear; border-radius: var(--radius-md); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-lg); background: linear-gradient(135deg, var(--bg-primary) 0%, #0d1219 50%, var(--bg-secondary) 100%); position: relative; overflow: hidden; }
.auth-page::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 200, 83, 0.08) 0%, transparent 70%); top: -200px; right: -200px; pointer-events: none; }
.auth-page::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 230, 118, 0.05) 0%, transparent 70%); bottom: -100px; left: -100px; pointer-events: none; }
.auth-container { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: var(--space-xl); }
.auth-logo-icon { width: 64px; height: 64px; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); display: inline-flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 800; color: var(--bg-primary); margin-bottom: var(--space-md); box-shadow: 0 8px 32px rgba(0, 200, 83, 0.3); }
.auth-logo h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.auth-card { background: var(--glass-card); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: var(--space-xl); box-shadow: var(--glass-shadow); }
.auth-tabs { display: flex; gap: var(--space-xs); margin-bottom: var(--space-xl); background: var(--bg-input); border-radius: var(--radius-md); padding: 4px; }
.auth-tab { flex: 1; padding: 0.625rem; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all var(--transition-fast); }
.auth-tab.active { background: var(--accent-primary); color: var(--bg-primary); }
.auth-footer { text-align: center; margin-top: var(--space-lg); color: var(--text-muted); font-size: 0.875rem; }
.auth-footer a { color: var(--accent-primary); text-decoration: none; font-weight: 600; }

/* Dropdown, Notifications, KYC Steps - unchanged core styles */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition-fast); z-index: 200; overflow: hidden; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: var(--space-md); padding: 0.75rem var(--space-lg); color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: all var(--transition-fast); }
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: var(--space-xs) 0; }
.notification-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-height: 480px; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition-fast); z-index: 200; overflow: hidden; display: flex; flex-direction: column; }
.dropdown.open .notification-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.notification-header { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.notification-list { overflow-y: auto; flex: 1; }
.notification-item { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background var(--transition-fast); }
.notification-item:hover { background: var(--bg-hover); }
.notification-item.unread { background: rgba(0, 200, 83, 0.03); border-left: 3px solid var(--accent-primary); }
.notification-item-title { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.notification-item-message { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.notification-item-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
.notification-empty { padding: var(--space-xl); text-align: center; color: var(--text-muted); }

.kyc-steps { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.kyc-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.kyc-step-number { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--bg-tertiary); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; color: var(--text-muted); }
.kyc-step.active .kyc-step-number { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--bg-primary); }
.kyc-step.completed .kyc-step-number { background: var(--color-success); border-color: var(--color-success); color: white; }
.kyc-step-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.kyc-step.active .kyc-step-label { color: var(--accent-primary); }
.kyc-step.completed .kyc-step-label { color: var(--color-success); }
.kyc-step-line { flex: 1; height: 2px; background: var(--border-color); max-width: 60px; min-width: 30px; }
.kyc-step-line.completed { background: var(--color-success); }

/* Utility classes */
.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-accent { color: var(--accent-primary) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.font-mono { font-family: var(--font-mono) !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.text-sm { font-size: 0.875rem !important; }
.text-xs { font-size: 0.75rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.mt-1 { margin-top: var(--space-xs) !important; }
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }
.p-3 { padding: var(--space-md) !important; }
.p-4 { padding: var(--space-lg) !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: var(--space-sm) !important; }
.gap-3 { gap: var(--space-md) !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.hidden { display: none !important; }
.grid { display: grid; gap: var(--space-lg); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   BINANCE-STYLE DASHBOARD
   ============================================================ */

/* Binance color variables override */
:root {
    --bn-yellow: #F0B90B;
    --bn-yellow-hover: #d4a509;
    --bn-green: #0ECB81;
    --bn-red: #F6465D;
    --bn-blue: #3B82F6;
    --bn-purple: #8B5CF6;
    --bn-cyan: #06B6D4;
    --bn-bg: #0b0e11;
    --bn-card: #1e2329;
    --bn-border: #2b3139;
    --bn-text: #eaecef;
    --bn-text-secondary: #848e9c;
}

/* ============================================================
   USER MANAGEMENT SYSTEM
   ============================================================ */

.um-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

/* User Details */
.um-details { max-width: 1000px; }
.um-details-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.um-details-header h2 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin: 0; flex: 1; }

/* Actions Dropdown */
.um-actions-dropdown { position: relative; }
.um-actions-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: var(--radius-md); background: var(--accent-primary); color: var(--bg-primary); font-size: 0.875rem; font-weight: 700; border: none; cursor: pointer; transition: all var(--transition-fast); }
.um-actions-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.um-actions-menu { display: none; position: absolute; top: calc(100% + 0.5rem); right: 0; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); min-width: 280px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 200; overflow: hidden; }
.um-actions-menu.show { display: block; animation: dropdownShow 0.15s ease-out; }
.um-actions-menu a, .um-actions-menu button, .um-actions-menu form button.um-action-login { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem; color: var(--text-secondary); font-size: 0.875rem; text-decoration: none; transition: all var(--transition-fast); border: none; background: none; width: 100%; cursor: pointer; border-bottom: 1px solid var(--border-color); }
.um-actions-menu a:last-of-type, .um-actions-menu button:last-child { border-bottom: none; }
.um-actions-menu a:hover, .um-actions-menu button:hover, .um-action-login:hover { background: var(--bg-hover); color: var(--text-primary); }
.um-action-login { color: var(--color-success) !important; font-weight: 600; }
.um-action-delete, .um-action-delete:hover { color: var(--color-danger) !important; }
.um-actions-menu a i, .um-actions-menu button i { font-size: 1.1rem; width: 20px; text-align: center; }

/* Stats Grid */
.um-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.um-stat-card { background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); padding: 1rem; }
.um-stat-label { font-size: 0.75rem; color: var(--bn-text-secondary); font-weight: 600; text-transform: uppercase; margin-bottom: 0.35rem; }
.um-stat-value { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; color: var(--bn-text); }

/* Status Row */
.um-status-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.um-status-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-md); font-size: 0.85rem; }
.um-status-item span:first-child { color: var(--bn-text-secondary); font-weight: 600; }
.um-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }
.um-badge-green { background: rgba(14,203,129,0.15); color: #0ECB81; }
.um-badge-red { background: rgba(246,70,93,0.15); color: #F6465D; }
.um-badge-blue { background: rgba(59,130,246,0.15); color: #3B82F6; }

/* Info Grid */
.um-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.um-info-card { background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.um-info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--bn-text); display: flex; align-items: center; gap: 0.5rem; }
.um-info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--bn-border); font-size: 0.9rem; }
.um-info-row:last-child { border-bottom: none; }
.um-info-row label { color: var(--bn-text-secondary); font-size: 0.85rem; }
.um-info-row span { color: var(--bn-text); font-weight: 500; }

/* ===== WELCOME SECTION + KYC BADGE ===== */
.bn-welcome-section { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-lg); padding: var(--space-md) var(--space-lg); background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); }
.bn-welcome-left { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.bn-welcome-label { font-size: 1.1rem; color: var(--bn-text-secondary); font-weight: 500; }
.bn-welcome-name { font-weight: 700; color: var(--bn-text); }
.bn-joint-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); background: rgba(139,92,246,0.15); color: #8B5CF6; font-size: 0.7rem; font-weight: 700; margin-left: 0.5rem; text-transform: uppercase; }
.bn-kyc-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: var(--radius-full); background: rgba(255,255,255,0.05); }
.bn-joint-holders { display: flex; gap: var(--space-md); }
.bn-joint-holder { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); border: 1px solid var(--bn-border); }
.bn-joint-holder-icon { width: 28px; height: 28px; border-radius: var(--radius-full); background: linear-gradient(135deg, #8B5CF6, #6D28D9); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: white; }
.bn-joint-holder-name { font-weight: 600; font-size: 0.8rem; color: var(--bn-text); }
.bn-joint-holder-type { font-size: 0.65rem; color: var(--bn-text-secondary); text-transform: capitalize; }

/* ===== PORTFOLIO PIE CHART ===== */
.bn-pie-section { display: flex; align-items: center; gap: var(--space-xl); padding: var(--space-lg); background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.bn-pie-chart-wrap { position: relative; width: 200px; height: 200px; flex-shrink: 0; }
.bn-pie-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.bn-pie-center-label { font-size: 0.7rem; color: var(--bn-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.bn-pie-center-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--bn-text); }
.bn-pie-legend { display: flex; flex-direction: column; gap: var(--space-md); flex: 1; }
.bn-pie-legend-item { display: flex; align-items: center; gap: 0.75rem; padding: var(--space-sm) var(--space-md); background: rgba(255,255,255,0.02); border-radius: var(--radius-md); }
.bn-pie-legend-dot { width: 12px; height: 12px; border-radius: var(--radius-full); flex-shrink: 0; }
.bn-pie-legend-label { color: var(--bn-text-secondary); font-size: 0.85rem; flex: 1; }
.bn-pie-legend-value { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
.bn-pie-legend-pct { font-family: var(--font-mono); font-size: 0.8rem; color: var(--bn-text-secondary); }

/* ===== KYC PAGE - DUAL FLOW ===== */
.kyc-flow-tabs { display: flex; gap: 0; margin-bottom: var(--space-lg); border-bottom: 1px solid var(--bn-border); }
.kyc-flow-tab { padding: var(--space-md) var(--space-lg); font-size: 0.9rem; font-weight: 600; color: var(--bn-text-secondary); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition-fast); }
.kyc-flow-tab:hover { color: var(--bn-text); }
.kyc-flow-tab.active { color: var(--bn-yellow); border-bottom-color: var(--bn-yellow); }
.kyc-holder-section { margin-bottom: var(--space-xl); padding: var(--space-lg); background: rgba(139,92,246,0.03); border: 1px solid rgba(139,92,246,0.15); border-radius: var(--radius-lg); }
.kyc-holder-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: #8B5CF6; margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid rgba(139,92,246,0.1); }
.kyc-document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

.bn-dashboard { max-width: 1200px; }

/* Balance Section */
.bn-balance-section { background: linear-gradient(135deg, #041120 0%, #1c1c1c 100%); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); padding: var(--space-xl); margin-bottom: var(--space-xl); }

/* Portfolio Overview + Pie Chart */
.portfolio-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: var(--space-xl); }
.portfolio-overview > div { min-width: 0; }
.portfolio-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Dashboard Two-Layer: Portfolio Allocation + Recent Trades */
.dashboard-two-layer { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: var(--space-xl); align-items: start; }
.dashboard-layer-card { background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); padding: var(--space-lg); min-width: 0; }

/* Stats Row - 4 Cards: Balance | Deposit | Profit | Drawdown */
.bn-stats-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: var(--space-lg); }
.bn-stat-card-v2 { background: rgba(11, 14, 17, 0.5); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; flex-direction: column; min-height: 120px; }
.bn-stat-card-v2.balance { border-color: rgba(240,185,11,0.2); }
.bn-stat-card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.bn-stat-card-icon { width: 28px; height: 28px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.bn-stat-card-title { font-size: 0.85rem; font-weight: 600; color: var(--bn-text); flex: 1; }
.bn-stat-card-badge { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); background: rgba(255,255,255,0.05); color: var(--bn-text-secondary); }
.bn-stat-card-badge.up { background: rgba(14,203,129,0.15); color: var(--bn-green); }
.bn-stat-card-badge.down { background: rgba(246,70,93,0.15); color: var(--bn-red); }
.bn-stat-card-badge.steady { background: rgba(6,182,212,0.15); color: #06B6D4; }
.bn-stat-card-body { flex: 1; display: flex; align-items: center; }
.bn-stat-card-value { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); color: var(--bn-text); letter-spacing: -0.02em; }
.bn-stat-card-hidden { font-size: 2rem; font-weight: 700; font-family: var(--font-mono); color: var(--bn-text); letter-spacing: 0.2em; }
.bn-stat-card-footer { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--bn-text-secondary); margin-top: 0.5rem; }

.bn-balance-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-lg); }
.bn-eye-btn { background: none; border: none; color: var(--bn-text-secondary); cursor: pointer; font-size: 1rem; padding: 0; transition: color var(--transition-fast); }
.bn-eye-btn:hover { color: var(--bn-text); }
.bn-balance-amount { font-size: 2.2rem; font-weight: 700; font-family: var(--font-mono); color: var(--bn-text); letter-spacing: -0.02em; }
.bn-balance-hidden { font-size: 2.2rem; font-weight: 700; font-family: var(--font-mono); color: var(--bn-text); letter-spacing: 0.2em; }
.bn-pnl { margin-top: 0.35rem; font-size: 0.85rem; }
.bn-pnl-value { font-family: var(--font-mono); font-weight: 600; }
.bn-pnl-value.up { color: var(--bn-green); }
.bn-pnl-value.down { color: var(--bn-red); }
.bn-pnl-label { color: var(--bn-text-secondary); margin-left: 0.25rem; }

/* Yellow Add Funds Button */
.bn-btn-yellow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: var(--radius-md); background: var(--bn-yellow); color: #1e2026; font-size: 0.875rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all var(--transition-fast); }
.bn-btn-yellow:hover { background: var(--bn-yellow-hover); transform: translateY(-1px); }

/* Quick Action Icons */
.bn-quick-actions { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--space-md); }
.bn-qaction { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--bn-text-secondary); font-size: 0.75rem; font-weight: 500; transition: all var(--transition-fast); }
.bn-qaction:hover { color: var(--bn-text); transform: translateY(-2px); }
.bn-qaction-icon { width: 48px; height: 48px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; transition: transform var(--transition-fast); }
.bn-qaction:hover .bn-qaction-icon { transform: scale(1.08); }

/* Section Header */
.bn-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.bn-section-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--bn-text); display: flex; align-items: center; gap: 0.5rem; }
.bn-link { font-size: 0.85rem; color: var(--bn-text-secondary); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 0.15rem; transition: color var(--transition-fast); }
.bn-link:hover { color: var(--bn-yellow); }

/* Asset Cards with Sparklines */
.bn-asset-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); }
.bn-asset-card { background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); padding: var(--space-md); cursor: pointer; transition: all var(--transition-fast); }
.bn-asset-card:hover { border-color: var(--bn-yellow); background: #252a32; }
.bn-asset-card-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-sm); }
.bn-asset-icon { width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.7rem; flex-shrink: 0; }
.bn-asset-info { flex: 1; min-width: 0; }
.bn-asset-name { font-weight: 600; font-size: 0.85rem; color: var(--bn-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn-asset-symbol { font-size: 0.7rem; color: var(--bn-text-secondary); font-family: var(--font-mono); }
.bn-asset-change { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.bn-asset-change.up { color: var(--bn-green); }
.bn-asset-change.down { color: var(--bn-red); }
.bn-asset-card-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-sm); }
.bn-asset-price { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--bn-text); }
.bn-sparkline { width: 100px; height: 28px; flex-shrink: 0; }

/* Market Section */
.bn-market-section { margin-bottom: var(--space-xl); }
.bn-market-tabs { display: flex; gap: var(--space-xs); border-bottom: 1px solid var(--bn-border); margin-bottom: var(--space-md); }
.bn-tab { padding: 0.625rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--bn-text-secondary); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition-fast); }
.bn-tab:hover { color: var(--bn-text); }
.bn-tab.active { color: var(--bn-yellow); border-bottom-color: var(--bn-yellow); }
.bn-market-list { display: flex; flex-direction: column; }
.bn-market-row { display: flex; align-items: center; gap: var(--space-md); padding: 0.75rem var(--space-md); border-radius: var(--radius-md); cursor: pointer; transition: background var(--transition-fast); }
.bn-market-row:hover { background: rgba(240,185,11,0.05); }
.bn-market-icon { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.bn-market-info { flex: 1; min-width: 0; }
.bn-market-name { font-weight: 600; font-size: 0.9rem; color: var(--bn-text); }
.bn-market-fullname { font-size: 0.75rem; color: var(--bn-text-secondary); }
.bn-market-chart { flex-shrink: 0; }
.bn-market-price-col { text-align: right; min-width: 90px; flex-shrink: 0; }
.bn-market-price { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; color: var(--bn-text); }
.bn-market-change { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.bn-market-change.up { color: var(--bn-green); }
.bn-market-change.down { color: var(--bn-red); }
.bn-market-trade-btn { display: inline-flex; align-items: center; padding: 0.35rem 1rem; border-radius: var(--radius-sm); background: rgba(14,203,129,0.15); color: var(--bn-green); font-size: 0.8rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all var(--transition-fast); flex-shrink: 0; }
.bn-market-trade-btn:hover { background: var(--bn-green); color: white; }

/* Trades Card */
.bn-trades-card { background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); overflow: hidden; }
.bn-empty { padding: var(--space-xl); text-align: center; color: var(--bn-text-secondary); }
.bn-empty i { font-size: 2.5rem; display: block; margin-bottom: var(--space-md); }
.bn-empty p { margin-bottom: var(--space-md); }

/* Binance Badges */
.bn-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.bn-badge-green { background: rgba(14,203,129,0.15); color: var(--bn-green); }
.bn-badge-red { background: rgba(246,70,93,0.15); color: var(--bn-red); }
.bn-badge-blue { background: rgba(59,130,246,0.15); color: #3B82F6; }
.bn-badge-yellow { background: rgba(240,185,11,0.15); color: var(--bn-yellow); }
.bn-badge-purple { background: rgba(139,92,246,0.15); color: #8B5CF6; }
.bn-badge-cyan { background: rgba(6,182,212,0.15); color: #06B6D4; }
.bn-badge-gray { background: rgba(132,142,156,0.15); color: var(--bn-text-secondary); }

/* Trade Table */
.bn-trade-table { font-size: 0.85rem; }
.bn-trade-table th { font-size: 0.7rem; }

/* ===== RESPONSIVE: ALL PAGES SINGLE COLUMN ON MOBILE ===== */
@media (max-width: 1024px) {
    .bn-stats-row-4 { grid-template-columns: repeat(2, 1fr); }
    .dashboard-two-layer { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .bn-stats-row-4 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .bn-stat-card-v2 { padding: 1rem; min-height: auto; }
    .bn-stat-card-value { font-size: 1.5rem; }
    .bn-stat-card-hidden { font-size: 1.5rem; }
    .bn-quick-actions { grid-template-columns: repeat(4, 1fr); }
    .bn-asset-cards { grid-template-columns: repeat(2, 1fr); }
    .portfolio-overview { grid-template-columns: 1fr; }
    .portfolio-overview-grid { grid-template-columns: 1fr; }
    .portfolio-overview #portfolioPieChart { max-width: 100%; }
    .bn-balance-amount, .bn-balance-hidden, .bn-stat-value, .bn-stat-hidden { font-size: 1.75rem; }
    .bn-market-chart { display: none; }
    .bn-market-row { gap: var(--space-sm); padding: 0.625rem var(--space-sm); }
    .bn-market-trade-btn { padding: 0.3rem 0.75rem; font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .bn-quick-actions { grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
    .bn-qaction-icon { width: 40px; height: 40px; font-size: 1rem; }
    .bn-qaction span { font-size: 0.65rem; }
    .bn-asset-cards { grid-template-columns: 1fr; }
    .bn-balance-section { padding: var(--space-md); }
    .bn-market-tabs { overflow-x: auto; scrollbar-width: none; }
    .bn-market-tabs::-webkit-scrollbar { display: none; }
    .bn-tab { padding: 0.5rem 0.75rem; font-size: 0.8rem; white-space: nowrap; }
    .bn-market-name { font-size: 0.8rem; }

    /* Welcome + KYC responsive */
    .bn-welcome-section { flex-direction: column; align-items: flex-start; }
    .bn-welcome-label { font-size: 0.95rem; }
    .bn-joint-holders { width: 100%; flex-direction: column; }
    .bn-joint-holder { width: 100%; }

    /* Pie chart responsive */
    .bn-pie-section { flex-direction: column; align-items: center; text-align: center; }
    .bn-pie-chart-wrap { width: 160px; height: 160px; }
    .bn-pie-legend { width: 100%; }
    .bn-pie-legend-item { justify-content: center; }

    /* KYC dual flow responsive */
    .kyc-flow-tabs { overflow-x: auto; }
    .kyc-flow-tab { padding: var(--space-sm) var(--space-md); font-size: 0.85rem; white-space: nowrap; }
    .kyc-document-grid { grid-template-columns: 1fr !important; }
    .kyc-holder-section { padding: var(--space-md); }
}

/* ============================================================
   DASHBOARD REDESIGN - Balance Card, Donut Chart, Stats, Trades
   ============================================================ */

/* Balance Card */
.balance-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 220px; }
.balance-card-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0d1219 0%, #151a21 40%, #0b3d1f 100%); border-radius: var(--radius-xl); }
.balance-card-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,200,83,0.12) 0%, rgba(0,230,118,0.05) 50%, transparent 100%); }
.balance-card-bg::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,200,83,0.4), transparent); }
.balance-card-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,200,83,0.12) 0%, transparent 70%); top: -100px; right: 80px; pointer-events: none; }
.balance-card-content { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: var(--space-xl); gap: var(--space-xl); flex-wrap: wrap; }
.balance-card-left { flex: 1; min-width: 280px; }
.balance-amount { font-size: 2.75rem; font-weight: 800; font-family: var(--font-mono); color: var(--text-primary); letter-spacing: -0.03em; text-shadow: 0 2px 20px rgba(0,200,83,0.2); }
.balance-card-right { display: flex; align-items: center; gap: var(--space-xl); flex-shrink: 0; }

/* Donut Chart */
.donut-container { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.donut-chart { width: 100%; height: 100%; border-radius: 50%;
    background: conic-gradient(
        #00c853 0deg calc(var(--account-pct) * 3.6deg),
        #448aff calc(var(--account-pct) * 3.6deg) calc((var(--account-pct) + var(--trading-pct)) * 3.6deg),
        #ffb300 calc((var(--account-pct) + var(--trading-pct)) * 3.6deg) 360deg
    );
    mask: radial-gradient(circle, transparent 55%, black 56%);
    -webkit-mask: radial-gradient(circle, transparent 55%, black 56%);
}
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.donut-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.donut-value { font-size: 0.9rem; font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); }
.donut-legend { display: flex; flex-direction: column; gap: 0.5rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.legend-dot { width: 10px; height: 10px; border-radius: var(--radius-full); flex-shrink: 0; }
.legend-label { color: var(--text-secondary); min-width: 50px; }
.legend-pct { font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); margin-left: auto; }

/* Stats Row v2 */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.stat-card-v2 { display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-lg); background: var(--glass-card); border-radius: var(--radius-lg); border: 1px solid var(--glass-border); transition: transform var(--transition-base), box-shadow var(--transition-base); }
.stat-card-v2:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3); }
.stat-v2-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-profit .stat-v2-icon { background: rgba(0,200,83,0.1); color: var(--color-success); }
.stat-deposit .stat-v2-icon { background: rgba(68,138,255,0.1); color: var(--color-info); }
.stat-drawdown .stat-v2-icon { background: rgba(255,82,82,0.1); color: var(--color-danger); }
.stat-v2-content { flex: 1; }
.stat-v2-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.stat-v2-value { font-size: 1.4rem; font-weight: 700; font-family: var(--font-mono); letter-spacing: -0.02em; }
.stat-v2-change { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; margin-top: 0.25rem; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); }

/* Trade Table */
.trade-table .trade-asset { display: flex; align-items: center; gap: var(--space-md); }
.trade-table .trade-asset-icon { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.trade-table .trade-asset-name { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.trade-table .trade-asset-symbol { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive::-webkit-scrollbar { height: 4px; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-full); }

/* Quick Action Buttons */
.quick-action-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid; text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: 0.875rem; transition: all var(--transition-fast); }
.quick-action-btn:hover { transform: translateY(-2px); filter: brightness(1.2); color: var(--text-primary); }
.quick-action-btn i { font-size: 1.5rem; }

/* ============================================================
   TRADING PAGE REDESIGN - Asset List, Trade Modal, Pills
   ============================================================ */

/* Asset Pills */
.asset-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: var(--space-md); }
.asset-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.875rem; border-radius: var(--radius-full); background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; }
.asset-pill:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--text-muted); }
.asset-pill.active { background: rgba(0,200,83,0.15); color: var(--accent-primary); border-color: var(--accent-primary); }

/* Asset List v2 (with Trade button) */
.asset-list-v2 { display: flex; flex-direction: column; gap: 2px; }
.asset-item-v2 { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem var(--space-md); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); }
.asset-item-v2:hover { background: var(--bg-hover); }
.asset-item-v2.active { background: rgba(0, 200, 83, 0.08); border-left: 3px solid var(--accent-primary); }
.asset-item-v2 .asset-left { display: flex; align-items: center; gap: var(--space-md); }
.asset-item-v2 .asset-right { display: flex; align-items: center; gap: var(--space-md); }
.btn-trade { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.875rem; border-radius: var(--radius-md); background: var(--color-success); color: white; font-size: 0.8rem; font-weight: 700; border: none; cursor: pointer; transition: all var(--transition-fast); text-decoration: none; }
.btn-trade:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,200,83,0.4); }

/* Market Stats Bar */
.market-stats-bar { display: flex; gap: var(--space-xl); padding: var(--space-md) var(--space-lg); background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-bottom: var(--space-md); flex-wrap: wrap; }
.market-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.market-stat-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.market-stat-value { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

/* Trade Modal */
.trade-modal { background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); width: 92%; max-width: 480px; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(0.95); transition: transform var(--transition-base); }
.trade-modal-overlay.active .trade-modal { transform: translateY(0) scale(1); }
.trade-modal-header { padding: var(--space-lg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.trade-modal-body { padding: var(--space-lg); }
.trade-asset-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.trade-asset-icon-lg { width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }

/* ============================================================
   ADMIN IMPERSONATION BAR
   ============================================================ */
.admin-impersonation-bar {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.admin-impersonation-bar + #flash-messages { top: 3rem; }
.admin-impersonation-bar ~ .layout-wrapper { padding-top: 40px; }

/* ============================================================
   TRADING PAGE - Responsive Layout, Categories, Pills
   ============================================================ */

/* Category Tabs - WRAPPING */
.trade-categories-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: var(--space-sm); border-bottom: 1px solid var(--bn-border); padding-bottom: var(--space-sm); }
.trade-cat-tab { display: inline-flex; align-items: center; padding: 0.5rem 1rem; border-radius: var(--radius-md); background: transparent; border: none; color: var(--bn-text-secondary); font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; margin-bottom: 0.25rem; }
.trade-cat-tab:hover { color: var(--bn-text); background: rgba(255,255,255,0.05); }
.trade-cat-tab.active { color: var(--bn-yellow); background: rgba(240,185,11,0.1); }

/* Asset Pills - WRAPPING */
.trade-asset-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-md); }
.trade-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; border-radius: var(--radius-full); background: var(--bn-card); border: 1px solid var(--bn-border); color: var(--bn-text-secondary); font-size: 0.8rem; font-weight: 500; text-decoration: none; transition: all var(--transition-fast); }
.trade-pill:hover { border-color: var(--bn-yellow); color: var(--bn-text); }
.trade-pill.active { background: rgba(240,185,11,0.15); border-color: var(--bn-yellow); color: var(--bn-yellow); }
.trade-pill-symbol { font-weight: 700; }
.trade-pill-price { font-family: var(--font-mono); font-size: 0.75rem; }
.trade-pill-change { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; }
.trade-pill-change.up { color: var(--bn-green); }
.trade-pill-change.down { color: var(--bn-red); }

/* Trade Layout - RESPONSIVE */
.trade-layout-responsive { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-lg); }

/* Markets Page - Card Grid for Mobile, Table for Desktop */
.markets-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); }
.markets-table-desktop { display: none; }
.market-card { background: var(--bn-card); border: 1px solid var(--bn-border); border-radius: var(--radius-lg); padding: var(--space-md); cursor: pointer; transition: all var(--transition-fast); }
.market-card:hover { border-color: var(--bn-yellow); }
.market-card-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.market-card-icon { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.market-card-info { flex: 1; min-width: 0; }
.market-card-name { font-weight: 600; font-size: 0.9rem; color: var(--bn-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-card-symbol { font-size: 0.75rem; color: var(--bn-text-secondary); font-family: var(--font-mono); }
.market-card-change { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.market-card-change.up { color: var(--bn-green); }
.market-card-change.down { color: var(--bn-red); }
.market-card-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--bn-text); margin-bottom: 0.25rem; }
.market-card-stats { display: flex; gap: var(--space-md); font-size: 0.7rem; color: var(--bn-text-secondary); font-family: var(--font-mono); margin-bottom: 0.5rem; }

/* Desktop: show table, hide cards */
.markets-table-desktop { display: block; }
.markets-card-grid { display: none; }
.trade-asset-panel { min-height: 0; }
.trade-chart-panel { display: flex; flex-direction: column; gap: var(--space-md); min-height: 0; }

/* Payment Gateway Modal */
.pg-modal { background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); width: 92%; max-width: 520px; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(0.95); transition: transform var(--transition-base); }
.pg-overlay.active .pg-modal { transform: translateY(0) scale(1); }
.pg-modal-header { padding: var(--space-lg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.pg-modal-body { padding: var(--space-lg); }
.pg-detail-row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) 0; border-bottom: 1px solid var(--border-color); }
.pg-detail-row:last-child { border-bottom: none; }
.pg-detail-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.pg-detail-value { font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); font-size: 0.875rem; }
.pg-instructions { background: var(--bg-input); border-radius: var(--radius-md); padding: var(--space-md); margin: var(--space-md) 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; border-left: 3px solid var(--accent-primary); }
.payment-method-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.payment-method-option { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: var(--space-md); background: var(--bg-input); border: 2px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); text-align: center; }
.payment-method-option:hover { border-color: var(--text-muted); background: var(--bg-hover); }
.payment-method-option.selected { border-color: var(--accent-primary); background: rgba(0,200,83,0.05); }
.payment-method-option input { display: none; }


/* ===== NEW MOBILE BOTTOM NAVIGATION (bypasses old .mobile-nav styles) ===== */
.bn-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #0d1117;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.bn-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.bn-mobile-item i {
    font-size: 1.35rem;
}

.bn-mobile-item.active,
.bn-mobile-item:hover {
    color: #0ECB81;
}

.bn-mobile-trade {
    position: relative;
    top: -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ECB81, #059669);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 203, 129, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bn-mobile-trade i {
    font-size: 1.6rem;
}

.bn-mobile-trade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(14, 203, 129, 0.5);
}

.bn-mobile-trade:active {
    transform: scale(0.95);
}

@media (max-width: 1024px) {
    .bn-mobile-nav { display: flex !important; }
    .mobile-nav { display: none !important; }
}
