/* ==========================================================
   MIZORAM STATE LOTTERY - OFFICIAL DESIGN SYSTEM v2.0
   Palette: Deep Obsidian, Electric Gold & Neon Cyan
   Premium Government Portal Aesthetic
   ========================================================== */

/* ── DESIGN TOKENS ── */
:root {
  --bg-deep: #050608;
  --bg-primary: #08090d;
  --bg-surface: #0e1019;
  --bg-card: #131620;
  --bg-card-hover: #191d2c;
  --bg-elevated: #1f2437;
  --bg-glass: rgba(14, 16, 25, 0.72);

  --color-gold: #f59e0b;
  --color-gold-bright: #fbbf24;
  --color-gold-warm: #f59e0b;
  --color-gold-glow: rgba(251, 191, 36, 0.35);
  --color-gold-border: rgba(251, 191, 36, 0.22);
  --color-gold-light: #fef08a;

  --color-cyan: #22d3ee;
  --color-cyan-soft: #67e8f9;
  --color-cyan-glow: rgba(34, 211, 238, 0.3);

  --color-emerald: #34d399;
  --color-emerald-glow: rgba(52, 211, 153, 0.3);

  --color-rose: #fb7185;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-active: rgba(251, 191, 36, 0.4);

  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 4px 20px rgba(251, 191, 36, 0.25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── ANIMATIONS ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -20px) scale(1.05); }
  50% { transform: translate(-15px, -30px) scale(0.95); }
  75% { transform: translate(-25px, -10px) scale(1.02); }
}

@keyframes timerGlow {
  0%, 100% { box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(251, 191, 36, 0.1); }
  50% { box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(251, 191, 36, 0.25); }
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise Texture */
.texture-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ══════════════════════════════════════════════════════════
   1. TOP ANNOUNCEMENT TICKER
   ══════════════════════════════════════════════════════════ */
.top-announcement {
  background: linear-gradient(90deg, #050608 0%, #0e1019 50%, #050608 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  font-size: 0.82rem;
  padding: 7px 0;
  position: relative;
  z-index: 50;
}

/* Shimmer top border */
.top-announcement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-cyan), var(--color-gold), transparent);
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-badge {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #08090d;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 9px;
  border-radius: var(--radius-xs);
}

.announcement-text {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.8rem;
}

.announcement-right {
  display: flex;
  align-items: center;
}

.ist-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-cyan);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   2. MAIN HEADER & BRAND
   ══════════════════════════════════════════════════════════ */
.main-header {
  background: rgba(8, 10, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Animated gold underline */
.main-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-cyan), var(--color-gold), transparent);
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--color-gold);
  box-shadow:
    0 0 20px var(--color-gold-glow),
    0 0 45px rgba(251, 191, 36, 0.15);
  transition: var(--transition);
}
.brand-emblem:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 28px var(--color-gold-glow),
    0 0 55px rgba(251, 191, 36, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.gov-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--color-gold);
  font-weight: 700;
}

.portal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

.portal-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-admin-link {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--color-gold-bright);
}
.btn-admin-link:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: var(--color-gold-bright);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #b45309 0%, #d97706 25%, #f59e0b 50%, #fbbf24 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: #08090d;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.02em;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid var(--color-gold-border);
  color: var(--color-gold-bright);
}
.btn-outline:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: var(--color-gold-bright);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-primary {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
  color: #08090d;
  font-weight: 700;
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: var(--shadow-gold);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

.btn-secondary-sub {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary-sub:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-medium);
}

.btn-sm {
  padding: 7px 13px !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-sm) !important;
}

/* ══════════════════════════════════════════════════════════
   3. HERO & COUNTDOWN
   ══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  padding: 55px 0 65px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(34, 211, 238, 0.04) 0%, transparent 50%),
    var(--bg-deep);
}

.hero-glow-bg {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, rgba(217, 119, 6, 0.06) 50%, transparent 80%);
  filter: blur(70px);
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  color: var(--color-gold-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.1s both;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold-bright);
  box-shadow: 0 0 10px var(--color-gold);
  animation: pulseDot 1.5s infinite ease-in-out;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 860px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.2s both;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 30%, #f59e0b 60%, #ffffff 100%);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 35px;
}

/* COUNTDOWN CARD */
.countdown-card {
  width: 100%;
  max-width: 700px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: var(--radius-xl);
  padding: 28px 34px;
  box-shadow:
    var(--shadow-xl),
    0 0 40px rgba(251, 191, 36, 0.12);
  position: relative;
  animation: fadeSlideUp 0.7s var(--ease-out) 0.3s both;
}

