/* ---------- Base / Theme ---------- */
:root {
  --bg: #0F0F12;
  --card: #16161A;
  --muted: #9AA0A6;
  --text: #ECEFF1;
  --border: #24262B;
  --ring: #F48FB1;
  --pink: #E91E63;
  --pink-600: #D81B60;
  --shadow: 0 6px 24px rgba(0, 0, 0, .25);
  --radius: 18px;
  --success: #00C853;
  --warn: #FFC107;
  --gutter: 24px;
}

@media (max-width:768px) {
  :root {
    --gutter: 18px;
  }
}

@media (max-width:560px) {
  :root {
    --gutter: 12px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0B0B0E, #13131A 120%);
}

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

/* ---------- Containers (no 100vw math = no right sliver) ---------- */
.wrap,
.site-header .wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap.narrow {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Helpers ---------- */
.section {
  padding: clamp(40px, 6vw, 64px) 0;
}

.section-alt {
  background: linear-gradient(180deg, #111114, #15161B 120%);
}

.section-head {
  margin-bottom: 18px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 28px;
}

.gap-xl {
  gap: 28px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: .875rem;
}

/* keep inner content from forcing horizontal scroll */
.card,
.wrap,
.details,
.cta-row,
.actions {
  max-width: 100%;
}

.details,
.details * {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(10, 10, 14, .6);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-top: env(safe-area-inset-top);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  height: 28px;
  width: auto;
  max-width: 200px;
}

@media (max-width: 560px) {
  .brand img {
    height: 24px;
  }
}

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

.main-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: .9;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 12px 8px;
  cursor: pointer;
  z-index: 101;
  position: relative;
  width: 48px;
  height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:active {
  opacity: 0.8;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.nav-toggle span:nth-child(2) {
  width: 20px;
  margin-left: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 24px;
  margin-left: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile nav drawer (JS toggles .show) */
@media (max-width:840px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav.show {
    display: flex;
    position: absolute;
    top: 64px;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    gap: 10px;
    background: #121216;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .main-nav.show a {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .main-nav.show a:hover {
    background: rgba(255, 255, 255, .04);
  }
}

/* ---------- Buttons ---------- */
.btn,
button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
  padding: 8px 12px;
  font-size: .9rem;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 1.05rem;
}

/* Primary buttons - solid pink with hover effect */
.btn-primary,
button.btn-primary,
.actions button.btn-primary {
  background: var(--pink);
  color: white;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.btn-primary:hover,
button.btn-primary:hover,
.actions button.btn-primary:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.35);
}

.btn-primary:active,
button.btn-primary:active,
.actions button.btn-primary:active {
  transform: translateY(0);
}

/* Ghost buttons - transparent with border */
.btn-ghost,
button.btn-ghost,
.actions button.btn-ghost {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover,
button.btn-ghost:hover,
.actions button.btn-ghost:hover {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.08);
  color: var(--text);
}

/* Disabled state */
.btn:disabled,
button:disabled,
.btn[disabled],
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ---------- Cards & Layout ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.cardish>.card {
  height: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

@media (max-width:840px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== KonfHub Embed ===== */
#konfhub-widget {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  height: clamp(520px, 100svh - 120px, 900px);
}

@supports not (height: 100svh) {
  #konfhub-widget {
    height: clamp(520px, 100vh - 120px, 900px);
  }
}



/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 72vh;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 55vh;
  }
}

.hero-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-overlay h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 0 8px;
}

.hero-overlay #editionBadge {
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.9rem;
  margin-left: 6px;
}

.lead {
  opacity: 0.9;
  max-width: 60ch;
  margin: 0 auto 18px;
}

/* generic helpers (unchanged) */
.num.rupee-lakh::before {
  content: "₹";
  margin-right: 2px;
  font-weight: 800;
}

.num.rupee-lakh::after {
  content: " Lakh";
  margin-left: 4px;
  font-weight: 700;
  opacity: 0.95;
}

