/* ============================================================================
   Nikah Companion — shared styles
   Theme: Midnight Garden · deep plum · blush · saffron · antique gold · ivory
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;1,6..96,400&family=Jost:wght@300;400;500&family=Noto+Naskh+Arabic:wght@400;500;700&family=Noto+Nastaliq+Urdu:wght@400;500;700&family=Tangerine:wght@400;700&display=swap');

/* ---------------------------------------------------------------------------
   Reset / base
--------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Midnight Garden palette ──────────────────────────────────────────── */
  --bg:         #1f1120;
  --plum:       #301a2c;
  --plum-2:     #4a2a3d;
  --blush:      #e7bdae;
  --saffron:    #d59a52;
  --gold:       #c6a164;
  --gold-lt:    #e0c489;
  --ivory:      #f4e9db;
  --ink-soft:   #c9a6ac;

  /* ── Legacy token aliases (keep existing component styles compiling) ─── */
  --cream:      var(--plum);
  --cream-dark: var(--plum-2);
  --gold-dark:  var(--gold);
  --text:       var(--ivory);
  --text-light: var(--ink-soft);
  --border:     rgba(198, 161, 100, 0.28);
  --shadow:     0 2px 16px rgba(0,0,0,0.45);
  --radius:     10px;

  /* ── Typography ──────────────────────────────────────────────────────── */
  --serif:        'Bodoni Moda', serif;
  --label:        'Jost', sans-serif;
  --urdu-display: 'Noto Nastaliq Urdu', serif;
  --urdu-body:    'Noto Naskh Arabic', serif;

  /* ── SVG grain overlay ───────────────────────────────────────────────── */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* ── Senior Mode scale multiplier ───────────────────────────────────── */
  --scale: 1;
}

html {
  font-family: var(--label), 'Noto Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.6;
  color-scheme: dark;
}

/* RTL: Naskh for body text (readable at small sizes), Nastaliq only on .urdu display elements */
html[dir="rtl"] {
  font-family: var(--urdu-body), var(--label), system-ui, sans-serif;
}

body { min-height: 100vh; }

/* Gold shimmer sweep — used on hero buttons and the & glyph */
@keyframes shimmer {
  0%   { background-position: -150% 0; }
  100% { background-position:  250% 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

a { color: var(--gold-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nastaliq utility — apply only to large display Urdu: names, big headings */
.urdu {
  font-family: var(--urdu-display), serif;
  font-style: normal;
  line-height: 2.2;
}

/* ---------------------------------------------------------------------------
   Navigation bar
--------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--plum);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 1rem;
}

.nav__brand {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav__guest {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-lt) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  color: #2a1018;
  font-family: var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  min-height: 48px;
}
.btn--primary:hover:not(:disabled) { opacity: 0.9; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ivory);
}
.btn--ghost:hover:not(:disabled) { background: var(--plum-2); }

.btn--danger {
  background: #e05252;
  color: #fff;
}
.btn--danger:hover:not(:disabled) { background: #c03030; }

.btn--success {
  background: #4caf7d;
  color: #fff;
}
.btn--success:hover:not(:disabled) { background: #3a9060; }

.btn--sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* Language toggle — always LTR text regardless of page direction */
#lang-toggle {
  font-family: 'Noto Naskh Arabic', 'Noto Sans', sans-serif;
  direction: ltr;
}

/* ---------------------------------------------------------------------------
   Page shell
--------------------------------------------------------------------------- */

.page { max-width: 680px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.page--wide { max-width: 900px; }

.page__heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.page__sub {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------------
   Card
--------------------------------------------------------------------------- */

.card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------------------
   Form elements
--------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-light); }

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255,255,255,0.07);
  color: var(--ivory);
  transition: border-color 0.15s;
}

input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 1; }

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold-lt);
  outline-offset: 1px;
  border-color: var(--gold);
}

/* Select option list — explicit dark surface for Firefox and fallback */
select option                { background: var(--plum-2); color: var(--ivory); }
select option:checked        { background: var(--gold);   color: #2a1018; }

/* Number input — color-scheme:dark already renders light arrows; just dim them */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.6;
}

/* File input — theme the chooser button; filename text uses color: var(--ivory) */
input[type="file"] {
  background: transparent;
  color: var(--ivory);
  border: none;
  padding: 0.2rem 0;
}

