/* ═══════════════════════════════════════════════
   DOWN TO THE ISLE — Wedding Planner
   Elegant · Clean · No-emoji aesthetic
   ═══════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; height: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FFFFFF;
  color: #2C1810;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

/* ── CSS VARIABLES ───────────────────────────── */
:root {
  /* Palette */
  --ivory:       #FAF6EE;
  --parchment:   #F2E8D5;
  --gold:        #B8916A;
  --gold-dark:   #8C6640;
  --gold-light:  #D6BA96;
  --rose:        #C07068;
  --rose-light:  #EAC0BA;
  --sage:        #6A8E70;
  --sage-light:  #B2C8B6;

  /* Text */
  --ink:   #2C1810;
  --ink-2: #5C3A24;
  --ink-3: #8C6848;
  --ink-4: #B89870;

  /* Backward-compat aliases used in inline JS styles */
  --cream:        var(--ivory);
  --tan:          var(--gold);
  --tan-dark:     var(--gold-dark);
  --pink-accent:  var(--rose);
  --pink-deep:    #9C4038;
  --green-accent: var(--sage);
  --green-deep:   #3C6840;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Typography */
  --f:  'Inter', -apple-system, system-ui, sans-serif;
  --f2: 'Cormorant Garamond', 'Lora', Georgia, serif;

  /* Effects */
  --blur:      blur(16px);
  --shadow-sm: 0 1px 4px rgba(44,24,16,0.06), 0 2px 8px rgba(44,24,16,0.03);
  --shadow-md: 0 2px 12px rgba(44,24,16,0.09), 0 4px 20px rgba(44,24,16,0.05);
  --shadow-lg: 0 8px 32px rgba(44,24,16,0.12), 0 4px 16px rgba(44,24,16,0.07);
  --edge:      inset 0 1px 0 rgba(255,255,255,0.65);
  --edge-pink: inset 0 1px 0 rgba(255,255,255,0.75);
}

/* ── GLASS UTILITIES ─────────────────────────── */
.glass       { background: rgba(255,248,232,0.92); border: 1px solid rgba(184,145,106,0.18); box-shadow: var(--shadow-sm); }
.glass-pink  { background: rgba(240,220,218,0.72); border: 1px solid rgba(192,112,104,0.18); box-shadow: var(--shadow-sm); }
.glass-green { background: rgba(218,232,220,0.72); border: 1px solid rgba(106,142,112,0.18); box-shadow: var(--shadow-sm); }
.glass-cream { background: rgba(242,232,213,0.78); border: 1px solid rgba(184,145,106,0.20); box-shadow: var(--shadow-sm); }

/* ═══════════════════════════════════════════════
   LANDING PAGE — warm brand palette (matches app)
   ═══════════════════════════════════════════════ */
#dtti-landing {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ivory);
  transition: opacity 0.45s ease;
}

/* ── NAV ───────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(250,246,238,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,145,106,0.18);
}
.lp-nav-brand {
  font-family: var(--f2);
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.lp-nav-actions { display: none; gap: 10px; align-items: center; }
@media (min-width: 640px) { .lp-nav-actions { display: flex; } }
.lp-nav-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-md);
  transition: background 0.15s;
  font-family: var(--f);
  cursor: pointer;
}
.lp-nav-link:hover { background: rgba(184,145,106,0.10); color: var(--gold-dark); }
.lp-nav-cta {
  padding: 9px 20px;
  background: var(--gold-dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--f);
  transition: all 0.18s;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(140,102,64,0.28);
}
.lp-nav-cta:hover  { background: var(--tan-dark); box-shadow: 0 4px 16px rgba(140,102,64,0.4); }
.lp-nav-cta:active { transform: scale(0.96); }

/* ── HERO ──────────────────────────────────────── */
.lp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom right, rgba(218,182,128,0.30) 0%, transparent 44%),
    linear-gradient(to bottom left,  rgba(218,182,128,0.30) 0%, transparent 44%),
    linear-gradient(to top right,    rgba(218,182,128,0.24) 0%, transparent 44%),
    linear-gradient(to top left,     rgba(218,182,128,0.24) 0%, transparent 44%),
    #FAF6EE;
  min-height: calc(100vh - 58px);
}
/* Floral side panels (mobile hero) */
.lp-floral {
  position: absolute;
  top: 60px;
  width: 115px;
  height: 520px;
  pointer-events: none;
  z-index: 1;
}
.lp-floral-left  { left: -10px; }
.lp-floral-right { right: -10px; transform: scaleX(-1); }

.lp-hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px 32px;
  width: 100%;
}
.lp-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-eyebrow::before, .lp-eyebrow::after {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  display: inline-block;
  opacity: 0.7;
}
.lp-headline {
  font-family: var(--f2);
  font-size: clamp(44px, 11vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.lp-headline em { font-style: italic; color: var(--gold); }
.lp-sub {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 260px;
  margin-bottom: 26px;
  font-weight: 400;
}
.lp-ctas { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 236px; margin-bottom: 36px; }
.lp-btn-primary {
  padding: 14px 36px;
  background: var(--gold-dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--f);
  box-shadow: 0 4px 20px rgba(140,102,64,0.28);
  transition: all 0.18s;
}
.lp-btn-primary:hover  { background: var(--tan-dark); box-shadow: 0 6px 28px rgba(140,102,64,0.40); }
.lp-btn-primary:active { transform: scale(0.97); }
.lp-btn-secondary {
  padding: 14px 28px;
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid rgba(184,145,106,0.40);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--f);
  transition: all 0.18s;
}
.lp-btn-secondary:hover { background: rgba(184,145,106,0.08); border-color: var(--gold); }
.lp-btn-secondary:active { transform: scale(0.97); }
.lp-trust {
  font-size: 11px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  flex-wrap: wrap;
}
.lp-trust-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(184,145,106,0.4); flex-shrink: 0; }