.num.plus::after {
  content: "+";
  margin-left: 2px;
  font-weight: 800;
}

/* when both classes are on the same .num, show " Lakh+" */
.num.rupee-lakh.plus::after {
  content: " Lakh+";
  margin-left: 4px;
  font-weight: 700;
  opacity: 0.95;
}

.hero-overlay > img {
  width: clamp(220px, 72vw, 560px);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)) brightness(1.4);
  animation: heroFadeUp 0.6s ease both;
}

@media (max-width: 480px) {
  .hero-overlay > img {
    width: clamp(200px, 84vw, 480px);
    margin-bottom: 14px;
  }
}

/* ---------- Details ---------- */
.details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.details li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.details li span {
  color: var(--muted);
  min-width: 84px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  background: #1D1E24;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}

.badge-soft {
  background: rgba(244, 143, 177, .15);
  border-color: rgba(244, 143, 177, .35);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.stat {
  background: #1B1B21;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.stat .num {
  font-size: 1.8rem;
  font-weight: 800;
}

.stat .label {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Logo grid ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 0;
}

.logo {
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid rgba(233, 30, 99, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8E93A6;
  font-weight: 600;
  padding: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 0;
}

.logo:hover {
  border-color: var(--pink);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.2);
  transform: translateY(-4px);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 75%;
  max-height: 75%;
  flex-shrink: 0;
}
@media (max-width:980px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:560px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .logo {
    min-height: 80px;
    padding: 12px;
  }
  
  .logo img {
    max-width: 80%;
    max-height: 80%;
  }
}

/* ---------- Forms ---------- */
.form label {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}

.form-section-label {
  margin-top: 12px !important;
  margin-bottom: 4px !important;
}

.form-section-info {
  margin-top: 4px !important;
  margin-bottom: 8px !important;
}

.bulk-form-card {
  max-width: 840px;
  margin-inline: auto;
}

input,
select,
textarea {
  width: 100%;
  background: #121216;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(244, 143, 177, .2);
}

.form .actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.price-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #1B1B21;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
}

.form-msg {
  margin-top: 12px;
  min-height: 24px;
}

/* Pills (club type) */
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  opacity: .9;
  user-select: none;
  transition: background .15s, box-shadow .15s, color .15s, opacity .15s;
}

.pill:hover {
  opacity: 1;
}

/* Selected state (filled) */
.pill.is-active,
.pill[data-selected="true"] {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--pink-600));
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(233, 30, 99, .28);
  opacity: 1;
}

/* ---------- Slabs (donate) ---------- */
/* ---------- Slabs (donate) — improved ---------- */
.slab-table {
  width: 100%;
  /* better border-radius support across browsers */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  /* prevents layout jiggle */
  border-radius: 12px;
  overflow: hidden;
  /* keeps highlight inside */
  background: var(--card);
}

/* Optional caption style (if you ever add one) */
.slab-table caption {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Sticky header */
.slab-table thead th {
  color: #B8BDC9;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)), var(--card);
  backdrop-filter: saturate(120%) blur(2px);
  border-bottom: 1px solid var(--border);
}

/* Cells */
.slab-table th,
.slab-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* Lock widths + stop awkward wrapping */
.slab-table th:nth-child(1),
.slab-table td:nth-child(1) {
  width: 120px;
  white-space: nowrap;
}

.slab-table th:nth-child(2),
.slab-table td:nth-child(2) {
  width: 110px;
  white-space: nowrap;
}

.slab-table td:nth-child(3) {
  word-break: break-word;
}

/* Row backgrounds (apply to TDs so sticky TH isn’t affected) */
.slab-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .01);
}

.slab-table tbody tr:hover td {
  background: rgba(255, 255, 255, .03);
  transition: background .15s ease;
}

/* Active slab highlight */
.slab-table tbody tr.slab-hit td {
  background: rgba(233, 30, 99, .08);
  box-shadow: inset 0 0 0 2px rgba(233, 30, 99, .35);
}

