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

:root {
  --claude-coral: #D97757;
  --claude-coral-light: #E8916F;
  --claude-coral-dark: #C4623E;
  --claude-cream: #F5E6D3;
  --claude-cream-dark: #EDD5BC;
  --bg-primary: #0D0D12;
  --bg-secondary: #13131A;
  --bg-card: #1A1A24;
  --bg-card-hover: #20202E;
  --bg-elevated: #22222E;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(217,119,87,0.3);
  --text-primary: #F0EDE8;
  --text-secondary: #9B9AA6;
  --text-muted: #5E5D6A;
  --green: #22C55E;
  --green-dim: rgba(34,197,94,0.15);
  --red: #EF4444;
  --red-dim: rgba(239,68,68,0.15);
  --yellow: #F59E0B;
  --blue: #3B82F6;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-coral: 0 4px 24px rgba(217,119,87,0.2);
  --transition: all 0.2s ease;
  --sidebar-w: 260px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
a { color: var(--claude-coral); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--claude-coral-light); }
code, .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ── Layout ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 280px; background: var(--bg-secondary); border-right: 1px solid var(--border);
  height: 100vh; position: fixed; left: 0; top: 0; z-index: 100;
  display: flex; flex-direction: column; padding: 32px 16px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}

.sidebar-logo {
  padding: 0 8px 32px;
}
.sidebar-logo .logo-mark {
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--claude-coral), var(--claude-coral-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);
}
.logo-text { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.logo-text span { color: var(--claude-coral); }

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.nav-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--text-muted); text-transform: uppercase;
  padding: 12px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
  cursor: pointer; text-decoration: none;
}
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active {
  background: rgba(217,119,87,0.12);
  color: var(--claude-coral);
  border-left: 2px solid var(--claude-coral);
}
.nav-item .nav-icon { font-size: 17px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-card); cursor: pointer;
  transition: var(--transition);
}
.user-pill:hover { background: var(--bg-elevated); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--claude-coral), var(--claude-coral-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; flex-shrink: 0;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.user-info .name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-info .email { font-size: 11px; color: var(--text-muted); }

/* ── Main Content ── */
.main-content { flex: 1; margin-left: 280px; min-height: 100vh; background: transparent; min-width: 0; }
.topbar {
  height: 80px; border-bottom: 1px solid var(--border); display: flex;
  align-items: center; justify-content: space-between; padding: 0 40px;
  position: sticky; top: 0; z-index: 90; background: rgba(10, 10, 15, 0.8);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.topbar-left h2 { font-size: 20px; font-weight: 700; }
.topbar-left p { font-size: 12px; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.page-body { padding: 32px; flex: 1; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.card:hover { border-color: var(--border-accent); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.card-subtitle { font-size: 13px; color: var(--text-muted); }

/* ── Stat Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--claude-coral), transparent);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-accent); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.stat-change { font-size: 12px; margin-top: 6px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }
.stat-icon {
  position: absolute; top: 20px; right: 20px;
  font-size: 32px; opacity: 0.15;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px; gap: 8px; text-decoration: none;
}
.btn-primary { 
  background: linear-gradient(135deg, var(--claude-coral), var(--claude-coral-dark)); 
  color: white; box-shadow: 0 4px 15px rgba(217, 119, 87, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217, 119, 87, 0.5); }
.btn-secondary { 
  background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); 
}
.btn-secondary:hover { background: var(--border); border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 14px; font-family: inherit;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--claude-coral); box-shadow: 0 0 0 3px rgba(217,119,87,0.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-elevated); }
tbody td { padding: 14px 16px; font-size: 14px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-yellow { background: rgba(245,158,11,0.15); color: var(--yellow); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.badge-coral { background: rgba(217,119,87,0.15); color: var(--claude-coral); }
.badge-muted { background: var(--bg-elevated); color: var(--text-muted); }

/* ── Progress Bar ── */
.progress { height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--claude-coral), var(--claude-coral-light));
  border-radius: 3px; transition: width 0.5s ease;
}
.progress-bar.green { background: linear-gradient(90deg, var(--green), #4ADE80); }

/* ── Alerts ── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 20px; border-left: 3px solid;
}
.alert-error { background: var(--red-dim); border-color: var(--red); color: #FCA5A5; }
.alert-success { background: var(--green-dim); border-color: var(--green); color: #86EFAC; }
.alert-info { background: rgba(59,130,246,0.1); border-color: var(--blue); color: #93C5FD; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: var(--yellow); color: #FCD34D; }

/* ── AI Insight Box ── */
.ai-insight {
  background: linear-gradient(135deg, rgba(217,119,87,0.08), rgba(217,119,87,0.03));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.ai-insight::before {
  content: ''; position: absolute;
  inset: 0; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top left, rgba(217,119,87,0.12), transparent 70%);
  pointer-events: none;
}
.ai-insight:hover { border-color: var(--claude-coral); box-shadow: var(--shadow-coral); }
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(217,119,87,0.15);
  color: var(--claude-coral); border-radius: 100px;
  padding: 4px 12px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px;
}
.ai-badge::before { content: '●'; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.ai-content { font-size: 14px; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; }
.ai-content strong, .ai-content b { color: var(--text-primary); font-weight: 600; }

/* ── Market Ticker ── */
.ticker-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px 0; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.ticker-symbol { color: var(--text-primary); font-weight: 700; }
.ticker-price { color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }

/* ── Plan Cards ── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px; position: relative;
  transition: var(--transition); display: flex; flex-direction: column;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-accent); }
.plan-card.featured {
  border-color: var(--claude-coral);
  background: linear-gradient(160deg, rgba(217,119,87,0.06), var(--bg-card));
}
.plan-featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--claude-coral), var(--claude-coral-dark));
  color: white; padding: 4px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.plan-roi {
  font-size: 48px; font-weight: 800;
  background: linear-gradient(135deg, var(--claude-coral), var(--claude-coral-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.plan-roi-label { font-size: 13px; color: var(--text-muted); }
.plan-features { list-style: none; margin: 20px 0; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); padding: 6px 0; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.risk-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; display: inline-block; }
.risk-low { background: var(--green-dim); color: var(--green); }
.risk-medium { background: rgba(59,130,246,0.15); color: var(--blue); }
.risk-high { background: rgba(245,158,11,0.15); color: var(--yellow); }
.risk-very_high { background: var(--red-dim); color: var(--red); }

/* ── Investment Progress ── */
.investment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 16px;
}
.investment-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.investment-name { font-size: 16px; font-weight: 700; }
.investment-amount { font-size: 20px; font-weight: 800; color: var(--claude-coral); }
.investment-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* ── Notifications ── */
.market-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.market-header-main .market-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.market-header-main .market-subtitle { color: var(--text-muted); font-size: 14px; }
.market-header-stats { display: flex; gap: 32px; align-items: center; }
.h-stat { display: flex; flex-direction: column; }
.h-stat .label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.h-stat .value { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--green); background: rgba(34,197,94,0.1); padding: 4px 10px; border-radius: 20px; }
.notif-dot {
  width: 8px; height: 8px; background: var(--claude-coral);
  border-radius: 50%; display: inline-block;
  animation: pulse 2s infinite;
}
.notif-count {
  background: var(--claude-coral); color: white;
  border-radius: 100px; padding: 1px 7px;
  font-size: 11px; font-weight: 700;
}

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px; min-width: 280px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--claude-coral); }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px; max-width: 520px; width: 100%;
  transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px; }
