@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Silkscreen"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/silkscreen-latin.woff2") format("woff2");
}

/* Farben aus dem Server-Logo: Lila → Rot */
:root {
  --bg: #0b0812;
  --bg-2: #120d1c;
  --card: #171025;
  --card-2: #221833;
  --glass: rgba(20, 14, 33, 0.72);
  --line: #2c2140;
  --text: #f4f0fa;
  --muted: #a99fbc;
  --accent: #ff2e5f;
  --accent-2: #a24bff;
  --grad: linear-gradient(135deg, #a24bff, #ff2e5f);
  --wa: #25d366;
  --radius: 20px;
}

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

/* Kein seitliches Verschieben/Wischen der Seite (Handy und Touchpad) */
html { overflow-x: hidden; }
html, body { max-width: 100%; overscroll-behavior-x: none; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
/* Hintergrund: der Spawn/Hub, abgedunkelt */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: -2; background: #0b0812 url("assets/hub.webp") center / cover no-repeat;
  filter: blur(3px) saturate(1.15);
}
body::after {
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 15% 0%, rgba(162, 75, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 55% 40% at 90% 5%, rgba(255, 46, 95, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(11, 8, 18, 0.62) 0%, rgba(11, 8, 18, 0.88) 45%, rgba(11, 8, 18, 0.97) 100%);
}

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

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

.grad-text, .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-family: "Silkscreen", ui-monospace, monospace; font-size: 0.8rem;
  letter-spacing: .08em; text-transform: uppercase; color: #ff7fa3;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 8, 18, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand-icon {
  width: 50px; height: 50px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  background: var(--grad); display: grid; place-items: center;
  font-weight: 900; font-size: 0.9rem; color: #fff;
  box-shadow: 0 6px 24px rgba(162, 75, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a.btn-store {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; background: var(--grad); box-shadow: 0 6px 22px rgba(255, 46, 95, 0.3);
}
.nav a.btn-store:hover { filter: brightness(1.12); }

/* ---------- Panels ---------- */
.panel {
  position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 24px; align-items: stretch; }

.server-panel { padding: 28px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.server-panel::before {
  content: ""; position: absolute; inset: -30% -30% auto; height: 80%;
  background: radial-gradient(circle, rgba(162, 75, 255, 0.35), transparent 60%);
  pointer-events: none;
}
.server-logo {
  position: relative; width: min(100%, 340px); aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(162, 75, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}
.server-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes float { 50% { transform: translateY(-8px); } }

.status {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem; font-weight: 700; color: var(--muted);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b6280; }
.status.online .dot { background: var(--wa); box-shadow: 0 0 10px var(--wa); }
.status.online b { color: var(--text); }

/* Copy boxes */
.copy-row { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; width: 100%; }
.copy-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(11, 8, 18, 0.65); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; cursor: pointer; text-align: left; color: var(--text);
  font: inherit; transition: border-color .15s, transform .15s, background .15s;
}
.copy-box:hover { border-color: var(--accent-2); transform: translateY(-2px); background: rgba(162, 75, 255, 0.08); }
.copy-box small { display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.copy-box strong { font-size: 1.05rem; font-weight: 900; white-space: nowrap; }
.copy-box .copy-ico { color: var(--muted); flex-shrink: 0; }
.copy-box.copied { border-color: var(--wa); }
.copy-box.copied .copy-ico { color: var(--wa); }
.copy-note { position: relative; color: var(--muted); font-size: 0.82rem; margin-top: -8px; }

/* Gem Store card */
.gem-panel { display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.gem-panel:hover { transform: translateY(-4px); border-color: rgba(255, 95, 210, 0.45); box-shadow: 0 30px 90px rgba(255, 95, 210, 0.18); }
.gem-img { position: relative; flex: 1; min-height: 260px; overflow: hidden; }
.gem-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .6s ease; }
.gem-panel:hover .gem-img img { transform: scale(1.05); }
.gem-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 14, 33, 0.95) 100%);
}
.gem-chip {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; color: #fff; background: rgba(11, 8, 18, 0.65); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.gem-chip svg { color: #ff5fd2; }
.gem-body { position: relative; padding: 0 28px 28px; margin-top: -70px; display: grid; gap: 8px; }
.gem-body h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.gem-body h2 span { background: linear-gradient(135deg, #ff5fd2, #a24bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gem-body p { color: var(--muted); max-width: 520px; }
.gem-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn-big {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 1.05rem; color: #fff; background: var(--grad);
  box-shadow: 0 12px 34px rgba(255, 46, 95, 0.3); transition: filter .15s, transform .15s;
}
.btn-big:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gem-cta small { color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 28px 0; }
.section-head { display: grid; gap: 6px; margin-bottom: 22px; }
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); }

/* ---------- Stats ---------- */
.stats-panel { padding: 36px; }
.stats-panel::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(255, 46, 95, 0.18), transparent 60%); pointer-events: none;
}
.stats-search { position: relative; display: flex; gap: 10px; max-width: 620px; }
.stats-search .search-field {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 16px;
  background: rgba(11, 8, 18, 0.7); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
.stats-search .search-field:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(162, 75, 255, 0.18); }
.stats-search svg { color: var(--muted); flex-shrink: 0; }
.stats-search input {
  flex: 1; min-width: 0; padding: 17px 0; border: 0; outline: none; background: none;
  color: var(--text); font: inherit; font-size: 1.1rem; font-weight: 700;
}
.stats-search .btn-big { padding: 0 26px; }
.stats-msg { position: relative; margin-top: 14px; color: var(--muted); }
.stats-msg.error { color: #ff6b8b; font-weight: 700; }

.stats-result { position: relative; margin-top: 28px; }
.player-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.player-avatar {
  width: 76px; height: 76px; border-radius: 18px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
  background: var(--grad); font-size: 2rem; font-weight: 900; color: #fff;
  box-shadow: 0 12px 34px rgba(162, 75, 255, 0.35);
}
.player-avatar img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.player-head h3 { font-size: 2rem; font-weight: 900; line-height: 1.1; }
.player-head .status { margin-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat {
  --c: #a24bff;
  padding: 18px; border-radius: 18px; background: rgba(11, 8, 18, 0.6); border: 1px solid var(--line);
  display: grid; gap: 6px; transition: border-color .15s, transform .15s;
}
.stat:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-2px); }
.stat-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: color-mix(in srgb, var(--c) 85%, #000); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 35%, transparent);
}
.stat small { color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat b { font-size: 1.55rem; font-weight: 900; line-height: 1.1; }
.stat b .unit { font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-left: 5px; }
.stat.big { grid-column: span 1; }

/* Rank prefix + tags */
.rank { margin-right: 8px; font-weight: 800; filter: brightness(1.45) saturate(1.1); text-shadow: 0 0 14px rgba(0, 0, 0, .6); }
.player-head h3 span { vertical-align: middle; }
.player-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.player-tags .status { margin-top: 0; }
.tag-bedrock {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 999px; color: #9fe8ff; background: rgba(46, 200, 255, 0.12); border: 1px solid rgba(46, 200, 255, 0.3);
}

/* Online status as link to the players page */
a.status-link { transition: border-color .15s, background .15s, transform .15s; }
a.status-link:hover { border-color: rgba(61, 214, 120, 0.5); background: rgba(37, 211, 102, 0.1); transform: translateY(-1px); }
.status-arrow { margin-left: 2px; color: var(--muted); transition: transform .15s; }
a.status-link:hover .status-arrow { transform: translateX(3px); color: var(--text); }

/* ---------- Online players page ---------- */
.players-section { padding-top: 40px; min-height: calc(100vh - 200px); }
.players-panel { padding: 34px; }
.players-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.players-top .section-head { margin-bottom: 0; }
.players-sub b, #players-sub b { color: var(--text); }
.players-actions { display: flex; gap: 10px; align-items: center; }
.search-field.small {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; width: 220px;
  background: rgba(11, 8, 18, 0.7); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
.search-field.small:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(162, 75, 255, 0.18); }
.search-field.small svg { color: var(--muted); flex-shrink: 0; }
.search-field.small input { flex: 1; min-width: 0; padding: 11px 0; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-weight: 700; }
.players-actions .btn-ghost.small { padding: 11px 14px; }

.player-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.player-row {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(11, 8, 18, 0.6); border: 1px solid var(--line); color: var(--text); font: inherit;
  transition: border-color .15s, transform .15s, background .15s;
}
.player-row:hover { border-color: var(--accent-2); background: rgba(162, 75, 255, 0.08); transform: translateY(-2px); }
.player-avatar.small { width: 44px; height: 44px; border-radius: 12px; font-size: 1.1rem; box-shadow: none; }
.player-name { flex: 1; min-width: 0; font-weight: 800; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-arrow { color: var(--muted); transition: transform .15s, color .15s; }
.player-row:hover .row-arrow { color: var(--text); transform: translateX(3px); }
.players-hint { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* Stats dialog */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 3, 10, 0.72); backdrop-filter: blur(6px);
}
.modal-box { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; background: rgba(20, 14, 33, 0.96); }
.modal-box .stats-result { margin-top: 0; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 1; }
.modal-link { display: inline-block; margin-top: 18px; }

/* ---------- Join + WhatsApp ---------- */
.info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.join-panel, .wa-panel { padding: 30px; }
.join-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.join-card { padding: 20px; border-radius: 18px; background: rgba(11, 8, 18, 0.6); border: 1px solid var(--line); }
.join-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 10px; }
.join-card h3 span { font-family: "Silkscreen", monospace; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; background: var(--grad); color: #fff; }
.join-card ol { padding-left: 18px; color: var(--muted); display: grid; gap: 4px; font-size: 0.93rem; }
.join-card code { font-family: ui-monospace, Consolas, monospace; color: var(--text); background: var(--card-2); padding: 1px 6px; border-radius: 5px; }

.wa-panel { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.wa-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(37, 211, 102, 0.16), transparent 55%); pointer-events: none;
}
.wa-panel img { position: relative; width: 150px; border-radius: 16px; display: block; background: #fff; }
.wa-panel h2 { font-size: 1.5rem; font-weight: 900; line-height: 1.15; margin-bottom: 6px; position: relative; }
.wa-panel p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; position: relative; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px; position: relative;
  background: var(--wa); color: #06210f; font-weight: 900; padding: 12px 20px; border-radius: 12px;
  transition: filter .15s, transform .15s;
}
.btn-wa:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 28px 0; color: var(--muted); font-size: 0.9rem; background: rgba(11, 8, 18, 0.6); }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--wa); color: #06210f; font-weight: 800; padding: 12px 20px; border-radius: 12px;
  transition: transform .25s ease; z-index: 70;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Store page ---------- */