/* Photo mosaic (desktop only) */
.lp-hero-mosaic {
  display: none;
  grid-template-columns: 3fr 2fr;
  gap: 6px;
  padding: 0 6px 6px;
  min-height: 260px;
}
.lp-mosaic-main {
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(234,192,186,0.80) 0%, rgba(192,112,104,0.50) 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(192,112,104,0.18);
}
.lp-mosaic-stack { display: flex; flex-direction: column; gap: 6px; }
.lp-mosaic-sm   { flex: 1; border-radius: 18px; position: relative; overflow: hidden; border: 1px solid rgba(184,145,106,0.15); }
.lp-photo-b { background: linear-gradient(150deg, rgba(178,200,182,0.80) 0%, rgba(106,142,112,0.50) 100%); }
.lp-photo-c { background: linear-gradient(150deg, rgba(242,232,213,0.90) 0%, rgba(201,169,110,0.55) 100%); }
.lp-photo-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px 14px; }
.lp-photo-tag { font-size: 10px; font-weight: 700; color: rgba(44,31,14,0.50); letter-spacing: 0.5px; text-transform: uppercase; }

/* ── MOBILE HERO CAROUSEL ── */
.lp-carousel-stage {
  position: relative;
  width: 100%;
  height: 258px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  perspective-origin: 50% 50%;
  margin-bottom: 14px;
}
.lp-card {
  position: absolute;
  width: 186px;
  height: 240px;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  cursor: pointer;
}
.lp-card.lp-prev {
  transform: translateX(-148px) rotateY(44deg) scale(0.8);
  filter: brightness(0.62) blur(0.4px);
  opacity: 0.72;
  z-index: 1;
}
.lp-card.lp-active {
  transform: translateX(0) rotateY(0deg) scale(1);
  filter: brightness(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 18px 52px rgba(44,24,16,0.32), 0 4px 16px rgba(44,24,16,0.18);
}
.lp-card.lp-next {
  transform: translateX(148px) rotateY(-44deg) scale(0.8);
  filter: brightness(0.62) blur(0.4px);
  opacity: 0.72;
  z-index: 1;
}
.lp-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,10,5,0.70) 0%, transparent 55%);
}
.lp-card-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lp-carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}
.lp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(92,58,36,0.22);
  transition: all 0.3s;
}
.lp-dot.lp-dot-active {
  width: 18px;
  border-radius: 3px;
  background: var(--gold);
}

/* ── FEATURES BAND ─────────────────────────────── */
.lp-features {
  background: linear-gradient(160deg, rgba(234,192,186,0.22) 0%, rgba(242,232,213,0.38) 100%);
  border-top: 1px solid rgba(192,112,104,0.12);
  border-bottom: 1px solid rgba(184,145,106,0.12);
  padding: 56px 28px;
}
.lp-features-inner { max-width: 960px; margin: 0 auto; }
.lp-section-h {
  font-family: var(--f2);
  font-size: clamp(26px, 5vw, 38px);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}
