/* ============================================
   DEAR LOTTERY SAMBAD - APP-STYLE WEBSITE
   Mobile-first, with dark mode support
   ============================================ */

/* ========= THEME VARIABLES ========= */
:root {
  --bg: #f4f6fb;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --text: #1a202c;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #dc2626;
  --accent-2: #ea580c;
  --accent-grad: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f59e0b 100%);
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #2563eb;
  --purple: #7c3aed;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius: 16px;
  --radius-sm: 10px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elev: #1e293b;
  --bg-card: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
}

/* ========= RESET ========= */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 76px;
  transition: background .2s, color .2s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--info); text-decoration: none; transition: all .2s; }
a:hover { opacity: .85; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ========= APP SHELL — mobile-first, max 520px on mobile view, 720px max on tablet+ ========= */
.app-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}
.container { padding: 0 16px; }

/* ========= DISCLAIMER BANNER (Google compliance, now at bottom) ========= */
.disclaimer-banner {
  background: linear-gradient(90deg, #dc2626, #ea580c);
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  border-top: 2px solid #991b1b;
}
.disclaimer-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.disclaimer-banner a:hover { color: #fde68a; }

/* ========= TOP APP BAR (Play Store style) ========= */
.app-bar {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  position: sticky; top: 0; z-index: 50;
  gap: 10px;
}
.app-bar .brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; min-width: 0; flex: 1;
}
.brand-logo { flex-shrink: 0; }
.logo-circle {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-icon-big { font-size: 26px; }
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* Show FULL logo (no crop, letterbox if non-square) */
  display: block;
}
.app-bar .brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  min-width: 0; overflow: hidden;
}
.app-bar .brand-main {
  font-weight: 800; font-size: 15px; letter-spacing: .2px;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-bar .brand-sub {
  font-size: 10px; opacity: .9; font-weight: 500;
  letter-spacing: .3px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-bar .bar-right {
  display: flex; gap: 6px; align-items: center;
  flex-shrink: 0;
}
.live-clock {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 5px 10px 4px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .35);
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,.4),
    0 2px 6px rgba(0,0,0,.25),
    0 0 14px rgba(6, 182, 212, .15);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
}
.live-clock .lc-main {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Poppins', -apple-system, sans-serif;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  text-shadow: 0 0 8px rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.6);
}
.live-clock .lc-ampm {
  font-size: 9px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1px;
  margin-left: 2px;
  text-shadow: 0 0 6px rgba(251, 191, 36, .4);
}
.live-clock .lc-sec {
  font-size: 9px;
  font-weight: 700;
  color: #06b6d4;
  font-family: 'Courier New', monospace;
  letter-spacing: 1.5px;
  margin-top: 2px;
  text-shadow: 0 0 8px rgba(6, 182, 212, .6);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  animation: secPulse 1s infinite;
}
.live-clock .lc-unit {
  font-size: 7px;
  opacity: .7;
  margin-left: 1px;
  letter-spacing: 0;
}
@keyframes secPulse {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: .7; }
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s;
  border: 1px solid rgba(255,255,255,.15);
}
.icon-btn:hover { background: rgba(255,255,255,.3); color: #fff; }
@media (max-width: 380px) {
  .app-bar .brand-main { font-size: 13px; }
  .app-bar .brand-sub  { font-size: 9px; }
  .live-clock { font-size: 12px; padding: 4px 7px; letter-spacing: .2px; }
  .logo-circle { width: 42px; height: 42px; }
  .logo-icon-big { font-size: 22px; }
  .icon-btn { width: 32px; height: 32px; font-size: 14px; }
}

/* Sub header for inner pages */
.page-header {
  background: var(--accent-grad);
  color: #fff;
  padding: 20px 16px 26px;
  position: relative;
  margin-bottom: -14px;
}
.page-header.purple { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.page-header.green  { background: linear-gradient(135deg, #16a34a, #0891b2); }
.page-header.blue   { background: linear-gradient(135deg, #2563eb, #1e40af); }
.page-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-header p { opacity: .9; font-size: 13px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; opacity: .9; font-size: 13px; margin-bottom: 8px;
}

/* ========= MAIN CONTENT ========= */
main { padding: 14px 0 16px; min-height: 50vh; }
.section { margin-bottom: 18px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 10px;
}
.section-head h2 {
  font-size: 16px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-head h2 .sec-icon { font-size: 19px; }
.section-head a { font-size: 12px; color: var(--info); font-weight: 600; }
.refresh-btn {
  position: relative;
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
  color: #fff;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow:
    0 4px 12px rgba(22,163,74,.35),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform .15s, box-shadow .15s, background .2s;
  border: 1.5px solid rgba(255,255,255,.2);
  text-transform: uppercase;
  animation: refreshPulse 2.4s ease-in-out infinite;
  cursor: pointer;
  overflow: hidden;
}
.refresh-btn::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(22,163,74,.45);
  animation: refreshRing 2.4s ease-out infinite;
  pointer-events: none;
}
.refresh-btn .refresh-icon {
  width: 16px; height: 16px;
  display: inline-block;
  fill: currentColor;
  transition: transform .3s;
}
.refresh-btn:hover {
  background: linear-gradient(135deg, #15803d 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(22,163,74,.5),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.refresh-btn:hover .refresh-icon { transform: rotate(60deg); }
.refresh-btn:active { transform: scale(.94) translateY(0); }
.refresh-btn.spinning {
  animation: none;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  box-shadow: 0 4px 12px rgba(8,145,178,.4);
}
.refresh-btn.spinning::before { display: none; }
.refresh-btn.spinning .refresh-icon {
  animation: spin .7s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes refreshPulse {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-1px) scale(1.03); }
}
@keyframes refreshRing {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@media (max-width: 400px) {
  .refresh-btn { padding: 8px 14px 8px 12px; font-size: 12px; }
  .refresh-btn .refresh-icon { width: 14px; height: 14px; }
}

/* ========= DATE BANNER ========= */
.date-chip {
  background: var(--bg-elev);
  color: var(--text);
  margin: 12px 16px 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  border-left: 4px solid var(--accent);
}

/* ========= LOGO IMAGE (fallback — primary is above) ========= */

/* ========= BANNER CAROUSEL (admin-uploaded, auto-height) ========= */
.banner-carousel {
  position: relative;
  margin: 8px 12px 14px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.banner-track {
  display: flex;
  width: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: block;
}
.banner-slide img {
  width: 100%;
  height: auto;         /* auto-adjust — no cropping */
  display: block;
}
.banner-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 3;
  padding: 6px 10px;
  background: rgba(0,0,0,.4);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.banner-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: all .2s;
  cursor: pointer;
}
.banner-dots .dot.active {
  background: #fff;
  width: 20px;
  border-radius: 999px;
}

/* ========= GOLD HERO BANNER (Play Store ₹1 CRORE style) ========= */
.gold-hero {
  position: relative;
  margin: 14px 16px 20px;
  padding: 34px 18px 32px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at center top, rgba(250,204,21,.25) 0%, transparent 60%),
    radial-gradient(circle at 30% 50%, rgba(251,191,36,.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(234,88,12,.2) 0%, transparent 40%),
    linear-gradient(135deg, #7f1d1d 0%, #991b1b 35%, #b91c1c 60%, #7f1d1d 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(127,29,29,.4);
  text-align: center;
}
.gold-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.3) 100%),
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(250,204,21,.05) 0deg 10deg,
      transparent 10deg 20deg);
  pointer-events: none;
}
.gold-hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gold-hero-bg .deco-note {
  position: absolute;
  font-size: 32px;
  opacity: .5;
  animation: floatNote 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.gold-hero-bg .n1 { top: 8%; left: 4%; transform: rotate(-15deg); animation-delay: 0s; }
.gold-hero-bg .n2 { top: 12%; right: 6%; transform: rotate(20deg); font-size: 36px; animation-delay: .8s; }
.gold-hero-bg .n3 { bottom: 14%; left: 6%; transform: rotate(10deg); font-size: 30px; animation-delay: 1.6s; }
.gold-hero-bg .n4 { bottom: 18%; right: 8%; transform: rotate(-20deg); font-size: 26px; animation-delay: 2.4s; }
.gold-hero-bg .n5 { top: 48%; left: 2%; transform: rotate(-10deg); font-size: 24px; animation-delay: 3.2s; opacity: .35; }
.gold-hero-bg .n6 { top: 42%; right: 3%; font-size: 28px; animation-delay: 1.2s; opacity: .4; }
@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-8px) rotate(calc(var(--r, 0deg) + 4deg)); }
}
.gold-hero-content {
  position: relative;
  z-index: 2;
}
.gold-tag {
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.gold-text {
  font-size: clamp(44px, 11vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: .95;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fef3c7 0%, #fde047 25%, #facc15 50%, #d97706 80%, #7c2d12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.4));
  font-family: 'Poppins', sans-serif;
  animation: goldShine 3s ease-in-out infinite;
}
@keyframes goldShine {
  0%, 100% { filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)) brightness(1); }
  50%      { filter: drop-shadow(0 3px 10px rgba(250,204,21,.5)) brightness(1.1); }
}
.gold-sub {
  display: inline-block;
  color: #fef3c7;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 14px;
  background: linear-gradient(90deg, transparent, rgba(250,204,21,.15), transparent);
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.gold-sub sup { font-size: 12px; color: #facc15; }

@media (max-width: 380px) {
  .gold-hero { padding: 28px 14px 26px; }
  .gold-tag { font-size: 10px; letter-spacing: 1.5px; }
  .gold-sub { font-size: 18px; }
}

/* ========= RESULTS SECTION HEAD (left-aligned) ========= */
.results-head {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 14px;
}
.rh-icon { font-size: 22px; }
.rh-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
  flex: 1;
}
.results-head .refresh-btn {
  padding: 10px 22px;
  font-size: 13px;
  margin-left: auto;
  min-width: 110px;
  justify-content: center;
  border-radius: 999px;
  letter-spacing: .6px;
}
.results-head .refresh-btn .refresh-icon { width: 16px; height: 16px; }
.refresh-label { display: inline; font-weight: 700; }

/* ========= DRAW CARDS PRO (Play Store style - with icon boxes) ========= */
.draws-pro {
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.draw-pro {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid var(--border);
  transition: all .18s;
  overflow: hidden;
  position: relative;
}
.draw-pro::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--slot-color);
}
/* Fallback for browsers without color-mix() */
.draw-ico-box { background: rgba(37, 99, 235, 0.12); }
.draw-btn.btn-view { background: var(--slot-color); }
.draw-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.draw-ico-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  border: 1.5px solid rgba(0,0,0,.08);
  margin-left: 6px;
}
.draw-ico-emoji { display: block; }

/* DEAR badge (replaces icon) */
.dear-badge {
  width: 60px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
  background: var(--slot-color);
  box-shadow:
    0 3px 8px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -2px 0 rgba(0,0,0,.15);
  position: relative;
  overflow: hidden;
}
.dear-badge::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 50%);
}
.dear-word {
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
}
@media (max-width: 380px) {
  .dear-badge { width: 54px; height: 46px; margin-left: 4px; }
  .dear-word { font-size: 14px; letter-spacing: 1px; }
}
.draw-pro-info {
  flex: 1;
  min-width: 0;
}
.draw-time {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.2px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draw-time .dear-prefix {
  color: var(--slot-color);
  font-weight: 900;
  letter-spacing: .3px;
}
@media (max-width: 400px) {
  .draw-time { font-size: 16px; }
}
@media (max-width: 360px) {
  .draw-time { font-size: 15px; }
}

/* Shrink icon and button to give more room for text */
.draw-pro { padding: 10px; gap: 10px; }
.draw-ico-box { width: 46px; height: 46px; font-size: 22px; }
.draw-pro-info { min-width: 0; }
.draw-btn { padding: 8px 12px; font-size: 11px; }
.draw-meta {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .3px;
}
.draw-meta .draw-period { color: var(--text-muted); text-transform: uppercase; }
.draw-meta .sep { opacity: .5; }
.draw-meta .draw-name { font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.draw-btn {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
  text-decoration: none;
}
.draw-btn.btn-view {
  background: var(--slot-color);
  background: linear-gradient(135deg, var(--slot-color) 0%, #1e293b 120%);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

/* Taller button variant — bigger top/bottom padding for prominent look */
.draw-btn.btn-tall {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  border-radius: 12px;
  min-width: 86px;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  border: 1.5px solid rgba(255,255,255,.18);
  box-shadow:
    0 4px 12px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -2px 0 rgba(0,0,0,.18);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s;
}
.draw-btn.btn-tall:active {
  transform: scale(.96);
  box-shadow:
    0 2px 6px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.15);
}
.draw-btn.btn-tall:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 0 rgba(0,0,0,.2);
  color: #fff;
}
.draw-btn.btn-tall svg { display: block; }
.draw-btn.btn-pending.btn-tall {
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%) !important;
  color: #fff;
}
[data-theme="dark"] .draw-btn.btn-pending.btn-tall {
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%) !important;
}
@media (max-width: 380px) {
  .draw-btn.btn-tall { padding: 12px 12px; font-size: 12px; min-width: 78px; }
}
.draw-btn.btn-view:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0,0,0,.22);
  color: #fff;
}
.draw-btn.btn-pending {
  background: #94a3b8;
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
[data-theme="dark"] .draw-btn.btn-pending { background: #475569; }

@media (max-width: 380px) {
  .draw-ico-box { width: 46px; height: 46px; font-size: 22px; margin-left: 4px; }
  .draw-time { font-size: 18px; }
  .draw-meta { font-size: 10px; }
  .draw-btn { padding: 8px 12px; font-size: 11px; }
}

/* ========= BIG CTA BUTTONS (Play Store purple + blue) ========= */
.cta-section {
  padding: 0 16px;
}
.cta-big {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 12px;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.cta-big::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  animation: shine 4s ease-in-out infinite;
}
.cta-big:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.cta-big:active { transform: scale(.98); }
.cta-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
}
.cta-green {
  background: linear-gradient(135deg, #16a34a 0%, #059669 45%, #0d9488 100%);
}
.cta-blue {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
}
.cta-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.3);
  position: relative; z-index: 1;
}
.cta-text {
  flex: 1;
  position: relative; z-index: 1;
}
.cta-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 2px;
}
.cta-text span {
  display: block;
  font-size: 12px;
  opacity: .9;
  font-weight: 400;
}
.cta-arrow {
  font-size: 28px;
  opacity: .8;
  font-weight: 300;
  margin-left: 4px;
  position: relative; z-index: 1;
  transition: transform .2s;
}
.cta-big:hover .cta-arrow { transform: translateX(4px); opacity: 1; }
@keyframes shine {
  0%, 60% { left: -120%; }
  100%    { left: 120%; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 22px; }
  .home-hero { padding: 22px 18px 24px; }
  .cta-text strong { font-size: 14px; }
  .cta-text span { font-size: 11px; }
  .draw-pro-left .time-big { font-size: 22px; }
}

