/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Malayalam', sans-serif;
  background: #f5f5f0;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== CSS VARIABLES ===== */
:root {
  --green-dark: #1a472a;
  --green-mid: #2d6a4f;
  --green-light: #e8f5e9;
  --green-border: #a5d6a7;
  --gold: #f4c430;
  --gold-dark: #e65100;
  --gold-bg: #fffde7;
  --gold-border: #f9a825;
  --white: #ffffff;
  --gray-bg: #f5f5f0;
  --gray-light: #f8f9fa;
  --gray-border: #e0e0e0;
  --gray-text: #666666;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-star {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--green-dark);
  font-weight: 700;
  flex-shrink: 0;
}
.logo-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}
.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 500; }
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #163d23;
  padding: 0.5rem 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-link {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-link.active { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 70%, #1b4332 100%);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.hero-date {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.6rem;
}
.hero-lottery-today {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.hero-lottery-today strong { color: var(--gold); }

/* ===== ADS ===== */
.ad-zone {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.ad-placeholder {
  background: #f0f0eb;
  border: 1px dashed #ccc;
  border-radius: var(--radius-sm);
  padding: 1rem 2rem;
  font-size: 12px;
  color: #999;
  text-align: center;
}
.ad-banner .ad-placeholder { width: 100%; max-width: 728px; }
.ad-rect .ad-placeholder { width: 300px; height: 250px; display: flex; align-items: center; justify-content: center; }

/* ===== LAYOUT ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.main-wrap { padding: 1.5rem 0 2rem; }

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 1rem;
}
.section-header .section-title { margin-bottom: 0; }
.live-badge {
  background: #e53935;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== RESULT CARD ===== */
.result-section { margin-bottom: 1.5rem; }
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.result-card-header {
  background: var(--green-dark);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.result-card-name {
  font-size: 17px;
  font-weight: 600;
}
.result-card-date {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* FIRST PRIZE */
.first-prize-block {
  background: linear-gradient(135deg, #fffde7, #fff8e1);
  border-bottom: 1px solid var(--gold-border);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.prize-tier-label {
  font-size: 12px;
  font-weight: 600;
  color: #f57f17;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.prize-money {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.prize-number-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.prize-agent {
  font-size: 12px;
  color: var(--gray-text);
}

/* CONSOLATION */
.consolation-block {
  background: #e8f5e9;
  border-bottom: 1px solid var(--green-border);
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.con-label {
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.con-numbers {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #2e7d32;
}

/* PRIZE TABLE */
.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prize-table th {
  background: var(--gray-light);
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gray-border);
}
.prize-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.prize-table tr:last-child td { border-bottom: none; }
.prize-table tr:hover td { background: #fafafa; }
.prize-amt {
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
}
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
}
.small-nums { font-size: 12px; }
.result-disclaimer {
  padding: 0.75rem 1.25rem;
  font-size: 11px;
  color: var(--gray-text);
  background: var(--gray-light);
  border-top: 1px solid var(--gray-border);
  line-height: 1.5;
}

/* ===== QUICK CHECK ===== */
.quick-check-section { margin-bottom: 1.5rem; }
.check-widget {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.check-desc {
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 0.75rem;
}
.check-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0.5rem;
}
.ticket-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s;
}
.ticket-input:focus { border-color: var(--green-dark); }
.check-btn {
  padding: 10px 20px;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.check-btn:hover { background: #163d23; }
.check-result {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 8px;
}
.check-result.win {
  background: #c8e6c9;
  color: #1b5e20;
  border: 1px solid #66bb6a;
}
.check-result.lose {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}
.check-note {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 6px;
}
.check-note a { color: var(--green-dark); text-decoration: underline; }

/* ===== WEEK GRID ===== */
.week-section { margin-bottom: 1.5rem; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.week-pill {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.week-pill:hover { border-color: var(--green-dark); transform: translateY(-1px); }
.week-pill.today {
  border: 2px solid var(--green-dark);
  background: var(--green-light);
}
.week-pill.completed { opacity: 0.6; }
.pill-day { font-size: 11px; color: var(--gray-text); }
.pill-name { font-size: 12px; font-weight: 600; color: #1a1a1a; margin-top: 2px; }
.pill-status { font-size: 10px; color: var(--green-dark); margin-top: 2px; }

/* ===== INFO STEPS ===== */
.info-section { margin-bottom: 1.5rem; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--green-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.step-desc { font-size: 13px; color: var(--gray-text); line-height: 1.5; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.footer-link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  transition: color 0.15s;
}
.footer-link:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ===== PAGE: CHECK TICKET ===== */
.page-hero {
  background: var(--green-dark);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: 26px; font-weight: 600; margin-bottom: 0.3rem; }
.page-hero p { font-size: 14px; color: rgba(255,255,255,0.65); }

.check-page-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

/* ===== PAGE: SCHEDULE ===== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.schedule-table th {
  background: var(--green-dark);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.schedule-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr.today-row td { background: var(--green-light); font-weight: 500; }
.schedule-table .prize-col { font-weight: 600; color: var(--green-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prize-table th:last-child,
  .prize-table td:last-child { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .check-row { flex-direction: column; }
  .check-btn { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .prize-number-big { font-size: 20px; letter-spacing: 2px; }
  .prize-money { font-size: 22px; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.green { color: var(--green-dark); }
