/* ===== QUANTUM X - Ultra Premium Dashboard Styles ===== */
:root {
  --bg-deep: #060810;
  --bg-card: rgba(14, 16, 24, 0.75);
  --bg-card-hover: rgba(20, 22, 34, 0.85);
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(255, 140, 0, 0.25);
  --accent: #ff8c00;
  --accent-glow: rgba(255, 140, 0, 0.4);
  --accent2: #a78bfa;
  --accent3: #00c48c;
  --danger: #ff5a5f;
  --text-primary: #eef2ff;
  --text-secondary: #8b8fa3;
  --text-muted: #5a5e72;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
}

/* Themes */
body.theme-midnight {
  --bg-deep: #02040b;
  --bg-card: rgba(10, 15, 30, 0.85);
  --border: rgba(60, 130, 246, 0.1);
  --text-secondary: #94a3b8;
}

body.theme-cyber {
  --bg-deep: #000;
  --bg-card: rgba(18, 18, 18, 0.9);
  --border: rgba(255, 0, 255, 0.1);
  --accent: #f0f;
  --accent-glow: rgba(255, 0, 255, 0.3);
}

body.theme-light {
    --bg-deep: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.05);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-deep); font-family: 'Inter', sans-serif; color: var(--text-primary); overflow-x: hidden; min-height: 100vh; }
#bgCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* Toast Notification Styles */
#toastContainer { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { 
  background: rgba(10, 12, 18, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--border);
  padding: 14px 24px; border-radius: 16px; color: #fff; font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: toastIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  min-width: 280px; pointer-events: auto;
}
.toast.success { border-color: var(--accent3); color: var(--accent3); }
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.warning { border-color: var(--accent); color: var(--accent); }
.toast i { font-size: 1.1rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }


/* Ticker */
.ticker-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(6,8,16,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); height: 36px; overflow: hidden; display: flex; align-items: center; }
.ticker-content { display: flex; gap: 40px; white-space: nowrap; animation: tickerScroll 30s linear infinite; font-size: 0.78rem; font-weight: 500; }
.ticker-content span { display: flex; align-items: center; gap: 6px; }
.ticker-content .up { color: var(--accent3); }
.ticker-content .down { color: var(--danger); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Layout */
.dashboard { display: flex; min-height: 100vh; position: relative; z-index: 1; padding-top: 36px; }

/* Sidebar */
.sidebar { width: 260px; background: rgba(10,12,18,0.9); backdrop-filter: blur(30px); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 36px; height: calc(100vh - 36px); overflow-y: auto; z-index: 10; transition: width 0.3s; }
.logo-area { padding: 24px 20px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--accent), #ff6b00); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; box-shadow: 0 0 20px var(--accent-glow); animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { box-shadow: 0 0 20px var(--accent-glow); } 50% { box-shadow: 0 0 35px var(--accent-glow), 0 0 60px rgba(255,140,0,0.15); } }
.logo-text { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-x { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.nav-menu { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); cursor: pointer; transition: all 0.3s; position: relative; }
.nav-item i { width: 22px; font-size: 1.1rem; text-align: center; transition: all 0.3s; }
.nav-item.active { background: rgba(255,140,0,0.1); color: var(--accent); border-left: 3px solid var(--accent); }
.nav-item.active i { text-shadow: 0 0 10px var(--accent-glow); }
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); transform: translateX(4px); }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.user-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); }
.user-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-name { font-weight: 600; font-size: 0.85rem; }
.user-status { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; background: var(--accent3); border-radius: 50%; display: inline-block; animation: statusBlink 2s ease-in-out infinite; }
@keyframes statusBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Main */
.main-area { flex: 1; display: flex; flex-direction: column; padding: 20px 24px 40px; gap: 20px; overflow-x: hidden; position: relative; }
.glass-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.4s; }
.glass-card:hover { border-color: rgba(255,255,255,0.1); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }

/* Pages */
.page { display: none; flex-direction: column; gap: 20px; animation: fadeIn 0.4s ease; }
.page.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-title { font-size: 1.4rem; font-weight: 800; font-family: 'Orbitron', monospace; display: flex; align-items: center; gap: 12px; }
.page-title i { color: var(--accent); }

