/*
 * Design principle: a clean white canvas carrying real lottery imagery - glossy
 * numbered balls, a ticket-perforated card edge, a jackpot strip - in vivid,
 * saturated colors (not muted "elegant" tones). Richness comes from actual
 * lottery-shaped content, not abstract decoration.
 */
:root {
  --brand-700: #1c4dbd;
  --brand-600: #2f6fed;
  --brand-500: #5a8dff;
  --ink-900: #10162e;
  --gold-600: #f5b400;
  --gold-400: #ffd166;
  --ink: #23262b;
  --text-muted: #6b7280;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --line: #e7e9ee;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(16, 22, 46, 0.08);

  /* default accent - overridden per element by .accent-* utility classes */
  --accent: var(--brand-600);
  --accent-dark: var(--brand-700);
  --accent-soft: #e7edfe;
  --accent-glow: rgba(47, 111, 237, 0.3);
}

/* Vivid 5-hue "lottery ball" accent palette - applied as a class on a card/tile
   wrapper, consumed generically by .quick-tile .icon, .draw-card-head, etc. */
.accent-emerald {
  --accent: #16a870;
  --accent-dark: #0d7a52;
  --accent-soft: #e2f7ef;
  --accent-glow: rgba(22, 168, 112, 0.32);
}
.accent-indigo {
  --accent: #2f6fed;
  --accent-dark: #1c4dbd;
  --accent-soft: #e7edfe;
  --accent-glow: rgba(47, 111, 237, 0.32);
}
.accent-terracotta {
  --accent: #ef4444;
  --accent-dark: #c62828;
  --accent-soft: #fdeaea;
  --accent-glow: rgba(239, 68, 68, 0.32);
}
.accent-gold {
  --accent: #f5b400;
  --accent-dark: #c98a00;
  --accent-soft: #fff3d6;
  --accent-glow: rgba(245, 180, 0, 0.35);
}
.accent-plum {
  --accent: #8b3ff2;
  --accent-dark: #6423c2;
  --accent-soft: #f1e7fe;
  --accent-glow: rgba(139, 63, 242, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
.brand-text,
.section-title {
  font-family: "Baloo 2", "Poppins", sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1200px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink-900);
  color: #c6cbe0;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar a {
  color: #c6cbe0;
  margin-right: 18px;
}
.topbar a:hover {
  color: var(--gold-400);
}
.topbar-badges span {
  margin-left: 18px;
  color: var(--gold-400);
}
.topbar-badges i {
  margin-right: 4px;
}

/* ---------- Navbar: white + a colorful "ticket stripe" bottom border ---------- */
.site-navbar {
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 14px rgba(16, 22, 46, 0.06);
  z-index: 1030;
  border-bottom: 4px solid;
  border-image: linear-gradient(
      90deg,
      #ef4444,
      #f5b400,
      #16a870,
      #2f6fed,
      #8b3ff2
    )
    1;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-600);
}
.brand-mark {
  font-size: 1.6rem;
  color: var(--brand-600);
}
.brand-text {
  color: var(--ink);
  font-size: 1.3rem;
}
.site-navbar .nav-link {
  color: #55595f;
  font-weight: 600;
  margin: 0 6px;
  font-family: "Poppins", sans-serif;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--brand-600);
}
.nav-actions .btn-outline-light {
  border-color: var(--ink);
  color: var(--ink);
}
.nav-actions .btn-outline-light:hover {
  background: var(--ink);
  color: #fff;
}
.btn-brand {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border: none;
  color: #402d00;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(245, 180, 0, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 180, 0, 0.48);
  color: #402d00;
}
.btn-hero-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}
.btn-hero-outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
.wallet-pill {
  background: var(--accent-soft, #e7edfe);
  color: var(--accent-dark, var(--brand-700));
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.wallet-pill:hover {
  filter: brightness(0.97);
}

/* ---------- Hero: light canvas, colorful confetti wash + real lottery balls ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 8% 20%, rgba(239, 68, 68, 0.09), transparent 40%),
    radial-gradient(
      circle at 92% 12%,
      rgba(47, 111, 237, 0.11),
      transparent 45%
    ),
    radial-gradient(
      circle at 25% 95%,
      rgba(245, 180, 0, 0.12),
      transparent 40%
    ),
    radial-gradient(
      circle at 88% 90%,
      rgba(139, 63, 242, 0.09),
      transparent 40%
    ),
    var(--surface);
}
.hero.has-bg {
  background-image:
    linear-gradient(180deg, rgba(16, 22, 46, 0.7), rgba(16, 22, 46, 0.86)),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero.has-bg h1 {
  color: #fff;
}
.hero.has-bg .hero-eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
  border-color: rgba(255, 255, 255, 0.25);
}
.hero.has-bg p.lead {
  color: #dcdfec;
}
.hero.has-bg .trust-strip span {
  color: #dcdfec;
}
.hero.has-bg .trust-strip i {
  color: var(--gold-400);
}
.hero-float {
  position: absolute;
  pointer-events: none;
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(8deg);
  }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.hero h1 .accent-word {
  background: linear-gradient(
    90deg,
    #ef4444,
    #f5b400 33%,
    #2f6fed 66%,
    #8b3ff2 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% center;
  }
}
.hero p.lead {
  color: var(--text-muted);
  font-family: "Poppins", sans-serif;
  position: relative;
  z-index: 1;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.trust-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #55595f;
  font-weight: 600;
}
.trust-strip i {
  color: var(--brand-600);
}

/* Jackpot strip: colorful, ball row + real prize amount, the visual heart of the homepage */
.jackpot-strip {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  background: linear-gradient(120deg, #fff9ec, #fff);
  border: 2px solid #ffe4a3;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(245, 180, 0, 0.16);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.ball-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lotto-ball {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  position: relative;
  box-shadow:
    inset -5px -5px 10px rgba(0, 0, 0, 0.18),
    inset 4px 4px 8px rgba(255, 255, 255, 0.35),
    0 8px 16px rgba(0, 0, 0, 0.16);
  animation: ball-bounce 2.6s ease-in-out infinite;
}
.lotto-ball::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 12px;
  width: 14px;
  height: 9px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  filter: blur(0.5px);
}
.lotto-ball:nth-child(1) {
  animation-delay: 0s;
}
.lotto-ball:nth-child(2) {
  animation-delay: 0.15s;
}
.lotto-ball:nth-child(3) {
  animation-delay: 0.3s;
}
.lotto-ball:nth-child(4) {
  animation-delay: 0.45s;
}
.lotto-ball:nth-child(5) {
  animation-delay: 0.6s;
}
@keyframes ball-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.ball-red {
  background: radial-gradient(circle at 32% 28%, #ff8a8a, #ef4444);
}
.ball-blue {
  background: radial-gradient(circle at 32% 28%, #7fa8ff, #2f6fed);
}
.ball-gold {
  background: radial-gradient(circle at 32% 28%, #ffd166, #f5b400);
}
.ball-green {
  background: radial-gradient(circle at 32% 28%, #5fe0b8, #16a870);
}
.ball-purple {
  background: radial-gradient(circle at 32% 28%, #b98cf7, #8b3ff2);
}

.jackpot-block {
  text-align: left;
}
.jackpot-block .jackpot-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9a7a1f;
  font-weight: 700;
}
.jackpot-block .jackpot-amount {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  background: linear-gradient(
    90deg,
    #c98a00,
    #f5b400 40%,
    #ffd166 60%,
    #c98a00 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
  line-height: 1.1;
}
.jackpot-block .jackpot-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Optional promo banner strip (only rendered when real banners exist) ---------- */
.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-carousel img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
}
.hero-carousel .carousel-caption {
  text-align: left;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 24px 18px;
  background: linear-gradient(0deg, rgba(16, 22, 46, 0.88), transparent);
}
.hero-carousel .carousel-caption h5 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border: 0;
}
.hero-carousel .carousel-indicators .active {
  background: var(--gold-400);
}

/* ---------- Promo sections: 1-2 images each, standalone (not a slider) ---------- */
.promo-tint {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(16, 22, 46, 0.14);
}
.promo-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.promo-card .promo-body {
  padding: 18px 22px 24px;
  flex-grow: 1;
}
.promo-card .promo-body h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.promo-card .promo-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 3px;
  margin-top: 12px;
  background: linear-gradient(
    90deg,
    #ef4444,
    #f5b400,
    #16a870,
    #2f6fed,
    #8b3ff2
  );
}
.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ---------- Quick tiles ---------- */
.quick-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  display: block;
  color: var(--ink);
  height: 100%;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.quick-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px var(--accent-glow);
  border-color: var(--accent);
  color: var(--ink);
}
.quick-tile .icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 6px 16px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 12px;
}

/* ---------- Draw cards: styled like an actual perforated lottery ticket ---------- */
.draw-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.draw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px var(--accent-glow);
}
.draw-card-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  border-top: 5px solid var(--accent);
}