.modal-close:hover { color: var(--text-primary); }

/* ── Charts ── */
.chart-container { position: relative; height: 220px; }

/* ── Landing specific ── */
.landing-hero {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217,119,87,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 80%, rgba(217,119,87,0.06) 0%, transparent 60%);
  display: flex; align-items: center;
  padding: 120px 40px 80px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; line-height: 1.1; margin-bottom: 24px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--claude-coral), var(--claude-coral-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin-bottom: 40px; line-height: 1.7; }
/* ── Pro Market Cards ── */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.market-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: var(--transition); display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.market-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow); }
.market-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  transform: translateX(-100%); transition: 0.5s;
}
.market-card:hover::before { transform: translateX(100%); }

.market-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.asset-symbol-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.asset-symbol { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.asset-network { font-size: 10px; font-weight: 700; color: var(--blue); background: rgba(59,130,246,0.1); padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.asset-name { font-size: 13px; color: var(--text-muted); }

.asset-price-box { text-align: right; }
.asset-price { font-size: 22px; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: var(--text-primary); margin-bottom: 2px; }
.asset-change { font-size: 12px; font-weight: 700; }
.asset-change.up { color: var(--green); }
.asset-change.down { color: var(--red); }

.market-card-chart { height: 80px; margin: 0 -8px 20px; position: relative; }
.market-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-item .label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.stat-item .value { font-size: 13px; font-weight: 700; color: var(--text-secondary); }

.market-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Market Header ── */
.market-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.market-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.market-subtitle { color: var(--text-muted); font-size: 14px; }
.market-header-stats { display: flex; gap: 32px; align-items: center; }
.h-stat { display: flex; flex-direction: column; }
.h-stat .label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.h-stat .value { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--green); background: rgba(34,197,94,0.1); padding: 4px 10px; border-radius: 20px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stat { text-align: left; }
.stats-row { display: flex; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat-value { font-size: 32px; font-weight: 800; color: var(--claude-coral); line-height: 1.2; }
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.section-padding { padding: 100px 0; }
@media (max-width: 600px) { .section-padding { padding: 60px 0; } }
.section-header { text-align: center; margin-bottom: 64px; padding: 0 24px; }
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); font-size: 17px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.hero-container { display: flex; align-items: center; }
.hero-content { max-width: 720px; }

@media (max-width: 900px) {
  .section-padding { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .hero-container { justify-content: center; text-align: center; }
}

.nav-landing {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px); background: rgba(13,13,18,0.8);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) {
  .nav-landing { padding: 12px 16px; }
  .nav-landing .logo-text { display: none; } 
  .nav-landing .hide-mobile { display: none !important; }
}

/* ── Auth pages ── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 60% at 30% 40%, rgba(217,119,87,0.08) 0%, transparent 70%),
              var(--bg-primary);
  padding: 40px 20px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Toggle Switch ── */
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: var(--bg-elevated); transition: .4s;
  border: 1px solid var(--border); border-radius: 20px;
}
.slider:before {
  position: absolute; content: ""; height: 14px; width: 14px;
  left: 2px; bottom: 2px; background-color: var(--text-muted);
  transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--claude-coral-dark); }