.lp-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-feat {
  padding: 20px 18px;
  background: rgba(255,252,247,0.88);
  border: 1px solid rgba(184,145,106,0.20);
  border-radius: var(--r-lg);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.lp-feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-feat-icon { font-size: 20px; margin-bottom: 8px; }
.lp-feat-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lp-feat-desc { font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }
.lp-soon-chip { font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: rgba(192,112,104,0.10); color: var(--rose); border: 1px solid rgba(192,112,104,0.22); letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }

/* ── WHY US ─────────────────────────────────────── */
.lp-why {
  background: rgba(178,200,182,0.16);
  padding: 60px 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.lp-why-arch {
  align-self: center;
  width: 200px;
  height: 260px;
  border-radius: 100px 100px 16px 16px;
  background: linear-gradient(160deg, var(--gold) 0%, var(--tan-dark) 60%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(184,145,106,0.35);
}
.lp-arch-inner { text-align: center; }
.lp-arch-mark { font-size: 28px; color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.lp-arch-name { font-family: var(--f2); font-size: 16px; font-style: italic; font-weight: 600; color: #fff; }
.lp-arch-tagline { font-size: 11px; color: rgba(255,255,255,0.60); margin-top: 4px; font-weight: 500; }
.lp-why-h { font-family: var(--f2); font-size: clamp(28px, 6vw, 42px); font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -0.5px; margin: 10px 0 14px; }
.lp-why-p { font-size: 14px; line-height: 1.75; color: var(--ink-3); margin-bottom: 20px; }
.lp-why-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.lp-why-list li { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 14px; border-radius: var(--r-md); background: rgba(242,232,213,0.55); border-left: 3px solid var(--gold); }
.lp-btn-dark {
  padding: 14px 36px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--f);
  box-shadow: 0 4px 20px rgba(44,31,14,0.25);
  transition: all 0.18s;
  align-self: flex-start;
}
.lp-btn-dark:hover  { background: var(--ink-2); }
.lp-btn-dark:active { transform: scale(0.97); }

/* ── FOR SUPPLIERS SECTION ───────────────────────── */
.lp-suppliers {
  background: linear-gradient(160deg, rgba(44,24,16,0.97) 0%, rgba(92,58,36,0.97) 100%);
  padding: 64px 28px 72px;
  color: #fff;
}
.lp-suppliers-inner { max-width: 820px; margin: 0 auto; }
.lp-sup-eyebrow {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gold); margin-bottom: 14px;
}
.lp-sup-h {
  font-family: var(--f2); font-size: clamp(28px, 6vw, 44px);
  font-style: italic; font-weight: 600; color: #fff;
  line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 16px;
}
.lp-sup-p {
  font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.72);
  max-width: 560px; margin: 0 0 36px;
}
.lp-sup-perks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px;
}
.lp-sup-perk {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(184,145,106,0.22);
  border-radius: var(--r-lg); padding: 18px 16px;
}
.lp-sup-perk-icon  { font-size: 22px; margin-bottom: 8px; }
.lp-sup-perk-title { font-size: 13.5px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.lp-sup-perk-desc  { font-size: 12px; color: rgba(255,255,255,0.60); line-height: 1.55; }
.lp-sup-cta-row    { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lp-sup-btn-primary {
  display: inline-block; padding: 15px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff; font-family: var(--f); font-size: 14px; font-weight: 800;
  text-decoration: none; border-radius: var(--r-lg); letter-spacing: 0.1px;
  transition: opacity 0.15s;
}
.lp-sup-btn-primary:hover { opacity: 0.88; }
.lp-sup-note { font-size: 11.5px; color: rgba(255,255,255,0.45); font-weight: 500; }
@media (min-width: 760px) {
  .lp-sup-perks { grid-template-columns: repeat(2, 1fr); }
  .lp-sup-cta-row { flex-direction: row; align-items: center; }
}

/* ── FOOTER ──────────────────────────────────────── */
.lp-footer {
  background: var(--ink);
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  color: rgba(245,240,232,0.42);
  font-weight: 500;
}
.lp-footer a { color: var(--gold); text-decoration: none; }
.lp-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE: tablet & desktop ─────────────── */
@media (min-width: 760px) {
  /* Hero stays centered — scaled up */
  .lp-hero-mosaic { display: none; }
  .lp-hero-text { padding: 64px 48px 48px; max-width: 640px; margin: 0 auto; }
  .lp-sub { font-size: 15px; max-width: 380px; margin-bottom: 32px; line-height: 1.75; }
  .lp-ctas { flex-direction: row; justify-content: center; width: auto; max-width: none; gap: 12px; margin-bottom: 40px; }

  /* Bigger florals */
  .lp-floral { width: 150px; height: 640px; top: 40px; }
  .lp-floral-left  { left: 0; }
  .lp-floral-right { right: 0; }

  /* Bigger carousel cards */
  .lp-carousel-stage { height: 310px; perspective: 1100px; margin-bottom: 16px; }
  .lp-card { width: 230px; height: 296px; }
  .lp-card.lp-prev { transform: translateX(-185px) rotateY(44deg) scale(0.8); }
  .lp-card.lp-next { transform: translateX(185px) rotateY(-44deg) scale(0.8); }

  /* Other landing sections */
  .lp-feat-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-why { flex-direction: row; align-items: center; gap: 60px; padding: 80px 60px; max-width: 1080px; margin: 0 auto; }
  .lp-why-arch { width: 240px; height: 320px; flex-shrink: 0; }
  .lp-why-text { flex: 1; }
}

/* ═══════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════ */
.app-shell {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ──────────────────────────────────── */
.app-header {
  position: fixed;          /* mobile: always at top of viewport */
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(250,246,238,0.97);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(184,145,106,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 6px;
}
/* (mobile hero padding override is in @media max-width:899px below) */
.app-header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  cursor: pointer;
}
.logo-ring { display: none; } /* replaced by logo-mark */
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.logo-text {
  font-family: var(--f2);
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.logo-sub { display: none; }
.btn-edit-details {
  padding: 7px 12px;
  border-radius: var(--r-md);
  background: rgba(242,232,213,0.80);
  border: 1px solid rgba(184,145,106,0.28);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-dark);
  cursor: pointer;
  transition: transform 0.15s;
  font-family: var(--f);
  white-space: nowrap;
}
.btn-edit-details:active { transform: scale(0.95); }

/* ── WEDDING HERO — invitation card style ────── */
.wedding-hero {
  padding: 52px 24px 44px;
  background: linear-gradient(160deg, #fdfaf4 0%, #fef8ee 50%, #fdf4e7 100%);
  border-bottom: 1px solid rgba(184,145,106,0.14);
  text-align: center;
  position: relative;
}
.hero-of-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  opacity: 0.8;
}
/* Names displayed as 3 stacked lines: name1 / & / name2 */
.wedding-couple-names {
  font-family: var(--f2);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.1;
}
.hero-name-line {
  font-family: var(--f2);
  font-size: 58px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1.1;
  display: block;
}
.wedding-amp {
  font-family: var(--f2);
  font-size: 28px;
  font-style: italic;
  color: var(--gold);
  display: block;
  margin: 2px 0;
  line-height: 1.2;
}
/* Decorative horizontal rule with diamond */
.hero-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 220px;
  margin: 10px auto 8px;
}
.hero-rule span {
  flex: 1;
  height: 1px;
  background: rgba(184, 145, 106, 0.38);
}
.hero-gem {
  font-size: 8px;
  color: var(--gold);
  font-style: normal;
  line-height: 1;
}
/* Date and venue — elegant typography, no boxes */
.hero-date-venue { margin-bottom: 4px; }
#wed-hero-date {
  font-family: var(--f2);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.hero-date-weekday { opacity: 0.6; margin-right: 6px; }
.hero-date-month   { font-weight: 700; margin-right: 4px; }
.hero-date-day     { font-size: 16px; font-weight: 600; color: var(--ink); margin-right: 4px; }
.hero-date-year    { opacity: 0.6; }
#wed-hero-venue {
  font-size: 11.5px;
  color: var(--ink-4);
  font-style: italic;
  font-weight: 500;
}
.wedding-countdown {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── MOBILE NAV HAMBURGER ────────────────────── */
.mob-nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  border: 1px solid rgba(201,169,110,0.28);
  background: rgba(242,232,213,0.55);
  cursor: pointer;
  font-family: var(--f);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tan-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.mob-nav-btn .mob-nav-icon { font-size: 14px; line-height: 1; }
.mob-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.38);
  z-index: 298;
}
.mob-nav-backdrop.open { display: block; }

/* ── TABS — mobile = slide-in drawer from right ── */
.wed-tabs-wrap {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100vh;
  overflow-y: auto;
  background: rgba(252,248,242,0.99);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: -6px 0 28px rgba(44,24,16,0.16);
  border-left: 1px solid rgba(184,145,106,0.18);
  z-index: 299;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 14px 10px 24px;
  gap: 3px;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.wed-tabs-wrap.open { transform: translateX(0); }
/* Drawer heading row */
.wed-tabs-drawer-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(184,145,106,0.14);
}
.wed-tabs-drawer-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-4);
}
.wed-tabs-close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(184,145,106,0.2);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-3);
}
.wed-tab {
  flex: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-3);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: var(--f);
  text-align: left;
  letter-spacing: 0.1px;
}
.wed-tab:active { transform: scale(0.97); }
.wed-tab.active {
  background: rgba(255,252,247,0.95);
  color: var(--gold-dark);
  border-color: rgba(184,145,106,0.28);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* ── VENDOR GRID — responsive per category count ── */
.vendor-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .vendor-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .vendor-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .vendor-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── PANELS ──────────────────────────────────── */
.panel { flex: 1; padding: 20px 16px; display: none; }
.panel.active { display: block; }

/* ── STAT STRIP (replaces old box grid) ─────── */
.hero-stats-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(184,145,106,0.18);
}
.hss-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px;
  background: rgba(255,252,247,0.7);
  border-right: 1px solid rgba(184,145,106,0.14);
}
.hss-item:last-child { border-right: none; }
.hss-val {
  font-family: var(--f);
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.3px;
}
.hss-lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ── CANVAS PALETTE MINI ─────────────────────── */
.cfb-palette-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 6px 0 2px;
  margin-top: 6px;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  scrollbar-width: none;
}
.cfb-palette-row::-webkit-scrollbar { display: none; }
.cfb-palette-row:empty { display: none; }
.cfb-pal-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(184,145,106,0.22);
  background: rgba(242,232,213,0.6);
  cursor: pointer;
  font-family: var(--f);
  transition: transform 0.13s;
  flex-shrink: 0;
  min-width: 48px;
}
.cfb-pal-btn:active { transform: scale(0.9); }
.cfb-pal-btn.cfb-pal-active {
  border-color: rgba(90,171,122,0.5);
  background: rgba(90,171,122,0.12);
}
.cfb-pal-emoji { font-size: 16px; line-height: 1; }
.cfb-pal-label { font-size: 8px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.cfb-pal-sub   { font-size: 7px; color: var(--ink-4); white-space: pre; text-align: center; }

/* ── SECTION TITLES ──────────────────────────── */
.sec-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  display: block;
}