.draw-card-head {
  background: linear-gradient(120deg, var(--accent-soft), #fff);
  color: var(--ink);
  padding: 20px 20px 18px;
  position: relative;
  /* border-radius: var(--radius) var(--radius) 0 0; */
  /* border-top: 5px solid var(--accent);
    border-bottom: 2px dashed var(--line); */
  border-bottom: 2px dashed var(--line);
}
.draw-card-head::before,
.draw-card-head::after {
  content: "";
  position: absolute;
  bottom: -11px;
  width: 22px;
  height: 22px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 2;
  border: 1px solid var(--line);
}
.draw-card-head::before {
  left: -12px;
}
.draw-card-head::after {
  right: -12px;
}
.draw-card-head .code {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  font-weight: 700;
}
.draw-card-head h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
  color: var(--ink);
}
.draw-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px var(--accent-glow);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.draw-card-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
}
.draw-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.draw-meta strong {
  color: var(--ink);
  display: block;
  font-size: 1.1rem;
  font-family: "Baloo 2", sans-serif;
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}
.progress-bar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.draw-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.draw-rewards {
  margin: 16px 0;
  font-size: 0.85rem;
}
.draw-rewards li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3d6;
  color: #8a6620;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

/* ---------- How it works ---------- */
.how-step {
  text-align: center;
  padding: 10px;
}
.how-step .num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 6px 16px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.2rem;
}
.how-step h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--surface);
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-item {
  text-align: center;
}
.stat-item .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.stat-item .num {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  font-family: "Baloo 2", sans-serif;
}
.stat-item .label {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Results / winners ---------- */
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  height: 100%;
}
.winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.winner-row:last-child {
  border-bottom: none;
}
.position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 3px 8px rgba(245, 180, 0, 0.35);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 8px;
}

