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

:root {
  --gold: #3b82f6;
  --gold-light: #60a5fa;
  --gold-glow: rgba(59, 130, 246, 0.08);
  --border-gold: rgba(59, 130, 246, 0.2);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --bg-primary: #06080f;
  --bg-secondary: #0b0e17;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-tertiary: #1a1d2e;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-gold: 0 8px 32px rgba(59, 130, 246, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --nav-height: 64px;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --purple: #8b5cf6;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(59, 130, 246, 0.3); }

/* ===== FLUID BG ===== */
#fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.fluid-logo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  z-index: 1;
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
  animation: fluidLogoPulse 5s ease-in-out infinite;
  box-shadow: 0 0 80px rgba(59, 130, 246, 0.15), 0 0 160px rgba(59, 130, 246, 0.05);
}

@keyframes fluidLogoPulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.08); }
}

/* ===== ORBS ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent);
  top: -250px; right: -200px;
  animation: orbFloat 25s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent);
  bottom: -200px; left: -150px;
  animation: orbFloat 30s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05), transparent);
  top: 35%; left: 55%;
  animation: orbPulse 12s ease-in-out infinite;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -50px) scale(1.15); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.4); }
}

/* ===== EAGLE ===== */
.eagle {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
}
.eagle svg {
  width: 120px;
  height: auto;
  fill: var(--gold);
}
.eagle-1 {
  top: 10%;
  left: -150px;
  animation: eagleFly1 40s ease-in-out infinite;
}
.eagle-2 {
  bottom: 15%;
  right: -150px;
  animation: eagleFly2 50s ease-in-out infinite;
  animation-delay: -20s;
}
.eagle-3 {
  top: 50%;
  left: -120px;
  animation: eagleFly3 35s ease-in-out infinite;
  animation-delay: -10s;
  opacity: 0.04;
}

@keyframes eagleFly1 {
  0% { transform: translateX(0) translateY(0) rotate(0deg) scaleX(1); }
  25% { transform: translateX(40vw) translateY(-30px) rotate(-3deg) scaleX(1); }
  50% { transform: translateX(80vw) translateY(10px) rotate(2deg) scaleX(1); }
  60% { transform: translateX(90vw) translateY(-20px) rotate(-2deg) scaleX(-1); }
  75% { transform: translateX(60vw) translateY(20px) rotate(1deg) scaleX(-1); }
  100% { transform: translateX(-150px) translateY(0) rotate(0deg) scaleX(-1); }
}
@keyframes eagleFly2 {
  0% { transform: translateX(0) translateY(0) rotate(0deg) scaleX(-1); }
  25% { transform: translateX(-40vw) translateY(20px) rotate(2deg) scaleX(-1); }
  50% { transform: translateX(-80vw) translateY(-15px) rotate(-2deg) scaleX(-1); }
  60% { transform: translateX(-90vw) translateY(10px) rotate(1deg) scaleX(1); }
  75% { transform: translateX(-50vw) translateY(-25px) rotate(-3deg) scaleX(1); }
  100% { transform: translateX(150px) translateY(0) rotate(0deg) scaleX(1); }
}
@keyframes eagleFly3 {
  0% { transform: translateX(0) translateY(0) rotate(0deg) scale(0.8); }
  30% { transform: translateX(50vw) translateY(-20px) rotate(-2deg) scale(0.9); }
  60% { transform: translateX(90vw) translateY(15px) rotate(3deg) scale(0.7); }
  100% { transform: translateX(-120px) translateY(0) rotate(0deg) scale(0.8); }
}

/* Eagle wing flap */
.eagle-wing {
  animation: wingFlap 0.6s ease-in-out infinite alternate;
}
.eagle-wing-2 {
  animation: wingFlap2 0.6s ease-in-out infinite alternate;
}
@keyframes wingFlap {
  0% { transform: rotate(0deg) scaleY(1); }
  100% { transform: rotate(-8deg) scaleY(0.85); }
}
@keyframes wingFlap2 {
  0% { transform: rotate(0deg) scaleY(1); }
  100% { transform: rotate(8deg) scaleY(0.85); }
}

