/* ═══════════════════════════════════════════════════════════════════════════
   SWG Infinity — Design System
   Shared tokens match admin-panel & my-portal
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Core palette ─────────────────────────────────────────────────────── */
  --bg-void: #000816;
  --bg-surface: #0a1628;
  --bg-surface-hover: #0f1f38;
  --bg-surface-light: #132844;
  --accent: #00e5ff;
  --accent-hover: #33ecff;
  --accent-dim: #007a8c;
  --accent-dark: #005566;
  --accent-darkest: #003d4d;
  --gold: #c8a84e;
  --gold-hover: #dabb5e;
  --text-primary: #e0f7fa;
  --text-secondary: #5e8fa3;
  --text-bright: #b2ebf2;
  --border: rgba(10, 74, 92, 0.6);
  --border-solid: #0a4a5c;
  --glow: rgba(0, 229, 255, 0.3);
  --glow-dim: rgba(0, 229, 255, 0.12);
  --success: #00e676;
  --error: #ff1744;
  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Rajdhani', system-ui, sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 96px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 229, 255, 0.2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.4); }

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Orbitron', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; }
h1 { font-size: clamp(26px, 5vw, 48px); }
h2 { font-size: clamp(20px, 3.5vw, 34px); }
h3 { font-size: clamp(15px, 2.5vw, 20px); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); text-shadow: 0 0 8px var(--glow); }
strong { font-weight: 700; }
em { font-style: italic; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 100;
  background: rgba(0, 8, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}
/* When mobile nav is open, remove backdrop-filter — it creates a stacking context
   that traps position:fixed children (Chrome/Safari iOS bug). The overlay covers
   the page anyway so the visual difference is negligible. */
.nav.nav-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(0, 8, 22, 0.98);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand span {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--text-primary); letter-spacing: 1px; text-shadow: 0 0 10px var(--glow);
}
.nav-brand em { color: var(--accent); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-link {
  display: block; padding: 8px 12px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.5px; text-decoration: none;
  border-radius: 8px; transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: rgba(0, 229, 255, 0.06); text-shadow: 0 0 8px var(--glow); }

/* Dropdown */
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px; padding: 6px 0;
  background: rgba(10, 22, 40, 0.98); border: 1px solid var(--border-solid); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.05);
  backdrop-filter: blur(20px); z-index: 200;
}
.nav-links > li:hover > .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 9px 18px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; transition: var(--transition);
}
.nav-dropdown a:hover { color: var(--accent); background: rgba(0, 229, 255, 0.04); text-shadow: 0 0 6px var(--glow); }

/* Nav CTA */
.nav-cta {
  padding: 7px 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(180deg, var(--accent-dim) 0%, var(--accent-dark) 50%, var(--accent-darkest) 100%);
  color: var(--text-primary); border: 1px solid var(--glow); border-radius: 10px;
  text-shadow: 0 0 6px var(--glow); box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
  text-decoration: none; transition: var(--transition); text-transform: uppercase;
}
.nav-cta:hover { box-shadow: 0 0 22px rgba(0, 229, 255, 0.25); color: #fff; }

/* Mobile toggle */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); width: 40px; height: 40px; border-radius: 8px;
  cursor: pointer; font-size: 20px; transition: var(--transition);
  align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 8, 22, 0.8); backdrop-filter: blur(4px); z-index: 99; }
.nav-overlay.active { display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   DISCORD TICKER
   ══════════════════════════════════════════════════════════════════════════ */
.discord-ticker {
  position: fixed; top: 0; left: 0; right: 0; height: 32px; z-index: 101;
  background: rgba(0, 4, 14, 0.97);
  border-bottom: 1px solid rgba(0, 229, 255, 0.07);
  overflow: hidden;
}
.discord-ticker-inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 16px; gap: 0; overflow: hidden;
}
.discord-ticker-badge {
  display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.6px; text-decoration: none;
  text-transform: uppercase; transition: var(--transition);
}
.discord-ticker-badge:hover { color: var(--accent); text-shadow: none; }
.discord-live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #23d18b; box-shadow: 0 0 6px rgba(35, 209, 139, 0.7);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(35, 209, 139, 0.5); }
  50% { box-shadow: 0 0 10px rgba(35, 209, 139, 0.9); }
}
.discord-ticker-sep { margin: 0 4px; opacity: 0.4; }
.discord-ticker-divider {
  width: 1px; height: 16px; background: rgba(0, 229, 255, 0.12);
  flex-shrink: 0; margin: 0 12px;
}
.discord-ticker-track {
  flex: 1; overflow: hidden; position: relative;
  display: flex; align-items: center; height: 100%;
}
.discord-ticker-track::before,
.discord-ticker-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 1; pointer-events: none;
}
.discord-ticker-track::before { left: 0; background: linear-gradient(to right, rgba(0,4,14,0.97), transparent); }
.discord-ticker-track::after  { right: 0; background: linear-gradient(to left, rgba(0,4,14,0.97), transparent); }

