/* ================================================
   Commercex Trading — Premium Gold Theme
   Professional investment platform
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #0b0f19;
  --bg-panel: #111827;
  --bg-card: #1a1f2e;
  --bg-card-alt: #1e2433;
  --bg-input: #0d1117;
  --bg-hover: #252d3d;
  --border: #2a3441;
  --border-light: #374151;
  --text: #f1f5f9;
  --text-sec: #94a3b8;
  --text-dim: #64748b;
  --gold: #FFD700;
  --gold-dark: #d4a800;
  --gold-light: #ffe44d;
  --gold-glow: rgba(255, 215, 0, 0.2);
  --gold-bg: rgba(255, 215, 0, 0.08);
  --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
  --gradient-gold-hover: linear-gradient(135deg, #ffe44d, #FFD700);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.15);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.15);
  --blue: #3b82f6;
  --yellow: #FFD700;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.15);
  --glass: rgba(26, 31, 46, 0.8);
  --glass-border: rgba(255, 215, 0, 0.1);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 260px;
}
[data-theme="light"] {
  --bg-dark: #f8fafc; --bg-panel: #ffffff; --bg-card: #ffffff; --bg-card-alt: #f1f5f9;
  --bg-input: #f8fafc; --bg-hover: #e2e8f0; --border: #e2e8f0; --border-light: #cbd5e1;
  --text: #0f172a; --text-sec: #475569; --text-dim: #94a3b8;
  --shadow: 0 4px 20px rgba(0,0,0,0.08); --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --glass: rgba(255,255,255,0.9); --glass-border: rgba(255, 215, 0, 0.2);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html[dir="rtl"] .sidebar { border-right: none; border-left: 1px solid var(--border); }
html[dir="rtl"] .main { margin-left: 0; margin-right: var(--sidebar-w); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark); color: var(--text); line-height: 1.6;
  min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Layout */