input[type="file"]::file-selector-button {
  background: var(--plum-2);
  color: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-size: 0.83rem;
  font-family: var(--label);
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-inline-end: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

input[type="file"]::file-selector-button:hover {
  background: var(--gold);
  color: #2a1018;
  border-color: var(--gold);
}

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

.error-msg {
  color: #ff9898;
  font-size: 0.88rem;
  margin-top: 0.25rem;
  display: none;
}
.error-msg--visible { display: block; }

/* ---------------------------------------------------------------------------
   Login page — Midnight Garden hero
--------------------------------------------------------------------------- */

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(150% 95% at 50% 5%, #8b2030 0%, #5c1520 36%, #2a0a10 64%, var(--bg) 100%),
    repeating-linear-gradient(52deg,  rgba(200,100,100,0.04) 0 14px, transparent 14px 30px),
    repeating-linear-gradient(-38deg, rgba(200,120,60,0.04)  0 18px, transparent 18px 40px);
}

/* Grain texture */
.login-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Cinematic vignette */
.login-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 42%, transparent 40%, rgba(11,5,10,0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Inset gold frame */
.login-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(224,196,137,0.4);
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

/* Glowing corner diamonds */
.login-corner {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--gold-lt);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(224,196,137,0.6);
  z-index: 2;
}
.login-corner--tl { top: 13px;    left: 13px; }
.login-corner--tr { top: 13px;    right: 13px; }
.login-corner--bl { bottom: 13px; left: 13px; }
.login-corner--br { bottom: 13px; right: 13px; }

/* Language toggle — floated over hero */
.login-lang {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  border-color: rgba(224,196,137,0.4) !important;
  color: var(--gold-lt) !important;
  background: rgba(48,26,44,0.55) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[dir="rtl"] .login-lang { right: auto; left: 1rem; }

/* ── Panel wrapper — constrains to phone-width column on wide viewports ─── */

.login-panel {
  position: relative;     /* frame/corners are absolute relative to this */
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Hero zone ──────────────────────────────────────────────────────────── */

.login-hero {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(44px * var(--scale)) calc(32px * var(--scale)) calc(20px * var(--scale));
  min-height: 0;
}

.login-hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: calc(12px * var(--scale));
}

.login-hero__eyebrow {
  font-family: var(--label);
  font-size: calc(10px * var(--scale));
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blush);
  line-height: 2.2;
}

/* Bismillah accent — rendered above the eyebrow, always RTL */
.login-hero__bismillah {
  text-align: center;
  font-family: var(--urdu-display), serif;
  font-size: calc(20px * var(--scale));
  color: var(--gold);
  margin-bottom: calc(8px * var(--scale));
  direction: rtl;
  line-height: 1.8;
  opacity: 0.92;
}

/* F&M monogram crest — order:-1 floats it above the eyebrow in column layout */
.login-crest {
  order: -1;
  width: calc(58px * var(--scale));
  height: calc(58px * var(--scale));
  flex-shrink: 0;
  margin-bottom: calc(6px * var(--scale));
}

/* ── Names display ──────────────────────────────────────────────────────── */

.login-hero__names {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.login-hero__name {
  font-family: 'Tangerine', cursive;
  font-weight: 700;
  color: var(--ivory);
  font-size: calc(120px * var(--scale));
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 28px rgba(0,0,0,0.5);
}

.login-hero__name--2 { margin-inline-start: 0; }

/* Urdu names: Nastaliq, slightly smaller (calligraphic strokes are taller) */
.login-hero__name--ur {
  font-family: var(--urdu-display), serif;
  font-size: calc(64px * var(--scale));
  line-height: 1.4;
}

/* LTR: hide UR names/row; RTL: flip.
   Prefixed with :not([dir="rtl"]) to get specificity 0,2,0 —
   beats the base .login-hero__amp-row { display:flex } (0,1,0) that follows. */
html:not([dir="rtl"]) .login-hero__name--ur,
html:not([dir="rtl"]) .login-hero__amp-row--ur { display: none; }

html[dir="rtl"] .login-hero__name--en,
html[dir="rtl"] .login-hero__amp-row--en { display: none; }
html[dir="rtl"] .login-hero__name--ur    { display: block; }
html[dir="rtl"] .login-hero__amp-row--ur { display: flex; }

/* & / و connector row */
.login-hero__amp-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(14px * var(--scale));
  margin: calc(2px * var(--scale)) 0;
}

/* Left mirror rule — symmetric with .login-hero__rule on the right.
   display:none on the parent row hides this pseudo too, so the و
   toggle logic is unaffected (see bilingual rules below). */
.login-hero__amp-row::before {
  content: '';
  display: block;
  width: calc(60px * var(--scale));
  height: 1px;
  background: linear-gradient(270deg, rgba(224,196,137,0.75), transparent);
  flex-shrink: 0;
}
html[dir="rtl"] .login-hero__amp-row::before {
  background: linear-gradient(90deg, rgba(224,196,137,0.75), transparent);
}

.login-hero__amp {
  font-family: 'Tangerine', cursive;
  font-weight: 400;
  font-style: normal;
  font-size: calc(96px * var(--scale));
  line-height: 1;
  background: linear-gradient(100deg, #c6a164 0%, #f6e6b6 26%, #c6a164 50%, #e7cf90 74%, #c6a164 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 5s linear infinite;
  flex-shrink: 0;
}

/* Urdu و — Nastaliq, same gold shimmer */
.login-hero__amp--ur {
  font-family: var(--urdu-display), serif;
  font-size: calc(56px * var(--scale));
  font-style: normal;
  line-height: 1.2;
}

.login-hero__rule {
  flex: none;
  width: calc(60px * var(--scale));
  height: 1px;
  background: linear-gradient(90deg, rgba(224,196,137,0.75), transparent);
}
html[dir="rtl"] .login-hero__rule {
  background: linear-gradient(270deg, rgba(224,196,137,0.75), transparent);
}

/* ── Date / location block ──────────────────────────────────────────────── */

.login-hero__meta { margin-top: auto; padding-top: calc(16px * var(--scale)); text-align: center; }

.login-hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: calc(10px * var(--scale));
}

.login-hero__gem         { display: inline-block; transform: rotate(45deg); flex-shrink: 0; }
.login-hero__gem--sm     { width: 5px; height: 5px; border: 1px solid var(--gold-lt); }
.login-hero__gem--lg     { width: 7px; height: 7px; background: var(--gold-lt); box-shadow: 0 0 6px rgba(224,196,137,0.6); }
.login-hero__rule-sm     { flex: none; width: 80px; height: 1px; background: rgba(224,196,137,0.25); }

.login-hero__date {
  font-family: var(--label);
  font-size: calc(11px * var(--scale));
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blush);
}

