:root {
  --bg: #07090f;
  --bg-elev: #0c101b;
  --bg-card: #101625;
  --bg-card-hover: #151d30;
  --border: rgba(216, 168, 78, 0.18);
  --border-strong: rgba(216, 168, 78, 0.42);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --gold: #dfb152;
  --gold-bright: #f5d68a;
  --gold-dim: #9e762c;
  --sapphire: #3b82f6;
  --sapphire-glow: rgba(59, 130, 246, 0.22);
  --emerald: #10b981;
  --crimson: #ef4444;
  --amber: #f59e0b;
  --text: #eef2f9;
  --text-muted: #98a4bc;
  --text-dim: #64718a;
  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at 82% 8%, rgba(216, 168, 78, 0.08), transparent 40%),
              radial-gradient(circle at 12% 38%, rgba(59, 130, 246, 0.07), transparent 44%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 15, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(223, 177, 82, 0.28));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.realm-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.11);
  border: 1px solid rgba(59, 130, 246, 0.34);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #93c5fd;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #f3d179 0%, #c99432 100%);
  color: #090b10;
  box-shadow: 0 8px 26px rgba(216, 168, 78, 0.28);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(216, 168, 78, 0.42);
  filter: brightness(1.05);
}

.btn-outline {
  background: rgba(16, 22, 37, 0.75);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: rgba(223, 177, 82, 0.12);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.16);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.79rem;
  border-radius: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 52px 0 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0.86;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.96) 0%, rgba(7, 9, 15, 0.87) 42%, rgba(7, 9, 15, 0.34) 76%, rgba(7, 9, 15, 0.56) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.35) 0%, transparent 25%, rgba(7, 9, 15, 0.92) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(223, 177, 82, 0.11);
  border: 1px solid rgba(223, 177, 82, 0.38);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.85vw, 3.55rem);
  line-height: 1.09;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.75);
}

