/* =============================================================
   GrowExchange v3 — Premium Design System
   Dark Trading Platform UI | No build step
   ============================================================= */

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

:root {
  /* === PALETTE === */
  --bg:              #05060a;
  --bg-alt:          #090b11;
  --bg-card:         #0d1018;
  --bg-raised:       #121520;
  --bg-hover:        #171b25;
  --bg-active:       #1d2232;

  --border:          rgba(255,255,255,0.06);
  --border-soft:     rgba(255,255,255,0.03);
  --border-bright:   rgba(255,255,255,0.12);

  /* Market colors */
  --green:           #00e5a0;
  --green-glow:      rgba(0,229,160,0.15);
  --green-border:    rgba(0,229,160,0.25);
  --red:             #ff4060;
  --red-glow:        rgba(255,64,96,0.15);
  --red-border:      rgba(255,64,96,0.25);
  --gold:            #f5c518;
  --gold-glow:       rgba(245,197,24,0.15);
  --gold-border:     rgba(245,197,24,0.3);
  --blue:            #5b9cf6;
  --blue-glow:       rgba(91,156,246,0.15);

  /* Text */
  --text-1:          #f0f2f5;
  --text-2:          #8b949e;
  --text-3:          #4d5666;
  --text-4:          #2e3340;

  /* Buttons */
  --btn-primary:     #f0f2f5;
  --btn-primary-txt: #05060a;
  --btn-primary-hover: #ffffff;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --max-w:      1320px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.5);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 24px rgba(0,229,160,0.1);

  /* Transitions */
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --duration:   180ms;
}

/* ============================================================= */
/* RESET                                                          */
/* ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { margin: 0; line-height: 1.2; font-family: var(--font-display); }
p { margin: 0; }
button, input, select, textarea { font-family: var(--font-body); }

::selection { background: rgba(0,229,160,0.2); color: #fff; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-raised); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================= */
/* UTILITIES                                                       */
/* ============================================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 36px; } }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold); }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--text-2); }
.text-dim    { color: var(--text-3); }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Animated gradient grid bg */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Glow orbs for hero */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.4;
}

/* ============================================================= */
/* HEADER                                                          */
/* ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5,6,10,0.88);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  width: 32px;
  height: 32px;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

.logo__text span { color: var(--gold); }

.nav-links {
  display: none;
  gap: 2px;
}

@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav-links a:hover { color: var(--text-1); background: var(--bg-raised); }
.nav-links a.active { color: var(--text-1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Live indicator */
.live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
  padding: 0 10px;
}

.live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--duration);
}

.hamburger:hover { background: var(--bg-raised); }
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration);
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--duration), background var(--duration);
}
.mobile-nav a:hover { color: var(--text-1); background: var(--bg-raised); }

/* ============================================================= */
/* BUTTONS                                                         */
/* ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform 80ms;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--btn-primary);
  color: var(--btn-primary-txt);
  border-color: transparent;
}
.btn-primary:hover { background: var(--btn-primary-hover); box-shadow: 0 0 20px rgba(240,242,245,0.15); }

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text-1);
  border-color: var(--border-bright);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: rgba(255,255,255,0.18); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-1); background: var(--bg-raised); }

.btn-green {
  background: var(--green);
  color: #05060a;
  border-color: transparent;
}
.btn-green:hover { background: #00ffb2; box-shadow: 0 0 20px var(--green-glow); }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: var(--radius-lg); }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================= */
/* HERO                                                            */
/* ============================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

@media (min-width: 768px) { .hero { padding: 120px 0 140px; } }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-1);
  margin-bottom: 20px;
}

.hero__title .accent { color: var(--green); }

.hero__desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1;
}

.stat__label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================= */
/* SECTION                                                         */
/* ============================================================= */
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--border { border-top: 1px solid var(--border); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.link-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--duration);
}
.link-arrow:hover { color: var(--text-1); }

/* ============================================================= */
/* CARDS & PANELS                                                  */
/* ============================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-md); }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================= */
/* TICKER / CURRENCY CARDS                                         */
/* ============================================================= */
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ticker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              transform 150ms var(--ease);
  position: relative;
  overflow: hidden;
}
.ticker-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-color, var(--gold));
  opacity: 0;
  transition: opacity var(--duration);
}
.ticker-card:hover { border-color: var(--border-bright); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ticker-card:hover::before { opacity: 1; }

.ticker-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.currency-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.currency-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1);
}

.currency-code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.ticker-price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 6px;
}

.ticker-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.ticker-change.up   { background: var(--green-glow); color: var(--green); border: 1px solid var(--green-border); }
.ticker-change.down { background: var(--red-glow);   color: var(--red);   border: 1px solid var(--red-border); }
.ticker-change.flat { background: var(--bg-raised);  color: var(--text-3); border: 1px solid var(--border); }

/* Mini chart area */
.ticker-mini-chart {
  margin-top: 16px;
  height: 48px;
  position: relative;
}

/* ============================================================= */
/* DATA TABLE                                                      */
/* ============================================================= */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--duration);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-raised); }
tbody tr.clickable { cursor: pointer; }

td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-1);
  white-space: nowrap;
}