/* ===== NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

header h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

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

header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

header nav a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

header nav a.active {
  color: var(--gold);
  background: rgba(59, 130, 246, 0.06);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  padding: 56px 24px 40px;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== CARDS ===== */
.card {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 32px auto;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
}

.card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Animated border card - premium */
.card-border-animated {
  position: relative;
  z-index: 1;
  margin: 32px auto;
  padding: 2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent 30%, transparent 70%, rgba(59, 130, 246, 0.15));
  max-width: 800px;
}

.card-border-animated > div {
  background: var(--bg-primary);
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.card-border-animated > div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== TEXT EFFECTS ===== */
.text-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 25%, #93c5fd 50%, var(--gold-light) 75%, var(--gold) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0% { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}

.text-glow {
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.2), 0 0 60px rgba(59, 130, 246, 0.1);
}

.text-glow-green {
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.25), 0 0 40px rgba(16, 185, 129, 0.1);
}

.text-glow-red {
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.25), 0 0 40px rgba(239, 68, 68, 0.1);
}

.float-text {
  display: inline-flex;
  gap: 2px;
}

.float-text span {
  display: inline-block;
  animation: floatLetter 2.5s ease-in-out infinite;
}

.float-text span:nth-child(1) { animation-delay: 0s; }
.float-text span:nth-child(2) { animation-delay: 0.08s; }
.float-text span:nth-child(3) { animation-delay: 0.16s; }
.float-text span:nth-child(4) { animation-delay: 0.24s; }
.float-text span:nth-child(5) { animation-delay: 0.32s; }
.float-text span:nth-child(6) { animation-delay: 0.40s; }
.float-text span:nth-child(7) { animation-delay: 0.48s; }
.float-text span:nth-child(8) { animation-delay: 0.56s; }
.float-text span:nth-child(9) { animation-delay: 0.64s; }
.float-text span:nth-child(10) { animation-delay: 0.72s; }
.float-text span:nth-child(11) { animation-delay: 0.80s; }
.float-text span:nth-child(12) { animation-delay: 0.88s; }

@keyframes floatLetter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #2563eb);
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-tertiary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(59, 130, 246, 0.25); }
  50% { box-shadow: 0 4px 48px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.15); }
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-gold {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--gold);
}

.badge-success {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.badge-danger {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.badge-info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--info);
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}

.divider::after {
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ===== INPUTS ===== */
input, select, textarea {
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}

input:focus, select:focus {
  border-color: var(--border-gold) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08) !important;
}

/* ===== MARKET TICKER ===== */
.ticker-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(6, 8, 15, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-top: -1px;
}

.ticker {
  display: flex;
  gap: 48px;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
}

.ticker-symbol {
  color: var(--text-tertiary);
  font-weight: 600;
}

.ticker-price {
  font-weight: 700;
  color: var(--text-primary);
}

.ticker-change {
  font-weight: 600;
  font-size: 0.78rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-change.up { color: var(--success); background: var(--success-bg); }
.ticker-change.down { color: var(--danger); background: var(--danger-bg); }

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

/* ===== STOCK TABLE ===== */
.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  transition: all var(--transition);
  cursor: pointer;
}

.stock-row:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass);
  transform: translateX(4px);
}

.stock-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stock-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stock-info .ticker {
  font-weight: 700;
  font-size: 0.95rem;
  animation: none;
  width: auto;
  gap: 0;
}

.stock-info .name {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin-top: 1px;
}

.stock-right {
  text-align: right;
}

.stock-right .price {
  font-weight: 700;
  font-size: 0.95rem;
}

.stock-right .change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 2px;
}

.stock-right .change.positive { color: var(--success); }
.stock-right .change.negative { color: var(--danger); }

/* ===== SPARKLINE (mini chart) ===== */
.sparkline {
  display: inline-block;
  width: 80px;
  height: 28px;
  margin-left: 12px;
}

.sparkline svg {
  width: 100%;
  height: 100%;
}

/* ===== ORDER BOOK ===== */
.order-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-side h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.order-side.asks h4 { color: var(--danger); }
.order-side.bids h4 { color: var(--success); }

.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
}