.slab-table tr {
  transition: background .15s ease, box-shadow .15s ease;
}

/* Help text */
.slab-table .help {
  color: var(--muted);
  font-size: .95rem;
}

/* Small phones: tighter cells + narrower fixed cols */
@media (max-width:480px) {

  .slab-table th,
  .slab-table td {
    padding: 10px 8px;
  }

  .slab-table th:nth-child(1),
  .slab-table td:nth-child(1) {
    width: 92px;
  }

  .slab-table th:nth-child(2),
  .slab-table td:nth-child(2) {
    width: 84px;
  }

  /* allow horizontal scroll if space is too tight */
  .slab-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Motion-safe */
@media (prefers-reduced-motion: reduce) {
  .slab-table tr {
    transition: none;
  }
}



/* ---------- Sticky CTA ---------- */
.cta-sticky {
  position: sticky;
  bottom: 0;
  z-index: 40;
  backdrop-filter: blur(8px) saturate(140%);
  background: linear-gradient(90deg, rgba(13, 13, 18, .85), rgba(20, 20, 26, .85));
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  animation: fadeInUp .6s ease-out;
}

.cta-sticky .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Generic CTA row (used in hero and cards) */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 0 6px;
}

/* Hero CTA row animation */
.hero-overlay .cta-row {
  animation: heroFadeUp .7s ease-out .2s both;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-overlay .cta-row .btn {
  animation: heroFadeUp .7s ease-out .3s both;
  transition: all 0.3s ease;
  min-width: auto;
}

.hero-overlay .cta-row .btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(233, 30, 99, 0.4);
}

/* Hero CTA Emphasis - Support the Cause */
.hero-cta-emphasis {
  background: linear-gradient(135deg, #E91E63, #D81B60) !important;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.2) !important;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.hero-cta-emphasis::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: rotate(0deg) translateX(-100%);
  }
  100% {
    transform: rotate(0deg) translateX(100%);
  }
}

.hero-cta-emphasis:hover {
  background: linear-gradient(135deg, #D81B60, #C2185B) !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 12px 32px rgba(233, 30, 99, 0.6), inset 0 -2px 0 rgba(0, 0, 0, 0.3) !important;
}

.hero-cta-emphasis:active {
  transform: translateY(-1px) scale(1.05) !important;
}

/* Footer CTA row animation */
.wrap > .cta-row {
  animation: heroFadeUp .8s ease-out both;
}

.wrap > .cta-row .btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wrap > .cta-row .btn:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 16px 32px rgba(233, 30, 99, 0.45);
}

/* Sticky CTA buttons */
.cta-sticky .cta-row .btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-sticky .cta-row .btn:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 16px 32px rgba(233, 30, 99, 0.45);
}

@media (max-width:420px) {
  .cta-row .btn {
    padding: 12px 16px;
    font-size: .95rem;
  }
}

/* CTA rows inside cards — prevent bleed */
.card .actions,
.card .cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 14px;
}

.card .actions .btn,
.card .cta-row .btn {
  flex: 1 1 160px;
  max-width: 100%;
}

@media (max-width:420px) {

  .card .actions .btn,
  .card .cta-row .btn {
    flex-basis: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #0E0F13;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}

.footer-cols a {
  display: block;
  color: var(--text);
  opacity: .85;
  text-decoration: none;
  margin: 6px 0;
}

.footer-cols a:hover {
  opacity: 1;
}

@media (max-width:840px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- Preloader / Skeleton ---------- */
#app-preloader {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, .6);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 90;
}

#app-preloader.active {
  display: grid;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

/* ---------- Success ---------- */
.success-card {
  padding: 36px;
}

.checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 1.8rem;
  color: #8BC34A;
}

/* Overlay loader (JS-controlled) */
.loader-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  z-index: 9999;
}

.loader-overlay[aria-busy="true"] {
  display: flex;
}

