:root {
  --bg: #0b0b14;
  --bg-alt: #12121f;
  --card: #171727;
  --card-hover: #1d1d33;
  --border: #2a2a42;
  --text: #f2f2f9;
  --text-dim: #9a9ab3;
  --accent: #7c5cff;
  --accent-2: #ff5c8a;
  --gold: #d4af37;
  --good: #22c1a4;
  --warn: #ffb020;
  --eneba: #7c5cff;
  --kinguin: #ff5c5c;
  --cdkeys: #22c1a4;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", "Tahoma", system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,92,138,0.12), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,11,20,0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
}

.logo span.doda { color: var(--gold); }
.logo span.game { color: #ffffff; }

nav.main-nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
}

nav.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.lang-toggle button.active {
  background: var(--accent);
  color: white;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.search-bar {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow);
}

[dir="rtl"] .search-bar { padding: 6px 20px 6px 8px; }

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 10px 8px;
}

.search-bar input::placeholder { color: var(--text-dim); }

.search-bar button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}

.store-strip {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.store-strip span { display: flex; align-items: center; gap: 6px; }
.store-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Filters ---------- */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}

.chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s;
}

.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.sort-select select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  cursor: pointer;
}

.results-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--card-hover);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-emoji {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,92,255,0.12);
  border-radius: 14px;
  flex-shrink: 0;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--good);
  background: rgba(34,193,164,0.15);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.card .meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card .meta span { display: flex; align-items: center; gap: 4px; }

.store-prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 0.88rem;
}

.store-row.best {
  border-color: var(--good);
  background: rgba(34,193,164,0.08);
}

.store-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.store-name .store-dot { width: 9px; height: 9px; border-radius: 50%; }

.store-price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.store-row.best .store-price { color: var(--good); }

.card-cta {
  margin-top: 6px;
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
}

.card-cta:hover { filter: brightness(1.08); }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- How it works ---------- */
.how-section {
  padding: 70px 0;
  border-top: 1px solid var(--border);
}

.how-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 44px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.how-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.how-step h3 {
  color: var(--accent-2);
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.how-step p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Disclaimer ---------- */
.disclaimer-box {
  margin: 0 0 60px;
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .hero { padding: 44px 0 30px; }
  .search-bar { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 14px; }
  .search-bar button { margin-top: 8px; }
  .filters-bar { flex-direction: column; align-items: stretch; }
}