.login-hero__location {
  font-family: var(--label);
  font-size: calc(9.5px * var(--scale));
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
}

.login-hero__urdu {
  font-size: calc(15px * var(--scale));
  color: var(--gold-lt);
  margin-top: calc(10px * var(--scale));
  opacity: 0.92;
}

/* ── Frosted sign-in card ───────────────────────────────────────────────── */

.login-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  border-radius: 18px 18px 0 0;
  padding: calc(20px * var(--scale)) calc(24px * var(--scale)) calc(30px * var(--scale));
  background: rgba(48, 26, 44, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(224,196,137,0.32);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 -20px 48px -20px rgba(0,0,0,0.5);
}
.login-card.card { border-radius: 18px 18px 0 0; }

.login-card__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(12px * var(--scale));
}

.login-card__private {
  font-family: var(--label);
  font-size: calc(9px * var(--scale));
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

.login-card__rsvp-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: calc(15px * var(--scale));
  color: var(--blush);
}

/* Field label inside the frosted card */
.login-card .field label {
  font-family: var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: calc(8.5px * var(--scale));
}

/* ── Desktop: center the panel as a floating invitation column ──────────── */

@media (min-width: 700px) {
  .login-shell {
    align-items: center;
  }
  .login-panel {
    max-width: 430px;
  }
  /* Full-radius floating card — not flush-bottom on wide screens */
  .login-card,
  .login-card.card {
    border-radius: 18px;
    border-bottom: 1px solid rgba(224,196,137,0.32);
    margin-bottom: 2rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.08) inset;
  }
}

/* ---------------------------------------------------------------------------
   Dua cards
--------------------------------------------------------------------------- */

.dua-list { display: flex; flex-direction: column; gap: 1rem; }

.dua-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
}

.dua-card__content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

/* Arabic text: force RTL + larger size for readability */
.dua-card__content { direction: auto; }