.hidden { display: none !important; }

.store-hero { position: relative; padding: 72px 0 12px; text-align: center; isolation: isolate; }
.store-hero::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1;
  background: url("assets/gem-shop.webp") center 45% / cover no-repeat; opacity: .3; filter: blur(4px) saturate(1.2);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 55%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 55%, transparent);
}
.store-hero .eyebrow { display: block; margin-bottom: 6px; }
.gem-grad { background: linear-gradient(135deg, #ff5fd2, #a24bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.store-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.store-hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.store-hero p { color: var(--muted); font-size: 1.1rem; margin: 14px auto 0; max-width: 560px; }
.test-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  color: var(--accent-2); background: rgba(162, 75, 255, 0.1); border: 1px solid rgba(162, 75, 255, 0.35);
}
.test-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.trust svg { color: var(--accent-2); }

.store-section { padding-top: 40px; }

/* Tabs (segmented control) */
.tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  position: relative; left: 50%; transform: translateX(-50%);
  max-width: 100%; overflow-x: auto;
}
.tab {
  padding: 10px 20px; border-radius: 10px; border: 0; background: none; white-space: nowrap;
  color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: color .15s, background .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; background: var(--grad); box-shadow: 0 6px 20px rgba(255, 46, 95, 0.3); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product {
  --c1: #ffcc4d; --c2: #ff8a1c;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product[data-cat="ranks"] { --c1: #ff4d6d; --c2: #a63dff; }
.product[data-cat="cosmetics"] { --c1: #2ee6d6; --c2: #3d7bff; }
.product[data-cat="gems"] { --c1: #ff5fd2; --c2: #a24bff; }
.product[data-cat="custom"] { --c1: #ff2e5f; --c2: #a24bff; }
.product:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--c1) 55%, transparent);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--c1) 22%, transparent);
}
.product.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--c1), var(--c2)) border-box;
}