.order-row .depth-bg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0.12;
  border-radius: 4px;
  transition: width 0.3s;
}

.asks .order-row .depth-bg { background: var(--danger); }
.bids .order-row .depth-bg { background: var(--success); }

.order-row .price-col { text-align: left; position: relative; z-index: 1; }
.order-row .size-col { text-align: center; position: relative; z-index: 1; }
.order-row .total-col { text-align: right; position: relative; z-index: 1; }

.asks .order-row .price-col { color: var(--danger); }
.bids .order-row .price-col { color: var(--success); }

.order-row:hover {
  background: var(--bg-glass);
}

.ob-spread {
  text-align: center;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 8px 0;
}

.ob-spread strong {
  color: var(--text-primary);
}

/* ===== WALLET ===== */
.wallet-balance {
  text-align: center;
  padding: 24px 0 16px;
}

.wallet-balance .amount {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.wallet-balance .label {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

.wallet-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.wallet-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.wallet-tab {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  border: none;
  background: none;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.wallet-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.wallet-tab:hover:not(.active) { color: var(--text-secondary); }

.crypto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  transition: all var(--transition);
  cursor: pointer;
}

.crypto-row:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass);
}

.crypto-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.crypto-name { font-weight: 600; font-size: 0.9rem; }
.crypto-symbol { color: var(--text-tertiary); font-size: 0.78rem; }
.crypto-balance { text-align: right; }
.crypto-balance .amount { font-weight: 700; font-size: 0.92rem; }
.crypto-balance .usd { color: var(--text-tertiary); font-size: 0.78rem; }

/* ===== CHALLENGES ===== */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.challenge-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.challenge-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.challenge-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.challenge-card p { color: var(--text-tertiary); font-size: 0.78rem; }
.challenge-card .reward { color: var(--gold); font-weight: 700; font-size: 0.85rem; margin-top: 8px; }

/* ===== AI GRID ===== */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition);
}

.ai-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.ai-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.ai-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.ai-card p { color: var(--text-tertiary); font-size: 0.82rem; line-height: 1.5; }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  transition: transform var(--transition-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.feature-card ul {
  list-style: none;
  margin-top: 12px;
}

.feature-card ul li {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}

.feature-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== TIMELINE ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.timeline-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #2563eb);
  color: #06080f;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}

.timeline-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-card ul {
  list-style: none;
  text-align: left;
}

.timeline-card ul li {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}

.timeline-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ===== REVENUE ===== */
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.revenue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  transition: all var(--transition);
}

.revenue-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.revenue-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.revenue-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.revenue-card p { color: var(--text-tertiary); font-size: 0.78rem; }

/* ===== SECTION ===== */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 32px 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

footer p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  line-height: 1.7;
}

footer ul { list-style: none; }

footer ul li { margin-bottom: 8px; }

footer ul li a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

footer ul li a:hover { color: var(--gold); }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* Click Ripple + Active */
@keyframes rippleEffect{to{transform:scale(2.5);opacity:0;}}
.btn:active,.btn-submit:active,.g-button:active{transform:scale(0.97) !important;}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-in-up.stagger-1 { animation-delay: 0.05s; }
.fade-in-up.stagger-2 { animation-delay: 0.1s; }
.fade-in-up.stagger-3 { animation-delay: 0.15s; }
.fade-in-up.stagger-4 { animation-delay: 0.2s; }
.fade-in-up.stagger-5 { animation-delay: 0.25s; }
.fade-in-up.stagger-6 { animation-delay: 0.3s; }
.fade-in-up.stagger-7 { animation-delay: 0.35s; }
.fade-in-up.stagger-8 { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== REVENUE SOURCES GRID (Publicités) ===== */
.revenue-sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.revenue-source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
}

.revenue-source-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.revenue-source-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--transition-spring);
}

.revenue-source-card:hover .revenue-source-icon {
  transform: scale(1.1) rotate(-5deg);
}

.revenue-source-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.revenue-source-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.revenue-disclaimer {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.revenue-disclaimer p {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ===== AD REVENUE PAGE ===== */
.ad-revenue-intro {
  text-align: center;
  padding: 12px 0 24px;
  max-width: 600px;
  margin: 0 auto;
}

.ad-revenue-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.ad-revenue-intro p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.ad-sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.ad-source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: all var(--transition);
  position: relative;
}

.ad-source-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.ad-source-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.ad-source-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ad-source-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ad-source-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
}