.discord-ticker-scroll {
  display: inline-flex; white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  will-change: transform;
}
.discord-ticker-scroll:empty { animation: none; }
.discord-ticker-scroll:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.discord-ticker-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 12px;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.3px;
}
.discord-ticker-item::after { content: '·'; margin-left: 12px; opacity: 0.25; }
.discord-ticker-item .t-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.discord-ticker-item .t-dot.online { background: #23d18b; }
.discord-ticker-item .t-dot.idle   { background: #f5a623; }
.discord-ticker-item .t-dot.dnd    { background: #f04747; }

@media (max-width: 768px) {
  .discord-ticker { height: 26px; }
  .discord-ticker-track { display: none; }
  .discord-ticker-badge { font-size: 10px; }
  .discord-live-dot { width: 6px; height: 6px; }
  .nav { top: 26px; }
  body { padding-top: 90px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 580px; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  padding: 60px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: opacity 1.2s ease; z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,8,22,0.65) 0%, rgba(0,8,22,0.35) 40%, rgba(0,8,22,0.85) 100%);
}
.hero-bg[data-active="false"] { opacity: 0; }
.hero-bg[data-active="true"] { opacity: 1; }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-logo { height: 120px; width: auto; margin-bottom: 20px; filter: drop-shadow(0 0 20px var(--glow)); }
.hero h1 { margin-bottom: 14px; text-shadow: 0 0 30px rgba(0, 229, 255, 0.25); }
.hero h1 .accent { color: var(--accent); }
.hero p.hero-sub {
  font-size: 17px; color: var(--text-bright); margin-bottom: 28px;
  max-width: 580px; margin-left: auto; margin-right: auto; line-height: 1.5;
}

/* Scan line overlay */
.hero .scan-line {
  position: absolute; top: -4%; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,229,255,0.02), transparent);
  animation: scan-down 8s linear infinite; pointer-events: none; z-index: 1;
}

/* ── Stats bar ────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; padding: 20px 0;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Orbitron', sans-serif; font-size: 30px; font-weight: 700;
  color: var(--accent); text-shadow: 0 0 12px var(--glow); display: block;
}
.stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border: none; border-radius: 10px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; cursor: pointer; transition: var(--transition);
  text-decoration: none; text-transform: uppercase;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-dim) 0%, var(--accent-dark) 50%, var(--accent-darkest) 100%);
  color: var(--text-primary); border: 1px solid var(--glow);
  text-shadow: 0 0 6px var(--glow); box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}
.btn-primary:hover { box-shadow: 0 0 22px rgba(0, 229, 255, 0.25); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 10px var(--glow-dim); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold) 0%, #a08030 100%);
  color: #000816; border: 1px solid rgba(200, 168, 78, 0.5); text-shadow: none;
}
.btn-gold:hover { box-shadow: 0 0 18px rgba(200, 168, 78, 0.25); }
.btn-lg { padding: 14px 34px; font-size: 15px; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════════════ */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-void) 100%); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { font-size: 15px; color: var(--text-secondary); max-width: 580px; margin: 0 auto; }
.section-label {
  font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700;
  color: var(--accent-dim); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 8px; display: block;
}
.glow-sep { height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3) 20%, rgba(0, 229, 255, 0.5) 50%, rgba(0, 229, 255, 0.3) 80%, transparent); }