/* ---------- Misc UX ---------- */
.btn:disabled,
.btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
  filter: grayscale(.1);
}

/* Better number inputs on mobile */
input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hero entrance */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* -------- CONTAINERS (replace your current .wrap rules) -------- */
:root {
  --gutter: 24px;
}

@media (max-width:768px) {
  :root {
    --gutter: 18px;
  }
}

@media (max-width:560px) {
  :root {
    --gutter: 12px;
  }
}

/* Never use 100vw here; it causes right-edge clipping on mobile */
.wrap,
.site-header .wrap {
  max-width: 1100px;
  /* page max */
  width: 100%;
  /* fill viewport safely */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Narrow container version */
.wrap.narrow {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Prevent any child from forcing horizontal overflow */
.wrap>* {
  min-width: 0;
}

/* Global safety: no horizontal scrollbars and no accidental overflow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* -------- CARD (add these to your existing .card) -------- */
.card {
  max-inline-size: 100%;
  /* never exceed container */
  overflow-wrap: anywhere;
  /* long strings won’t push width */
}

/* -------- STATS GRID (replace the .stats/.stat grid rules) -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* shrinkable columns */
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 680px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.stat {
  background: #1B1B21;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  min-width: 0;
  /* allow content to wrap inside */
}

/* -------- CAROUSEL SAFETY (keeps hero from widening the page) -------- */
.hero,


/* 80G notice */
.note80g {
  margin: 6px 0 10px;
  padding: 10px 12px;
  background: rgba(244, 143, 177, .10);
  border: 1px solid rgba(244, 143, 177, .25);
  border-radius: 12px;
  line-height: 1.4;
}

.note80g a {
  color: #fff;
  text-decoration: underline;
}

/* Quick-amount chips */
/* Donation quick-pick chips */
.donate-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #121216;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
}

.chip:hover {
  border-color: #fff;
}

.chip[data-active="true"] {
  background: linear-gradient(90deg, var(--pink), var(--pink-600));
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(233, 30, 99, .28);
}


.chip[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--pink-600));
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(233, 30, 99, .28);
}

/* Tighten the amount input a bit under chips on small screens */
@media (max-width:480px) {
  #donor_amount {
    margin-top: 2px;
  }
}

.help-inline {
  margin: 2px 0 8px;
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width:480px) {
  .help-inline {
    margin-bottom: 6px;
  }
}

/* --- Sticky Issuance toolbar --- */
/* ===== Ops-only small helpers ===== */
.input-like {
  background: #121216;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  min-width: 220px;
}

.input-like:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(244, 143, 177, .2);
}

.kpi-num {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

/* status pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid transparent;
  opacity: .95;
}

.pill-badge.ok {
  background: rgba(76, 175, 80, .12);
  border-color: rgba(76, 175, 80, .35);
  color: #A5D6A7;
}

.pill-badge.partial {
  background: rgba(255, 193, 7, .12);
  border-color: rgba(255, 193, 7, .35);
  color: #FFE082;
}

.pill-badge.failed {
  background: rgba(244, 67, 54, .12);
  border-color: rgba(244, 67, 54, .35);
  color: #EF9A9A;
}

.pill-badge.pending {
  background: rgba(158, 158, 158, .12);
  border-color: rgba(158, 158, 158, .35);
  color: #CFD8DC;
}

/* simple table polish (if not already present) */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  background: #15161A;
  border: 1px solid var(--border);
}

.table thead th {
  background: #111216;
  color: #B8BDC9;
}

.table tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.table tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.ops-toolbar {
  position: sticky;
  top: 64px;
  /* just below the header */
  z-index: 45;
  background: rgba(14, 15, 19, .78);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.ops-toolbar .wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-block: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Status pill badges (shared) --- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1B1B21;
  color: #ECEFF1;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  text-decoration: none;
}

.pill-badge span {
  font-variant-numeric: tabular-nums;
}