input:checked + .slider:before { transform: translateX(14px); background-color: white; }

/* ── Responsive & Mobile First ── */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

/* Mobile Navigation Bar (Bottom) */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 65px;
  background: var(--bg-card); border-top: 1px solid var(--border);
  z-index: 1000; padding: 0 10px; box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text-muted); gap: 2px; transition: 0.2s;
}

.mobile-nav-item span { font-size: 20px; }
.mobile-nav-item small { font-size: 10px; font-weight: 500; }
.mobile-nav-item.active { color: var(--claude-coral); }

.mobile-nav-center {
  width: 48px; height: 48px; background: linear-gradient(135deg, var(--claude-coral), var(--claude-coral-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-top: -30px; box-shadow: 0 4px 15px rgba(217,119,87,0.4);
  color: white; font-size: 22px; border: 4px solid var(--bg-card);
}

/* ── Layout Utilities ── */
.grid-stack { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px; }
.hide-mobile { display: block; }
.show-mobile { display: none; }

/* Fix Sidebar for mobile */
.sidebar { z-index: 2000; }
.sidebar-overlay { 
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; 
  display: none; backdrop-filter: blur(4px); 
}
.sidebar.open + .sidebar-overlay { display: block; }

/* ── Advanced Responsiveness ── */
@media (max-width: 1200px) {
  .grid-stack { grid-template-columns: 1fr; }
  .landing-hero { padding: 100px 24px 60px; text-align: center; justify-content: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .stats-row { justify-content: center; gap: 32px; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: 280px; transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,0.6); }
  .main-content { margin-left: 0 !important; width: 100% !important; }
  .topbar { padding: 0 16px; height: 64px; }
  .page-body { padding: 16px; }
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
  section { padding: 60px 20px !important; }
  .hero-title { font-size: 42px; }
  .plans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .mobile-nav { display: flex; }
  .main-content { padding-bottom: 90px; } /* Room for bottom nav */
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .topbar .nav-actions, .topbar .topbar-right #market-status { display: none; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 20px; }
  .ticker-bar { height: 40px; }
  .ticker-item { font-size: 11px; }
  
  /* Market Page specific mobile */
  .market-grid { grid-template-columns: 1fr; gap: 16px; }
  .market-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .market-header-stats { width: 100%; justify-content: space-between; }
}

.app-footer {
  padding: 40px 24px; text-align: center; border-top: 1px solid var(--border);
  background: var(--bg-secondary); margin-top: 40px;
}
.plan-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 20px; }
.plan-detail-header .plan-roi { text-align: right; white-space: nowrap; }
@media (max-width: 500px) {
  .plan-detail-header { flex-direction: column; align-items: flex-start; }
  .plan-detail-header .plan-roi { text-align: left; }
}

.asset-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
@media (max-width: 600px) {
  .asset-detail-header { flex-direction: column; gap: 16px; }
  .chart-container { height: 240px !important; }
}

@media (max-width: 900px) { .app-footer { padding: 32px 24px 100px; } }

@media (max-width: 400px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .nav-landing { padding: 10px 12px; }
  .nav-landing .btn-sm { padding: 6px 10px; font-size: 11px; }
}

html, body { overflow-x: hidden; width: 100%; position: relative; max-width: 100vw; }

/* ── Portfolio Pro Layout ── */
.section-header-compact { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.section-title-sm { font-size: 18px; font-weight: 800; color: var(--text-primary); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr; } }

.pro-investment-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: var(--transition); display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.pro-investment-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-coral); }
.pro-investment-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--claude-coral), var(--claude-coral-dark));
}

