/* ===== igaming template — per-host accent via --accent ===== */
:root {
  --accent: #f5c542;
  --accent-2: #ff7a00;
  --bg: #0b0c16;
  --bg-2: #12142400;
  --panel: #161829;
  --panel-2: #1d2036;
  --text: #e8e9f0;
  --muted: #8b8fa8;
  --line: #262a44;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,12,22,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; letter-spacing: 0.5px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0c16; font-size: 20px; font-weight: 900;
}
.brand-name { color: #fff; }
.brand-name .tld { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 10px; }

/* ---- buttons ---- */
.btn {
  border: 0; cursor: pointer; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 9px; transition: transform .1s, filter .15s;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0c16; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; padding: 13px; margin-top: 8px; }

/* ---- hero ---- */
.hero {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 80px 20px 70px; text-align: center;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  filter: blur(40px); z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.hero h1 { font-size: 52px; line-height: 1.15; margin: 22px 0 14px; color: #fff; font-weight: 900; }
.accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 48px; flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; color: var(--accent); font-weight: 900; }
.hero-stats span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---- sections ---- */
.section-title {
  text-align: center; font-size: 30px; font-weight: 900; color: #fff;
  margin-bottom: 32px;
}
.cats, .games, .promos { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }

/* ---- categories ---- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 14px; text-align: center; transition: transform .15s, border-color .15s;
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cat-ico { font-size: 36px; margin-bottom: 8px; }
.cat-card h3 { font-size: 15px; color: #fff; }
.cat-card p { font-size: 12px; color: var(--muted); }

/* ---- game grid ---- */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: transform .15s, border-color .15s; cursor: pointer;
}
.game-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.game-thumb {
  height: 140px; display: grid; place-items: center; font-size: 52px;
  background: linear-gradient(135deg, var(--panel-2), #0b0c16);
}
.game-info { padding: 14px; }
.game-info h4 { font-size: 15px; color: #fff; }
.game-info .game-meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-top: 4px; }
.game-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 6px;
}

/* ---- promos ---- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.promo-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--accent);
  margin-bottom: 10px;
}
.promo-card h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.promo-card p { color: var(--muted); font-size: 14px; }

/* ---- trust ---- */
.trust {
  display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
  padding: 30px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.trust-item { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---- footer ---- */
.footer { padding: 50px 20px; }
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; font-size: 20px; margin-bottom: 16px;
}
.footer-note { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.footer-copy { color: #555a72; font-size: 13px; }

/* ---- modal ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px; width: 360px; max-width: 90vw; position: relative;
}
.modal h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.modal-input {
  width: 100%; padding: 12px 14px; margin-bottom: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  color: #fff; font-size: 14px; font-family: inherit;
}
.modal-input:focus { outline: none; border-color: var(--accent); }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