/* ============================================================= */
/* BADGES                                                          */
/* ============================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge--trusted { background: rgba(91,156,246,0.12); color: var(--blue); border: 1px solid rgba(91,156,246,0.25); }
.badge--vip { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--gold-border); }
.badge--none { background: var(--bg-raised); color: var(--text-3); border: 1px solid var(--border); }

.rarity-badge {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rarity-common    { background: rgba(138,145,158,0.15); color: #8a919e; }
.rarity-uncommon  { background: rgba(0,229,160,0.1);   color: var(--green); }
.rarity-rare      { background: rgba(91,156,246,0.12); color: var(--blue); }
.rarity-epic      { background: rgba(171,107,255,0.12); color: #ab6bff; }
.rarity-legendary { background: var(--gold-glow);       color: var(--gold); }
.rarity-mythic    { background: rgba(255,64,96,0.12);   color: var(--red); }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

/* ============================================================= */
/* SELLER CARD                                                     */
/* ============================================================= */
.seller-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--duration);
  cursor: pointer;
}
.seller-card:last-child { border-bottom: none; }
.seller-card:hover { background: var(--bg-raised); }

.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }

.seller-info { flex: 1; min-width: 0; }
.seller-name { font-weight: 600; font-size: 14px; color: var(--text-1); }
.seller-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.seller-stats { text-align: right; flex-shrink: 0; }
.reputation-score {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}
.trade-count {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============================================================= */
/* RARE ITEM ROW                                                   */
/* ============================================================= */
.rare-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--duration);
}
.rare-item-row:last-child { border-bottom: none; }
.rare-item-row:hover { background: var(--bg-raised); }

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.item-name { font-weight: 600; font-size: 14px; }
.item-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.item-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  text-align: right;
}
.item-change { font-family: var(--font-mono); font-size: 12px; text-align: right; margin-top: 2px; }

/* ============================================================= */
/* TABS                                                            */
/* ============================================================= */
.tabs {
  display: flex;
  gap: 2px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--duration), background var(--duration);
}
.tab-btn:hover { color: var(--text-2); background: var(--bg-raised); }
.tab-btn.active { color: var(--text-1); background: var(--bg-raised); }

/* ============================================================= */
/* FORMS                                                           */
/* ============================================================= */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}

.form-input, .form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration);
  appearance: none;
}

.form-input::placeholder { color: var(--text-4); }

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-input.error { border-color: var(--red); }
.form-input.error:focus { box-shadow: 0 0 0 3px var(--red-glow); }

.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.form-error {
  padding: 10px 14px;
  background: var(--red-glow);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 13px;
  margin-bottom: 16px;
}

.form-success {
  padding: 10px 14px;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  color: var(--green);
  font-size: 13px;
  margin-bottom: 16px;
}

/* Password strength bar */
.pwd-strength { margin-top: 8px; }
.pwd-strength__bar {
  height: 3px;
  border-radius: 2px;
  background: var(--bg-active);
  overflow: hidden;
}
.pwd-strength__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 300ms var(--ease), background 300ms;
}
.pwd-strength__label { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ============================================================= */
/* AUTH PAGE                                                       */
/* ============================================================= */
.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-card--wide { max-width: 540px; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-card h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 6px;
}

.auth-subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--text-4);
  text-transform: lowercase;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 16px; }
.auth-footer a { color: var(--text-1); font-weight: 600; }
.auth-footer a:hover { color: var(--green); }

/* ============================================================= */
/* DASHBOARD                                                       */
/* ============================================================= */
.page-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-title { font-size: clamp(22px, 4vw, 32px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 4px; }
.page-sub   { font-size: 14px; color: var(--text-3); }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .dash-grid { grid-template-columns: 1fr 340px; }
}

/* ============================================================= */
/* FEATURES GRID                                                   */
/* ============================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--duration);
}
.feature-card:hover { border-color: var(--border-bright); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.feature-desc  { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ============================================================= */
/* FOOTER                                                          */
/* ============================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
}

.footer-brand p { font-size: 13px; color: var(--text-3); margin-top: 14px; max-width: 260px; line-height: 1.7; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 10px;
  transition: color var(--duration);
}
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-4);
}

/* ============================================================= */
/* LOADING / SKELETON                                              */
/* ============================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-hover) 50%, var(--bg-raised) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 140px;
  border-radius: var(--radius-lg);
}

.skeleton-row {
  height: 60px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-bright);
  border-top-color: var(--text-1);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================= */
/* EMPTY STATE                                                     */
/* ============================================================= */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  font-size: 14px;
}
.empty-state__icon { font-size: 36px; margin-bottom: 12px; }
.empty-state__title { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }

/* ============================================================= */
/* TOAST NOTIFICATIONS                                             */
/* ============================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  pointer-events: auto;
  animation: toast-in 300ms var(--ease);
  max-width: 320px;
}

.toast.success { border-color: var(--green-border); }
.toast.error   { border-color: var(--red-border); }
.toast.info    { border-color: rgba(91,156,246,0.3); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================= */
/* CHART AREA                                                      */
/* ============================================================= */
.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
}

/* ============================================================= */
/* MISC                                                            */
/* ============================================================= */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Country flag emoji helper */
.flag { font-size: 16px; line-height: 1; }

/* Price change helper */
.change-up   { color: var(--green); }
.change-down { color: var(--red); }
.change-flat { color: var(--text-3); }