/* ---------- Ticket booking panel: a dark, glowing "lottery counter" card that
   houses the ticket grid - deliberately a different register from the light
   pages around it, the way a lottery booking widget reads as its own thing. ---------- */
.lottery-ticket-panel {
  background: linear-gradient(165deg, #131a3a, var(--ink-900));
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(16, 22, 46, 0.4);
  color: #dfe3f5;
  overflow: hidden;
}
.lottery-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lottery-ticket-header .title {
  font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lottery-ticket-price {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #2a1c00;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.lottery-ticket-body {
  padding: 22px;
}
.lottery-ticket-note {
  color: #aab0d6;
}
.lottery-ticket-body .alert {
  border: none;
}

/* ---------- Ticket search ---------- */
.lottery-ticket-search {
  position: relative;
  margin-bottom: 14px;
}
.lottery-ticket-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7399;
  pointer-events: none;
}
.lottery-ticket-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9rem;
}
.lottery-ticket-search input::placeholder {
  color: #6b7399;
}
.lottery-ticket-search input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Ticket grid: bold clickable tiles, not thin form-field chips ---------- */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px 4px 10px;
}
.ticket-chip {
  /* Ticket numbers vary in length (a repeating group's embed a date and run
     longer than a one-time group's) - min-width: 0 lets a grid item actually
     shrink below its content size, and the wrap/break rules make a too-long
     number wrap onto a second line inside the box instead of spilling past
     its edges; overflow: hidden is just the last-resort backstop. */
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 5px;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
  background: #1e2749;
  color: #dfe3f5;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.ticket-chip:not(.sold):hover {
  transform: scale(1.05);
  background: #262f57;
}
.ticket-chip.sold {
  background: rgba(255, 255, 255, 0.04);
  color: #565f8a;
  cursor: not-allowed;
  text-decoration: line-through;
}
/* Held by an unconfirmed manual-payment booking - distinct from a genuinely sold ticket since
   it may still return to .available if the hold expires or the payment gets rejected. */