/* Page header (non-hero pages) */
.page-header {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-void) 100%);
  text-align: center;
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { font-size: 15px; color: var(--text-secondary); max-width: 580px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

/* ══════════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(6, 14, 30, 0.98) 100%);
  border: 1px solid var(--border-solid); border-radius: 12px; padding: 26px;
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.03), 0 0 1px var(--glow);
  transition: var(--transition);
}
.card:hover {
  box-shadow: inset 0 0 25px rgba(0, 229, 255, 0.06), 0 0 12px var(--glow-dim);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 10px; color: var(--text-primary); }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-size: 20px;
  background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--accent);
}
.card-icon-gold { background: rgba(200, 168, 78, 0.08); border-color: rgba(200, 168, 78, 0.15); color: var(--gold); }

/* Stat card */
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border-solid);
  border-radius: 12px; padding: 22px; text-align: center; transition: var(--transition);
}
.stat-card:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 0 18px rgba(0, 229, 255, 0.2); }
.stat-card .value {
  font-family: 'Orbitron', sans-serif; font-size: 30px; font-weight: 700;
  color: var(--accent); text-shadow: 0 0 10px var(--glow); display: block;
}
.stat-card .label { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

/* Guide card (link-style) */
.guide-card {
  position: relative; overflow: hidden; display: block; text-decoration: none;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(6, 14, 30, 0.98) 100%);
  border: 1px solid var(--border-solid); border-radius: 12px; padding: 28px;
  transition: var(--transition);
}
.guide-card:hover { border-color: var(--accent); box-shadow: 0 0 18px var(--glow-dim); transform: translateY(-2px); }
.guide-card h3 { color: var(--text-primary); margin-bottom: 6px; }
.guide-card p { color: var(--text-secondary); font-size: 13px; }
.guide-card .arrow {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 18px; opacity: 0; transition: var(--transition);
}
.guide-card:hover .arrow { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   FEATURE LIST
   ══════════════════════════════════════════════════════════════════════════ */
.feature-list { list-style: none; }
.feature-list li {
  padding: 10px 0; border-bottom: 1px solid rgba(10, 74, 92, 0.3);
  font-size: 14px; color: var(--text-bright); display: flex; align-items: flex-start; gap: 10px;
}
.feature-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--glow);
  flex-shrink: 0; margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   STEPS
   ══════════════════════════════════════════════════════════════════════════ */
