/* ===================================================
   Bhutan Kwil Lottery – Shared Stylesheet
   bhutan-kwil.css
=================================================== */

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1c2330;
  background: #f8fafc;
  overflow-x: clip;
}
a { color: #2563eb; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Draw Color Variables ─────────────────────────── */
:root {
  --c-11am:      #f59e0b;
  --c-11am-dark: #d97706;
  --c-11am-bg:   #fffbea;
  --c-11am-text: #78350f;

  --c-12pm:      #3b82f6;
  --c-12pm-dark: #2563eb;
  --c-12pm-bg:   #eff6ff;
  --c-12pm-text: #1e3a8a;

  --c-3pm:       #16a34a;
  --c-3pm-dark:  #15803d;
  --c-3pm-bg:    #f0fdf4;
  --c-3pm-text:  #14532d;

  --c-6pm:       #8b5cf6;
  --c-6pm-dark:  #7c3aed;
  --c-6pm-bg:    #faf5ff;
  --c-6pm-text:  #4c1d95;

  --c-8pm:       #dc2626;
  --c-8pm-dark:  #b91c1c;
  --c-8pm-bg:    #fef2f2;
  --c-8pm-text:  #7f1d1d;

  --nav-bg:      #0f172a;
  --nav-h:       60px;
  --max-w:       560px;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
}

/* ── Utilities ────────────────────────────────────── */
.w { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.mw { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Navigation ───────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px 0 16px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-logo {
  flex: 1;
  display: block;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(16px, 5vw, 26px);
  color: #fff;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}
.nav-logo span { color: #fbbf24; }
.nav-logo:hover { text-decoration: none; opacity: .92; }

.navqr {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  background: transparent; border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px; color: #fff; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}
.navqr:hover { background: rgba(255,255,255,.1); }
.navqr svg { width: 22px; height: 22px; }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; flex-shrink: 0;
  background: transparent; border: none; padding: 11px 10px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.burger span { display: block; height: 2.5px; border-radius: 2px; background: #fff; }

/* ── Mobile Drawer ────────────────────────────────── */
.mscrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55); opacity: 0; visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.mscrim.open { opacity: 1; visibility: visible; }

.mdrawer {
  position: fixed; top: 0; right: 0; z-index: 300;
  width: min(88%, 340px); height: 100%;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mdrawer.open { transform: translateX(0); box-shadow: -10px 0 30px rgba(0,0,0,.2); }

.mhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.mclose {
  background: transparent; border: none; color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  -webkit-tap-highlight-color: transparent; padding: 0 4px;
}

.m-section-label {
  padding: 12px 16px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #9ca3af;
}

.mi {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  text-decoration: none; color: #111827;
  font-weight: 600; font-size: 15px;
  border-bottom: 1px solid #f3f4f6;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.mi:hover { background: #f9fafb; text-decoration: none; }
.mi .mic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  color: #fff; font-size: 13px; font-weight: 800;
}
.mi .mi-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  background: #f1f5f9; color: #64748b;
}
.mi--home .mic { background: #0f172a; }
.mi--11am .mic { background: var(--c-11am); }
.mi--12pm .mic { background: var(--c-12pm); }
.mi--3pm  .mic { background: var(--c-3pm); }
.mi--6pm  .mic { background: var(--c-6pm); }
.mi--8pm  .mic { background: var(--c-8pm); }
.mi--about .mic { background: #64748b; }
.mi--admin .mic { background: #0ea5e9; }

.msoc {
  display: flex; gap: 10px;
  padding: 14px 16px; margin-top: auto; flex-shrink: 0;
  border-top: 1px solid #f3f4f6;
}
.sbtn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 8px; border-radius: 10px;
  color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.sbtn:hover { filter: brightness(1.08); text-decoration: none; }
.sbtn--wa { background: #25d366; }
.sbtn--tg { background: #229ed9; }
.sbtn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

/* ── Page Title Banner ────────────────────────────── */
.page-banner {
  text-align: center;
  padding: 22px 16px 16px;
}
.page-banner h1 {
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}
.page-banner .sub {
  font-size: 14px; color: #64748b; margin-top: 4px;
  font-weight: 500;
}

/* ── Draw Slot Buttons (top strip) ────────────────── */
.slotbtns {
  display: flex; gap: 8px; flex-wrap: wrap;
  max-width: var(--max-w); margin: 24px auto 16px;
  padding: 0 16px;
}
.slotbtn {
  flex: 1; min-width: 56px;
  text-align: center; padding: 10px 8px;
  border-radius: 12px;
  font-weight: 800; font-size: 13.5px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.slotbtn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1.5px); }
.slotbtn.active {
  color: #fff; border-color: rgba(255,255,255,0.4);
  transform: scale(1.04) translateY(-1.5px);
}
.slotbtn--11am { background: #d97706; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25); }
.slotbtn--11am.active { box-shadow: 0 6px 14px rgba(217, 119, 6, 0.4); }

.slotbtn--12pm { background: #2563eb; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25); }
.slotbtn--12pm.active { box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4); }

.slotbtn--3pm  { background: #15803d; box-shadow: 0 4px 10px rgba(21, 128, 61, 0.25); }
.slotbtn--3pm.active { box-shadow: 0 6px 14px rgba(21, 128, 61, 0.4); }

.slotbtn--6pm  { background: #7c3aed; box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25); }
.slotbtn--6pm.active { box-shadow: 0 6px 14px rgba(124, 58, 237, 0.4); }

.slotbtn--8pm  { background: #b91c1c; box-shadow: 0 4px 10px rgba(185, 28, 28, 0.25); }
.slotbtn--8pm.active { box-shadow: 0 6px 14px rgba(185, 28, 28, 0.4); }

/* ── Control Row (Date + Slot selectors + PDF) ─────── */
.ctrl-row {
  display: flex; gap: 8px; align-items: stretch;
  max-width: var(--max-w); margin: 0 auto 16px;
  padding: 0 16px;
}
.ctrl-sel-wrap { flex: 1; min-width: 0; position: relative; }
.ctrl-sel-lbl {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font: 600 14px/1 system-ui; color: #374151;
  pointer-events: none; white-space: nowrap;
  overflow: hidden; max-width: calc(100% - 32px);
  z-index: 1;
}
.ctrl-sel-wrap select {
  width: 100%; height: 44px; padding: 0 28px 0 12px;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 9px;
  color: transparent; font: 600 14px/1 system-ui;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 14px;
  cursor: pointer; outline: none;
}
.ctrl-sel-wrap select option { color: #374151; }
.ctrl-sel-wrap select:focus { border-color: #6366f1; }

.pdf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px;
  background: #1e293b; color: #fff;
  font: 700 13px/1 system-ui; letter-spacing: .3px;
  border-radius: 9px; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}
.pdf-btn:hover { background: #334155; text-decoration: none; color: #fff; }
.pdf-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Countdown Box ────────────────────────────────── */
.cd-box {
  display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 9px;
  font: 600 14px/1 system-ui; color: #374151;
  flex-shrink: 0; white-space: nowrap;
}
.cd-timer { font-variant-numeric: tabular-nums; letter-spacing: .5px; }

/* ── Result Card (Slider) ─────────────────────────── */
.rslider-wrap {
  max-width: var(--max-w); margin: 0 auto 8px; padding: 0 16px;
}
.rslider {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; direction: rtl;
}
.rslider::-webkit-scrollbar { display: none; }
.rslider > .rcard {
  flex: 0 0 100%; scroll-snap-align: start;
  scroll-snap-stop: always; direction: ltr;
  position: relative;
}

.rcard {
  background: #fff; border-radius: var(--radius);
  border: 1px solid #e2e8f0; padding: 14px 16px;
  text-align: center; box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.rcard:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.rcard-band {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.rcard-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 99px;
  font: 700 12px/1 system-ui; color: #fff;
  flex-shrink: 0;
}
.rcard-date {
  font: 700 13px/1 system-ui; color: #64748b;
}
.rcard-name {
  margin-left: auto; font: 600 12px/1 system-ui; color: #94a3b8;
}

.rcard-num {
  font: 900 clamp(38px, 11vw, 60px)/1 'Arial Black', system-ui;
  letter-spacing: 1px; margin: 10px 0 6px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.rcard-series {
  display: inline-block; margin-right: 8px;
  font: 800 clamp(20px, 5vw, 28px)/1 system-ui;
}
.rcard-prize { font: 700 15px/1 system-ui; color: #16a34a; }
.rcard-meta  { font: 500 12px/1 system-ui; color: #94a3b8; margin-top: 5px; }
.rcard-copied {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  background: #16a34a; color: #fff;
  font: 700 12px/1 system-ui; padding: 5px 10px;
  border-radius: 6px; opacity: 0; transform: translateY(-5px);
  transition: opacity .18s, transform .18s; pointer-events: none;
}
.rcard-copied.show { opacity: 1; transform: translateY(0); }

/* Slot-themed cards */
.rcard--11am .rcard-num { color: var(--c-11am-dark); }
.rcard--11am .rcard-badge { background: var(--c-11am); }
.rcard--12pm .rcard-num { color: var(--c-12pm-dark); }
.rcard--12pm .rcard-badge { background: var(--c-12pm); }
.rcard--3pm  .rcard-num { color: var(--c-3pm-dark); }
.rcard--3pm  .rcard-badge { background: var(--c-3pm); }
.rcard--6pm  .rcard-num { color: var(--c-6pm-dark); }
.rcard--6pm  .rcard-badge { background: var(--c-6pm); }
.rcard--8pm  .rcard-num { color: var(--c-8pm-dark); }
.rcard--8pm  .rcard-badge { background: var(--c-8pm); }

/* Pending card */
.rcard--pending {
  background: #fafafa; border: 2px dashed #e2e8f0;
}
@keyframes pendingPulse {
  0%,100% { opacity: 1; } 50% { opacity: .5; }
}
.rcard--pending .rcard-num {
  color: #94a3b8; font-size: 40px;
  animation: pendingPulse 2s ease infinite;
}
.pending-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  background: #fee2e2; color: #b91c1c;
  font: 700 12px/1 system-ui; letter-spacing: .5px;
}
@keyframes dotBlink { 0%,100%{opacity:1}50%{opacity:.2} }
.pending-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #b91c1c; animation: dotBlink 1.2s infinite;
}

/* ── Search Box ───────────────────────────────────── */
.search-wrap {
  max-width: var(--max-w); margin: 16px auto;
  padding: 0 16px;
}
.search-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
}
.search-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.search-head-t { font: 700 16px/1 system-ui; color: #0f172a; }
.search-row { display: flex; gap: 10px; }
.srch-inp {
  flex: 1; min-width: 0;
  font: 500 16px/1 system-ui;
  padding: 11px 14px;
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  border-radius: 8px; color: #0f172a; outline: none;
  transition: border-color .2s;
}
.srch-inp::placeholder { color: #94a3b8; }
.srch-inp:focus { border-color: #6366f1; }
.srch-inp.invalid { border-color: #dc2626; }
.srch-btn {
  flex-shrink: 0; height: 44px; padding: 0 20px;
  background: #0f172a; color: #fff;
  font: 700 14px/1 system-ui; border: none;
  border-radius: 8px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}
.srch-btn:hover { background: #1e293b; }
.srch-btn:disabled { opacity: .6; cursor: not-allowed; }
.srch-err {
  font: 600 12px/1 system-ui; color: #dc2626;
  margin-top: 5px; padding-left: 4px;
}
.srch-res {
  margin-top: 12px; border-radius: 8px;
  padding: 12px 14px; text-align: center;
  border: 1px solid #e2e8f0;
}
.srch-res.win { background: #f0fdf4; border-color: #86efac; }
.srch-res.lose { background: #fff5f5; border-color: #fecaca; }
.srch-res .rh { font: 800 17px/1.2 system-ui; color: #0f172a; }
.srch-res.win .rh { color: #15803d; }
.srch-res.lose .rh { color: #b91c1c; }
.srch-res .rs { font-size: 14px; color: #64748b; margin-top: 4px; }
.srch-res .rss { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.srch-res .rbl { font: 700 14px/1.3 system-ui; color: #0f172a; margin-top: 5px; }
.srch-res .rh-ico { vertical-align: -4px; margin: 0 5px; }

/* ── TV Text Panel ────────────────────────────────── */
.tv-toggle-row {
  max-width: var(--max-w); margin: 0 auto 6px;
  padding: 0 16px; display: flex; align-items: center;
  justify-content: space-between;
}
.tv-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none;
  font: 700 14px/1 system-ui; color: #6366f1;
  cursor: pointer; -webkit-tap-highlight-color: transparent; padding: 4px 0;
}
.tv-chev { width: 14px; height: 14px; transition: transform .25s; }
.tv-btn.open .tv-chev { transform: rotate(180deg); }

.tv-wrap { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.tv-inner { padding: 0 16px 20px; max-width: var(--max-w); margin: 0 auto; }
.tv-cap {
  text-align: center; font: 700 11px/1 system-ui;
  letter-spacing: .8px; color: #94a3b8;
  text-transform: uppercase; margin-bottom: 12px;
}
.tv-first {
  background: #fffbea; border: 1px solid #fde68a;
  border-radius: 10px; padding: 12px 16px; text-align: center;
}
.tv-first__l {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tv-badge {
  display: inline-block; background: #0f172a; color: #fff;
  font: 700 11px/1 system-ui; padding: 5px 9px; border-radius: 6px;
}
.tv-first__a { color: #16a34a; font: 700 14px/1 system-ui; }
.tv-first__n {
  font: 900 28px/1 'Arial Black', system-ui;
  color: #0f172a; letter-spacing: 1.5px; margin-top: 9px;
}
.tv-ser { color: #dc2626; margin-right: 8px; }
.tv-tier {
  border-top: 1px solid #e2e8f0; padding-top: 12px; margin-top: 12px;
}
.tv-tier__h {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.tv-tier__a { color: #16a34a; font: 700 13px/1 system-ui; }
.tv-note { color: #94a3b8; font: 600 11px/1 system-ui; margin-left: auto; }
.tv-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-nums span {
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 6px; padding: 5px 8px;
  font: 600 13px/1 'Menlo', 'Consolas', monospace;
  color: #1e293b; letter-spacing: .5px;
}

/* ── Share Row ────────────────────────────────────── */
.share-row {
  max-width: var(--max-w); margin: 0 auto 16px;
  padding: 0 16px;
  display: flex; gap: 8px; justify-content: flex-end;
}
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; height: 40px; border-radius: 9px;
  color: #fff; font: 700 14px/1 system-ui;
  text-decoration: none; padding: 0 14px;
  -webkit-tap-highlight-color: transparent;
  transition: filter .2s;
}
.sh-btn:hover { filter: brightness(1.1); text-decoration: none; }
.sh-btn svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }
.sh-sq { width: 40px; padding: 0; }
.sh-fb { background: #1877f2; }
.sh-tg { background: #229ed9; }
.sh-wa { background: #25d366; }
.sh-native { background: #475569; }
.sh-native svg { fill: none; stroke: #fff; stroke-width: 2; }

/* ── Article / Content ────────────────────────────── */
.art {
  max-width: var(--max-w); margin: 24px auto 32px;
  padding: 0 16px; color: #374151;
}
.art h2 {
  font: 700 19px/1.3 system-ui; color: #0f172a;
  margin: 26px 0 10px; padding-bottom: 6px;
  border-bottom: 3px solid #fbbf24;
  display: inline-block;
}
.art h2:first-child { margin-top: 0; }
.art h3 { font: 700 16px/1.3 system-ui; color: #0f172a; margin: 18px 0 7px; }
.art p { font-size: 15px; line-height: 1.78; margin-bottom: 13px; }
.art ul, .art ol { padding-left: 20px; margin-bottom: 13px; }
.art li { font-size: 15px; line-height: 1.7; margin-bottom: 4px; }
.art a { color: #6366f1; font-weight: 600; }
.art table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid #e2e8f0; border-radius: 9px; overflow: hidden;
  margin-bottom: 18px; font-size: 14px;
}
.art th {
  background: #0f172a; color: #fff;
  font: 700 12px/1 system-ui; padding: 10px 12px;
  text-transform: uppercase; letter-spacing: .4px;
  border: none;
}
.art td {
  padding: 10px 12px; border: none;
  border-bottom: 1px solid #f1f5f9; text-align: center;
}
.art tr:last-child td { border-bottom: none; }
.art tr:nth-child(even) td { background: #f8fafc; }
.faq-block {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 9px; padding: 14px 16px; margin: 12px 0;
}
.faq-block p { margin: 0; font-size: 14px; }
.faq-block strong { color: #0f172a; }

/* ── Bottom Floating PMBar (Sticky) ────────────────────────── */
.pmbar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  z-index: 999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 6px;
}
.pmbar-inner {
  display: flex;
  gap: 4px;
  width: 100%;
}
.pmbar-slot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 14px;
  text-decoration: none;
  font: 800 13px system-ui;
  color: rgba(255, 255, 255, 0.6);
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pmbar-slot:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
/* Active colors */
.pmbar-slot.active[data-slot="11am"] { background: #d97706; color: #fff; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); }
.pmbar-slot.active[data-slot="12pm"] { background: #2563eb; color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.pmbar-slot.active[data-slot="3pm"]  { background: #15803d; color: #fff; box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3); }
.pmbar-slot.active[data-slot="6pm"]  { background: #7c3aed; color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }
.pmbar-slot.active[data-slot="8pm"]  { background: #b91c1c; color: #fff; box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3); }

/* Make sure pages have padding-bottom to avoid overlaying content behind tab bar */
main {
  padding-bottom: 90px !important;
}
footer {
  padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
}

/* ── QR Scanner Modal ─────────────────────────────── */
.qr-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.92);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding-top: 50px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.qr-overlay.open { opacity: 1; visibility: visible; }
.qr-box {
  width: min(88vw, 340px); background: #0f172a;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.qr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: #1e293b;
}
.qr-header h2 { font: 700 17px/1 system-ui; color: #fff; }
.qr-close {
  background: none; border: none; color: #94a3b8;
  font-size: 24px; cursor: pointer; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.qr-close:hover { color: #fff; }
#qr-video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.qr-hint {
  padding: 12px 16px; text-align: center;
  font: 500 13px/1.4 system-ui; color: #94a3b8;
}
.qr-result {
  padding: 14px 16px; text-align: center; display: none;
  font: 700 16px/1.3 system-ui; color: #fff;
}
.qr-result.win { color: #4ade80; }
.qr-result.lose { color: #f87171; }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: #0f172a; color: #94a3b8;
  text-align: center; padding: 28px 16px;
  font: 500 13px/1.7 system-ui;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
footer a { color: #7dd3fc; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .footer-brand { font: 700 16px/1 system-ui; color: #fff; margin-bottom: 8px; }
footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 10px; }

/* ── Join / Social Row ───────────────────────────── */
.join-row {
  max-width: var(--max-w); margin: 0 auto 20px;
  padding: 0 16px; display: flex; gap: 10px;
}
.join-btn {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 13px 8px; border-radius: 10px;
  color: #fff; font: 700 14px/1 system-ui;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.join-btn:hover { filter: brightness(1.08); text-decoration: none; }
.join-btn svg { width: 21px; height: 21px; fill: #fff; flex-shrink: 0; }
.join-wa { background: #25d366; }
.join-tg { background: #229ed9; }

/* ── Responsive ───────────────────────────────────── */
@media (min-width: 601px) {
  .nav-inner { max-width: 620px; }
  .page-banner h1 { font-size: 32px; }
}
@media (max-width: 380px) {
  .slotbtn { font-size: 12px; padding: 8px 4px; }
  .pmbar-slot { font-size: 11px; }
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease-out; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ── Draw Section (Full result card design) ─────────────────────────────── */
.draw-section {
  max-width: 560px; margin: 0 auto 18px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
  background: #fff;
}

.ds-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 11px 16px; color: #fff;
}
.ds-header-left { display: flex; align-items: center; gap: 10px; }
.ds-badge {
  background: rgba(255,255,255,.25);
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 99px; padding: 3px 10px;
  font: 800 13px/1 system-ui; color: #fff;
}
.ds-label { font: 700 15px/1.2 system-ui; color: #fff; }
.ds-prefix { font: 700 13px/1 system-ui; color: rgba(255,255,255,.65); }

.ds-body {
  padding: 14px 16px 10px;
  border-left: 1px solid; border-right: 1px solid;
}

.ds-meta-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.ds-date-lbl { font: 600 13px/1 system-ui; color: #64748b; }
.ds-cd {
  font: 700 13px/1 'Menlo',monospace; color: #64748b;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 6px; padding: 4px 10px;
}

/* ── The big result image card ────────────────────────────── */
.ds-result-img {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  min-height: 180px;
  display: block;
}

/* Actual result display (when loaded) */
.dri-loaded {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; padding: 20px 16px 18px;
  text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dri-loaded:active { opacity: .9; }
.dri-top-row {
  display: flex; align-items: center;
  justify-content: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.dri-prize-tag {
  font: 700 12px/1 system-ui; padding: 4px 10px;
  border-radius: 99px; color: #fff;
}
.dri-prize-amt {
  font: 700 13px/1 system-ui; color: #16a34a;
}
.dri-num-wrap { margin: 8px 0 10px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.dri-series {
  font: 900 clamp(22px, 6vw, 32px)/1 'Arial Black', system-ui;
  color: #dc2626; letter-spacing: 1px;
}
.dri-number {
  font: 900 clamp(50px, 16vw, 80px)/1 'Arial Black', system-ui;
  letter-spacing: 2px;
}
.dri-sub {
  font: 600 12px/1.4 system-ui; color: #94a3b8;
  margin-top: 6px;
}

/* Copy toast inside card */
.dri-copy-hint {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 11px/1 system-ui; color: #94a3b8;
  margin-top: 8px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dri-copy-hint svg { width: 13px; height: 13px; }

/* Prize list mini-table inside card */
.dri-prizes {
  width: 100%; margin-top: 14px; border-top: 1px solid #f1f5f9;
  padding-top: 12px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 6px 12px;
  text-align: left;
}
.dri-prize-row { display: flex; flex-direction: column; }
.dri-prize-row .prl { font: 600 11px/1 system-ui; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; }
.dri-prize-row .prv { font: 600 13px/1.3 'Menlo',monospace; color: #1e293b; margin-top: 3px; word-break: break-all; }
.dri-prize-row .prv.many { font-size: 11px; }

/* Pending / not yet state */
.dri-pending {
  width: 100%; min-height: 180px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 24px 16px;
}
.dri-pulse {
  width: 64px; height: 64px; border-radius: 50%;
  animation: pendingPulse 2s ease infinite;
}
@keyframes pendingPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.9)} }
.dri-pending-txt {
  font: 700 14px/1.4 system-ui;
  text-align: center;
}

/* ── Action buttons ───────────────────────────────────────── */
.ds-actions {
  display: flex; border-top: 1px solid;
  border-left: 1px solid; border-right: 1px solid;
  border-bottom: 1px solid;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px;
  overflow: hidden; background: #fff;
}
.ds-btn {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 7px;
  padding: 13px 8px; font: 700 14px/1 system-ui;
  text-decoration: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter .15s, background .15s;
}
.ds-btn:hover { text-decoration: none; filter: brightness(.95); }
.ds-btn-full {
  background: #f8fafc; border-right: 1px solid #e2e8f0;
}
.ds-btn-full svg { stroke: currentColor; }
.ds-btn-pdf {
  color: #fff !important;
}
.ds-btn-pdf svg { stroke: #fff; }
.ds-btn-pdf:hover { filter: brightness(1.08); }

/* Wrap all draw sections */
.draws-wrap { padding: 16px 16px 4px; }

/* ── Premium Top Banner (Clean Light Article Theme) ── */
.page-banner {
  background: transparent !important;
  position: relative;
  overflow: hidden;
  border-bottom: none !important;
  padding: 32px 16px 12px !important;
  text-align: center;
}
.page-banner::before {
  display: none !important;
}
.page-banner h1 {
  color: #0f172a !important;
  text-shadow: none !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.2;
}
.page-banner p.sub, .page-banner .sub {
  color: #475569 !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px;
  margin: 8px 0 0;
  text-transform: uppercase;
  font-size: 13px;
}
/* Glow capsule for countdown (Light Theme Pill) */
#nextDraw, #nextDrawInfo {
  display: inline-block;
  background: rgba(15, 23, 42, 0.05) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 99px !important;
  padding: 6px 18px !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  margin-top: 14px !important;
  font-size: 13px !important;
}
#nextDraw strong, #nextDrawInfo strong {
  color: #b45309 !important;
}

/* ── Premium Footer ────────────────────────────────── */
footer {
  background: #090d16 !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.05) !important;
  color: #64748b !important;
  padding: 36px 16px !important;
}
footer .footer-brand {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px !important;
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px !important;
  margin-bottom: 14px !important;
}
footer .footer-links a {
  color: #94a3b8 !important;
  font-weight: 700 !important;
  transition: color 0.15s;
  text-decoration: none;
  font-size: 13.5px;
}
footer .footer-links a:hover {
  color: #fbbf24 !important;
  text-decoration: none;
}
footer p {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
}

/* ── Premium Control Row (Image style) ──────────────── */
.image-ctrl-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: var(--max-w);
  margin: 16px auto;
  padding: 0 16px;
}
.img-ctrl-btn, .img-ctrl-select {
  height: 42px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: 700 13px system-ui;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  box-sizing: border-box;
}
.img-ctrl-btn:hover, .img-ctrl-select:hover {
  background: #e2e8f0;
  text-decoration: none;
  color: #0f172a;
}
.img-ctrl-btn svg {
  margin-right: 6px;
  stroke: #dc2626; /* red PDF icon */
}
.img-ctrl-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px;
  outline: none;
}



