:root {
  --bg: #f8f7fc;
  --surface: #ffffff;
  --surface-tint: #faf9fe;
  --border: #e7e3f3;
  --border-strong: #d9d2ec;
  --text: #1c1533;
  --text-dim: #6b6483;
  --text-faint: #8f89a8;
  --gold-1: #ffb545;
  --gold-2: #f4a825;
  --gold-3: #b5760f;
  --violet-1: #8b5cf6;
  --violet-2: #7c3aed;
  --violet-3: #5b21b6;
  --violet-tint: #f1ecfe;
  --win: #059669;
  --win-tint: #e7f8f1;
  --no-win: #e11d48;
  --no-win-tint: #fdeaee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 42px -22px rgba(28, 21, 51, 0.22);
  --shadow-soft: 0 10px 22px -14px rgba(28, 21, 51, 0.18);
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ================= Site header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, var(--gold-1), var(--gold-3) 78%);
  box-shadow: inset -2px -3px 5px rgba(0, 0, 0, 0.25), inset 2px 2px 4px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  color: #241a00;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav .lang-switch {
  margin-left: 0.4rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--border);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.nav-link.active {
  color: var(--violet-2);
  border-color: var(--violet-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
}

.lang-switch {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}

.lang-btn .flag {
  font-size: 0.95rem;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: linear-gradient(100deg, var(--violet-1), var(--violet-3));
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.55);
}

/* ================= Hero ================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 640px 420px at 88% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 520px 360px at 5% 10%, rgba(244, 168, 37, 0.14), transparent 60%);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--violet-2);
  background: var(--violet-tint);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-2), var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #efe9fd, #fff4e0 65%, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ball {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  box-shadow:
    inset -3px -4px 8px rgba(0, 0, 0, 0.25),
    inset 3px 3px 6px rgba(255, 255, 255, 0.45),
    0 14px 26px -10px rgba(28, 21, 51, 0.35);
}

.hb-1 { width: 108px; height: 108px; font-size: 2.1rem; top: 12%; left: 12%; background: radial-gradient(circle at 32% 26%, var(--violet-1), var(--violet-3) 78%); animation: hero-float 6s ease-in-out infinite; }
.hb-2 { width: 76px; height: 76px; font-size: 1.5rem; bottom: 16%; left: 26%; background: radial-gradient(circle at 32% 26%, var(--gold-1), var(--gold-3) 78%); animation: hero-float 7s ease-in-out infinite 0.5s; }
.hb-3 { width: 92px; height: 92px; font-size: 1.7rem; top: 30%; right: 10%; background: radial-gradient(circle at 32% 26%, #34d399, #047857 78%); animation: hero-float 6.5s ease-in-out infinite 1s; }
.hb-4 { width: 64px; height: 64px; font-size: 1.25rem; bottom: 12%; right: 22%; background: radial-gradient(circle at 32% 26%, #fb7185, #9f1239 78%); animation: hero-float 5.5s ease-in-out infinite 0.3s; }
.hb-5 { width: 54px; height: 54px; font-size: 1.1rem; top: 8%; right: 32%; background: radial-gradient(circle at 32% 26%, #60a5fa, #1d4ed8 78%); animation: hero-float 8s ease-in-out infinite 1.4s; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ball { animation: none; }
}

/* ================= Sections & shared bits ================= */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.section-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--violet-2);
  margin: 0 0 0.7rem;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

.section-head p {
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ================= Game / jackpot cards ================= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.jackpot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.jackpot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--card-color, var(--violet-1));
}

.jackpot-card-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.jackpot-card-top > div {
  min-width: 0;
}

.jackpot-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, var(--card-from), var(--card-to) 78%);
  box-shadow:
    inset -3px -4px 6px rgba(0, 0, 0, 0.3),
    inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    0 8px 16px -8px rgba(28, 21, 51, 0.35);
  flex-shrink: 0;
}

.jackpot-card h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.jackpot-format {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.jackpot-amount-row {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border-strong);
}

.jackpot-amount-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 0.15rem;
}

.jackpot-amount {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jackpot-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet-2);
}

.jackpot-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 1.5rem auto 0;
  max-width: 560px;
}

/* ================= Steps ================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.step-card {
  text-align: center;
  padding: 0 0.5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(140deg, var(--violet-1), var(--violet-3));
  box-shadow: 0 12px 22px -10px rgba(124, 58, 237, 0.55);
}

.step-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

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

/* ================= Tickets teaser (home) ================= */
.tickets-teaser {
  background: linear-gradient(135deg, #1c1533, #3a2a6b);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: var(--shadow);
}

.tickets-teaser-text {
  max-width: 44ch;
}

.tickets-teaser .section-kicker {
  color: var(--gold-1);
}

.tickets-teaser h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
}

.tickets-teaser p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0;
}

/* ================= Buttons ================= */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(100deg, var(--gold-1), var(--gold-2));
  color: #241a00;
  box-shadow: 0 14px 26px -10px rgba(244, 168, 37, 0.55);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--violet-1);
  color: var(--violet-2);
}

.btn-light {
  background: #fff;
  color: #1c1533;
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  border-color: #fff;
}

/* ================= Panels (checker & tickets pages) ================= */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.page-head h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.page-head p {
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-soft);
}

.panel h2 {
  font-family: var(--font-head);
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.panel .hint {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
}

.game-select-panel {
  text-align: center;
}

.game-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.75rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 1.1rem 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.game-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  background: radial-gradient(circle at 32% 28%, var(--game-from), var(--game-to) 78%);
  box-shadow:
    inset -3px -4px 7px rgba(0, 0, 0, 0.3),
    inset 2px 3px 5px rgba(255, 255, 255, 0.4),
    0 6px 14px -6px rgba(28, 21, 51, 0.3);
  transition: transform 0.15s ease;
}