/* ========= DRAW CARDS ========= */
.draws-stack {
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.draw-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--slot-color, var(--info));
  display: flex; align-items: center; gap: 14px;
  transition: transform .15s;
  position: relative;
  overflow: hidden;
}
.draw-card:active { transform: scale(.98); }
.draw-card .slot-badge {
  width: 54px; height: 54px;
  background: var(--slot-color, var(--info));
  color: #fff; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.draw-card .slot-badge .big { font-size: 17px; }
.draw-card .slot-badge .small { font-size: 10px; opacity: .9; margin-top: 1px; }
.draw-card .info { flex: 1; min-width: 0; }
.draw-card .info h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.draw-card .info .meta { color: var(--text-muted); font-size: 12px; }
.draw-card .status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--warning); margin-right: 5px;
  animation: pulse 1.5s infinite;
}
.draw-card .status-dot.live { background: var(--success); }
.draw-card .status-dot.pending { background: var(--text-muted); animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.draw-card .pdf-btn {
  padding: 9px 14px; border-radius: 10px;
  background: var(--slot-color, var(--info)); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.draw-card .pdf-btn.muted { background: var(--border); color: var(--text-muted); }

/* ========= FEATURE GRID (Home quick actions) ========= */
.feature-grid {
  padding: 0 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: var(--text);
  transition: transform .15s;
  position: relative; overflow: hidden;
}
.feature-card:active { transform: scale(.96); }
.feature-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--feat-color, var(--info)); opacity: .12;
}
.feature-card .feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--feat-color, var(--info)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 10px;
  position: relative; z-index: 1;
}
.feature-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.feature-card p { font-size: 11px; color: var(--text-muted); }

