/* ========================================
   FXDock - Trading Intelligence API
   Complete Stylesheet
   ======================================== */

:root {
  /* Background - Warm, soft dark tones */
  --bg: #1c1917;
  --bg-card: #292524;
  --bg-hover: #3a3533;
  --bg-input: #1a1816;

  /* Borders - More visible */
  --border: #44403c;
  --border-light: #57534e;

  /* Text - Cream toned, readable */
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --text-dim: #78716c;

  /* Accent - Claude orange/amber */
  --accent: #d97706;
  --accent-hover: #f59e0b;
  --accent-dim: rgba(217, 119, 6, 0.12);
  --accent-glow: rgba(217, 119, 6, 0.2);
  --cyan: #22d3ee;

  /* Status Colors */
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --purple: #a78bfa;

  /* Radius - More rounded, modern */
  --radius: 10px;
  --radius-lg: 16px;
  --sidebar-width: 260px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(217, 119, 6, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.bg-orbit {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.08);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-sm { max-width: 600px; }
.container-lg { max-width: 1200px; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 48px; letter-spacing: -0.03em; }
h2 { font-size: 32px; letter-spacing: -0.02em; }
h3 { font-size: 20px; }

.section-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
}

.page-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.page-subtitle { color: var(--text-muted); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-light); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { filter: brightness(1.1); }

.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--border-light); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:hover { border-color: var(--border-light); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 16px; font-weight: 700; }

/* Split Layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-accent { background: var(--accent-dim); border: 1px solid rgba(217, 119, 6, 0.25); color: var(--accent); }
.badge-red { background: var(--red-dim); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--red); }
.badge-yellow { background: var(--yellow-dim); border: 1px solid rgba(251, 191, 36, 0.2); color: var(--yellow); }
.badge-blue { background: var(--blue-dim); border: 1px solid rgba(59, 130, 246, 0.2); color: var(--blue); }
.badge-green { background: var(--green-dim); border: 1px solid rgba(34, 197, 94, 0.2); color: var(--green); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(28, 25, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand svg { opacity: 0.9; }
.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-mobile-toggle { display: none; background: none; border: none; color: var(--text); padding: 8px; }

/* Hero */
.hero { padding: 140px 0 60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.kicker .dot,
.kdot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }

.hero h1 { margin-bottom: 16px; }
.hero .sub { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; max-width: 420px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat .ico {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat b { display: block; font-size: 16px; font-weight: 700; }
.stat span { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

.stats-row { display: flex; gap: 32px; }

.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-item .ico {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-item b { display: block; font-size: 16px; font-weight: 700; }
.stat-item span { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* Code Blocks */
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.dots { display: flex; gap: 6px; }
.dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.dots .r { background: #ff5f57; }
.dots .y { background: #febc2e; }
.dots .g { background: #28c840; }

.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots .r { background: #ff5f57; }
.code-dots .y { background: #febc2e; }
.code-dots .g { background: #28c840; }

.code-copy {
  padding: 5px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.code-copy:hover { color: var(--text); border-color: var(--border-light); }

.code-card pre {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}
.code-card code { color: var(--text-muted); }

.hl-accent { color: #f59e0b; }
.hl-purple { color: #c4b5fd; }
.hl-yellow { color: #fcd34d; }
.hl-blue { color: #93c5fd; }
.hl-green { color: #86efac; }
.hl-comment { color: var(--text-dim); font-style: italic; }
.hl1 { color: #f59e0b; }
.hl2 { color: #93c5fd; }
.hl3 { color: #fcd34d; }
.hl4 { color: #c4b5fd; }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }

.tab {
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--bg-hover); color: var(--text); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Pricing Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.plan-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  position: relative;
}

.plan-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.plan-card.popular { border-color: var(--accent); }

.plan-card .plan-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.plan-name { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.plan-price .suffix { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan-features { margin: 20px 0; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); padding: 8px 0; }
.plan-features li::before { content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* How It Works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
}

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step-card { padding: 28px; }
.step-card .num {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* Status */
.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.status-item:last-child { border-bottom: none; }
.status-item .name { font-weight: 600; }

.status-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.status-indicator .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-indicator.operational .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-indicator.operational { color: var(--green); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-question:hover { color: var(--accent); }
.faq-question svg { transition: transform 0.2s; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }

.faq-answer { display: none; padding-bottom: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* Auth Page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 24px; font-weight: 800; margin-bottom: 32px; }
.auth-logo span { color: var(--accent); }

.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: #fafaf9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #1c1917;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.google-btn:hover {
  background: #fff;
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.auth-terms { margin-top: 24px; font-size: 12px; color: var(--text-dim); }
.auth-terms a { color: var(--text-muted); text-decoration: underline; }

/* Dashboard Layout */
.dashboard { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.3s;
}

.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }

.sidebar-section { margin-bottom: 24px; }
.sidebar-section-title { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; padding: 0 12px; margin-bottom: 8px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-hover); }
.sidebar-link.active { color: var(--accent); background: var(--accent-dim); }
.sidebar-link svg { width: 18px; height: 18px; opacity: 0.7; }
.sidebar-link.active svg { opacity: 1; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }

.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius); }
.sidebar-user:hover { background: var(--bg-hover); }

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-email { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-logout-form { width: 100%; }
button.sidebar-user { width: 100%; background: none; border: none; cursor: pointer; text-align: left; color: inherit; font-family: inherit; }

.dashboard-main { flex: 1; margin-left: var(--sidebar-width); padding: 32px; }
.dashboard-header { margin-bottom: 32px; }

/* Dashboard Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-card .label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 800; }
.stat-card .value.accent { color: var(--accent); }
.stat-card .change { font-size: 12px; margin-top: 8px; }
.stat-card .change.up { color: var(--accent); }
.stat-card .change.down { color: var(--red); }
.stat-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-hover); border-radius: var(--radius); flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; stroke: var(--cyan); }
.stat-content { flex: 1; }
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 800; }

/* API Key Card */
.api-key-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.api-key-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }

.api-key-value {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
.api-key-value code { flex: 1; color: var(--accent); }
.api-key-actions { display: flex; gap: 8px; margin-top: 16px; }

/* Table */
.table-wrapper { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.table tr:hover td { background: var(--bg-hover); }
.table .mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; }

/* Deposit */
.network-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }

.network-option {
  padding: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.network-option:hover { border-color: var(--border-light); }
.network-option.selected { border-color: var(--accent); background: var(--accent-dim); }
.network-option .name { font-weight: 700; margin-bottom: 4px; }
.network-option .info { font-size: 12px; color: var(--text-dim); }

/* Package Options */
.package-option {
  display: block;
  cursor: pointer;
}
.package-option input[type="radio"] {
  display: none;
}
.package-card {
  padding: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}
.package-card:hover {
  border-color: var(--border-light);
}
.package-option input[type="radio"]:checked + .package-card {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.package-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.package-card span {
  font-size: 12px;
  color: var(--text-dim);
}

.wallet-address {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 20px;
}
.wallet-address .label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 8px; }
.wallet-address .address { font-family: 'JetBrains Mono', monospace; font-size: 13px; word-break: break-all; color: var(--accent); }

.qr-code { display: flex; justify-content: center; padding: 24px; background: white; border-radius: var(--radius); margin-top: 20px; }

/* Brokers */
.broker-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  transition: all 0.2s;
}
.broker-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.broker-card.recommended { border-color: var(--accent); }

.broker-logo {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.broker-info { flex: 1; }
.broker-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.broker-features { font-size: 13px; color: var(--text-muted); }

/* Footer */
footer { padding: 24px 0; border-top: 1px solid var(--border); position: relative; z-index: 1; }

.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-dim); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* Section */
.section { padding: 80px 0; position: relative; z-index: 1; }
.page-section { padding: 120px 0 80px; }

/* CTA */
.cta {
  text-align: center;
  padding: 48px;
  margin-top: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cta h3 { font-size: 24px; margin-bottom: 12px; }
.cta p { color: var(--text-muted); margin-bottom: 24px; }

.cta-card {
  text-align: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cta-card h3 { font-size: 24px; margin-bottom: 12px; }
.cta-card p { color: var(--text-muted); margin-bottom: 24px; }

/* Mobile Header (Dashboard) */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
}

/* Alert */
.alert {
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-warning { background: var(--yellow-dim); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--yellow); }
.alert-danger { background: var(--red-dim); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--red); }
.alert-success { background: var(--accent-dim); border: 1px solid rgba(0, 212, 170, 0.3); color: var(--accent); }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .code-card { margin-top: 32px; }
  .stats-row { flex-wrap: wrap; gap: 20px; }
  .how-grid { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }

  /* Dashboard mobile */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .dashboard-main { margin-left: 0; padding: 20px; }
  .mobile-header { display: flex; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }

  .hero { padding: 120px 0 40px; }
  .hero-actions { flex-direction: column; }
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .split { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  .auth-card { padding: 24px; }
  .dashboard-main { padding: 16px; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-pulse { animation: pulse 2s infinite; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

::selection { background: var(--accent); color: #fff; }

/* ==========================================
   Toast Notifications
   ========================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  font-size: 14px;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show { transform: translateX(0); }

.toast-success { border-color: var(--accent); }
.toast-success .toast-message { color: var(--accent); }

.toast-error { border-color: var(--red); }
.toast-error .toast-message { color: var(--red); }

.toast-warning { border-color: var(--yellow); }
.toast-warning .toast-message { color: var(--yellow); }

.toast-info { border-color: var(--blue); }
.toast-info .toast-message { color: var(--blue); }

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color 0.2s;
}
.toast-close:hover { color: var(--text); }

/* ==========================================
   Mobile Menu (Public Pages)
   ========================================== */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open { display: flex; }

.mobile-menu-nav { display: flex; flex-direction: column; gap: 4px; }

.mobile-menu-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a.active { color: var(--text); background: var(--bg-hover); }

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-menu-actions .btn { width: 100%; justify-content: center; }

.nav-mobile-toggle.active svg line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.active svg line:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active svg line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

body.menu-open { overflow: hidden; }

/* ==========================================
   Spinner
   ========================================== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

/* ==========================================
   Focus Visible (Accessibility)
   ========================================== */
.keyboard-nav *:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.keyboard-nav .btn:focus,
.keyboard-nav .sidebar-link:focus,
.keyboard-nav .tab:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus { top: 20px; }

/* ==========================================
   Loading State
   ========================================== */
.loading { position: relative; pointer-events: none; }
.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   Additional Responsive Fixes
   ========================================== */
@media (max-width: 900px) {
  /* Billing page grid */
  .billing-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  /* Docs tabs scroll */
  .tabs { overflow-x: auto; padding-bottom: 4px; }
  .tabs::-webkit-scrollbar { height: 4px; }

  /* Table responsive */
  .table-wrapper { margin: 0 -20px; padding: 0 20px; }

  /* Toast position */
  .toast-container { left: 16px; right: 16px; top: auto; bottom: 20px; }
  .toast { transform: translateY(120%); }
  .toast.show { transform: translateY(0); }
}

@media (max-width: 480px) {
  /* Mobile menu full width buttons */
  .mobile-menu { padding: 12px 16px 20px; }

  /* Smaller stats */
  .stat-card .value { font-size: 24px; }

  /* Code blocks scroll */
  .code-card pre { font-size: 12px; }
}

/* ==========================================
   Auth Page
   ========================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}

.auth-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-container .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  text-decoration: none;
  color: var(--text);
}

.auth-container .brand span { color: var(--accent); }

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 14px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.auth-terms {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
}

.auth-terms a {
  color: var(--text-muted);
  text-decoration: underline;
}

.auth-footer {
  margin-top: 24px;
  font-size: 14px;
}

.auth-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.auth-footer a:hover { color: var(--accent); }

/* ==========================================
   Error Pages
   ========================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
  text-align: center;
}

.error-container h1 {
  font-size: 120px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 0;
}

.error-container h2 {
  font-size: 24px;
  margin: 16px 0 8px;
}

.error-container p {
  color: var(--text-muted);
  margin: 0 0 32px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-page {
  min-height: 100vh;
  padding: 120px 24px 60px;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-form .form-input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
}

.info-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.info-card a {
  color: var(--accent);
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

.info-note {
  font-size: 12px !important;
  color: var(--text-dim) !important;
  margin-top: 4px !important;
}

/* ========================================
   Payment Flow Styles
   ======================================== */

.payment-amount-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent-dim);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 100px;
  font-size: 14px;
}

.payment-amount-badge strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.wallet-address-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.wallet-address-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.wallet-address-row code {
  flex: 1;
  font-family: 'SF Mono', Monaco, monospace;
  color: var(--text);
}

.payment-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--yellow-dim);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius);
  color: var(--yellow);
  font-size: 14px;
  margin-bottom: 16px;
}

.payment-timer strong {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 16px;
}

.payment-timer.expired {
  background: var(--red-dim);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 14px;
}

.payment-status p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.8;
}

.payment-status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-status-waiting {
  background: var(--blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue);
}

.payment-status-waiting .payment-status-icon {
  background: rgba(59, 130, 246, 0.2);
}

.payment-status-checking {
  background: var(--yellow-dim);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--yellow);
}

.payment-status-checking .payment-status-icon {
  background: rgba(234, 179, 8, 0.2);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.payment-success {
  text-align: center;
  padding: 40px 20px;
}

.payment-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--green-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.payment-success h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green);
}

.payment-success p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.payment-success-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
}

.badge-lg {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* Payment Network Info */
.payment-network-info {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.network-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.network-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.network-explorer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.network-explorer a {
  color: var(--accent);
  text-decoration: none;
}

.network-explorer a:hover {
  text-decoration: underline;
}