.dua-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge--pending  { background: rgba(213,154,82,0.22);  color: var(--saffron); }
.badge--approved { background: rgba(76,175,125,0.22);  color: #7de0ae; }
.badge--rejected { background: rgba(224,82,82,0.22);   color: #ff9898; }

/* ---------------------------------------------------------------------------
   Preset selector
--------------------------------------------------------------------------- */

.preset-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.preset-btn {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.65rem 0.9rem;
  background: var(--cream-dark);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
}
.preset-btn:hover { background: var(--plum-2); }
.preset-btn--active {
  border-color: var(--gold);
  background: var(--plum-2);
}
.preset-btn__label { font-weight: 500; display: block; }
.preset-btn__arabic {
  display: block;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.05rem;
  direction: rtl;
  margin-top: 0.2rem;
  color: var(--gold-dark);
}

/* ---------------------------------------------------------------------------
   Success banner
--------------------------------------------------------------------------- */

.success-banner {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: rgba(76,175,125,0.18);
  border: 1px solid rgba(76,175,125,0.45);
  border-radius: var(--radius);
  color: #7de0ae;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.success-banner--visible { display: flex; }

/* ---------------------------------------------------------------------------
   Admin queue
--------------------------------------------------------------------------- */

.queue-item {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.85rem;
}

.queue-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.queue-item__author { font-size: 0.82rem; color: var(--text-light); }
.queue-item__type   { font-size: 0.78rem; background: var(--cream-dark); padding: 0.1rem 0.45rem; border-radius: 4px; }
.queue-item__vis    { font-size: 0.78rem; background: rgba(76,130,200,0.22); color: #8eb8f0; padding: 0.1rem 0.45rem; border-radius: 4px; }

.queue-item__thumb {
  display: block;
  max-width: 200px;
  border-radius: 4px;
  margin: 0.25rem 0 0.5rem;
}

.queue-item__thumb-err {
  width: 100px;
  height: 70px;
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: 4px;
  margin: 0.25rem 0 0.5rem;
}

.queue-item__content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  direction: auto;
}

.queue-item__actions { display: flex; gap: 0.5rem; }

.empty-state {
  text-align: center;
  color: var(--text-light);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------------
   RSVP page
--------------------------------------------------------------------------- */

.rsvp-events { display: flex; flex-direction: column; gap: 1.5rem; }

.rsvp-event {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.rsvp-event__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
}

.rsvp-event__meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.1rem;
}

.rsvp-event__seats {
  display: inline-block;
  background: var(--cream-dark);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* Senior-friendly attending radio options */
.rsvp-attend { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }

.rsvp-attend__option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  min-height: 52px;
  background: var(--cream);
  transition: border-color 0.15s, background 0.15s;
}

.rsvp-attend__option:hover { border-color: var(--gold); background: var(--cream-dark); }

.rsvp-attend__option--selected {
  border-color: var(--gold);
  background: rgba(198,161,100,0.14);
}

.rsvp-attend__option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--gold-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.rsvp-form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.rsvp-form__row { margin-bottom: 1rem; }

.rsvp-form__row select,
.rsvp-form__row textarea { font-size: 1rem; min-height: 44px; }

.rsvp-form__row textarea { min-height: 80px; resize: vertical; }

/* Confirmation panel */
.rsvp-confirm {
  background: var(--cream-dark);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
}

.rsvp-confirm__heading {
  font-weight: 600;
  font-size: 0.95rem;
  color: #7de0ae;
  margin-bottom: 0.6rem;
}

.rsvp-confirm__row { font-size: 0.92rem; margin-bottom: 0.3rem; }

.rsvp-confirm__label { color: var(--text-light); margin-inline-end: 0.25rem; }

/* Walima TBA section */
.rsvp-tba { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.25rem; }

.rsvp-tba__opted-in {
  color: #7de0ae;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Toast
--------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  background: #333;
  color: #fff;
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: #4caf7d; }
.toast--error   { background: #e05252; }

/* ---------------------------------------------------------------------------
   Filter tabs
--------------------------------------------------------------------------- */

.filter-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.83rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.filter-tab--active { background: var(--gold); color: #2a1018; border-color: var(--gold); }

/* ---------------------------------------------------------------------------
   Section divider
--------------------------------------------------------------------------- */

.section-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .nav { padding: 0.6rem 1rem; }
  .page { padding: 1.25rem 0.75rem 3rem; }
  .page__heading { font-size: 1.35rem; }
  .queue-item__actions { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   Trivia option buttons — large accessible tap targets
--------------------------------------------------------------------------- */

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  background: var(--cream-dark);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
  text-align: start;
  transition: border-color 0.15s, background 0.15s;
}
.option-btn:hover:not(:disabled) { background: var(--plum-2); }
.option-btn:disabled { cursor: default; }
.option-btn__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.option-btn--selected  { border-color: var(--gold); background: rgba(198,161,100,0.14); }
.option-btn--correct   { border-color: #4caf7d; background: rgba(76,175,125,0.18); color: #7de0ae; }
.option-btn--incorrect { border-color: #e05252; background: rgba(224,82,82,0.18);  color: #ff9898; }
.option-btn--correct .option-btn__key   { background: #4caf7d; }
.option-btn--incorrect .option-btn__key { background: #e05252; }

.trivia-question {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.trivia-question__num  { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.4rem; }
.trivia-question__text { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.1rem; }

.trivia-result {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
.trivia-result--correct   { background: rgba(76,175,125,0.22);  color: #7de0ae; }
.trivia-result--incorrect { background: rgba(224,82,82,0.22);   color: #ff9898; }

.score-bar {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.score-bar__label { color: var(--text-light); }
.score-bar__value { font-weight: 600; color: var(--gold-dark); font-size: 1.1rem; }

/* ---------------------------------------------------------------------------
   Leaderboard table
--------------------------------------------------------------------------- */

.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard th, .leaderboard td {
  padding: 0.6rem 0.9rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.leaderboard th { font-weight: 600; color: var(--text-light); font-size: 0.8rem; text-transform: uppercase; }
.leaderboard tr:last-child td { border-bottom: none; }
.leaderboard__rank { font-weight: 600; color: var(--gold-dark); width: 3rem; }

/* ---------------------------------------------------------------------------
   Carpool cards
--------------------------------------------------------------------------- */

.carpool-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
}

.carpool-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.carpool-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.carpool-badge--offer   { background: rgba(76,175,125,0.22); color: #7de0ae; }
.carpool-badge--request { background: rgba(213,154,82,0.22);  color: var(--saffron); }

.carpool-card__meta {
  font-size: 0.88rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.carpool-card__notes {
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------------------------------------------------------------------------
   Message cards
--------------------------------------------------------------------------- */

.message-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow);
}

.message-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.message-card__party { font-size: 0.82rem; color: var(--text-light); }
.message-card__time  { font-size: 0.78rem; color: var(--text-light); }

.message-card__content {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------------------------------------------------------------------------
   Tab content panels
--------------------------------------------------------------------------- */

.tab-panel         { display: none; }
.tab-panel--active { display: block; }

@media (max-width: 480px) {
  .option-grid { grid-template-columns: 1fr; }
  .leaderboard th, .leaderboard td { padding: 0.5rem 0.6rem; }
}

/* ---------------------------------------------------------------------------
   Photo gallery grid
--------------------------------------------------------------------------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.photo-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-dark);
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.photo-card__badge {
  position: absolute;
  bottom: 0.3rem;
  inset-inline-end: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,0,0,0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Upload input styling */
.file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.file-input-wrapper input[type="file"] {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0.45rem;
  font-size: 0.88rem;
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ---------------------------------------------------------------------------
   Prompt 8 — three-phase nav, announcement banner, senior mode,
   countdown, day-of components, gift card
--------------------------------------------------------------------------- */

/* ── Phase-grouped nav ────────────────────────────────────────────────────── */

/* The nav is now two rows: brand/controls on top, phase links below. */
.nav {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
}

.nav__brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.25rem;
  gap: 0.75rem;
}

.nav__brand {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
  text-decoration: none;
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.nav__guest {
  font-size: 0.82rem;
  color: var(--text-light);
  white-space: nowrap;
}

.nav__menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
}

/* ── Tier bar (guest nav) ────────────────────────────────────────────────── */

.nav__tiers {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__tiers::-webkit-scrollbar { display: none; }

.nav__tier {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border-right: 1px solid var(--border);
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav__tier:last-child { border-right: none; }

/* Tier header — intentionally dim, tiny, non-interactive.
   Visually distinct from links so guests can't confuse them. */
.nav__tier-label {
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-light);
  opacity: 0.6;
  font-weight: 600;
  white-space: nowrap;
  padding-inline-end: 0.55rem;
  border-inline-end: 1px solid rgba(201,166,172,0.2);
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  cursor: default;
}

/* Links — full contrast, explicit weight, clear tap feedback */
.nav__tier-link {
  font-size: 0.87rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ivory);
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 3px;
  transition: color 0.15s, background-color 0.15s;
}
.nav__tier-link:hover { color: var(--gold-lt); text-decoration: none; }
.nav__tier-link:active { background: rgba(198,161,100,0.15); color: var(--gold); }

/* START HERE: Day Of link gets a gold accent */
#nav-tier-start .nav__tier-link--day {
  color: var(--gold-lt);
  font-weight: 600;
}

/* MORE tier — secondary/de-emphasized; links step back visually */
.nav__tier--more .nav__tier-label { opacity: 0.4; }
.nav__tier--more .nav__tier-link  {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 400;
}
.nav__tier--more .nav__tier-link:hover { color: var(--gold-lt); }

/* Admin tier — push right */
.nav__tier--admin {
  margin-inline-start: auto;
  border-right: none;
}

/* Senior mode toggle — always visible, larger font weight */
.nav__senior-btn {
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 36px;
}

/* Mobile: hamburger, collapsed tiers */
@media (max-width: 768px) {
  .nav__guest { display: none; }
  .nav__menu-btn { display: flex; }

  .nav__tiers {
    display: none;
    flex-direction: column;
    overflow-x: visible;
    border-top: 1px solid var(--border);
  }
  .nav__tiers--open { display: flex; }

  .nav__tier {
    flex-wrap: wrap;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    gap: 0.45rem;
  }
  .nav__tier:first-child { border-top: none; }

  /* Full-width tier header on mobile — clearly a section label */
  .nav__tier-label {
    width: 100%;
    padding-inline-end: 0;
    border-inline-end: none;
    padding-bottom: 0.15rem;
    margin-bottom: 0.05rem;
    font-size: 0.48rem;
    opacity: 0.55;
  }

  /* Links get a generous tap target on mobile */
  .nav__tier-link {
    padding: 0.3rem 0.5rem;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  /* Admin tier: not right-aligned on mobile */
  .nav__tier--admin { margin-inline-start: 0; }

  /* Controls row on mobile: show admin link in drawer */
  .nav__controls #nav-admin { display: none; }
  .nav__tiers--open .nav__tier--admin { display: flex; }
}

/* ── Announcement banner ──────────────────────────────────────────────────── */

.announcement-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--plum);
  border-bottom: 2px solid var(--gold);
  font-size: 0.92rem;
  line-height: 1.55;
}

.announcement-banner__content {
  flex: 1;
  word-break: break-word;
}

.announcement-banner__dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  flex-shrink: 0;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.announcement-banner__dismiss:hover { color: var(--text); background: var(--cream-dark); }

/* ── Senior mode body overrides ───────────────────────────────────────────── */

body.senior-mode {
  --scale: 1.3;
  font-size: 1.12em;
}

body.senior-mode .btn {
  padding: 0.65rem 1.3rem;
  font-size: 1rem;
  min-height: 48px;
}
body.senior-mode .btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  min-height: 44px;
}

body.senior-mode input[type="text"],
body.senior-mode input[type="tel"],
body.senior-mode textarea,
body.senior-mode select {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  min-height: 48px;
}

/* Senior Mode: links clearly bigger; labels stay small but step up enough to read */
body.senior-mode .nav__tier-link,
body.senior-mode .nav__guest {
  font-size: 1rem;
}
body.senior-mode .nav__tier-label {
  font-size: 0.68rem; /* still clearly smaller than 1rem links */
}

body.senior-mode .page__heading { font-size: 1.9rem; }
body.senior-mode .page__sub     { font-size: 1.05rem; }
body.senior-mode .section-heading { font-size: 1.2rem; }
body.senior-mode .card          { padding: 1.5rem 1.75rem; }

/* Senior toggle button highlights itself when active */
body.senior-mode .nav__senior-btn {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-dark);
}

body.senior-mode .rsvp-attend__option {
  font-size: 1.1rem;
  min-height: 60px;
  padding: 1rem 1.2rem;
}

/* ── Countdown widget ─────────────────────────────────────────────────────── */

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  background: radial-gradient(ellipse at 50% 25%, rgba(198,161,100,0.10) 0%, var(--plum) 65%);
  border-color: var(--gold);
}

.countdown__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown__units {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

.countdown__value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.countdown__done {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-dark);
}

@media (max-width: 480px) {
  .countdown__value  { font-size: 1.8rem; }
  .countdown__units  { gap: 1rem; }
  .countdown__unit   { min-width: 3rem; }
}

/* ── Day-of page: schedule list ───────────────────────────────────────────── */

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum);
  box-shadow: var(--shadow);
}

.schedule-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item:nth-child(even) { background: rgba(255,255,255,0.04); }

.schedule-item__time {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
  min-width: 4rem;
  flex-shrink: 0;
}

.schedule-item__label {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── Day-of page: contact cards ───────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-card__name { font-weight: 600; font-size: 0.98rem; }
.contact-card__role { font-size: 0.82rem; color: var(--text-light); }
.contact-card__phone {
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.contact-card__phone a {
  color: var(--gold-dark);
  font-weight: 500;
}

/* ── Day-of page: venue card ──────────────────────────────────────────────── */

.venue-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.venue-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}

.venue-card__address {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.venue-card__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.info-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Livestream embed ─────────────────────────────────────────────────────── */

.stream-placeholder {
  background: var(--cream-dark);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.stream-placeholder__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.stream-embed {
  margin-bottom: 2rem;
}

.stream-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stream-embed__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: #2a1018;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}
.stream-embed__link:hover { background: var(--gold-lt); text-decoration: none; color: #2a1018; }

/* ── Gift / e-transfer card ───────────────────────────────────────────────── */

.gift-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.gift-card__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.gift-card__email {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 0.25rem;
}

.gift-card__note {
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

/* ── Admin config panel ───────────────────────────────────────────────────── */

.config-section {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.config-section__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.config-section .field textarea { min-height: 70px; }

.config-section__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.config-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.config-checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold-dark);
  cursor: pointer;
}

/* ── Prompt 9: Dashboard summary cards ───────────────────────────────────── */

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}

.dashboard-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1.1;
}

.dashboard-card__label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.dashboard-rsvp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dashboard-rsvp__event {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.dashboard-rsvp__event strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

/* ── Feature toggle grid (admin panel) ───────────────────────────────────── */

.feature-toggle-grid {
  margin-bottom: 1rem;
}

.feature-tier-heading {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 700;
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
}
.feature-tier-heading:first-child { margin-top: 0; }

.feature-tier-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.3rem 1.1rem;
}

/* ── Prompt 9: Guest management table ────────────────────────────────────── */

.guest-table-wrap { overflow-x: auto; margin-bottom: 1rem; }

.guest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}

.guest-table th,
.guest-table td {
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.guest-table th {
  background: var(--plum-2);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.guest-table tr:last-child td { border-bottom: none; }
.guest-table tr.editing td    { background: rgba(198,161,100,0.12); }

.guest-table input,
.guest-table select {
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.83rem;
  width: 100%;
  min-width: 70px;
}

.guest-table .btn-row { display: flex; gap: 0.35rem; }

/* ── Prompt 9: Event editing cards ───────────────────────────────────────── */

.event-edit-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.event-edit-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
}

.event-edit-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.event-edit-fields .field { margin-bottom: 0; }
.event-edit-msg { font-size: 0.875rem; margin-top: 0.4rem; }

/* ---------------------------------------------------------------------------
   Planner — tasks, budget, inventory, volunteer board
--------------------------------------------------------------------------- */

/* Stat bar shown at the top of the Tasks tab */
.planner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.planner-stat {
  background: var(--plum-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  flex: 1 1 80px;
}

.planner-stat__num  { font-size: 1.6rem; font-weight: 600; color: var(--gold-lt); line-height: 1; }
.planner-stat__lbl  { font-size: 0.7rem; color: var(--ink-soft); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.planner-stat--warn .planner-stat__num { color: #ffb347; }
.planner-stat--ok   .planner-stat__num { color: #7de0ae; }

/* Filters row */
.planner-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.planner-filters select,
.planner-filters input[type="text"] {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ivory);
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-family: var(--label);
}

.planner-filters select:focus,
.planner-filters input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(198,161,100,0.25);
}

/* ── Filter chips ─────────────────────────────────────────────────────────── */
.task-filter-bar { margin-bottom: 1rem; }

.task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.task-chip {
  background: var(--plum-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: calc(0.82rem * var(--scale, 1));
  font-family: var(--label);
  padding: 0.45rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.task-chip--active {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a1018;
  font-weight: 600;
}

.task-filter-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.task-mine-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: calc(0.85rem * var(--scale, 1));
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 44px;
}

.task-sort-hint {
  font-size: calc(0.72rem * var(--scale, 1));
  color: var(--ink-soft);
  opacity: 0.65;
  letter-spacing: 0.03em;
}

.task-filter-row2-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.task-collapse-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: calc(0.78rem * var(--scale, 1));
  font-family: var(--label);
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.task-collapse-btn:hover { color: var(--ivory); border-color: var(--gold); }

/* ── Category sections ────────────────────────────────────────────────────── */
.task-section { margin-bottom: 0.25rem; }

.task-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--plum-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
  color: var(--ivory);
  font-family: var(--label);
  font-size: calc(0.88rem * var(--scale, 1));
  font-weight: 600;
  text-align: left;
  transition: background 0.12s;
}
.task-section-header:hover { background: rgba(74,42,61,0.9); }

.task-section-chevron {
  font-size: 1rem;
  color: var(--gold);
  display: inline-block;
  transition: transform 0.18s;
  flex-shrink: 0;
  line-height: 1;
}
.task-section-chevron--open { transform: rotate(90deg); }

.task-section-name { flex: 1; min-width: 0; }

.task-section-counts { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }

.cat-count {
  font-size: calc(0.7rem * var(--scale, 1));
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  line-height: 1.4;
}
.cat-count--must  { background: rgba(255,80,80,0.2);  color: #ff8080; }
.cat-count--total { background: rgba(198,161,100,0.15); color: var(--gold); }

.task-section-body {
  padding: 0.4rem 0 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.task-section-body[hidden] { display: none; }

/* ── Task cards ───────────────────────────────────────────────────────────── */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.task-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.65rem;
  align-items: start;
}

/* Priority left-border colors */
.task-card--must     { border-left-color: #ff5050; }
.task-card--should   { border-left-color: #ffb347; }
.task-card--nice     { border-left-color: #7de0ae; }
.task-card--not-req  { border-left-color: rgba(160,160,180,0.35); }

.task-card__body { min-width: 0; overflow: hidden; }

.task-card__title {
  font-weight: 500;
  color: var(--ivory);
  font-size: calc(0.95rem * var(--scale, 1));
  word-break: break-word;
}

.task-card__meta {
  font-size: calc(0.75rem * var(--scale, 1));
  color: var(--ink-soft);
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  min-width: 0;
}
.task-meta-dot { opacity: 0.45; flex-shrink: 0; }

.task-card__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.task-pri-badge { font-size: calc(0.65rem * var(--scale, 1)); white-space: nowrap; }

.task-status-btn {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ivory);
  font-family: var(--label);
  font-size: calc(0.8rem * var(--scale, 1));
  padding: 0.5rem 0.6rem;
  min-height: 44px;
  min-width: 80px;
  cursor: pointer;
}
.task-status-btn:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(198,161,100,0.25);
}

.task-card__deen-flag {
  font-size: calc(0.78rem * var(--scale, 1));
  color: var(--ink-soft);
  margin-top: 0.3rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.deen-icon { color: var(--gold); font-size: 0.9em; flex-shrink: 0; }

.deen-verify-tag {
  background: rgba(255,179,71,0.15);
  border: 1px solid rgba(255,179,71,0.35);
  color: #ffb347;
  font-size: calc(0.65rem * var(--scale, 1));
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.task-card__deen-text {
  font-family: var(--urdu-body);
  direction: rtl;
  unicode-bidi: isolate;
  color: var(--gold-lt);
}

.task-card__deposit {
  font-size: 0.78rem;
  color: var(--gold);
  margin-top: 0.25rem;
}

.task-card__explainer {
  margin-top: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: rgba(198,161,100,0.08);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-size: 0.8rem;
  color: var(--ivory);
}
.task-card__explainer-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-lt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

/* Priority badges */
.badge--must      { background: rgba(255,80,80,0.2);  color: #ff8080; border-color: rgba(255,80,80,0.35); }
.badge--should    { background: rgba(255,179,71,0.2); color: #ffb347; border-color: rgba(255,179,71,0.35); }
.badge--nice      { background: rgba(125,224,174,0.15); color: #7de0ae; border-color: rgba(125,224,174,0.3); }
.badge--not-req   { background: rgba(160,160,180,0.15); color: #a0a0b4; border-color: rgba(160,160,180,0.3); }

/* Status badges */
.badge--open        { background: rgba(160,160,180,0.15); color: #a0a0b4; border-color: rgba(160,160,180,0.3); }
.badge--in-progress { background: rgba(125,224,174,0.15); color: #7de0ae; border-color: rgba(125,224,174,0.3); }
.badge--blocked     { background: rgba(255,80,80,0.2);  color: #ff8080; border-color: rgba(255,80,80,0.35); }
.badge--done        { background: rgba(100,200,140,0.2); color: #64c88c; border-color: rgba(100,200,140,0.35); }

/* Side badges */
.badge--joint  { background: rgba(198,161,100,0.15); color: var(--gold);    border-color: rgba(198,161,100,0.3); }
.badge--ours   { background: rgba(224,196,137,0.15); color: var(--gold-lt); border-color: rgba(224,196,137,0.3); }
.badge--theirs { background: rgba(160,160,180,0.15); color: #a0a0b4;        border-color: rgba(160,160,180,0.3); }

/* Budget table */
.budget-table-wrap { overflow-x: auto; }

.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--ivory);
}

.budget-table th {
  background: var(--plum-2);
  color: var(--gold-lt);
  padding: 0.55rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  font-weight: 500;
}

.budget-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.budget-table tr:nth-child(even) td { background: rgba(74,42,61,0.35); }
.budget-table tr:hover td           { background: rgba(74,42,61,0.65); }

.budget-table .col-num { text-align: right; font-variant-numeric: tabular-nums; }

.budget-totals {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ivory);
}

.budget-totals strong { color: var(--gold-lt); }

/* Inventory cards (decor + food) */
.inv-section { margin-bottom: 1.5rem; }

.inv-section__heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.inv-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.inv-card__item  { font-weight: 500; color: var(--ivory); margin-bottom: 0.2rem; }
.inv-card__meta  { font-size: 0.78rem; color: var(--ink-soft); }
.inv-card__cost  { font-size: 0.82rem; color: var(--gold-lt); margin-top: 0.25rem; }

/* Helpers Wall — tally header */
.volunteer-tally {
  font-size: 0.95rem;
  color: var(--gold-lt);
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.volunteer-tally__raised { font-weight: 600; }
.volunteer-tally__open   { color: var(--ink-soft); }
.volunteer-tally__sep    { color: var(--border); }

/* Volunteer board */
.volunteer-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}

.volunteer-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: border-color 0.25s;
}

.volunteer-card__title   { font-weight: 500; color: var(--ivory); margin-bottom: 0.3rem; }
.volunteer-card__meta    { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.65rem; }
.volunteer-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* "[Name] has this" line */
.volunteer-card__claimer {
  font-size: 0.875rem;
  color: var(--gold-lt);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.volunteer-card--claimed {
  border-color: rgba(198,161,100,0.45);
  background: rgba(198,161,100,0.06);
}

.volunteer-card--claimed .volunteer-card__title { color: var(--gold-lt); }

/* Release button — ghost, small, subtle */
.btn--release {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(198,161,100,0.35);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--label);
  transition: color 0.15s, border-color 0.15s;
}
.btn--release:hover { color: var(--ivory); border-color: var(--gold); }

/* Claim pop animation */
@keyframes claim-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.volunteer-card--pop { animation: claim-pop 0.35s ease-out; }

/* Planner tab empty state */
.planner-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 540px) {
  .task-card { grid-template-columns: 1fr; }
  .task-card__action { flex-direction: row; justify-content: flex-end; margin-top: 0.3rem; }
  .budget-table th, .budget-table td { padding: 0.4rem 0.5rem; font-size: 0.78rem; }
}

/* ---------------------------------------------------------------------------
   Planner Dashboard
--------------------------------------------------------------------------- */

/* Countdown strip — reuses countdown.* i18n keys from theday.html */
.dash-countdown {
  background: linear-gradient(135deg, var(--plum-2) 0%, rgba(74,42,61,0.55) 100%);
  border: 1px solid rgba(198,161,100,0.3);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.dash-countdown__title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  flex-basis: 100%;
  margin-bottom: 0.15rem;
}

.dash-countdown__units { display: flex; gap: 1rem; flex-wrap: wrap; }

.dash-countdown__unit  { display: flex; flex-direction: column; align-items: center; }

.dash-countdown__val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.dash-countdown__lbl {
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------------
   Modal overlay (recommendations suggest form, etc.)
--------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 8, 22, 0.82);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.submission-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(198,161,100,0.18);
  color: var(--gold-lt);
  border: 1px solid rgba(198,161,100,0.3);
  text-transform: capitalize;
}

.dash-countdown__done {
  color: var(--gold-lt);
  font-size: 1rem;
  font-weight: 500;
}

/* Dashboard grid layout */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.dash-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Dashboard stat card (extends .planner-stat look for dashboard use) */
.dash-stat-card {
  background: var(--plum-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.dash-stat-card__num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
}

.dash-stat-card__lbl {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-stat-card--warn .dash-stat-card__num { color: #ffb347; }
.dash-stat-card--alert .dash-stat-card__num { color: #ff8080; }
.dash-stat-card--ok .dash-stat-card__num    { color: #7de0ae; }

/* Section heading inside the dashboard */
.dash-section {
  margin-bottom: 1.25rem;
}

.dash-section__heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

/* RSVP headcount table */
.dash-rsvp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.dash-rsvp-table th {
  background: var(--plum-2);
  color: var(--gold-lt);
  padding: 0.45rem 0.65rem;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.dash-rsvp-table td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.dash-rsvp-note {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.35rem;
}

/* Needs-attention + recent-activity lists */
.dash-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.dash-list-item {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  align-items: start;
}

.dash-list-item__title { font-size: 0.88rem; color: var(--ivory); }
.dash-list-item__meta  { font-size: 0.75rem; color: var(--ink-soft); }
.dash-list-item__badge { align-self: center; }

.dash-list-item--blocked { border-left: 3px solid #ff8080; }
.dash-list-item--overdue { border-left: 3px solid #ffb347; }

/* Guest dashboard cards */
.dash-guest-card {
  background: var(--plum);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.dash-guest-card__heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.dash-guest-rsvp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-guest-rsvp-attending { font-weight: 600; color: #7de0ae; }
.dash-guest-rsvp-declined  { color: var(--ink-soft); }

/* Empty state reused from planner */
.dash-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 540px) {
  .dash-countdown__val { font-size: 1.5rem; }
  .dash-grid           { grid-template-columns: repeat(2, 1fr); }
  .dash-list-item      { grid-template-columns: 1fr; }
  .dash-list-item__badge { margin-top: 0.25rem; }
}


/* ---------------------------------------------------------------------------
   Registration + Pending pages (Prompt C)
--------------------------------------------------------------------------- */

.login-card__register {
  text-align: center;
  font-size: calc(0.8rem * var(--scale));
  margin-top: calc(0.75rem * var(--scale));
  color: var(--ink-soft);
}
.login-card__register a {
  color: var(--gold);
  text-decoration: none;
}
.login-card__register a:hover { text-decoration: underline; }

.success-msg {
  background: rgba(125, 224, 174, 0.12);
  border: 1px solid rgba(125, 224, 174, 0.35);
  border-radius: 8px;
  padding: calc(0.75rem * var(--scale));
  color: #7de0ae;
  font-size: calc(0.88rem * var(--scale));
  margin-bottom: 0.75rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: calc(0.9rem * var(--scale));
  color: var(--ivory);
}
.radio-label input[type="radio"] { accent-color: var(--gold); }

.pending-card {
  text-align: center;
}
.pending-card .page-title {
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.pending-card .page-subtitle {
  color: var(--ivory);
  font-size: calc(0.95rem * var(--scale));
  line-height: 1.6;
}

.faq-item {
  border-bottom: 1px solid rgba(198, 161, 100, 0.18);
  padding: calc(0.6rem * var(--scale)) 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold-lt);
  font-size: calc(0.9rem * var(--scale));
  list-style: none;
  padding-left: 0.25rem;
}
.faq-item summary::before { content: '▸ '; font-size: 0.8em; }
.faq-item[open] summary::before { content: '▾ '; }
.faq-item p {
  color: var(--ivory);
  font-size: calc(0.88rem * var(--scale));
  margin: 0.4rem 0 0.25rem 1.1rem;
  line-height: 1.5;
}

.countdown-num {
  font-size: calc(2rem * var(--scale));
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.countdown-label {
  font-size: calc(0.7rem * var(--scale));
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  text-align: center;
}
.countdown-unit { text-align: center; }