/* Header */
.top-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: var(--bg-card); backdrop-filter: blur(20px); padding: 14px 20px; border-radius: var(--radius-xl); border: 1px solid var(--border); }
.header-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.menu-toggle { display: none; background: rgba(255,255,255,0.06); border: none; color: var(--text-primary); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 1.1rem; }
.stats-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stat-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); padding: 8px 16px; border-radius: 40px; font-size: 0.78rem; border: 1px solid var(--border); transition: all 0.3s; }
.stat-badge:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.stat-badge i { color: var(--accent); font-size: 0.85rem; }
.stat-badge span { color: var(--text-secondary); }
.stat-badge strong { color: var(--text-primary); margin-left: 4px; }
.pulse-green strong { color: var(--accent3); }
.pulse-blue strong { color: #60a5fa; }
.pulse-purple strong { color: var(--accent2); }

/* Fullscreen Chart Mode */
.chart-container.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background: var(--bg-deep) !important;
  padding: 20px !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.chart-container.fullscreen .tradingview-widget-container,
.chart-container.fullscreen #chart,
.chart-container.fullscreen #tradingChart {
  flex: 1 !important;
  height: calc(100% - 60px) !important;
}
.btn-fullscreen {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.3s;
}
.btn-fullscreen:hover { background: var(--accent); color: #000; }

.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); padding: 8px 16px; border-radius: 40px; border: 1px solid var(--border); transition: all 0.3s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 20px rgba(255,140,0,0.1); }
.search-box i { color: var(--text-muted); font-size: 0.85rem; }
.search-box input { background: none; border: none; color: var(--text-primary); outline: none; font-size: 0.85rem; width: 160px; }
.icon-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-secondary); width: 38px; height: 38px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--accent); }
.notification-bell { position: relative; cursor: pointer; padding: 8px; border-radius: 12px; transition: all 0.3s; }
.notification-bell:hover { background: rgba(255,255,255,0.06); }
.notification-bell i { font-size: 1.1rem; color: var(--text-secondary); }
.notif-count { position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff; font-size: 0.6rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: notifPulse 2s ease-in-out infinite; }
@keyframes notifPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.total-balance-area { text-align: right; }
.balance-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.balance-value { font-size: 1.3rem; font-weight: 800; font-family: 'Orbitron', monospace; }
.balance-change { font-size: 0.75rem; font-weight: 600; }
.balance-change.positive, .positive { color: var(--accent3); }
.balance-change.negative, .negative { color: var(--danger); }
.glass-btn, .wallet-connect { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 40px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border); cursor: pointer; color: var(--text-primary); transition: all 0.3s; }
.glass-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.glass-btn.sm { padding: 6px 12px; font-size: 0.75rem; border-radius: 30px; }

