:root {
  --maroon: #6b0f1a;
  --maroon-dark: #4a0a12;
  --saffron: #ff9933;
  --saffron-light: #ffb35c;
  --gold: #d4af37;
  --gold-light: #f5e5b8;
  --cream: #fff8ec;
  --text-dark: #2b1a12;
  --green-ok: #1e8449;
  --amber-wait: #b9770e;
  --shadow: 0 8px 24px rgba(107, 15, 26, 0.15);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans Kannada', Tahoma, sans-serif;
  background: linear-gradient(180deg, var(--cream) 0%, #fdeedd 100%);
  color: var(--text-dark);
  min-height: 100vh;
  padding-bottom: 40px;
}

.top-bar {
  background: linear-gradient(90deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}

.top-bar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-bar .brand .om {
  font-size: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.top-bar .brand-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar .brand-text small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  opacity: 0.85;
}

.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.15);
  border-radius: 30px;
  padding: 3px;
  flex-shrink: 0;
  border: 1px solid var(--gold);
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.lang-toggle button.active {
  background: var(--gold);
  color: var(--maroon-dark);
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
  border-top: 5px solid var(--saffron);
  margin-bottom: 22px;
}

.hero-card h1 {
  font-size: 20px;
  color: var(--maroon);
  margin: 6px 0 4px;
}

.hero-card p {
  color: #6b4a3a;
  font-size: 14.5px;
  margin: 0;
}

.deity-strip {
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--saffron);
  margin-bottom: 6px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .option-grid { grid-template-columns: 1fr; }
}

.option-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.option-card:active { transform: scale(0.98); }

.option-card.donation { border-color: var(--gold); }
.option-card.pooja { border-color: var(--saffron); }

.option-card .icon {
  font-size: 38px;
  margin-bottom: 8px;
  display: block;
}

.option-card h3 {
  margin: 4px 0 6px;
  font-size: 16.5px;
  color: var(--maroon);
}

.option-card p {
  font-size: 12.5px;
  color: #7a5a48;
  margin: 0;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.card h2 {
  color: var(--maroon);
  font-size: 18px;
  margin-top: 0;
  border-bottom: 2px dashed var(--gold-light);
  padding-bottom: 10px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  margin: 14px 0 6px;
  color: var(--maroon-dark);
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #e6cba8;
  border-radius: 10px;
  font-size: 15px;
  background: #fffdf9;
  color: var(--text-dark);
}

textarea { min-height: 70px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,153,51,0.18);
}

.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 18px;
  text-decoration: none;
  transition: 0.15s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--saffron), var(--saffron-light));
  color: #fff;
}
.btn-primary:active { transform: scale(0.98); }

.btn-maroon {
  background: var(--maroon);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--maroon);
  color: var(--maroon);
}

.btn-sm { width: auto; padding: 8px 14px; font-size: 13px; margin-top: 0; }

.qr-box {
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px dashed var(--gold);
}

.qr-box img {
  width: 220px;
  height: 220px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow);
}

.amount-pill {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0;
}

.upi-id-box {
  font-family: monospace;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
  font-size: 13.5px;
  margin-top: 6px;
  word-break: break-all;
}

.ref-code {
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 1px;
}

.steps {
  text-align: left;
  font-size: 13.5px;
  color: #5c4433;
  margin-top: 14px;
  padding-left: 20px;
}
.steps li { margin-bottom: 6px; }

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #e6b0aa; }
.alert-success { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }
.alert-info { background: #fff8e1; color: #8a6d3b; border: 1px solid #f0d9a0; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pending { background: #fdecea; color: #c0392b; }
.status-uploaded { background: #fff3cd; color: var(--amber-wait); }
.status-confirmed { background: #eafaf1; color: var(--green-ok); }
.status-rejected { background: #f4e4e1; color: #922b21; }

footer.site-footer {
  text-align: center;
  font-size: 12px;
  color: #8a6d5c;
  margin-top: 26px;
  padding: 0 16px;
}

.thankyou-icon { font-size: 56px; color: var(--gold); }

a.link-muted { color: var(--maroon); font-weight: 600; text-decoration: none; }
a.link-muted:hover { text-decoration: underline; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-muted { font-size: 12.5px; color: #8a6d5c; }

/* ---------------- Photo Gallery ---------------- */
.gallery-section {
  margin-bottom: 22px;
}

.gallery-section h2 {
  color: var(--maroon);
  font-size: 17px;
  margin: 0 0 4px;
  text-align: center;
}

.gallery-section .gallery-sub {
  text-align: center;
  font-size: 12.5px;
  color: #8a6d5c;
  margin: 0 0 14px;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
}

.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }

.gallery-item {
  flex: 0 0 auto;
  width: 74%;
  max-width: 300px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  outline: 2px solid var(--gold-light);
  position: relative;
  cursor: pointer;
  background: #000;
}

@media (min-width: 640px) {
  .gallery-item { width: 46%; }
}

.gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.gallery-item:active img { transform: scale(1.04); }

.gallery-item .zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(107,15,26,0.75);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
}

.gallery-dots {
  text-align: center;
  font-size: 11.5px;
  color: #a9876f;
  margin-top: -6px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 5, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255, 191, 90, 0.25);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--gold);
  color: var(--maroon-dark);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
