/* =========================================================================
   Smoke — The #1 Minecraft Utility Client
   Dark / smoke theme. Monochrome with glowing white accents.
   ========================================================================= */
:root {
  --bg:        #000000;
  --bg-2:      #101013;
  --bg-3:      #16161b;
  --panel:     #131318;
  --border:    #26262e;
  --border-2:  #34343f;
  --text:      #f4f4f5;
  --muted:     #9a9aa5;
  --muted-2:   #6b6b76;
  --accent:    #ffffff;
  --accent-2:  #d4d4d8;
  --smoke:     rgba(255,255,255,0.08);
  --danger:    #f87171;
  --success:   #4ade80;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 40px rgba(0,0,0,0.5);
  --glow:      0 0 24px rgba(255,255,255,0.15);
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient smoke background — solid black with soft blurred corner glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 30% 30% at 0% 0%, rgba(120,120,140,0.10), transparent 70%),
    radial-gradient(ellipse 30% 30% at 100% 0%, rgba(120,120,140,0.08), transparent 70%),
    radial-gradient(ellipse 30% 30% at 0% 100%, rgba(120,120,140,0.08), transparent 70%),
    radial-gradient(ellipse 30% 30% at 100% 100%, rgba(120,120,140,0.10), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* ========================= NAVBAR ========================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10,10,12,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand .brand-logo { height: 56px; width: 56px; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
.nav-emblem {
  width: 30px; height: 30px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
  pointer-events: none;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.brand .brand-mark { height: 34px; width: 34px; object-fit: cover; border-radius: 8px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.25)); }
.brand .brand-name { color: var(--text); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted);
  font-size: 0.92rem; font-weight: 500; transition: all .15s;
}
.nav-links a:hover { color: var(--text); background: var(--smoke); }
.nav-links a.active { color: var(--text); background: var(--smoke); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: all .15s; white-space: nowrap; border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent); color: #0a0a0c;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255,255,255,0.3); }
.btn-ghost { background: var(--smoke); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); border-color: var(--border-2); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hamburger { display: none; font-size: 1.5rem; padding: 6px; }

/* ========================= HERO ========================= */
.hero {
  position: relative;
  padding: 70px 0 140px;
  overflow: hidden;
}
.hero-stack {
  position: relative;
  max-width: 560px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-side-logo {
  position: absolute;
  left: 4%; top: 20px;
  width: 320px; height: auto; object-fit: contain;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 1100px) {
  .hero-side-logo { width: 220px; left: 2%; opacity: 0.55; }
}
@media (max-width: 860px) {
  .hero-side-logo { display: none; }
}
.hero-title-wrap {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 18px;
}
.hero-title-icon {
  width: 72px; height: 72px; object-fit: contain;
  border-radius: 14px;
}
.hero-name {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1; margin: 0;
}
.hero-headline {
  font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.04; margin: 0 0 16px;
  text-align: center;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted);
  margin: 0 0 32px; font-weight: 500; max-width: 540px;
}
.hero-cta {
  background: #fff; color: #000; font-weight: 700;
  padding: 12px 32px; border-radius: 999px; font-size: 1rem;
  border: none; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(255,255,255,0.12);
}
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(255,255,255,0.22); }
.hero-checklist {
  list-style: none; display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
  margin: 22px 0 0; padding: 0;
}
.hero-checklist li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.98rem; font-weight: 600; color: var(--text);
}
.hero-checklist .tick { color: var(--success); font-size: 1.05rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Faint particles near the hero actions (clean, not too visible) */
.particles { position: relative; height: 0; overflow: visible; pointer-events: none; }
.particle {
  position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 0.5; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-120px) scale(1.6); opacity: 0; }
}