.app { display: flex; min-height: 100vh; overflow-x: hidden; }
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; max-width: 100%; overflow-x: hidden; }
.page { padding: 24px; flex: 1; animation: fadeIn 0.3s ease; max-width: 100%; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease; }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--bg-panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 1000; transition: transform 0.3s ease; overflow-y: auto;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; backdrop-filter: blur(2px); }
.sidebar-brand { padding: 20px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.brand-icon { width: 40px; height: 40px; background: var(--gradient-gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #000; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--text); }
.brand-name span { color: var(--gold); }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-group { margin-bottom: 8px; }
.nav-group-label { padding: 8px 20px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-sec); font-size: 14px; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent; }
.nav-link:hover { color: var(--gold); background: var(--gold-bg); }
.nav-link.active { color: var(--gold); background: var(--gold-bg); border-left-color: var(--gold); font-weight: 600; }
.nav-link .icon { font-size: 16px; width: 22px; text-align: center; }
.sidebar-bottom { padding: 16px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.sidebar-user:hover { background: var(--bg-hover); }
.user-avatar, .user-avatar-img { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.user-avatar { background: var(--gradient-gold); color: #000; flex-shrink: 0; }
.user-avatar-img { object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-dim); }
.sidebar-logout { width: 100%; margin-top: 8px; padding: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-sec); border-radius: var(--radius-xs); font-size: 13px; cursor: pointer; transition: var(--transition); -webkit-tap-highlight-color: transparent; }
.sidebar-logout:hover { border-color: var(--red); color: var(--red); }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 12px;
  background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 8px; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px; }
.topbar-balance { display: flex; align-items: center; gap: 8px; }
.bal-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.bal-amount { font-size: 16px; font-weight: 700; color: var(--gold); }
.btn-deposit-top { padding: 8px 16px; background: var(--gradient-gold); color: #000; border: none; border-radius: var(--radius-xs); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); -webkit-tap-highlight-color: transparent; min-height: 36px; }
.btn-deposit-top:hover { transform: scale(1.05); box-shadow: var(--shadow-gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; -webkit-tap-highlight-color: transparent; min-height: 44px; }
.btn-gold { background: var(--gradient-gold); color: #000; }
.btn-gold:hover { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { box-shadow: 0 0 15px var(--green-glow); transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { box-shadow: 0 0 15px var(--red-glow); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 6px 12px; font-size: 12px; min-height: 32px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--text-sec); }
.form-input, .form-select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px; transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.form-input::placeholder { color: var(--text-dim); }

/* Password Toggle */
.input-password-wrap { position: relative; }
.input-password-wrap .form-input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-dim); display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: var(--transition); }
.pw-toggle:hover { color: var(--gold); background: var(--gold-bg); }
.pw-toggle svg { width: 20px; height: 20px; }

/* Trading Terminal Chart */
.trading-terminal-chart { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; position: relative; }
#tradingviewChart { position: relative; }
#tradingviewChart iframe { width: 100% !important; height: 100% !important; }
.tv-overlay-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 38px; background: #131722; z-index: 10; pointer-events: all; }
.tv-overlay-left { position: absolute; bottom: 38px; left: 0; width: 50px; height: 50px; background: #131722; z-index: 10; pointer-events: all; border-top-right-radius: 6px; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.chart-toolbar-left { display: flex; align-items: center; gap: 10px; }
.chart-toolbar-right { display: flex; gap: 4px; }
.chart-pair-label { font-size: 14px; font-weight: 700; color: var(--text); }
.chart-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.tf-btn { padding: 4px 10px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--text-sec); border-radius: 4px; cursor: pointer; transition: var(--transition); }
.tf-btn:hover { border-color: var(--gold); color: var(--gold); }
.tf-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* Active Trade Cards */
.active-trades-section { margin-bottom: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text); }
.active-trade-card { background: var(--bg-card); border: 1px solid rgba(16,185,129,0.2); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.active-trade-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.trade-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.trade-pair { display: flex; align-items: center; gap: 10px; }
.trade-pair-icon { font-size: 24px; }
.trade-pair-name { font-size: 14px; font-weight: 700; }
.trade-pair-sub { font-size: 11px; color: var(--text-dim); }
.trade-card-body { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.trade-metric { background: var(--bg-card-alt); padding: 8px 10px; border-radius: var(--radius-xs); }
.trade-metric span { display: block; font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.trade-metric strong { font-size: 13px; display: block; margin-top: 2px; }
.trade-metric strong.green { color: var(--green); }
.trade-metric strong.gold { color: var(--gold); }
.trade-progress-wrap { display: flex; align-items: center; gap: 10px; }
.trade-progress-bar { flex: 1; height: 6px; background: var(--bg-card-alt); border-radius: 3px; overflow: hidden; }
.trade-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 3px; transition: width 0.5s ease; }
.trade-progress-label { font-size: 11px; color: var(--text-sec); flex-shrink: 0; }

/* Invest Summary */
.invest-summary { background: var(--bg-card-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.invest-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.invest-summary-row:last-child { border-bottom: none; }
.invest-summary-row span { color: var(--text-sec); }
.invest-summary-row strong { color: var(--text); }
.invest-summary-row strong.green { color: var(--green); }
.invest-summary-row strong.gold { color: var(--gold); }

@media (max-width: 768px) {
  .trade-card-body { grid-template-columns: repeat(2, 1fr); }
  .chart-toolbar { padding: 8px 12px; }
  .tf-btn { padding: 4px 8px; font-size: 11px; }
  #tradingviewChart { height: 280px !important; }
}
@media (max-width: 480px) {
  .trade-card-body { grid-template-columns: 1fr 1fr; gap: 6px; }
  .trade-metric { padding: 6px 8px; }
  .trade-metric strong { font-size: 12px; }
  #tradingviewChart { height: 240px !important; }
}

/* Stat Cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: var(--transition); animation: fadeInUp 0.4s ease both; }
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.07s; }
.stat-card:nth-child(3) { animation-delay: 0.14s; }
.stat-card:nth-child(4) { animation-delay: 0.21s; }
.stat-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 22px; font-weight: 700; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.stat-value.gold { color: var(--gold); }
.stat-value.green { color: var(--green); }
.stat-value.blue { color: var(--blue); }
.stat-icon { font-size: 20px; margin-bottom: 8px; }
.dash-stat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-stat-icon { font-size: 18px; }

/* Packages */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 24px 0; }
.package-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; position: relative; overflow: hidden; transition: var(--transition);
}
.package-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-gold); opacity: 0; transition: var(--transition); }
.package-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.package-card:hover::before { opacity: 1; }
.package-card.featured { border-color: var(--gold); }
.package-card.featured::before { opacity: 1; }
.package-name { font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.package-return { font-size: 32px; font-weight: 800; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 12px 0; }
.package-return span { font-size: 14px; font-weight: 500; }
.package-detail { font-size: 13px; color: var(--text-sec); margin: 4px 0; }
.package-range { font-size: 13px; color: var(--text); font-weight: 500; margin: 12px 0; padding: 8px 12px; background: var(--bg-card-alt); border-radius: var(--radius-xs); }
.package-btn { margin-top: 16px; }

/* Trading Chart */
.trading-chart-wrap {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.trading-chart-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-gold); }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.chart-title { font-size: 14px; font-weight: 600; color: var(--text-sec); }
.chart-price { font-size: 22px; font-weight: 700; color: var(--green); }
.chart-price.down { color: var(--red); }
.chart-change { font-size: 12px; padding: 3px 8px; border-radius: 4px; font-weight: 500; }
.chart-change.up { background: rgba(16,185,129,0.1); color: var(--green); }
.chart-change.down { background: rgba(239,68,68,0.1); color: var(--red); }
#tradingChart { width: 100% !important; max-height: 220px; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-gold { background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--green); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--red); }
.badge-blue { background: rgba(59,130,246,0.1); color: var(--blue); }
.badge-yellow { background: var(--gold-bg); color: var(--gold); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: var(--bg-card-alt); }
th { padding: 10px 14px; text-align: left; font-weight: 600; color: var(--text-sec); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
td { padding: 10px 14px; border-top: 1px solid var(--border); color: var(--text); white-space: nowrap; }
tr:hover td { background: var(--bg-hover); }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: #060a14; position: relative; overflow: hidden; }
.auth-page::before { content: ''; position: absolute; inset: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255,215,0,0.03) 60deg, transparent 120deg, rgba(16,185,129,0.03) 180deg, transparent 240deg, rgba(99,102,241,0.03) 300deg, transparent 360deg); animation: authConic 20s linear infinite; }
.auth-page::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,215,0,0.12) 1px, transparent 0); background-size: 32px 32px; opacity: 0.5; animation: authGridPulse 4s ease-in-out infinite alternate; }
@keyframes authConic { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes authGridPulse { 0% { opacity: 0.3; } 100% { opacity: 0.6; } }
.auth-card { width: 100%; max-width: 420px; background: rgba(26, 31, 46, 0.85); border: 1px solid rgba(255,215,0,0.15); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 30px rgba(255,215,0,0.05); position: relative; z-index: 2; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: authCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes authCardIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.auth-orb-1 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(255,215,0,0.25), transparent 70%); top: -120px; left: -120px; animation: orbFloat1 6s ease-in-out infinite alternate; }
.auth-orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(16,185,129,0.2), transparent 70%); bottom: -100px; right: -100px; animation: orbFloat2 8s ease-in-out infinite alternate; }
.auth-orb-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%); top: 40%; left: 55%; animation: orbFloat3 10s ease-in-out infinite alternate; }
@keyframes orbFloat1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, 30px) scale(1.2); } }
@keyframes orbFloat2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-30px, -40px) scale(1.15); } }
@keyframes orbFloat3 { 0% { transform: translate(0, 0) scale(0.8); } 100% { transform: translate(-50px, 30px) scale(1.1); } }
.auth-particles { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.auth-particle { position: absolute; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; opacity: 0; animation: particleRise linear infinite; }
.auth-particle:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.auth-particle:nth-child(2) { left: 25%; animation-duration: 10s; animation-delay: 1s; }
.auth-particle:nth-child(3) { left: 40%; animation-duration: 7s; animation-delay: 2s; }
.auth-particle:nth-child(4) { left: 55%; animation-duration: 9s; animation-delay: 0.5s; }
.auth-particle:nth-child(5) { left: 70%; animation-duration: 11s; animation-delay: 3s; }
.auth-particle:nth-child(6) { left: 85%; animation-duration: 8s; animation-delay: 1.5s; }
.auth-particle:nth-child(7) { left: 15%; animation-duration: 12s; animation-delay: 4s; }
.auth-particle:nth-child(8) { left: 60%; animation-duration: 9s; animation-delay: 2.5s; }
@keyframes particleRise { 0% { bottom: -10px; opacity: 0; transform: translateX(0); } 10% { opacity: 0.8; } 90% { opacity: 0.4; } 100% { bottom: 100%; opacity: 0; transform: translateX(30px); } }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand h1 { font-size: 22px; font-weight: 700; color: var(--text); margin-top: 12px; }
.auth-brand p { font-size: 14px; color: var(--text-sec); margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-sec); }
.auth-links { text-align: center; margin-top: 12px; font-size: 13px; }
.auth-lang { position: absolute; top: 16px; right: 16px; }