/* colors per state */
.pill-badge.ok {
  color: #00C853;
  background: rgba(0, 200, 83, .14);
  border-color: rgba(0, 200, 83, .25);
}

.pill-badge.partial {
  color: #FFC107;
  background: rgba(255, 193, 7, .14);
  border-color: rgba(255, 193, 7, .25);
}

.pill-badge.failed {
  color: #EF5350;
  background: rgba(244, 67, 54, .14);
  border-color: rgba(244, 67, 54, .25);
}

.pill-badge.pending {
  color: #BDBDBD;
  background: rgba(158, 158, 158, .14);
  border-color: rgba(158, 158, 158, .25);
}

/* --- Issuance KPI card layout --- */
.kpi-issuance .iss-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.kpi-issuance .iss-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #1B1B21;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
}

.kpi-issuance .iss-list strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* responsive wrapping for small screens */
@media (max-width: 820px) {
  .kpi-issuance .iss-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .kpi-issuance .iss-list {
    grid-template-columns: 1fr;
  }
}
/* Fix: ops header buttons wrapping ("Sa\nve", "Ref\nesh") */
.page-ops .card-head .btn{
  display: inline-flex;         /* ensure content sizes the button */
  align-items: center;
  justify-content: center;
  height: auto;                 /* kill any inherited fixed height */
  width: auto;                  /* let content decide width */
  min-height: 40px;             /* nice touch target */
  padding: 10px 16px;           /* standard pill spacing */
  white-space: nowrap;          /* never wrap label */
}

/* make the input not hog space so buttons don’t get squeezed */
.page-ops .card-head .input-like{
  min-width: 200px;
  max-width: 320px;
}

/* small screens: stack neatly */
@media (max-width: 520px){
  .page-ops .card-head{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .page-ops .card-head > div:last-child{
    display: flex;
    gap: 8px;
  }
  .page-ops .card-head .input-like{
    flex: 1;
    min-width: 0;
    width: 100%;
  }
}

/* ========== DONATION PAGE STYLES ========== */

.donate-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.08) 0%, rgba(233, 30, 99, 0.04) 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}

.donate-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.donate-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}

.pdf-download {
  margin-top: 1.5rem;
}

.pdf-download a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  background: var(--pink);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

.pdf-download a:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.25);
}

.pdf-download a:active {
  transform: translateY(0);
}

.donate-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 1rem 0;
  justify-content: flex-start;
}

.donate-chips .chip {
  padding: 10px 16px;
  background: rgba(233, 30, 99, 0.1);
  border: 2px solid transparent;
  border-radius: 24px;
  color: #ddd;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.donate-chips .chip:hover {
  background: rgba(233, 30, 99, 0.2);
  border-color: #E91E63;
  transform: translateY(-2px);
}

.donate-chips .chip.active {
  background: #E91E63;
  border-color: #E91E63;
  color: white;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* Fallback for old button styling */
.donate-chips button {
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: rgba(233, 30, 99, 0.1);
  color: #ddd;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  white-space: nowrap;
}

.donate-chips button:hover {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.2);
  transform: translateY(-2px);
}

.donate-chips button.active,
.donate-chips button.selected {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* Form inputs enhancement */
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"] {
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  padding: 0.85rem;
  font-size: 1rem;
  border-radius: 8px;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.05);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
  outline: none;
}

.help-inline {
  background: rgba(233, 30, 99, 0.08);
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
  margin: 1rem 0;
  border-left: 4px solid var(--pink);
}

.help-inline strong {
  color: var(--pink);
  font-weight: 700;
}

/* Slab table enhancement */
.slab-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.slab-table thead {
  background: rgba(233, 30, 99, 0.08);
}

.slab-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--pink);
  border-bottom: 2px solid var(--border);
}

.slab-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.slab-table td:first-child {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pink);
  min-width: 100px;
}

.slab-table td strong {
  display: block;
  color: var(--pink);
  font-weight: 700;
  font-size: 1.1rem;
}