.redistribution-box {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.redistribution-item {
  text-align: center;
}

.redistribution-pct {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.redistribution-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  max-width: 140px;
}

/* ===== SPORT REVENUE ===== */
.sport-intro {
  text-align: center;
  padding: 12px 0 24px;
  max-width: 600px;
  margin: 0 auto;
}

.sport-intro-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.sport-intro p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.sport-revenue-model {
  margin-bottom: 20px;
}

.sport-model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sport-model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.sport-model-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.sport-model-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.sport-model-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sport-model-card p {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ===== SPORT REVENUE SECTION (home) ===== */
.sport-revenue-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.sport-revenue-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.sport-revenue-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.sport-revenue-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sport-revenue-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.sport-revenue-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== VIP ===== */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.vip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.vip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.vip-card:hover::before { opacity: 1; }

.vip-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.vip-tier {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--text-tertiary);
}

.vip-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.vip-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.vip-card ul {
  list-style: none;
  text-align: left;
}

.vip-card ul li {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.vip-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.vip-silver { border-color: rgba(148, 163, 184, 0.2); }
.vip-silver .vip-tier { color: #c0c8d4; }
.vip-gold { border-color: rgba(59, 130, 246, 0.25); }
.vip-gold .vip-tier { color: var(--gold); }
.vip-platinum {
  border-color: rgba(139, 92, 246, 0.25);
  background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.04));
}
.vip-platinum .vip-tier { color: #a78bfa; }

.vip-disclaimer {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  max-width: 800px;
  margin: 32px auto 0;
}

.vip-disclaimer p {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* ===== VIP PAGE FULL CARDS ===== */
.vip-intro {
  text-align: center;
  padding: 12px 0 24px;
  max-width: 640px;
  margin: 0 auto;
}

.vip-intro-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.vip-intro p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.vip-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.vip-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.vip-card-full:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.vip-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vip-badge-1 {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.vip-badge-2 {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #c0c8d4;
}

.vip-badge-3 {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.vip-badge-4 {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
}

.vip-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.vip-card-icon {
  font-size: 2rem;
}

.vip-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.vip-features {
  list-style: none;
  flex: 1;
  margin-bottom: 16px;
}

.vip-features li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.vip-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.vip-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.vip-card-silver { border-color: rgba(148, 163, 184, 0.15); }
.vip-card-gold { border-color: rgba(59, 130, 246, 0.2); }
.vip-card-platinum {
  border-color: rgba(139, 92, 246, 0.2);
  background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.03));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid,
  .timeline,
  .revenue-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .revenue-sources-grid,
  .sport-model-grid,
  .vip-grid,
  .vip-grid-full { grid-template-columns: repeat(2, 1fr); }
  .sport-revenue-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  header { padding: 0 16px; }
  header nav { gap: 0; overflow-x: auto; }
  header nav a { padding: 8px 10px; font-size: 0.78rem; white-space: nowrap; }
  .container { padding: 0 16px; }
  .features-grid,
  .timeline,
  .revenue-grid,
  .challenge-grid,
  .ai-grid,
  .order-book,
  .ad-sources-grid,
  .sport-revenue-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .section-title { font-size: 1.6rem; }
  .page-header h1 { font-size: 2rem; }
  .wallet-balance .amount { font-size: 2.2rem; }
  .hero h1 { font-size: 2.2rem; }
  .card-border-animated > div { padding: 24px 18px; }
  .page-header { padding: 36px 16px 28px; }
  .section { padding: 48px 0; }
  .revenue-sources-grid,
  .sport-model-grid,
  .vip-grid,
  .vip-grid-full { grid-template-columns: 1fr; }
  .redistribution-box { flex-direction: column; gap: 16px; align-items: center; }
}

@media (max-width: 480px) {
  .page-header h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.7rem; }
  .wallet-balance .amount { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .wallet-actions .btn { flex: 1; min-width: 0; }
}