.steps { display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 16px;
  background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent); text-shadow: 0 0 8px var(--glow);
}
.step-content h3 { font-size: 17px; margin-bottom: 3px; }
.step-content p { color: var(--text-secondary); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════════════════════════════ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: transparent; border: none; color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 600;
  padding: 18px 0; text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-question::after { content: '+'; font-size: 20px; color: var(--accent); transition: var(--transition); flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 0 18px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.faq-answer-inner a { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   COMPARISON TABLE
   ══════════════════════════════════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-responsive table { min-width: 600px; }

.compare-table {
  width: 100%; border-collapse: collapse;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(6, 14, 30, 0.98) 100%);
  border: 1px solid var(--border-solid); border-radius: 12px; overflow: hidden;
}
.compare-table th {
  text-align: left; font-size: 11px; font-weight: 700; color: var(--accent-dim);
  text-transform: uppercase; letter-spacing: 1.5px; padding: 12px 18px;
  border-bottom: 1px solid var(--border); background: rgba(0, 229, 255, 0.03);
}
.compare-table td {
  padding: 12px 18px; font-size: 13px; color: var(--text-bright);
  border-bottom: 1px solid rgba(10, 74, 92, 0.3);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(0, 229, 255, 0.02); }
.compare-table .highlight { background: rgba(0, 229, 255, 0.03); }

/* ══════════════════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.badge-cyan { background: rgba(0, 229, 255, 0.1); color: var(--accent); border: 1px solid rgba(0, 229, 255, 0.25); }
.badge-gold { background: rgba(200, 168, 78, 0.1); color: var(--gold); border: 1px solid rgba(200, 168, 78, 0.25); }
.badge-green { background: rgba(0, 230, 118, 0.1); color: var(--success); border: 1px solid rgba(0, 230, 118, 0.25); }
.badge-red { background: rgba(255, 23, 68, 0.1); color: var(--error); border: 1px solid rgba(255, 23, 68, 0.25); }

/* ══════════════════════════════════════════════════════════════════════════
   DONATE — PROGRESS BAR / TIERS
   ══════════════════════════════════════════════════════════════════════════ */
.progress-track { width: 100%; height: 8px; background: var(--bg-void); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); border-radius: 4px; transition: width 0.6s ease; box-shadow: 0 0 8px var(--glow); }

.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tier-card {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(6, 14, 30, 0.98) 100%);
  border: 1px solid var(--border-solid); border-radius: 12px; padding: 22px; text-align: center;
  transition: var(--transition);
}
.tier-card:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--glow-dim); }
.tier-price { font-family: 'Orbitron', sans-serif; font-size: 26px; font-weight: 700; color: var(--accent); text-shadow: 0 0 10px var(--glow); }
.tier-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 6px 0 3px; }
.tier-desc { font-size: 11px; color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════════════════════════
   DISCORD CTA
   ══════════════════════════════════════════════════════════════════════════ */
.discord-section {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(0, 229, 255, 0.04) 100%);
  border: 1px solid rgba(88, 101, 242, 0.2); border-radius: 12px; padding: 36px;
  text-align: center;
}
.discord-section h3 { margin-bottom: 6px; }
.discord-section p { color: var(--text-secondary); margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════════════════════
   TEAM GRID
   ══════════════════════════════════════════════════════════════════════════ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.team-card {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(6, 14, 30, 0.98) 100%);
  border: 1px solid var(--border-solid); border-radius: 12px; padding: 22px; text-align: center;
  transition: var(--transition);
}
.team-card:hover { border-color: var(--accent); box-shadow: 0 0 14px var(--glow-dim); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  background: rgba(0, 229, 255, 0.08); border: 2px solid var(--border-solid);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-size: 22px; color: var(--accent);
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 14px; margin-bottom: 3px; }
.team-card .role { font-size: 10px; color: var(--accent-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   RULES
   ══════════════════════════════════════════════════════════════════════════ */
.rules-section { margin-bottom: 28px; }
.rules-section h3 { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rules-list { list-style: none; counter-reset: rule; }
.rules-list li {
  counter-increment: rule; padding: 10px 0 10px 32px; border-bottom: 1px solid rgba(10, 74, 92, 0.2);
  font-size: 14px; color: var(--text-bright); position: relative; line-height: 1.6;
}
.rules-list li::before {
  content: counter(rule); font-family: 'Orbitron', sans-serif; font-size: 10px;
  font-weight: 700; color: var(--accent); position: absolute; left: 0; top: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SPEC GRID (system requirements)
   ══════════════════════════════════════════════════════════════════════════ */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.spec-card {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(6, 14, 30, 0.98) 100%);
  border: 1px solid var(--border-solid); border-radius: 12px; padding: 22px;
}
.spec-card h3 { font-size: 13px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.spec-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(10, 74, 92, 0.2); }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.spec-value { font-size: 12px; color: var(--text-bright); text-align: right; }

/* ══════════════════════════════════════════════════════════════════════════
   SEARCH INPUT
   ══════════════════════════════════════════════════════════════════════════ */
.search-wrap { position: relative; max-width: 480px; margin: 0 auto 28px; }
.search-input {
  width: 100%; padding: 12px 18px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif; font-size: 14px; transition: var(--transition);
}
.search-input::placeholder { color: rgba(94, 143, 163, 0.35); }
.search-input:focus { border-color: rgba(0, 229, 255, 0.5); box-shadow: 0 0 10px var(--glow-dim); outline: none; }

/* ══════════════════════════════════════════════════════════════════════════
   SERVER STATUS
   ══════════════════════════════════════════════════════════════════════════ */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.status-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(0, 230, 118, 0.4); }
.status-dot.offline { background: var(--error); box-shadow: 0 0 6px rgba(255, 23, 68, 0.4); }

/* ══════════════════════════════════════════════════════════════════════════
   ROADMAP
   ══════════════════════════════════════════════════════════════════════════ */
.roadmap-phase { margin-bottom: 36px; }
.roadmap-phase h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   SEO ARTICLE CONTENT
   ══════════════════════════════════════════════════════════════════════════ */
.article-content h2 { margin: 32px 0 14px; font-size: clamp(18px, 3vw, 26px); }
.article-content h3 { margin: 24px 0 10px; font-size: clamp(15px, 2.5vw, 20px); color: var(--accent); }
.article-content p { font-size: 15px; color: var(--text-bright); line-height: 1.7; }
.article-content ul { list-style: none; margin: 12px 0; }
.article-content ul li { padding: 4px 0 4px 18px; position: relative; font-size: 14px; color: var(--text-bright); }
.article-content ul li::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 4px var(--glow);
}

/* CTA banner (mid-article) */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(0, 229, 255, 0.02) 100%);
  border: 1px solid rgba(0, 229, 255, 0.2); border-radius: 12px; padding: 28px;
  text-align: center; margin: 32px 0;
}
.cta-banner h3 { margin-bottom: 6px; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(4, 8, 18, 0.98) 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.08); padding: 52px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand img { height: 30px; margin-bottom: 10px; }
.footer-brand p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700;
  color: var(--accent-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: 12px; color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); text-shadow: 0 0 6px var(--glow); }