/* Toast */
.toast-box { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; animation: slideUp 0.3s ease; max-width: 340px; pointer-events: auto; }
.toast-ok { background: rgba(16,185,129,0.95); color: #fff; }
.toast-err { background: rgba(239,68,68,0.95); color: #fff; }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Page Title */
.page-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }

/* Loader */
.loader { display: flex; justify-content: center; padding: 60px 0; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.empty-text { color: var(--text-sec); font-size: 15px; }

/* Dashboard */
.dash-hero { background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,215,0,0.05) 100%); border: 1px solid var(--glass-border); margin-bottom: 24px; animation: fadeInUp 0.3s ease both; }
.dash-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.quick-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer; transition: var(--transition); -webkit-tap-highlight-color: transparent; }
.quick-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.quick-icon { font-size: 24px; margin-bottom: 8px; }
.quick-text { font-size: 12px; font-weight: 600; color: var(--text); }
.quick-sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* Active Trade */
.trade-card { background: var(--bg-card); border: 1px solid rgba(255,215,0,0.3); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.trade-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-gold); }
.trade-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.trade-amount { font-size: 24px; font-weight: 700; color: var(--gold); }
.trade-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.trade-info-item { }
.trade-info-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; }
.trade-info-value { color: var(--text); font-weight: 600; font-size: 14px; margin-top: 2px; }

