/* =========================================================================
   HAFELE "5TH IS OUR SHAGUN" — CAMPAIGN MICROSITE
   Shared stylesheet for index.html / invoice.html / thankyou.html
   Mobile-first. Desktop is intentionally blocked (see #desktopBlocker).
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --maroon: #7d0e1f;
  --maroon-dark: #550815;
  --gold: #c9962f;
  --gold-light: #eecb84;
  --gold-deep: #a97a1e;
  --cream: #fdf8ef;
  --cream-deep: #f7efe0;
  --ink: #2b1c12;
  --ink-soft: #6b5c4d;
  --white: #ffffff;
  --success: #1f8a4c;
  --error: #c62828;
  --info: #2f6fa3;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(122, 68, 15, 0.14), 0 2px 8px rgba(122, 68, 15, 0.08);
  --shadow-btn: 0 8px 20px rgba(125, 14, 31, 0.35);
  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
body { width: 100%; height: 100vh; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; color: var(--maroon); }
p { margin: 0; }
button { font-family: var(--font-body); }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: var(--font-body); }

/* ---------- 2. App shell / layout constraint ----------------------------- */
#appRoot {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  background-image: url("../images/campaign-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.banner-img {
  width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/*
 * The HTML keeps these elements for compatibility, but they must not create
 * another vertical image/header. The background belongs only to #appRoot.
 */
.bg-window {
  width: 100%;
  display: block;
  background-image: url("../images/campaign-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #fdf8ef;
}

.bg-window--header {
  display: none;
}

.bg-window--footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  min-height: 90px;
  background-position: bottom center;
  background-size: cover;
}

/*
 * FORM POSITION
 *
 * The source artwork is 552 x 1200. At mobile width the large blank area
 * starts below the Shagun artwork. 140px puts the progress/card into that
 * blank area while keeping the appliance + Powered by Buyerr artwork below.
 *
 * This is the ONLY vertical offset used for the form.
 */
.content-section {
  position: absolute;
  top: 25%;
  right: 0;
  bottom: 25%;
  left: 0;
  z-index: 1;
  padding: 10px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: transparent;
}

.content-section::-webkit-scrollbar { width: 5px; }
.content-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}
.content-section::-webkit-scrollbar-thumb {
  background: rgba(125, 14, 31, 0.48);
  border-radius: 999px;
}
.content-section {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 14, 31, 0.48) rgba(255, 255, 255, 0.34);
}

/* subtle festive watermark pattern behind the form */
.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 150, 47, 0.10) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.6;
}

.content-section > * { position: relative; z-index: 1; }

/* ---------- 3. Progress steps -------------------------------------------- */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 18px;
}
.progress-steps__step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}
.progress-steps__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  background: var(--white);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.progress-steps__step.is-active .progress-steps__dot {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  border-color: var(--maroon);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(125, 14, 31, 0.12);
}
.progress-steps__step.is-done .progress-steps__dot {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: var(--gold-deep);
  color: var(--white);
}
.progress-steps__line {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-light);
  position: relative;
  overflow: hidden;
}
.progress-steps__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--maroon));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.progress-steps__line.is-filled::after { transform: scaleX(1); }

/* decorative floating sparkles scattered over the top of the content area */
.sparkle { position: absolute; z-index: 0; pointer-events: none; }
.sparkle--1 { top: 6px; left: 14%; }
.sparkle--2 { top: 46px; right: 10%; }
.sparkle--3 { top: 4px; right: 30%; }

