/* ═══════════════════════════════════════════════════════════
   ReStart Classic RO — FluxCP Theme  v3.0
   Dark Royal Blue + Silver
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #05080f;
  --surface:     #090d1a;
  --surface2:    #0e1326;
  --surface3:    #141c32;
  --border:      rgba(96,165,250,.12);
  --border-hi:   rgba(96,165,250,.24);
  --blue:        #3b82f6;
  --blue2:       #1d4ed8;
  --blue3:       #60a5fa;
  --blue-pale:   #93c5fd;
  --silver:      #e1e7f5;
  --text:        #e1e7f5;
  --text-dim:    #c4cee3;
  --muted:       #4e5a78;
  --muted-light: #8896b3;
  --accent:      linear-gradient(135deg, #60a5fa, #2563eb);
  --accent-deep: linear-gradient(135deg, #2563eb, #1e3a8a);
  --nav-h:       72px;
  --radius:      14px;
  --radius-sm:   8px;
  --trans:       .25s ease;
  --shadow-sm:   0 2px 18px rgba(0,0,0,.55);
  --shadow-md:   0 6px 36px rgba(0,0,0,.65);
  --shadow-lg:   0 14px 56px rgba(0,0,0,.75);
  --glow:        0 0 22px rgba(59,130,246,.4);
  --glow-sm:     0 0 12px rgba(59,130,246,.25);
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--blue-pale); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--blue3); }
img { max-width: 100%; }
ul { list-style: none; }
p { margin-bottom: 14px; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Scroll Progress Bar ───────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue2), var(--blue3), var(--blue2));
  background-size: 200% 100%;
  animation: shimmer-bar 2.5s linear infinite;
  z-index: 9999;
  width: 0;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(59,130,246,.7);
}
@keyframes shimmer-bar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Poring Container ──────────────────────────────────────── */
#leaf-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.poring {
  position: absolute;
  top: -60px;
  background: url('../img/poring.png') center/contain no-repeat;
  animation: poring-fall linear infinite;
}
@keyframes poring-fall {
  0%   { top: -8%; transform: translateX(0) rotate(-8deg);   opacity: .85; }
  25%  {            transform: translateX(18px) rotate(6deg);               }
  50%  {            transform: translateX(-12px) rotate(-4deg);             }
  75%  {            transform: translateX(14px) rotate(7deg);               }
  100% { top: 108%; transform: translateX(-8px) rotate(-8deg); opacity: 0;  }
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(5,8,15,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.5px;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff;
  flex-shrink: 0;
  box-shadow: var(--glow-sm);
}
.nav-logo .accent {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links li { position: relative; }
.nav-links a {
  color: var(--muted-light);
  font-size: .875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  transition: color var(--trans), background var(--trans);
  display: block;
}
.nav-links a:hover,
.nav-links a.dropdown-active { color: var(--text); background: rgba(96,165,250,.07); }
.nav-links a.active { color: var(--blue3); }

/* Dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: var(--surface3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 6px 0;
  box-shadow: 0 24px 48px rgba(0,0,0,.75), var(--glow-sm);
  z-index: 10;
}
.has-dropdown:hover .dropdown { display: block; }
.has-dropdown::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; z-index: 9;
}
.dropdown li a {
  padding: 9px 18px; border-radius: 0; font-size: .82rem;
  color: var(--muted-light); background: transparent; display: block;
}
.dropdown li a:hover,
.dropdown li a.dropdown-active { color: var(--blue3); background: rgba(96,165,250,.06); }
.nav-arrow { transition: transform var(--trans); display: inline-block; }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav-login {
  color: var(--muted-light); font-size: .82rem; font-weight: 500;
  padding: 7px 18px; border-radius: 7px; border: 1px solid var(--border);
  transition: all var(--trans);
}
.btn-nav-login:hover { color: var(--text); border-color: var(--border-hi); }
.btn-nav-register {
  background: var(--accent);
  color: #fff !important;
  font-size: .82rem; font-weight: 700;
  padding: 7px 18px; border-radius: 100px;
  transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 2px 14px rgba(37,99,235,.35);
}
.btn-nav-register:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 22px rgba(37,99,235,.5); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--trans); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface2); border-bottom: 1px solid var(--border-hi);
    flex-direction: column; padding: 20px; gap: 4px; z-index: 999;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .navbar.mobile-open .nav-links { display: flex; }
  .has-dropdown .dropdown {
    position: static; box-shadow: none; border: none;
    border-left: 2px solid var(--border-hi);
    background: rgba(96,165,250,.03);
    margin: 4px 0 4px 12px; border-radius: 0; padding: 4px 0;
  }
  .has-dropdown.mobile-dd-open .dropdown { display: block; }
  .has-dropdown .dropdown { display: none; }
  .navbar { padding: 0 20px; }
  .btn-nav-login, .btn-nav-register { display: none; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: all var(--trans); border: none;
  font-family: 'Poppins', sans-serif; text-decoration: none; letter-spacing: .3px;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 22px rgba(37,99,235,.35);
}
.btn-primary:hover { opacity: .92; transform: translateY(-2px); color: #fff; box-shadow: 0 8px 32px rgba(37,99,235,.5); }
.btn-secondary {
  background: rgba(96,165,250,.08); color: var(--text-dim);
  border: 1px solid var(--border-hi);
}
.btn-secondary:hover { background: rgba(96,165,250,.15); color: var(--text); border-color: rgba(96,165,250,.38); }
.btn-outline {
  background: transparent; color: var(--blue-pale); border: 1px solid var(--border-hi);
}
.btn-outline:hover { background: rgba(96,165,250,.08); color: var(--blue3); border-color: var(--blue); }

/* ── Status Dots ───────────────────────────────────────────── */
.offline-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 6px #ef4444; animation: pulse-dot 2s infinite;
}
.online-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 40px 100px;
  text-align: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(37,99,235,.32) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 88% 80%,  rgba(96,165,250,.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 45% at 8%  90%,  rgba(29,78,216,.15)  0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 110%, rgba(245,158,11,.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 55%, rgba(4,6,14,.9) 100%);
  z-index: 0;
}
/* star field */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 80px 80px, 130px 130px;
  background-position: 0 0, 40px 40px;
  opacity: .09;
  animation: starDrift 60s linear infinite;
}
@keyframes starDrift {
  from { background-position: 0 0, 40px 40px; }
  to   { background-position: 80px 80px, 170px 170px; }
}
/* floating rune glyphs */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(ellipse 2px 18px at 18% 25%,  rgba(96,165,250,.18) 0%, transparent 100%),
    radial-gradient(ellipse 2px 14px at 75% 60%,  rgba(96,165,250,.12) 0%, transparent 100%),
    radial-gradient(ellipse 2px 22px at 90% 20%,  rgba(245,158,11,.1)  0%, transparent 100%),
    radial-gradient(ellipse 2px 16px at 35% 80%,  rgba(96,165,250,.1)  0%, transparent 100%);
  animation: runeFloat 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes runeFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}