/* Dropdowns */
.dropdown-panel { position: absolute; top: 80px; right: 24px; width: 200px; background: rgba(14,16,24,0.95); backdrop-filter: blur(30px); border: 1px solid var(--border); border-radius: var(--radius-md); z-index: 50; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all 0.3s; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.dropdown-panel.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.dropdown-item { padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.dropdown-item:hover { background: rgba(255,255,255,0.05); }
.dropdown-item.active { color: var(--accent); }

/* Search Results */
.search-results { position: absolute; top: 80px; left: 200px; width: 360px; background: rgba(14,16,24,0.95); backdrop-filter: blur(30px); border: 1px solid var(--border); border-radius: var(--radius-md); z-index: 50; display: none; box-shadow: 0 20px 60px rgba(0,0,0,0.5); max-height: 300px; overflow-y: auto; }
.search-results.open { display: block; }
.search-result-item { padding: 12px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; }
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-item .sr-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.search-result-item .sr-name { font-weight: 600; font-size: 0.85rem; }
.search-result-item .sr-price { margin-left: auto; font-weight: 600; font-size: 0.85rem; }

/* Notifications */
.notif-panel { position: fixed; top: 80px; right: 24px; width: 340px; background: rgba(14,16,24,0.95); backdrop-filter: blur(30px); border: 1px solid var(--border); border-radius: var(--radius-lg); z-index: 50; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all 0.3s; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.notif-panel.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.notif-clear { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.8rem; }
.notif-item { display: flex; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: all 0.3s; cursor: pointer; }
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { border-left: 3px solid var(--accent); }
.notif-item i { font-size: 1.1rem; margin-top: 2px; }
.notif-item strong { font-size: 0.85rem; }
.notif-item p { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }
.notif-item small { font-size: 0.68rem; color: var(--text-muted); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 200; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-overlay.open { display: flex; }
.modal { width: 480px; max-width: 90vw; padding: 24px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shortcut-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
kbd { background: rgba(255,255,255,0.08); padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-family: monospace; border: 1px solid var(--border); }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 500; animation: toastIn 0.4s ease, toastOut 0.4s ease 3s forwards; backdrop-filter: blur(20px); border: 1px solid var(--border); min-width: 280px; }
.toast.success { background: rgba(0,196,140,0.15); color: var(--accent3); }
.toast.error { background: rgba(255,90,95,0.15); color: var(--danger); }
.toast.info { background: rgba(255,140,0,0.15); color: var(--accent); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(20px); } }

/* Stats Cards */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; position: relative; overflow: hidden; cursor: pointer; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, transparent, rgba(255,140,0,0.03)); opacity: 0; transition: opacity 0.4s; }
.stat-card:hover::before { opacity: 1; }
.stat-card-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform 0.6s; }
.stat-card:hover .stat-card-icon { transform: rotateY(180deg); }
.stat-card-icon.btc { background: linear-gradient(135deg, #f7931a22, #f7931a08); color: #f7931a; }
.stat-card-icon.eth { background: linear-gradient(135deg, #627eea22, #627eea08); color: #627eea; }
.stat-card-icon.sol { background: linear-gradient(135deg, #00ffa322, #00ffa308); color: #00ffa3; }
.stat-card-icon.near { background: linear-gradient(135deg, #a78bfa22, #a78bfa08); color: var(--accent2); }
.stat-card-label { font-size: 0.78rem; color: var(--text-secondary); }
.stat-card-value { font-size: 1.1rem; font-weight: 700; font-family: 'Orbitron', monospace; }
.stat-card-change { font-size: 0.78rem; font-weight: 600; }
.sparkline { position: absolute; right: 16px; bottom: 16px; opacity: 0.6; }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.chart-container { padding: 20px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.chart-pair { display: flex; align-items: center; gap: 12px; }
.pair-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #f7931a33, #f7931a11); display: flex; align-items: center; justify-content: center; color: #f7931a; font-size: 1.2rem; }
.chart-pair h3 { font-size: 1.1rem; font-weight: 700; }
.pair-exchange { font-size: 0.75rem; color: var(--text-muted); }
.live-dot { width: 8px; height: 8px; background: var(--accent3); border-radius: 50%; animation: statusBlink 1.5s ease-in-out infinite; box-shadow: 0 0 10px var(--accent3); }
.timeframe-bar { display: flex; gap: 6px; }
.tf-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 14px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.tf-btn.active, .tf-btn:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
#chart, #tradingChart { width: 100%; height: 380px; border-radius: 12px; overflow: hidden; }
.chart-footer { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.72rem; color: var(--text-muted); }

/* Right Panel */
.right-panel { display: flex; flex-direction: column; gap: 20px; }
.ai-card { padding: 20px; }
.ai-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ai-icon { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--accent2), #7c3aed); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; animation: logoPulse 3s ease-in-out infinite; }
.ai-header h4 { font-size: 0.95rem; font-weight: 700; }
.ai-status { font-size: 0.72rem; color: var(--accent3); display: flex; align-items: center; gap: 6px; }
.ai-prediction { text-align: center; margin-bottom: 16px; }
.prediction-direction { display: inline-flex; align-items: center; gap: 10px; padding: 10px 24px; border-radius: 40px; font-weight: 800; font-family: 'Orbitron', monospace; font-size: 0.95rem; margin-bottom: 12px; }
.prediction-direction.bullish { background: rgba(0,196,140,0.12); color: var(--accent3); border: 1px solid rgba(0,196,140,0.3); box-shadow: 0 0 20px rgba(0,196,140,0.15); }
.prediction-direction.bearish { background: rgba(255,90,95,0.12); color: var(--danger); border: 1px solid rgba(255,90,95,0.3); }
.confidence-bar { position: relative; height: 8px; border-radius: 10px; background: rgba(255,255,255,0.06); overflow: visible; }
.confidence-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--accent3)); transition: width 1s ease; box-shadow: 0 0 12px var(--accent-glow); }
.confidence-text { position: absolute; right: 0; top: -22px; font-size: 0.72rem; font-weight: 600; color: var(--accent3); }
.ai-signals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.signal-item { display: flex; justify-content: space-between; padding: 8px 12px; background: rgba(255,255,255,0.03); border-radius: 10px; font-size: 0.78rem; }
.signal-label { color: var(--text-secondary); }
.bullish-text { color: var(--accent3); font-weight: 600; }
.neutral-text { color: var(--accent); font-weight: 600; }
.bearish-text { color: var(--danger); font-weight: 600; }

/* Trading Panel */
.trading-panel { padding: 20px; }
.trade-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: rgba(255,255,255,0.03); border-radius: 14px; padding: 4px; }
.trade-tab { flex: 1; padding: 10px; border: none; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; background: transparent; color: var(--text-secondary); transition: all 0.3s; }
.trade-tab.active.buy-tab { background: rgba(0,196,140,0.15); color: var(--accent3); }
.trade-tab.active.sell-tab { background: rgba(255,90,95,0.15); color: var(--danger); }
.order-type-row { display: flex; gap: 4px; background: rgba(255,255,255,0.03); border-radius: 30px; padding: 3px; margin-bottom: 16px; }
.order-opt { flex: 1; text-align: center; padding: 7px 8px; border-radius: 28px; font-weight: 600; font-size: 0.75rem; cursor: pointer; color: var(--text-secondary); transition: all 0.3s; }
.order-opt.active { background: var(--accent); color: var(--bg-deep); }
.input-group { margin-bottom: 14px; }
.input-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; }
.input-wrapper { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; transition: all 0.3s; }
.input-wrapper:focus-within { border-color: var(--accent); box-shadow: 0 0 15px rgba(255,140,0,0.1); }
.input-wrapper i { color: var(--text-muted); font-size: 0.9rem; }
.styled-input { background: none; border: none; color: var(--text-primary); font-weight: 600; font-size: 0.95rem; outline: none; width: 100%; }
.percent-buttons { display: flex; gap: 6px; margin-top: 8px; }
.perc-btn { flex: 1; background: rgba(255,140,0,0.08); border: 1px solid rgba(255,140,0,0.15); color: var(--accent); padding: 6px; border-radius: 8px; font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: all 0.3s; }
.perc-btn:hover { background: var(--accent); color: var(--bg-deep); transform: translateY(-1px); }
.order-summary { margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.78rem; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.03); }
.summary-row.total { font-weight: 700; color: var(--text-primary); font-size: 0.85rem; border: none; }
.place-order { width: 100%; padding: 14px; border: none; border-radius: 14px; font-weight: 700; font-size: 0.95rem; cursor: pointer; background: linear-gradient(135deg, var(--accent), #ff6b00); color: var(--bg-deep); display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s; position: relative; overflow: hidden; }
.place-order::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent); transform: rotate(45deg); animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }
.place-order:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }

/* Bottom Grid */
.bottom-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.orderbook { padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.section-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-header h3 i { color: var(--accent); }
.live-badge { font-size: 0.65rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: rgba(0,196,140,0.12); color: var(--accent3); border: 1px solid rgba(0,196,140,0.3); animation: statusBlink 2s ease-in-out infinite; }
.orderbook-header { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.orderbook-content { max-height: 260px; overflow-y: auto; }
.ob-row { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 0.78rem; padding: 5px 0; position: relative; font-family: 'Inter', monospace; }
.ob-row.ask .ob-price { color: var(--danger); }
.ob-row.bid .ob-price { color: var(--accent3); }
.ob-row .ob-depth { position: absolute; top: 0; right: 0; height: 100%; opacity: 0.08; transition: width 0.3s; }
.ob-row.ask .ob-depth { background: var(--danger); }
.ob-row.bid .ob-depth { background: var(--accent3); }
.orderbook-spread { text-align: center; padding: 10px 0; font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 4px 0; }
.portfolio-section { padding: 20px; }
.portfolio-actions { display: flex; gap: 8px; }
.coin-list { display: flex; flex-direction: column; gap: 10px; }
.coin-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--radius-md); background: rgba(255,255,255,0.02); border: 1px solid transparent; transition: all 0.3s; cursor: pointer; flex-wrap: wrap; gap: 12px; }
.coin-row:hover { background: rgba(255,255,255,0.04); border-color: var(--border); transform: translateX(4px); }
.coin-info { display: flex; align-items: center; gap: 14px; min-width: 200px; }
.coin-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform 0.6s; }
.coin-row:hover .coin-icon { transform: rotateY(180deg); }
.coin-details h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; }
.coin-details span { font-size: 0.78rem; color: var(--text-secondary); }
.coin-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.coin-value .value { font-weight: 700; font-size: 0.95rem; }
.coin-value .change { font-size: 0.78rem; font-weight: 600; }