/* ── TOAST ───────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(44,24,16,0.90);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 9999;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MODALS ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(44,24,16,0.30);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%;
  max-width: 500px;
  background: var(--ivory);
  border-radius: 20px 20px 0 0;
  padding: 20px 18px 38px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  overscroll-behavior: contain;
  box-shadow: 0 -4px 40px rgba(44,24,16,0.14);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: rgba(44,24,16,0.12);
  margin: 0 auto 18px;
}
.modal-title {
  font-family: var(--f2);
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

/* ── FORM INPUTS ─────────────────────────────── */
.input-group { margin-bottom: 14px; }
.input-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 5px;
}
.glass-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid rgba(184,145,106,0.30);
  background: rgba(255,252,247,0.90);
  font-size: 14px;
  font-family: var(--f);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.glass-input:focus {
  border-color: rgba(184,145,106,0.60);
  box-shadow: 0 0 0 3px rgba(184,145,106,0.10);
}
textarea.glass-input {
  resize: vertical;
  min-height: 72px;
  line-height: 1.55;
  box-sizing: border-box;
}

/* ── BUTTONS ─────────────────────────────────── */
.cta-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(140,102,64,0.25);
  transition: transform 0.15s, opacity 0.15s;
  font-family: var(--f);
  margin-top: 6px;
  letter-spacing: 0.2px;
}
.cta-btn:active { transform: scale(0.97); opacity: 0.92; }
.cta-btn.pink  {
  background: linear-gradient(135deg, var(--rose), var(--pink-deep));
  box-shadow: 0 4px 16px rgba(192,112,104,0.25);
}
.cta-btn.green {
  background: linear-gradient(135deg, var(--sage), var(--green-deep));
  box-shadow: 0 4px 16px rgba(106,142,112,0.25);
}
.icon-btn {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(184,145,106,0.25);
  background: rgba(242,232,213,0.65);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gold-dark);
  transition: transform 0.15s;
  font-family: var(--f);
}
.icon-btn:active { transform: scale(0.93); }
.split-btn {
  flex: 1;
  padding: 9px 8px;
  border-radius: var(--r-md);
  border: 1px solid rgba(184,145,106,0.22);
  background: rgba(242,232,213,0.50);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--f);
}
.split-btn.selected, .split-btn.active {
  background: rgba(184,145,106,0.22);
  border-color: rgba(184,145,106,0.45);
  color: var(--gold-dark);
}