.footer-bottom {
  border-top: 1px solid rgba(0, 229, 255, 0.06); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 11px; color: var(--text-secondary); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-secondary); font-size: 16px; transition: var(--transition); text-decoration: none; }
.footer-social a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   COPY BUTTON
   ══════════════════════════════════════════════════════════════════════════ */
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  background: rgba(0, 229, 255, 0.06); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-secondary); font-size: 11px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { border-color: var(--success); color: var(--success); }

/* ══════════════════════════════════════════════════════════════════════════
   PATCH ENTRIES
   ══════════════════════════════════════════════════════════════════════════ */
.patch-entry { margin-bottom: 28px; }

/* ══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes fade-in-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan-down { 0% { top: -4%; opacity: 0.6; } 100% { top: 104%; opacity: 0; } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }
.fade-in { animation: fade-in-up 0.5s ease both; }

/* Tracer lines */
.tracer-bg { position: relative; overflow: hidden; }
.tracer-bg::before {
  content: ''; position: absolute; top: 35%; left: 0; width: 180px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.5), rgba(0,229,255,0.8), transparent);
  animation: tracer-sweep 6s linear infinite; pointer-events: none;
}
.tracer-bg::after {
  content: ''; position: absolute; top: 65%; left: 0; width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), rgba(0,229,255,0.6), transparent);
  animation: tracer-sweep 9s linear infinite 2.5s; pointer-events: none;
}
@keyframes tracer-sweep { 0% { transform: translateX(-110%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(110vw); opacity: 0; } }

/* ══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  body { padding-top: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: 64px;
    left: 0; right: 0; bottom: 0; background: rgba(0, 8, 22, 0.98);
    padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 100; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    transform: translateZ(0);
  }
  .nav-links.open > li { width: 100%; }
  .nav-links.open .nav-link { padding: 12px 14px; font-size: 15px; }
  .nav-links.open .nav-dropdown { display: block; position: static; border: none; box-shadow: none; background: transparent; padding-left: 18px; }

  .hero { min-height: 460px; padding: 48px 20px 56px; }
  .stats-bar { gap: 20px; }
  .stat-value { font-size: 24px; }
  .section { padding: 48px 0; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { justify-content: center; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.form-card {
  max-width: 460px;
  margin: 0 auto;
  background: rgba(10, 18, 30, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 16px;
  padding: 36px 32px;
}
@media (max-width: 520px) {
  .form-card { padding: 28px 20px; border-radius: 12px; }
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.form-group input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.4;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 10px;
  outline: none;
  -webkit-transition: border-color .2s;
  transition: border-color .2s;
}
.form-group input:focus {
  border-color: #00e5ff;
  background: rgba(0,229,255,.05);
  -webkit-box-shadow: 0 0 0 3px rgba(0,229,255,.12);
  box-shadow: 0 0 0 3px rgba(0,229,255,.12);
}
.form-group input::-webkit-input-placeholder { color: rgba(255,255,255,.2); }
.form-group input::-moz-placeholder { color: rgba(255,255,255,.2); }
.form-group input::placeholder { color: rgba(255,255,255,.2); }
.form-error {
  background: rgba(255,60,60,.1);
  border: 1px solid rgba(255,80,80,.35);
  color: #ff7b7b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.link-btn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  color: #00e5ff;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
  line-height: inherit;
}
.link-btn:disabled { opacity: .45; cursor: default; }

/* ══════════════════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════════════════ */
@media print {
  .nav, .footer, .btn, .nav-toggle, .glow-sep, .scan-line { display: none !important; }
  body { background: white; color: black; font-size: 12pt; padding-top: 0; }
  a { color: black; text-decoration: underline; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero-bg { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Skill Calculator
   SWG profession skill tree builder
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Category accent colors ──────────────────────────────────────────────── */
:root {
  --cat-combat: #ff4444;
  --cat-crafting: #00e5ff;
  --cat-social: #c8a84e;
  --cat-outdoors: #00e676;
  --cat-science: #bb86fc;
}

/* ── Main wrapper ────────────────────────────────────────────────────────── */
.calc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Header / Point counter ──────────────────────────────────────────────── */
.calc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.calc-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.calc-header .calc-point-count {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent);
  white-space: nowrap;
}

.calc-header .calc-point-count.over-budget {
  color: var(--error);
}

/* ── Points progress bar ─────────────────────────────────────────────────── */
.calc-points-bar {
  flex: 1;
  min-width: 120px;
  height: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.calc-points-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  transition: width 0.3s ease;
  position: relative;
}

.calc-points-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, 0.15));
  border-radius: 3px;
}