/* Animated top accent */
.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-bright), var(--color-cyan), var(--color-gold-bright), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  border-radius: 2px;
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.countdown-target {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.target-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 600;
}

.target-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold-bright);
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.status-tag.upcoming {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--color-gold-bright);
}
.status-tag.live {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  animation: gentlePulse 2s infinite;
}
.status-tag.published {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--color-emerald);
}

.timer-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 18px 0 22px;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(5, 6, 8, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  min-width: 100px;
  animation: timerGlow 3s ease-in-out infinite;
}

.time-num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow:
    0 0 20px rgba(251, 191, 36, 0.6),
    0 0 40px rgba(245, 158, 11, 0.25);
}

.time-unit {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--color-gold-bright);
  font-weight: 700;
  margin-top: 8px;
  font-family: var(--font-mono);
}

.time-colon {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
  animation: pulseDot 1.5s ease-in-out infinite;
}

.countdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.scroll-link {
  color: var(--color-gold-bright);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.scroll-link:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   4. RESULTS SHOWCASE SECTION
   ══════════════════════════════════════════════════════════ */
.results-section {
  padding: 55px 0 75px;
  background: var(--bg-deep);
  position: relative;
}

/* Section gradient divider */
.results-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-border), var(--color-cyan-glow), var(--color-gold-border), transparent);
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 38px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--color-gold-bright);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* CONTROLS BAR */
.draw-controls-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  background: var(--bg-surface);
  border: 1px solid rgba(251, 191, 36, 0.15);
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.controls-label-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.active-date-label {
  color: var(--text-secondary);
}

/* DUAL FULL-FRAME RESULTS GRID */
.dual-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.full-frame-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  animation: cardEntrance 0.6s var(--ease-out) both;
}
.full-frame-result-card:nth-child(1) { animation-delay: 0.1s; }
.full-frame-result-card:nth-child(2) { animation-delay: 0.2s; }

.full-frame-result-card:hover {
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow:
    var(--shadow-xl),
    0 0 30px rgba(251, 191, 36, 0.12);
  transform: translateY(-3px);
}

.card-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.day-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(14, 16, 25, 0.9) 100%);
  border-top: 3px solid var(--color-gold-bright);
}

.night-banner {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(14, 16, 25, 0.9) 100%);
  border-top: 3px solid var(--color-cyan);
}

.slot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slot-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.3));
}

.slot-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.day-banner .slot-title {
  color: var(--color-gold-bright);
}
.night-banner .slot-title {
  color: var(--color-cyan);
}

.slot-subtitle-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--color-emerald);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

/* CARD META BAR */
.card-meta-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 22px;
  background: rgba(5, 6, 8, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.meta-unit {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.66rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

.meta-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3px;
}

.text-success {
  color: var(--color-emerald) !important;
}

/* CARD ACTION BAR */
.card-action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: rgba(8, 10, 14, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

/* FULL FRAME VIEWPORT */
.full-frame-viewport {
  background: #030406;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.full-sheet-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.full-sheet-image:hover {
  transform: scale(1.012);
  box-shadow:
    0 14px 50px rgba(245, 158, 11, 0.35),
    0 0 20px rgba(251, 191, 36, 0.15);
}

.viewport-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.viewport-empty {
  text-align: center;
  padding: 65px 20px;
}

.empty-emoji {
  font-size: 3.2rem;
  display: block;
  margin-bottom: 14px;
}

.viewport-empty h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
}

.viewport-empty p {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(251, 191, 36, 0.15);
  border-top-color: var(--color-gold-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ══════════════════════════════════════════════════════════
   5. FULLSCREEN LIGHTBOX / RESULT VIEWER
   ══════════════════════════════════════════════════════════ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-toolbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(8, 10, 14, 0.95);
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  backdrop-filter: blur(12px);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-doc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-badge {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--color-gold-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}

.toolbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 6, 8, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tool-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.tool-btn:hover {
  background: var(--bg-elevated);
  color: #ffffff;
}

.zoom-level {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-cyan);
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-btn-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24);
  color: #08090d;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.tool-btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #fef08a);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.tool-btn-close {
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: var(--color-rose);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.tool-btn-close:hover {
  background: rgba(251, 113, 133, 0.8);
  color: #ffffff;
}

.lightbox-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}

.lightbox-stage.dragging {
  cursor: grabbing;
}

.lightbox-transform-layer {
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.05s ease-out;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-sheet-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.lightbox-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 6, 8, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  color: var(--text-dim);
  pointer-events: none;
  z-index: 15;
}

/* ══════════════════════════════════════════════════════════
   7. INFORMATION & ADVISORY SECTION
   ══════════════════════════════════════════════════════════ */
.info-guide-section {
  padding: 55px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
}
.guide-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.guide-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.guide-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
}

