@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #121316;
  --bg-2: #18191d;
  --card: #1e2025;
  --card-2: #25272d;
  --line: #2e3138;
  --text: #f2f3f5;
  --muted: #9a9fab;
  --accent: #d946ef;      /* hlavni ruzovo-fialova (z loga) */
  --accent-ink: #ffffff;
  --flux: #5ee7ff;        /* tyrkysova (z loga) */
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #d946ef 55%, #ff6fd8 100%);
  --gold: #f5c84c;
  --discord: #5865f2;
  --radius: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Navigace ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 19, 22, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark {
  height: 36px; width: auto;
  filter: drop-shadow(0 0 10px rgba(217,70,239,.45));
}
.logo span b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: #cfd2d8; }
.nav-links a { transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Tlacitka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px; border: 0; cursor: pointer;
  font: 600 14px/1 "Poppins", sans-serif;
  transition: transform .12s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-green { background: var(--grad); color: var(--accent-ink); box-shadow: 0 6px 22px -8px rgba(217,70,239,.7); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-gold { background: var(--gold); color: #2a1f00; }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 420px at 78% 40%, rgba(94,231,255,.16), transparent 60%),
    radial-gradient(600px 320px at 85% 55%, rgba(217,70,239,.12), transparent 60%),
    linear-gradient(180deg, #16171b 0%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 99px; background: rgba(217,70,239,.08);
  border: 1px solid rgba(217,70,239,.25); color: var(--accent); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(48px, 7vw, 88px); line-height: .98; font-weight: 800; letter-spacing: -.035em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--flux), var(--violet) 45%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 21px; font-weight: 600; margin: 18px 0 30px; color: #e6e8ec; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats b { display: block; font-size: 26px; font-weight: 700; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* Hero grafika: svitici "flux" jadro */
.core { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; width: 100%; }
.core .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(94,231,255,.25); animation: spin 30s linear infinite; }
.core .ring:nth-child(2) { inset: 12%; border-color: rgba(217,70,239,.25); border-style: dashed; animation-duration: 22s; animation-direction: reverse; }
.core .ring:nth-child(3) { inset: 26%; border-color: rgba(94,231,255,.35); animation-duration: 14s; }
.core .ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--flux); box-shadow: 0 0 16px var(--flux); }
.core .ring:nth-child(2)::after { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.core .heart {
  position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(217,70,239,.55)) drop-shadow(0 0 70px rgba(139,92,246,.35));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sekce ---------- */
section { padding: 90px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .bar { width: 46px; height: 6px; border-radius: 9px; background: var(--accent); margin: 0 auto 14px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; }
.sec-head p { color: var(--muted); margin-top: 6px; }
.sec-left { text-align: left; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sec-left .bar { width: 38px; height: 5px; border-radius: 9px; background: var(--flux); }
.sec-left h2 { font-size: 30px; font-weight: 700; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

/* ---------- Servery ---------- */
.servers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.server {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.server:hover { border-color: rgba(217,70,239,.4); transform: translateY(-3px); }
.server-banner {
  height: 120px; position: relative; display: flex; align-items: flex-end; padding: 12px;
  background:
    radial-gradient(260px 120px at 80% 0%, rgba(94,231,255,.3), transparent 70%),
    linear-gradient(135deg, #20262a, #1a1c20);
}
.server-banner .tag { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: rgba(0,0,0,.45); margin-right: 6px; }
.server-banner .rate { position: absolute; right: 14px; top: 8px; font-size: 54px; font-weight: 800; color: rgba(255,255,255,.08); letter-spacing: -.04em; }
.server-body { padding: 16px 18px; flex: 1; }
.server-body small { color: var(--muted); font-size: 12px; }
.server-body h3 { font-size: 20px; font-weight: 700; margin: 4px 0 6px; }
.server-body p { color: var(--muted); font-size: 14px; }
.server-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--bg-2); border-top: 1px solid var(--line);
}
.server-foot .lbl { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .05em; }
.server-foot .cnt { font-weight: 700; font-size: 15px; }
.meter { height: 4px; width: 110px; background: var(--line); border-radius: 9px; margin-top: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--flux), var(--accent)); }
.center { text-align: center; margin-top: 30px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(94,231,255,.1); color: var(--flux); margin-bottom: 14px; }
.feature h4 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- Store banner ---------- */
.cta-box {
  border-radius: 18px; padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background:
    radial-gradient(500px 200px at 90% 50%, rgba(217,70,239,.18), transparent 70%),
    linear-gradient(135deg, #261a33, #1c1e23);
  border: 1px solid rgba(217,70,239,.2);
}
.cta-box h2 { font-size: 34px; font-weight: 700; }
.cta-box p { color: #c7cbd2; max-width: 560px; margin-top: 6px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a:hover { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 12px 20px; border-radius: 10px;
  transition: .25s; z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================== OBCHOD ================== */
.store-hero { text-align: center; padding: 70px 0 30px; position: relative; }
.store-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 260px at 50% 0%, rgba(94,231,255,.14), transparent 70%); pointer-events: none; }
.store-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; position: relative; }
.store-hero p { font-size: 19px; font-weight: 600; color: #dfe2e7; margin-top: 8px; position: relative; }
.trust {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 26px auto 0; max-width: 820px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; font-size: 13px; color: #cfd2d8; position: relative;
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--flux); }

.store-sec { padding: 46px 0; }
.dur-tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 22px; flex-wrap: wrap; }
.dur-tabs button {
  background: none; border: 0; color: var(--muted); font: 600 13px "Poppins"; padding: 9px 14px; border-radius: 7px; cursor: pointer; display: flex; gap: 6px; align-items: center;
}
.dur-tabs button.on { background: var(--card-2); color: var(--text); }
.dur-tabs .off { background: rgba(217,70,239,.15); color: var(--accent); font-size: 11px; padding: 2px 6px; border-radius: 5px; }