.hero h1 span {
  background: linear-gradient(120deg, #fae29c 0%, #dfb152 55%, #b88225 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.04rem;
  color: #cbd5e7;
  max-width: 600px;
  margin-bottom: 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.stat-chip {
  background: rgba(11, 15, 26, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero Right Glass Telemetry Card */
.hero-terminal {
  background: rgba(10, 14, 24, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(223, 177, 82, 0.08);
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ticker-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}

.ticker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(16, 22, 37, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.ticker-item {
  display: flex;
  flex-direction: column;
}

.ticker-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.ticker-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ticker-price {
  text-align: right;
  font-family: var(--font-mono);
}

.ticker-gold {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.delta-up { color: #34d399; font-size: 0.72rem; }
.delta-down { color: #f87171; font-size: 0.72rem; }

.terminal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.terminal-foot span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections */
section.band {
  padding: 84px 0;
  border-bottom: 1px solid rgba(216, 168, 78, 0.1);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
}

.section-desc {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Section 1: Product Trio Showcase */
.trio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
}

.trio-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trio-card {
  text-align: left;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--text);
}

.trio-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(223, 177, 82, 0.35);
}

.trio-card.active {
  background: linear-gradient(135deg, rgba(223, 177, 82, 0.13) 0%, rgba(16, 22, 37, 0.96) 65%);
  border-color: var(--gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), inset 3px 0 0 var(--gold-bright);
}

.trio-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.trio-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(223, 177, 82, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(223, 177, 82, 0.28);
}

.trio-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.trio-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

.trio-stage {
  background: linear-gradient(180deg, #0d1322 0%, #090c15 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}

.stage-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(223, 177, 82, 0.25);
  background: #06080d;
}

.stage-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stage-overlay-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
}

.stage-details {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.stage-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  list-style: none;
  margin-top: 10px;
}

.stage-specs li {
  font-size: 0.83rem;
  color: #d6deee;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-specs li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Section 2: Datamining & MMO-Champion Style Community Hub */
.hub-shell {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hub-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(16, 22, 37, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-tab {
  padding: 9px 16px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hub-tab:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.hub-tab.active {
  background: rgba(223, 177, 82, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.hub-meta-stamp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hub-body {
  padding: 24px;
}

.hub-panel {
  display: none;
}

.hub-panel.active {
  display: block;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 22, 37, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-pill.active, .filter-pill:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(223, 177, 82, 0.12);
}

.search-input {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.84rem;
  min-width: 240px;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Gold Routes Grid */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

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

.route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.route-rate {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  color: #34d399;
  white-space: nowrap;
}

.route-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.route-zone {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
}

.route-notes {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.tag-blue { background: rgba(59, 130, 246, 0.16); color: #93c5fd; }
.tag-gold { background: rgba(223, 177, 82, 0.15); color: var(--gold-bright); }
.tag-green { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.tag-red { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }

/* AH Market Watch Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

table.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

table.market-table th {
  text-align: left;
  padding: 12px 15px;
  background: rgba(16, 22, 37, 0.95);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  user-select: none;
}

table.market-table th:hover {
  color: var(--gold-bright);
}

table.market-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
}

table.market-table tr:last-child td {
  border-bottom: none;
}

table.market-table tbody tr:hover {
  background: rgba(223, 177, 82, 0.05);
}

.mono { font-family: var(--font-mono); }

/* Datamining Feed */
.datamine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.datamine-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 18px 20px;
}

.datamine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.datamine-card h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

.datamine-diff {
  margin-top: 10px;
  background: #070a12;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 9px;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.diff-add { color: #34d399; }
.diff-chg { color: var(--gold-bright); }

/* Theorycrafting Forum */
.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
}

.forum-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.thread-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.thread-row:hover, .thread-row.selected {
  border-color: var(--gold);
  background: var(--bg-card-hover);
}

.vote-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 6px;
  border-radius: 9px;
  background: rgba(7, 9, 15, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.vote-box.voted {
  background: rgba(223, 177, 82, 0.18);
  border-color: var(--gold);
}

.thread-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.thread-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.thread-stats {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.thread-reader {
  background: #0a0e18;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reply-bubble {
  background: rgba(16, 22, 37, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
}

.reply-author {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-bright);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

/* Section 3: <MMO Guard> Alliance Clan & Creator Pass */
.clan-banner {
  background: linear-gradient(125deg, rgba(29, 78, 216, 0.16) 0%, rgba(16, 22, 37, 0.96) 52%, rgba(223, 177, 82, 0.12) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: center;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.roster-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(7, 9, 15, 0.65);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.tier-card.featured {
  background: linear-gradient(180deg, rgba(223, 177, 82, 0.12) 0%, #101625 45%);
  border-color: var(--gold);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 6px;
}

.tier-price span {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tier-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.tier-perks li {
  font-size: 0.85rem;
  color: #d3dced;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.tier-perks li::before {
  content: "✓";
  color: var(--gold-bright);
  font-weight: 700;
}

.social-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-pill {
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(16, 22, 37, 0.9);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.18s ease;
}

.social-pill:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Right-Rail Floating Co-Pilot Widget & Slide-Over Drawer */
.copilot-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #172138 0%, #0b101d 100%);
  border: 1px solid var(--gold);
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(223, 177, 82, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copilot-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.72), 0 0 32px rgba(223, 177, 82, 0.38);
}

.copilot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d179, #9e762c);
  color: #090c14;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
}

.copilot-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 430px;
  max-width: 100vw;
  z-index: 80;
  background: #0a0e18;
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.copilot-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(223, 177, 82, 0.14), rgba(11, 16, 29, 0.96));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0c111e;
}

.drawer-mode-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.drawer-mode-btn.active {
  background: rgba(223, 177, 82, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.drawer-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.drawer-pane.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.msg {
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 92%;
}

.msg-bot {
  align-self: flex-start;
  background: #121a2d;
  border: 1px solid var(--border);
  color: #e4ebf7;
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(223, 177, 82, 0.24), rgba(223, 177, 82, 0.12));
  border: 1px solid rgba(223, 177, 82, 0.45);
  color: #fff;
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  font-size: 0.74rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
  cursor: pointer;
  text-align: left;
}

.preset-chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.chat-form input {
  flex: 1;
  background: #070a12;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.84rem;
}

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

/* Calculator inside Drawer */
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.calc-field select, .calc-field input[type="number"] {
  background: #070a12;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 11px;
  color: #fff;
  font-size: 0.85rem;
}

.calc-field input[type="range"] {
  accent-color: var(--gold);
}

.cd-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.cd-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 8px;
  background: #101727;
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  cursor: pointer;
}

.calc-result-card {
  background: linear-gradient(145deg, rgba(223, 177, 82, 0.14), rgba(16, 22, 37, 0.95));
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #34d399);
  transition: width 0.25s ease;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 490px;
  background: #0d1322;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 16px;
}

.modal-form input, .modal-form select {
  width: 100%;
  background: #070a12;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.87rem;
}

footer.site-footer {
  padding: 44px 0 88px;
  background: #05070c;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .hero-grid, .trio-layout, .forum-layout, .clan-banner {
    grid-template-columns: 1fr;
  }
  .routes-grid, .tiers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero-stats, .routes-grid, .datamine-grid, .tiers-grid {
    grid-template-columns: 1fr;
  }
  .realm-pill { display: none; }
}