.guide-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   8. FOOTER
   ══════════════════════════════════════════════════════════ */
.portal-footer {
  background: #030406;
  padding: 55px 0 30px;
  border-top: 1px solid rgba(251, 191, 36, 0.15);
  position: relative;
}

/* Animated top border */
.portal-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-cyan), var(--color-gold), transparent);
  background-size: 300% 100%;
  animation: shimmer 8s linear infinite;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
}

.footer-brand h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--color-gold-bright);
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  border-radius: var(--radius-lg);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
}
.footer-disclaimer strong {
  color: var(--color-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .countdown-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dual-results-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-announcement {
    padding: 5px 0;
  }
  .announcement-content {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
  }
  .announcement-text {
    font-size: 0.7rem;
  }
  .header-inner {
    padding: 10px 14px;
  }
  .brand-emblem {
    width: 44px;
    height: 44px;
  }
  .portal-title {
    font-size: 1.12rem;
  }
  .portal-tagline {
    font-size: 0.7rem;
  }
  .btn-admin-link {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 24px 0 22px;
  }
  .hero-heading {
    font-size: 1.45rem;
    line-height: 1.3;
  }
  .countdown-card {
    padding: 18px 16px;
    margin-top: 14px;
  }
  .countdown-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .target-title {
    font-size: 1.05rem;
  }
  .timer-display {
    gap: 8px;
    margin: 14px 0;
  }
  .time-box {
    min-width: 65px;
    padding: 10px 12px;
  }
  .time-num {
    font-size: 1.6rem;
  }
  .time-unit {
    font-size: 0.6rem;
  }
  .time-colon {
    font-size: 1.4rem;
  }

  .results-section {
    padding: 22px 0 40px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .draw-controls-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
  }
  .controls-label-group {
    font-size: 0.84rem;
  }

  /* Result Cards on Mobile */
  .full-frame-result-card {
    border-radius: var(--radius-lg);
  }
  .card-header-banner {
    padding: 14px 16px;
  }
  .slot-icon {
    font-size: 1.3rem;
  }
  .slot-title {
    font-size: 0.72rem;
  }
  .badge-verified {
    font-size: 0.62rem;
    padding: 3px 6px;
  }

  .card-meta-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 14px;
  }
  .meta-label {
    font-size: 0.6rem;
  }
  .meta-val {
    font-size: 0.78rem;
  }

  .card-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px;
  }
  .card-action-bar .btn {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .card-action-bar .btn-secondary-sub {
    grid-column: span 2;
    min-height: 38px;
  }

  .full-frame-viewport {
    padding: 8px;
    min-height: auto;
  }
  .viewport-empty {
    padding: 40px 16px;
  }
  .viewport-empty h4 {
    font-size: 1.02rem;
  }
  .viewport-empty p {
    font-size: 0.8rem;
  }

  /* Lightbox on Mobile */
  .lightbox-toolbar {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 10px 12px;
  }
  .toolbar-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .toolbar-center {
    justify-content: center;
    order: 3;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: var(--radius-sm);
  }
  .toolbar-right {
    justify-content: space-between;
    order: 2;
  }
  .tool-btn-gold {
    flex: 1;
    justify-content: center;
  }
  .lightbox-hint {
    bottom: 12px;
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  /* Footer on Mobile */
  .footer-inner {
    padding: 0 14px;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .portal-title {
    font-size: 1.02rem;
  }
  .hero-heading {
    font-size: 1.25rem;
  }
  .time-box {
    min-width: 55px;
    padding: 8px 10px;
  }
  .time-num {
    font-size: 1.35rem;
  }
  .card-meta-bar {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .meta-unit {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