/* ── CANVAS ──────────────────────────────────── */
.canvas-section { padding: 0; }
/* ── SEATING PANEL LAYOUT ────────────────────── */
#seating-layout {
  display: flex;
  flex-direction: column;
}
#seating-canvas-col  { flex: 1; min-width: 0; }
#seating-sidebar-col { flex-shrink: 0; }

.canvas-hint {
  font-size: 11px;
  color: var(--ink-4);
  margin: 6px 0 8px;
  text-align: center;
  line-height: 1.5;
}

/* ── CANVAS SCENE (canvas + float bar wrapper) ── */
#canvas-scene {
  position: relative;
  display: flex;
  flex-direction: column;
}
#canvas-scene #canvas-wrap {
  margin-bottom: 0;
  flex: 1;
}

#canvas-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(184,145,106,0.25);
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  position: relative;
}
#seating-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
  touch-action: none;
}
#seating-canvas:active { cursor: grabbing; }

/* ── FLOATING CANVAS TOOL BAR ────────────────── */
#canvas-float-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 10;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  box-shadow: 0 2px 16px rgba(44, 31, 14, 0.14);
  padding: 8px 10px;
}
.cfb-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.cfb-btn {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(184, 145, 106, 0.25);
  background: rgba(242, 232, 213, 0.7);
  color: var(--gold-dark);
  transition: transform 0.15s;
  font-family: var(--f);
  white-space: nowrap;
  line-height: 1.2;
}
.cfb-btn:active  { transform: scale(0.93); }
.cfb-btn.cfb-save   { background: rgba(90,171,122,0.12); border-color: rgba(90,171,122,0.3); color: var(--green-deep); }
.cfb-btn.cfb-danger { background: rgba(252,232,238,0.7); border-color: rgba(224,120,152,0.28); color: var(--pink-deep); }
.cfb-sep {
  width: 1px;
  height: 18px;
  background: rgba(184, 145, 106, 0.3);
  margin: 0 3px;
  flex-shrink: 0;
  align-self: stretch;
}
.cfb-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-4);
  min-width: 34px;
  text-align: center;
}
/* Canvas actions slot — separator when populated */
#canvas-float-bar #canvas-actions:not(:empty) {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}
.furniture-palette {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.furniture-palette::-webkit-scrollbar { display: none; }

/* ── RSVP CARD ───────────────────────────────── */
#rsvp-canvas {
  display: block;
  border-radius: var(--r-xl);
  max-width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.rsvp-actions { display: flex; gap: 10px; margin-top: 16px; }
.rsvp-action-btn {
  flex: 1;
  padding: 13px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
  font-family: var(--f);
}
.rsvp-action-btn:active { transform: scale(0.96); opacity: 0.88; }
.rsvp-btn-save  { background: linear-gradient(135deg,var(--gold),var(--gold-dark)); color: white; }
.rsvp-btn-share { background: linear-gradient(135deg,#1877F2,#4267B2); color: white; }

/* ── GUEST ACTIONS COLUMN ────────────────────── */
.guest-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .guest-actions-col {
    flex-direction: row;
    align-items: center;
  }
}

/* ── GUEST CARD — MOBILE COMPACT ────────────────── */
/* Tags row and chevron base */
.gc-tags-row    { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.gc-mobile-hint { display: none; }
.gc-mobile-actions { display: none; }
.gc-chevron {
  font-size: 11px;
  color: var(--ink-4);
  transition: transform 0.22s ease;
  line-height: 1;
  margin-top: 1px;
}

@media (max-width: 899px) {
  /* ── Hero: clear fixed header + compact height ── */
  .wedding-hero {
    padding: 85px 20px 16px;
  }
  /* Names on one line — row layout */
  .wedding-couple-names {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .hero-name-line {
    font-size: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }
  .wedding-amp {
    font-size: 22px;
    margin: 0;
    flex-shrink: 0;
  }
  .hero-of-label { margin-bottom: 4px; }
  .hero-rule     { margin: 6px auto 4px; }
  .wedding-countdown { margin-top: 4px; }

  /* ── Guest cards: compact + tappable ─────────── */
  .gc-tags-row       { display: none; }
  .guest-actions-col { display: none; }

  /* Show RSVP emoji + expand chevron */
  .gc-mobile-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* Card looks tappable */
  .guest-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(184,145,106,0.12);
    user-select: none;
  }

  /* Expanded state: reveal tags, action buttons, rotate chevron */
  .guest-card.gc-expanded .gc-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
  }
  .guest-card.gc-expanded .gc-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 5px 10px 6px;
    border-top: 1px solid rgba(184,145,106,0.1);
    background: rgba(255,255,255,0.6);
  }
  .guest-card.gc-expanded .gc-chevron {
    transform: rotate(180deg);
  }
}

/* ── PROGRESS ────────────────────────────────── */
.progress-bar-wrap {
  height: 6px;
  border-radius: 3px;
  background: rgba(44,24,16,0.07);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width 0.5s ease;
}

/* ── BUDGET HERO ─────────────────────────────── */
.budget-hero {
  padding: 20px 16px 18px;
  background: linear-gradient(135deg,
    rgba(242,232,213,0.95) 0%,
    rgba(218,232,220,0.80) 100%);
  border-radius: var(--r-xl);
  border: 1px solid rgba(184,145,106,0.20);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

/* ── SCHEDULE TIMELINE ───────────────────────── */
.timeline-dot {
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(184,145,106,0.30),
    rgba(184,145,106,0.06));
  border-radius: 1px;
  min-height: 50px;
  flex-shrink: 0;
  margin-top: 14px;
}

/* ── EMPTY STATES ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 20px;
}
.empty-state .empty-emoji { display: none; }
.empty-state::before {
  content: '◇';
  display: block;
  font-size: 28px;
  color: var(--gold-light);
  margin-bottom: 20px;
  letter-spacing: 4px;
}
.empty-state .empty-title {
  font-family: var(--f2);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.empty-state .empty-sub {
  font-size: 13px;
  color: var(--ink-4);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── FOOTER ──────────────────────────────────── */
.app-footer {
  text-align: center;
  padding: 18px;
  font-size: 11px;
  color: var(--ink-4);
  border-top: 1px solid rgba(184,145,106,0.10);
}
.app-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

/* ── ASSIGN ROW ──────────────────────────────── */
.assign-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-md);
  margin-bottom: 7px;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (min-width: 640px) {
  .app-shell { box-shadow: 0 0 60px rgba(44,24,16,0.10); }
  .panel { padding: 24px 20px; }
  .hero-name-line { font-size: 62px; }
  .lp-headline { letter-spacing: -2.5px; }
}