/* ===== AI Analytics Page ===== */
.ai-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ai-full-card { padding: 20px; grid-column: span 2; }
.ai-full-card h3, .ai-sentiment-card h3, .ai-signals-card h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ai-full-card h3 i, .ai-sentiment-card h3 i, .ai-signals-card h3 i { color: var(--accent); }
.ai-sentiment-card, .ai-signals-card { padding: 20px; }
.sentiment-meters { display: flex; flex-direction: column; gap: 16px; }
.sentiment-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.sentiment-item span:first-child { width: 80px; color: var(--text-secondary); }
.meter { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 10px; transition: width 1s; }
.meter-val { font-size: 0.75rem; font-weight: 600; width: 100px; text-align: right; }
.signals-list { display: flex; flex-direction: column; gap: 8px; }
.signal-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 10px; font-size: 0.82rem; }
.signal-row .signal-type { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.signal-type.buy { background: rgba(0,196,140,0.15); color: var(--accent3); }
.signal-type.sell { background: rgba(255,90,95,0.15); color: var(--danger); }
.signal-type.hold { background: rgba(255,140,0,0.15); color: var(--accent); }
.fgi-display { text-align: center; padding: 20px; }
.fgi-circle { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 800; border: 4px solid; transition: all 0.5s; }
.fgi-label { font-size: 1rem; font-weight: 700; }
.fgi-history { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.fgi-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Trading Full */
.trading-full-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.trading-tools { padding: 20px; }
.trading-tools h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.trading-tools h3 i { color: var(--accent); }
.calc-results { margin-top: 16px; padding: 16px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }
.calc-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.calc-row:last-child { border: none; }

/* Market Table */
.market-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-secondary); padding: 8px 18px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.market-table { width: 100%; border-collapse: collapse; }
.market-table th { text-align: left; padding: 12px 16px; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); cursor: pointer; }
.market-table th:hover { color: var(--accent); }
.market-table td { padding: 14px 16px; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.03); }
.market-table tr:hover { background: rgba(255,255,255,0.03); }
.market-table .coin-cell { display: flex; align-items: center; gap: 10px; }
.market-table .coin-cell .mini-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* Wallet Page */
.wallet-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.wallet-main { padding: 30px; }
.wallet-balance-big { text-align: center; margin-bottom: 24px; }
.wallet-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.wallet-amount { font-size: 2.5rem; font-weight: 900; font-family: 'Orbitron', monospace; margin: 8px 0; }
.wallet-pnl { font-size: 0.9rem; font-weight: 600; }
.wallet-actions-row { display: flex; gap: 16px; justify-content: center; }
.action-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-primary); padding: 16px 24px; border-radius: var(--radius-md); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.8rem; transition: all 0.3s; min-width: 80px; }
.action-btn:hover { background: rgba(255,140,0,0.1); border-color: var(--accent); transform: translateY(-2px); }
.action-btn i { font-size: 1.2rem; color: var(--accent); }
.wallet-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.wallet-list h3 { margin-bottom: 4px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.wallet-list h3 i { color: var(--accent); }
.wallet-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }
.wallet-item i, .wallet-item div:first-child { font-size: 1.1rem; }
.wallet-item strong { font-size: 0.85rem; }
.wallet-item small { font-size: 0.72rem; color: var(--text-muted); display: block; }
.wallet-bal { margin-left: auto; font-weight: 700; font-size: 0.9rem; }

