/* Wipeout store template — Wipeout Development Team. Dark, green brand, Raleway like wipeout.gg. */
:root {
  --bg: #0b0e0c;
  --surface: #121714;
  --surface-2: #18201b;
  --line: #222b25;
  --line-2: #2c3830;
  --text: #eef3ef;
  --muted: #92a097;
  --faint: #5f6c63;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --accent-ink: #03140a;
  --gold: #f5b82e;
  --bad: #ef4444;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Tebex's legal footer (required, cannot be hidden) follows these. */
  --tebex-legal-footer-background-color: #080a09;
  --tebex-legal-footer-text-color: #92a097;
  --tebex-legal-footer-border-color: #222b25;
  --tebex-legal-footer-logo-color: #92a097;
  --tebex-legal-footer-max-width: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.55 Raleway, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #4ade80; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 14, 12, 0.15) 0%, rgba(11, 14, 12, 0.55) 60%, var(--bg) 100%), var(--hero) center 40% / cover no-repeat, var(--surface);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.hero-logo img { width: 230px; height: auto; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55)); transition: transform 0.25s var(--ease); }
.hero-logo:hover img { transform: translateY(-2px) scale(1.02); }
.hero-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  background: rgba(11, 14, 12, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.hero-card:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text); }
.hero-card:active { transform: scale(0.98); }
.hero-ip { justify-self: start; }
.hero-discord { justify-self: end; text-align: right; }
.hero-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-strong); color: #fff; flex: none; }
.hero-discord .hero-card-icon { background: #5865f2; }
.hero-card-text { display: grid; }
.hero-card-text strong { font-weight: 800; font-size: 15px; letter-spacing: 0.04em; }
.hero-card-text small { color: var(--muted); font-size: 12px; font-weight: 600; }
.hero-card.is-copied { border-color: var(--accent); }
.hero-card.is-copied small { color: var(--accent); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(18, 23, 20, 0.92); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; min-height: 60px; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s;
}
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.nav-menu a.active { color: var(--accent); }
.nav-sub {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.15s, transform 0.15s var(--ease);
}
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; transform: none; pointer-events: auto; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 13px; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip img { width: 20px; height: 20px; border-radius: 4px; image-rendering: pixelated; }
.nav-toggle { display: none; }

.sale-banner { background: var(--accent-strong); color: #fff; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 800 13px/1 Raleway, system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.12s var(--ease), color 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4ade80; color: var(--accent-ink); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-wide { width: 100%; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 11px; }
.is-disabled { opacity: 0.5; pointer-events: none; }
.btn-basket { height: 38px; padding: 0 14px; font-variant-numeric: lining-nums tabular-nums; }
.btn-basket-total { opacity: 0.8; font-weight: 700; }

/* ---------- Layout ---------- */
.shell { max-width: 1200px; margin: 0 auto; padding: 28px 16px 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.layout-single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.main { display: grid; gap: 24px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: -10px; }
.page-head h1 { font-size: 30px; color: var(--accent); }
.page-lead { margin-top: 8px; color: var(--muted); max-width: 70ch; }
.empty { color: var(--muted); }
.text > * + * { margin-top: 0.8em; }
.text h1, .text h2, .text h3 { color: var(--text); }
.text h1 { font-size: 26px; } .text h2 { font-size: 20px; } .text h3 { font-size: 16px; }
.text ul { padding-left: 1.2em; }
.text strong { color: var(--text); }
.welcome { background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), transparent 55%), var(--surface); }
.welcome h1, .welcome h2 { color: var(--accent); }

/* Category tiles on the home page */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  font-weight: 800; transition: border-color 0.15s, transform 0.2s var(--ease);
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.tile img { width: 44px; height: 44px; object-fit: contain; }
.tile-mark { width: 44px; height: 44px; border-radius: 10px; background: radial-gradient(circle at 35% 30%, #4ade80, var(--accent-strong)); flex: none; }
.tile-go { margin-left: auto; color: var(--faint); transition: transform 0.2s var(--ease), color 0.15s; }
.tile:hover .tile-go { color: var(--accent); transform: translateX(3px); }

/* ---------- Package cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.86; padding: 14px;
  background: radial-gradient(circle at 50% 60%, rgba(34, 197, 94, 0.16), transparent 62%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.35s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media-empty { width: 64px; height: 64px; border-radius: 16px; background: var(--line-2); }
.card-body { display: grid; gap: 12px; padding: 14px 16px 16px; flex: 1; align-content: start; }
.card-title { font-size: 17px; font-weight: 900; }
.card-title a { color: var(--text); }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.card-media .badge, .product-media .badge { position: absolute; top: 10px; }
.badge-bonus { background: var(--gold); color: #2b1a00; }
.card-media .badge-bonus, .product-media .badge-bonus { left: 10px; }
.badge-sale { background: var(--bad); color: #fff; right: 10px; }
.actions { display: grid; gap: 8px; margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: lining-nums tabular-nums; }
.price strong { font-size: 20px; font-weight: 900; color: var(--text); }
.price del { color: var(--faint); font-weight: 700; }
.price-note { color: var(--muted); font-size: 13px; }

/* List display type */
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.row-title { color: var(--text); font-weight: 800; font-size: 16px; }
.row .actions { grid-template-columns: auto 1fr; align-items: center; }

/* ---------- Package page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; padding: 24px; background: radial-gradient(circle at 50% 60%, rgba(34, 197, 94, 0.18), transparent 62%), var(--surface-2); border: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: grid; gap: 18px; align-content: start; }
.product-info h1 { font-size: 30px; }
.product-info .actions { max-width: 320px; }
.product-text { color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Sidebar widgets ---------- */
.sidebar { display: grid; gap: 16px; position: sticky; top: 84px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.widget-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.widget-image { border-radius: 8px; }
.widget-featured .card { border-color: var(--line-2); }
.top { display: flex; align-items: center; gap: 14px; }
.top img { width: 64px; height: 64px; border-radius: 10px; image-rendering: pixelated; background: var(--surface-2); }
.top strong { display: block; font-size: 18px; font-weight: 900; color: var(--gold); }
.top small { font-size: 13px; }
.heads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.heads li { position: relative; }
.heads img { width: 100%; aspect-ratio: 1; border-radius: 8px; image-rendering: pixelated; background: var(--surface-2); transition: transform 0.15s var(--ease); }
.heads li:hover img { transform: translateY(-2px); }
.heads-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 5; display: grid; gap: 2px; min-width: 150px; padding: 8px 10px;
  background: #050706; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); font-size: 12px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity 0.12s, transform 0.12s var(--ease);
}
.heads-tip small { color: var(--muted); }
.heads li:hover .heads-tip, .heads li:focus-within .heads-tip { opacity: 1; transform: translate(-50%, 0); }
/* Edge columns open inwards so the hidden tip never widens the page. */
.heads li:nth-child(5n + 1) .heads-tip { left: 0; transform: translateY(4px); }
.heads li:nth-child(5n) .heads-tip { left: auto; right: 0; transform: translateY(4px); }
.heads li:nth-child(5n + 1):hover .heads-tip, .heads li:nth-child(5n):hover .heads-tip { transform: none; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.bar-label strong { color: var(--text); }
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.06em; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot-on { color: var(--accent); } .dot-off { color: var(--bad); }
.server { display: grid; gap: 2px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.server:hover { border-color: var(--accent); }
.server small { color: var(--muted); font-size: 12px; }
.inline-form { display: flex; gap: 8px; }
.note { font-size: 13px; } .note-bad { color: var(--bad); }

/* ---------- Forms, basket ---------- */
input, select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 600 15px Raleway, system-ui, sans-serif;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
.form, .login-form { display: grid; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; } .field > span { font-weight: 700; font-size: 13px; color: var(--muted); }
.login { display: grid; gap: 10px; }
.basket-items { display: grid; gap: 10px; }
.basket-item { display: grid; grid-template-columns: 1fr 84px 100px 36px; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.basket-info { display: grid; gap: 2px; min-width: 0; }
.basket-name { color: var(--text); font-weight: 800; }
.basket-price { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.qty input { height: 36px; text-align: center; padding: 0 6px; }
.qty-fixed { text-align: center; color: var(--muted); }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--muted); font-size: 22px; line-height: 1; }
.icon-btn:hover { background: rgba(239, 68, 68, 0.12); color: var(--bad); }
.basket-items .btn-sm { justify-self: start; }
.basket-total { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.basket-total strong { font-size: 24px; font-weight: 900; margin-right: auto; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Toast, footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow); font-weight: 700;
  transform: translateX(-50%); animation: toast-in 0.3s var(--ease);
}
.toast-error, .toast-danger { border-color: var(--bad); }
.toast.is-leaving { opacity: 0; transform: translate(-50%, 8px); transition: opacity 0.2s, transform 0.2s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px; display: flex; align-items: center; gap: 20px; }
.footer-logo img { width: 72px; height: auto; }
.footer-copy { color: var(--text); font-size: 14px; }
.footer-copy span { color: var(--faint); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; padding-top: 24px; gap: 10px; }
  .hero-discord .hero-card-text { display: none; }
  .hero-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .hero-logo img { width: 170px; }
  .hero-card { width: 100%; min-width: 0; padding: 10px; gap: 10px; }
  .hero-card-text { min-width: 0; }
  .hero-card-text strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-card-text small { display: none; }
  .hero-discord { flex-direction: row-reverse; text-align: left; }
  .hero-card-icon { width: 34px; height: 34px; }
  .nav-toggle { display: grid; gap: 4px; width: 40px; height: 40px; place-content: center; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; }
  .nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav-user { margin-left: auto; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-menu { display: flex; }
  .nav-sub { position: static; opacity: 1; transform: none; pointer-events: auto; border: 0; box-shadow: none; padding: 0 0 0 12px; background: none; }
  .chip-user span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card .btn { font-size: 11px; letter-spacing: 0.03em; padding: 0 8px; white-space: nowrap; }
  .card-title { font-size: 15px; }
  .price strong { font-size: 18px; }
  .product { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .basket-item { grid-template-columns: 1fr 70px 36px; }
  .basket-price { grid-column: 1; grid-row: 2; text-align: left; }
  .basket-total { flex-wrap: wrap; }
  .basket-total .btn { width: 100%; }
  .page-head h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