.orb { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 820px; }

/* ── Orc Hero vertical runner ──────────────────────────────── */
.orc-hero {
  position: fixed;
  left: clamp(4px, 2vw, 28px);
  top: 0; bottom: 0;
  width: 160px;
  pointer-events: none;
  z-index: 3;
}
.orc-img {
  position: absolute;
  width: 160px; height: auto;
  left: 0; top: 0;
  display: none;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 20px rgba(59,130,246,.5));
}
@keyframes orcDescend {
  0%   { top: calc(var(--nav-h) + 10px); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: calc(100vh - 220px);        opacity: .9; }
}
@keyframes orcAscend {
  0%   { top: calc(100vh - 220px);        opacity: .9; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: calc(var(--nav-h) + 10px); opacity: 0; }
}
.orc-img.orc-going-down { display: block; animation: orcDescend 5s ease-in-out forwards; }
.orc-img.orc-going-up   { display: block; animation: orcAscend  5s ease-in-out forwards; }
@media (max-width: 768px) { .orc-hero { display: none; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(96,165,250,.07);
  border: 1px solid rgba(96,165,250,.24);
  border-radius: 100px; padding: 6px 20px;
  font-size: .75rem; font-weight: 600;
  color: var(--blue-pale); margin-bottom: 28px;
  letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 0 20px rgba(59,130,246,.1);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800;
  line-height: 1.08; margin-bottom: 20px; letter-spacing: -.5px;
}
.name-colored { display: block; }
.hero-tagline {
  font-size: 1.1rem; font-weight: 600;
  background: var(--accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
.hero-desc { color: var(--muted-light); font-size: .93rem; max-width: 540px; margin: 0 auto 38px; line-height: 1.75; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.stats-bar {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  padding: 26px 44px;
  background: rgba(96,165,250,.04);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(96,165,250,.08);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.55rem; font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.stat-label { font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: 3px; letter-spacing: .4px; text-transform: uppercase; }

/* ── Server Info Cards ─────────────────────────────────────── */
.server-info {
  padding: 60px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.info-grid {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  max-width: 960px; margin: 0 auto;
}
.info-card {
  flex: 1 1 150px; max-width: 180px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 20px; text-align: center;
  transition: border-color var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  will-change: transform;
}
.info-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(96,165,250,.04) 0%, transparent 60%);
  pointer-events: none;
}
.info-card > i { font-size: 1.5rem; color: var(--blue3); margin-bottom: 14px; display: block; }
.info-val {
  font-size: 1.55rem; font-weight: 800;
  background: var(--accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.info-val-disabled {
  font-size: .7rem; font-weight: 700; background: none;
  -webkit-text-fill-color: #ef4444; color: #ef4444;
  letter-spacing: .5px; display: block; padding-top: 4px;
}
.info-key { font-size: .72rem; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ── Section Shared ────────────────────────────────────────── */
section { padding: 100px 40px; }
.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.section-tag {
  display: inline-block;
  background: rgba(96,165,250,.07);
  border: 1px solid rgba(96,165,250,.24);
  color: var(--blue-pale);
  font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 5px 18px;
  border-radius: 100px; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800;
  margin-bottom: 16px; line-height: 1.12; letter-spacing: -.5px; color: var(--text);
}
.section-title .accent,
h2 .acc {
  background: var(--accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-sub { color: var(--muted-light); font-size: .93rem; max-width: 520px; margin: 0 auto 68px; line-height: 1.75; }

/* ── Features ──────────────────────────────────────────────── */
#features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  transition: border-color var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  will-change: transform;
}
.feat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,.03) 0%, transparent 55%);
  pointer-events: none; opacity: 0; transition: opacity var(--trans);
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover {
  border-color: rgba(96,165,250,.3);
  box-shadow: 0 18px 52px rgba(0,0,0,.6), 0 0 0 1px rgba(96,165,250,.12), var(--glow);
}
.feat-card:hover .feat-icon {
  background: rgba(96,165,250,.14); border-color: rgba(96,165,250,.35); color: var(--blue3);
  box-shadow: var(--glow-sm);
  transition: background var(--trans), border-color var(--trans), color var(--trans), box-shadow var(--trans);
}
.feat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(96,165,250,.08); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: var(--blue3); margin-bottom: 22px;
  transition: all var(--trans);
}
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feat-card p  { color: var(--muted-light); font-size: .85rem; line-height: 1.78; margin: 0; }

/* ── 3D Tilt Glare Overlay ─────────────────────────────────── */
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(96,165,250,.13) 0%,
    transparent 60%
  );
  opacity: 0; transition: opacity .3s ease;
}
.feat-card:hover  .tilt-glare,
.step-card:hover  .tilt-glare,
.info-card:hover  .tilt-glare { opacity: 1; }

/* ── Rates Section ─────────────────────────────────────────── */
.rates-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rates-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.rates-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.rates-text p  { color: var(--muted-light); font-size: .9rem; margin-bottom: 30px; line-height: 1.75; }
.rates-list { display: flex; flex-direction: column; gap: 12px; }
.rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--trans);
}
.rate-row:hover { border-color: var(--border-hi); }
.rate-name { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted-light); }
.rate-name i { color: var(--blue3); width: 16px; text-align: center; }
.rate-val {
  font-weight: 700; font-size: .95rem;
  background: var(--accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rate-val-disabled { -webkit-text-fill-color: #ef4444; color: #ef4444; background: none; font-size: .75rem; letter-spacing: .5px; }
.rates-visual {
  background: var(--surface2); border: 1px solid var(--border-hi);
  border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.rates-visual::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.rates-visual h3 { font-size: .92rem; font-weight: 700; margin-bottom: 30px; color: var(--muted-light); text-transform: uppercase; letter-spacing: 1px; }
.bar-row { margin-bottom: 22px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 9px; }
.bar-label span:last-child { color: var(--blue3); font-weight: 600; }
.bar-track { height: 6px; background: rgba(96,165,250,.1); border-radius: 100px; overflow: hidden; }
.bar-fill {
  height: 100%; background: var(--accent); border-radius: 100px;
  animation: bar-grow .9s ease forwards;
  box-shadow: 0 0 10px rgba(59,130,246,.45);
}
@keyframes bar-grow { from { width: 0 !important; } }

/* ── How To Play ───────────────────────────────────────────── */
#howtoplay { background: var(--bg); }
.htp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 42px 34px; text-align: center;
  transition: border-color var(--trans), box-shadow var(--trans);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  will-change: transform;
}
.step-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform var(--trans);
}
.step-card:hover::after { transform: scaleX(1); }
.step-card:hover {
  border-color: rgba(96,165,250,.3);
  box-shadow: 0 18px 52px rgba(0,0,0,.6), 0 0 0 1px rgba(96,165,250,.12), var(--glow);
}
.step-num {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 1.3rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; box-shadow: 0 4px 22px rgba(37,99,235,.4);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.step-card p  { color: var(--muted-light); font-size: .85rem; line-height: 1.75; margin: 0; }


/* ── Community Section ─────────────────────────────────────── */
.community-section { background: var(--surface); border-top: 1px solid var(--border); }
.discord-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: rgba(88,101,242,.06); border: 1px solid rgba(88,101,242,.18);
  border-radius: 16px; padding: 52px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.discord-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,.03) 0%, transparent 50%);
  pointer-events: none;
}
.discord-text h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: 12px; }
.discord-text p  { color: var(--muted-light); font-size: .9rem; max-width: 440px; margin-bottom: 24px; line-height: 1.75; }
.discord-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.disc-stat span  { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text); }
.disc-stat small { font-size: .75rem; color: var(--muted); }
.btn-discord {
  display: inline-flex; align-items: center; gap: 10px;
  background: #5865f2; color: #fff !important;
  padding: 14px 30px; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: background var(--trans), transform var(--trans); white-space: nowrap;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); }