/* Portfolio Page */
.portfolio-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.portfolio-grid h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.portfolio-grid h3 i { color: var(--accent); }
.pie-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.pie-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; }
.pie-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* Bots Page */
.bots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.bot-card { padding: 20px; }
.bot-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bot-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.bot-name { font-weight: 700; font-size: 0.95rem; }
.bot-status { font-size: 0.72rem; display: flex; align-items: center; gap: 6px; }
.bot-stats { display: flex; flex-direction: column; gap: 8px; }
.bot-stat { display: flex; justify-content: space-between; font-size: 0.82rem; }
.bot-stat span:first-child { color: var(--text-secondary); }
.bot-actions { display: flex; gap: 8px; margin-top: 16px; }
.bot-btn { flex: 1; padding: 8px; border: none; border-radius: 10px; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.3s; }
.bot-btn.start { background: rgba(0,196,140,0.15); color: var(--accent3); }
.bot-btn.stop { background: rgba(255,90,95,0.15); color: var(--danger); }
.bot-btn.config { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.bot-btn:hover { transform: translateY(-1px); }

/* Settings Page */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.settings-card { padding: 20px; }
.settings-card h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.settings-card h3 i { color: var(--accent); }
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.setting-row:last-child { border: none; }
.styled-select { background: rgba(0,0,0,0.3); border: 1px solid var(--border); color: var(--text-primary); padding: 8px 12px; border-radius: 10px; outline: none; font-size: 0.85rem; }
.color-options { display: flex; gap: 8px; }
.color-dot { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all 0.3s; }
.color-dot.active, .color-dot:hover { border-color: #fff; transform: scale(1.15); }
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.1); border-radius: 24px; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.portfolio-footer { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-secondary); }