/* ========================= STATS BAR ========================= */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  background: var(--bg);
  padding: 36px 20px; text-align: center;
}
.stat .num {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em;
  font-family: var(--mono);
}
.stat .label { color: var(--muted); font-size: 0.88rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ========================= SECTION ========================= */
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head .eyebrow {
  color: var(--muted-2); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ========================= FEATURE GRID ========================= */
.feature-filters {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px;
}
.chip {
  padding: 7px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted);
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px;
}
.feature-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .2s; position: relative; overflow: hidden;
}
.feature-card:hover {
  border-color: var(--border-2); transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0; transition: opacity .2s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { margin-bottom: 16px; line-height: 1; }
.feature-icon .icon, .plat-icon .icon { width: 28px; height: 28px; color: var(--text); opacity: 0.9; }
.dl-card .plat-icon .icon { width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.feature-card .cat { color: var(--muted-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 0.94rem; }
.badge-premium {
  font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 5px;
  background: rgba(255,255,255,0.12); color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ========================= CLIENT WINDOW (module showcase) ========================= */
/* A glassmorphic mock of the in-game Click GUI: framed translucent window with
   a category sidebar and module rows that carry toggle switches. Inspired by the
   client UI reference (frosted surface, hairline dividers, accent toggle). */
.clientwin {
  display: grid; grid-template-columns: 220px 1fr;
  max-width: 920px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  min-height: 440px;
}

/* ---- sidebar ---- */
.clientwin-sidebar {
  background: rgba(0, 0, 0, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 14px;
  display: flex; flex-direction: column;
}
.clientwin-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 0 6px; }
.clientwin-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.clientwin-brandname { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--text); }

.clientwin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.clientwin-navitem {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: background 180ms ease, color 180ms ease;
  position: relative;
}
.clientwin-navitem:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.clientwin-navitem.is-active { background: rgba(255, 255, 255, 0.10); color: var(--text); }
.clientwin-navitem.is-active::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--text); border-radius: 0 3px 3px 0;
}
.clientwin-navdot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--muted-2); transition: background 180ms ease;
}
.clientwin-navitem.is-active .clientwin-navdot { background: var(--success); box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.clientwin-navlabel { flex: 1; }
.clientwin-navcount {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted-2);
  background: rgba(255,255,255,0.05); padding: 1px 7px; border-radius: 8px;
}

