@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 {
  --bg: #181a20;
  --bg-surface: #0b0e11;
  --bg-card: #1e2329;
  --bg-card-hover: #2b3139;
  --border: #2b3139;
  --border-hover: #474d57;
  --green: #0ecb81;
  --red: #f6465d;
  --blue: #1890ff;
  --gold: #f0b90b;
  --gold-hover: #fcd535;
  --text: #eaecef;
  --text-secondary: #848e9c;
  --text-muted: #5e6673;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --header-height: 64px;
  --radius: 8px;
  --radius-sm: 4px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-hover); }

/* ─────────────────────────────────────────
   Header (logged-in)
   ───────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.header-left, .header-right { display: flex; align-items: center; }
.header-left { gap: 32px; }
.header-right { gap: 4px; }

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}
.logo:hover { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-chevron { font-size: 10px; opacity: 0.6; }

/* Dropdowns */
.nav-dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}
/* Ponte invisivel para o mouse atravessar o gap entre o trigger e o menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}
.dropdown-menu.right { left: auto; right: 0; }
.nav-dropdown:hover > .dropdown-menu { display: block; }

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: background 0.1s, color 0.1s;
}
.dropdown-item:hover { background: var(--bg-card-hover); color: var(--text); }

.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }

.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.user-trigger:hover { background: var(--bg-card-hover); }

.user-id { font-size: 13px; color: var(--text); font-weight: 500; }

.header-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.header-icon-link:hover { background: var(--bg-card-hover); color: var(--text); }

.ctf-trigger { font-size: 12px; color: var(--text-muted); padding: 6px 10px; }
.ctf-trigger:hover { color: var(--text-secondary); }

/* ─────────────────────────────────────────
   Main Content
   ───────────────────────────────────────── */