/* ── Footer Job Sprites ────────────────────────────────────── */
.footer-jobs { display: flex; align-items: flex-end; gap: 4px; margin: 12px 0 18px; }
.footer-jobs img {
  height: 52px; width: auto;
  image-rendering: pixelated; image-rendering: crisp-edges;
  opacity: .65; transition: opacity var(--trans), transform var(--trans), filter var(--trans); cursor: default;
}
.footer-jobs img:hover {
  opacity: 1; transform: translateY(-5px);
  filter: drop-shadow(0 0 10px rgba(59,130,246,.55));
}

/* ── Footer ────────────────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 40px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: .82rem; margin: 16px 0 20px; line-height: 1.75; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; transition: all var(--trans);
}
.social-link:hover { color: var(--blue3); border-color: var(--border-hi); background: rgba(96,165,250,.07); }
.footer-col h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 18px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: .82rem; transition: color var(--trans); }
.footer-col ul a:hover { color: var(--blue-pale); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-top: 24px;
  border-top: 1px solid var(--border); font-size: .74rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--blue-pale); }

/* ── Section Nav ───────────────────────────────────────────── */
#section-nav {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 100; opacity: 0; transition: opacity var(--trans);
}
#section-nav.visible { opacity: 1; }
.snav-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 8px; background: rgba(96,165,250,.04);
  border: 1px solid var(--border); color: var(--muted);
  font-size: .72rem; font-weight: 500; transition: all var(--trans);
  white-space: nowrap; flex-direction: row-reverse;
}
.snav-item i { font-size: .85rem; }
.snav-label { display: none; }
.snav-item:hover .snav-label,
.snav-item.active .snav-label { display: block; }
.snav-item.active { color: var(--blue3); border-color: rgba(96,165,250,.32); background: rgba(96,165,250,.07); }
.snav-item:hover  { color: var(--text-dim); border-color: var(--border-hi); }

/* ── Scroll Top ────────────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: .9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all var(--trans);
  z-index: 100; font-family: 'Poppins', sans-serif;
}
#scroll-top.show { opacity: 1; pointer-events: auto; }
#scroll-top:hover { color: var(--blue3); border-color: var(--border-hi); background: rgba(96,165,250,.08); }

/* ═══════════════════════════════════════════════════════════
   INNER PAGES
   ═══════════════════════════════════════════════════════════ */
#page-wrapper { padding-top: var(--nav-h); min-height: 100vh; }
.page-inner { padding: 52px 40px 80px; max-width: 1100px; margin: 0 auto; }
.page-inner h2 {
  font-size: 1.55rem; font-weight: 700; margin-bottom: 28px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); color: var(--text);
}
.page-inner h3 { font-size: 1.1rem; font-weight: 700; margin: 32px 0 14px; color: var(--text); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-group label, label {
  color: var(--muted-light); font-size: .82rem; font-weight: 500;
  display: block; margin-bottom: 7px;
}
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'Poppins', sans-serif; font-size: .875rem;
  padding: 11px 15px; outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 0 0 3px rgba(96,165,250,.08);
}
textarea { min-height: 110px; resize: vertical; }
select option { background: var(--surface2); color: var(--text); }
input[type="submit"],
button[type="submit"],
.theme-button {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 11px 30px;
  font-family: 'Poppins', sans-serif; font-size: .875rem; font-weight: 700;
  cursor: pointer; transition: opacity var(--trans), box-shadow var(--trans);
  display: inline-block; text-decoration: none;
}
input[type="submit"]:hover,
button[type="submit"]:hover,
.theme-button:hover { opacity: .88; box-shadow: 0 4px 20px rgba(37,99,235,.35); }
input[type="checkbox"],
input[type="radio"] { width: auto; accent-color: var(--blue); }
.form-check-inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
.form-check-input { width: auto !important; }

/* Bootstrap-compat */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col-sm-9 { flex: 0 0 75%; max-width: 75%; padding: 0 12px; }
.col-sm-3 { flex: 0 0 25%; max-width: 25%; padding: 0 12px; }
.offset-sm-3 { margin-left: 25%; }
.col-form-label { display: flex; align-items: center; font-size: .82rem; color: var(--muted-light); }
@media (max-width: 600px) {
  .col-sm-9, .col-sm-3 { flex: 0 0 100%; max-width: 100%; }
  .offset-sm-3 { margin-left: 0; }
}