/* ===== SUPER CANGGIH LOGOUT BUTTON ===== */
.logout-btn {
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 1px solid rgba(255, 90, 95, 0.15);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.logout-btn:hover {
  border-color: rgba(255, 90, 95, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 90, 95, 0.15), 0 0 0 1px rgba(255, 90, 95, 0.1);
}
.logout-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,90,95,0.05), rgba(255,60,60,0.12));
  transition: all 0.4s;
}
.logout-btn:hover .logout-bg {
  background: linear-gradient(135deg, rgba(255,90,95,0.12), rgba(255,40,40,0.2));
}
.logout-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.logout-icon-wrap {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,90,95,0.2), rgba(255,60,60,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5a5f;
  font-size: 0.9rem;
  transition: all 0.5s;
  box-shadow: 0 0 15px rgba(255,90,95,0.2);
}
.logout-btn:hover .logout-icon-wrap {
  transform: rotate(180deg);
  box-shadow: 0 0 25px rgba(255,90,95,0.4);
  background: linear-gradient(135deg, #ff5a5f, #e63946);
  color: #fff;
}
.logout-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff5a5f;
  letter-spacing: 0.5px;
  flex: 1;
  text-align: left;
  font-family: 'Inter', sans-serif;
}
.logout-arrow {
  color: rgba(255, 90, 95, 0.4);
  font-size: 0.85rem;
  transition: all 0.3s;
  transform: translateX(0);
}
.logout-btn:hover .logout-arrow {
  color: #ff5a5f;
  transform: translateX(4px);
  animation: arrowSlide 1s ease infinite;
}
@keyframes arrowSlide {
  0%, 100% { transform: translateX(4px); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.5; }
}

/* Scanner line animation */
.logout-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,90,95,0.08), transparent);
  transition: left 0s;
}
.logout-btn:hover::after {
  animation: scanLine 2s ease-in-out infinite;
}
@keyframes scanLine {
  0% { left: -100%; } 100% { left: 100%; }
}

/* ===== LOGOUT CONFIRMATION MODAL ===== */
.logout-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}
.logout-modal-overlay.open {
  display: flex;
  animation: modalBgIn 0.3s ease;
}
@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }

.logout-modal {
  width: 420px;
  max-width: 90vw;
  background: rgba(14, 16, 24, 0.95);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 90, 95, 0.15);
  border-radius: 28px;
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.logout-modal-glow {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,90,95,0.12), transparent 70%);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.logout-modal-icon {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logout-modal-icon i {
  font-size: 2rem;
  color: #ff5a5f;
  z-index: 1;
  animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(255,90,95,0.3); }
  50% { transform: scale(1.1); text-shadow: 0 0 40px rgba(255,90,95,0.6); }
}
.modal-ring {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 3px solid rgba(255, 90, 95, 0.2);
  border-top: 3px solid #ff5a5f;
  border-radius: 50%;
  animation: ringSpin 2s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.logout-modal h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
}
.logout-modal p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.logout-session-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 24px;
}
.session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-size: 0.82rem;
}
.session-row:first-child { border-bottom: 1px solid var(--border); }
.session-row i {
  color: var(--text-muted);
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
}
.session-row span { flex: 1; color: var(--text-secondary); text-align: left; }
.session-row strong { color: var(--text-primary); }

.logout-modal-actions {
  display: flex;
  gap: 12px;
}
.lm-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  border: none;
}
.lm-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.lm-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.lm-confirm {
  background: rgba(255, 90, 95, 0.15);
  color: #ff5a5f;
  border: 1px solid rgba(255, 90, 95, 0.3);
  position: relative;
  overflow: hidden;
}
.lm-confirm:hover {
  background: rgba(255, 90, 95, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 90, 95, 0.2);
}
.lm-confirm span { position: relative; z-index: 1; }
.lm-confirm-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,90,95,0.2), rgba(255,60,60,0.35));
  transition: width 1s linear;
}

/* Responsive */
@media (max-width: 1100px) {
  .content-grid, .trading-full-grid, .ai-dashboard-grid, .wallet-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .ai-full-card { grid-column: span 1; }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .sidebar { position: fixed; left: -260px; top: 36px; height: calc(100vh - 36px); z-index: 50; }
  .sidebar.open { left: 0; box-shadow: 0 0 60px rgba(0,0,0,0.5); }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .main-area { padding: 16px; }
}
@media (max-width: 600px) {
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .top-header { padding: 12px; }
  .total-balance-area { display: none; }
  .currency-selector { display: none; }
  .wallet-actions-row { flex-wrap: wrap; }
  .logout-modal-actions { flex-direction: column; }
}