.content {
  margin-top: var(--header-height);
  padding: 24px;
  min-height: calc(100vh - var(--header-height));
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   Topbar
   ───────────────────────────────────────── */

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

.topbar h1 { font-size: 20px; font-weight: 600; color: var(--text); }
.topbar-actions { display: flex; gap: 12px; align-items: center; }

/* ─────────────────────────────────────────
   Cards
   ───────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--mono);
}

/* ─────────────────────────────────────────
   Grid
   ───────────────────────────────────────── */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─────────────────────────────────────────
   Tables
   ───────────────────────────────────────── */

.table-container { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

th {
  text-align: left;
  padding: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td { padding: 12px; border-bottom: 1px solid rgba(43, 49, 57, 0.5); }
tr:hover td { background: rgba(43, 49, 57, 0.3); }

/* ─────────────────────────────────────────
   Buttons
   ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1478d4; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0bb374; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #d43b50; }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); color: var(--text); }

.btn-gold { background: var(--gold); color: #181a20; font-weight: 600; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; font-weight: 600; }
.btn-text { color: var(--text-secondary); font-size: 14px; font-weight: 500; padding: 8px 16px; transition: color 0.15s; }
.btn-text:hover { color: var(--text); }

/* ─────────────────────────────────────────
   Forms
   ───────────────────────────────────────── */

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.15s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }

/* ─────────────────────────────────────────
   Badges
   ───────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono);
  line-height: 1.4;
}

.badge-green { background: rgba(14, 203, 129, 0.12); color: var(--green); }
.badge-red { background: rgba(246, 70, 93, 0.12); color: var(--red); }
.badge-blue { background: rgba(24, 144, 255, 0.12); color: var(--blue); }
.badge-gold { background: rgba(240, 185, 11, 0.12); color: var(--gold); }
.badge-gray { background: rgba(132, 142, 156, 0.12); color: var(--text-secondary); }

.team-ALPHA { background: #1a3354; color: #4da6ff; }
.team-BRAVO { background: #3a1a1a; color: #ff6b6b; }
.team-DELTA { background: #1a3a1a; color: #6bff6b; }

/* ─────────────────────────────────────────
   Flag Display
   ───────────────────────────────────────── */

.flag-value {
  font-family: var(--mono);
  background: rgba(240, 185, 11, 0.08);
  border: 1px solid rgba(240, 185, 11, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 14px;
  word-break: break-all;
}

/* ─────────────────────────────────────────
   Toasts
   ───────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 280px;
  max-width: 400px;
  animation: toastSlide 0.2s ease;
  font-size: 13px;
}

.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--blue); }
.toast-warning { border-left: 3px solid var(--gold); }

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   Banners
   ───────────────────────────────────────── */

.block-banner {
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-weight: 600;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  z-index: 900;
  font-size: 14px;
}

.timer-banner {
  background: var(--gold);
  color: #181a20;
  padding: 10px 20px;
  text-align: center;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 16px;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  z-index: 900;
}

/* ─────────────────────────────────────────
   Modal
   ───────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 400px;
  max-width: 520px;
}

.modal h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* ─────────────────────────────────────────
   Login Page
   ───────────────────────────────────────── */

.login-page { background: var(--bg-surface); min-height: 100vh; }

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  background: var(--bg-surface);
}

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 400px;
}

.login-box h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.login-box p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ─────────────────────────────────────────
   Landing Page — Layout
   ───────────────────────────────────────── */

.landing { background: var(--bg-surface); }

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.login-header {
  position: relative;
  z-index: 10;
}

.landing-header-left { display: flex; align-items: center; gap: 32px; }
.landing-header-right { display: flex; align-items: center; gap: 12px; }

.landing-nav { display: flex; gap: 4px; }
.landing-nav a {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.landing-nav a:hover { color: var(--text); }

/* ─────────────────────────────────────────
   Landing Page — Hero
   ───────────────────────────────────────── */

.hero {
  padding: 100px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(240, 185, 11, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.2);
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 28px;
  position: relative;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  letter-spacing: -1px;
}

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

.hero > p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
}

.hero-cta { position: relative; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   Landing Page — Sections
   ───────────────────────────────────────── */

.section { padding: 80px 48px; }
.section-alt { background: var(--bg); }

.section-container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* ─────────────────────────────────────────
   Landing Page — Crypto Cards
   ───────────────────────────────────────── */

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.crypto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.crypto-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.crypto-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.coin-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.crypto-name { font-weight: 600; font-size: 14px; }
.crypto-symbol { font-size: 12px; color: var(--text-muted); }

.crypto-price {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.crypto-change {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}
.crypto-change.up { color: var(--green); }
.crypto-change.down { color: var(--red); }

/* ─────────────────────────────────────────
   Landing Page — Trust Section
   ───────────────────────────────────────── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item { text-align: center; padding: 24px 16px; }
.trust-icon { margin-bottom: 20px; color: var(--gold); }

.trust-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.trust-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   Landing Page — Products Grid
   ───────────────────────────────────────── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.15s;
  display: block;
}
.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.product-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   Landing Page — App Section
   ───────────────────────────────────────── */

.app-section { text-align: center; }

.app-platforms {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s;
  cursor: pointer;
}
.platform-badge:hover { border-color: var(--border-hover); color: var(--text); }

/* ─────────────────────────────────────────
   Landing Page — Footer
   ───────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   Dashboard — Balance Overview
   ───────────────────────────────────────── */

.balance-overview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.balance-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.balance-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--mono);
  margin-bottom: 20px;
}

.balance-actions { display: flex; gap: 10px; }

/* ─────────────────────────────────────────
   Utilities
   ───────────────────────────────────────── */

.mono { font-family: var(--mono); }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }
.loading { text-align: center; padding: 20px; color: var(--text-muted); }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-online { background: var(--green); }
.status-offline { background: var(--text-muted); }
.status-blocked { background: var(--red); }

/* ─────────────────────────────────────────
   Scrollbar
   ───────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─────────────────────────────────────────
   Background Effects
   ───────────────────────────────────────── */

.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
}

.bg-orb-1 {
  width: 700px;
  height: 700px;
  background: rgba(240, 185, 11, 0.045);
  top: -250px;
  right: -150px;
  animation: orbDrift1 28s ease-in-out infinite;
}

.bg-orb-2 {
  width: 550px;
  height: 550px;
  background: rgba(24, 144, 255, 0.035);
  bottom: -200px;
  left: -120px;
  animation: orbDrift2 34s ease-in-out infinite;
}

.bg-orb-3 {
  width: 450px;
  height: 450px;
  background: rgba(153, 69, 255, 0.03);
  top: 35%;
  left: 45%;
  animation: orbDrift3 22s ease-in-out infinite;
}

