/* TAKENMC — dark gaming dashboard */
:root {
  --bg: #0b0f17;
  --bg-2: #111827;
  --card: #111827;
  --card-2: #0f172a;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted-2: #64748b;
  /* Brand palette: warm amber / red (was green). --green* names are kept so
     the many existing rules keep working — they now resolve to amber. */
  --green: #f5a524;
  --green-dark: #d97706;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #ef4444;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Grid/flex items default to min-width:auto, which refuses to shrink below
   their content width. On a 360–400px phone one long word is enough to make a
   row wider than the screen — the browser then renders the page shifted.
   Allowing the shrink fixes the "content sits to one side" mobile bug. */
.section, .card, .hero-stats, .hero-stat, .store-card, .store-cards, .store-groups,
.mode-card, .modes-grid, .join-card, .join-grid, .rule-item, .faq-item, .staff-card,
.staff-grid, .cmp-card, .cmp-cards, .status-line, .card-actions, .total-top,
.total-count, .pay-grid, .upi-card, .modal, .modal-actions, .file-drop,
.staff-info, .store-group, .section-head, .hero-chips, .hero-cta, .footer-inner,
.footer-brand, .edition-card, .edition-grid, .upi-row, .store-plans, .plan-btn {
  min-width: 0;
}
/* Long strings must wrap instead of forcing a wide layout — but never break a
   server address mid-word (that made the IP look garbled). Addresses get their
   own rule: shrink the font a little and keep the whole address intact. */
.store-name, .cmp-rank, .cmp-card-name, .staff-name, .modal-title, fieldset {
  overflow-wrap: break-word;
  word-break: normal;
}
/* Server addresses: one unbroken token, ellipsis if truly too narrow. */
.hero-ip code, .ip-code, .edition-addr, .footer-ip code, .upi-row code {
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Never let a stray overlay create horizontal scroll. */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
/* ---------- background: warm voxel sunset + brand watermark ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: url('/bg-blur.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  opacity: 0.85;
}
/* Darkening + warm tint layer so the artwork never fights the text. */
.bg-grid::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 23, 0.42) 0%, rgba(11, 15, 23, 0.70) 45%, rgba(11, 15, 23, 0.92) 100%),
    radial-gradient(1000px 560px at 50% -8%, rgba(245, 165, 36, 0.20), transparent 68%);
}
/* Big faint logo watermark behind the content. */
.bg-logo {
  position: fixed; z-index: -1; pointer-events: none; user-select: none;
  right: -6vw; top: 12vh;
  width: min(680px, 62vw);
  opacity: 0.08;
  filter: saturate(1.15) drop-shadow(0 0 60px rgba(245,165,36,0.35));
}
@media (max-width: 760px) {
  .bg-logo { width: 92vw; right: -18vw; top: 26vh; opacity: 0.08; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
button { font: inherit; cursor: pointer; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.brand span span, .brand-name span { color: var(--green); }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 9px; color: #0b0f17; box-shadow: 0 4px 14px rgba(245, 165, 36, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; }
/* The real server logo replaces the placeholder cube glyph. */
.brand-mark img { width: 26px; height: 26px; display: block; border-radius: 6px; object-fit: contain; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 7px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; transition: .15s; }
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- pills / badges / dots ---------- */
.pill, .badge, .chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  white-space: nowrap;
}
.pill-muted, .badge-muted { color: var(--muted); background: rgba(148, 163, 184, 0.08); }
/* ONLINE stays readable-green (it means "up"), the rest of the UI is warm. */
.pill-green, .badge-online { color: #4ade80; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); }
.dot-green { background: #22c55e; }
.badge-offline { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); }
.badge-syncing { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.5); animation: pulse 2s infinite; }
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }
.dot-grey { background: var(--muted-2); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(245, 165, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 9px 15px;
  border-radius: 10px; border: 1px solid var(--border-strong);
  background: rgba(148, 163, 184, 0.08); color: var(--text);
  transition: .15s; white-space: nowrap;
}
.btn:hover { background: rgba(148, 163, 184, 0.16); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); border-color: transparent; color: #1a0f04; }
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-copy { background: rgba(245, 165, 36, 0.12); border-color: rgba(245, 165, 36, 0.4); color: #fbbf24; }
.btn-copy:hover { background: rgba(245, 165, 36, 0.2); }
.btn-copy.copied { background: var(--green); color: #1a0f04; border-color: transparent; }
.btn-ghost { background: transparent; }
.spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 66px 0 34px; overflow: hidden; }
.hero > * { text-align: center; }
.hero-intro, .hero-subtitle, .hero-tagline { margin-left: auto; margin-right: auto; }
.hero-glow {
  position: absolute; inset: -60px -20% auto; height: 420px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(245, 165, 36, 0.20), transparent 70%) center/60% 100% no-repeat,
    radial-gradient(closest-side, rgba(239, 68, 68, 0.12), transparent 70%) 70% 0/45% 80% no-repeat;
  filter: blur(18px);
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: 0.75; transform: translateY(0) scale(1); }
  to { opacity: 1; transform: translateY(10px) scale(1.06); }
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fbbf24; font-size: 11.5px; font-weight: 800; letter-spacing: 0.2em;
  background: rgba(245, 165, 36, 0.09); border: 1px solid rgba(245, 165, 36, 0.28);
  border-radius: 999px; padding: 6px 14px;
}
.kicker-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.6); animation: pulse 2s infinite;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(54px, 11vw, 104px);
  line-height: 1; letter-spacing: 0.015em; margin: 16px 0 10px;
  background: linear-gradient(180deg, #ffffff 30%, #9fb3c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(245, 165, 36, 0.25);
}
.hero-title span {
  background: linear-gradient(180deg, #fbbf24 20%, #d97706 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { color: var(--muted); font-size: 15px; font-weight: 500; }
/* SEO/social subtitle under the wordmark — also the phrase people search. */
.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--muted); margin-top: 8px;
}
/* One plain-language paragraph under the hero: the words people actually
   search for ("Minecraft SMP server", "TAKENMC Minecraft server") live here
   as real sentences, not keyword stuffing. */