@media (min-width: 1024px) {
  body { background: #EAE0CE; }
  .app-shell { margin: 0 auto; }
  .lp-features { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ── MOBILE BASE — left panel is a normal column ── */
.app-left-panel {
  display: flex;
  flex-direction: column;
}
.app-main {
  flex: 1;
}
/* Desktop sidebar footer + ad hidden on mobile */
.app-left-footer-desktop { display: none; }
.sidebar-ad-slot { display: none; }
.app-right-panel { display: none; }

/* ── DESKTOP SIDEBAR LAYOUT (≥ 900px) ─────────── */
@media (min-width: 900px) {
  /* Shell becomes a horizontal flex container */
  .app-shell {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    box-shadow: none;
  }

  /* ── Left sidebar ── */
  .app-left-panel {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: rgba(250,246,238,0.98);
    border-right: 1px solid rgba(184,145,106,0.16);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(184,145,106,0.3) transparent;
  }
  .app-left-panel::-webkit-scrollbar { width: 4px; }
  .app-left-panel::-webkit-scrollbar-thumb { background: rgba(184,145,106,0.3); border-radius: 2px; }

  /* Header inside sidebar — not fixed, normal flow */
  .app-left-panel .app-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px 10px;
    gap: 10px;
    border-bottom: 1px solid rgba(184,145,106,0.14);
  }
  /* Reset hero padding on desktop — sidebar layout has no fixed header offset */
  .app-left-panel .wedding-hero { padding-top: 52px; }
  .app-left-panel .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .app-left-panel .header-btn-row {
    width: 100%;
  }
  .app-left-panel .header-btn-row #auth-header-btn,
  .app-left-panel .header-btn-row .btn-edit-details {
    flex: 1;
    padding: 7px 8px;
    font-size: 11.5px;
  }

  /* Wedding hero — compact in sidebar */
  .app-left-panel .wedding-hero {
    padding: 24px 14px 20px;
    border-bottom: 1px solid rgba(184,145,106,0.10);
  }
  .app-left-panel .hero-name-line {
    font-size: 24px;
    letter-spacing: -0.5px;
  }
  .app-left-panel .wedding-amp { font-size: 16px; margin: 1px 0; }
  .app-left-panel .hero-rule { max-width: 180px; }

  /* Hamburger hidden on desktop */
  .mob-nav-btn { display: none; }
  .mob-nav-backdrop { display: none !important; }
  .wed-tabs-drawer-hdr { display: none !important; }

  /* Tabs become vertical nav list */
  .app-left-panel .wed-tabs-wrap {
    position: relative;
    top: auto;
    right: auto;
    z-index: auto;
    width: auto;
    height: auto;
    transform: none;
    transition: none;
    box-shadow: none;
    border-left: none;
    flex-direction: column;
    flex-wrap: nowrap !important;
    padding: 10px 10px;
    gap: 2px;
    background: transparent;
    border-bottom: none;
    flex: 1;
  }
  .app-left-panel .wed-tab {
    flex: none !important;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: var(--r-md);
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Sidebar footer */
  /* ── Sidebar ad slot ── */
  .sidebar-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px 4px;
    flex-shrink: 0;
  }
  .sidebar-ad-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ink-4);
    margin-bottom: 5px;
    align-self: flex-start;
  }
  .sidebar-ad-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 2px 10px rgba(44,31,14,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .sidebar-ad-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(44,31,14,0.14);
  }
  .sidebar-ad-img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
  }

  .app-left-footer-desktop {
    display: block;
    padding: 12px 14px;
    font-size: 10.5px;
    color: var(--ink-4);
    border-top: 1px solid rgba(184,145,106,0.12);
    line-height: 1.5;
    flex-shrink: 0;
  }
  .app-left-footer-desktop a { color: var(--gold); text-decoration: none; }

  /* ── Main content area ── */
  .app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: rgba(242,232,213,0.78);
  }

  /* Panels — no max-width, fill available space */
  .app-main .panel {
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 32px;
    min-height: calc(100vh - 80px);
  }
  .app-main #panel-seating {
    padding: 0;
    flex: 1;
    min-height: calc(100vh - 0px);
  }

  /* ── Seating inside app-main ── */
  #panel-seating { padding-bottom: 0; }

  #seating-layout {
    flex-direction: row;
    align-items: flex-start;
    min-height: calc(100vh - 0px);
  }

  #seating-canvas-col {
    flex: 1;
    padding: 20px 8px 20px 20px !important;
  }

  #seating-sidebar-col {
    width: 300px;
    flex-shrink: 0;
    padding: 20px 20px 80px 8px !important;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
  }
  #seating-sidebar-col::-webkit-scrollbar { width: 4px; }
  #seating-sidebar-col::-webkit-scrollbar-thumb { background: rgba(184,145,106,0.3); border-radius: 2px; }

  /* Canvas scene fills viewport height */
  #canvas-scene {
    height: calc(100vh - 130px);
    min-height: 480px;
  }
  #canvas-scene #canvas-wrap {
    height: 100% !important;
    min-height: 0;
    flex: 1;
  }
  #seating-canvas { height: 100% !important; }

  /* Hide drag-to-resize handle on desktop */
  #canvas-resize-handle { display: none; }

  /* app-footer inside app-main */
  .app-main .app-footer { margin-top: auto; }

  /* ── Right panel (Invite Builder + Notes) ── */
  .app-right-panel {
    display: flex;
    flex-direction: row;
    width: 450px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    border-left: 1px solid rgba(184,145,106,0.15);
    background: rgba(250,246,238,0.98);
    z-index: 90;
  }
  #rp-resize-handle {
    width: 10px;
    flex-shrink: 0;
    cursor: ew-resize;
    background: rgba(184,145,106,0.07);
    border-left: 1px solid rgba(184,145,106,0.18);
    transition: background 0.15s, border-color 0.15s;
    align-self: stretch;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #rp-resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 28px;
    background: repeating-linear-gradient(
      to bottom,
      rgba(184,145,106,0.45) 0px,
      rgba(184,145,106,0.45) 2.5px,
      transparent 2.5px,
      transparent 6px
    );
    border-radius: 2px;
    pointer-events: none;
  }
  #rp-resize-handle:hover, #rp-resize-handle.dragging {
    background: rgba(184,145,106,0.18);
    border-color: rgba(184,145,106,0.4);
  }
  #rp-resize-handle:hover::after, #rp-resize-handle.dragging::after {
    background: repeating-linear-gradient(
      to bottom,
      rgba(184,145,106,0.75) 0px,
      rgba(184,145,106,0.75) 2.5px,
      transparent 2.5px,
      transparent 6px
    );
  }
  .rp-scroll-body {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(184,145,106,0.3) transparent;
  }
  .rp-scroll-body::-webkit-scrollbar { width: 4px; }
  .rp-scroll-body::-webkit-scrollbar-thumb { background: rgba(184,145,106,0.3); border-radius: 2px; }

  /* Hide Notes tab from left nav — it lives in the right panel */
  #tab-notes { display: none; }
}