.slab-table tr:hover {
  background: rgba(233, 30, 99, 0.04);
  transition: background 0.2s ease;
}

.slab-table td.help {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Tier Badges (compact tier display) */
.tier-badges {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tier-badge {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1.5px solid #333333;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.tier-badge:hover {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-color: var(--pink);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.25);
  transform: translateY(-2px);
}

.tier-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.3rem;
  letter-spacing: 0.3px;
}

.tier-details {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

/* Actions button styling */
.actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.actions button {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

/* Form inputs and actions layout */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.actions,
form .actions {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.actions button,
form .actions button {
  flex: 1;
  min-width: 140px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .actions,
  form .actions {
    flex-direction: column;
  }
  
  .actions button,
  form .actions button {
    width: 100%;
  }
}

.in-kind-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.in-kind-actions a,
.in-kind-actions button {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  width: 100%;
}

/* Note styling (80G, Important messages, etc.) */
.note80g {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.12) 100%);
  border: 2px solid rgba(255, 193, 7, 0.6);
  border-left: 6px solid #FFC107;
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
  color: var(--text);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.note80g strong {
  color: #FFC107;
  font-weight: 700;
  font-size: 1.05rem;
}

.note80g .contact-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.note80g .contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.note80g .contact-btn.whatsapp {
  background: #25D366;
  color: white;
}

.note80g .contact-btn.whatsapp:hover {
  background: #1fa853;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
}

.note80g .contact-btn.whatsapp:active {
  transform: translateY(0);
}

.note80g .contact-btn.call {
  background: var(--pink);
  color: white;
}

.note80g .contact-btn.call:hover {
  background: #c2185b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.5);
}

.note80g .contact-btn.call:active {
  transform: translateY(0);
}

.note80g a:not(.contact-btn) {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--pink);
}

.note80g a:not(.contact-btn):hover {
  opacity: 0.8;
}

/* Grid responsiveness for donation page */
@media (max-width: 768px) {
  .grid-2.cardish {
    grid-template-columns: 1fr;
  }

  .donate-hero h1 {
    font-size: 2rem;
  }

  .donate-chips {
    justify-content: flex-start;
  }

  .donate-chips button {
    flex: 1;
    min-width: 80px;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
  }

  .slab-table {
    font-size: 0.85rem;
  }

  .slab-table th,
  .slab-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* ========== BULK REGISTRATION PAGE STYLES ========== */

.bulk-hero {
  text-align: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.08) 0%, rgba(233, 30, 99, 0.04) 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}

.bulk-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.bulk-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 55ch;
  margin: 0 auto;
}

/* Pill styling for club type */
.pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.pills .pill {
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  flex: 1;
  min-width: 120px;
}

.pills .pill:hover {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
}

.pills .pill[data-selected="true"],
.pills .pill.is-active {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.25);
}

/* Quantity controls */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.qty-control button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-control button:hover {
  border-color: var(--pink);
  background: rgba(233, 30, 99, 0.1);
  transform: scale(1.05);
}

.qty-control button:active {
  transform: scale(0.95);
}

.qty-control input {
  max-width: 100px;
  text-align: center;
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Info messages */
.form-msg {
  padding: 0.75rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  background: rgba(233, 30, 99, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  border-left: 4px solid var(--pink);
}

.form-msg strong {
  color: var(--pink);
  font-weight: 700;
}

.form-msg.tiny {
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0.5rem 0;
}

/* Responsive design for bulk page */
@media (max-width: 768px) {
  .bulk-hero h1 {
    font-size: 1.8rem;
  }

  .pills {
    flex-direction: column;
  }

  .pills .pill {
    width: 100%;
  }

  .qty-control {
    justify-content: center;
  }

  .actions,
  .bulk-form .actions {
    flex-direction: column;
  }

  .actions button,
  .bulk-form .actions button {
    width: 100%;
  }

  /* Already defined globally, but re-stating for mobile */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"] {
    font-size: 16px;
  }
}

/* ========== PHASE 2: UI/UX IMPROVEMENTS ========== */

/* Form Validation Feedback */
.form-group {
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
}

.form-group label .required {
  color: var(--warn);
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
  background: rgba(233, 30, 99, 0.02);
}

.form-group input:valid {
  border-color: var(--success);
  background: rgba(0, 200, 83, 0.03);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--warn);
  background: rgba(255, 193, 7, 0.03);
}