.clientwin-profile {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 13px;
}
.clientwin-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3a3a44, #1a1a1f); border: 2px solid rgba(255,255,255,0.15);
}
.clientwin-user { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.clientwin-user strong { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.clientwin-user span { font-size: 0.72rem; color: var(--muted-2); }

/* ---- main panel ---- */
.clientwin-main { padding: 26px 30px; overflow: hidden; }
.clientwin-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.clientwin-title { font-family: var(--sans); font-weight: 700; font-size: 1.35rem; color: var(--text); margin: 0 0 2px; }
.clientwin-sub { font-size: 0.82rem; color: var(--muted); margin: 0; }
.clientwin-pill {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* ---- module rows (match the client Click GUI reference exactly) ---- */
.module-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.module-list.cw-fade { animation: cwFade 0.32s ease; }
@keyframes cwFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.module-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 14px;
  border-radius: 12px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, padding-left 0.2s ease;
  cursor: pointer;
  position: relative;
}
.module-row:first-child { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.module-row:last-child { border-bottom: none; }
/* Hover: the whole row lights up + nudges right, like the reference client. */
.module-row:hover {
  background: rgba(255, 255, 255, 0.06);
  padding-left: 22px;
}

/* Enabled state — left accent bar + brighter name, like the client's "on" look */
.module-row.enabled { background: rgba(255, 255, 255, 0.04); }
.module-row.enabled::after {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--text); border-radius: 0 3px 3px 0;
}

.module-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.module-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.98rem; font-weight: 600; color: var(--text);
}
.module-row.enabled .module-name { color: #fff; }
.pro-tag {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #0a0a0b; background: var(--text); padding: 2px 6px; border-radius: 4px;
}
.module-desc {
  font-size: 0.82rem; color: var(--muted); line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- toggle switch (reference client styling) ---- */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px; transition: 0.3s;
}
.slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 50%;
  transform: translateY(-50%); background: #fff; border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .slider { background: var(--text); border-color: var(--text); }
.switch input:checked + .slider::before { transform: translate(20px, -50%); background: #0a0a0b; }

/* ---- responsive ---- */
@media (max-width: 720px) {
  .clientwin { grid-template-columns: 1fr; min-height: 0; }
  .clientwin-sidebar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .clientwin-brand { margin-bottom: 0; }
  .clientwin-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .clientwin-navitem { padding: 7px 10px; }
  .clientwin-navitem.is-active::before { display: none; }
  .clientwin-navcount { display: none; }
  .clientwin-profile { display: none; }
  .module-desc { white-space: normal; }
}

/* ========================= SHOWCASE / SPLIT ========================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-text { order: 2; }
.code-block {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; font-family: var(--mono); font-size: 0.85rem;
}
.code-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--bg-3);
}
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.code-head .file { color: var(--muted-2); font-size: 0.78rem; margin-left: 8px; }
.code-body { padding: 18px 20px; line-height: 1.7; white-space: pre; overflow-x: auto; }
.code-body .k { color: #c6c6d0; }     /* keyword */
.code-body .s { color: #9aa0aa; }     /* string */
.code-body .c { color: #5a5a66; font-style: italic; } /* comment */
.code-body .n { color: #f4f4f5; }     /* name */
.code-body .v { color: #b0b0bb; }     /* value */

.split-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.split-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; color: var(--text); }
.check-list .tick { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ========================= CHANGELOG ========================= */
/* ========================= CHANGELOG TREE VIEW ========================= */
/* Indented hierarchy with branch connector lines (├── / └── style). */

/* Empty state shown while the client is in beta (no releases yet). */
.beta-status {
  max-width: 520px; margin: 0 auto; padding: 40px 28px;
  text-align: center;
  background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: 14px;
}
.beta-status-icon {
  width: 44px; height: 44px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border-2);
  border-radius: 50%;
}
.beta-status-icon svg { width: 22px; height: 22px; }
.beta-status h3 {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin: 0 0 10px;
}
.beta-status p {
  font-size: 0.92rem; line-height: 1.6; color: var(--muted);
  margin: 0 0 8px; max-width: 420px; margin-left: auto; margin-right: auto;
}
.beta-status-note { font-size: 0.8rem !important; color: var(--muted-2); }

.tree { max-width: 720px; margin: 0 auto; padding: 4px 0; font-family: var(--mono); }
.tree-children { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
/* Each child level has a vertical guide line on its left. */
.tree-children::before {
  content: ""; position: absolute; left: 7px; top: 0; bottom: 14px;
  width: 1px; background: var(--border-2);
}
.tree-node { position: relative; padding: 7px 0; }
/* The elbow connector: horizontal stub from the guide line to this node. */
.tree-node > .tree-branch {
  position: absolute; left: -15px; top: 0; height: 19px; width: 14px;
  border-left: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
  border-bottom-left-radius: 6px;
  pointer-events: none;
}
/* Last child: the vertical guide stops at this node (no line continuing down). */
.tree-node.is-last > .tree-branch { height: 19px; }
.tree-node.is-last:last-child::after {
  content: ""; position: absolute; left: -15px; top: 19px; bottom: 0;
  width: 1px; background: var(--bg);
}
/* Version row (folder-like). */
.tree-version { padding: 10px 0 4px; }
.tree-version > .tree-branch { top: 0; height: 22px; border-color: var(--border-2); }
.tree-version.is-last > .tree-branch { height: 22px; }
.tree-label { display: inline-flex; align-items: baseline; gap: 12px; }
.tree-ver { font-size: 1rem; color: var(--text); }
.tree-date { color: var(--muted-2); font-size: 0.82rem; }
/* Change rows (leaves). */
.tree-change { padding: 4px 0; }
.tree-change > .tree-branch { top: 0; height: 17px; }
.tree-change-row { display: inline-flex; align-items: center; gap: 10px; }
.cl-type {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--sans); flex-shrink: 0; min-width: 64px;
}
.cl-type-new      { color: #facc15; }      /* yellow — matches star */
.cl-type-improved { color: #4ade80; }      /* green — matches up arrow */
.cl-type-fixed    { color: #60a5fa; }      /* blue — matches wrench */
.tree-change-text { color: var(--muted); font-size: 0.9rem; font-family: var(--sans); }
.cl-icon { width: 15px; height: 15px; flex-shrink: 0; }
.cl-new      { color: #facc15; }      /* star — new feature */
.cl-improved { color: #4ade80; }      /* up arrow — improvement */
.cl-fixed    { color: #60a5fa; }      /* wrench — fix */

/* ========================= DASHBOARD EXTRAS ========================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-num { font-size: 1.5rem; font-weight: 700; font-family: var(--mono); color: var(--text); }
.stat-card .stat-label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

.dl-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; margin-top: 18px;
}
.dl-hero-icon { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--bg-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-hero-icon img { width: 100%; height: 100%; object-fit: contain; }
.dl-hero-meta { flex: 1; min-width: 200px; }
.dl-hero-name { font-size: 1.15rem; font-weight: 700; }
.dl-hero-sub { color: var(--muted); font-size: 0.88rem; font-family: var(--mono); margin-top: 2px; }
.dl-msg { margin-top: 14px; color: var(--danger); font-size: 0.9rem; }

.dl-version-select { margin-bottom: 20px; }
.dl-version-select > label { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.dl-version-options { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-version-btn {
  padding: 10px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--bg-2); color: var(--muted);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  transition: all 0.15s;
}
.dl-version-btn:hover { border-color: var(--text); color: var(--text); }
.dl-version-btn.is-active {
  background: var(--text); color: #0a0a0b; border-color: var(--text);
}
.dl-version-opt { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all .15s; }
.dl-version-opt:hover { border-color: var(--border-2); }
.dl-version-opt input { accent-color: var(--accent); }
.dl-version-opt:has(input:checked) { border-color: var(--accent); background: var(--smoke); }
.dl-version-label { font-size: 0.92rem; font-weight: 500; }

.steps { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.step { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--smoke); color: var(--text); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.step h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 3px; }
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.step .mono { color: var(--text); }

/* ========================= DOWNLOAD ========================= */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dl-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: all .2s; cursor: pointer;
}
.dl-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.dl-card .plat-icon { font-size: 2.4rem; margin-bottom: 14px; }
.dl-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.dl-card .size { color: var(--muted-2); font-size: 0.85rem; font-family: var(--mono); margin-bottom: 18px; }

.sys-req {
  margin-top: 60px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.sys-req h3 { font-size: 1.2rem; margin-bottom: 18px; }
.sys-req ul { list-style: none; }
.sys-req li { padding: 6px 0; color: var(--muted); padding-left: 22px; position: relative; }
.sys-req li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ========================= AUTH ========================= */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-card {
  position: relative;
  width: 100%; max-width: 400px; background: var(--panel);
  border: 1px solid var(--border); border-top-color: rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
}
.auth-card .logo-sm { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 20px; border-radius: 12px; }
.auth-card h1 {
  text-align: center; font-family: var(--sans); font-size: 1.3rem; font-weight: 700;
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 28px; font-size: 0.9rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; color: var(--accent-2); }
.field input {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 0.95rem; font-family: var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover { border-color: var(--border-2); }
.field input:focus { outline: none; border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(255,255,255,0.10); }
.field input::placeholder { color: var(--muted-2); font-family: var(--sans); }
/* Password field + show/hide toggle */
.field-pw { position: relative; }
.field-pw input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 10px; top: 30px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted-2); border: none; cursor: pointer; border-radius: 6px;
  transition: color .15s;
}
.pw-toggle:hover { color: var(--muted); }
.pw-toggle svg { width: 18px; height: 18px; }
.auth-error {
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3);
  color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }
.auth-error.auth-error-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.auth-error.auth-error-link a {
  color: var(--text); font-weight: 700; text-decoration: none; font-size: 0.92rem;
  border-bottom: 1px solid rgba(248,113,113,0.5); padding-bottom: 1px;
}
.auth-error.auth-error-link a:hover { color: #fff; border-bottom-color: #fff; }
.auth-info {
  background: rgba(163,230,53,0.08); border: 1px solid rgba(163,230,53,0.25);
  color: #d9f99d; padding: 12px 14px; border-radius: 8px; font-size: 0.88rem; line-height: 1.5;
  margin-bottom: 16px; text-align: center;
  display: none;
}
.auth-info.show { display: block; }
.field-extra { text-align: right; margin: -6px 0 18px; }
.forgot-link {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  text-decoration: none; transition: color 0.15s;
}
.forgot-link:hover { color: var(--text); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.auth-switch a { color: var(--accent-2); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
/* Checkout plan + price */
.checkout-card { max-width: 420px; }
.checkout-plan { margin-bottom: 24px; }
.checkout-plan-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text);
}
.checkout-plan-row:last-child { border-bottom: none; }
.checkout-plan-row .tick { color: var(--success); font-size: 0.9rem; }
.checkout-price { text-align: center; margin-bottom: 24px; font-family: var(--mono); }
.checkout-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.checkout-period { color: var(--muted); font-size: 1rem; }
.checkout-note { text-align: center; color: var(--muted-2); font-size: 0.82rem; margin-top: 14px; }
.checkout-note code { font-family: var(--mono); color: var(--muted); }
/* License key heads-up on the checkout page. */
.checkout-license-hint {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; margin: 0 0 8px;
  background: rgba(163,230,53,0.06); border: 1px solid rgba(163,230,53,0.18);
  border-radius: var(--radius-sm);
}
.checkout-license-hint svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--success); margin-top: 1px; }
.checkout-license-hint span { color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.checkout-license-hint strong { color: var(--text); }

/* ========================= PRICING / TIERS ========================= */
/* Two sections (Smoke, Smoke Beta). Each lists feature checks, then a row of
   glass tier cards with per-tier Buy buttons. All paid, final sale. */

.plan-group { margin-bottom: 56px; }
.plan-group-beta { margin-top: 8px; }
.plan-group-head { text-align: center; margin-bottom: 28px; }
.plan-group-head h3 {
  font-family: var(--sans); font-weight: 800; font-size: 1.6rem;
  letter-spacing: -0.02em; color: var(--text); margin: 0 0 8px;
  display: inline-flex; align-items: center; gap: 10px;
}
.plan-group-head p { color: var(--muted); font-size: 0.95rem; max-width: 460px; margin: 0 auto; }
.plan-tag {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #0a0a0b; background: var(--text);
  padding: 3px 8px; border-radius: 5px; vertical-align: middle;
}

/* Feature checklist shared by both sections. */
.plan-features {
  list-style: none; padding: 0; margin: 0 auto 32px;
  max-width: 440px;
  display: flex; flex-direction: column; gap: 4px;
}
.plan-features li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  font-size: 0.95rem; color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.feat-check {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--success);
  background: rgba(74, 222, 128, 0.1);
  border-radius: 50%; padding: 2px;
}

/* Tier card grid. */
.tier-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 880px; margin: 0 auto;
}
.tier-grid-single { grid-template-columns: 1fr; max-width: 280px; }

.tier-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 26px 20px 22px;
  text-align: center;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.tier-card:hover { border-color: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.tier-card.is-featured {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55),
              0 0 28px rgba(255, 255, 255, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tier-card.has-badge { padding-top: 34px; }

.tier-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #0a0a0b; background: var(--success);
  padding: 4px 10px; border-radius: 5px; white-space: nowrap;
}
/* Sale variant — red badge + a subtle pulse so it draws the eye. */
.tier-badge-sale {
  background: var(--danger); color: #fff;
  animation: salePulse 2s ease-in-out infinite;
}
@keyframes salePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
}
/* The whole card gets a faint red glow when on sale. */
.tier-card.is-on-sale {
  border-color: rgba(248, 113, 113, 0.30);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55),
              0 0 24px rgba(248, 113, 113, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Strikethrough "was" price, sits above the sale price. */
.tier-was {
  font-family: var(--mono); font-size: 0.85rem; color: var(--muted-2);
  text-decoration: line-through; text-decoration-color: var(--danger);
  width: 100%; text-align: center; margin-bottom: -2px;
}

.tier-name {
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem;
  color: var(--text); text-transform: uppercase; letter-spacing: 1px;
}
.tier-price {
  font-family: var(--mono);
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  margin: 6px 0 18px;
}
.tier-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.tier-duration { color: var(--muted); font-size: 0.82rem; }

.tier-buy {
  display: block; width: 100%;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.tier-buy:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.tier-buy.is-featured {
  background: var(--text); color: #0a0a0b; border-color: var(--text);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}
.tier-buy.is-featured:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 255, 255, 0.32); }

/* Smoke Beta card variant. */
.tier-card-beta { padding: 30px 20px; }

/* Final-sale notice. */
.final-sale {
  max-width: 640px; margin: 8px auto 0;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.18);
  border-radius: var(--radius-sm);
}
.final-sale svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--danger); margin-top: 1px; }
.final-sale strong { display: block; color: var(--text); font-size: 0.92rem; margin-bottom: 2px; }
.final-sale span { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* ========================= FAQ ========================= */
/* Native <details>/<summary> accordion. JS (app.js) handles the smooth
   height animation since CSS alone can't transition <details> height. */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 420ms ease, transform 420ms ease, box-shadow 420ms ease;
}
.faq-item:hover {
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.faq-item[open] {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--text);
  transition: color 240ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary:hover .faq-chevron { color: var(--text); }

/* The chevron sits in a circular badge that fills on open. */
.faq-chevron-wrap {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background 420ms ease, border-color 420ms ease, color 420ms ease;
}
.faq-item[open] .faq-chevron-wrap {
  background: var(--text); border-color: var(--text); color: #0a0a0b;
}
.faq-chevron {
  width: 16px; height: 16px;
  /* Slower + slight overshoot for a springy, more animated feel. */
  transition: transform 560ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

/* The answer animates with the grid-template-rows technique (0fr → 1fr) for a
   smooth, snap-free height transition. Slowed down + layered with a slide/fade
   on the text so the whole motion reads as deliberate and animated. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  padding: 0 22px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 440ms ease 80ms,
              transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 80ms,
              padding 620ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-answer-inner { opacity: 1; transform: translateY(0); padding-bottom: 20px; }
.faq-answer p {
  margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65;
}
.faq-answer a { color: var(--accent-2); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* Responsive: stack tiers on narrow screens. */
@media (max-width: 760px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tier-grid { grid-template-columns: 1fr; max-width: 300px; }
}

/* ========================= DASHBOARD ========================= */
.dash-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }
/* Sidebar */
.dash-sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 28px 18px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 68px;
  align-self: start; height: calc(100vh - 68px);
}
.dash-brand img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 8px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dash-nav a, .dash-tab {
  padding: 10px 14px; border-radius: 9px; color: var(--muted); font-size: 0.95rem; font-weight: 500;
  transition: all .15s; cursor: pointer; text-decoration: none; display: block; position: relative;
}
.dash-nav a:hover, .dash-tab:hover { color: var(--text); background: var(--smoke); }
.dash-nav a.active, .dash-tab.active { color: var(--text); background: var(--smoke); }
.dash-tab.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--text); border-radius: 0 3px 3px 0;
}
/* Tab pages: only the active one is visible. */
.dash-page { display: none; animation: dashFade 0.28s ease; }
.dash-page.active { display: block; }
@keyframes dashFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.dash-logout { color: var(--muted-2); font-size: 0.9rem; padding: 10px 14px; border-radius: 9px; transition: color .15s; }
.dash-logout:hover { color: var(--danger); }
/* Main */
.dash-main { padding: 40px 48px 60px; max-width: 880px; }
.dash-topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; gap: 16px; }
.dash-topbar h1 { font-size: 1.8rem; letter-spacing: -0.02em; }
.dash-greet { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.plan-badge {
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.plan-badge.free, .plan-badge.trial { background: var(--smoke); color: var(--muted); }
.plan-badge.premium, .plan-badge.active { background: var(--accent); color: #000; }
/* Stats row */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }

/* Overview hero — logo + tier name + status badge */
.overview-hero {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 20px;
}
.overview-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; flex-shrink: 0; }
.overview-hero > div { flex: 1; }
.overview-tier { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.overview-status { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Overview grid — license + HWID side by side */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .overview-grid { grid-template-columns: 1fr; } }

/* Monospace values for license keys / HWIDs */
.mono { font-family: var(--mono); font-size: 0.88rem; color: var(--accent-2); word-break: break-all; }

/* HWID slots */
.hwid-slot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.hwid-slot:last-child { border-bottom: none; }
.hwid-slot-label { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.5px; width: 50px; flex-shrink: 0; }
.hwid-slot-value { flex: 1; font-size: 0.82rem; color: var(--muted); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.dash-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.dash-stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.dash-stat-label { color: var(--muted-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-stat-value { font-size: 1.25rem; font-weight: 700; font-family: var(--mono); margin-top: 6px; }
/* Panels */
.dash-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.dash-panel h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.01em; }
.dash-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0; }
.dash-details > div { display: flex; flex-direction: column; gap: 3px; }
.dash-details dt { color: var(--muted-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-details dd { color: var(--text); font-size: 0.98rem; margin: 0; word-break: break-word; }
.dash-billing-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.dash-resubscribe {
  margin-top: 18px; padding: 14px 16px;
  background: rgba(163,230,53,0.06); border: 1px solid rgba(163,230,53,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.dash-resubscribe p { margin: 0; color: var(--text); font-size: 0.88rem; }

/* ========================= ALTS PAGE ========================= */
/* Centered icon + credits display */
.alts-center-panel { text-align: center; }
.alts-icon-big { width: 100px; height: 164px; object-fit: contain; margin: 0 auto 12px; display: block; }
.alts-tagline { font-size: 1.25rem; font-weight: 800; margin: 0 0 24px; }

.alts-credits-display { display: inline-flex; align-items: center; gap: 10px; }
.alts-add-credits-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--text); color: #0a0a0b; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.alts-add-credits-btn:hover { transform: scale(1.1); }
.alts-add-credits-btn svg { width: 18px; height: 18px; }
.alts-credits-display .alts-credits-num { font-family: var(--mono); font-size: 2rem; font-weight: 800; color: var(--text); }
.alts-credits-display .alts-credits-label { color: var(--muted); font-size: 0.95rem; }
.alts-balance-equiv { color: var(--muted-2); font-size: 0.82rem; margin: 8px 0 0; }

/* Buy alts counter */
.alts-counter { display: flex; align-items: center; justify-content: center; gap: 0; margin: 20px 0; }
.alts-counter-btn {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--bg); color: var(--text); font-size: 1.5rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.alts-counter-btn:hover { background: var(--bg-2); }
.alts-counter-btn:active { transform: scale(0.95); }
.alts-counter input[type="number"] {
  width: 100px; height: 48px; text-align: center; font-size: 1.3rem; font-weight: 700;
  border: 1px solid var(--border-2); border-left: none; border-right: none;
  background: var(--bg-2); color: var(--text); font-family: var(--mono);
  -moz-appearance: textfield;
}
.alts-counter input::-webkit-outer-spin-button,
.alts-counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.alts-price-summary { text-align: center; margin: 12px 0; }
.alts-price-summary span { display: block; }
#altPriceText { color: var(--muted); font-size: 0.88rem; }
.alts-total-cost { color: var(--text); font-size: 1rem; font-weight: 600; font-family: var(--mono); margin-top: 4px; }

/* Credits modal */
.alts-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0); backdrop-filter: blur(0);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, backdrop-filter 0.25s;
}
.alts-modal-overlay.open {
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  opacity: 1; pointer-events: auto;
}
.alts-modal {
  background: var(--panel); border: 1px solid var(--border-2); border-radius: 16px;
  padding: 28px 24px; width: 380px; max-width: 90vw; position: relative;
  transform: translateY(20px); transition: transform 0.25s;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.alts-modal-overlay.open .alts-modal { transform: translateY(0); }
.alts-modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer;
}
.alts-modal h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 4px; }
.alts-modal-sub { color: var(--muted); font-size: 0.82rem; margin: 0 0 20px; }
.alts-modal label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.alts-modal-input-row { display: flex; align-items: center; gap: 0; }
.alts-modal-dollar {
  padding: 0 12px; height: 44px; display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border); border-right: none;
  border-radius: 10px 0 0 10px; color: var(--muted); font-weight: 700;
}
.alts-modal-input-row input {
  height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 0 10px 10px 0; color: var(--text); font-size: 1rem; font-family: var(--mono);
  width: 100%;
}
.alts-modal-preview { text-align: center; margin: 12px 0; font-size: 0.88rem; color: var(--accent-2); }
.alts-modal-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.alts-modal-quick button {
  flex: 1; min-width: 48px; padding: 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 0.82rem; font-weight: 600; transition: background 0.15s;
}
.alts-modal-quick button:hover { background: var(--bg-2); border-color: var(--border-2); }

/* Legacy alts styles still used */
.alts-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.alts-icon { width: 72px; height: 118px; object-fit: contain; flex-shrink: 0; }
.alts-hero h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.alts-hero p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

.alts-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .alts-actions { grid-template-columns: 1fr; } }

.alts-credits-box { text-align: center; }
.alts-credits-balance { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.alts-credits-num { font-family: var(--mono); font-size: 2.2rem; font-weight: 800; color: var(--text); }
.alts-credits-label { color: var(--muted); font-size: 0.95rem; }
.alts-credits-equiv { color: var(--muted-2); font-size: 0.82rem; margin: 4px 0 20px; }

.alts-buy-credits h3, .alts-buy-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.alts-credit-packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.alts-pack {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-family: var(--sans); transition: border-color 0.15s, background 0.15s;
}
.alts-pack:hover { border-color: var(--border-2); background: var(--bg-2); }
.alts-pack.is-popular { border-color: var(--text); }
.alts-pack-credits { font-size: 1rem; font-weight: 700; }
.alts-pack-price { font-size: 0.78rem; color: var(--muted); }

.alts-buy-box { border-left: 1px solid var(--border); padding-left: 20px; }
@media (max-width: 700px) { .alts-buy-box { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; } }
.alts-amount-row { display: flex; align-items: center; gap: 10px; }
.alts-amount-row label { font-size: 0.9rem; color: var(--muted); }
.alts-amount-row select {
  flex: 1; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: var(--sans); font-size: 0.9rem;
}

.alts-orders { display: flex; flex-direction: column; gap: 12px; }
.alts-order {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
}
.alts-order-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alts-order-id { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--text); }
.alts-order-status { font-size: 0.78rem; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.alts-status-delivered { background: rgba(74,222,128,0.12); color: var(--success); }
.alts-status-pending { background: rgba(250,204,21,0.12); color: #facc15; }
.alts-status-failed { background: rgba(248,113,113,0.12); color: var(--danger); }
.alts-order-date { color: var(--muted-2); font-size: 0.78rem; margin-left: auto; }
.alts-order-cost { color: var(--muted); font-size: 0.78rem; font-family: var(--mono); }

.alts-token { margin-top: 12px; display: flex; align-items: flex-start; gap: 10px; }
.alts-token-label { font-size: 0.75rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; width: 90px; flex-shrink: 0; }
.alts-token-content {
  flex: 1; font-family: var(--mono); font-size: 0.8rem; color: var(--accent-2);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; word-break: break-all; white-space: pre-wrap;
}
.credits-badge { background: rgba(163,230,53,0.12); color: #d9f99d; border-color: rgba(163,230,53,0.25); }
/* Under-construction notice */
.dash-construction {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 36px 20px;
}
.dash-construction svg { width: 40px; height: 40px; color: var(--muted-2); }
.dash-construction h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 0; }
.dash-construction p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; max-width: 400px; margin: 0; }
@media (max-width: 860px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; flex: none; }
  .dash-main { padding: 28px 20px 40px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-details { grid-template-columns: 1fr; }
}

/* ========================= FOOTER ========================= */
.footer { border-top: 1px solid var(--border); padding: 50px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 32px; margin-bottom: 14px; filter: drop-shadow(0 0 6px rgba(255,255,255,0.2)); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted-2); font-size: 0.85rem;
}
.disclaimer { color: var(--muted-2); font-size: 0.78rem; margin-top: 8px; }

/* ========================= TOAST ========================= */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--panel); border: 1px solid var(--border-2); border-radius: 10px;
  padding: 14px 18px; box-shadow: var(--shadow); font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px; animation: slideIn .25s ease;
  max-width: 340px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========================= 404 ========================= */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.notfound .code { font-size: clamp(5rem, 15vw, 10rem); font-weight: 800; letter-spacing: -0.04em; font-family: var(--mono); line-height: 1; }
.notfound p { color: var(--muted); margin: 12px 0 28px; font-size: 1.1rem; }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px;
    z-index: 50;
  }
  .nav-links.open a { width: 100%; }
  .nav-emblem { width: 26px; height: 26px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 50px; }
  .hero-checklist { gap: 18px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-ghost { display: none; }
}