.pro-card-header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.strategy-badge { 
  display: inline-block; font-size: 10px; font-weight: 800; color: var(--claude-coral); 
  background: rgba(217,119,87,0.1); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
  letter-spacing: 1px;
}
.strategy-name { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.strategy-timer { font-size: 12px; color: var(--text-muted); }

.strategy-value { text-align: right; }
.val-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.val-amount { font-size: 24px; font-weight: 800; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }
.val-accrued { font-size: 12px; color: var(--green); font-weight: 700; }

.pro-card-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  background: var(--bg-elevated); padding: 20px; border-radius: var(--radius);
  margin-bottom: 24px; border: 1px solid var(--border);
}
.pro-stat { display: flex; flex-direction: column; gap: 4px; }
.pro-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.pro-value { font-size: 14px; font-weight: 700; color: var(--text-primary); }

.pro-card-progress { margin-bottom: 24px; }
.pro-progress { height: 10px; background: var(--bg-primary); border-radius: 10px; border: 1px solid var(--border); }
.pro-bar { 
  background: linear-gradient(90deg, var(--claude-coral), var(--claude-coral-light)); 
  box-shadow: 0 0 10px rgba(217,119,87,0.4);
}

.pro-card-footer { display: flex; gap: 12px; }

.pro-table thead th { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.pro-table td { vertical-align: middle; }

/* ── Dashboard Enhancements ── */
.stack-main { display: flex; flex-direction: column; }
.stack-side { display: flex; flex-direction: column; }

.view-all { font-size: 12px; color: var(--claude-coral); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.view-all:hover { text-decoration: underline; }

.list-container { display: flex; flex-direction: column; gap: 16px; }
.list-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.list-item.compact { padding: 8px 0; }

.tx-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.tx-icon.deposit { background: var(--green-dim); color: var(--green); }
.tx-icon.withdrawal { background: var(--red-dim); color: var(--red); }
.tx-icon.investment { background: rgba(217,119,87,0.15); color: var(--claude-coral); }

.status-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-top: 4px; }
.status-completed { background: var(--green-dim); color: var(--green); }
.status-pending { background: rgba(245,158,11,0.15); color: var(--yellow); }

.live-pulse { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; color: var(--green); }
.pulse-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 rgba(34,197,94, 0.4); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(34,197,94, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94, 0); } }

.activity-pill { 
  display: flex; justify-content: space-between; align-items: center; 
  padding: 12px; background: var(--bg-elevated); border-radius: var(--radius); 
  border: 1px solid var(--border); transition: var(--transition);
}
.activity-pill:hover { border-color: var(--border-accent); transform: scale(1.02); }
.act-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 14px; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action-btn { 
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition); text-align: center;
}
.action-btn:hover { background: var(--bg-card-hover); border-color: var(--claude-coral); transform: translateY(-2px); }
.action-btn .icon { font-size: 20px; }
.action-btn span { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.action-btn.primary { background: linear-gradient(135deg, rgba(217,119,87,0.1), rgba(217,119,87,0.05)); border-color: var(--border-accent); }
.action-btn.primary span { color: var(--claude-coral); }

.leader-item { 
  display: flex; align-items: center; gap: 12px; padding: 10px; 
  background: var(--bg-elevated); border-radius: var(--radius); 
}
.leader-item .rank { 
  width: 24px; height: 24px; background: var(--claude-coral-dark); color: white; 
  border-radius: 50%; display: flex; align-items: center; justify-content: center; 
  font-size: 11px; font-weight: 800; 
}
.roi-tag { background: var(--green-dim); color: var(--green); padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 700; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.news-date { font-size: 10px; color: var(--text-muted); }
.news-excerpt { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