/* Override 1024px block that adds margin: 0 auto */
@media (min-width: 1024px) {
  .app-shell { margin: 0; }
}

/* ═══════════════════════════════════════════════
   CALENDAR / PROGRAM STYLES
   ═══════════════════════════════════════════════ */

/* Toolbar row above calendar */
.sched-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}
.sched-view-switcher {
  display: flex;
  gap: 3px;
  background: rgba(242,232,213,0.55);
  border: 1px solid rgba(201,169,110,0.22);
  border-radius: var(--r-md);
  padding: 3px;
}
.sched-vbtn {
  padding: 6px 13px;
  border-radius: calc(var(--r-md) - 2px);
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  font-family: var(--f);
  transition: all 0.15s;
}
.sched-vbtn-active {
  background: rgba(255,252,247,0.95);
  color: var(--gold-dark);
  box-shadow: 0 1px 4px rgba(44,24,16,0.10);
}
.sched-add-btn {
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: rgba(242,232,213,0.65);
  border: 1px solid rgba(201,169,110,0.28);
  font-size: 12px;
  font-weight: 700;
  color: var(--tan-dark);
  cursor: pointer;
  font-family: var(--f);
  white-space: nowrap;
}

/* Calendar navigation header */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 4px 0;
}
.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(184,145,106,0.25);
  background: rgba(242,232,213,0.55);
  font-size: 18px;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f);
  line-height: 1;
  transition: background 0.15s;
}
.cal-nav-btn:hover { background: rgba(242,232,213,0.9); }
.cal-nav-title {
  font-family: var(--f2);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  flex: 1;
}

