:root {
  --navy: #183576;
  --navy-deep: #0e2458;
  --pink: #ed1680;
  --pink-dark: #cf0d69;
  --pink-soft: #fce7f2;
  --ivory: #f7f3ed;
  --sand: #e8ded2;
  --blue-wash: #edf2fb;
  --ink: #171a24;
  --muted: #686d79;
  --line: #dedfe4;
  --white: #ffffff;
  --green: #2c7a4b;
  --container: min(1400px, calc(100% - 40px));
  --shadow: 0 24px 60px rgba(13, 32, 77, .12);

  /* Design-system tokens (dashboard redesign) — 8pt spacing scale, a real
     radius scale to replace the previously-ungoverned spread of one-off
     values, and a shadow scale that extends --shadow rather than
     replacing it (--shadow stays the modal/dropdown elevation it already
     was everywhere it's used). */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(13, 32, 77, .06);
  --shadow-lg: 0 30px 70px rgba(13, 32, 77, .18);

  /* Semantic status colors — .status's yes/pending/no previously set text
     color only, no background, so they never actually read as filled
     pills. */
  --success: #1f7a49;
  --success-bg: #e5f5ec;
  --warning: #8b6419;
  --warning-bg: #fbf1de;
  --danger: #ab3d4d;
  --danger-bg: #fbe9ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:  "Apercu Pro", "Apercu", "Plus Jakarta Sans", Helvetica, Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }

/* Typography */
h1, h2, h3, h4, h5, h6, .page-title, .section-title,
.builder-preview-section h3, .builder-wedding-hero h2 {
  font-family:  "Apercu Pro", "Apercu", "Plus Jakarta Sans", Helvetica, Arial;
}
h1, h2, h3, .page-title, .section-title {
  font-weight: 650;
  letter-spacing: -.035em;
}
.page-title { margin: 0; color: var(--navy-deep); line-height: .98; font-size: clamp(3.4rem, 6vw, 4.4rem) }
.section-title {
  max-width: 720px;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2.55rem, 4.5vw, 4.75rem);
  line-height: .98;
}
.section-copy { max-width: 610px; margin: 22px 0 0; color: var(--muted); font-size: 1.04rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--pink); }
.muted { color: var(--muted); }
.lead { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }

/* Buttons & Links */
.btn {
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.btn-primary { color: #fff; background: var(--pink); }
.btn-primary:hover { background: var(--pink-dark); }
.btn-secondary { color: var(--navy); background: #fff; border-color: rgba(24,53,118,.25); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-dark { color: #fff; background: var(--navy-deep); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; }

/* Grid / Layout */
.section { padding: 110px 0; }
.section.ivory { background: var(--ivory); }
.section.blue { background: var(--blue-wash); }
.section.navy { background: var(--navy-deep); color: #fff; }
.section.navy .section-title, .section.navy .eyebrow { color: #fff; }
.section.navy .lead, .section.navy .section-copy { color: #c8d2e6; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 78px; align-items: center; }
.split.reverse { grid-template-columns: 1.15fr .85fr; }
.stack { display: grid; gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.split .ui-shell { min-width: 0; width: 100%; overflow: hidden; }
.card { padding: 28px; border: 1px solid var(--line); background: #fff; }
.card h3 { margin: 0 0 10px; color: var(--navy-deep); }
.card p { margin: 0; color: var(--muted); }
.card-step { display: grid; grid-template-columns: min-content 1fr; gap: 24px; align-items: flex-start; }
@media (min-width: 768px) { .card-step { grid-template-columns: min-content 1fr; gap: 40px; align-items: center; } }
.card-number { font-family: "Apercu Pro", "Apercu", "Plus Jakarta Sans", Helvetica, Arial;; font-size: 2.4rem; color: var(--pink); font-weight: 400; }
/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222,223,228,.9);
  border-top: 2px solid var(--navy);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; position: relative; }

.header-left { display: flex; align-items: center; gap: 30px; font-size: .9rem; font-weight: 700; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.header-link, .nav-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #171717;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}
.header-link:hover, .nav-trigger:hover { color: var(--navy); }

.login { padding: 10px 8px; color: var(--navy); font-weight: 700; }
.header-cta {
  min-height: 48px;
  padding-inline: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.header-cta:hover { background: var(--pink-dark); }

.nav-dropdown { position: relative; }
.chevron { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown-menu {
  position: absolute;
  left: -18px;
  top: calc(100% + 10px);
  z-index: 120;
  width: 280px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(13,32,77,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 13px 14px; border-radius: 9px; }
.dropdown-menu a:hover { background: var(--ivory); }
.dropdown-menu b { display: block; color: var(--navy-deep); font-size: .88rem; }
.dropdown-menu small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 500; }

.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 23px; height: 2px; background: var(--navy); position: relative; margin: auto; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.mobile-menu { display: none; }
.mobile-label { margin-top: 12px; color: var(--pink); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* Bridal Banda Overlay Brand Header (Cleaned up cascade) */
.brand-header {
  position: sticky;
  top: 0;
  z-index: 120;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.28);
  background: #0D2458;
  backdrop-filter: none;
}
.brand-header .header-inner { padding-left: 258px; }
.brand-overlap {
  position: absolute;
  left: 0;
  top: 8px;
  z-index: 3;
  width: 228px;
  pointer-events: auto;
}
.brand-overlap img { width: 70%; height: auto; object-fit: contain; }

.brand-header .header-left { margin-left: auto; color: #fff; font-size: .92rem; }
.brand-header .header-link,
.brand-header .nav-trigger { color: #fff; }
.brand-header .header-link:hover,
.brand-header .nav-trigger:hover { opacity: .78; color: #fff; }

.brand-header .login { color: #fff; }
.brand-header .header-cta {
  border: 1px solid #fff;
  color: #d82e89;
  background: #fff;
}
.brand-header .header-cta:hover { transform: translateY(-1px); background: #fff5fa; }
.brand-header .dropdown-menu { z-index: 130; }
.brand-header .dropdown-menu a { color: var(--ink); }

.brand-header .menu-btn span,
.brand-header .menu-btn span::before,
.brand-header .menu-btn span::after { background: #fff; }

.brand-header .mobile-menu { background: #0D2458; border-top: 1px solid rgba(255,255,255,.28); color: #fff; }
.brand-header .mobile-label { color: #ffd6ec; }
.brand-header .mobile-login,
.brand-header .mobile-start {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.brand-header .mobile-start { color: var(--navy-deep); background: #fff; }

/* Home / Marketing Hero */
.hero { background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: start; min-height: 620px; }
.hero-copy {
  padding: 120px clamp(46px, 5vw, 84px) 64px max(20px, calc((100vw - 1400px)/2));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
}
.hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--navy-deep);
  font-size: 4em;
  line-height: 1;
}
.hero h1 em { color: var(--pink); font-style: normal; }
.hero-sub { max-width: 540px; margin: 26px 0 0; color: #565c68; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  transition: color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hero-feature svg { width: 22px; height: 22px; color: var(--pink); flex-shrink: 0; transition: transform .18s ease; }
.hero-feature:hover { color: var(--navy-deep); box-shadow: var(--shadow); transform: translateY(-2px); }
.hero-feature:hover svg { transform: scale(1.12); }
.hero-media { position: relative; min-height: 670px; overflow: hidden; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(247,243,237,.18), transparent 30%), linear-gradient(180deg, transparent 58%, rgba(7,20,49,.38));
}
.hero-slide { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide-progress { position: absolute; left: 34px; right: 34px; top: 24px; z-index: 2; display: flex; gap: 6px; }
.hero-slide-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero-slide-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.hero-slide-bar.done i { width: 100%; transition: none; }
.hero-slide-bar.active i { width: 100%; transition: width 4.5s linear; }
.hero-caption {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
.hero-caption strong { display: block; font-family: "Apercu Pro", "Apercu", "Plus Jakarta Sans", Helvetica, Arial;; font-size: 1.9rem; font-weight: 400; line-height: 1; }
.hero-caption small { display: block; margin-top: 7px; opacity: .82; }
.hero-preview {
  width: 260px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  background: rgba(255,255,255,.93);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.hero-preview-top b { color: var(--navy-deep); font-size: .8rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #267646; font-size: .66rem; font-weight: 700; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3caf69; }
.hero-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.hero-preview-grid div { padding: 9px 7px; border-radius: 7px; background: #f4f6fa; }
.hero-preview-grid b { display: block; color: var(--navy-deep); font-size: .8rem; }
.hero-preview-grid span { color: #7c818c; font-size: .55rem; }

/* Page Hero (Standard) */
.page-hero { padding: 96px 0 84px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.hero-panel { min-height: 470px; padding: 28px; background: var(--blue-wash); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.hero-panel.navy { background: var(--navy-deep); }

/* Planning Suite Section */
.planning-suite { padding: 10px 0; background: #fff; border-bottom: 1px solid var(--line); }
.planning-suite-shell {
  display: grid;
  grid-template-columns: 1fr;
  /* border: 1px solid var(--line); */
  background: #fff;
}
.planning-suite-intro {
  padding: 64px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.planning-suite-intro h2 { margin: 0; max-width: 680px; color: var(--navy-deep); font-size: clamp(2.1rem, 2.6vw, 2.9rem); line-height: 1.05; }
.planning-suite-intro p { margin: 20px 0 0; max-width: 620px; color: var(--ink); font-size: clamp(1.05rem, 1.35vw, 1.28rem); line-height: 1.48; }
.planning-suite-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.suite-card {
  min-width: 0;
  min-height: 380px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: background .2s ease;
}
.suite-card:nth-child(odd) { border-right: 1px solid var(--line); }
.suite-card:nth-last-child(-n+2) { border-bottom: 0; }
.suite-card:hover { background: #fbfaf8; }
.suite-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 600;
}
.suite-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ivory);
  color: var(--navy-deep);
  transition: background .2s ease, color .2s ease;
}
.suite-icon svg { width: 18px; height: 18px; }
.suite-card:hover .suite-icon { background: var(--pink); color: #fff; }
.suite-card-copy { margin: 5px 0 22px; color: #4f5561; font-size: .9rem; }
.suite-media {
  position: relative;
  height: 245px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--ivory);
}
.suite-media > img { width: 100%; height: 100%; object-fit: cover; }
.suite-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(7,20,49,.15)); pointer-events: none; }

.suite-product-chip, .suite-site-card, .suite-guest-chip, .suite-budget-chip {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border: 1px solid rgba(18,28,51,.28);
  box-shadow: 0 12px 28px rgba(16,30,68,.14);
}
.suite-product-chip {
  left: 50%;
  top: 50%;
  width: 154px;
  padding: 11px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  text-align: center;
}
.suite-product-chip img { height: 84px; object-fit: contain; border-radius: 8px; background: #f7f5f1; }
.suite-product-chip b { display: block; margin-top: 8px; color: var(--navy-deep); font-size: .78rem; }
.suite-product-chip span { display: inline-block; margin-top: 7px; padding: 5px 12px; border: 1px solid var(--navy-deep); border-radius: 999px; background: #edf8ed; font-size: .66rem; font-weight: 700; }
.suite-site-card { inset: 20px 28px; overflow: hidden; border-radius: 15px; }
.suite-site-bar { height: 30px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #dddfe4; font-size: .58rem; font-weight: 700; }
.suite-site-image { height: calc(100% - 30px); padding: 18px; display: grid; place-items: center; color: #fff; text-align: center; background: linear-gradient(rgba(8,23,55,.18), rgba(8,23,55,.38)), url("public/wedding-home-hero-web.jpg") center/cover; }
.suite-site-image strong { font-size: 2rem; font-weight: 400; line-height: 1; }
.suite-site-image small { display: block; margin-top: 6px; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.suite-guest-chip { left: 20px; right: 20px; bottom: 18px; padding: 11px 13px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.suite-avatars { display: flex; }
.suite-avatars i { width: 27px; height: 27px; margin-left: -7px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: #f4cadf; font-style: normal; font-size: .54rem; font-weight: 800; }
.suite-avatars i:first-child { margin-left: 0; }
.suite-guest-chip b { color: var(--navy-deep); font-size: .74rem; }
.suite-budget-chip { left: 18px; bottom: 18px; padding: 11px 14px; border-radius: 12px; }
.suite-budget-chip b { display: block; color: var(--navy-deep); font-size: .75rem; }
.suite-budget-chip span { color: var(--pink); font-size: .64rem; font-weight: 700; }

/* Product Showcase */
.showcase { padding: 118px 0; overflow: hidden; }
.showcase.ivory { background: var(--ivory); }
.showcase.navy { color: #fff; background: var(--navy-deep); }
.showcase.blue { background: var(--blue-wash); }
.showcase-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 78px; align-items: center; }
.showcase-grid.reverse { grid-template-columns: 1.18fr .82fr; }
.showcase.navy .section-title, .showcase.navy .eyebrow, .showcase.navy .text-link { color: #fff; }
.showcase.navy .section-copy { color: #c7d1e6; }
.bullet-list { margin: 30px 0 34px; padding: 0; list-style: none; display: grid; gap: 13px; color: #555c68; }
.showcase.navy .bullet-list { color: #d3dced; }
.bullet-list li { position: relative; padding-left: 22px; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

/* Showcase Components */
.browser { border: 1px solid rgba(18,38,89,.14); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.browser-top { height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #ececef; }
.browser-top i { width: 7px; height: 7px; border-radius: 50%; background: #d8dae1; }
.site-builder { display: grid; grid-template-columns: 150px 1fr; min-height: 470px; }
.builder-panel { padding: 20px 15px; background: #f6f7f9; border-right: 1px solid #e7e8ec; }
.builder-panel b { color: var(--navy-deep); font-size: .72rem; }
.builder-item { margin-top: 12px; padding: 9px 10px; border-radius: 7px; color: #6e7481; background: #fff; font-size: .64rem; }
.builder-item.active { color: var(--navy); background: var(--pink-soft); }
.builder-canvas {
  min-height: 470px;
  padding: 32px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(rgba(11,29,69,.24), rgba(11,29,69,.34)), url("public/wedding-faq-hero-web.jpg"), url("public/hero-wedding-fallback.png");
  background-position: center, center, center;
  background-size: cover, cover, cover;
}
.builder-canvas small { letter-spacing: .16em; text-transform: uppercase; }
.builder-canvas h3 { margin: 12px 0 4px; font-size: 4rem; line-height: 1; }
.builder-canvas button { width: fit-content; min-height: 38px; margin: 22px auto 0; padding: 0 17px; border: 0; border-radius: 7px; color: var(--navy); background: #fff; font-weight: 700; font-size: .7rem; }

.guest-panel { padding: 25px; border-radius: 14px; background: #f8f9fb; color: var(--ink); box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.guest-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.guest-head h3 { margin: 0; color: var(--navy-deep); }
.guest-head button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 7px; color: #fff; background: var(--pink); font-weight: 700; font-size: .72rem; }
.guest-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 15px; }
@media (max-width: 768px) { .guest-stats { grid-template-columns: 1fr 1fr; } }
.guest-stats div { padding: 13px; border: 1px solid #e9eaf0; background: #fff; }
.guest-stats b { display: block; color: var(--navy-deep); font-size: 1.05rem; }
.guest-stats span { color: #808591; font-size: .62rem; }
.guest-table { border: 1px solid #e8e9ed; background: #fff; }
.guest-row { display: grid; grid-template-columns: 1.4fr .9fr .8fr; gap: 8px; align-items: center; padding: 13px 14px; border-bottom: 1px solid #eff0f3; font-size: .72rem; }
.guest-row:last-child { border-bottom: 0; }
.guest-row.header { color: #8a8f9a; background: #fafbfc; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.person { display: flex; align-items: center; gap: 9px; }
.status { width: fit-content; padding: 4px 10px; border-radius: var(--radius-full); font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.yes, .yes { color: var(--success); }
.status.pending, .pending { color: var(--warning); }
.status.no, .no { color: var(--danger); }
.status.yes { background: var(--success-bg); }
.status.pending { background: var(--warning-bg); }
.status.no { background: var(--danger-bg); }
/* Guest RSVP status <select> (guests.ejs) — same status vocabulary as
   .status above, applied to a real form control rather than a span, so it
   previously had zero matching CSS and fell back to the browser's plain
   default <select> chrome. */
.status-select {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-full); background: #fff;
  font-size: .74rem; font-weight: 700; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.status-select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--blue-wash); }
.status-select.status-attending { color: var(--success); background: var(--success-bg); border-color: transparent; }
.status-select.status-pending { color: var(--warning); background: var(--warning-bg); border-color: transparent; }
.status-select.status-declined { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.rsvp-update { margin-top: 12px; padding: 12px 13px; border-left: 3px solid #3caf69; background: #fff; font-size: .7rem; }

.registry-visual { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.registry-photo { min-height: 500px; overflow: hidden; }
.registry-photo img { height: 100%; object-fit: cover; }
.registry-stack { display: grid; gap: 14px; }
.gift-card { overflow: hidden; border: 1px solid #e2e3e7; background: #fff; }
.gift-card img { height: 160px; object-fit: cover; }
.gift-info { padding: 14px; }
.gift-info b { display: block; color: var(--navy-deep); font-size: .82rem; }
.gift-info span { color: var(--pink); font-size: .72rem; font-weight: 700; }

.budget-dashboard { padding: 25px; border: 1px solid #dfe3ec; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.budget-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.budget-head h3 { margin: 0; color: var(--navy-deep); }
.budget-head button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 7px; color: #fff; background: var(--pink); font-size: .7rem; font-weight: 700; }
.budget-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.budget-summary div { padding: 15px; background: #f6f8fb; }
.budget-summary b { display: block; color: var(--navy-deep); font-size: 1rem; }
.budget-summary span { color: #7f8490; font-size: .63rem; }
.budget-chart { height: 190px; margin-top: 18px; padding: 18px 14px 8px; border: 1px solid #eceef2; display: flex; align-items: end; gap: 13px; }
.bar { flex: 1; position: relative; border-radius: 5px 5px 0 0; background: #dce4f1; }
.bar:nth-child(1) { height: 72%; }
.bar:nth-child(2) { height: 48%; }
.bar:nth-child(3) { height: 84%; background: var(--pink); }
.bar:nth-child(4) { height: 58%; }
.bar:nth-child(5) { height: 66%; }
.bar::after { content: attr(data-label); position: absolute; left: 50%; bottom: -23px; transform: translateX(-50%); color: #848995; font-size: .54rem; }
.expense-list { margin-top: 32px; border-top: 1px solid #eceef2; }
.expense { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eff0f3; font-size: .7rem; }
.expense b { color: var(--navy-deep); }
.paid { color: #237645; font-weight: 700; }

/* Photo bridge */
.photo-bridge { padding: 0 0 118px; background: var(--ivory); }
.photo-bridge-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.photo-bridge figure { position: relative; margin: 0; height: 560px; overflow: hidden; }
.photo-bridge img { width: 100%; height: 100%; object-fit: cover; }
.photo-bridge figcaption { position: absolute; left: 22px; bottom: 20px; padding: 10px 13px; color: var(--navy-deep); background: rgba(255,255,255,.92); font-size: .72rem; font-weight: 700; }

/* Steps */
.steps { padding: 120px 0; background: #fff; }
.steps-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: end; margin-bottom: 58px; }
.steps-head .section-copy { margin: 0; }
.steps-list { border-top: 1px solid var(--line); }
.step-row { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 40px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.step-row .number { color: var(--pink); font-size: 2.4rem; line-height: 1; }
.step-row h3 { margin: 0; color: var(--navy-deep); font-size: 1.1rem; }
.step-row p { margin: 0; color: var(--muted); }

/* Final CTA */
.final-cta { position: relative; min-height: 580px; overflow: hidden; color: #fff; }
.final-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,51,.9) 0%, rgba(6,20,51,.62) 48%, rgba(6,20,51,.2) 100%); }
.final-cta-inner { position: relative; z-index: 2; min-height: 580px; display: flex; align-items: center; }
.final-copy { max-width: 620px; }
.final-copy h2 { margin: 0; font-size: 4em; line-height: .95; }
.final-copy p { max-width: 560px; margin: 22px 0 30px; color: #e4e9f2; font-size: 1.05rem; }

/* Misc Shared Classes */
.ui-shell { border: 1px solid #dfe2e8; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.ui-topbar { height: 44px; padding: 0 15px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #eceef2; }
.ui-topbar i { width: 8px; height: 8px; border-radius: 50%; background: #d6d9e0; }
.ui-body { padding: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card { padding: 17px; border: 1px solid #e9eaf0; background: #fff; }
.stat-card b { display: block; color: var(--navy-deep); font-size: 1.3rem; }
.stat-card span { color: #7e8490; font-size: .72rem; }
.table { margin-top: 18px; border: 1px solid #e8e9ed; background: #fff; }
.tr { display: grid; grid-template-columns: 1.5fr .9fr .9fr; gap: 10px; padding: 14px; border-bottom: 1px solid #eff0f3; font-size: .78rem; }
.tr:last-child { border-bottom: 0; }
.tr.head { background: #fafbfc; color: #858b97; text-transform: uppercase; font-size: .63rem; letter-spacing: .08em; }
.progress { height: 10px; border-radius: 99px; background: #e3e7ef; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--pink); }

.form-card { max-width: 520px; padding: 34px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-size: .82rem; font-weight: 700; color: #3c4250; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #d9dce3; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="checkbox"], .field input[type="radio"] { width: 16px; min-height: 0; height: 16px; padding: 0; accent-color: var(--pink); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; border: 1px solid #d5d8df; border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; text-decoration: none; color: inherit; }
.google-btn svg { flex-shrink: 0; }
.google-consent { margin: 10px 0 0; color: #8a8f99; font-size: .72rem; text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #8a8f99; font-size: .75rem; }
.divider:before, .divider:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-page { height: calc(100vh - 82px); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { height: 100%; position: relative; background: var(--navy-deep); overflow: hidden; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.auth-visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,20,49,.75)); }
.auth-quote { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 45px; color: #fff; }
.auth-quote h2 { max-width: 520px; margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.8rem); line-height: .98; }
.auth-main { height: 100%; padding: 40px clamp(28px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; overflow: auto; }
.auth-main .form-card { box-shadow: none; border: 0; padding: 0; width: 100%; max-width: 470px; margin: 0 auto; }
.auth-main h1 { margin: 0; color: var(--navy-deep); font-size: 3.8rem; line-height: 1; }
.auth-main p { color: var(--muted); }

@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 82px); overflow: visible; }
  .auth-visual { display: none; }
  .auth-main { justify-content: flex-start; padding: 52px clamp(28px, 7vw, 100px) 52px; }
}

/* Footer */
footer { padding: 68px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 46px; }
.footer-brand img { width: 170px; }
.footer-brand p { max-width: 340px; color: var(--muted); }
.footer-col h4 { margin: 0 0 16px; color: var(--navy-deep); }
.footer-col a { display: block; margin: 10px 0; color: #5e6470; font-size: .88rem; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #7d818c; font-size: .8rem; }

/* Wedding websites: theme gallery */
.theme-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.theme-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.theme-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.theme-card-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.theme-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.theme-card:hover .theme-card-media img { transform: scale(1.04); }
.theme-card-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.theme-card-body h3 { margin: 0 0 4px; color: var(--navy-deep); }
.theme-card-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.theme-card-body .btn { flex-shrink: 0; }
@media (max-width: 720px) {
  .theme-gallery { grid-template-columns: 1fr; }
  .theme-card-body { flex-direction: column; align-items: flex-start; }
}
/* Media Queries (Consolidated) */
@media (max-width: 1180px) {
  .brand-header .header-inner { padding-left: 225px; }
  .brand-overlap { width: 205px; }
  .brand-header .header-left { gap: 20px; font-size: .82rem; }
  .builder-layout-expanded { grid-template-columns: 230px minmax(560px, 1fr) 320px; }
  .builder-layout-expanded .builder-stage { padding: 20px; }
  .builder-page-long { max-width: 760px; }
  .builder-preview-section { padding: 52px 34px; }
}
@media (max-width: 1120px) {
  .header-left { gap: 18px; font-size: .82rem; }
}
@media (max-width: 1050px) {
  .planning-suite-intro { padding: 44px 34px; }
  .suite-card { padding: 24px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid, .showcase-grid.reverse { gap: 45px; }
}
@media (max-width: 980px) {
  .header-actions { display: none !important; }
  .header-left { display: none !important; }
  .menu-btn { display: block; margin-left: auto; }

  .planning-suite-intro { padding: 56px 42px; }

  .mobile-menu { padding: 12px 20px 22px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-menu.open { display: grid; gap: 8px; }
  .mobile-menu a { padding: 10px 0; font-weight: 600; }

  .hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { position: static; padding: 74px max(20px, calc((100vw - 720px)/2)) 60px; }
  .hero-media { min-height: 560px; }
  .hero-panel { min-height: auto !important; padding: 20px !important; overflow: hidden; }
  .hero-panel .ui-shell { width: 100% !important; min-width: 0; overflow: hidden; }
  .hero-panel .tr { grid-template-columns: 1.2fr auto !important; }
  .hero-panel .tr > span:nth-child(2) { display: none; }

  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }

  .showcase-grid, .showcase-grid.reverse { grid-template-columns: 1fr; }
  .showcase-grid.reverse .showcase-copy { order: -1; }

  .steps-head { grid-template-columns: 1fr; gap: 22px; }
  .step-row { grid-template-columns: 70px 1fr; }
  .step-row p { grid-column: 2; }

  /* Default header */
  .header-inner { min-height: 72px; }

  /* Brand header overrides */
  .brand-header .header-inner { min-height: 74px; padding-left: 180px; }
  .brand-overlap { left: 0; top: 9px; width: 166px; }
  .brand-header .header-left, .brand-header .header-actions { display: none !important; }
  .brand-header .menu-btn { display: block; margin-left: auto; }
  .brand-header .mobile-menu { padding: 18px 20px 24px; }
  .brand-header .mobile-menu.open { display: grid; gap: 8px; }
  .brand-header .mobile-menu a { padding: 8px 0; color: #fff; font-weight: 650; }

  /* Builder Layout overrides */
  .builder-layout, .builder-layout-expanded { height: auto; grid-template-columns: 1fr; }
  .builder-layout .builder-left, .builder-layout .builder-right,
  .builder-layout-expanded .builder-left, .builder-layout-expanded .builder-right { display: block; border: 0; border-bottom: 1px solid var(--line); min-height: 300px; }
  .builder-layout .builder-stage, .builder-layout-expanded .builder-stage { order: 2; }
  .canvas-frame { min-height: 480px; }
  .builder-layout .builder-right, .builder-layout-expanded .builder-right { order: 3; }
  .builder-layout-expanded .section-list { grid-template-columns: 1fr 1fr; }
  .builder-top-actions .app-profile { display: none; }
  .builder-page-long { min-height: 0; }
  .builder-viewbar { max-width: 100%; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / 4; }
}
@media (max-width: 680px) {
  .chart-bars, .chart-bar-labels { gap: 8px; }
  .chart-bar-col { max-width: 64px; }
  .chart-bar-labels span { max-width: 64px; font-size: .56rem; }
  .chart-bar-value { font-size: .64rem; left: -10px; right: -10px; }
  .log-row { grid-template-columns: 70px 1fr; gap: 8px; font-size: .8rem; }
  .funnel-row { grid-template-columns: 1fr; gap: 4px; text-align: left; }
  .funnel-row b { text-align: left; }
  .cohort-table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1200px); }
  .planning-suite { padding: 68px 0; }
  .planning-suite-intro { padding: 42px 26px; }
  .planning-suite-cards { grid-template-columns: 1fr; }
  .suite-card, .suite-card:nth-child(odd), .suite-card:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .suite-card:last-child { border-bottom: 0; }
  .suite-card { min-height: 350px; padding: 24px 22px; }
  .suite-media { height: 220px; }

  .header-inner { min-height: 68px; }
  .brand img { width: 136px; }

  .hero-copy { padding: 58px 18px 48px; }
  .page-hero { padding: 64px 0 48px; }
  .hero h1, .section-title, .final-copy h2, .page-title { font-size: 2.4em !important; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-media { min-height: 480px; }
  .hero-caption { left: 16px; right: 16px; bottom: 16px; align-items: stretch; flex-direction: column; }
  .hero-preview { width: 100%; }
  .hero-caption > div:first-child { display: none; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }

  .showcase, .steps { padding: 82px 0; }

  .site-builder { grid-template-columns: 1fr; }
  .builder-panel { display: none; }
  .builder-canvas { min-height: 420px; padding: 24px 18px; }
  .builder-canvas h3 { font-size: 3.15rem; }

  /* ── Hero-panel mockup: mobile-proof everything ── */
  .hero-panel {
    min-height: auto !important;
    padding: 16px !important;
    overflow: hidden;
  }
  .hero-panel .ui-shell { width: 100% !important; min-width: 0; }
  .hero-panel .ui-body { padding: 14px !important; }
  /* Stats grid → 2 columns on tablet, fully adaptive */
  .hero-panel .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  /* Override any inline grid on mockup inner divs */
  .hero-panel [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Table rows: hide 3rd column, only show name + status */
  .hero-panel .tr {
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    font-size: .72rem !important;
  }
  .hero-panel .tr > span:nth-child(2) { display: none; }
  /* registry gift card grid */
  .hero-panel .gift-card img { height: 100px !important; }

  .guest-panel { padding: 15px; }
  .guest-stats { grid-template-columns: repeat(2, 1fr); }
  .guest-row { grid-template-columns: 1.25fr .8fr; }
  .guest-row > :nth-child(3) { display: none; }

  .registry-visual { grid-template-columns: 1fr; }
  .registry-photo { min-height: 360px; }
  .registry-stack { grid-template-columns: 1fr 1fr; }
  .gift-card img { height: 130px; }

  .budget-summary { grid-template-columns: 1fr; }

  .photo-bridge-grid { grid-template-columns: 1fr; }
  .photo-bridge figure, .photo-bridge figure:last-child { height: 420px; }

  .step-row { grid-template-columns: 52px 1fr; gap: 18px; }

  .final-cta, .final-cta-inner { min-height: 540px; }
  .final-cta::after { background: linear-gradient(90deg, rgba(6,20,51,.9), rgba(6,20,51,.48)); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }

  .builder-topbar { align-items: flex-start; }
  .builder-top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .builder-top-actions .btn { min-height: 38px; padding: 0 11px; font-size: .65rem; }
  .builder-layout-expanded .section-list { grid-template-columns: 1fr; }
  .builder-stage { padding: 12px !important; }
  .builder-wedding-hero { min-height: 430px; padding: 26px 18px; }
  .builder-wedding-hero h2 { font-size: 3.6rem; }
  .builder-preview-section { padding: 46px 20px; }
  .preview-detail-grid { grid-template-columns: 1fr; }
  .preview-rsvp-actions .btn { width: 100%; }
  .image-specs { grid-template-columns: 1fr; }
  .upload-actions { flex-direction: column; }
  .upload-actions .btn { width: 100%; }

  .builder-brand-footer { grid-template-columns: 1fr; text-align: center; }
  .builder-brand-footer img { margin: auto; }
  .builder-brand-footer div { text-align: center; }
}
@media (max-width: 520px) {
  .mobile-actions { grid-template-columns: 1fr; }
  .brand-header .header-inner { padding-left: 148px; }
  .brand-overlap { width: 140px; top: 15px; }
  .brand-header .mobile-actions { grid-template-columns: 1fr; }
}
/* App dashboard and Builder styles */
.app-body { background: #f5f6f9; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; transition: grid-template-columns .2s ease; }
.app-sidebar { position: sticky; top: 0; height: 100vh; padding: var(--space-5) var(--space-4); background: var(--navy-deep); color: #fff; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px var(--space-5); border-bottom: 1px solid rgba(255,255,255,.14); }
.app-logo { display: block; min-width: 0; overflow: hidden; }
.app-logo img { width: 150px; max-width: 100%; filter: none; }
.sidebar-toggle { flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-sm); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease; }
.sidebar-toggle:hover { background: rgba(255,255,255,.08); }
.sidebar-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sidebar-toggle svg { transition: transform .2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 76px 1fr; }
.app-shell.sidebar-collapsed .app-sidebar { padding: var(--space-5) var(--space-3); }
.app-shell.sidebar-collapsed .sidebar-head { flex-direction: column; gap: 14px; padding-bottom: 20px; }
.app-shell.sidebar-collapsed .app-logo { display: none; }
.app-shell.sidebar-collapsed .app-nav small { display: none; }
.app-shell.sidebar-collapsed .app-nav { gap: 4px; }
.app-shell.sidebar-collapsed .app-nav a { justify-content: center; padding: 11px 0; }
.app-shell.sidebar-collapsed .app-nav a span, .app-shell.sidebar-collapsed #sidebarSignoutBtn span { display: none; }
.app-shell.sidebar-collapsed #sidebarSignoutBtn { justify-content: center; padding: 11px 0; }
.app-shell.sidebar-collapsed .app-nav a.active::before { display: none; }
.app-shell.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.app-nav { display: grid; gap: 2px; margin-top: var(--space-5); }
.app-nav a {
  display: flex; align-items: center; gap: 12px; position: relative; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #b9c3dc; font-size: .87rem; font-weight: 500; transition: background .15s ease, color .15s ease;
}
.app-nav a svg { flex: 0 0 18px; width: 18px; height: 18px; opacity: .8; transition: opacity .15s ease; }
.app-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.app-nav a:hover svg { opacity: 1; }
.app-nav a:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; }
.app-nav a.active { color: #fff; background: rgba(255,255,255,.12); font-weight: 600; }
.app-nav a.active svg { opacity: 1; }
.app-nav a.active::before { content: ""; position: absolute; left: -4px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: var(--radius-full); background: var(--pink); }
.app-nav small { display: block; margin: var(--space-5) 12px 8px; color: #7c88a8; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; font-weight: 600; }
/* Shared by both sidebarCouple.ejs and sidebarAdmin.ejs — a <button> so the
   /logout POST works with no JS, styled to read as a plain nav link (not a
   button) to match the <a> items around it. Lives here, not a per-partial
   <style> block, so both sidebars get it — sidebarAdmin.ejs previously had
   none at all and fell back to the browser's native button chrome. */
#sidebarSignoutBtn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm);
  color: #b9c3dc; font-size: .87rem; font-weight: 500; background: none; border: none; font-family: inherit; cursor: pointer; transition: background .15s ease, color .15s ease;
}
#sidebarSignoutBtn svg { flex: 0 0 18px; width: 18px; height: 18px; opacity: .8; }
#sidebarSignoutBtn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
#sidebarSignoutBtn:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; }
.app-main { min-width: 0; }
.app-topbar { height: 72px; padding: 0 var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--line); background: #fff; }
.app-topbar strong { color: var(--navy-deep); display: inline-flex; align-items: center; gap: 8px; }
.app-topbar strong svg { flex-shrink: 0; color: var(--pink); }
.app-topbar-actions { display: flex; align-items: center; gap: var(--space-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: #f4cadf; font-weight: 800; font-size: .58rem; flex-shrink: 0; }

/* Profile menu — mirrors .notif's toggle/panel pattern (same app.js
   mechanics: [data-profile-toggle] + a global outside-click-closes
   listener) rather than a third, different dropdown implementation. */
.profile-menu { position: relative; }
.app-profile {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid transparent; border-radius: var(--radius-full);
  background: none; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.app-profile:hover { background: var(--ivory); }
.app-profile:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.app-profile-name { font-size: .84rem; font-weight: 600; color: var(--ink); }
.app-profile-chevron { width: 14px; height: 14px; color: var(--muted); transition: transform .15s ease; }
.profile-menu.open .app-profile-chevron { transform: rotate(180deg); }
.profile-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 150; width: 240px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.profile-menu.open .profile-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.profile-panel-head { display: flex; align-items: center; gap: 10px; padding: var(--space-4); border-bottom: 1px solid var(--line); }
.profile-panel-head b { display: block; color: var(--navy-deep); font-size: .86rem; }
.profile-panel-head small { color: var(--muted); font-size: .72rem; }
.profile-panel form { padding: 6px; }
.profile-panel-signout {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none; border-radius: var(--radius-sm);
  background: none; color: var(--ink); font-size: .84rem; font-weight: 500; font-family: inherit; cursor: pointer; transition: background .15s ease;
}
.profile-panel-signout:hover { background: var(--danger-bg); color: var(--danger); }
.profile-panel-signout svg { flex: 0 0 16px; width: 16px; height: 16px; }
.app-content { padding: var(--space-6); }
.app-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.app-page-head h1 { margin: 0; color: var(--navy-deep); font-size: 1.8rem; }
.app-page-head p { margin: 5px 0 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-4); }
.panel { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 4px 16px rgba(13, 32, 77, .05); }
.panel h3 { margin: 0 0 15px; color: var(--navy-deep); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: 1 / -1; }
/* Metric cards — an icon badge (colored soft-tint circle) above the
   number is the single highest-leverage thing separating a "premium
   dashboard" stat card from a plain number+label box. */
.metric-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3); }
.metric-icon svg { width: 20px; height: 20px; }
.metric-icon.icon-navy { background: var(--blue-wash); color: var(--navy); }
.metric-icon.icon-pink { background: var(--pink-soft); color: var(--pink); }
.metric-icon.icon-success { background: var(--success-bg); color: var(--success); }
.metric-icon.icon-warning { background: var(--warning-bg); color: var(--warning); }
.metric-icon.icon-danger { background: var(--danger-bg); color: var(--danger); }
.metric { font-size: 1.7rem; font-weight: 700; color: var(--navy-deep); }
.metric-label { color: var(--muted); font-size: .76rem; }

/* Alert banner — formErrors.ejs previously rendered as plain red text
   with no box at all. */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); font-size: .85rem; margin-bottom: var(--space-4); }
.alert svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.alert-danger { background: var(--danger-bg); color: #7a2635; border: 1px solid rgba(171,61,77,.18); }
.alert-warning { background: var(--warning-bg); color: #6b4d13; border: 1px solid rgba(139,100,25,.18); }
.alert-success { background: var(--success-bg); color: #15532f; border: 1px solid rgba(31,122,73,.18); }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Empty states — views/partials/emptyState.ejs. Was ~6 bespoke inline
   <p class="muted"> paragraphs with inconsistent copy/spacing; one
   component now. */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-7) var(--space-5); }
.empty-state-icon {
  width: 48px; height: 48px; margin-bottom: var(--space-4); border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-wash); color: var(--navy);
}
.empty-state-icon svg { width: 22px; height: 22px; }
.empty-state h4 { margin: 0 0 6px; color: var(--navy-deep); font-size: 1rem; }
.empty-state p { margin: 0; max-width: 340px; color: var(--muted); font-size: .84rem; }
.empty-state .btn { margin-top: var(--space-4); }

/* Bar chart (partials/barChart.ejs) — real y-axis ticks + gridlines +
   an x-axis line + the value printed above each bar, so a chart with a
   single data point still reads as a chart, not a solid colored block
   (flex:1 bars used to stretch to fill 100% of the row on their own). */
.chart { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 14px; }
.chart-yaxis { display: flex; flex-direction: column; justify-content: space-between; margin-top: 34px; text-align: right; color: var(--muted); font-size: .64rem; white-space: nowrap; }
.chart-bars {
  height: 180px; margin-top: 34px; display: flex; align-items: end; gap: 16px;
  background-image: repeating-linear-gradient(0deg, #eceef2 0, #eceef2 1px, transparent 1px, transparent 25%);
  border-left: 1px solid #d7dae1; border-bottom: 1px solid #d7dae1;
}
.chart-bar-col { flex: 1; max-width: 100px; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.chart-bar-value { position: absolute; top: -28px; left: -20px; right: -20px; text-align: center; color: var(--navy-deep); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.chart-bar-col i {
  display: block; width: 100%; min-height: 4px; background: linear-gradient(180deg, var(--pink) 0%, var(--pink-dark) 100%);
  border-radius: 5px 5px 2px 2px; box-shadow: 0 4px 10px rgba(237, 22, 128, .25); transition: opacity .15s ease, transform .15s ease; transform-origin: bottom;
}
.chart-bar-col:hover i { opacity: .85; transform: scaleY(1.01); }
.chart-bars.compact, .chart-yaxis.compact { height: 100px; }
.activity { display: grid; }
.activity-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eceef2; }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); font-weight: 800; }
.activity-row small { display: block; color: var(--muted); }

/* Notifications, admin dashboard, and other 2-column (text + optional
   action) rows — deliberately NOT .activity-row, which is a fixed 3-column
   grid (34px checkbox, 1fr text, auto action) built for the checklist's
   shape. Reusing it for anything with a different child count crams
   content into the wrong column (confirmed twice: the old Recent Activity
   panel, then Notifications) instead of failing loudly, so this is its
   own class rather than a third reuse. */
.info-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eceef2; }
.info-row:last-child { border-bottom: 0; }
.info-row > *:first-child { min-width: 0; }
.info-row > *:first-child b { font-weight: 600; color: var(--ink); }
.info-row > span, .info-row > small:last-child { flex-shrink: 0; font-weight: 700; color: var(--navy-deep); white-space: nowrap; }
.info-row form { flex-shrink: 0; }

.builder-layout { height: calc(100vh - 72px); display: grid; grid-template-columns: 220px 1fr 285px; background: #eceff4; }
.builder-left, .builder-right { padding: 20px; background: #fff; overflow: auto; }
.builder-left { border-right: 1px solid var(--line); }
.builder-right { border-left: 1px solid var(--line); }
.builder-stage { padding: 28px; overflow: auto; }
.builder-stage-canvas { display: flex; flex-direction: column; height: 100%; }
.canvas-frame { display: block; flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.builder-page { max-width: 820px; min-height: 760px; margin: auto; background: #fff; box-shadow: var(--shadow); }
.builder-wedding-hero { min-height: 520px; padding: 40px; color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(rgba(10,28,65,.26), rgba(10,28,65,.45)), url('public/hero-couple-wide.jpg') center/cover; }
.builder-wedding-hero h2 { margin: 10px 0; font-size: 4.8rem; line-height: 1; }
.builder-control { padding: 11px 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; font-size: .8rem; }
.color-dots { display: flex; gap: 8px; margin-top: 12px; }
.color-dots i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #ccc; }
.color-dots i:nth-child(1) { background: var(--navy); }
.color-dots i:nth-child(2) { background: var(--pink); }
.color-dots i:nth-child(3) { background: #bc9b80; }

.screen-map { padding: 90px 0; background: var(--ivory); }
.screen-group { margin-top: 40px; }
.screen-group h2 { margin: 0 0 16px; color: var(--navy-deep); }
.screen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.screen-card { padding: 20px; border: 1px solid var(--line); background: #fff; }
.screen-card small { display: block; color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.screen-card b { display: block; margin-top: 8px; color: var(--navy-deep); }
.screen-card span { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--navy-deep); }
details p { max-width: 760px; color: var(--muted); }

/* Expanded Website Builder */
.builder-topbar > div:first-child { display: flex; align-items: center; gap: 12px; }
.save-state { padding: 5px 9px; border-radius: 999px; color: #267646; background: #e7f4eb; font-size: .67rem; font-weight: 700; }
.builder-top-actions { display: flex; align-items: center; gap: 10px; }
.builder-panel-title, .property-heading, .settings-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.builder-panel-title small, .property-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: .66rem; }

/* Canvas edit legend — tells a couple, before they start clicking around,
   which parts of the live preview are directly editable vs. handled by
   the panel on the right. The swatch mirrors the exact dashed outline
   wedding-shared.css puts on editable elements, so it reads as a literal
   key rather than a decorative dash. */
.canvas-edit-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--blue-wash); font-size: .68rem; color: var(--muted); }
.canvas-edit-hint span { display: inline-flex; align-items: center; gap: 6px; }
.canvas-edit-hint-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 2px; outline: 1px dashed rgba(60, 120, 255, 0.65); }

/* List-row add/remove (events, schedule, FAQ, meal choices) — see app.js. */
.list-row-remove { margin-top: 4px; padding: 5px 12px; font-size: .62rem; min-height: auto; }
.list-row-add { width: 100%; margin-bottom: 14px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; }
.builder-help { margin: 14px 0 16px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.section-list { display: grid; gap: 7px; }
.section-item { width: 100%; padding: 11px 10px; border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: 18px 1fr auto; gap: 9px; align-items: center; text-align: left; background: #fff; color: var(--ink); cursor: pointer; }
.section-item.active { border-color: rgba(237,22,128,.45); background: var(--pink-soft); }
.section-item.section-hidden { opacity: .5; }
.section-item a { color: inherit; text-decoration: none; font-size: .78rem; display: flex; align-items: center; justify-content: space-between; gap: 6px; overflow: hidden; }
.section-item a .image-status { flex-shrink: 0; }
.section-item form { margin: 0; }
.drag-handle { color: #a2a6af; font-size: .75rem; letter-spacing: -2px; cursor: grab; }
.visibility-toggle { border: 0; background: none; padding: 2px; font-size: .8rem; line-height: 1; cursor: pointer; opacity: .7; }
.visibility-toggle:hover { opacity: 1; }
.color-swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.color-swatch-row label { display: flex; align-items: center; gap: 5px; font-size: .68rem; color: var(--muted); cursor: pointer; }

/* Font pairing picker — shows the couple's own name rendered in each
   option's actual font instead of naming the font, so choosing one
   doesn't require knowing what "Playfair Display" looks like. */
.font-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.font-option { display: block; padding: 18px 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.font-option.selected { border-color: var(--pink); background: var(--pink-soft); }
.font-option-preview { display: block; overflow-wrap: break-word; margin-bottom: 6px; color: var(--navy-deep); font-size: 1.6rem; line-height: 1.15; }
.font-option-sample { display: block; margin-bottom: 10px; color: var(--muted); font-size: .82rem; }
.font-option b { display: block; color: var(--navy-deep); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.color-dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; }
.section-name b { display: block; color: var(--navy-deep); font-size: .78rem; }
.section-name small { display: block; margin-top: 2px; color: var(--muted); font-size: .6rem; }
.image-status { padding: 4px 7px; border-radius: 999px; color: #8b6419; background: #fff1d6; font-size: .56rem; font-weight: 800; }
.image-status.ready { color: #267646; background: #e7f4eb; }
.builder-viewbar { max-width: 980px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #626875; font-size: .72rem; font-weight: 700; }
.view-switch { display: flex; border: 1px solid #d7d9df; border-radius: 8px; overflow: hidden; background: #fff; }
.view-switch button { min-height: 34px; padding: 0 12px; border: 0; border-right: 1px solid #e4e5e8; background: #fff; color: #686d79; font-size: .65rem; cursor: pointer; }
.view-switch button:last-child { border-right: 0; }
.view-switch button.active { color: #fff; background: var(--navy); }
.builder-preview-section { padding: 64px 58px; text-align: center; background: #fff; }
.builder-preview-section.preview-tint { background: #edf2fb; }
.preview-kicker { margin: 0 0 10px; color: var(--pink); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.builder-preview-section h3 { max-width: 600px; margin: 0 auto 14px; color: var(--navy-deep); font-size: clamp(2.5rem, 4vw, 3.7rem); line-height: 1; }
.builder-preview-section > p:last-child { max-width: 650px; margin: 0 auto; color: var(--muted); }
.preview-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.preview-detail-grid article { padding: 22px; border: 1px solid var(--line); background: #fff; }
.preview-detail-grid b, .preview-detail-grid span { display: block; }
.preview-detail-grid span { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.preview-faq { max-width: 690px; margin: 28px auto 0; border-top: 1px solid var(--line); text-align: left; }
.preview-faq details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.preview-faq summary { cursor: pointer; color: var(--navy-deep); font-size: .82rem; font-weight: 800; }
.preview-faq p { margin: 8px 0 0; color: var(--muted); font-size: .76rem; }
.preview-rsvp { background: #fce7f2; }
.preview-rsvp-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.property-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.property-heading b { display: block; color: var(--navy-deep); }
.settings-card { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.settings-card > b, .settings-card-head b { color: var(--navy-deep); font-size: .8rem; }
.settings-card-head span { color: var(--muted); font-size: .62rem; }
.image-dropzone { margin-top: 12px; padding: 20px 12px; border: 1px dashed #bbc0cb; border-radius: 10px; text-align: center; background: #fafbfc; }
.upload-icon { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--blue-wash); font-weight: 800; }
.image-dropzone b, .image-dropzone small { display: block; }
.image-dropzone b { color: var(--navy-deep); font-size: .75rem; }
.image-dropzone small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.upload-actions { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.upload-actions .btn { min-height: 36px; padding: 0 10px; font-size: .62rem; }
.image-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.image-specs div { padding: 9px; border-radius: 7px; background: #f5f7fa; }
.image-specs span, .image-specs b { display: block; }
.image-specs span { color: var(--muted); font-size: .56rem; }
.image-specs b { margin-top: 2px; color: var(--navy-deep); font-size: .64rem; }
.format-note { margin: 10px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.55; }
.settings-label { display: block; margin: 13px 0 6px; color: #656b77; font-size: .65rem; font-weight: 700; }
.settings-input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: .7rem; }
.check-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; color: #4f5561; font-size: .68rem; line-height: 1.45; }
.check-row input { margin-top: 2px; }
.image-guide-table { margin-top: 11px; border-top: 1px solid var(--line); }
.image-guide-table div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef0f2; font-size: .62rem; }
.image-guide-table span { color: var(--muted); }
.image-guide-table b { color: var(--navy-deep); }
.faq-editor-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef0f2; }
.faq-editor-item b { color: #4a505c; font-size: .65rem; }
.faq-editor-item button { border: 0; background: transparent; color: var(--pink); font-size: .62rem; font-weight: 800; cursor: pointer; }
.builder-brand-footer { padding: 24px 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; background: #fff; color: var(--muted); font-size: .64rem; }
.builder-brand-footer img { width: 130px; }
.builder-brand-footer div { text-align: center; }
.builder-brand-footer b { display: block; margin-top: 3px; color: var(--pink); font-size: .69rem; }

/* Modals */
/* display stays flex always (rather than none/flex) so opacity/transform
   can actually transition — visibility:hidden + pointer-events:none
   reproduce display:none's "invisible and unfocusable" behavior instead. */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(14,36,88,.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal {
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; padding: 30px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
  transform: scale(.96) translateY(6px); transition: transform .2s ease;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
@media(max-width:480px){.modal-overlay{padding:14px;}.modal{padding:20px;}}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-head h3 { margin: 0; color: var(--navy-deep); }

/* Tutorial video modal — same lazy-load-on-open pattern as the public
   wedding site's hero video (wedding-motion.js's initVideoModal): the
   iframe has no src until a trigger is clicked, and src is cleared on
   close so playback/audio stops immediately rather than just hiding. */
.tutorial-btn { display: inline-flex; align-items: center; gap: 8px; }
/* Compact variant for the 220px section-list rail — the default .btn
   sizing (min-height 50px, 23px side padding) doesn't fit that width. */
.builder-left .tutorial-btn { width: 100%; justify-content: center; min-height: auto; padding: 10px 12px; margin-bottom: 12px; font-size: .72rem; }
.tutorial-video-modal {
  position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center;
  background: rgba(10, 18, 38, .84); padding: 24px;
}
.tutorial-video-modal.is-open { display: flex; }
.tutorial-video-modal-frame { width: min(900px, 100%); aspect-ratio: 16 / 9; }
.tutorial-video-modal-frame iframe { width: 100%; height: 100%; border: none; border-radius: var(--radius-lg); }
.tutorial-video-modal-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s ease;
}
.tutorial-video-modal-close:hover { background: rgba(255, 255, 255, .24); }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* Notifications */
.notif { position: relative; }
.notif-bell { position: relative; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.notif-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; }
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 150; width: 340px; max-width: calc(100vw - 32px); max-height: 420px; overflow: auto;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg);
  display: block; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.notif-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); }
.notif-panel-head b { color: var(--navy-deep); }
.notif-panel-head button { border: 0; background: none; padding: 0; color: var(--pink); font-size: .76rem; font-weight: 700; cursor: pointer; }
.notif-item { display: flex; gap: 10px; padding: 12px 8px; border-bottom: 1px solid #f1f2f5; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--pink-soft); }
.notif-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-wash); color: var(--navy); font-weight: 800; font-size: .76rem; }
.notif-item b { display: block; color: var(--navy-deep); font-size: .86rem; font-weight: 700; }
.notif-item small { color: var(--muted); font-size: .74rem; }
.notif-panel-foot { padding: 10px 8px 2px; text-align: center; }
.notif-panel-foot a { color: var(--navy); font-weight: 700; font-size: .8rem; }
.notif-list { display: grid; }
.notif-list .notif-item { padding: 16px 4px; }

/* Admin Analytics */
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eceef2; }
.stat-row:last-child { border-bottom: 0; }
.stat-row b { color: var(--navy-deep); }
.location-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #eceef2; font-size: .88rem; }
.location-row:last-child { border-bottom: 0; }
.location-row span:last-child { color: var(--muted); }
.queue-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eceef2; }
.queue-row:last-child { border-bottom: 0; }
.queue-row b { display: block; color: var(--navy-deep); }
.queue-row small { color: var(--muted); }
.log-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid #eceef2; font-size: .85rem; }
.log-row:last-child { border-bottom: 0; }
.log-row span:first-child { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.chart-month-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.funnel-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.funnel-row span:first-child { color: var(--navy-deep); font-weight: 700; font-size: .85rem; }
.funnel-row b { color: var(--muted); font-size: .82rem; text-align: right; }
.cohort-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.cohort-table th { text-align: left; padding: 10px 8px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.cohort-table td { padding: 10px 8px; border-bottom: 1px solid #eceef2; color: var(--navy-deep); }

/* Manage-couple modal */
.manage-modal .modal { max-width: 560px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.detail-grid div { padding: 12px; border: 1px solid var(--line); background: var(--ivory); }
.detail-grid span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid b { display: block; margin-top: 4px; color: var(--navy-deep); }
.flag-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid #f3d4a8; background: #fff8ec; color: #8b6419; font-size: .85rem; border-radius: 8px; }
.flag-note svg { flex: 0 0 18px; margin-top: 1px; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media(max-width:480px) { .detail-grid { grid-template-columns: 1fr; } }

/* Onboarding */
.onboarding-overlay { position: fixed; inset: 0; z-index: 300; display: none; background: var(--ivory); overflow: auto; }
.onboarding-overlay.open { display: block; }
.onboarding-wrap { max-width: 640px; margin: 0 auto; padding: 70px 24px 60px; }
.onboarding-steps { display: flex; gap: 8px; margin-bottom: 26px; }
.onboarding-steps span { flex: 1; height: 4px; border-radius: 3px; background: var(--line); }
.onboarding-steps span.active, .onboarding-steps span.done { background: var(--pink); }
.onboarding-step { display: none; }
.onboarding-step.active { display: block; }
.onboarding-actions { display: flex; justify-content: space-between; margin-top: 36px; }
.style-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.style-option { padding: 20px 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: center; }
.style-option b { display: block; color: var(--navy-deep); }
.style-option span { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.style-option.selected { border-color: var(--pink); background: var(--pink-soft); }
.style-preview-img { display: block; width: calc(100% + 32px); height: 300px; margin: 0px 0px 10px 0px; border-radius: 8px 8px 0 0; object-fit: cover; }
.style-meta { margin-top: 12px; text-align: center; }
.style-meta small { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 8px; }
.style-colors { display: flex; justify-content: center; gap: 7px; }
.style-colors span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0,0,0,.08); display: inline-block; }
/* .btn centers its label via inline-flex; overriding display to block (as
   this used to) drops that centering and the label sits high in the pill
   instead of centered — flex keeps the centering while still filling the
   card's width. */
.style-preview-btn { display: flex; margin-top: 14px; width: 100%; text-align: center; font-size: .72rem; }
@media(max-width:640px){.style-options{grid-template-columns:1fr;}.onboarding-wrap{padding:50px 18px 40px;}}

/* Email Verification / OTP Page */
.otp-group { display: flex; gap: 10px; justify-content: flex-start; margin-top: 28px; }
.otp-input { width: 52px; height: 62px; border: 2px solid var(--line); border-radius: 10px; font-size: 1.6rem; font-weight: 700; text-align: center; color: var(--navy-deep); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.otp-input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(237,22,128,.12); }
.otp-error { margin-top: 12px; color: #d1364a; font-size: .85rem; }
@media (max-width: 400px) { .otp-input { width: 42px; height: 52px; font-size: 1.3rem; } .otp-group { gap: 7px; } }

/* Notifications Page */
.notif-group { margin-bottom: 8px; }
.notif-group-label { margin: 0 0 4px; padding: 0 4px; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Every .table/.tr below needs its own column-count override to match its
   real header — the base .tr (app.css, "Table" section) is a fixed
   3-column grid, and reusing it as-is for a row with more children wraps
   the overflow onto a second grid row instead of a fourth+ column (the
   same class-reuse bug .activity-row hit twice before .info-row existed;
   confirmed happening again here for Manage Couples/Registry/Budget/
   Reviews before these overrides existed). Each block also stacks
   multi-button Actions cells vertically instead of letting them wrap
   inline, and each mobile breakpoint hides only secondary columns,
   keeping the identifying column + Actions visible. */

/* Guests Page */
.guest-table .tr { grid-template-columns: 1.5fr 1fr 1fr .9fr; align-items: center; }
.guest-table .tr > *:last-child .btn { min-height: 34px; padding: 0 14px; font-size: .72rem; }
@media (max-width: 640px) {
  .guest-table .tr { grid-template-columns: 1.2fr .8fr .7fr; }
  .guest-table .tr > *:nth-child(2) { display: none; }
}

/* Gift Registry Page */
.registry-table .tr { grid-template-columns: 60px 1.5fr .9fr .9fr .9fr 1.1fr; align-items: center; }
.registry-table .tr > *:last-child .btn { min-height: 30px; padding: 0 12px; font-size: .72rem; }
.registry-thumb { display: block; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--ivory); }
.registry-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.registry-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
@media (max-width: 640px) {
  .registry-table .tr { grid-template-columns: 44px 1.2fr .8fr 1fr; }
  .registry-table .tr > *:nth-child(4), .registry-table .tr > *:nth-child(5) { display: none; }
}

/* Budget Tracker Page */
.budget-table .tr { grid-template-columns: 1.5fr .9fr .9fr .9fr 1.1fr; align-items: center; }
.budget-table .tr > *:last-child .btn { min-height: 30px; padding: 0 12px; font-size: .72rem; }
@media (max-width: 640px) {
  .budget-table .tr { grid-template-columns: 1.4fr .9fr 1fr; }
  .budget-table .tr > *:nth-child(2), .budget-table .tr > *:nth-child(4) { display: none; }
}
/* x-axis labels — same flex:1/max-width/gap as .chart-bar-col so each
   label sits directly under its bar regardless of column count. */
.chart-bar-labels { display: flex; gap: 16px; margin-top: 8px; padding-left: 1px; }
.chart-bar-labels span { flex: 1; max-width: 100px; text-align: center; color: var(--muted); font-size: .64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.budget-progress-track { height: 14px; border-radius: 7px; background: #eceef2; overflow: hidden; }
.budget-progress-fill { height: 100%; background: var(--pink); border-radius: 7px; transition: width .3s ease; }
.budget-progress-fill.over-budget { background: #d1364a; }

/* Admin: Manage Couples */
.admin-table .tr { grid-template-columns: 1.8fr .9fr .8fr .9fr 1.3fr; }
.admin-table .tr > *:last-child { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.admin-table .tr > *:last-child .btn { min-height: 34px; padding: 0 14px; font-size: .72rem; }
@media (max-width: 640px) {
  .admin-table .tr { grid-template-columns: 1.3fr .9fr 1.1fr; }
  .admin-table .tr > *:nth-child(2), .admin-table .tr > *:nth-child(4) { display: none; }
}

/* Admin: Reviews (three distinct 4/4/5-column tables on one page) */
.review-flagged-table .tr { grid-template-columns: 1.3fr 1.1fr 1.1fr .9fr; align-items: center; }
.review-suspended-table .tr { grid-template-columns: 1.3fr 1.1fr .9fr 1.1fr; align-items: center; }
.review-requests-table .tr { grid-template-columns: 1fr 1.3fr 1.2fr .8fr .9fr; align-items: center; }
@media (max-width: 640px) {
  .review-flagged-table .tr { grid-template-columns: 1.3fr 1fr; }
  .review-flagged-table .tr > *:nth-child(3) { display: none; }
  .review-suspended-table .tr { grid-template-columns: 1.3fr 1fr; }
  .review-suspended-table .tr > *:nth-child(3) { display: none; }
  .review-requests-table .tr { grid-template-columns: 1fr 1fr; }
  .review-requests-table .tr > *:nth-child(3), .review-requests-table .tr > *:nth-child(4) { display: none; }
}

/* ── Mobile sidebar overlay ── */
.sidebar-mob-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(14,36,88,.45);
  backdrop-filter: blur(2px);
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    width: 260px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    height: 100dvh;
    overflow-y: auto;
  }
  .app-sidebar.sidebar-open { transform: translateX(0); }
  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar-mob-toggle { display: inline-flex; }
  .sidebar-toggle { display: none; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-right { display: none; }
  .builder-left { border-right: none; border-bottom: 1px solid var(--line); }
  .dashboard-grid .span-3, .dashboard-grid .span-4 { grid-column: span 6; }
  .dashboard-grid .span-5, .dashboard-grid .span-6, .dashboard-grid .span-7, .dashboard-grid .span-8 { grid-column: 1 / -1; }
  .app-content { padding: 20px 16px; }
}

@media (max-width: 600px) {
  .dashboard-grid .span-4 { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .dashboard-grid .span-3 { grid-column: span 12; }
  .app-topbar { padding: 0 16px; gap: 10px; }
  .app-page-head { flex-direction: column; gap: 12px; }
}

/* ── Forgot password: success state ── */
.reset-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.mobile-start {
    background: transparent !important;
}
