/* ==========================================================================
   Kerala State Lotteries — Unified Design System & Stylesheet
   (Comprehensive single stylesheet for index.html, admin.html, and history.html)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
  /* Primary Brand Palette */
  --gold-primary: #f5a623;
  --gold-dark: #d98200;
  --gold-light: #fff8eb;
  --gold-accent: #fce7b0;
  --navy-primary: #0b3c7b;
  --navy-dark: #07254d;
  --navy-deep: #031b33;
  --navy-light: #16529e;
  --blue-accent: #0f4c81;
  --green-emerald: #10b981;
  --green-badge: #006837;
  --cyan-accent: #06b6d4;

  /* Surfaces & Backgrounds */
  --bg-light: #f4f7f9;
  --bg-white: #ffffff;
  --bg-dark: #07090e;
  --bg-dark-card: rgba(18, 24, 38, 0.85);

  /* Typography Colors */
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-color: #e2e8f0;
  --border-glass: rgba(255, 255, 255, 0.1);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(11, 60, 123, 0.08);
  --shadow-lg: 0 12px 28px rgba(11, 60, 123, 0.12);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-display: 'Cinzel', serif;
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

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

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

.admin-container {
  width: 100%;
  max-width: 1490px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation (Main Portal)
   ========================================================================== */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.brand-seal-wrapper {
  width: 54px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
}

.brand-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-text strong {
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: 0.3px;
  font-family: var(--font-body);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text em {
  font-size: clamp(0.72rem, 1.3vw, 0.84rem);
  font-style: normal;
  font-weight: 700;
  color: #a06512;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.2;
  display: none;
}

@media (min-width: 1280px) {
  .brand-text small {
    display: block;
  }
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  position: relative;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a i {
  font-size: 0.85rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.main-nav a:hover i {
  transform: translateY(-1px);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-dark);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--gold-dark);
  border-radius: 2px;
}

.mobile-nav-actions {
  display: none;
}

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

.nav-back-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-back-link:hover {
  color: var(--gold-dark);
  background: var(--bg-light);
}

.btn-header {
  background-color: var(--navy-primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid var(--navy-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header:hover {
  background-color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(11, 60, 123, 0.25);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  color: var(--navy-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: #e2e8f0;
  color: var(--navy-dark);
}

.mobile-menu-btn:active {
  transform: scale(0.94);
}

/* Header Breakpoint: Tablet & Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .header-actions {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 16px 32px rgba(7, 37, 77, 0.12);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.25s ease, visibility 0.35s;
    flex-direction: column;
    align-items: stretch;
    z-index: 999;
  }

  .main-nav.is-open {
    max-height: 520px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 6px;
    width: 100%;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #1e293b;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .main-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--navy-primary);
  }

  .main-nav a:hover {
    background: #f8fafc;
    color: var(--navy-primary);
  }

  .main-nav a.active {
    background: #fff8eb;
    color: var(--gold-dark);
  }

  .main-nav a.active::after {
    display: none;
  }

  .mobile-nav-actions {
    display: block;
    padding: 10px 18px 18px;
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
  }

  .mobile-nav-actions .btn-header {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .brand-bar {
    padding: 8px 0;
    gap: 10px;
  }

  .brand-seal-wrapper {
    width: 42px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 0.92rem;
    letter-spacing: 0;
  }

  .brand-text em {
    font-size: 0.68rem;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   Hero Section & Live Countdown
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0b3c7b 0%, #072b59 60%, #031b33 100%);
  color: #ffffff;
  padding: 55px 0 45px;
  position: relative;
  overflow: hidden;
}

.hero-bg-art {
  position: absolute;
  right: -20px;
  bottom: 10px;
  opacity: 0.1;
  pointer-events: none;
  width: 450px;
}

.hero-container {
  position: relative;
  z-index: 2;
}

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

.hero-text-content {
  max-width: 710px;
}

.hero-eyebrow {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fce7b0;
  margin-bottom: 10px;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-gold {
  background: linear-gradient(180deg, #f5a623 0%, #e59a00 100%);
  color: #0b2240;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ffb43b 0%, #f5a623 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.45);
}

.btn-blue {
  background: #0f4c81;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.btn-blue:hover {
  background: #165ea0;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-telegram {
  background: #229ed9;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
  border: none;
  cursor: pointer;
}

.btn-telegram:hover {
  background: #1982b6;
  transform: translateY(-2px);
  color: #ffffff;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fce7b0;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(3, 27, 51, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 58px;
}

.timer-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  font-family: monospace;
  line-height: 1.1;
}

.timer-unit {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.timer-divider {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* ==========================================================================
   Service Highlights Bar
   ========================================================================== */
.highlights-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.highlight-card {
  padding: 22px 26px;
  border-right: 1px solid var(--border-color);
  transition: background 0.2s;
}

.highlight-card:last-child {
  border-right: none;
}

.highlight-card:hover {
  background: #fafcff;
}

.highlight-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.highlight-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Common Utilities
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle-tag {
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.section-main-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--navy-primary);
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.section-desc-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 720px;
  margin: 10px auto 0;
}

/* ==========================================================================
   Live Result Viewer & 7-Day History Tabs
   ========================================================================== */
.result-viewer-section {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.controls-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-scroll-container {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.date-pills-list {
  display: flex;
  gap: 10px;
  min-width: max-content;
  padding: 4px 2px;
}

.date-pill {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.date-pill:hover {
  border-color: var(--navy-primary);
  color: var(--navy-primary);
  transform: translateY(-1px);
}

.date-pill.active {
  background: var(--navy-primary);
  border-color: var(--navy-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 60, 123, 0.28);
}

.date-pill .pill-day {
  font-weight: 800;
}

.date-pill .pill-date {
  font-size: 0.82rem;
  opacity: 0.85;
}

.date-pill.today .pill-day {
  color: var(--gold-dark);
}

.date-pill.active.today .pill-day {
  color: #fce7b0;
}

/* 1 PM & 8 PM Slot Switcher Cards */
.slot-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.slot-card-btn {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.slot-card-btn:hover {
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.slot-card-btn.active {
  border-color: var(--navy-primary);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(11, 60, 123, 0.12);
  outline: 2px solid var(--gold-primary);
}

.slot-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slot-icon-box {
  font-size: 1.8rem;
}

.slot-meta h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.2;
}

.slot-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.slot-status-indicator {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #64748b;
}

.slot-card-btn.active .slot-status-indicator {
  background: #e6f0fa;
  color: var(--navy-primary);
}

/* Result Viewer Card & Canvas */
.result-viewer-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.viewer-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.viewer-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.viewer-header-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.viewer-date-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.published {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-badge.verifying {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-btn {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tool-btn.primary {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.tool-btn.primary:hover {
  background: var(--navy-dark);
}

.image-canvas-wrapper {
  position: relative;
  background-color: #fff;
  /* background-image:
    radial-gradient(circle at 50% 0%, #edf4fc 0%, transparent 70%),
    radial-gradient(#cbd5e1 1.2px, transparent 1.2px); */
  background-size: 100% 100%, 20px 20px;
  border-top: 1px solid var(--border-color);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow: auto;
}

.result-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* border: 1px solid #cbd5e1; */
  /* box-shadow: 0 12px 32px rgba(11, 60, 123, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04); */
  transition: transform 0.25s ease;
  background: #ffffff;
}

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  color: var(--text-dark);
  max-width: 480px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(11, 60, 123, 0.05);
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  border-radius: 50%;
  border: 2px solid #bae6fd;
  animation: pulseIcon 2.5s infinite ease-in-out;
}

@keyframes pulseIcon {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.empty-state-card h4 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.empty-state-card p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 27, 51, 0.92);
  backdrop-filter: blur(8px);
  z-index: 3000;
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-topbar {
  padding: 16px 24px;
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.lightbox-title {
  font-weight: 800;
  font-size: 1.1rem;
}

.lightbox-controls {
  display: flex;
  gap: 8px;
}

.lightbox-viewport {
  flex-grow: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Welcome & Quick Assistance
   ========================================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.welcome-text .section-subtitle-tag {
  margin-bottom: 8px;
}

.welcome-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1.25;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.welcome-text p {
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.7;
}

.quick-assist-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.quick-assist-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 12px;
}

.quick-assist-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ==========================================================================
   Popular Services & Winner Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-item-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.service-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.service-num {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-dark);
}

.service-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff8eb;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.service-item-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-item-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-link {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--navy-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-link:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   Dear Diwali Bumper Scheme Section
   ========================================================================== */
.bumper-scheme-section {
  background: #f8fafc;
  padding: 50px 0;
}

.bumper-container-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  border-top: 5px solid #eab308;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.bumper-header-banner {
  background: linear-gradient(135deg, #09372a 0%, #104e3d 100%);
  border-radius: 14px;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bumper-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bumper-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bumper-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.bumper-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.bumper-header-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bumper-metric-box {
  background: #062219;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
  min-width: 135px;
}

.bumper-metric-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.bumper-metric-val {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.3px;
}

.bumper-prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bumper-prize-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.bumper-prize-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 60, 123, 0.08);
}

.bumper-prize-card.highlight-gold {
  border-color: #fbbf24;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.09);
}

.bumper-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.bumper-rank-badge {
  width: 40px;
  height: 40px;
  background: #d97706;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
}

.bumper-card-title-group {
  display: flex;
  flex-direction: column;
}

.bumper-prize-rank {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bumper-prize-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.bumper-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.bumper-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bumper-tag.tag-ticket {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
}

.bumper-tag.tag-total {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}

.bumper-card-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Process, Features & FAQ Accordion
   ========================================================================== */
.process-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card,
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.process-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-card h3,
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 12px;
}

.process-card p,
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef3c7;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--navy-primary);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--gold-dark);
  transition: transform 0.25s;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 18px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Need Help Banner & Site Footer
   ========================================================================== */
.need-help-banner {
  background: linear-gradient(90deg, #0b3c7b 0%, #062650 100%);
  color: #ffffff;
  padding: 44px 0;
}

.need-help-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.need-help-tag {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fce7b0;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.need-help-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.need-help-inner p {
  font-size: 1.02rem;
  color: #cbd5e1;
}

.site-footer {
  background: var(--navy-deep);
  color: #94a3b8;
  padding: 60px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 45px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-contact-item i {
  color: var(--gold-primary);
  width: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.floating-telegram {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #229ed9;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-telegram:hover {
  transform: scale(1.1);
  background: #1982b6;
  color: #ffffff;
}

/* ==========================================================================
   Admin Portal Styles (admin.html)
   ========================================================================== */
.admin-login-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.admin-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 440px;
  color: #f8fafc;
}

.admin-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.admin-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.admin-card-header p {
  color: #94a3b8;
  font-size: 0.88rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-control {
  width: 100%;
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

select.input-control option {
  background: #0f172a;
  color: #f8fafc;
}

.btn-block {
  width: 100%;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--green-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.dropzone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.85rem;
  color: #94a3b8;
}

.dropzone-text span {
  color: var(--gold-primary);
  text-decoration: underline;
  font-weight: 600;
}

.preview-thumbnail {
  display: none;
  max-height: 140px;
  margin: 0.75rem auto 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slots-manager-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.slots-manager-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slots-manager-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #94a3b8;
}

.slots-manager-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
}

.slot-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.slot-badge.slot-1pm {
  background: #fff8eb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.slot-badge.slot-8pm {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-empty {
  background: rgba(100, 116, 139, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.admin-nav-btn {
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  color: #ffffff;
  border-color: var(--gold-primary);
}

/* ==========================================================================
   History Page Styles (history.html)
   ========================================================================== */
.history-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.history-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0b3c7b 30%, #d98200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.history-subtitle {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-pill-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-pill-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.stat-pill-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.timeline-section {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 4rem;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
}

.timeline-milestone {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-milestone:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -2.45rem;
  top: 1.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
  border: 2px solid #ffffff;
}

.timeline-milestone.emerald .timeline-node {
  background: var(--green-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-milestone.cyan .timeline-node {
  background: var(--cyan-accent);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.timeline-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.timeline-year-tag {
  background: #fff8eb;
  color: var(--gold-dark);
  border: 1px solid #fde68a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.timeline-card p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.7;
}

.timeline-highlight-box {
  background: #f8fafc;
  border-left: 3px solid var(--gold-primary);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: #334155;
}

.states-section {
  padding: 2rem 0 4rem;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.state-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.state-item-card:hover {
  border-color: var(--navy-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.state-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.state-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-primary);
}

.state-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.state-scheme-list {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {

  .services-grid,
  .bumper-prizes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .slot-toggle-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .bumper-prizes-grid {
    grid-template-columns: 1fr;
  }

  .bumper-header-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bumper-header-metrics {
    width: 100%;
  }

  .bumper-metric-box {
    flex: 1;
  }

  .bumper-container-card {
    padding: 20px 16px;
  }

  .hero-top-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown-box {
    width: 100%;
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-bar-grid {
    grid-template-columns: 1fr;
  }

  .timeline-section {
    padding-left: 1.5rem;
  }

  .timeline-node {
    left: -1.95rem;
  }
}