/* ========= COUNTDOWN STRIP ========= */
.countdown-strip {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(245,158,11,.15);
}
[data-theme="dark"] .countdown-strip {
  background: linear-gradient(135deg, #78350f, #7c2d12);
  border-color: #d97706;
}
.cs-ico { font-size: 18px; }
.cs-label { color: #92400e; font-weight: 600; font-size: 13px; flex: 1; }
[data-theme="dark"] .cs-label { color: #fde68a; }
.cs-time {
  background: #fff;
  color: #b45309;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid #f59e0b;
}
[data-theme="dark"] .cs-time { background: #1e293b; color: #fde68a; }

/* ========= HOME LUCKY CARD (compact preview) ========= */
.home-lucky-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 3px 10px rgba(245,158,11,.15);
}
[data-theme="dark"] .home-lucky-card {
  background: linear-gradient(135deg, #78350f 0%, #7c2d12 100%);
  border-color: #d97706;
}
.hl-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.hl-title {
  color: #92400e;
  font-weight: 700;
  font-size: 14px;
}
[data-theme="dark"] .hl-title { color: #fde68a; }
.hl-meta {
  color: #b45309;
  font-size: 11px;
  font-weight: 600;
}
[data-theme="dark"] .hl-meta { color: #fbbf24; }
.hl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}
.hl-num {
  background: #fff;
  color: #1e40af;
  padding: 9px 2px;
  border-radius: 7px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .3px;
  border: 1.5px solid #2563eb;
  box-shadow: 0 1px 3px rgba(37,99,235,.1);
}
[data-theme="dark"] .hl-num {
  background: #1e293b; color: #93c5fd; border-color: #3b82f6;
}
@media (max-width: 380px) {
  .hl-num { font-size: 12px; padding: 8px 1px; }
}
.hl-more {
  display: block;
  text-align: center;
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 4px;
}
[data-theme="dark"] .hl-more { color: #fbbf24; }

/* ========= OFFICIAL SOURCES (compact) ========= */
.official-card {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1.5px solid #2563eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 3px 10px rgba(37,99,235,.1);
}
[data-theme="dark"] .official-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-color: #3b82f6;
}
.of-intro {
  color: #1e3a8a;
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}
[data-theme="dark"] .of-intro { color: #bfdbfe; }
.of-links {
  display: grid; gap: 8px;
}
.of-link {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .15s;
}
.of-link:active { transform: scale(.98); }
[data-theme="dark"] .of-link {
  background: #0f172a; color: #bfdbfe;
}
.of-ico { font-size: 16px; flex-shrink: 0; }
.of-txt { flex: 1; min-width: 0; }
.of-txt strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.of-txt span {
  display: block;
  font-size: 11px;
  opacity: .75;
  margin-top: 1px;
}
.of-arrow {
  font-size: 18px;
  opacity: .6;
  flex-shrink: 0;
}

/* ========= LUCKY NUMBERS CARD ========= */
.lucky-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius); padding: 16px;
  margin: 0 16px;
}
[data-theme="dark"] .lucky-card {
  background: linear-gradient(135deg, #78350f 0%, #7c2d12 100%);
  border-color: #d97706;
  color: #fde68a;
}
.lucky-card h3 { color: #92400e; font-size: 15px; margin-bottom: 4px; }
[data-theme="dark"] .lucky-card h3 { color: #fde68a; }
.lucky-card .lucky-grid {
  display: grid; gap: 8px; margin-top: 10px;
}
.lucky-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.7); padding: 8px 12px; border-radius: 10px;
}
[data-theme="dark"] .lucky-row { background: rgba(0,0,0,.25); color: #fde68a; }
.lucky-row .slot-tag {
  background: #f59e0b; color: #fff; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
}
.lucky-row .nums { font-family: 'Courier New', monospace; font-weight: 700; font-size: 14px; }

/* ========= MINI DISCLAIMER (collapsible) ========= */
.mini-disc {
  margin: 0 16px 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid;
  background: var(--bg-card);
  transition: box-shadow .2s;
}
.mini-disc[open] { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mini-disc summary {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mini-disc summary::-webkit-details-marker { display: none; }
.mini-disc summary::marker { display: none; }
.mini-disc .md-title { display: inline-flex; align-items: center; gap: 6px; }
.mini-disc .md-arrow {
  font-size: 16px;
  transition: transform .2s;
  opacity: .7;
}
.mini-disc[open] .md-arrow { transform: rotate(180deg); }
.mini-disc .md-body {
  padding: 10px 14px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
}
.mini-disc .md-body strong { color: var(--text); }
.mini-disc .md-body a {
  color: var(--info);
  font-weight: 600;
  text-decoration: underline;
}
.mini-disc summary:active { opacity: .8; }

/* Variants */
.mini-disc.mini-danger  { border-color: #fca5a5; background: #fef2f2; }
.mini-disc.mini-danger summary { color: #991b1b; }
.mini-disc.mini-warning { border-color: #fcd34d; background: #fffbeb; }
.mini-disc.mini-warning summary { color: #92400e; }
.mini-disc.mini-info    { border-color: #93c5fd; background: #eff6ff; }
.mini-disc.mini-info summary { color: #1e40af; }
.mini-disc.mini-success { border-color: #86efac; background: #f0fdf4; }
.mini-disc.mini-success summary { color: #166534; }

[data-theme="dark"] .mini-disc.mini-danger  { background: #450a0a; border-color: #991b1b; }
[data-theme="dark"] .mini-disc.mini-danger summary { color: #fca5a5; }
[data-theme="dark"] .mini-disc.mini-warning { background: #451a03; border-color: #78350f; }
[data-theme="dark"] .mini-disc.mini-warning summary { color: #fcd34d; }
[data-theme="dark"] .mini-disc.mini-info    { background: #0c1b3a; border-color: #1e3a8a; }
[data-theme="dark"] .mini-disc.mini-info summary { color: #93c5fd; }
[data-theme="dark"] .mini-disc.mini-success { background: #052e16; border-color: #166534; }
[data-theme="dark"] .mini-disc.mini-success summary { color: #86efac; }
[data-theme="dark"] .mini-disc .md-body { color: var(--text); opacity: .85; }

/* ========= CONTACT CARD ========= */
.contact-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.contact-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.contact-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37,99,235,.25);
}
.contact-info { flex: 1; min-width: 0; }
.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.contact-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
  word-break: break-all;
  margin-top: 2px;
  font-family: 'Courier New', monospace;
}
.contact-actions { display: flex; flex-direction: column; gap: 8px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }

/* ========= SELLERS (Buy Ticket) ========= */
.seller-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.seller-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #059669);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.seller-info { flex: 1; min-width: 0; }
.seller-info h4 { font-size: 14px; color: var(--text); font-weight: 600; }
.seller-info .area { color: var(--text-muted); font-size: 12px; margin-top: 1px; }
.wa-btn {
  padding: 9px 14px; border-radius: 10px;
  background: #25D366; color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.wa-btn:hover { color: #fff; background: #128C7E; }

/* ========= PRIZE CHECKER ========= */
.checker-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin: 0 16px;
}
.checker-card h3 { color: var(--text); margin-bottom: 16px; font-size: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit;
  transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--info);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 20px; border-radius: 12px;
  font-weight: 700; font-size: 14px; transition: all .15s;
  text-align: center;
}
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(220,38,38,.3); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-outline { background: transparent; color: var(--info); border: 2px solid var(--info); }
.btn-outline:hover { background: var(--info); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-block { display: flex; width: 100%; }

.checker-result {
  margin-top: 16px; padding: 22px 18px; border-radius: 14px;
  background: var(--bg); border-left: 5px solid;
  position: relative; overflow: hidden;
  text-align: center;
}
.checker-result.win {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #16a34a; color: #14532d;
  animation: winPulse 1s ease-out, winSlideUp .5s ease-out;
}
[data-theme="dark"] .checker-result.win {
  background: linear-gradient(135deg, #14532d, #166534); color: #bbf7d0;
}
.checker-result.lose {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #dc2626; color: #7f1d1d;
  animation: loseShake .6s ease-in-out, winSlideUp .5s ease-out;
}
[data-theme="dark"] .checker-result.lose {
  background: linear-gradient(135deg, #7f1d1d, #991b1b); color: #fecaca;
}
.checker-result h4 { font-size: 22px; margin-bottom: 10px; font-weight: 800; }
.checker-result .win-title { color: #14532d; }
[data-theme="dark"] .checker-result .win-title { color: #bbf7d0; }
.checker-result .lose-title { color: #991b1b; }
[data-theme="dark"] .checker-result .lose-title { color: #fecaca; }
.checker-result .win-sub, .checker-result .lose-sub { font-size: 15px; margin-bottom: 4px; }
.checker-result .prize-amt {
  font-size: 24px; font-weight: 800; margin: 12px auto;
  padding: 10px 18px;
  background: rgba(22,163,74,.15); border-radius: 12px;
  display: inline-block;
}
[data-theme="dark"] .checker-result .prize-amt { background: rgba(187,247,208,.15); }
.result-icon-big {
  font-size: 64px; margin-bottom: 8px;
  display: block;
}
.win-icon { animation: winBounce 1s infinite alternate ease-in-out; }
.lose-icon { animation: loseTumble 1.5s ease-in-out; opacity: .9; }

@keyframes winPulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.7); }
  100% { box-shadow: 0 0 0 30px rgba(22,163,74,0); }
}
@keyframes winSlideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes winBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.1); }
}
@keyframes loseShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
@keyframes loseTumble {
  0% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0); }
}

/* ===== CONFETTI ===== */
.confetti-wrap {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti {
  position: absolute; top: -10%;
  width: 10px; height: 16px;
  left: calc((var(--i) * 4.3%));
  opacity: 0;
  animation: confettiFall 2.5s linear infinite;
  animation-delay: calc(var(--i) * 0.08s);
  transform-origin: center;
}
.confetti.c0 { background: #f59e0b; }
.confetti.c1 { background: #dc2626; }
.confetti.c2 { background: #16a34a; }
.confetti.c3 { background: #2563eb; }
.confetti.c4 { background: #ec4899; }
.confetti.c5 { background: #7c3aed; }
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

.fade-in { animation: winSlideUp .4s ease-out; }

/* ========= PDF VIEWER ========= */
.pdf-wrap {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); margin: 0 16px;
}
.pdf-wrap iframe {
  width: 100%; height: 70vh; min-height: 500px;
  border: 1px solid var(--border); border-radius: 10px;
}
.pdf-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* Full-page PDF view (Chrome-like, pinch zoom) */
.pdf-viewer-fullpage {
  margin: 0;
  padding: 0;
}
.pdf-toolbar-sticky {
  position: sticky; top: 70px; z-index: 20;
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.btn-small { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.pdf-iframe-full {
  width: 100%;
  height: calc(100vh - 170px);
  min-height: 500px;
  border: none;
  background: #e5e7eb;
  display: block;
  touch-action: pan-x pan-y pinch-zoom;
}

/* ========= COMPACT RESULT PAGE ========= */
.result-mini-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--slot-color);
  background: linear-gradient(135deg, var(--slot-color) 0%, #1e293b 100%);
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.result-mini-header * { color: #fff; }
.back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .15s;
}
.back-btn:hover { background: rgba(255,255,255,.35); color: #fff; transform: translateX(-2px); }
.result-title { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.r-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.r-text { min-width: 0; flex: 1; }
.r-main {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.r-sub {
  font-size: 11px;
  opacity: .88;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 360px) {
  .r-main { font-size: 13px; }
  .r-sub  { font-size: 10px; }
}

/* Action bar (compact single row) */
.result-actions {
  display: flex; gap: 6px;
  padding: 10px 12px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 66px; z-index: 20;
}
.act-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.act-btn.act-primary {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  border: none;
  box-shadow: 0 3px 8px rgba(220,38,38,.3);
}
.act-btn.act-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(220,38,38,.4); color: #fff; }
.act-btn.act-outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.act-btn.act-outline:hover { border-color: var(--info); color: var(--info); }
.act-btn svg { flex-shrink: 0; }
.act-btn.loading { opacity: .7; cursor: wait; }
@media (max-width: 360px) {
  .act-btn { font-size: 11px; padding: 8px 4px; }
  .act-btn svg { width: 13px; height: 13px; }
}

/* Full-screen PDF iframe */
.pdf-full-wrap {
  background: #525659;
  min-height: 85vh;
}
.pdf-full-iframe {
  width: 100%;
  height: 85vh;
  min-height: 580px;
  border: none;
  display: block;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 721px) {
  .pdf-full-iframe { height: calc(100vh - 200px); min-height: 500px; }
}

/* ========= DOWNLOAD LOADER OVERLAY ========= */
.dl-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: fadeIn .25s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dl-card {
  background: var(--bg-card);
  color: var(--text);
  padding: 32px 36px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  text-align: center;
  max-width: 320px;
  animation: dlSlideUp .3s ease-out;
}
@keyframes dlSlideUp {
  from { transform: translateY(20px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.dl-spinner {
  width: 52px; height: 52px;
  border: 5px solid var(--border);
  border-top-color: var(--accent);
  border-right-color: #ea580c;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: dlSpin 0.9s linear infinite;
}
@keyframes dlSpin { to { transform: rotate(360deg); } }
.dl-title {
  font-size: 17px; font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.dl-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.btn.loading { opacity: .7; cursor: wait; }

/* ========= ARCHIVE HERO ========= */
.archive-hero {
  margin: 14px 16px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  color: #fff;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 28px rgba(124,58,237,.3);
  position: relative; overflow: hidden;
}
.archive-hero::before {
  content: ''; position: absolute;
  top: -40%; right: -10%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 60%);
}
.ah-left { flex: 1; min-width: 0; position: relative; z-index: 1; }
.ah-left h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin: 0; }
.ah-left p { font-size: 12px; opacity: .9; margin-top: 4px; }
.ah-right { position: relative; z-index: 1; }
.ah-count {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  font-size: 22px; font-weight: 800;
  border: 1.5px solid rgba(255,255,255,.25);
}

/* ========= ARCHIVE FILTER PRO ========= */
.archive-filter-pro {
  background: var(--bg-card);
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.af-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.af-row { display: flex; gap: 8px; }
.af-input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}
.af-input:focus { outline: none; border-color: #7c3aed; }
.af-btn {
  padding: 11px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  letter-spacing: .3px;
  box-shadow: 0 3px 8px rgba(124,58,237,.3);
  white-space: nowrap;
}
.af-btn:active { transform: scale(.96); }
.af-clear {
  display: inline-block;
  margin-top: 10px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* ========= DATE CARDS GRID (All dates) ========= */
.date-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.date-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  border: 1px solid var(--border);
  transition: all .15s;
}
.date-card:active { transform: scale(.98); }
.date-card:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border-color: #7c3aed;
  color: var(--text);
}
.date-card.active {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124,58,237,.2);
}
[data-theme="dark"] .date-card.active {
  background: linear-gradient(135deg, #4c1d95, #5b21b6);
  color: #fff;
}
.dc-date {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(124,58,237,.25);
}
.dc-day {
  font-size: 20px; font-weight: 800;
  line-height: 1;
  letter-spacing: -.5px;
}
.dc-mon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
  opacity: .9;
}
.dc-info { flex: 1; min-width: 0; }
.dc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
[data-theme="dark"] .date-card.active .dc-name { color: #fff; }
.dc-count {
  font-size: 12px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  font-weight: 500;
}
.dc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.dc-arrow {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .15s;
}
.date-card:hover .dc-arrow { transform: translateX(3px); color: #7c3aed; }
.date-card.active .dc-arrow { color: #7c3aed; }
@media (max-width: 380px) {
  .dc-date { width: 46px; height: 46px; }
  .dc-day { font-size: 18px; }
  .dc-mon { font-size: 9px; }
  .dc-name { font-size: 13px; }
  .dc-count { font-size: 11px; }
  .dc-arrow { font-size: 20px; }
}

/* ========= LEGAL / CONTENT PAGES ========= */
.content-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow-sm);
  margin: 0 16px; color: var(--text);
}
.content-card h1 { color: var(--accent); font-size: 22px; margin-bottom: 6px; }
.content-card .updated { color: var(--text-muted); font-size: 12px; margin-bottom: 18px; }
.content-card h2 { color: var(--text); font-size: 17px; margin-top: 20px; margin-bottom: 8px; }
.content-card p, .content-card li { color: var(--text); margin-bottom: 10px; font-size: 14px; }
.content-card ul, .content-card ol { margin-left: 22px; margin-bottom: 12px; }
.alert {
  padding: 13px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 13px;
}
.alert-danger { background: #fef2f2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.alert-warning { background: #fef3c7; color: #78350f; border-left: 4px solid #f59e0b; }
.alert-info { background: #dbeafe; color: #1e3a8a; border-left: 4px solid #2563eb; }
[data-theme="dark"] .alert-danger  { background: #450a0a; color: #fecaca; }
[data-theme="dark"] .alert-success { background: #14532d; color: #bbf7d0; }
[data-theme="dark"] .alert-warning { background: #78350f; color: #fde68a; }
[data-theme="dark"] .alert-info    { background: #1e3a8a; color: #bfdbfe; }

/* ========= BOTTOM NAV (App-like) ========= */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 720px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: 6px 0 8px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  z-index: 100;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 6px 4px; color: var(--text-muted);
  text-decoration: none; font-size: 10px; font-weight: 500;
  transition: color .15s;
}
.nav-item .n-icon { font-size: 22px; margin-bottom: 2px; }
.nav-item.active { color: var(--accent); }
.nav-item.active .n-icon { transform: scale(1.1); }
.nav-item:hover { color: var(--accent); }

/* ========= FOOTER (above bottom nav) ========= */
.app-footer {
  background: var(--bg-elev); color: var(--text-muted);
  padding: 22px 16px 28px; margin-top: 24px; font-size: 12px;
}
.app-footer .foot-disclaimer {
  background: var(--bg); border-left: 3px solid var(--accent);
  padding: 12px 14px; border-radius: 8px; margin-bottom: 14px;
  line-height: 1.6;
}
.app-footer .foot-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px;
}
.app-footer .foot-links a { color: var(--text-muted); font-size: 12px; }
.app-footer .foot-links a:hover { color: var(--accent); }
.app-footer .foot-sources {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.app-footer .foot-sources a {
  background: var(--bg); padding: 6px 10px; border-radius: 6px;
  color: var(--accent); font-size: 11px; font-weight: 600;
  border: 1px solid var(--border);
}
.app-footer .copy { text-align: center; margin-top: 14px; font-size: 11px; }

/* ========= ADMIN ========= */
.admin-shell { max-width: 960px; margin: 0 auto; padding: 16px; }
.admin-bar {
  background: #0f172a; color: #fff;
  padding: 12px 16px; border-radius: 12px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.admin-bar a { color: #cbd5e1; margin-right: 12px; font-size: 14px; font-weight: 500; }
.admin-bar a:hover, .admin-bar a.active { color: #fbbf24; }
.admin-bar .right a { margin-right: 0; margin-left: 10px; }
.admin-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; color: var(--text);
}
.admin-card h1 { font-size: 20px; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.admin-table th, .admin-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.admin-table th { background: var(--bg); font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-box {
  background: var(--bg-card); padding: 16px; border-radius: 12px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--info);
}
.stat-box .stat-val { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-box .stat-lbl { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ========= RESPONSIVE ========= */
@media (min-width: 721px) {
  body { background: #e2e8f0; }
  [data-theme="dark"] body { background: #020617; }
  .app-shell {
    margin: 20px auto; border-radius: 20px; overflow: hidden;
    min-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.15);
  }
  .bottom-nav { border-radius: 0 0 20px 20px; }
}

/* Utility */
.small { font-size: 12px; }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
