/* ── Reset & variables ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --maroon: #8b1a1a;
  --maroon-dark: #6b1010;
  --maroon-deep: #4a0808;
  --blue: #1a3fa8;
  --blue-light: #2563d4;
  --gold: #e8b923;
  --gold-dark: #c9920a;
  --gold-glow: #ffd54f;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #4a5568;
  --radius: 14px;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--maroon);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(180, 30, 30, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(120, 10, 10, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 50%, var(--maroon-deep) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  padding: 16px 0;
  border-bottom: 2px solid rgba(232, 185, 35, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo__coin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: radial-gradient(circle at 35% 30%, var(--gold-glow), var(--gold-dark));
  color: var(--maroon-deep);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo__text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav { display: flex; gap: 24px; }

.nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover { color: var(--gold-glow); }

/* ── Main board (two-column) ────────────────────────────────── */
.main-board {
  padding: 32px 0 24px;
}

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.board-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Panel header pill */
.panel-header {
  background: var(--white);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.15rem;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 3px solid var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.panel-header--center {
  max-width: 400px;
  margin: 0 auto 28px;
}

/* White content card */
.panel-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 3px solid var(--blue);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.panel-card__banner {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px;
  letter-spacing: 0.03em;
}

/* Rules list */
.rules-list {
  padding: 20px 20px 20px 36px;
  list-style: decimal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-list li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.rules-list strong {
  color: var(--blue);
}

/* Graphics row */
.panel-graphics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 20px 20px;
  border-top: 1px solid #e8e8e8;
}

/* Indian flag icon */
.flag-icon {
  width: 56px;
  height: 36px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.flag-icon__stripe { height: 33.33%; }
.flag-icon__stripe--saffron { background: #ff9933; }
.flag-icon__stripe--white {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flag-icon__stripe--green { background: #138808; }

.flag-icon__chakra {
  display: block;
  width: 10px;
  height: 10px;
  border: 1.5px solid #000080;
  border-radius: 50%;
}

/* Clock + coins */
.clock-icon {
  position: relative;
  width: 64px;
  height: 64px;
}

.clock-icon__face {
  width: 52px;
  height: 52px;
  background: #fff8e7;
  border: 3px solid var(--gold-dark);
  border-radius: 50%;
  position: relative;
  margin: 6px auto 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.clock-icon__hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  background: var(--maroon);
  border-radius: 2px;
}

.clock-icon__hand--hour {
  width: 3px;
  height: 14px;
  transform: translateX(-50%) rotate(30deg);
}

.clock-icon__hand--min {
  width: 2px;
  height: 18px;
  transform: translateX(-50%) rotate(100deg);
}

.coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, var(--gold-glow), var(--gold-dark));
  color: var(--maroon-deep);
  font-weight: 800;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.coin--sm {
  width: 22px;
  height: 22px;
  font-size: 0.65rem;
  position: absolute;
}

.coin--sm:nth-of-type(1) { top: 0; left: -4px; }
.coin--r { top: 40px; right: -6px; }
.coin--b { bottom: -4px; left: 20px; }

.coin--lg {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

/* Bonus / lottery boxes */
.bonus-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--maroon-deep);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.bonus-box strong { color: var(--gold-glow); }

.bonus-box--milestones ul {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bonus-box--milestones li::before {
  content: '★ ';
  color: var(--gold);
}

/* ── Earnings table ───────────────────────────────────────── */
.panel-card--table {
  padding: 0;
}

.table-wrap {
  overflow-x: auto;
}

.earnings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.earnings-table thead th {
  background: var(--blue);
  color: var(--white);
  padding: 10px 12px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--blue-light);
}

.earnings-table tbody td {
  padding: 7px 12px;
  text-align: center;
  border: 1px solid #d0d8e8;
  color: var(--text);
}

.earnings-table tbody tr:nth-child(even) td:not(.group-total) {
  background: #f0f4ff;
}

.earnings-table tbody tr:hover td:not(.group-total) {
  background: #e8eeff;
}

.earnings-table .group-total {
  background: #dce8ff !important;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.95rem;
  vertical-align: middle;
  border-left: 2px solid var(--blue);
}

/* ── Summary strip ────────────────────────────────────────── */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.summary-item {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(232, 185, 35, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.summary-item__label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.summary-item__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-glow);
}

/* ── AdSense ──────────────────────────────────────────────── */
.ads-section {
  padding: 24px 0;
}

.adsense-unit {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(232,185,35,0.4);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  min-height: 90px;
}

.adsense-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ── Contact section ──────────────────────────────────────── */
.contact-section {
  padding: 40px 0 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-info p {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.contact-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-perks li {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}

.contact-perks li::before {
  content: '₹';
  position: absolute;
  left: 0;
  color: var(--gold-glow);
  font-weight: 800;
}

/* Form */
.form {
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.form__group { margin-bottom: 16px; }

.form__group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--blue);
}

.form__group label span { color: var(--maroon); }

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #c8d4e8;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: #f8faff;
  outline: none;
  transition: border-color 0.2s;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.form__group textarea { resize: vertical; min-height: 80px; }

.form__status {
  margin-top: 12px;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}

.form__status--success { color: #15803d; }
.form__status--error { color: var(--maroon); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 63, 168, 0.4);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 63, 168, 0.5);
}

.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid #d0d8e8;
}

.btn--ghost:hover { background: #f0f4ff; }

.btn--full { width: 100%; }

.btn__loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 24px 0;
  border-top: 2px solid rgba(232, 185, 35, 0.25);
  text-align: center;
}

.footer__inner p {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}

.footer__note {
  margin-top: 4px;
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.5) !important;
}

/* ── Site lock (location required) ───────────────────────── */
body.site-locked {
  overflow: hidden;
}

body.site-locked .site-content {
  display: none !important;
}

.site-content[hidden] {
  display: none !important;
}

.modal__alert {
  background: #fef2f2;
  border: 2px solid #dc2626;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.45;
  text-align: left;
}

/* ── Location modal ───────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none !important; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal__icon {
  width: 60px;
  height: 60px;
  background: rgba(26, 63, 168, 0.1);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.modal__card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}

.modal__card > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}

.modal__note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .board-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .summary-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .nav { display: none; }
  .summary-strip { grid-template-columns: 1fr; }
  .modal__actions { flex-direction: column; }
  .bonus-box { flex-direction: column; text-align: center; }
  .panel-graphics { flex-direction: column; gap: 20px; }
}