/* Validation Messages */
.validation-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-group input:invalid:not(:placeholder-shown) ~ .validation-feedback.error {
  opacity: 1;
  color: var(--warn);
}

.form-group input:valid ~ .validation-feedback.success {
  opacity: 1;
  color: var(--success);
}

.validation-feedback::before {
  content: '⚠️';
}

.validation-feedback.success::before {
  content: '✓';
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 320px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: var(--success);
  color: var(--success);
  background: rgba(0, 200, 83, 0.08);
}

.toast.error {
  border-color: var(--warn);
  color: var(--warn);
  background: rgba(255, 193, 7, 0.08);
}

.toast.info {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(233, 30, 99, 0.08);
}

/* Progress Indicator */
.progress-container {
  margin-bottom: 32px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.progress-steps .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.progress-steps .step.active {
  opacity: 1;
}

.progress-steps .step.completed {
  opacity: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.progress-steps .step.active .step-number {
  background: var(--pink);
  color: white;
  box-shadow: 0 0 0 8px rgba(233, 30, 99, 0.1);
}

.progress-steps .step.completed .step-number {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.progress-steps .step.active .step-label {
  color: var(--text);
  font-weight: 600;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-600));
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Success Page Enhancements */
.success-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 16px;
  animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.booking-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.booking-card:hover {
  border-color: var(--pink);
  box-shadow: 0 0 0 8px rgba(233, 30, 99, 0.05);
}

.booking-card .label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.booking-id code {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink);
  font-family: 'Monaco', 'Courier New', monospace;
  word-break: break-all;
}

.btn-copy {
  padding: 8px 16px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--pink-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-copy.copied {
  background: var(--success);
}

.help-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Order Summary */
.order-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.order-summary h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row strong {
  color: var(--pink);
  font-weight: 700;
}

/* Error Page Styling */
.error-container {
  text-align: center;
  padding: 40px 20px;
}

.error-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.error-details {
  background: var(--card);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  text-align: left;
}

.error-message {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.error-code {
  color: var(--muted);
  font-family: monospace;
}

.recovery-options {
  margin-top: 32px;
  text-align: left;
}

.recovery-options > div {
  display: none;
}

.recovery-options > div.active {
  display: block;
  animation: slideIn 0.3s ease;
}

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

/* Mobile Menu Improvements */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 64px;
}

.mobile-menu.hidden {
  display: none;
}

.menu-content {
  flex: 1;
  padding: 24px 0;
}

.menu-group {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.menu-group h3 {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}

.menu-group a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-group a:hover {
  color: var(--pink);
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Breadcrumb Navigation */
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.breadcrumbs ol {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li::after {
  content: ' / ';
  margin: 0 4px;
  color: var(--muted);
}

.breadcrumbs li:last-child::after {
  content: '';
  margin: 0;
}

.breadcrumbs a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--pink-600);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 48px;
    font-size: 16px;
  }

  .btn {
    min-height: 48px;
    font-size: 1rem;
  }

  .btn.btn-primary {
    min-height: 56px;
  }

  .progress-steps {
    gap: 8px;
  }

  .step-label {
    display: none;
  }

  .toast {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .booking-card {
    padding: 16px;
  }

  .error-details {
    text-align: center;
  }
}

/* Accessibility improvements */
*:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

@media (prefers-contrast: more) {
  *:focus-visible {
    outline: 3px solid var(--pink);
  }

  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: 3px solid var(--pink);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