.game-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  overflow-wrap: break-word;
  max-width: 100%;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--game-from);
  color: var(--text);
}

.game-card:hover .game-badge {
  transform: scale(1.06);
}

.game-card.active {
  border-color: var(--game-from);
  color: var(--text);
  background: var(--surface-tint);
  box-shadow: 0 0 0 1px var(--game-from) inset, var(--shadow-soft);
}

.game-card.active .game-name {
  background: linear-gradient(100deg, var(--game-from), var(--game-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ---------- Number grids (glossy lottery balls) ---------- */
.group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.2rem 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

.group-label .count {
  font-weight: 700;
  color: var(--gold-3);
  font-variant-numeric: tabular-nums;
}

.grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
}

.grid-bonus {
  grid-template-columns: repeat(6, 1fr);
}

.num-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 32% 26%, #ffffff, #eeeaf9 78%);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 -2px 4px rgba(28, 21, 51, 0.08), 0 1px 2px rgba(28, 21, 51, 0.06);
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.num-btn:hover {
  border-color: var(--violet-1);
  transform: scale(1.08) translateY(-1px);
}

.num-btn:focus-visible {
  outline: 2px solid var(--violet-2);
  outline-offset: 2px;
}

.num-btn.selected {
  background: radial-gradient(circle at 32% 26%, var(--violet-1), var(--violet-3) 78%);
  border-color: var(--violet-2);
  color: #fff;
  font-weight: 700;
  box-shadow:
    inset -3px -4px 7px rgba(0, 0, 0, 0.3),
    inset 2px 3px 5px rgba(255, 255, 255, 0.35),
    0 8px 16px -8px rgba(124, 58, 237, 0.55);
}

.grid-bonus .num-btn.selected {
  background: radial-gradient(circle at 32% 26%, var(--gold-1), var(--gold-3) 78%);
  border-color: var(--gold-2);
  color: #241a00;
  box-shadow:
    inset -3px -4px 7px rgba(0, 0, 0, 0.2),
    inset 2px 3px 5px rgba(255, 255, 255, 0.55),
    0 8px 16px -8px rgba(244, 168, 37, 0.5);
}

.num-btn.match {
  outline: 3px solid var(--win);
  outline-offset: 2px;
}

.num-btn.static {
  cursor: default;
  width: 34px;
  height: 34px;
  font-size: 0.72rem;
}

/* ---------- Example row ---------- */
.example-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.example-row label {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.example-row select,
select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
}

/* ================= Actions ================= */
.actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= Result & warning ================= */
.warning {
  text-align: center;
  color: var(--no-win);
  font-weight: 600;
  margin: 0;
}

.result-panel {
  text-align: center;
  border-width: 2px;
}

.result-panel.win {
  border-color: var(--win);
  background: var(--win-tint);
}

.result-panel.no-win {
  border-color: var(--no-win);
  background: var(--no-win-tint);
}

#resultSummary {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--text-dim);
}

#resultTier {
  font-weight: 700;
  color: var(--gold-3);
  margin: 0.5rem 0;
}

#resultMessage {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-head);
  margin: 0.6rem 0 0;
}

/* ================= Tickets page ================= */
.ticket-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="number"] {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  min-width: 220px;
}

/* ================= Auth (Depot login/register) ================= */
#authSection {
  max-width: 440px;
  margin: 0 auto;
  padding: 2.4rem 2.1rem;
}

#authSection > .actions {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem;
  gap: 0.3rem;
  margin-bottom: 1.6rem !important;
}

#authSection > .actions .btn-sm {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

#authSection .ticket-form-row {
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
}

#authSection .field {
  width: 100%;
}

#authSection .field label {
  font-size: 0.85rem;
}

#authSection .input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

#authSection .input-icon .icon-glyph {
  position: absolute;
  left: 0.95rem;
  font-size: 1rem;
  opacity: 0.6;
  pointer-events: none;
}

#authSection .input-icon input {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  font-size: 0.96rem;
  background: var(--surface-tint);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#authSection .input-icon input:focus {
  outline: none;
  border-color: var(--gold-2);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(244, 168, 37, 0.16);
}

#authSection form > .actions {
  justify-content: stretch;
}

#authSection form > .actions .btn-primary {
  width: 100%;
  justify-content: center;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  background: var(--surface-tint);
}

.ticket-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.ticket-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.ticket-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.ticket-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.ticket-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-sm:hover {
  color: var(--text);
  border-color: var(--violet-1);
}

.btn-sm.danger:hover {
  color: var(--no-win);
  border-color: var(--no-win);
}

.btn-sm.active {
  background: linear-gradient(100deg, var(--violet-1), var(--violet-3));
  color: #fff;
  border-color: var(--violet-2);
}

/* ================= Admin ================= */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--violet-2);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table th {
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.status-pill.win {
  background: var(--win-tint);
  color: var(--win);
}

.status-pill.loss {
  background: var(--no-win-tint);
  color: var(--no-win);
}

.status-pill.pending {
  background: var(--surface-tint);
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
}

.admin-gate {
  text-align: center;
  padding: 3rem 1.5rem;
}

.check-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
}

.check-panel[hidden] {
  display: none;
}

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 2rem 1rem;
  font-size: 0.92rem;
}

.hint-box {
  display: flex;
  gap: 0.7rem;
  background: var(--violet-tint);
  border: 1px solid #e3d9fc;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: #4c3a86;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* ================= Footer ================= */
.site-footer {
  background: #171029;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ================= Responsive ================= */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-height: 320px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0.9rem;
    display: none;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .panel {
    padding: 1.25rem;
  }
  .game-switch {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .tickets-teaser {
    padding: 2rem 1.5rem;
  }
}