.product-art {
  position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--c1) 16%, var(--card-2)), color-mix(in srgb, var(--c2) 12%, var(--card-2)));
}
.product-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.art-ico {
  position: relative; width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 14px 40px color-mix(in srgb, var(--c1) 50%, transparent), inset 0 2px 0 rgba(255, 255, 255, .35);
  transform: rotate(-6deg); transition: transform .3s ease;
}
.product:hover .art-ico { transform: rotate(0deg) scale(1.08); }
.product-art.has-bonus { padding-top: 34px; }
.product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-body .badge {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}

.product-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 18px; }
.product-cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--c1); }
.product h3 { font-size: 1.4rem; font-weight: 900; margin: 2px 0 6px; }
.product p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.perks { list-style: none; display: grid; gap: 6px; flex: 1; }
.perks li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.93rem; }
.perks svg { color: var(--c1); flex-shrink: 0; }

.product-foot { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.product-foot .btn-add { justify-content: center; }
.product .price { font-size: 1.45rem; font-weight: 900; line-height: 1.1; }
.product .price small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 11px 16px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 0.92rem; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  transition: filter .15s, transform .15s;
}
.btn-add:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-add.added { background: var(--wa); color: #06210f; }
.btn-add:disabled { opacity: .4; cursor: default; filter: none; transform: none; }
.product-art .bonus {
  position: absolute; top: 14px; right: 14px; z-index: 1; text-align: right; line-height: 1.15;
  font-size: 0.78rem; font-weight: 900; padding: 5px 10px; border-radius: 10px;
  color: #2a0620; background: #ff5fd2; box-shadow: 0 6px 18px rgba(255, 95, 210, .35);
}
.product-art .bonus small { display: block; font-size: 0.66rem; font-weight: 800; opacity: .8; }

/* Custom amount */
.custom-product {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; padding: 22px 26px;
  background:
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 45%),
    var(--card);
}
.custom-ico {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 32px color-mix(in srgb, var(--c1) 40%, transparent);
  transform: rotate(-6deg); transition: transform .3s ease;
}
.custom-product:hover .custom-ico { transform: rotate(0deg) scale(1.06); }
.custom-text { flex: 1; min-width: 0; }
.custom-text p { color: var(--muted); font-size: 0.93rem; }
.custom-picker { display: grid; gap: 8px; width: 230px; flex-shrink: 0; }
.custom-input {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s;
}
.custom-input:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(162, 75, 255, 0.15); }
.custom-input input {
  flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: none; background: none; color: var(--text);
  font: inherit; font-size: 1.25rem; font-weight: 900; -moz-appearance: textfield;
}
.custom-input input::-webkit-outer-spin-button, .custom-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-input input.invalid { color: #ff6b6b; }
.custom-input span { color: var(--muted); font-weight: 700; }
.custom-picker input[type="range"] { width: 100%; accent-color: var(--accent-2); cursor: pointer; }
.custom-picker small { color: var(--muted); font-size: 0.78rem; }
.custom-picker small.error { color: #ff6b6b; }
.custom-buy { display: grid; gap: 10px; justify-items: stretch; width: 170px; flex-shrink: 0; text-align: center; }
.custom-buy .price { font-size: 1.7rem; }
.custom-buy .btn-add { justify-content: center; }

.btn-add.in-cart { background: transparent; border-color: color-mix(in srgb, var(--c1) 50%, transparent); color: var(--c1); }

/* Header cart button */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.95rem; color: #fff;
  background: var(--grad);
}
.cart-btn:hover { filter: brightness(1.1); }
.cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: #fff; color: var(--accent); font-size: 0.78rem; font-weight: 900;
}
.cart-badge.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Drawer */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }

.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { flex: 1; font-size: 1.25rem; font-weight: 900; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--accent-2); }
.icon-btn.small { width: 34px; height: 34px; color: var(--muted); }
.icon-btn.small:hover { color: #ff6b6b; border-color: #ff6b6b; }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--card); display: grid; gap: 4px; }

.cart-items { list-style: none; display: grid; gap: 10px; }
.cart-items li {
  --c1: #ffcc4d; --c2: #ff8a1c;
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.cart-items li[data-cat="ranks"] { --c1: #ff4d6d; --c2: #a63dff; }
.cart-items li[data-cat="cosmetics"] { --c1: #2ee6d6; --c2: #3d7bff; }
.cart-items li[data-cat="gems"] { --c1: #ff5fd2; --c2: #a24bff; }
.cart-items li[data-cat="custom"] { --c1: #ff2e5f; --c2: #a24bff; }
.ci-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ci-info { flex: 1; min-width: 0; }
.ci-info b { display: block; }
.ci-info small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.qty button { width: 28px; height: 28px; border-radius: 7px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.qty button:hover { background: var(--card-2); }
.qty button:disabled { opacity: .3; cursor: default; background: none; }
.cart-items li.empty {
  flex-direction: column; text-align: center; gap: 6px; padding: 48px 20px;
  background: none; border: 1px dashed var(--line); color: var(--muted);
}
.cart-items li.empty b { color: var(--text); font-size: 1.05rem; margin-top: 6px; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total span { color: var(--muted); font-weight: 600; }
.cart-total strong { font-size: 1.6rem; font-weight: 900; }
.vat, .secure-note { color: var(--muted); font-size: 0.8rem; }
.secure-note { text-align: center; margin-top: 6px; }

.btn-primary {
  width: 100%; margin-top: 12px; padding: 14px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px rgba(255, 46, 95, 0.25); transition: filter .15s, transform .15s;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .4; cursor: default; box-shadow: none; transform: none; filter: none; }
a.btn-primary { display: block; text-align: center; }
#buy { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-ghost {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-weight: 700; transition: color .15s, border-color .15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent-2); }
.btn-ghost.small { width: auto; padding: 7px 12px; font-size: 0.85rem; border-radius: 9px; }
.store-offline { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }

/* Checkout form */
#view-checkout { display: grid; gap: 22px; }
.field > span { display: block; font-weight: 800; font-size: 0.9rem; margin-bottom: 8px; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-family: ui-monospace, Consolas, monospace; font-size: 1rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(162, 75, 255, 0.15); }
.field input.invalid { border-color: #ff5c5c; }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: 0.82rem; }
.field small.error { color: #ff6b6b; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; transition: all .15s; background: var(--card);
}
.check input:checked + .check-box {
  border-color: transparent; background: var(--grad);
}
.check input:checked + .check-box::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(162, 75, 255, 0.2); }
.check a { color: var(--accent-2); text-decoration: underline; }

.pay-error { color: #ff6b6b; font-size: 0.9rem; font-weight: 700; text-align: center; }

/* Centered pages: payment, order status */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.center-card {
  width: 100%; max-width: 440px; display: grid; gap: 14px; justify-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.center-card > form, .center-card > .btn-primary { width: 100%; }
.center-card h1 { font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.center-card h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center-card p { color: var(--muted); }
.center-card p b { color: var(--text); }
.center-card .test-pill { margin-bottom: 0; }
.center-card a:not(.btn-primary) { color: var(--accent-2); }
.pay-lines { list-style: none; width: 100%; display: grid; gap: 8px; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.pay-lines li { display: flex; justify-content: space-between; gap: 12px; }
.pay-lines li.sum { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-size: 1.1rem; }
.pay-lines li.sum b { font-weight: 900; }
.order-ico {
  width: 80px; height: 80px; border-radius: 24px; display: grid; place-items: center; color: #fff; margin-bottom: 4px;
  background: var(--grad); box-shadow: 0 14px 40px rgba(255, 46, 95, .35);
}
.order-card[data-status="delivered"] .order-ico { background: linear-gradient(135deg, #ff5fd2, #a24bff); box-shadow: 0 14px 40px rgba(255, 95, 210, .3); }
.order-card[data-status="cancelled"] .order-ico, .order-card[data-status="failed"] .order-ico { background: var(--card-2); box-shadow: none; color: var(--muted); }
.order-card[data-status="paid"] .order-ico svg, .order-card[data-status="pending_payment"] .order-ico svg { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-progress { width: 100%; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.order-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5fd2, #a24bff); transition: width .5s ease; }

/* Admin */
.admin { padding: 40px 16px 80px; }
.admin-login { max-width: 380px; margin: 40px auto; display: grid; gap: 16px; }
.admin-login h1 { font-size: 2rem; font-weight: 900; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-bar .tabs { position: static; transform: none; margin: 0; }
.admin-order { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.admin-order.s-failed { border-color: #ff6b6b; }
.ao-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ao-head b { font-size: 1.1rem; }
.ao-total { margin-left: auto; font-weight: 900; }
.ao-meta { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.ao-meta code, .ao-deliveries code { font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; color: var(--text); }
.ao-deliveries { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.ao-deliveries li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.ao-deliveries small { color: var(--muted); flex-basis: 100%; }
.ao-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.pill.s-delivered { color: #ff5fd2; background: rgba(255, 95, 210, .1); }
.pill.s-paid, .pill.s-pending, .pill.s-sending { color: var(--accent-2); background: rgba(162, 75, 255, .1); }
.pill.s-failed, .pill.s-uncertain { color: #ff6b6b; background: rgba(255, 107, 107, .12); }
.muted { color: var(--muted); }

.order-id code { word-break: break-all; font-size: .82rem; font-family: ui-monospace, Consolas, monospace; color: var(--text); background: var(--card-2); padding: 3px 9px; border-radius: 6px; margin-left: 6px; }

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .cart-label { display: none; }
  .custom-product { flex-wrap: wrap; }
  .custom-text { flex-basis: calc(100% - 90px); }
  .custom-picker, .custom-buy { width: auto; flex: 1 1 200px; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-art { height: 120px; }
  .product-art.has-bonus { padding-top: 40px; }
  .art-ico { width: 62px; height: 62px; border-radius: 18px; }
  .art-ico svg { width: 30px; height: 30px; }
  .custom-product { padding: 20px; gap: 16px; }
}
@media (max-width: 480px) {
  .product-body { padding: 14px; }
  .product h3 { font-size: 1.15rem; }
  .product p { font-size: 0.85rem; }
  .btn-add { padding: 10px 12px; font-size: 0.85rem; }
  .tab { padding: 9px 12px; font-size: 0.9rem; }
  .center-card { padding: 28px 18px 20px; }
  .store-hero { padding-top: 40px; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn-store) { display: none; }
  .gem-img { min-height: 220px; }
}
@media (max-width: 760px) {
  .player-list { grid-template-columns: 1fr; }
  .players-actions { width: 100%; }
  .search-field.small { width: auto; flex: 1; min-width: 0; }
}
@media (max-width: 560px) {
  .players-panel, .modal-box { padding: 20px; }
  .modal-box { padding-top: 56px; }
  .copy-row { grid-template-columns: 1fr; }
  .stats-panel, .join-panel, .wa-panel, .server-panel { padding: 20px; }
  .gem-body { padding: 0 20px 22px; }
  .stats-search { flex-direction: column; }
  .stats-search .btn-big { padding: 14px; justify-content: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 1.3rem; }
  .join-cols { grid-template-columns: 1fr; }
  .wa-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .brand span { display: none; }
}