.ticket-chip.pending {
  background: rgba(245, 180, 0, 0.12);
  border-color: rgba(245, 180, 0, 0.35);
  color: var(--gold-400);
  cursor: not-allowed;
}
.ticket-chip.selected {
  background: linear-gradient(135deg, var(--gold-400), #ff6b5b);
  color: #2a1200;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 20px rgba(255, 107, 91, 0.35);
  transform: scale(1.03);
}

/* ---------- Selection summary + buy button, styled like a booking-counter CTA ---------- */
.lottery-ticket-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #aab0d6;
  margin: 14px 0 10px;
}
.lottery-ticket-summary strong {
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.05rem;
}
.lottery-ticket-buy-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #16a870, #0d7a52);
  box-shadow: 0 10px 24px rgba(22, 168, 112, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.lottery-ticket-buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 168, 112, 0.45);
}
.lottery-ticket-buy-btn:disabled {
  background: #3a4270;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* On a phone, the ticket grid can run well past one screen, so the buy button
   at the bottom of the flow needs a lot of scrolling to reach once tickets are
   picked. Below the tablet breakpoint the same button+summary is pinned to the
   bottom of the viewport instead of sitting inline; body.has-ticket-buy-bar
   (toggled by ticket-buy.js while the bar is present) reserves room for it so
   the last bit of page content isn't hidden underneath, and nudges the
   WhatsApp FAB up so the two don't overlap. */
@media (max-width: 767.98px) {
  .lottery-ticket-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    margin: 0 !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(165deg, #131a3a, var(--ink-900));
    box-shadow: 0 -8px 24px rgba(16, 22, 46, 0.4);
  }
  .lottery-ticket-cta .lottery-ticket-summary {
    margin: 0 0 8px;
  }
  body.has-ticket-buy-bar {
    padding-bottom: 96px;
  }
  body.has-ticket-buy-bar .whatsapp-fab {
    bottom: 140px;
  }
}

@media (max-width: 576px) {
  .ticket-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  .ticket-chip {
    font-size: 0.7rem;
    padding: 10px 4px;
  }
}

/* ---------- Forms / cards ---------- */
.auth-card {
  max-width: 460px;
  margin: 60px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
/* Centered accent icon circle above a form card's fields (e.g. track-ticket.php) -
   pairs with an .accent-* class on the parent .auth-card for its gradient color. */
.quick-tile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 20px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 20px;
}
.auth-card .input-group-text {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-right: none;
}
.auth-card .input-group .form-control {
  border-left: none;
}
.auth-card .input-group .form-control:focus {
  border-color: var(--line);
  box-shadow: none;
}
.auth-card .input-group:focus-within .input-group-text {
  border-color: var(--accent);
}
.auth-card .input-group:focus-within .form-control {
  border-color: var(--accent);
}
.ticket-card-img {
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, 0.15);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(28, 77, 189, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(28, 77, 189, 0.38);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #c6cbe0;
  padding: 56px 0 20px;
  margin-top: 40px;
}
.footer-brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-about {
  font-size: 0.88rem;
  color: #9aa0bd;
  font-family: "Poppins", sans-serif;
}
.footer-social a {
  color: #c6cbe0;
  margin-right: 14px;
  font-size: 1.1rem;
}
.footer-social a:hover {
  color: var(--gold-400);
}
.site-footer h6 {
  color: #fff;
  margin-bottom: 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}
.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}
.footer-links a,
.footer-contact a {
  color: #c6cbe0;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-400);
}
.footer-contact i {
  margin-right: 8px;
  color: var(--gold-400);
}
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 34px;
  padding: 16px 0;
  font-size: 0.78rem;
  color: #8b91ab;
}
.footer-disclaimer i {
  color: var(--gold-400);
  margin-right: 6px;
}
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #757ba0;
  padding-top: 16px;
}

.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1040;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

/* ---------- Account sub-nav: a distinct band below the main navbar, its own
   container/padding (not sharing the page section's), tabs scroll horizontally
   on narrow screens instead of wrapping into an uneven grid. ---------- */
.account-subnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.account-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.account-tabs::-webkit-scrollbar {
  display: none;
}
.account-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: "Poppins", sans-serif;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.account-tabs .nav-link:hover {
  border-color: var(--gold-600);
  color: var(--ink);
}
.account-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: transparent;
  color: #402d00;
  box-shadow: 0 6px 16px rgba(245, 180, 0, 0.32);
}
.account-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.balance-hero {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}
.balance-hero .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-400);
  font-family: "Baloo 2", sans-serif;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 2.6rem;
  color: var(--gold-600);
  margin-bottom: 14px;
  display: block;
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .jackpot-strip {
    justify-content: center;
    text-align: center;
  }
  .jackpot-block {
    text-align: center;
  }
  .nav-actions {
    margin-top: 16px;
  }
  .wallet-pill {
    margin-bottom: 8px;
  }
}
@media (max-width: 575px) {
  .lotto-ball {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}