.hero-intro {
  max-width: 620px; margin: 10px auto 0;
  font-size: 13.5px; line-height: 1.6; color: var(--muted); text-align: center;
}
.hero-intro strong { color: var(--text); font-weight: 600; }
.hero-intro code {
  color: #fbbf24; background: rgba(245, 165, 36, 0.12);
  padding: 1px 6px; border-radius: 5px; font-size: 12.5px;
}
.hero-motd { color: var(--text); font-size: 15.5px; margin-top: 6px; opacity: 0.9; }
.hero-ip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(11, 15, 23, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 7px 7px 7px 8px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.hero-ip:hover { border-color: rgba(245, 165, 36, 0.5); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.08), var(--shadow); }
.hero-ip-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: #0b0f17;
  background: var(--green); border-radius: 8px; padding: 5px 8px;
}
.hero-ip code {
  font-size: 16.5px; font-weight: 700; color: #fff; letter-spacing: 0.02em; padding-right: 4px;
  min-width: 0; max-width: 100%;
}
.hero-ip { max-width: 100%; min-width: 0; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.chip { color: var(--muted); background: rgba(148, 163, 184, 0.07); transition: .18s; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip strong { color: var(--text); }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.btn-lg { padding: 12px 20px; font-size: 14px; border-radius: 12px; }
.btn-store { background: linear-gradient(135deg, #f59e0b, #d97706); border-color: transparent; color: #1a1203; }
.btn-store:hover { filter: brightness(1.08); background: linear-gradient(135deg, #f59e0b, #d97706); }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1px; margin-top: 30px;
  background: var(--border); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.hero-stat {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(11, 15, 23, 0.9));
  padding: 14px 10px; text-align: center;
}
.hero-stat b {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; color: #fff;
}
.hero-stat span { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- sections & cards ---------- */
.section { padding: 34px 0; scroll-margin-top: 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 26px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
  content: ''; width: 4px; height: 22px; border-radius: 99px;
  background: linear-gradient(180deg, #fbbf24, #ef4444);
}
.section-sub { color: var(--muted); font-size: 13.5px; }
.refresh-box { display: flex; align-items: center; gap: 12px; }
.last-updated { color: var(--muted-2); font-size: 12.5px; }
.progress-track { height: 3px; background: rgba(148, 163, 184, 0.12); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 99px; transition: width 1s linear; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-strong); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 17px; font-family: 'Space Grotesk', sans-serif; }
.card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-note { color: var(--muted-2); font-size: 12px; margin-top: 12px; }
.card-note code { color: var(--muted); background: rgba(148, 163, 184, 0.1); padding: 1px 6px; border-radius: 6px; font-size: 11.5px; }
.edition { display: flex; align-items: center; gap: 12px; }
.edition-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  padding: 7px 10px; border-radius: 9px; color: #1a0f04;
}
.edition-java { background: linear-gradient(135deg, #fbbf24, #d97706); }
.edition-bedrock { background: linear-gradient(135deg, #7dd3fc, #0284c7); color: #04121f; }
.big-count { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; margin: 16px 0 8px; line-height: 1; }
/* ---------- combined players card ----------
   Java and Bedrock players share one world, so the page leads with ONE
   total number. Per-edition cards were removed — two sets of numbers looked
   like two separate servers. */
.total-card { border-color: rgba(245, 165, 36, 0.28); }
.total-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.total-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.total-count { font-family: 'Space Grotesk', sans-serif; font-size: 46px; font-weight: 700; line-height: 1.05; margin: 4px 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.total-bar { max-width: 460px; }
.badge.small { font-size: 9.5px; padding: 4px 7px; }
.big-count-max { font-size: 16px; color: var(--muted); font-weight: 500; }
/* One compact facts row on the single status card (ping / split / version). */
.status-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(148, 163, 184, 0.07); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 11px; font-size: 12.5px;
}
.status-chip-label { color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.status-chip b { font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; color: var(--text); font-weight: 700; }
.bar { height: 8px; background: rgba(148, 163, 184, 0.14); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), #fbbf24); border-radius: 99px; transition: width .6s ease; }
.bar-fill.full { background: linear-gradient(90deg, var(--amber), #fbbf24); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 4px; }
.stats > div { background: rgba(148, 163, 184, 0.06); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.stats dt { color: var(--muted-2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.stats dd { font-size: 15px; font-weight: 700; margin-top: 2px; word-break: break-word; }
.motd {
  color: var(--muted); font-size: 13.5px; margin-top: 14px;
  border-left: 3px solid var(--green); padding-left: 12px; min-height: 20px;
}
.motd.motd-error { border-left-color: var(--red); color: #fca5a5; }
.card.is-offline { border-color: rgba(239, 68, 68, 0.28); }
.card-actions { display: flex; gap: 10px; margin-top: 16px; }
.ip-code {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 15, 23, 0.6); border: 1px dashed var(--border-strong);
  border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- how to join ---------- */
.section-note { margin-top: 12px; color: var(--muted-2); font-size: 12.5px; text-align: center; }
.ip-inline { color: var(--muted); font-size: 11.5px; }
.step-list { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.step-list li {
  counter-increment: step;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.step-list li::before {
  content: counter(step);
  flex: none; width: 21px; height: 21px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(245, 165, 36, 0.16); color: #fbbf24;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 800;
}

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: .15s;
}
.feature-card:hover { border-color: rgba(245, 165, 36, 0.4); transform: translateY(-2px); }
.feature-icon {
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 12px;
  border-radius: 10px; color: #fbbf24;
  background: rgba(245, 165, 36, 0.12); border: 1px solid rgba(245, 165, 36, 0.28);
}
.feature-name { font-family: 'Space Grotesk', sans-serif; font-size: 15.5px; font-weight: 700; }
.feature-desc { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.55; }

/* ---------- rules ---------- */
.rules-list { display: flex; flex-direction: column; gap: 10px; }
.rule-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-left: 3px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px; padding: 14px 16px;
}
.rule-item.rule-instant { border-left-color: var(--red); }
.rule-item.rule-warn { border-left-color: var(--amber); }
.rule-icon { flex: none; color: var(--muted); margin-top: 2px; }
.rule-item.rule-instant .rule-icon { color: #fca5a5; }
.rule-item.rule-warn .rule-icon { color: #fbbf24; }
.rule-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rule-title { font-weight: 700; font-size: 14.5px; }
.rule-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px;
}
.rule-tag-instant { color: #fca5a5; background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.32); }
.rule-tag-warn { color: #fcd34d; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.32); }
.rule-desc { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.55; }

/* ---------- vote ---------- */
.vote-card { border-color: rgba(245, 158, 11, 0.3); }
.vote-desc { color: var(--muted); font-size: 13.5px; margin: 12px 0 14px; }
.vote-steps { counter-reset: vote-step; display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.vote-steps li {
  counter-increment: vote-step;
  display: block;
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  background: rgba(245, 158, 11, 0.07); border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 10px; padding: 10px 12px 10px 40px;
  position: relative; min-width: 0;
}
/* The step number is a pseudo-element, so it can never affect text flow or
   wrap the copy letter-by-letter (the old span-based badge did exactly that). */
.vote-steps li::before {
  content: counter(vote-step);
  position: absolute; left: 12px; top: 10px;
  width: 21px; height: 21px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(245, 158, 11, 0.2); color: #fbbf24;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 800;
}
.vote-steps li > b { color: var(--text); font-weight: 700; }
.vote-step-text { color: var(--muted); }
.vote-cta { width: 100%; justify-content: center; padding: 12px 16px; font-size: 14px; margin-bottom: 4px; }

/* ---------- how to buy (tickets) ---------- */
.buy-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px;
}
.buy-step {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(245, 165, 36, 0.06);
  border: 1px solid rgba(245, 165, 36, 0.22);
  border-radius: 12px; padding: 12px 14px;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.buy-step-num {
  flex: none; width: 21px; height: 21px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(245, 165, 36, 0.2); color: #fbbf24;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 800;
}
.buy-ticket-note {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 10px; padding: 10px 13px; color: #fca5a5 !important;
}

/* ---------- rank comparison table ---------- */
.compare-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; margin: 26px 0 4px;
}
.compare-sub { margin-bottom: 12px; }
.cmp-root { }
/* ---- rank comparison: table on desktop, cards on mobile ---- */
.cmp-table-wrap {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2)); box-shadow: var(--shadow);
}
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table thead th { background: rgba(245, 165, 36, 0.07); vertical-align: top; padding: 14px; }
.cmp-table thead th.is-hot { background: rgba(245, 165, 36, 0.14); box-shadow: inset 0 3px 0 #fbbf24; }
.cmp-corner { text-align: left !important; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); width: 34%; }
.cmp-rank { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 15px; letter-spacing: 0.02em; color: var(--text); }
.cmp-head-price { display: flex; flex-direction: column; gap: 1px; margin-top: 5px; }
.cmp-price { display: flex; flex-direction: column; line-height: 1.25; }
.cmp-price span { font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.cmp-price b { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: #fbbf24; }
.cmp-perk { text-align: left !important; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.cmp-yes {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 900; color: #4ade80;
  background: rgba(34, 197, 94, 0.13); border: 1px solid rgba(34, 197, 94, 0.3);
}
.cmp-no { color: var(--muted-2); font-size: 15px; opacity: 0.55; }
.cmp-cta-row td { padding: 14px; background: rgba(148, 163, 184, 0.03); }
.compare-buy {
  display: flex; cursor: pointer; align-items: center; justify-content: center;
  width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  background: rgba(245, 165, 36, 0.16); color: #fbbf24;
  border: 1px solid rgba(245, 165, 36, 0.42); transition: background .15s, transform .15s;
}
.compare-buy:hover { background: rgba(245, 165, 36, 0.28); transform: translateY(-1px); }

/* stacked cards — used on small screens only */
.cmp-cards { display: none; }
.cmp-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  background: linear-gradient(180deg, var(--card), var(--card-2)); box-shadow: var(--shadow);
}
.cmp-card.is-hot { border-color: rgba(245, 165, 36, 0.45); }
.cmp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cmp-card-name { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: var(--text); }
.cmp-card-price { display: flex; gap: 10px; }
.cmp-card-list { list-style: none; margin: 12px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.cmp-card-list li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cmp-card-list li::before {
  content: ''; position: absolute; left: 4px; top: 6px;
  width: 9px; height: 5px; border-left: 2px solid #fbbf24; border-bottom: 2px solid #fbbf24;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .cmp-table-wrap { display: none; }
  .cmp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .cmp-cards { grid-template-columns: 1fr; }
}

/* ---------- language toggle ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  background: rgba(148, 163, 184, 0.08); border: 1px solid var(--border);
  border-radius: 9px; height: 34px;
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted-2);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  padding: 0 9px; height: 28px; border-radius: 7px;
}
.lang-btn.is-active { background: rgba(245, 165, 36, 0.2); color: #fbbf24; }

/* ---------- how to join ---------- */
.section-note { margin-top: 12px; color: var(--muted-2); font-size: 12.5px; text-align: center; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.join-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.join-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.join-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16.5px; }
.ip-inline { color: var(--muted); font-size: 11.5px; }
.step-list { list-style: none; counter-reset: step; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.step-list li {
  counter-increment: step; display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.step-list li::before {
  content: counter(step); flex: none; width: 21px; height: 21px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(245, 165, 36, 0.16); color: #fbbf24;
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 800;
}

/* ---------- rules ---------- */
.rules-list { display: flex; flex-direction: column; gap: 10px; }
.rule-item {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  border-left: 3px solid rgba(239, 68, 68, 0.7);
  transition: border-color .16s;
}
.rule-item:hover { border-color: var(--border-strong); border-left-color: #ef4444; }
.rule-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rule-title { font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--text); }
.rule-tag-instant { color: #fca5a5; background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.32); }
.rule-tag-warn { color: #fcd34d; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.32); }
.rule-tag-instant, .rule-tag-warn {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 6px; padding: 2px 7px;
}
.rule-desc { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.55; }

/* ---------- store grid & cards ---------- */
.store-groups { display: flex; flex-direction: column; gap: 22px; }
.store-group { display: block; }
.store-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.store-group-icon {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  color: #fbbf24; background: rgba(245, 158, 11, 0.13); border: 1px solid rgba(245, 158, 11, 0.3);
}
.store-group-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16.5px; }
.store-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; }
.store-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px 16px; box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.store-card:hover { transform: translateY(-3px); border-color: rgba(245, 165, 36, 0.45); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.store-card-hot { border-color: rgba(245, 165, 36, 0.45); }
.store-card-hot::after {
  content: ''; position: absolute; inset: -1px -1px auto; height: 3px; border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.store-tag {
  align-self: flex-start; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 3px 8px; margin-bottom: 9px;
}
.store-tag-hot { color: #fbbf24; background: rgba(245, 165, 36, 0.14); border-color: rgba(245, 165, 36, 0.35); }
.store-name { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.01em; }
.store-perks { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; flex: 1; }
.store-perks li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.store-perks li::before {
  content: ''; position: absolute; left: 4px; top: 6px;
  width: 9px; height: 5px; border-left: 2px solid #fbbf24; border-bottom: 2px solid #fbbf24;
  transform: rotate(-45deg);
}
.store-buy { justify-content: center; width: 100%; margin-top: auto; }

/* ---------- modes ---------- */
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.mode-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s;
}
.mode-card:hover { transform: translateY(-3px); border-color: rgba(245, 165, 36, 0.45); }
.mode-head { display: flex; align-items: flex-start; gap: 11px; }
.mode-icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: #fbbf24; background: rgba(245, 165, 36, 0.12); border: 1px solid rgba(245, 165, 36, 0.28);
}
.mode-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; }
.mode-tag {
  display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase; color: #fca5a5;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 6px; padding: 2px 7px;
}
.mode-desc { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0; }
.mode-points { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mode-points li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--muted-2); }
.mode-points li::before {
  content: ''; position: absolute; left: 2px; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: #fbbf24;
}

/* ---------- faq ---------- */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: border-color .18s;
}
.faq-item[open] { border-color: rgba(245, 165, 36, 0.4); }
.faq-item:hover { border-color: var(--border-strong); }
.faq-q {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 16px;
  font-size: 14px; font-weight: 600; position: relative; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 19px; font-weight: 400; color: #fbbf24; line-height: 1;
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 16px 15px; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ---------- vote steps ---------- */
.vote-step-text { color: var(--muted-2); font-size: 12.5px; }
.vote-steps li b { color: var(--text); font-weight: 600; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.copy-label { display: inline; }

/* ---------- store plans ---------- */
.store-plans { display: flex; gap: 7px; margin: 4px 0 14px; flex-wrap: wrap; }
.plan-btn {
  flex: 1 1 0; min-width: 96px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(148, 163, 184, 0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; transition: border-color .15s, background .15s;
}
.plan-btn:hover { border-color: var(--border-strong); }
.plan-btn.is-active {
  border-color: rgba(245, 165, 36, 0.55);
  background: rgba(245, 165, 36, 0.12);
}
.plan-name { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.plan-btn.is-active .plan-name { color: #fbbf24; }
.plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); }
.compare-plan { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- staff team ---------- */
.staff-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}
.staff-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  transition: transform .16s ease, border-color .16s ease;
}
.staff-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
/* role accent: a soft top glow per rank */
.staff-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 165, 36, 0.75), transparent);
}
.staff-card.staff-co-owner::before { background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.85), transparent); }
.staff-card.staff-staff::before { background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent); }
.staff-card.staff-bot::before { background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.7), transparent); }

.staff-avatar {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(148, 163, 184, 0.1); border: 1px solid var(--border-strong);
}
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.staff-avatar-bot { display: grid; place-items: center; width: 100%; height: 100%; color: #cbd5e1; }
.staff-card.staff-owner .staff-avatar { border-color: rgba(245, 165, 36, 0.5); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.1); }
.staff-card.staff-co-owner .staff-avatar { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }
.staff-card.staff-staff .staff-avatar { border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1); }
.staff-card.staff-bot .staff-avatar { border-color: rgba(148, 163, 184, 0.45); }
.staff-card.staff-staff .staff-avatar-bot { color: #7dd3fc; }

.staff-info { min-width: 0; }
.staff-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-role {
  display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fbbf24; background: rgba(245, 165, 36, 0.14); border: 1px solid rgba(245, 165, 36, 0.32);
}
.staff-card.staff-co-owner .staff-role { color: #c4b5fd; background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.38); }
.staff-card.staff-staff .staff-role { color: #7dd3fc; background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.35); }
.staff-card.staff-bot .staff-role { color: #cbd5e1; background: rgba(148, 163, 184, 0.14); border-color: rgba(148, 163, 184, 0.35); }
.staff-note { margin-top: 5px; font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 26px 0; }
  .staff-grid { grid-template-columns: 1fr; }
}

/* ---------- status: per-edition cards, freshness, loading ---------- */
.edition-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px;
}
.edition-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.edition-head { display: flex; align-items: flex-start; gap: 10px; }
.edition-head .mode-icon { flex: none; margin: 0; }
.edition-head > div { min-width: 0; flex: 1; }
.edition-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--text); }
.edition-addr {
  display: inline-block; margin-top: 3px; font-size: 12px; color: var(--muted-2);
  background: rgba(148, 163, 184, 0.08); border-radius: 6px; padding: 2px 7px;
}
.edition-card .status-line { margin: 0; }
.edition-card.is-offline { opacity: 0.92; }

.sync-note-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; font-size: 11.5px; color: var(--muted-2);
}
.sync-note { font-variant-numeric: tabular-nums; }
.stale-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fbbf24; background: rgba(245, 165, 36, 0.12);
  border: 1px solid rgba(245, 165, 36, 0.34); border-radius: 999px; padding: 3px 9px;
}
.stale-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; }

/* A first load shows gentle pulses instead of a blank or fake "0". */
.total-card.is-loading #totalPlayers,
.total-card.is-loading #totalMotd { opacity: 0.55; }
.total-card.is-stale { border-color: rgba(245, 165, 36, 0.32); }

@media (max-width: 720px) {
  .edition-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- store paused ---------- */
.store-paused {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px 18px; margin-bottom: 18px; border-radius: 14px;
  background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.34);
}
.store-paused-badge,
.store-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fbbf24; background: rgba(245, 165, 36, 0.16);
  border: 1px solid rgba(245, 165, 36, 0.38); border-radius: 999px; padding: 4px 10px;
}
.store-paused-badge::before,
.store-status-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fbbf24;
}
.store-paused-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: var(--text); }
.store-paused-text { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.store-paused .btn { margin-top: 4px; }
.store-status-pill { justify-content: center; width: 100%; margin-top: 2px; }

/* ---------- checkout modal ---------- */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(4px);
}
.modal {
  position: relative; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.modal-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0; color: var(--muted-2);
  font-size: 24px; line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { color: var(--text); background: rgba(148, 163, 184, 0.12); }
.modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; margin-bottom: 8px; }
.modal-notice {
  font-size: 12.5px; line-height: 1.55; color: #fcd34d;
  background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 16px;
}
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px;
}
.field-input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(148, 163, 184, 0.07); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: 13.5px;
}
.field-input:focus { outline: none; border-color: rgba(245, 165, 36, 0.55); }
.field-file { padding: 8px; font-size: 12px; }
.field-hint { display: block; margin-top: 5px; font-size: 11px; color: var(--muted-2); }
.pay-head { margin-bottom: 14px; }
.pay-head-main { min-width: 0; }
.pay-kicker {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fbbf24; margin-bottom: 4px;
}
.pay-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-title-row .modal-title { margin: 0; }
.pay-amount {
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: #fbbf24;
  background: rgba(245, 165, 36, 0.12); border: 1px solid rgba(245, 165, 36, 0.3);
  border-radius: 10px; padding: 2px 12px; white-space: nowrap;
}
.pay-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.pay-steps { display: flex; gap: 6px; margin-top: 12px; }
.pay-step {
  display: inline-flex; align-items: center; gap: 6px; flex: 1;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted-2);
  background: rgba(148, 163, 184, 0.07); border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 8px;
}
.pay-step b {
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  font-size: 10px; background: rgba(148, 163, 184, 0.18); color: var(--muted-2);
}
.pay-step.is-done { color: var(--text); border-color: rgba(245, 165, 36, 0.35); background: rgba(245, 165, 36, 0.1); }
.pay-step.is-done b { background: rgba(245, 165, 36, 0.3); color: #fbbf24; }

.pay-block {
  border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  background: rgba(148, 163, 184, 0.04); margin-bottom: 12px;
}
.pay-block-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.pay-block-num {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  font-size: 11.5px; font-weight: 800; color: #fbbf24;
  background: rgba(245, 165, 36, 0.16); border: 1px solid rgba(245, 165, 36, 0.35);
}
.pay-block-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: var(--text); }
.pay-block-sub { font-size: 11.5px; line-height: 1.5; color: var(--muted-2); margin-top: 2px; }

.pay-grid { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.upi-card {
  background: rgba(148, 163, 184, 0.06); border: 1px solid var(--border);
  border-radius: 11px; padding: 10px 12px; min-width: 0;
}
.upi-card-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.upi-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.upi-row code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px; font-weight: 600; color: #fbbf24; background: rgba(245, 165, 36, 0.12);
  padding: 6px 9px; border-radius: 7px; word-break: break-all; letter-spacing: 0.01em;
}
.upi-card-name { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted-2); }
.upi-apps-hint {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 11.5px; font-weight: 700; color: #fbbf24; text-decoration: none;
}
.upi-apps-hint:hover { text-decoration: underline; }

.order-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.order-qr img {
  width: 128px; height: 128px; border-radius: 10px; background: #fff; padding: 4px;
  display: block; image-rendering: pixelated; border: 1px solid var(--border-strong);
}
.qr-hint { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.qr-hint span { color: #fbbf24; }
.order-qr-fallback { font-size: 11px; color: var(--muted-2); text-align: center; max-width: 140px; }

.field-input-lg { font-size: 15px; padding: 12px 14px; letter-spacing: 0.02em; }

/* file drop zone */
.file-drop {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 14px;
  background: rgba(148, 163, 184, 0.04); transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: rgba(245, 165, 36, 0.5); background: rgba(245, 165, 36, 0.06); }
.file-drop.has-file { border-style: solid; border-color: rgba(74, 222, 128, 0.45); background: rgba(34, 197, 94, 0.07); }
.file-drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: #fbbf24; background: rgba(245, 165, 36, 0.14); border: 1px solid rgba(245, 165, 36, 0.3);
}
.file-drop.has-file .file-drop-icon { color: #4ade80; background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.35); }
.file-drop-text { min-width: 0; }
.file-drop-text b { display: block; font-size: 13px; color: var(--text); }
.file-drop-text small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; word-break: break-all; }

.btn-lg { padding: 12px 18px; font-size: 14px; }
.pay-foot { margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--muted-2); text-align: center; }

.order-error {
  font-size: 12.5px; color: #fca5a5; background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.32); border-radius: 9px;
  padding: 9px 12px; margin-bottom: 12px;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.order-success { text-align: center; padding: 10px 4px 4px; }
.order-success-mark {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #4ade80;
  background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.4);
}
.order-success-text { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.order-success-meta { color: #fbbf24; font-size: 12.5px; margin-bottom: 18px; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border); color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
body.light .theme-toggle .icon-sun { display: block; }
body.light .theme-toggle .icon-moon { display: none; }

/* ---------- light theme ---------- */
body.light {
  --bg: #fdf6ec;
  --bg-2: #f7ece0;
  --card: #ffffff;
  --card-2: #fff8ef;
  --border: rgba(120, 90, 60, 0.18);
  --border-strong: rgba(120, 90, 60, 0.32);
  --text: #2b1d10;
  --muted: #6b5340;
  --muted-2: #8a6f57;
  --shadow: 0 10px 30px rgba(120, 80, 40, 0.12);
}
body.light .bg-grid { opacity: 0.28; }
body.light .bg-grid::after {
  background:
    linear-gradient(180deg, rgba(253, 246, 236, 0.82) 0%, rgba(253, 246, 236, 0.90) 45%, rgba(253, 246, 236, 0.96) 100%),
    radial-gradient(1000px 560px at 50% -8%, rgba(245, 165, 36, 0.18), transparent 68%);
}
body.light .bg-logo { opacity: 0.07; }
body.light .nav { background: rgba(253, 246, 236, 0.86); }

/* light theme: checkout modal + store plan switcher */
body.light .modal-backdrop { background: rgba(60, 40, 20, 0.42); }
body.light .store-paused { background: rgba(245, 158, 11, 0.14); border-color: rgba(200, 130, 20, 0.38); }
body.light .stale-chip { color: #b45309; background: rgba(245, 165, 36, 0.16); border-color: rgba(200, 130, 20, 0.4); }
body.light .stale-chip::before { background: #b45309; }
body.light .total-card.is-stale { border-color: rgba(200, 130, 20, 0.4); }
body.light .store-paused-badge,
body.light .store-status-pill { color: #b45309; background: rgba(245, 165, 36, 0.2); border-color: rgba(200, 130, 20, 0.42); }
body.light .store-paused-badge::before,
body.light .store-status-pill::before { background: #b45309; }
body.light .modal { box-shadow: 0 24px 60px rgba(120, 80, 40, 0.22); }
body.light .plan-btn { background: rgba(120, 90, 60, 0.05); }
body.light .plan-btn.is-active { background: rgba(245, 165, 36, 0.16); border-color: rgba(200, 130, 20, 0.55); }
body.light .plan-btn.is-active .plan-name { color: #b45309; }
body.light .lang-btn.is-active { background: rgba(245, 165, 36, 0.24); color: #b45309; }
body.light .modal-notice { color: #92400e; background: rgba(245, 158, 11, 0.14); border-color: rgba(200, 130, 20, 0.35); }
body.light .field-input { background: #fffdf9; }
body.light .pay-block,
body.light .upi-card { background: rgba(120, 90, 60, 0.05); }
body.light .staff-avatar { background: rgba(120, 90, 60, 0.08); }
body.light .staff-card.staff-co-owner .staff-role { color: #6d28d9; background: rgba(139, 92, 246, 0.14); }
body.light .staff-card.staff-staff .staff-role { color: #0369a1; background: rgba(56, 189, 248, 0.16); }
body.light .staff-card.staff-bot .staff-role { color: #475569; }
body.light .pay-step { background: rgba(120, 90, 60, 0.05); }
body.light .file-drop { background: rgba(120, 90, 60, 0.04); border-color: rgba(200, 130, 20, 0.4); }
body.light .file-drop:hover { background: rgba(245, 165, 36, 0.12); }
body.light .pay-amount { color: #b45309; background: rgba(245, 165, 36, 0.16); border-color: rgba(200, 130, 20, 0.4); }
body.light .pay-kicker,
body.light .upi-apps-hint,
body.light .qr-hint span { color: #b45309; }
body.light .pay-block-num { color: #b45309; background: rgba(245, 165, 36, 0.2); border-color: rgba(200, 130, 20, 0.4); }
body.light .upi-card code { color: #b45309; }
body.light .order-total,
body.light .upi-row code,
body.light .order-success-meta { color: #b45309; }
body.light .upi-row code { background: rgba(245, 165, 36, 0.18); }
body.light .order-error { color: #b91c1c; background: rgba(239, 68, 68, 0.09); border-color: rgba(185, 28, 28, 0.28); }
body.light .modal-close:hover { background: rgba(120, 90, 60, 0.1); }

/* ---------- footer / toast ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 34px; padding: 30px 0 26px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer-brand { max-width: 420px; }
.footer-brand .brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 0.04em; color: var(--text); }
.footer-brand .brand-name span { color: var(--green); }
.footer-brand p { margin-top: 8px; font-size: 12.5px; line-height: 1.6; }
.footer-ip { color: var(--muted-2); }
.footer-ip code { color: var(--muted); background: rgba(148, 163, 184, 0.1); padding: 2px 7px; border-radius: 6px; font-size: 11.5px; }
.footer-links h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px;
}
.footer-link-grid { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 7px 18px; }
.footer-link-grid a { color: var(--muted); font-size: 13px; transition: .15s; }
.footer-link-grid a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: 12px;
}
.footer-note { color: var(--muted-2); font-size: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--green); color: #1a0f04; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 100; box-shadow: 0 8px 24px rgba(245, 165, 36, 0.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .buy-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .modal { padding: 18px; border-radius: 16px; }
  .pay-grid { grid-template-columns: 1fr; }
  .order-qr { order: -1; }
  .order-qr img { width: 148px; height: 148px; margin: 0 auto; }
  .pay-amount { font-size: 20px; padding: 2px 10px; }
  .pay-steps { gap: 4px; }
  .pay-step { font-size: 10px; padding: 5px 6px; }
  .modal-actions { flex-direction: column; }
  .store-plans { gap: 6px; }
  .plan-btn { min-width: 0; }
  /* The nav must fit a 360px screen without overflowing (an overflowing nav
     is what makes the whole page render shifted on phones). */
  .nav-inner { height: 54px; gap: 6px; padding: 0 2px; }
  .brand { font-size: 16px; gap: 6px; min-width: 0; }
  .brand-name { white-space: nowrap; }
  .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
  .brand-mark img { width: 20px; height: 20px; }
  .nav-actions { gap: 4px; }
  .lang-toggle { height: 28px; padding: 1px; }
  .lang-btn { padding: 0 6px; height: 24px; font-size: 10px; }
  .theme-toggle { width: 28px; height: 28px; }
  .btn-discord { padding: 7px 9px; font-size: 12px; gap: 5px; border-radius: 9px; }
  .btn-discord svg { width: 13px; height: 13px; }
  .hero-title { font-size: clamp(44px, 14vw, 68px); }
  .hero-kicker { font-size: 9.5px; letter-spacing: 0.12em; padding: 5px 10px; }
  .hero-intro { font-size: 13px; padding: 0 2px; }
  .footer-inner { flex-direction: column; gap: 22px; }
  .footer-link-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .pill { display: none; }
  .hero { padding: 38px 0 20px; }
  .hero-ip {
    width: 100%; max-width: 100%; justify-content: space-between; gap: 8px;
    flex-wrap: nowrap; padding: 6px;
  }
  .hero-ip code { font-size: 15px; flex: 1 1 auto; }
  .hero-ip .btn { flex: none; padding: 8px 11px; font-size: 12.5px; }
  .card { padding: 18px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats dd { font-size: 13px; }
  .big-count { font-size: 38px; }
  .total-count { font-size: 36px; }
  .total-top { flex-wrap: wrap; }
  .status-chip { flex: 1 1 40%; justify-content: space-between; }
  .status-line { gap: 6px; }
  .cmp-card-head { flex-wrap: wrap; }
  .hero-subtitle { font-size: 13px; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { justify-content: center; }
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}
@media (max-width: 420px) {
  .btn-discord .discord-label { display: none; }
  .btn-discord { padding: 7px 9px; }
  .hero h1 { font-size: clamp(40px, 15vw, 52px); }
  .hero-ip { padding-left: 14px; }
  .hero-ip code { font-size: 14px; letter-spacing: 0; }
  .hero-ip .btn .copy-label { display: none; }
  .chip { font-size: 11px; padding: 5px 10px; }
}

/* ---------- load watchdog ---------- */
.load-notice {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 0; padding: 12px 16px;
  font-size: 13.5px; color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
}
.load-notice strong { color: #fde68a; }
.load-notice-btn { margin-left: auto; padding: 6px 12px; font-size: 12.5px; }