/* ---------- 4. Card / form ------------------------------------------------ */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(67, 28, 19, 0.12), 0 6px 16px rgba(125, 14, 31, 0.08);
  padding: 22px 18px 24px;
  border: 1px solid rgba(201, 150, 47, 0.3);
  animation: cardIn 0.5s ease both;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.card--register {
  margin: 2px auto 0;
  padding: 16px 14px 18px;
  max-width: 360px;
}
.card--register .card__title { font-size: 18px; }
.card--register .card__subtitle { font-size: 11.5px; margin-bottom: 12px; }
.card--register .field { margin-bottom: 10px; }
.card--register .field__label { font-size: 11.5px; margin-bottom: 4px; }
.card--register .field__control { padding: 10px 12px; font-size: 14px; }
.card--register .field__hint,
.card--register .field__error { font-size: 10.5px; }
.card--register .field__error { min-height: 10px; margin-top: 3px; }
.card--register .field--checkbox { margin-top: 2px; margin-bottom: 8px; }
.card--register .field--checkbox label { font-size: 11.5px; line-height: 1.35; }
.card--register .field--checkbox input[type="checkbox"] { width: 18px; height: 18px; }
.card--register .btn { padding: 12px 16px; font-size: 14px; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* small gold corner flourishes on the card, purely decorative */
.card__flourish {
  position: absolute;
  top: 0;
  width: 46px;
  height: 46px;
  pointer-events: none;
  opacity: 0.55;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: radial-gradient(circle at 0 0, transparent 0 65%, rgba(201,150,47,0.35) 66% 70%, transparent 71%),
                     radial-gradient(circle at 0 0, transparent 0 45%, rgba(201,150,47,0.28) 46% 50%, transparent 51%);
}
.card__flourish--left { left: 0; }
.card__flourish--right { right: 0; transform: scaleX(-1); }

/* Grid overlap keeps both panels stacked in the same cell (sized to the
   tallest one) so switching between them never collapses/expands the card
   height mid-animation — eliminates the visible "page break" jump. */
.card__viewport {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: start;
}
.card__panel {
  grid-area: 1 / 1;
  width: 100%;
}
.card__panel.is-hidden {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
.otp-inline {
  margin: -2px 0 12px;
  padding: 10px 10px 8px;
  border: 1px solid rgba(201, 150, 47, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 240, 0.8);
}

/* Slide transitions between the form and OTP panels */
@keyframes panelExitLeft { to { opacity: 0; transform: translateX(-26px); } }
@keyframes panelExitRight { to { opacity: 0; transform: translateX(26px); } }
@keyframes panelEnterRight { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes panelEnterLeft { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
.panel-exit-left { animation: panelExitLeft 0.26s ease both; }
.panel-exit-right { animation: panelExitRight 0.26s ease both; }
.panel-enter-right { animation: panelEnterRight 0.32s ease both; }
.panel-enter-left { animation: panelEnterLeft 0.32s ease both; }

.card__title {
  font-size: 19px;
  text-align: center;
  margin-bottom: 4px;
}
.card__subtitle {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
  margin-bottom: 18px;
}

.field { margin-bottom: 16px; position: relative; }
.field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.field__label .req { color: var(--maroon); }

.field__control {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e7dcc7;
  background: #fffdf9;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field__control:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 150, 47, 0.18);
}
.field__control:disabled {
  color: var(--ink-soft);
  background: #f1ecdf;
  border-color: #ddd1bb;
  opacity: 1;
  cursor: not-allowed;
}
select.field__control {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%237d0e1f' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.field__hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
.field__error {
  font-size: 11.5px;
  color: var(--error);
  margin-top: 5px;
  min-height: 14px;
  font-weight: 500;
}
.field--error .field__control { border-color: var(--error); background: #fff6f6; }

.field--upi { display: flex; align-items: center; gap: 8px; }
.field--upi .field__control { flex: 1; }
.upi-check-icon {
  width: 22px; height: 22px; flex: none;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 13px;
}
.upi-check-icon.is-visible { display: flex; }

.shake { animation: shakeX 0.4s ease; }
@keyframes shakeX {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* checkbox */
.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}
.field--checkbox input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin-top: 1px;
  accent-color: var(--maroon);
}
.field--checkbox label { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.field--checkbox a { color: var(--maroon); font-weight: 600; text-decoration: underline; }

/* ---------- 5. OTP boxes --------------------------------------------------- */
.otp-wrap {
  margin-top: 4px;
  text-align: center;
}
.otp-inline .otp-wrap { margin-top: 0; }
.otp-wrap__icon {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(169, 122, 30, 0.3);
  animation: popIn 0.45s cubic-bezier(.34,1.56,.64,1) both;
}
.otp-wrap__title { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; text-align: center; }
.otp-wrap__title strong { color: var(--ink); }
.otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}
.otp-inline .otp-boxes { justify-content: flex-start; }
.otp-boxes input {
  width: 42px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e7dcc7;
  background: #fffdf9;
  color: var(--maroon);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.otp-boxes input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(201, 150, 47, 0.22);
  transform: translateY(-2px);
}
.otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.otp-resend {
  background: none; border: none; padding: 0;
  color: var(--maroon);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}
.otp-resend:disabled { color: #bda88a; cursor: not-allowed; }

/* ---------- 6. Buttons ----------------------------------------------------- */
.btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -60%; }
  50% { left: 130%; }
  100% { left: 130%; }
}
.btn-primary:disabled {
  background: #d8c8ae;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.8;
}
.btn-primary:disabled::after { display: none; }

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

.btn-row { margin-top: 8px; }

/* ---------- 7. Toasts -------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 28px);
  max-width: 452px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-left: 4px solid var(--error);
}
.toast--in { opacity: 1; transform: translateY(0); }
.toast--out { opacity: 0; transform: translateY(-10px); }
.toast--success { border-left-color: var(--success); }
.toast--info { border-left-color: var(--info); }
.toast__icon {
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--error);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.toast--success .toast__icon { background: var(--success); }
.toast--info .toast__icon { background: var(--info); }

/* ---------- 8. Loader overlay ------------------------------------------- */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 248, 239, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.loader-overlay.is-visible { opacity: 1; visibility: visible; }
.loader__diya { position: relative; width: 54px; height: 54px; }
.loader__spinner {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 4px solid var(--gold-light);
  border-top-color: var(--maroon);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader__text {
  font-size: 13.5px;
  color: var(--maroon);
  font-weight: 600;
  text-align: center;
  padding: 0 30px;
  animation: pulseText 1.6s ease-in-out infinite;
}
@keyframes pulseText { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ---------- 9. Fade / slide page transitions ----------------------------- */
.fade-slide-enter {
  animation: fadeSlideIn 0.35s ease both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.is-hidden { display: none !important; }

/* ---------- 10. Invoice capture page -------------------------------------- */
.upload-box {
  border: 2px dashed var(--gold);
  border-radius: var(--radius-md);
  background: #fffdf7;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-box.is-filled { border-style: solid; padding: 10px; }
.upload-box:active { background: #fff6e6; }
.upload-box__icon {
  width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
}
.upload-box__title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.upload-box__hint { font-size: 11.5px; color: var(--ink-soft); }
.upload-preview {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #f2ede0;
}
.upload-actions { display: flex; gap: 10px; margin-top: 10px; }
.upload-actions .btn-ghost { flex: 1; padding: 10px; font-size: 13px; }

/* ---------- 11. Thank you page -------------------------------------------- */
.success-wrap {
  text-align: center;
  padding: 16px 10px 10px;
}
.success-badge {
  position: relative;
  width: 92px; height: 92px;
  margin: 6px auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(169, 122, 30, 0.35);
  animation: popIn 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-badge svg { width: 46px; height: 46px; }
.success-badge::before {
  content: "";
  position: absolute;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.success-badge--info { background: linear-gradient(135deg, #6b93b8, var(--info)); }
.success-badge--info::before { border-color: var(--info); }
.success-title {
  font-size: clamp(26px, 6vw, 36px);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  line-height: 1.1;
  color: var(--maroon);
  text-transform: uppercase;
}
.success-msg {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  padding: 16px 14px;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(249,239,222,0.9));
  border: 1px solid rgba(201,150,47,0.35);
  box-shadow: 0 10px 24px rgba(123, 74, 18, 0.08);
}
.success-helpdesk {
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-soft);
}
.success-helpdesk a { color: var(--maroon); font-weight: 600; text-decoration: none; }

.sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
  animation: sparkleFloat 2.6s ease-in-out infinite;
}
@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-10px) scale(1.15); opacity: 1; }
}

/* ---------- 12. Desktop blocker -------------------------------------------- */
#desktopBlocker {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding: 24px;
  text-align: center;
}
#desktopBlocker.is-visible { display: flex; }
.blocker-card {
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 30px;
  border: 1px solid rgba(201, 150, 47, 0.3);
}
.blocker-card .blocker-logo {
  width: 150px;
  margin: 0 auto 22px;
  border-radius: 12px;
  overflow: hidden;
}
.blocker-card__icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px;
}
.blocker-card h2 { font-size: 20px; margin-bottom: 10px; }
.blocker-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.blocker-card .blocker-sub { margin-top: 14px; font-size: 12px; color: var(--gold-deep); font-weight: 600; }

/* ---------- 12b. Terms & Conditions modal ---------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(43, 28, 18, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.is-visible { display: flex; }
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 78vh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  animation: modalUp 0.3s ease both;
  padding-bottom: var(--safe-bottom);
}
@keyframes modalUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #f0e6d4;
}
.modal-card__header h3 { font-size: 16px; color: var(--maroon); }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.modal-card__body {
  padding: 16px 18px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}
.modal-card__body ul { padding-left: 18px; margin: 8px 0; }
.modal-card__body li { margin-bottom: 6px; }

/* ---------- 12c. Terms & Conditions — full legal content ------------------ */
.modal-card {
  /* The full legal document is long; give it more room than the old
     placeholder-text sheet while still leaving a visible sliver of the
     page behind it so it reads clearly as an overlay. */
  max-height: 88vh;
  max-height: 88dvh;
}
.tnc-content { font-size: 12.5px; line-height: 1.65; color: var(--ink); }
.tnc-content p { margin: 0 0 10px; }
.tnc-content p.tnc-updated {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--cream);
  border: 1px solid rgba(201, 150, 47, 0.35);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--maroon);
  text-align: center;
}
.tnc-content h4 {
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--gold-light);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--maroon-dark);
}
.tnc-content h4:first-of-type { margin-top: 4px; }
.tnc-content ol {
  margin: 8px 0 14px;
  padding-left: 20px;
}
.tnc-content ol[type="a"] { padding-left: 22px; }
.tnc-content li {
  margin-bottom: 9px;
  padding-left: 2px;
}
.tnc-content li::marker {
  color: var(--gold-deep);
  font-weight: 600;
}
.tnc-content strong { color: var(--maroon-dark); }
.tnc-contact {
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid rgba(201, 150, 47, 0.3);
  border-radius: var(--radius-sm);
}
.tnc-contact p {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.tnc-contact p:last-child { margin-bottom: 0; }
.tnc-contact__label {
  font-weight: 600;
  color: var(--gold-deep);
  min-width: 118px;
}
.tnc-contact a { color: var(--maroon); font-weight: 600; text-decoration: none; }
.tnc-contact a:active { opacity: 0.7; }

@media (max-width: 340px) {
  .tnc-content { font-size: 12px; }
  .tnc-contact__label { min-width: 100px; }
}

/* ---------- 13. Small screens tweak ---------------------------------------- */
@media (max-width: 340px) {
  .otp-boxes input { width: 36px; height: 46px; font-size: 18px; }
  .content-section { padding: 6px 14px 22px; }
}

/* Respect safe area on notched phones */
.content-section:last-child { padding-bottom: calc(28px + var(--safe-bottom)); }


/* ---------- Full-artwork responsive safeguards --------------------------- */

/* ---------- Full artwork + page scrolling ------------------------------- */