.calc-points-fill.over-budget {
  background: linear-gradient(90deg, var(--error), #ff6666);
}

/* ── Toolbar: filter tabs + action buttons ───────────────────────────────── */
.calc-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.calc-toolbar .calc-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.calc-toolbar .calc-actions button {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-toolbar .calc-actions button:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ── Filter tabs ─────────────────────────────────────────────────────────── */
.calc-filter-tab {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  margin-bottom: -0.8rem;
}

.calc-filter-tab:hover {
  color: var(--text-primary);
}

.calc-filter-tab.active {
  color: var(--text-primary);
}

/* Category-colored underlines for active tabs */
.calc-filter-tab.active[data-cat="all"]       { border-bottom-color: var(--accent); }
.calc-filter-tab.active[data-cat="combat"]     { border-bottom-color: var(--cat-combat); }
.calc-filter-tab.active[data-cat="crafting"]   { border-bottom-color: var(--cat-crafting); }
.calc-filter-tab.active[data-cat="social"]     { border-bottom-color: var(--cat-social); }
.calc-filter-tab.active[data-cat="outdoors"]   { border-bottom-color: var(--cat-outdoors); }
.calc-filter-tab.active[data-cat="science"]    { border-bottom-color: var(--cat-science); }

/* ── Profession picker grid ──────────────────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* ── Profession card ─────────────────────────────────────────────────────── */
.calc-prof-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.calc-prof-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-solid);
}

.calc-prof-card .prof-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.calc-prof-card .prof-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.calc-prof-card .prof-points {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Category left-border colors */
.calc-prof-card[data-cat="combat"]   { border-left-color: var(--cat-combat); }
.calc-prof-card[data-cat="crafting"] { border-left-color: var(--cat-crafting); }
.calc-prof-card[data-cat="social"]   { border-left-color: var(--cat-social); }
.calc-prof-card[data-cat="outdoors"] { border-left-color: var(--cat-outdoors); }
.calc-prof-card[data-cat="science"]  { border-left-color: var(--cat-science); }

/* Selected state */
.calc-prof-card.selected {
  background: var(--bg-surface-light);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow-dim), inset 0 0 8px rgba(0, 229, 255, 0.05);
}

.calc-prof-card.selected[data-cat="combat"] {
  border-color: var(--cat-combat);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.2), inset 0 0 8px rgba(255, 68, 68, 0.05);
}

.calc-prof-card.selected[data-cat="crafting"] {
  border-color: var(--cat-crafting);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2), inset 0 0 8px rgba(0, 229, 255, 0.05);
}

.calc-prof-card.selected[data-cat="social"] {
  border-color: var(--cat-social);
  box-shadow: 0 0 12px rgba(200, 168, 78, 0.2), inset 0 0 8px rgba(200, 168, 78, 0.05);
}