.bg-orb-4 {
  width: 350px;
  height: 350px;
  background: rgba(14, 203, 129, 0.025);
  top: 60%;
  right: 10%;
  animation: orbDrift4 26s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(-90px, 120px) scale(1.08); }
  40% { transform: translate(-50px, 60px) scale(0.95); }
  60% { transform: translate(70px, -20px) scale(1.12); }
  80% { transform: translate(30px, 80px) scale(0.98); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(120px, -90px) scale(1.05); }
  40% { transform: translate(60px, -130px) scale(0.92); }
  60% { transform: translate(-50px, -60px) scale(1.1); }
  80% { transform: translate(80px, -40px) scale(1.02); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-120px, 70px) scale(1.15); }
  50% { transform: translate(40px, -50px) scale(0.88); }
  75% { transform: translate(90px, 30px) scale(1.06); }
}

@keyframes orbDrift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-70px, -90px) scale(1.1); }
  60% { transform: translate(60px, 40px) scale(0.93); }
}

/* Subtle grid overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(234, 236, 239, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 236, 239, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
  animation: gridShift 60s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(72px, 72px); }
}

/* Scan line effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(240, 185, 11, 0.15) 50%, transparent 100%);
  z-index: 0;
  animation: scanLine 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100vh; opacity: 0; }
}

/* Sparkline charts */
.sparkline {
  width: 100%;
  height: 48px;
  margin-top: 14px;
}

.sparkline-mini {
  width: 80px;
  height: 32px;
  flex-shrink: 0;
}

/* Ticker bar */
.ticker-bar {
  background: rgba(24, 27, 32, 0.92);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: tickerScroll 50s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ticker-pair { color: var(--text); font-weight: 500; }
.ticker-up { color: var(--green); }
.ticker-down { color: var(--red); }
.ticker-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-hover);
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Background chart lines */
.bg-chart {
  position: absolute;
  pointer-events: none;
  opacity: 0.035;
  color: var(--gold);
}

.bg-chart-1 {
  width: 500px;
  height: 200px;
  top: 12%;
  left: -3%;
  animation: chartFloat1 42s ease-in-out infinite;
}

.bg-chart-2 {
  width: 400px;
  height: 160px;
  bottom: 18%;
  right: -2%;
  color: var(--blue);
  animation: chartFloat2 38s ease-in-out infinite;
}

.bg-chart-3 {
  width: 350px;
  height: 140px;
  top: 55%;
  left: 20%;
  opacity: 0.025;
  animation: chartFloat3 45s ease-in-out infinite;
}

@keyframes chartFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(70px, 40px) rotate(3deg); }
}

@keyframes chartFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(1deg); }
  50% { transform: translate(-60px, -35px) rotate(-2deg); }
}

@keyframes chartFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(40px, -30px) rotate(2deg); }
  66% { transform: translate(-30px, 20px) rotate(-1deg); }
}

/* Background blockchain nodes */
.bg-node {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(240, 185, 11, 0.06);
  pointer-events: none;
}

.bg-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.08);
  transform: translate(-50%, -50%);
}

.bg-node-1 {
  width: 160px;
  height: 160px;
  top: 22%;
  right: 12%;
  animation: nodeFloat1 20s ease-in-out infinite;
}

.bg-node-2 {
  width: 90px;
  height: 90px;
  top: 58%;
  left: 8%;
  border-color: rgba(24, 144, 255, 0.05);
  animation: nodeFloat2 24s ease-in-out infinite;
}

.bg-node-2::after { background: rgba(24, 144, 255, 0.07); }

.bg-node-3 {
  width: 120px;
  height: 120px;
  bottom: 12%;
  right: 25%;
  border-color: rgba(153, 69, 255, 0.05);
  animation: nodeFloat3 28s ease-in-out infinite;
}

.bg-node-3::after { background: rgba(153, 69, 255, 0.06); }

@keyframes nodeFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.05); }
}

@keyframes nodeFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes nodeFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -15px) scale(1.08); }
}

/* Card hover glow */
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(240, 185, 11, 0.03);
}

.crypto-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero badge glow pulse */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(240, 185, 11, 0); }
  50% { box-shadow: 0 0 20px rgba(240, 185, 11, 0.1); }
}

/* Stat values subtle glow */
.stat-value {
  text-shadow: 0 0 30px rgba(240, 185, 11, 0.08);
}

/* Landing sections above effects */
.landing > * {
  position: relative;
  z-index: 1;
}

.login-container {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────
   Responsive
   ───────────────────────────────────────── */

@media (max-width: 1200px) {
  .crypto-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 42px; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .crypto-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .landing-nav { display: none; }
  .content { padding: 16px; }
  .section { padding: 48px 16px; }
  .hero { padding: 60px 16px 48px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .stat-value { font-size: 22px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .crypto-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .landing-header, .login-header { padding: 0 16px; }
}
