/* ================================================================
   Mike's Journey — Aurora Platform
   Design: Deep space dark, aurora gradients, premium glass cards
   ================================================================ */

:root {
  --bg:          #070b18;
  --bg2:         #0d1327;
  --card:        #111827;
  --card2:       #161e30;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(79,142,247,0.2);
  --blue:        #3b82f6;
  --indigo:      #6366f1;
  --teal:        #14b8a6;
  --gold:        #f59e0b;
  --green:       #10b981;
  --red:         #ef4444;
  --text:        #f1f5f9;
  --muted:       #94a3b8;
  --dim:         #475569;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Aurora animated background ─────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: auroraFloat 18s ease-in-out infinite alternate;
}
.aurora-bg::before {
  background: radial-gradient(circle, #3b82f6, #6366f1);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}
.aurora-bg::after {
  background: radial-gradient(circle, #14b8a6, #6366f1);
  bottom: -200px;
  right: -100px;
  animation-delay: -9s;
}
@keyframes auroraFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.1); }
}

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted); }

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #6366f1, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-text { color: var(--gold); }
.green-text { color: var(--green); }
.red-text   { color: var(--red); }

/* ─── Layout ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(7,11,24,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.logo span { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.5);
}
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,158,11,0.5);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-outline:hover { background: var(--card); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); background: var(--card); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── Cards ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-glass {
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-glow {
  box-shadow: 0 0 40px rgba(59,130,246,0.1),
              inset 0 1px 0 rgba(255,255,255,0.05);
}
.card-gold {
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 30px rgba(245,158,11,0.08);
}

/* ─── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-green  { background: rgba(16,185,129,0.15); color: #10b981; }
.badge-red    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.badge-blue   { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-gold   { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-muted  { background: rgba(148,163,184,0.1); color: var(--muted); }

/* ─── Forms ────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
input, select, textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
textarea { resize: vertical; min-height: 100px; }

/* ─── Stats ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--card2);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ─── Ticker bar ────────────────────────────────────────── */
.ticker-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 40px;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  white-space: nowrap;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Pricing cards ─────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--card);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245,158,11,0.05), var(--card));
  box-shadow: 0 0 40px rgba(245,158,11,0.1);
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.pricing-card .price span { font-size: 1rem; color: var(--muted); }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.pricing-feature .icon { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.pricing-feature .icon.no { color: var(--dim); }

/* ─── Trade card ────────────────────────────────────────── */
.trade-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.trade-card:hover { border-color: var(--border2); }
.trade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.trade-ticker {
  font-weight: 700;
  font-size: 1rem;
  font-family: monospace;
}
.trade-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pnl {
  font-weight: 700;
  font-size: 1.1rem;
}
.pnl.positive { color: var(--green); }
.pnl.negative { color: var(--red); }

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}
.tab-btn:hover { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Range slider ───────────────────────────────────────── */
.range-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.range-group .range-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.range-group .range-header span { color: var(--text); font-weight: 700; }
input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}

/* ─── Alert ──────────────────────────────────────────────── */
.alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-info    { background: rgba(59,130,246,0.1);  border-left: 3px solid var(--blue);  color: #93c5fd; }
.alert-success { background: rgba(16,185,129,0.1);  border-left: 3px solid var(--green); color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,0.1);  border-left: 3px solid var(--gold);  color: #fde68a; }
.alert-danger  { background: rgba(239,68,68,0.1);   border-left: 3px solid var(--red);   color: #fca5a5; }

/* ─── Utility ────────────────────────────────────────────── */
.flex   { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 4px;  }
.mt-2 { margin-top: 8px;  }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.mono { font-family: monospace; }
.small { font-size: 0.82rem; color: var(--muted); }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.pill {
  display: inline-block;
  background: rgba(99,102,241,0.15);
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Loading spinner ────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }

/* ─── Sidebar layout ─────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 20px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-decoration: none;
}
.sidebar-logo span { -webkit-text-fill-color: var(--gold); }
.sidebar-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding: 8px 20px;
  margin-top: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-link.active { color: var(--text); background: rgba(59,130,246,0.1); }
.sidebar-link .icon { width: 18px; text-align: center; }
.main-content {
  padding: 32px;
  overflow-y: auto;
}

/* ─── Page header ────────────────────────────────────────── */
.page-header {
  margin-bottom: 32px;
}
.page-header h1 { font-size: 1.75rem; margin-bottom: 4px; }
.page-header p  { color: var(--muted); font-size: 0.9rem; }

/* ─── Mobile responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .main-content {
    padding: 20px 16px;
  }
  .nav-links { display: none; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