/* Chat Widget */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9000; }
.chat-fab { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-gold); border: none; color: #000; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-gold); transition: var(--transition); }
.chat-fab:hover { transform: scale(1.1); }
.chat-fab-icon { display: flex; }
.chat-fab-dot { display: none; }
.chat-panel { display: none; position: absolute; bottom: 60px; right: 0; width: 320px; max-height: 440px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); flex-direction: column; }
.chat-widget.open .chat-panel { display: flex; }
.chat-widget.open .chat-fab { display: none; }
.chat-panel-header { padding: 12px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.chat-panel-title { font-size: 14px; font-weight: 600; }
.chat-panel-subtitle { font-size: 11px; color: var(--text-dim); }
.chat-close { background: none; border: none; color: var(--text-sec); font-size: 18px; cursor: pointer; padding: 6px; min-width: 32px; min-height: 32px; }
.chat-panel-body { flex: 1; overflow-y: auto; padding: 12px; min-height: 180px; max-height: 280px; }
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.chat-bubble-out { background: var(--gold-bg); border: 1px solid rgba(255,215,0,0.2); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble-in { background: var(--bg-card-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble-name { font-size: 11px; font-weight: 600; color: var(--gold); margin-bottom: 2px; }
.chat-bubble-text { color: var(--text); word-break: break-word; }
.chat-bubble-time { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.chat-panel-form { display: flex; padding: 10px; border-top: 1px solid var(--border); gap: 8px; }
.chat-input { flex: 1; padding: 8px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 20px; color: var(--text); font-size: 13px; outline: none; min-width: 0; }
.chat-input:focus { border-color: var(--gold); }
.chat-send { background: var(--gradient-gold); border: none; color: #000; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Language */
.lang-dropdown { position: relative; }
.lang-btn { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 6px 10px; font-size: 12px; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.lang-menu { position: absolute; top: 100%; right: 0; margin-top: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; min-width: 100px; display: none; z-index: 100; box-shadow: var(--shadow); }
.lang-menu.open { display: block; }
.lang-option { display: block; width: 100%; padding: 8px 12px; border: none; background: none; color: var(--text); font-size: 13px; cursor: pointer; border-radius: 4px; text-align: left; }
.lang-option:hover { background: var(--bg-hover); }

/* Referral */
.referral-share-card { margin-top: 16px; }
.referral-share-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.referral-share-url { font-size: 12px; color: var(--gold); word-break: break-all; margin-top: 4px; }

/* Settings */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 26px; transition: .3s; }
.switch .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .3s; }
.switch input:checked + .slider { background: var(--gold); }
.switch input:checked + .slider:before { transform: translateX(22px); }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.settings-row:last-child { border-bottom: none; }
.settings-section { display: flex; flex-direction: column; gap: 16px; }
.settings-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.settings-card-header { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.settings-card-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.settings-card-icon { font-size: 20px; flex-shrink: 0; }
.settings-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 12px; }
.settings-item-info { flex: 1; min-width: 0; }
.settings-item-info strong { display: block; font-size: 14px; color: var(--text); }
.settings-item-info p { font-size: 12px; color: var(--text-dim); margin-top: 2px; line-height: 1.3; }
.settings-form { padding: 16px; }
.settings-danger { border-color: rgba(239,68,68,0.3); }
.settings-danger .settings-card-header { border-bottom-color: rgba(239,68,68,0.2); }

/* Deposit Tabs */
.deposit-tabs { display: flex; gap: 0; margin-bottom: 20px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.dep-tab { flex: 1; padding: 12px 16px; border: none; background: var(--bg-card-alt); color: var(--text-sec); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; }
.dep-tab.active { background: var(--gold); color: #000; }
.dep-tab:not(.active):hover { background: var(--bg-hover); color: var(--text); }

/* Admin */
.admin-portal .sidebar { background: #0d1117; }
.admin-topbar { background: rgba(13, 17, 23, 0.9); }
.admin-badge { background: var(--gradient-gold); color: #000; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.admin-brand-icon { background: var(--gradient-gold); }
.admin-topbar-label { font-size: 14px; font-weight: 600; color: var(--text-sec); }

/* Admin Dashboard Stats */
.admin-stat { display: flex; align-items: center; gap: 12px; }
.admin-stat .stat-icon { font-size: 28px; flex-shrink: 0; }
.admin-stat .stat-body { min-width: 0; }
.admin-stat .stat-label { font-size: 12px; color: var(--text-dim); }
.admin-stat .stat-value { font-size: 20px; font-weight: 700; }

/* Admin Quick Cards */
.admin-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.admin-quick-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; cursor: pointer; transition: var(--transition); text-align: center; }
.admin-quick-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.admin-quick-icon { font-size: 32px; margin-bottom: 8px; }
.admin-quick-label { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.admin-quick-desc { font-size: 12px; color: var(--text-dim); }

/* Admin Page Header */
.admin-page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-page-count { font-size: 13px; color: var(--text-dim); background: var(--bg-card-alt); padding: 4px 10px; border-radius: 12px; }
.admin-section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.admin-section-desc { font-size: 13px; color: var(--text-sec); margin-bottom: 16px; }
.admin-alert { background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.3); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: var(--gold); }

/* Admin Actions */
.admin-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-actions .btn-sm { padding: 4px 8px; font-size: 11px; min-width: 32px; }

/* Admin User Cells */
.admin-user-cell { display: flex; align-items: center; gap: 10px; }
.admin-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #000; flex-shrink: 0; }
.admin-user-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.admin-user-name { font-size: 13px; font-weight: 600; }
.admin-user-email { font-size: 11px; color: var(--text-dim); }

/* Admin Settings Grid */
.admin-settings-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.trading-days-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.day-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-card-alt); border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.day-toggle:hover { border-color: var(--gold); }
.day-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.day-label { font-size: 13px; font-weight: 500; }

/* Admin Support Layout */
.admin-support-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; min-height: 400px; }
.admin-support-threads { max-height: 500px; overflow-y: auto; padding: 8px; }
.admin-support-chat { display: flex; flex-direction: column; }

/* Admin Table Responsive */
.row-disabled { opacity: 0.5; }

/* Admin Support Thread/Chat Styles */
.support-thread { display: block; width: 100%; text-align: left; background: var(--bg-card-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: var(--transition); position: relative; }
.support-thread:hover { border-color: var(--gold); background: var(--bg-hover); }
.support-thread.active { border-color: var(--gold); background: var(--gold-bg); }
.support-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.support-thread-head span:first-child { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-thread-time { font-size: 11px; color: var(--text-dim); flex-shrink: 0; }
.support-thread-preview { font-size: 12px; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-unread { position: absolute; top: 10px; right: 10px; background: var(--gold); color: #000; font-size: 10px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Support Chat Messages */
.support-chat-list { flex: 1; overflow-y: auto; padding: 12px; min-height: 200px; max-height: 400px; display: flex; flex-direction: column; gap: 8px; }
.support-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.support-msg.theirs { background: var(--bg-card-alt); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.support-msg.mine { background: var(--gold-bg); border: 1px solid rgba(255,215,0,0.2); align-self: flex-end; border-bottom-right-radius: 4px; }
.support-msg-head { font-size: 11px; font-weight: 600; color: var(--gold); margin-bottom: 2px; }
.support-msg-body { color: var(--text); word-break: break-word; }
.support-msg-time { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.support-chat-form { display: flex; gap: 8px; padding: 12px 0 0; border-top: 1px solid var(--border); margin-top: 12px; }
.support-chat-form .form-input { flex: 1; min-width: 0; }
.support-chat-form .btn { flex-shrink: 0; }

/* Admin Referral Settings Grid */
.ref-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }

/* Admin Mobile */
@media (max-width: 768px) {
  /* Admin layout fixes */
  .admin-portal .main { margin-left: 0; }
  .admin-portal .sidebar { transform: translateX(-100%); width: 280px; }
  .admin-portal .sidebar.open { transform: translateX(0); }
  .admin-portal .hamburger { display: flex; align-items: center; justify-content: center; }
  .admin-portal .page { padding: 12px; }
  .admin-portal .topbar { padding: 10px 12px; }

  /* Dashboard stats */
  .admin-portal .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-portal .stat-card { padding: 12px; }
  .admin-stat .stat-icon { font-size: 20px; }
  .admin-stat .stat-value { font-size: 15px; }
  .admin-stat .stat-label { font-size: 11px; }
  .admin-stat { gap: 8px; }

  /* Quick cards */
  .admin-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-quick-card { padding: 14px 10px; }
  .admin-quick-icon { font-size: 22px; margin-bottom: 6px; }
  .admin-quick-label { font-size: 12px; }
  .admin-quick-desc { font-size: 11px; }

  /* Page header */
  .admin-page-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .page-title { font-size: 17px; }

  /* Tables */
  .admin-portal table { font-size: 12px; }
  .admin-portal th { padding: 8px 8px; font-size: 10px; }
  .admin-portal td { padding: 8px 8px; }
  .admin-portal .table-wrap { margin: 0 -12px; padding: 0 0; border-radius: 0; }
  .admin-portal .card { padding: 12px; border-radius: var(--radius-sm); }

  /* User cells */
  .admin-user-cell { gap: 6px; }
  .admin-user-avatar, .admin-user-avatar-img { width: 28px; height: 28px; font-size: 10px; }
  .admin-user-name { font-size: 12px; }
  .admin-user-email { font-size: 10px; }

  /* Action buttons */
  .admin-actions { gap: 3px; flex-wrap: nowrap; }
  .admin-actions .btn-sm { padding: 6px 8px; font-size: 12px; min-width: 32px; min-height: 32px; border-radius: 6px; }

  /* Support */
  .admin-support-layout { grid-template-columns: 1fr; gap: 12px; min-height: auto; }
  .admin-support-threads { max-height: 220px; padding: 4px; }
  .support-thread { padding: 10px 12px; }
  .support-thread-head span:first-child { font-size: 12px; }
  .support-chat-list { max-height: 300px; min-height: 150px; padding: 8px; }
  .support-msg { max-width: 90%; padding: 8px 12px; font-size: 12px; }
  .support-chat-form { flex-direction: row; gap: 6px; }
  .support-chat-form .form-input { padding: 10px 12px; font-size: 13px; }

  /* Settings */
  .admin-settings-grid { grid-template-columns: 1fr; gap: 12px; }
  .trading-days-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .day-toggle { padding: 8px 10px; }
  .day-label { font-size: 12px; }
  .admin-section-title { font-size: 14px; }
  .admin-section-desc { font-size: 12px; }

  /* Referral settings */
  .ref-settings-grid { grid-template-columns: 1fr; gap: 10px; }

  /* Alert */
  .admin-alert { font-size: 12px; padding: 10px 12px; }
}

@media (max-width: 480px) {
  /* Smaller stat cards */
  .admin-portal .stat-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .admin-portal .stat-card { padding: 10px; }
  .admin-stat .stat-value { font-size: 14px; }
  .admin-stat .stat-icon { font-size: 18px; }

  /* Quick cards single column feels better */
  .admin-quick-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .admin-quick-card { padding: 12px 8px; }
  .admin-quick-desc { display: none; }
  .admin-quick-icon { font-size: 20px; }
  .admin-quick-label { font-size: 11px; }

  /* Settings */
  .trading-days-grid { grid-template-columns: 1fr; }
  .day-toggle { padding: 10px 12px; }

  /* Tables even more compact */
  .admin-portal th { padding: 6px 6px; font-size: 9px; }
  .admin-portal td { padding: 6px 6px; font-size: 11px; white-space: normal; }

  /* Hide less important columns on very small screens */
  .admin-portal .hide-mobile { display: none; }

  /* Page padding */
  .admin-portal .page { padding: 10px 8px; }
  .admin-portal .card { padding: 10px; }

  /* Actions stack vertically */
  .admin-actions { flex-wrap: wrap; gap: 4px; }
  .admin-actions .btn-sm { padding: 5px 6px; font-size: 11px; min-width: 28px; min-height: 28px; }

  /* Admin withdrawals - mobile card layout */
  .admin-portal .admin-withdraw-card { margin-bottom: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); }
  .admin-portal .admin-withdraw-card .actions { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
  .admin-portal .admin-withdraw-card .phone { font-weight:700; color:var(--text); margin-top:6px; }
  .admin-portal .admin-withdraw-card .copy-btn { min-width:78px; }

  /* Currency converter styles */
  .currency-converter { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:12px; }
  .currency-converter select, .currency-converter input { padding:8px 10px; border-radius:8px; border:1px solid var(--border); background:var(--bg-input); color:var(--text); }
  .currency-converter .conv-result { font-weight:700; margin-left:8px; color:var(--gold); }

  /* Support */
  .admin-support-threads { max-height: 180px; }
  .support-chat-list { max-height: 250px; }
  .support-msg { max-width: 95%; }
}

/* Withdrawal Schedule Banner */
.withdrawal-schedule-banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px;
  border: 1px solid; animation: fadeIn 0.3s ease;
}
.withdrawal-schedule-banner.wd-open {
  background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.3);
}
.withdrawal-schedule-banner.wd-closed {
  background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.3);
}
.wd-banner-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.wd-banner-content { flex: 1; min-width: 0; }
.wd-banner-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.wd-open .wd-banner-title { color: var(--green); }
.wd-closed .wd-banner-title { color: var(--red); }
.wd-banner-detail { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-sec); }
.wd-banner-detail span { display: flex; align-items: center; gap: 4px; }
.wd-banner-note { margin-top: 8px; font-size: 12px; color: var(--text-dim); font-style: italic; }
@media (max-width: 480px) {
  .withdrawal-schedule-banner { padding: 12px 14px; gap: 10px; }
  .wd-banner-icon { font-size: 22px; }
  .wd-banner-title { font-size: 13px; }
  .wd-banner-detail { flex-direction: column; gap: 4px; font-size: 12px; }
}

/* Profile */
.profile-card { max-width: 600px; }
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; width: 64px; height: 64px; cursor: pointer; flex-shrink: 0; }
.profile-avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.profile-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #000; }
.profile-avatar-overlay { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }
.profile-name { font-size: 18px; font-weight: 700; }
.profile-email { font-size: 13px; color: var(--text-sec); }
.profile-info { min-width: 0; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.profile-stat { background: var(--bg-card-alt); padding: 12px; border-radius: var(--radius-sm); }
.profile-stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; }
.profile-stat-value { font-size: 16px; font-weight: 700; margin-top: 2px; }
.profile-stat-value.green { color: var(--green); }
.profile-form { margin-top: 20px; }
.form-card { max-width: 500px; }

/* Active Cycle Card (legacy) */
.active-cycle-card { border: 1px solid rgba(255,215,0,0.3); }
.active-cycle-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.active-cycle-title { font-size: 14px; font-weight: 600; }
.active-cycle-sub { font-size: 12px; color: var(--text-dim); }
.active-cycle-amount { font-size: 28px; font-weight: 700; color: var(--gold); margin: 12px 0; }
.active-cycle-timer { font-size: 18px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.active-cycle-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--text-sec); flex-wrap: wrap; gap: 8px; }
.dash-empty-cycle { text-align: center; padding: 32px; }
.dash-empty-icon { font-size: 40px; margin-bottom: 8px; }
.dash-empty-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.dash-empty-text { font-size: 13px; color: var(--text-sec); margin-bottom: 16px; }

/* Dash section */
.dash-section-row { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; }
.dash-section-title { margin-bottom: 0; }
.dash-link { font-size: 13px; color: var(--gold); }

/* Hero panel */
.dash-hero-copy { margin-bottom: 16px; }
.dash-kicker { font-size: 14px; color: var(--gold); font-weight: 500; margin-bottom: 4px; }
.dash-hero-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.dash-hero-sub { font-size: 13px; color: var(--text-sec); line-height: 1.5; }
.dash-hero-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.dash-hero-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.dash-hero-metric { background: var(--bg-card-alt); padding: 12px; border-radius: var(--radius-sm); }
.dash-hero-metric span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; }
.dash-hero-metric strong { display: block; font-size: 16px; color: var(--gold); margin-top: 2px; }
.dash-ref-metric { display: flex; align-items: center; justify-content: space-between; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-alt) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); height: 20px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Support launch */
.support-launch-card { text-align: center; padding: 32px; }
.support-launch-icon { font-size: 40px; margin-bottom: 12px; }
.support-launch-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.support-launch-text { font-size: 13px; color: var(--text-sec); }

/* Mobile */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); width: 280px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .main { margin-left: 0; width: 100%; max-width: 100vw; overflow-x: hidden; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .page { padding: 12px; max-width: 100vw; overflow-x: hidden; }
  .topbar { padding: 10px 12px; }
  .topbar-right { gap: 6px; }
  .bal-label { display: none; }
  .bal-amount { font-size: 14px; }
  .btn-deposit-top { padding: 6px 12px; font-size: 12px; }

  /* Dashboard stat cards - horizontal scroll */
  .stat-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .stat-grid::-webkit-scrollbar { display: none; }
  .stat-card { min-width: 140px; flex-shrink: 0; padding: 12px; scroll-snap-align: start; }
  .stat-value { font-size: 17px; }
  .stat-label { font-size: 11px; }

  /* Page titles */
  .page-title { font-size: 18px; margin-bottom: 12px; }

  /* Cards */
  .card { padding: 14px; border-radius: 12px; }
  .form-card { max-width: 100%; }
  .profile-card { max-width: 100%; }

  /* Dashboard hero */
  .dash-hero { padding: 14px; margin-bottom: 16px; }
  .dash-hero-panel { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .dash-hero-metric { padding: 10px; }
  .dash-hero-metric span { font-size: 10px; }
  .dash-hero-metric strong { font-size: 14px; }
  .dash-hero-title { font-size: 16px; }
  .dash-hero-sub { font-size: 12px; }
  .dash-hero-actions { gap: 8px; }
  .dash-hero-actions .btn { padding: 10px 16px; font-size: 13px; }
  .dash-kicker { font-size: 13px; }

  /* Quick actions grid */
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .quick-card { padding: 12px; }
  .quick-icon { font-size: 20px; }
  .quick-text { font-size: 12px; }
  .quick-sub { font-size: 10px; }

  /* Packages */
  .packages-grid { grid-template-columns: 1fr; gap: 12px; }
  .package-card { padding: 16px; }
  .package-return { font-size: 28px; }

  /* Trading terminal */
  .trading-terminal-chart { margin-bottom: 12px; }
  #tradingviewChart { height: 280px !important; }
  .chart-toolbar { padding: 8px 10px; }
  .chart-pair-label { font-size: 12px; }
  .tf-btn { padding: 3px 7px; font-size: 11px; }

  /* Active trades */
  .active-trade-card { padding: 12px; }
  .trade-card-header { flex-wrap: wrap; gap: 6px; }
  .trade-card-body { grid-template-columns: 1fr 1fr; gap: 6px; }
  .trade-metric { padding: 6px 8px; font-size: 12px; }
  .active-cycle-amount { font-size: 22px; }
  .trade-amount { font-size: 20px; }

  /* Chat panel */
  .chat-panel { width: calc(100vw - 24px); right: -4px; bottom: 60px; max-height: 70vh; }

  /* Auth */
  .auth-card { padding: 24px 16px; max-width: 100%; }

  /* Tables */
  .table-wrap { margin: 0 -14px; padding: 0 14px; }
  table { font-size: 12px; }
  th, td { padding: 8px 6px; white-space: nowrap; }

  /* Forms */
  .form-input, .form-select { font-size: 16px; padding: 12px; }
  .form-group { margin-bottom: 12px; }

  /* Deposit tabs */
  .deposit-tabs { flex-direction: row; }
  .dep-tab { padding: 10px 8px; font-size: 12px; }

  /* Settings */
  .settings-item { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .settings-item-info p { word-break: break-word; font-size: 11px; }
  .settings-card-header { padding: 12px; }
  .settings-card-header h3 { font-size: 14px; }
  .settings-form { padding: 12px; }
  .settings-row { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .settings-row > div { flex: 1; min-width: 0; }
  .settings-row > div p { word-break: break-word; }

  /* Invest modal */
  #investModal > .card { max-width: 100%; margin: 0 10px; }

  /* Withdrawal banner */
  .withdrawal-schedule-banner { padding: 12px; }
  .wd-banner-detail { flex-direction: column; gap: 4px; font-size: 11px; }

  /* Trading chart area on dashboard */
  .trading-chart-wrap { margin-bottom: 16px; }
  .chart-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  #tradingChart { max-height: 140px; }
  .chart-price { font-size: 20px; }

  /* Referral */
  .referral-share-top { flex-direction: column; align-items: flex-start; }

  /* Support */
  .support-thread { padding: 10px; }
}

@media (max-width: 380px) {
  .page { padding: 10px; }
  .stat-card { min-width: 130px; }
  .topbar-balance { display: none; }
  .dash-hero-panel { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .dep-tab { font-size: 11px; }
  .trade-card-body { grid-template-columns: 1fr; }
}

/* ===== LANDING PAGE - PROFESSIONAL TRADING THEME ===== */
.landing-shell { min-height: 100vh; background: #0a0e1a; position: relative; overflow: hidden; color: #fff; }
.landing-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(150px); opacity: 0.06; pointer-events: none; }
.landing-glow-a { top: -300px; left: -200px; background: #f5a623; }
.landing-glow-b { bottom: -300px; right: -200px; background: #f59e0b; }

/* NAV */
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; }
.landing-nav-left { display: flex; align-items: center; gap: 12px; }
.landing-nav-right { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.footer-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* HERO with IMAGE */
.hero-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 32px 60px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 5; }
.hero-content { max-width: 560px; }
.hero-headline { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 18px; letter-spacing: -0.5px; }
.hero-gold { background: linear-gradient(135deg, #f5a623, #ffd700, #f5a623); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 16px; color: #94a3b8; line-height: 1.7; margin-bottom: 24px; }
.hero-image-wrap { position: relative; display: flex; justify-content: center; }
.hero-img { width: 100%; max-width: 560px; border-radius: 16px; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* HERO FEATURES LIST */
.hero-features-list { margin-bottom: 24px; }
.hero-feat { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; opacity: 0; transform: translateY(15px); animation: fadeUp 0.6s ease forwards; }
.hero-feat:nth-child(1) { animation-delay: 0.2s; }
.hero-feat:nth-child(2) { animation-delay: 0.4s; }
.hero-feat:nth-child(3) { animation-delay: 0.6s; }
.hero-feat:nth-child(4) { animation-delay: 0.8s; }
.hero-feat-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(245, 166, 35, 0.12); color: #f5a623; }
.hero-feat-icon.lock { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.hero-feat-icon.globe { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.hero-feat-icon.support { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.hero-feat strong { font-size: 14px; color: #e2e8f0; }
.hero-feat span { font-size: 12px; color: #64748b; }

/* HERO BUTTONS */
.hero-buttons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-cta { padding: 14px 32px; font-size: 16px; font-weight: 700; border-radius: 8px; }
.hero-join-text { font-size: 13px; color: #64748b; }
.arrow-animate { display: inline-block; color: var(--gold); animation: arrowBounce 1.5s infinite; }

/* HERO INSTRUMENTS */
.hero-instruments { display: flex; gap: 16px; flex-wrap: wrap; }

/* INSTRUMENTS */
.instruments-section { padding: 20px 32px 40px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 5; }
.instruments-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.instrument-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.instrument-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; border: 2px solid rgba(255,255,255,0.08); transition: all 0.3s ease; }
.instrument-icon:hover { border-color: var(--gold); transform: scale(1.15); }
.instrument-chip span { font-size: 11px; color: #94a3b8; font-weight: 500; }
.gold-icon { background: rgba(245, 166, 35, 0.12); color: #f5a623; }
.btc-icon { background: rgba(247, 147, 26, 0.12); color: #f7931a; }
.eth-icon { background: rgba(98, 126, 234, 0.12); color: #627eea; }
.forex-icon { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.oil-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

/* STATS */
.stats-section { padding: 40px 32px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 5; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 32px; }
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: #fff; display: inline; }
.stat-suffix { font-size: 24px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* HERO BANNER (2nd image) */
/* SECTIONS */
.landing-section { padding: 70px 32px; position: relative; z-index: 5; }
.landing-section-alt { background: rgba(15, 23, 42, 0.4); }
.landing-section-inner { max-width: 1100px; margin: 0 auto; }
.landing-section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 10px; color: #fff; }
.landing-section-subtitle { font-size: 15px; color: #64748b; text-align: center; margin-bottom: 40px; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 32px 24px; text-align: center; transition: all 0.3s ease; position: relative; }
.step-card:hover { border-color: rgba(255,215,0,0.25); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.step-number { position: absolute; top: 14px; left: 18px; font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(255,215,0,0.1); padding: 3px 10px; border-radius: 6px; }
.step-icon-svg { margin-bottom: 16px; }
.step-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #e2e8f0; }
.step-desc { font-size: 13px; color: #64748b; line-height: 1.6; }

/* PLANS */
.landing-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-plan-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 32px 24px; text-align: center; transition: all 0.3s ease; }
.landing-plan-card:hover { border-color: rgba(255,215,0,0.25); transform: translateY(-3px); }
.landing-plan-featured { border-color: var(--gold); position: relative; background: rgba(245, 166, 35, 0.04); }
.landing-plan-featured::before { content: 'POPULAR'; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #f5a623, #ffd700); color: #000; font-size: 10px; font-weight: 700; padding: 4px 14px; border-radius: 0 0 8px 8px; }
.landing-plan-badge { font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.landing-plan-amount { font-size: 22px; font-weight: 700; margin: 10px 0 20px; color: #fff; }
.landing-plan-list { list-style: none; text-align: left; margin-bottom: 24px; padding: 0; }
.landing-plan-list li { font-size: 13px; color: #94a3b8; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.landing-plan-list li:last-child { border-bottom: none; }
.landing-plan-list li::before { content: '\2713 '; color: #10b981; font-weight: 700; }

/* REFERRAL */
.landing-referral-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-referral-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 32px 24px; text-align: center; transition: all 0.3s ease; }
.landing-referral-card:hover { border-color: rgba(255,215,0,0.25); }
.landing-referral-level { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.landing-referral-pct { font-size: 42px; font-weight: 800; background: linear-gradient(135deg, #f5a623, #ffd700); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.landing-referral-desc { font-size: 13px; color: #94a3b8; margin-top: 6px; }

/* CTA */
.landing-cta { text-align: center; padding: 20px 0; }
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FOOTER */
.landing-footer { padding: 24px 32px; border-top: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 5; }
.landing-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.landing-footer-brand { display: flex; align-items: center; gap: 10px; }
.landing-footer-copy { font-size: 12px; color: #475569; }

/* BUTTON GOLD */
.btn-gold { background: linear-gradient(135deg, #f5a623, #ffd700); color: #000; font-weight: 700; border: none; border-radius: 8px; padding: 10px 24px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.btn-gold:hover { background: linear-gradient(135deg, #ffd700, #f5a623); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes arrowBounce { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4); } 50% { box-shadow: 0 0 0 12px rgba(245, 166, 35, 0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes textGlow { 0%,100% { text-shadow: 0 0 10px rgba(245,166,35,0.3); } 50% { text-shadow: 0 0 20px rgba(245,166,35,0.6), 0 0 40px rgba(245,166,35,0.2); } }
@keyframes wordReveal { from { opacity: 0; transform: translateY(12px) scale(0.95); filter: blur(4px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

.hero-headline .word { display: inline-block; opacity: 0; animation: wordReveal 0.5s ease forwards; }
.hero-headline .word:nth-child(1) { animation-delay: 0.1s; }
.hero-headline .word:nth-child(2) { animation-delay: 0.3s; }
.hero-headline .word:nth-child(3) { animation-delay: 0.5s; }
.hero-gold { animation: textGlow 3s ease-in-out infinite; }

.animate-fade-up { animation: fadeUp 0.7s ease forwards; }
.animate-fade-down { animation: fadeDown 0.7s ease forwards; }
.animate-slide-right { animation: slideRight 0.8s ease forwards; }
.animate-slide-left { animation: slideLeft 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.pulse-btn { animation: pulse 2s infinite; }

/* SCROLL FADE */
.fade-up-section { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up-section.visible { opacity: 1; transform: translateY(0); }

/* Invest page extras */
.invest-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.invest-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.invest-stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; }
.invest-stat-value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.invest-stat-value.green { color: var(--green); }
.invest-stat-value.red { color: var(--red); }
.invest-balance { font-size: 14px; margin-bottom: 16px; color: var(--text-sec); }
.invest-balance .green { color: var(--green); font-weight: 700; }
.stake-control { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stake-btn { width: 44px; height: 44px; border: 1px solid var(--border); background: var(--bg-card); color: var(--gold); font-size: 20px; border-radius: var(--radius-xs); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.stake-btn:hover { border-color: var(--gold); }
.stake-input { flex: 1; text-align: center; font-size: 20px; font-weight: 700; }
.invest-info-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-sec); border-bottom: 1px solid var(--border); }
.invest-info-row:last-of-type { border-bottom: none; margin-bottom: 16px; }
.invest-active { padding: 4px 0; }
.invest-active-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.invest-active-title { font-size: 15px; font-weight: 600; }
.invest-active-amount { font-size: 28px; font-weight: 700; color: var(--gold); margin: 12px 0; }
.countdown-wrapper { text-align: center; padding: 16px; background: var(--bg-card-alt); border-radius: var(--radius-sm); margin: 12px 0; }
.countdown-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 4px; }
.countdown-display { font-size: 28px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown-display.completed { color: var(--green); }
.invest-active-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-sec); flex-wrap: wrap; }
.meta-label { font-weight: 500; }
.invest-form-section { padding: 4px 0; }
.chart-container { position: relative; }

/* Referral extras */
.referral-hero { margin-bottom: 16px; }
.referral-code-box { margin-bottom: 16px; }
.referral-code { font-size: 24px; font-weight: 700; color: var(--gold); margin-top: 4px; }
.referral-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cycle-meta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* RESPONSIVE - LANDING */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 40px; }
  .hero-headline { font-size: 32px; }
  .hero-image-wrap { order: -1; }
  .hero-img { max-width: 100%; border-radius: 12px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .landing-plans-grid { grid-template-columns: 1fr; }
  .landing-referral-grid { grid-template-columns: 1fr; }
  .landing-section { padding: 48px 16px; }
  .landing-section-title { font-size: 24px; }
  .landing-nav { padding: 14px 16px; }
  .landing-nav-right .btn-sm { padding: 6px 12px; font-size: 12px; }
  .instruments-row { gap: 14px; }
  .referral-summary { grid-template-columns: 1fr; }
}