/* Currency Selector */
.currency-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 12px;
}
.curr-opt {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.curr-opt.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.curr-opt:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* ADVANCED TRADING UI */
.advanced-trade-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
.input-group.sm { margin-bottom: 0px; }
.input-group.sm .input-label { font-size: 0.7rem; }
.input-group.sm .styled-input { padding: 6px 10px 6px 30px !important; font-size: 0.85rem; }
.input-group.sm .input-wrapper i { left: 10px; font-size: 0.8rem; }

.leverage-selector { margin: 15px 0; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.styled-range { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; -webkit-appearance: none; appearance: none; cursor: pointer; margin: 10px 0; }
.styled-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent-glow); }
.range-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--text-muted); }
/* DEPOSIT MODAL V2 (SUPER CANGGIH - THEMED) */
.deposit-modal-v2 { 
  max-width: 620px !important; width: 95% !important; 
  background: rgba(16, 18, 27, 0.95) !important; 
  backdrop-filter: blur(20px);
  padding: 0 !important; overflow: hidden; 
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.deposit-modal-v2 .modal-header { background: rgba(255,255,255,0.03); padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.deposit-modal-v2 .modal-header h3 { font-size: 1rem; color: #fff; font-weight: 500; font-family: 'Orbitron'; }

.bank-selection-grid { 
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 20px;
  background: transparent;
}
.bank-opt { 
  background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px; color: var(--text-muted); 
  font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); position: relative;
}
.bank-opt span { width: 8px; height: 8px; background: rgba(255,255,255,0.2); border-radius: 50%; }
.bank-opt.active { background: rgba(255,140,0,0.1); color: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px rgba(255,140,0,0.1); }
.bank-opt.active span { background: var(--accent); box-shadow: 0 0 5px var(--accent); }
.bank-opt:hover:not(.active) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }

.account-details-box { background: rgba(0,0,0,0.2); padding: 15px 20px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.85rem; color: var(--text-muted); }
.val-group { display: flex; align-items: center; gap: 12px; }
.val-group span { font-family: 'Space Mono', monospace; color: var(--text-primary); font-size: 1rem; }
.copy-link { background: rgba(0,196,140,0.1); border: 1px solid rgba(0,196,140,0.2); color: #00c48c; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.3s; }
.copy-link:hover { background: #00c48c; color: #fff; }

.nominal-section { 
  padding: 25px 20px; background: transparent;
  display: flex; justify-content: space-between; align-items: center;
}
.nominal-section label { color: var(--text-primary); font-weight: 600; font-size: 1rem; font-family: 'Orbitron'; }
.nominal-input-group { display: flex; align-items: center; width: 60%; }
.rp-badge { background: var(--accent); color: #000; padding: 12px 18px; border-radius: 8px 0 0 8px; font-weight: 900; }
.nominal-input { 
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
  padding: 12px; color: #fff; font-size: 1.1rem; text-align: right; border-radius: 0 8px 8px 0;
  font-family: 'Space Mono', monospace;
}

.kirim-btn { 
  width: 100%; background: var(--accent); color: #000; border: none; padding: 18px; 
  font-weight: 800; text-transform: uppercase; cursor: pointer; font-size: 1.1rem; font-family: 'Orbitron';
  letter-spacing: 2px; transition: 0.3s;
}
.kirim-btn:hover { background: #ff8c00; transform: translateY(-2px); box-shadow: 0 5px 20px var(--accent-glow); }

.header-actions { display: flex; gap: 10px; margin-right: 15px; }

.modal-overlay { 
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 2000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-content { width: 90%; max-width: 500px; padding: 30px; position: relative; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close-modal { background: none; border: none; font-size: 2rem; color: var(--text-muted); cursor: pointer; }

.status-icon-anim { position: relative; width: 100px; height: 100px; margin: 0 auto; display:flex; align-items:center; justify-content:center; }
.spinner-circle { 
  position: absolute; width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid rgba(255,140,0,0.1); border-top-color: var(--accent);
  animation: rotate 1.5s linear infinite; box-shadow: 0 0 20px var(--accent-glow);
}
@keyframes rotate { to { transform: rotate(360deg); } }

.history-tabs { display: flex; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.h-tab { background: none; border: none; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; padding: 5px 0; position: relative; }
.h-tab.active { color: var(--accent); font-weight: 600; }
.h-tab.active::after { content: ''; position: absolute; bottom: -11px; left: 0; width: 100%; height: 2px; background: var(--accent); }

.a-tab { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; padding: 5px 0; position: relative; }
.a-tab.active { color: var(--accent); font-weight: 600; }
.a-tab.active::after { content: ''; position: absolute; bottom: -11px; left: 0; width: 100%; height: 2px; background: var(--accent); }


@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.withdraw-methods-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.w-method { 
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  padding: 12px; border-radius: 12px; cursor: pointer; transition: 0.3s;
  color: var(--text-muted); font-size: 0.8rem;
}
.w-method i { font-size: 1.2rem; }
.w-method.active { 
  background: rgba(255,140,0,0.1); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 15px rgba(255,140,0,0.1);
}
.w-method:hover:not(.active) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }

.currency-selector, .mode-switcher { display: flex; background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 3px; border-radius: 40px; }
.curr-opt, .mode-opt { padding: 4px 10px; border-radius: 40px; font-size: 0.72rem; font-weight: 700; cursor: pointer; transition: 0.3s; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.curr-opt.active { background: var(--accent); color: #000; box-shadow: 0 0 15px var(--accent-glow); }
.mode-opt.active { background: var(--accent2); color: #fff; box-shadow: 0 0 15px rgba(167, 139, 250, 0.4); }
.mode-opt[data-mode="real"].active { background: var(--accent3); box-shadow: 0 0 15px rgba(0, 196, 140, 0.4); }

.currency-symbol { padding: 0 15px; color: var(--accent); font-weight: 800; border-right: 1px solid rgba(255,255,255,0.1); font-family: 'Space Mono', monospace; }