.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rank {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; position: relative; transition: transform .2s, border-color .2s;
}
.rank:hover { transform: translateY(-3px); }
.rank.popular { border-color: rgba(94,231,255,.55); box-shadow: 0 0 0 1px rgba(94,231,255,.25), 0 20px 50px -20px rgba(94,231,255,.35); }
.rank .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.rank .shield { width: 46px; height: 46px; margin-bottom: 12px; }
.rank h3 { font-size: 22px; font-weight: 700; }
.price { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.price s { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.per { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.rank ul { list-style: none; margin-bottom: 20px; flex: 1; }
.rank li { font-size: 14px; color: #d2d5db; padding: 5px 0 5px 24px; position: relative; }
.rank li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; position: relative; }
.item .ribbon { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(245,200,76,.15); color: var(--gold); }
.coin { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c2, var(--gold) 45%, #b78512); display: grid; place-items: center; color: #4a3300; font-weight: 800; margin-bottom: 14px; box-shadow: 0 0 24px rgba(245,200,76,.25); }
.kit-ic { width: 48px; height: 48px; border-radius: 10px; background: rgba(217,70,239,.1); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.item h4 { font-size: 18px; font-weight: 700; }
.item .meta { font-size: 13px; color: var(--muted); margin: 4px 0 14px; flex: 1; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item .row b { font-size: 20px; }

/* Kosik */
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.cart-count:empty { display: none; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: .3s cubic-bezier(.2,.8,.2,1); z-index: 100; display: flex; flex-direction: column; }
.cart-open .overlay { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer header h3 { font-size: 19px; }
.x { background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.lines { flex: 1; overflow: auto; padding: 10px 20px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.line small { display: block; color: var(--muted); font-size: 12px; }
.line .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.line .rm:hover { color: #ff6b6b; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.drawer .total { padding: 20px; border-top: 1px solid var(--line); }
.drawer .total div { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.drawer .note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

.steamid { display: flex; gap: 8px; margin-bottom: 12px; }
.steamid input { flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font: 14px "Poppins"; }
.steamid input:focus { outline: none; border-color: var(--flux); }

/* Pravidla */
.rules { max-width: 760px; margin: 0 auto; counter-reset: r; list-style: none; }
.rules li { counter-increment: r; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 16px 58px; position: relative; margin-bottom: 10px; }
.rules li::before { content: counter(r); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; background: rgba(217,70,239,.12); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; }

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
  .servers, .ranks, .grid-4, .features { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .core { max-width: 300px; margin: 0 auto; order: -1; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 32px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .burger { display: block; }
  .nav-right .btn-text { display: none; }
  .servers, .ranks, .grid-4, .features { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 40px 0 70px; }
  .hero-stats { gap: 22px; }
  section { padding: 60px 0; }
}