.calc-prof-card.selected[data-cat="outdoors"] {
  border-color: var(--cat-outdoors);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2), inset 0 0 8px rgba(0, 230, 118, 0.05);
}

.calc-prof-card.selected[data-cat="science"] {
  border-color: var(--cat-science);
  box-shadow: 0 0 12px rgba(187, 134, 252, 0.2), inset 0 0 8px rgba(187, 134, 252, 0.05);
}

/* ── Skill tree view ─────────────────────────────────────────────────────── */
.calc-tree {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

/* ── Tree header ─────────────────────────────────────────────────────────── */
.calc-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.calc-tree-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.calc-tree-header .calc-tree-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
  line-height: 1;
}

.calc-tree-header .calc-tree-close:hover {
  background: var(--bg-surface-hover);
  color: var(--error);
  border-color: var(--error);
}

/* ── Master box ──────────────────────────────────────────────────────────── */
.calc-master-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  user-select: none;
}

.calc-master-box .skill-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-master-box:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-solid);
}

.calc-master-box.learned {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--glow), inset 0 0 12px rgba(0, 229, 255, 0.04);
}

.calc-master-box.learned .skill-name {
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow);
}

.calc-master-box.locked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Branch grid: 4 columns ──────────────────────────────────────────────── */
.calc-branch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* ── Single branch column ────────────────────────────────────────────────── */
.calc-branch {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Branch label ────────────────────────────────────────────────────────── */
.calc-branch-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

/* ── Individual skill box ────────────────────────────────────────────────── */
.calc-skill-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.5rem 0.4rem;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  user-select: none;
  position: relative;
}

.calc-skill-box .skill-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.15;
  transition: color var(--transition);
}

.calc-skill-box .skill-tier {
  position: absolute;
  top: 2px;
  right: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(94, 143, 163, 0.4);
}

.calc-skill-box:hover:not(.locked) {
  background: var(--bg-surface-hover);
  border-color: var(--border-solid);
}

.calc-skill-box:hover:not(.locked) .skill-name {
  color: var(--text-primary);
}

/* Learned / selected state */
.calc-skill-box.learned {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), inset 0 0 8px rgba(0, 229, 255, 0.04);
}

.calc-skill-box.learned .skill-name {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.calc-skill-box.learned .skill-tier {
  color: rgba(0, 229, 255, 0.5);
}

/* Locked / greyed out state */
.calc-skill-box.locked {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Novice box ──────────────────────────────────────────────────────────── */
.calc-novice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  user-select: none;
}

.calc-novice-box .skill-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-novice-box:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-solid);
}

.calc-novice-box.learned {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow-dim), inset 0 0 8px rgba(0, 229, 255, 0.04);
}

.calc-novice-box.learned .skill-name {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.calc-novice-box.locked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Share toast notification ────────────────────────────────────────────── */
.calc-share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-surface-light);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  box-shadow: 0 0 24px var(--glow), 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.calc-share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ── Responsive: tablet ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .calc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .calc-container {
    padding: 1.25rem 1rem 3rem;
  }

  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .calc-points-bar {
    width: 100%;
  }

  .calc-toolbar {
    gap: 0.25rem;
  }

  .calc-filter-tab {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }

  /* Compact tree on tablet */
  .calc-tree {
    padding: 1rem;
  }

  .calc-branch-grid {
    gap: 0.35rem;
  }

  .calc-skill-box {
    min-height: 40px;
    padding: 0.35rem 0.25rem;
  }

  .calc-skill-box .skill-name {
    font-size: 0.7rem;
  }

  .calc-branch-label {
    font-size: 0.65rem;
  }

  .calc-master-box .skill-name,
  .calc-novice-box .skill-name {
    font-size: 0.8rem;
  }
}

/* ── Responsive: phone ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-toolbar .calc-actions {
    margin-left: 0;
    width: 100%;
  }

  .calc-toolbar .calc-actions button {
    flex: 1;
  }

  .calc-skill-box {
    min-height: 36px;
    padding: 0.3rem 0.2rem;
  }

  .calc-skill-box .skill-name {
    font-size: 0.65rem;
  }

  .calc-skill-box .skill-tier {
    display: none;
  }

  .calc-branch-label {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }
}