/* ── Tables ────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: 20px; }
table th {
  background: var(--surface2); color: var(--muted-light); font-weight: 600;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .8px;
  padding: 11px 14px; border-bottom: 1px solid var(--border-hi);
  text-align: left; white-space: nowrap;
}
table td {
  padding: 10px 14px; border-bottom: 1px solid rgba(96,165,250,.05);
  color: var(--text-dim); vertical-align: middle;
}
table tr:hover td { background: rgba(96,165,250,.03); }
.vertical-table th { width: 180px; }
.generic-form-table th { background: var(--surface2); }
.generic-form-table td { vertical-align: top; padding: 10px 14px; }

/* ── Alerts ────────────────────────────────────────────────── */
.message, p.message {
  color: #86efac; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: .85rem;
}
.red, .error-message, p.red { color: #f87171; margin-bottom: 14px; font-size: .85rem; }
.text-danger { color: #f87171 !important; }
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-size: .84rem; }
.alert strong { font-weight: 700; }
.alert-info    { background: rgba(96,165,250,.06); border: 1px solid rgba(96,165,250,.2); color: var(--blue-pale); }
.alert-warning { background: rgba(234,179,8,.06);  border: 1px solid rgba(234,179,8,.15);  color: #fbbf24; }
.alert-danger  { background: rgba(239,68,68,.06);  border: 1px solid rgba(239,68,68,.15);  color: #f87171; }
.alert-success { background: rgba(34,197,94,.06);  border: 1px solid rgba(34,197,94,.15);  color: #86efac; }

/* ── Account States ────────────────────────────────────────── */
.online  { color: #22c55e; font-weight: 600; }
.offline { color: #ef4444; }
.not-applicable { color: var(--muted); font-style: italic; }
.account-state { font-size: .78rem; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.state-pending { background: rgba(234,179,8,.1); color: #fbbf24; }
.state-banned  { background: rgba(239,68,68,.1);  color: #f87171; }
.state-unknown { background: rgba(148,163,184,.1); color: var(--muted); }

/* ── Misc ──────────────────────────────────────────────────── */
.block-link { color: var(--blue-pale); font-size: .8rem; }
.block-link:hover { text-decoration: underline; color: var(--blue3); }
small, .form-text { font-size: .78rem; color: var(--muted); display: block; margin-top: 4px; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.notice { color: #fbbf24; font-size: .85rem; margin-bottom: 14px; }
.important { color: #f87171; font-size: .85rem; }
.important a, .notice a { text-decoration: underline; }
.security-code img { border-radius: 6px; border: 1px solid var(--border); }
.refresh-captcha a { color: var(--blue-pale); font-size: .78rem; }
p.notice { padding: 10px 16px; background: rgba(234,179,8,.06); border: 1px solid rgba(234,179,8,.15); border-radius: var(--radius-sm); }
.item_name { font-weight: 500; }
.overslotted1, .overslotted2, .overslotted3 { color: #f87171; }
.identified.yes, .broken.no { color: #86efac; }
.identified.no, .broken.yes { color: #f87171; }
.g-recaptcha { margin-bottom: 12px; }
.security-code { margin-bottom: 10px; }

/* ── Events & Rewards ──────────────────────────────────────── */
#events { background: var(--surface); border-top: 1px solid var(--border); }
.events-outer { position: relative; padding: 0 36px; }
.events-track-wrap { overflow: hidden; border-radius: var(--radius); }
.events-track { display: flex; transition: transform .42s cubic-bezier(.4,0,.2,1); }
.event-slide {
  flex: 0 0 100%;
  display: flex; gap: 48px; align-items: center;
  background: var(--surface2); border: 1px solid var(--border-hi);
  border-radius: var(--radius); padding: 48px;
  position: relative; overflow: hidden;
}
.event-slide::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
}
.event-icon-box {
  width: 100px; height: 100px; border-radius: 20px; flex-shrink: 0;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #fff;
  box-shadow: 0 8px 32px rgba(37,99,235,.4);
}
.event-body { flex: 1; }
.event-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(96,165,250,.07); border: 1px solid rgba(96,165,250,.22);
  border-radius: 100px; padding: 4px 14px;
  font-size: .68rem; font-weight: 700; color: var(--blue-pale);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px;
}
.event-type-badge::before { content: '●'; font-size: .5rem; color: #22c55e; }
.event-body h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 10px; }
.event-body p  { color: var(--muted-light); font-size: .88rem; line-height: 1.75; margin-bottom: 18px; }
.event-rewards-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.event-rewards-row small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; }
.event-reward-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.event-reward-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.rarity-chip {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 700; letter-spacing: .4px;
  padding: 4px 11px; border-radius: 100px;
  border: 1px solid transparent; white-space: nowrap;
}

.events-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface3); border: 1px solid var(--border-hi);
  color: var(--muted-light); font-size: .9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans); z-index: 5;
}
.events-nav-btn:hover { background: var(--blue2); border-color: var(--blue3); color: #fff; }
.events-prev { left: 0; }
.events-next { right: 0; }
.events-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.events-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-hi); cursor: pointer;
  transition: background var(--trans), transform var(--trans);
}
.events-dot.active { background: var(--blue3); transform: scale(1.35); }

/* ── Event slide animations ──────────────────────────────── */
@keyframes evSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes evIconPop {
  0%   { transform: scale(.7) rotate(-8deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes evIconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes evRewardIn {
  from { opacity: 0; transform: scale(.6) translateY(10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.event-slide.ev-anim .event-body {
  animation: evSlideIn .4s cubic-bezier(.2,.8,.3,1) both;
}
.event-icon-box.ev-icon-pop {
  animation: evIconPop .45s cubic-bezier(.2,.8,.3,1) both;
}
.event-icon-box { animation: evIconFloat 3.2s ease-in-out infinite; }
.event-reward-icon.ev-reward-in,
.prereg-ms-card.ev-reward-in {
  animation: evRewardIn .35s cubic-bezier(.2,.8,.3,1) both;
}

/* Pre-registration slide */
.prereg-counter-row {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.prereg-num  { font-size: 2rem; font-weight: 800; background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.prereg-denom { font-size: 1rem; color: var(--muted-light); font-weight: 600; }
.prereg-count-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; align-self: center; }

.prereg-bar-wrap {
  position: relative; height: 8px;
  background: rgba(96,165,250,.1);
  border-radius: 100px; overflow: visible;
  margin-bottom: 20px;
}
.prereg-bar-fill {
  height: 100%; background: var(--accent); border-radius: 100px;
  box-shadow: 0 0 12px rgba(59,130,246,.5);
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.prereg-bar-pct {
  position: absolute; right: 0; top: -22px;
  font-size: .72rem; font-weight: 700; color: var(--blue3);
}

.prereg-ms-grid {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.prereg-ms-card {
  flex: 1 1 80px; max-width: 100px;
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 6px; text-align: center;
  transition: border-color var(--trans), box-shadow var(--trans);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 88px;
}
.prereg-unlocked {
  border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.04);
}
.prereg-locked { opacity: .55; }
.prereg-ms-icon {
  position: relative; width: 36px; height: 36px; margin: 0 auto 6px;
}
.prereg-ms-icon img { width: 36px; height: 36px; image-rendering: pixelated; display: block; }
.prereg-ms-check, .prereg-ms-lock {
  position: absolute; bottom: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700;
}
.prereg-ms-check { background: #22c55e; color: #fff; }
.prereg-ms-lock  { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
.prereg-ms-name { font-size: .7rem; font-weight: 600; color: var(--text-dim); margin-bottom: 3px; line-height: 1.3; }
.prereg-ms-req  { font-size: .65rem; color: var(--muted); }

@media (max-width: 768px) {
  .event-slide { flex-direction: column; padding: 28px 20px; gap: 24px; }
  .event-icon-box { width: 72px; height: 72px; font-size: 1.8rem; border-radius: 14px; }
  .events-outer { padding: 0 0; }
  .events-nav-btn { display: none; }
  .prereg-ms-grid { gap: 8px; }
  .prereg-ms-card { flex: 1 1 60px; }
}

/* ── Choose Your Path ──────────────────────────────────────── */
#class-tree { background: var(--bg); }
.ct-legend {
  display: flex; gap: 28px; justify-content: center; margin-bottom: 52px; flex-wrap: wrap;
}
.ct-legend-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted-light); }
.ct-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ct-dot.live { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.ct-dot.soon { background: var(--muted); }

.ct-table { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ct-header-row {
  display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 0; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.ct-col-head {
  text-align: center; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
}
.ct-row {
  display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 0; align-items: center;
}
.ct-arrow-cell {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .75rem;
}
.ct-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 14px; text-align: center;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.ct-card.live-card { border-color: rgba(34,197,94,.2); background: rgba(34,197,94,.03); }
.ct-card.soon-card { opacity: .55; }
.ct-card:hover { border-color: rgba(96,165,250,.28); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.ct-sprite {
  height: 72px; width: auto; image-rendering: pixelated; image-rendering: crisp-edges;
  display: block; margin: 0 auto 10px;
}
.ct-name { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ct-badge {
  display: inline-block; font-size: .62rem; font-weight: 700;
  padding: 2px 10px; border-radius: 100px; letter-spacing: 1px; text-transform: uppercase;
}
.ct-badge.badge-live { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.ct-badge.badge-soon { background: rgba(148,163,184,.08); color: var(--muted-light); border: 1px solid var(--border); }

/* Choose Your Path — collapse 5-col grid to 3 cards on small screens */
@media (max-width: 640px) {
  .ct-header-row { display: none; }
  .ct-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .ct-arrow-cell { display: none; }
  .ct-card { padding: 10px 6px; }
  .ct-sprite { height: 48px; }
  .ct-name { font-size: .72rem; }
  .ct-badge { font-size: .56rem; padding: 2px 7px; }
}
@media (max-width: 768px) {
  .ct-sprite { height: 52px; }
  .ct-card { padding: 12px 8px; }
  .ct-name { font-size: .78rem; }
  .ct-col-head { font-size: .58rem; letter-spacing: 1px; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rates-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  section { padding: 60px 20px; }
  .hero { padding: calc(var(--nav-h) + 30px) 20px 70px; }
  .htp-steps { grid-template-columns: 1fr; }
  .discord-cta { flex-direction: column; padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #section-nav { display: none; }
  .page-inner { padding: 32px 20px 60px; }
  .stats-bar { gap: 16px; padding: 18px 16px; }
  .discord-stats { gap: 20px; }
  footer { padding: 48px 20px 24px; }
}
@media (max-width: 480px) {
  .hero-cta { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .hero-cta .btn { flex: 1 1 140px; font-size: .8rem; padding: 11px 16px; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .htp-steps { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-item { min-width: 80px; }
  .prereg-ms-card { flex: 1 1 52px; max-width: 76px; padding: 10px 4px; }
  .prereg-ms-icon { width: 36px; height: 36px; }
  .prereg-ms-icon img { width: 36px; height: 36px; }
}

/* ── Footer accordion (mobile) ─────────────────────────────── */
@media (max-width: 768px) {
  .footer-col h4 {
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); user-select: none;
  }
  .footer-col h4::after { content: '+'; font-size: 1rem; color: var(--muted); transition: transform var(--trans); }
  .footer-col.fc-open h4::after { content: '−'; color: var(--blue3); }
  .footer-col ul { max-height: 0; overflow: hidden; transition: max-height .3s ease, margin-top .3s ease; margin-top: 0; }
  .footer-col.fc-open ul { max-height: 300px; margin-top: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ══════════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  background: transparent; cursor: pointer;
  color: var(--muted-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0;
  transition: border-color var(--trans), color var(--trans), background var(--trans), transform var(--trans);
}
.theme-toggle:hover {
  border-color: var(--blue3); color: var(--blue3);
  background: rgba(59,130,246,.08); transform: rotate(20deg);
}

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME  (toggled via html[data-theme="light"])
   ══════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg:       #eef2ff;
  --surface:  #ffffff;
  --surface2: #f5f7ff;
  --surface3: #e8eeff;
  --border:    rgba(37,99,235,.12);
  --border-hi: rgba(37,99,235,.26);
  --blue3:    #2563eb;
  --blue-pale:#3b82f6;
  --text:     #0f172a;
  --text-dim: #1e3a5f;
  --muted:    #64748b;
  --muted-light: #94a3b8;
  --glow:    0 0 22px rgba(37,99,235,.2);
  --glow-sm: 0 0 12px rgba(37,99,235,.12);
  color-scheme: light;
}

/* Navbar */
html[data-theme="light"] .navbar {
  background: rgba(255,255,255,.93);
  border-bottom-color: rgba(37,99,235,.12);
}
html[data-theme="light"] .nav-links a { color: #1e3a5f; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.dropdown-active { color: var(--blue3); background: rgba(37,99,235,.06); }
html[data-theme="light"] .has-dropdown .dropdown {
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15,23,42,.12), 0 1px 0 rgba(37,99,235,.08);
}
html[data-theme="light"] .dropdown li a { color: #334155; }
html[data-theme="light"] .dropdown li a:hover { color: var(--blue3); background: rgba(37,99,235,.05); }

/* Hero */
html[data-theme="light"] .hero {
  background: linear-gradient(180deg, #dce8ff 0%, #eef2ff 100%);
}
html[data-theme="light"] .hero-grid {
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(37,99,235,.14) 0%, transparent 60%),
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
}
html[data-theme="light"] .hero-badge {
  background: rgba(37,99,235,.07);
  border-color: rgba(37,99,235,.22);
  color: #334155;
}
html[data-theme="light"] .stats-bar { background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.14); }
html[data-theme="light"] .stat-num  { color: #0f172a; }
html[data-theme="light"] .stat-label { color: #64748b; }

/* Sections */
html[data-theme="light"] #events    { background: var(--surface); border-top-color: var(--border); }
html[data-theme="light"] #class-tree { background: var(--surface2); }
html[data-theme="light"] #features  { background: var(--bg); }
html[data-theme="light"] #howtoplay { background: var(--surface); }
html[data-theme="light"] .community-section { background: linear-gradient(135deg, #dce8ff 0%, #eef2ff 100%); }

/* Cards */
html[data-theme="light"] .feat-card,
html[data-theme="light"] .step-card {
  background: var(--surface);
  border-color: rgba(37,99,235,.12);
  box-shadow: 0 2px 18px rgba(15,23,42,.07);
}
html[data-theme="light"] .feat-card:hover,
html[data-theme="light"] .step-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,.15);
  border-color: rgba(37,99,235,.28);
}
html[data-theme="light"] .feat-icon { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.16); }

/* Event slides */
html[data-theme="light"] .events-track-wrap { border-color: rgba(37,99,235,.14); }
html[data-theme="light"] .event-slide { background: var(--surface); }
html[data-theme="light"] .event-icon-box {
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(96,165,250,.1));
  border: 1.5px solid rgba(37,99,235,.28);
  box-shadow: 0 4px 18px rgba(37,99,235,.1);
  color: var(--blue3);
}
html[data-theme="light"] .event-type-badge { background: rgba(37,99,235,.1); color: var(--blue3); }
html[data-theme="light"] .event-reward-icon { background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.14); }
html[data-theme="light"] .events-nav-btn { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.2); color: var(--blue3); }

/* Section headings */
html[data-theme="light"] .section-tag { background: rgba(37,99,235,.1); color: var(--blue3); }
html[data-theme="light"] h2, html[data-theme="light"] h3 { color: #0f172a; }
html[data-theme="light"] p { color: #334155; }

/* Job class tree */
html[data-theme="light"] #class-tree { background: var(--surface3); }
html[data-theme="light"] .ct-table  { background: transparent; }
html[data-theme="light"] .ct-card   {
  background: var(--surface);
  border-color: rgba(37,99,235,.16);
  box-shadow: 0 2px 14px rgba(15,23,42,.07);
}
html[data-theme="light"] .ct-card:hover {
  border-color: rgba(37,99,235,.32);
  box-shadow: 0 6px 24px rgba(37,99,235,.13);
}
html[data-theme="light"] .ct-name   { color: #0f172a; }
html[data-theme="light"] .ct-col-head { color: #64748b; }
html[data-theme="light"] .ct-arrow-cell { color: #94a3b8; }
html[data-theme="light"] .live-card  {
  background: rgba(34,197,94,.07);
  border-color: rgba(34,197,94,.28);
  box-shadow: 0 2px 14px rgba(34,197,94,.08);
}
html[data-theme="light"] .soon-card  {
  background: rgba(37,99,235,.04);
  border-color: rgba(37,99,235,.14);
  box-shadow: 0 2px 14px rgba(15,23,42,.05);
}

/* Discord CTA */
html[data-theme="light"] .discord-cta { background: rgba(255,255,255,.7); border-color: rgba(37,99,235,.16); }
html[data-theme="light"] .disc-stat span { color: #0f172a; }
html[data-theme="light"] .disc-stat small { color: #64748b; }

/* Footer */
html[data-theme="light"] footer { background: var(--surface); border-top-color: var(--border); }
html[data-theme="light"] .footer-col h4 { color: #0f172a; }
html[data-theme="light"] .footer-col a  { color: #64748b; }
html[data-theme="light"] .footer-col a:hover { color: var(--blue3); }
html[data-theme="light"] .footer-bottom { border-top-color: var(--border); color: #94a3b8; }
html[data-theme="light"] .footer-bottom a { color: #64748b; }
html[data-theme="light"] .footer-bottom a:hover { color: var(--blue3); }
html[data-theme="light"] .social-link { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.16); color: var(--blue3); }

/* Scroll-top & section nav */
html[data-theme="light"] #scroll-top { background: var(--blue3); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,.3); }
html[data-theme="light"] #section-nav { background: transparent; border: none; box-shadow: none; }
html[data-theme="light"] .snav-item {
  color: #64748b;
  background: rgba(255,255,255,.55);
  border-color: rgba(37,99,235,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="light"] .snav-item.active {
  color: var(--blue3);
  background: rgba(255,255,255,.8);
  border-color: rgba(37,99,235,.3);
}
html[data-theme="light"] .snav-item:hover {
  color: var(--blue3);
  background: rgba(255,255,255,.7);
  border-color: rgba(37,99,235,.22);
}

/* Pre-reg progress bar */
#ev-panel-prereg .ev-panel-desc { margin-bottom: 10px; }
html[data-theme="light"] .prereg-bar-wrap { background: rgba(37,99,235,.1); }
html[data-theme="light"] .prereg-ms-card  { background: var(--surface2); border-color: rgba(37,99,235,.12); }
html[data-theme="light"] .prereg-ms-name  { color: #1e3a5f; }
html[data-theme="light"] .prereg-ms-req   { color: #64748b; }

/* Particles — invert + reduce on light bg */
html[data-theme="light"] canvas[data-particles] { opacity: .12; filter: invert(1) hue-rotate(180deg); }

/* Inner page */
html[data-theme="light"] #page-wrapper { background: var(--bg); }
html[data-theme="light"] .page-inner   { background: var(--surface); border-color: rgba(37,99,235,.1); box-shadow: 0 2px 24px rgba(15,23,42,.07); }
html[data-theme="light"] .page-inner h1,
html[data-theme="light"] .page-inner h2 { color: #0f172a; }
html[data-theme="light"] input, html[data-theme="light"] select, html[data-theme="light"] textarea {
  background: var(--surface2); border-color: rgba(37,99,235,.2); color: #0f172a;
}

/* ── Events tab shell ────────────────────────────────────────── */
.ev-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 48px;
}
.ev-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 438px; /* 6 × 68px buttons + 5 × 6px gaps */
}
.ev-nav-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 68px; padding: 0 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  cursor: pointer; text-align: left; color: var(--text);
  transition: background .2s, border-color .2s;
  position: relative;
  flex-shrink: 0;
}
.ev-nav-btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.ev-nav-btn.active { background: rgba(37,99,235,.1); border-color: rgba(96,165,250,.28); }
.ev-nav-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: background .2s, color .2s;
}
.ev-nav-btn.active .ev-nav-icon { background: rgba(37,99,235,.28); color: #93c5fd; }
.ev-icon-gold   { background: rgba(251,191,36,.12) !important; color: #fbbf24 !important; }
.ev-icon-blue   { background: rgba(96,165,250,.12)  !important; color: #60a5fa !important; }
.ev-icon-purple { background: rgba(167,139,250,.12) !important; color: #a78bfa !important; }
.ev-icon-green  { background: rgba(74,222,128,.12)  !important; color: #4ade80 !important; }
.ev-icon-red    { background: rgba(248,113,113,.12) !important; color: #f87171 !important; }
.ev-icon-teal   { background: rgba(34,211,238,.12)  !important; color: #22d3ee !important; }
.ev-nav-btn.active .ev-icon-gold   { background: rgba(251,191,36,.22)  !important; }
.ev-nav-btn.active .ev-icon-blue   { background: rgba(96,165,250,.22)  !important; }
.ev-nav-btn.active .ev-icon-purple { background: rgba(167,139,250,.22) !important; }
.ev-nav-btn.active .ev-icon-green  { background: rgba(74,222,128,.22)  !important; }
.ev-nav-btn.active .ev-icon-red    { background: rgba(248,113,113,.22) !important; }
.ev-nav-btn.active .ev-icon-teal   { background: rgba(34,211,238,.22)  !important; }
.ev-nav-title { display: block; font-size: .85rem; font-weight: 600; line-height: 1.2; }
.ev-nav-sub   { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.ev-live-pip {
  position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

/* Panels */
.ev-panels { position: relative; height: 100%; }
.ev-panel {
  display: none;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; padding: 32px 36px;
  position: relative; overflow: hidden;
}
.ev-panel.active {
  display: block;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  animation: evPanelIn .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes evPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ev-panel-glow {
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  pointer-events: none; filter: blur(90px); opacity: .12;
}
.ev-glow-gold   { background: #f59e0b; }
.ev-glow-blue   { background: #3b82f6; }
.ev-glow-purple { background: #a78bfa; }
.ev-glow-green  { background: #4ade80; }
.ev-glow-red    { background: #f87171; }
.ev-glow-teal   { background: #22d3ee; }

/* Panel header */
.ev-panel-header {
  display: flex; align-items: flex-start; gap: 18px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.ev-big-icon {
  width: 66px; height: 66px; flex-shrink: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  animation: evIconFloat 3.2s ease-in-out infinite;
}
.ev-big-icon-gold {
  background: linear-gradient(135deg, #78350f, #b45309, #f59e0b);
  border-color: transparent; color: #fef3c7;
  animation: evIconFloat 3.2s ease-in-out infinite, evGoldPulse 2.5s ease-in-out infinite;
}
@keyframes evGoldPulse {
  0%,100% { box-shadow: 0 0 16px rgba(245,158,11,.3), 0 6px 24px rgba(245,158,11,.2); }
  50%      { box-shadow: 0 0 36px rgba(245,158,11,.6), 0 6px 36px rgba(245,158,11,.4); }
}
.ev-big-icon-blue   { background: linear-gradient(135deg,#1e3a8a,#2563eb); color:#bfdbfe; border-color:transparent; box-shadow:0 0 24px rgba(37,99,235,.3); }
.ev-big-icon-purple { background: linear-gradient(135deg,#4c1d95,#7c3aed); color:#e9d5ff; border-color:transparent; box-shadow:0 0 24px rgba(124,58,237,.3); }
.ev-big-icon-green  { background: linear-gradient(135deg,#064e3b,#059669); color:#d1fae5; border-color:transparent; box-shadow:0 0 24px rgba(5,150,105,.3); }
.ev-big-icon-red    { background: linear-gradient(135deg,#7f1d1d,#dc2626); color:#fecaca; border-color:transparent; box-shadow:0 0 24px rgba(220,38,38,.3); }
.ev-big-icon-teal   { background: linear-gradient(135deg,#164e63,#0891b2); color:#a5f3fc; border-color:transparent; box-shadow:0 0 24px rgba(8,145,178,.3); }

/* ── Event panel buttons ────────────────────────────────────── */
.ev-btn-gold   { background: linear-gradient(135deg,#b45309,#f59e0b); color:#1a0a00 !important; box-shadow:0 4px 22px rgba(245,158,11,.35); }
.ev-btn-gold:hover   { opacity:.92; transform:translateY(-2px); box-shadow:0 8px 32px rgba(245,158,11,.5); }
.ev-btn-blue   { background: linear-gradient(135deg,#1d4ed8,#3b82f6); color:#fff !important; box-shadow:0 4px 22px rgba(37,99,235,.35); }
.ev-btn-blue:hover   { opacity:.92; transform:translateY(-2px); box-shadow:0 8px 32px rgba(37,99,235,.5); }
.ev-btn-purple { background: linear-gradient(135deg,#4c1d95,#7c3aed); color:#f5f3ff !important; box-shadow:0 4px 22px rgba(124,58,237,.35); }
.ev-btn-purple:hover { opacity:.92; transform:translateY(-2px); box-shadow:0 8px 32px rgba(124,58,237,.5); }
.ev-btn-green  { background: linear-gradient(135deg,#065f46,#059669); color:#d1fae5 !important; box-shadow:0 4px 22px rgba(5,150,105,.35); }
.ev-btn-green:hover  { opacity:.92; transform:translateY(-2px); box-shadow:0 8px 32px rgba(5,150,105,.5); }
.ev-btn-red    { background: linear-gradient(135deg,#7f1d1d,#dc2626); color:#fef2f2 !important; box-shadow:0 4px 22px rgba(220,38,38,.35); }
.ev-btn-red:hover    { opacity:.92; transform:translateY(-2px); box-shadow:0 8px 32px rgba(220,38,38,.5); }
.ev-btn-teal   { background: linear-gradient(135deg,#164e63,#0891b2); color:#f0f9ff !important; box-shadow:0 4px 22px rgba(8,145,178,.35); }
.ev-btn-teal:hover   { opacity:.92; transform:translateY(-2px); box-shadow:0 8px 32px rgba(8,145,178,.5); }

/* ── Event button shimmer + arrow ───────────────────────────── */
.ev-panel .btn {
  position: relative;
  overflow: hidden;
  width: 210px;
  justify-content: center;
}
.ev-panel .btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: none;
}
.ev-panel .btn:hover::after {
  left: 160%;
  transition: left .55s ease;
}
.ev-panel .btn::before {
  content: '→';
  position: absolute;
  right: -28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  font-weight: 800;
  opacity: 0;
  transition: right .22s ease, opacity .2s ease;
  pointer-events: none;
}
.ev-panel .btn:hover::before {
  right: 20px;
  opacity: 1;
}
.ev-panel-head-text { flex: 1; }
.ev-panel-head-text h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.ev-panel-desc { font-size: .88rem; color: var(--muted-light); line-height: 1.75; margin: 0 0 20px; }

/* Badges */
.ev-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; border-radius: 20px;
  font-size: .74rem; font-weight: 600; border: 1px solid;
}
.ev-badge-live   { background:rgba(74,222,128,.12);  border-color:rgba(74,222,128,.3);   color:#4ade80; }
.ev-badge-soon   { background:rgba(251,191,36,.1);   border-color:rgba(251,191,36,.3);   color:#fbbf24; }
.ev-badge-blue   { background:rgba(96,165,250,.1);   border-color:rgba(96,165,250,.28);  color:#93c5fd; }
.ev-badge-purple { background:rgba(167,139,250,.1);  border-color:rgba(167,139,250,.28); color:#c4b5fd; }
.ev-badge-green  { background:rgba(74,222,128,.08);  border-color:rgba(74,222,128,.25);  color:#6ee7b7; }
.ev-badge-teal   { background:rgba(34,211,238,.08);  border-color:rgba(34,211,238,.25);  color:#22d3ee; }
.ev-badge-red    { background:rgba(248,113,113,.08); border-color:rgba(248,113,113,.25); color:#fca5a5; }
.ev-pip {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: currentColor;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

/* Countdown */
.ev-countdown-wrap { text-align: right; }
.ev-countdown-lbl  { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 6px; }
.ev-countdown      { display: flex; gap: 5px; justify-content: flex-end; }
.ev-countdown .wc-unit {
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25);
  border-radius: 8px; padding: 5px 9px; min-width: 44px; text-align: center;
}
.ev-countdown .wc-unit b {
  display: block; font-size: 1.15rem; font-weight: 900;
  color: #fbbf24; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.ev-countdown .wc-unit s {
  display: block; text-decoration: none; font-size: .58rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: .8px;
}

/* Weekend rate grid */
.ev-rate-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 0 0 24px;
}
.ev-rate-card {
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.18);
  border-radius: 14px; padding: 18px 10px; text-align: center;
  transition: transform .18s, background .18s, box-shadow .18s; cursor: default;
}
.ev-rate-card:hover {
  background: rgba(251,191,36,.13); transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(251,191,36,.2);
}
.ev-rate-ico { font-size: .78rem; color: rgba(251,191,36,.5); margin-bottom: 8px; display: block; }
.ev-rate-val {
  font-size: 1.8rem; font-weight: 900; color: #fbbf24; line-height: 1;
  text-shadow: 0 0 18px rgba(251,191,36,.45);
}
.ev-rate-lbl { font-size: .62rem; color: var(--muted-light); text-transform: uppercase; letter-spacing: .8px; margin-top: 5px; }

/* Responsive */
@media (max-width: 900px) {
  .ev-shell { grid-template-columns: 1fr; gap: 12px; }
  .ev-nav { flex-direction: row; gap: 6px; overflow: hidden; height: auto; flex-wrap: nowrap; }
  .ev-panels { height: auto; }
  .ev-panel.active { height: auto; overflow: hidden; }
  .ev-nav-btn {
    flex: 1; flex-direction: column; align-items: center; justify-content: center;
    width: auto; min-width: 0; height: 56px; padding: 6px 4px; gap: 5px;
    border-radius: 12px;
  }
  .ev-nav-icon { width: 28px; height: 28px; font-size: .78rem; border-radius: 8px; }
  .ev-nav-text { display: none; }
  .ev-panel { padding: 22px 20px; }
  .ev-rate-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-panel-header { gap: 14px; }
  .ev-countdown-wrap { width: 100%; }
  .ev-countdown { justify-content: flex-start; }
  .ev-panel .btn { width: 100%; max-width: 210px; }
}

/* Light theme */
html[data-theme="light"] .ev-nav-btn { background: var(--surface); border-color: rgba(37,99,235,.12); color: var(--text); }
html[data-theme="light"] .ev-nav-btn:hover { background: rgba(37,99,235,.06); }
html[data-theme="light"] .ev-nav-btn.active { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); }
html[data-theme="light"] .ev-nav-icon { background: rgba(37,99,235,.08); }
html[data-theme="light"] .ev-nav-btn.active .ev-nav-icon { background: rgba(37,99,235,.18); color: var(--blue3); }
html[data-theme="light"] .ev-panel { background: var(--surface); border-color: rgba(37,99,235,.12); }
html[data-theme="light"] .ev-rate-card { background: rgba(251,191,36,.06); }
html[data-theme="light"] .ev-rate-card:hover { background: rgba(251,191,36,.12); }
html[data-theme="light"] .ev-countdown .wc-unit { background: rgba(251,191,36,.08); }
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

/* ══════════════════════════════════════════════════════════════
   RATES BAND
   ══════════════════════════════════════════════════════════════ */
.rates-band {
  padding: 0 40px;
  margin-top: -48px;
  position: relative; z-index: 10;
}
.rates-band-inner {
  max-width: 1100px; margin: 0 auto;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(96,165,250,.06);
}
.rate-chip {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px; gap: 4px; position: relative;
  transition: background .2s;
}
.rate-chip:not(:last-child)::after {
  content: ''; position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.07);
}
.rate-chip:hover { background: rgba(255,255,255,.04); }
.rate-chip-ico {
  font-size: 1.1rem; margin-bottom: 6px;
}
.rate-chip-val {
  font-size: 1.85rem; font-weight: 900; line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(245,158,11,.4));
}
.rate-chip-lbl {
  font-size: .68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.2px; margin-top: 2px;
}
.rate-chip-sub {
  font-size: .62rem; color: rgba(96,165,250,.6);
  margin-top: 1px;
}

/* ══════════════════════════════════════════════════════════════
   NEWS SECTION
   ══════════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.news-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  border-color: rgba(96,165,250,.2);
}
.news-card-banner {
  height: 7px;
}
.news-card-body {
  padding: 22px 24px; flex: 1; display: flex; flex-direction: column;
}
.news-card-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.news-tag {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 3px 9px; border-radius: 20px;
  border: 1px solid;
}
.news-tag-launch  { background: rgba(74,222,128,.1);  border-color: rgba(74,222,128,.3);  color: #4ade80; }
.news-tag-event   { background: rgba(251,191,36,.1);  border-color: rgba(251,191,36,.3);  color: #fbbf24; }
.news-tag-update  { background: rgba(96,165,250,.1);  border-color: rgba(96,165,250,.28); color: #60a5fa; }
.news-date {
  font-size: .68rem; color: var(--muted); margin-left: auto;
}
.news-card-body h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0 0 10px;
  color: var(--text);
}
.news-card-body p {
  font-size: .8rem; color: var(--muted); line-height: 1.7; flex: 1; margin: 0;
}
.news-card-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .75rem; color: rgba(96,165,250,.7);
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.news-card:hover .news-card-footer { color: #60a5fa; }

@media (max-width: 900px) {
  .rates-band { padding: 0 16px; margin-top: -32px; }
  .rates-band-inner { grid-template-columns: repeat(2, 1fr); }
  .rate-chip:nth-child(2)::after { display: none; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rates-band-inner { grid-template-columns: repeat(2, 1fr); }
}
html[data-theme="light"] .rates-band-inner {
  background: rgba(255,255,255,.8); border-color: rgba(37,99,235,.12);
}
html[data-theme="light"] .news-card {
  background: var(--surface); border-color: rgba(37,99,235,.1);
}
html[data-theme="light"] .news-card-footer { border-color: rgba(37,99,235,.08); }