/* ── Monthly grid ── */
.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 12px;
}
.cal-month-dow {
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-4);
  padding: 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cal-month-cell {
  min-height: 54px;
  border-radius: 8px;
  padding: 5px 4px 3px;
  background: rgba(255,252,247,0.65);
  border: 1px solid rgba(184,145,106,0.10);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: background 0.15s;
  position: relative;
}
.cal-month-cell:hover { background: rgba(242,232,213,0.65); }
.cal-month-empty {
  background: transparent !important;
  border-color: transparent !important;
  cursor: default;
  pointer-events: none;
}
.cal-today {
  background: rgba(242,232,213,0.85) !important;
  border-color: rgba(184,145,106,0.30) !important;
}
.cal-wed-day {
  background: rgba(234,192,186,0.28) !important;
  border-color: rgba(192,112,104,0.30) !important;
}
.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.cal-dots {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}
.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: var(--gold);
}
.cal-wed-badge { font-size: 9px; line-height: 1; }
.cal-month-hint {
  font-size: 10px;
  color: var(--ink-4);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

/* Wedding day banner */
.cal-wed-banner {
  text-align: center;
  padding: 9px 16px;
  border-radius: var(--r-md);
  background: rgba(234,192,186,0.32);
  border: 1px solid rgba(192,112,104,0.22);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 14px;
}

/* ── Weekly grid ── */
.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.cal-week-col {
  min-width: 82px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(184,145,106,0.12);
  background: rgba(255,252,247,0.65);
}
.cal-week-today {
  background: rgba(242,232,213,0.75) !important;
  border-color: rgba(184,145,106,0.28) !important;
}
.cal-week-wedday {
  background: rgba(234,192,186,0.22) !important;
  border-color: rgba(192,112,104,0.28) !important;
}
.cal-week-header {
  text-align: center;
  padding: 8px 4px;
  background: rgba(242,232,213,0.45);
  border-bottom: 1px solid rgba(184,145,106,0.12);
  cursor: pointer;
  transition: background 0.15s;
}
.cal-week-header:hover { background: rgba(242,232,213,0.75); }
.cal-week-dow {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cal-week-daynum {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.cal-today-num { color: var(--gold-dark); }
.cal-week-events {
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 60px;
}
.cal-week-event {
  padding: 5px 6px;
  border-radius: 5px;
  background: rgba(255,252,247,0.9);
  border: 1px solid rgba(184,145,106,0.14);
  cursor: pointer;
  transition: background 0.12s;
}
.cal-week-event:hover { background: rgba(242,232,213,0.7); }
.cal-week-event-time {
  font-size: 9px;
  color: var(--ink-4);
  font-weight: 700;
}
.cal-week-event-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
  word-break: break-word;
}
.cal-week-empty {
  font-size: 11px;
  color: var(--ink-4);
  text-align: center;
  padding: 12px 0;
  opacity: 0.5;
}

/* Daily view timeline */
.cal-day-timeline { margin-top: 4px; }

/* ── HEADER ACTIONS — stable layout, no shift ─── */
.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cloud-indicator {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold-dark);
  min-height: 13px;
  line-height: 13px;
  white-space: nowrap;
  text-align: right;
  letter-spacing: 0.2px;
}
.header-btn-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.header-btn-row #auth-header-btn,
.header-btn-row .btn-edit-details {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}
/* Desktop: show text, hide icon-only span */
.hdr-btn-icon { display: none; }
.hdr-btn-text { display: inline; }

/* ── MOBILE HEADER: icon-only buttons (< 900px) ── */
@media (max-width: 899px) {
  /* Hide text labels — show only icons */
  .auth-btn-text { display: none !important; }
  .hdr-btn-text  { display: none !important; }
  .hdr-btn-icon  { display: inline; }
  /* Compact icon button sizing */
  #auth-header-btn { padding: 7px 9px; gap: 0; min-width: 36px; }
  .btn-edit-details { padding: 7px 9px; min-width: 36px; font-size: 15px; }
  .mob-nav-btn { padding: 7px 10px; }
}

/* ── EXPENSE ACTIONS — always a row ───────────── */
.expense-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

/* ── BUDGET CATEGORY GRID ─────────────────────── */
.budget-cat-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
/* 2-col: exactly 2 categories */
.budget-cat-grid[data-cols="2"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
/* 3-col: exactly 3 categories — drops to 2-col on mobile */
.budget-cat-grid[data-cols="3"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
/* 4-col: 4 or more categories — drops to 2-col on mobile */
.budget-cat-grid[data-cols="4"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
/* Mobile: cap at 2 columns */
@media (max-width: 479px) {
  .budget-cat-grid[data-cols="3"],
  .budget-cat-grid[data-cols="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Compact card layout for all multi-col grids */
.budget-cat-grid[data-cols="2"] .bcat-card,
.budget-cat-grid[data-cols="3"] .bcat-card,
.budget-cat-grid[data-cols="4"] .bcat-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.budget-cat-grid[data-cols="2"] .bcat-card .bcat-row,
.budget-cat-grid[data-cols="3"] .bcat-card .bcat-row,
.budget-cat-grid[data-cols="4"] .bcat-card .bcat-row {
  width: 100%;
  justify-content: space-between;
}
/* Card is the receipt — show pointer + hover lift */
.bcat-card {
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.bcat-card:active { transform: scale(0.97); }

/* ── GALLERY ──────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(184,145,106,0.15);
  background: rgba(242,232,213,0.3);
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.18s;
}
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-thumb-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(44,24,16,0.52));
  font-size: 10px;
  color: rgba(255,252,247,0.92);
  font-weight: 600;
  line-height: 1.3;
}

/* ── INVITATION CARD SIZE ────────────────────── */
#rsvp-preview-img, .inv-card-img { width: 100%; display: block; }
@media (min-width: 600px) {
  #rsvp-preview-img, .inv-card-img { width: 55%; margin: 0 auto; }
}

/* ── MOSAIC PHOTOS ───────────────────────────── */
.lp-mosaic-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-mosaic-bw  { filter: grayscale(100%); }

/* ── GUEST GROUP HEADER ──────────────────────── */
.guest-group-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  margin-bottom: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(242,232,213,0.45);
  border-bottom: 1px solid rgba(184,145,106,0.18);
}

/* ── INVITATION BUILDER TWO-COLUMN ───────────── */
.inv-builder-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 600px) {
  .inv-builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
}

/* ── EVENT OVERVIEW CARD STATS ───────────────── */
.ev-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(184,145,106,0.18);
  margin-bottom: 12px;
}
.ev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  background: rgba(255,252,247,0.7);
  border-right: 1px solid rgba(184,145,106,0.14);
}
.ev-stat:last-child { border-right: none; }

/* Mobile: countdown spans full width on top, 3 stats below */
@media (max-width: 479px) {
  .ev-stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .ev-stat:first-child {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid rgba(184,145,106,0.14);
    padding: 12px 8px 10px;
  }
  .ev-stat:first-child .ev-stat-val {
    font-size: 26px;
  }
  .ev-stat:first-child .ev-stat-lbl {
    font-size: 9px;
  }
}
.ev-stat-val {
  font-family: var(--f);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.4px;
}
.ev-stat-lbl {
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
