/* DASMA VIP — app & marketing stylesheet
   Palette: ivory ground, ink text, wine accent, gold detail. Type: Cormorant Garamond / Manrope. */
:root {
  --bg: #FBF8F3;
  --bg-2: #F3EDE3;
  --surface: #FFFFFF;
  --ink: #1F1B16;
  --ink-2: #4A433B;
  --muted: #857A6E;
  --line: #E6DDD0;
  --line-2: #D4C8B8;
  --wine: #7A1F3D;
  --wine-2: #5E1730;
  --wine-soft: #F4E4EA;
  --gold: #B8923E;
  --gold-soft: #F1E6CC;
  --ok: #2F6B45;
  --ok-soft: #E1F0E6;
  --warn: #8A5A12;
  --warn-soft: #F7EBD3;
  --bad: #9B2C2C;
  --bad-soft: #F7E0E0;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -18px rgba(31, 27, 22, .35);
  --shadow-sm: 0 2px 8px -4px rgba(31, 27, 22, .25);
  --gutter: 16px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.eyebrow { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

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

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, white); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px var(--gold-soft); }
.brand .logo { flex: none; }
.brand-word { display: inline-flex; align-items: baseline; gap: 5px; letter-spacing: .1em; }
.brand-vip { font-family: var(--body); font-size: .62em; font-weight: 800; letter-spacing: .2em; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 1px 5px; line-height: 1.4; }
.hero-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topnav a, .topnav button { font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.topnav a:hover, .topnav button:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.topnav a.btn-primary { background: var(--wine); color: #fff; padding: 8px 14px; }
.topnav a.btn-primary:hover { background: var(--wine-2); color: #fff; }
.topnav .lang { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); }
.topnav-links { display: flex; align-items: center; gap: 6px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; z-index: 40; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-2); text-decoration: none; }
.menu-panel a.strong { background: var(--wine); color: #fff; margin-top: 4px; }
@media (max-width: 640px) { .topnav-links { display: none; } .menu { display: block; } }
.subnav-wrap { position: relative; }
.subnav-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 1px; width: 56px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bg)); }
@media (min-width: 900px) { .subnav-wrap::after { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 8px 20px -10px rgba(122, 31, 61, .7); }
.btn-primary:hover { background: var(--wine-2); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a37f32; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-soft { background: var(--wine-soft); color: var(--wine); }
.btn-soft:hover { background: #ecd3dc; color: var(--wine-2); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fb457; color: #fff; }
.btn-danger { background: transparent; color: var(--bad); border-color: transparent; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { padding: 8px 14px; font-size: .84rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- hero ---- */
.hero { padding-block: clamp(48px, 9vw, 110px) clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%; background: radial-gradient(60% 60% at 70% 30%, var(--gold-soft) 0%, transparent 65%), radial-gradient(45% 50% at 20% 70%, var(--wine-soft) 0%, transparent 70%); pointer-events: none; z-index: -1; opacity: .9; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.hero h1 { margin-top: 14px; }
.hero h1 em { font-style: italic; color: var(--wine); }
.hero .lead { margin-top: 20px; font-size: 1.08rem; color: var(--ink-2); max-width: 56ch; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .trust { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.quote { margin-top: 34px; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-sm); }
.quote .q { font-family: var(--display); font-size: 1.5rem; font-style: italic; }
.quote .a { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* phone mock */
.phone { width: min(320px, 82vw); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 40px; background: #1a1714; padding: 10px; box-shadow: 0 40px 80px -40px rgba(31, 27, 22, .6), 0 0 0 1px #2a2622; position: relative; }
.phone .screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #FBF7EF; color: #2B2418; font-family: var(--display); display: flex; flex-direction: column; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; overscroll-behavior: contain; }
.phone-link { display: block; text-decoration: none; color: inherit; }
.phone-link:hover { text-decoration: none; }
.phone-link:hover .phone-caption { color: var(--wine); }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 88px; height: 22px; background: #1a1714; border-radius: 12px; }
.phone-caption { margin-top: 14px; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---- sections ---- */
.section { padding-block: clamp(44px, 7vw, 88px); }
.section-tight { padding-block: 32px; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p { margin-top: 10px; color: var(--ink-2); }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.3rem; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 22px 22px 22px 66px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.1rem; display: grid; place-items: center; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }
.final { text-align: center; padding-block: clamp(56px, 9vw, 110px); }
.final h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-style: italic; }
.final p { margin-top: 12px; color: var(--ink-2); }
.final .btn { margin-top: 26px; }

/* ---- pricing ---- */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.plan.is-popular { border-color: var(--gold); box-shadow: 0 20px 40px -24px rgba(184, 146, 62, .6); }
.plan .badge-pop { position: absolute; top: -12px; left: 24px; background: var(--gold); color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.plan .name { font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.plan .price span { color: var(--muted); font-size: .85rem; }
.plan .desc { color: var(--ink-2); font-size: .95rem; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-soft); box-shadow: inset 0 0 0 1px var(--ok); }
.plan li::after { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 3px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .spacer { flex: 1; }
.plan .note { font-size: .8rem; color: var(--muted); }
.pricing-note { margin-top: 18px; font-size: .85rem; color: var(--muted); text-align: center; }
.plan.is-current { border-color: var(--wine); }
.plan .current { font-size: .78rem; font-weight: 700; color: var(--wine); letter-spacing: .08em; text-transform: uppercase; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding-block: 28px; margin-top: 40px; font-size: .85rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer a { color: var(--muted); }
.footer .brand { font-size: 1.05rem; }

/* ---- cards & forms ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { font-size: 1.45rem; }
.card-head p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.card-lock { border-style: dashed; background: var(--bg-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea { font: inherit; font-size: 16px; width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23857A6E' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--wine); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.form-stack { display: grid; gap: 16px; }
.auth-box { margin-block: clamp(24px, 6vw, 64px); }
.auth-box h1 { font-size: 2.2rem; }
.auth-box .sub { margin-top: 6px; color: var(--ink-2); }
.auth-box form { margin-top: 24px; }
.auth-box .alt { margin-top: 18px; font-size: .9rem; color: var(--muted); text-align: center; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { font-family: var(--display); font-size: 1.4rem; font-weight: 600; margin-bottom: 14px; padding: 0; }
.fieldset + .fieldset { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---- alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; margin-bottom: 18px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #bfdcc9; }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: #ecc3c3; }
.alert-info { background: var(--gold-soft); color: var(--warn); border-color: #e6d4a6; }

/* ---- app shell ---- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-block: 28px 22px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-block: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-size: .88rem; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.subnav a:hover { background: var(--bg-2); text-decoration: none; }
.subnav a.is-active { background: var(--ink); color: #fff; }
.subnav a .lock { width: 12px; height: 12px; opacity: .7; }
.wedding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.wedding-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.wedding-head .date { color: var(--muted); font-size: .92rem; }
.wedding-head .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pill-draft { background: var(--warn-soft); color: var(--warn); }
.pill-live { background: var(--ok-soft); color: var(--ok); }
.pill-basic, .pill-test { background: var(--bg-2); color: var(--ink-2); }
.pill-premium { background: var(--gold-soft); color: var(--warn); }
.pill-family { background: var(--wine-soft); color: var(--wine); }
.pill-pending { background: var(--warn-soft); color: var(--warn); }
.pill-confirmed { background: var(--ok-soft); color: var(--ok); }
.pill-declined { background: var(--bad-soft); color: var(--bad); }
.pill-groom { background: #E4ECF6; color: #274B7A; }
.pill-bride { background: #F6E4EC; color: #7A2750; }
.pill-common { background: var(--bg-2); color: var(--ink-2); }

/* ---- stats ---- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 3px solid var(--line-2); }
.stat.s-invited { border-top-color: var(--ink); }
.stat.s-confirmed { border-top-color: var(--ok); }
.stat.s-pending { border-top-color: var(--warn); }
.stat.s-declined { border-top-color: var(--bad); }
.stat .label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.stat .num { font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; display: flex; margin-top: 12px; }
.bar i { display: block; height: 100%; }
.bar .b-confirmed { background: var(--ok); }
.bar .b-pending { background: #D9A441; }
.bar .b-declined { background: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr .8fr; } }
.side-rows { display: grid; gap: 12px; }
.side-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-row:last-child { border-bottom: 0; }
.side-row .nums { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-row .nums b { color: var(--ink); }
.side-row .bar { grid-column: 1 / -1; margin-top: 4px; }
.link-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-box .input { flex: 1; min-width: 200px; font-size: .9rem; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; }
.next-steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--warn); font-weight: 700; font-size: .85rem; display: grid; place-items: center; flex: none; }
.next-steps li.done .n { background: var(--ok-soft); color: var(--ok); }
.next-steps li.done span { text-decoration: line-through; color: var(--muted); }

/* ---- tables/lists ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .name { font-weight: 700; }
.table .sub { font-size: .8rem; color: var(--muted); }
.table .num { font-variant-numeric: tabular-nums; text-align: right; }
.table .acts { white-space: nowrap; text-align: right; }
.table .acts a, .table .acts button { margin-left: 4px; }
.guest-list { display: grid; gap: 10px; }
.guest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 10px; }
@media (min-width: 760px) { .guest { grid-template-columns: 1fr auto; align-items: center; } }
.guest .who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.guest .who .name { font-weight: 700; font-size: 1.02rem; }
.guest .meta { font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.guest .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.guest .msg { font-size: .9rem; color: var(--ink-2); font-style: italic; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters .chip { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.filters .chip:hover { text-decoration: none; background: var(--bg-2); }
.filters .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters form { display: flex; gap: 6px; flex: 1; min-width: 220px; }
.filters .input { padding: 8px 12px; font-size: .9rem; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
details.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
details.disclosure summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::before { content: "+"; font-family: var(--display); font-size: 1.3rem; color: var(--gold); width: 18px; }
details.disclosure[open] summary::before { content: "–"; }
details.disclosure .body { padding: 0 16px 16px; }

/* ---- families ---- */
.fam-cols { display: grid; gap: 18px; }
@media (min-width: 900px) { .fam-cols { grid-template-columns: 1fr 1fr; } }
.fam-col h2 { font-size: 1.5rem; margin-bottom: 4px; }
.fam-col .totals { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.group summary { cursor: pointer; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.group summary .nums { font-size: .82rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.group ul { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; gap: 6px; font-size: .92rem; }
.group li { display: flex; justify-content: space-between; gap: 10px; }
.group li span:last-child { color: var(--muted); font-size: .84rem; white-space: nowrap; }

/* ---- seating ---- */
.tables-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tbl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.tbl.is-over { border-color: var(--bad); background: var(--bad-soft); }
.tbl form.inline { display: grid; grid-template-columns: 1fr 64px auto; gap: 6px; align-items: center; }
.tbl .input { padding: 7px 10px; font-size: .9rem; }
.tbl .fill { font-size: .82rem; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }
.tbl .fill b { color: var(--ink); }
.tbl .bar { margin-top: 6px; }
.tbl .bar i { background: var(--gold); }
.tbl.is-over .bar i { background: var(--bad); }
.assign-list { display: grid; gap: 8px; }
.assign-row { display: grid; grid-template-columns: 1fr 160px; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media (max-width: 520px) { .assign-row { grid-template-columns: 1fr; } }
.assign-row .select { padding: 8px 30px 8px 10px; font-size: .9rem; }
.assign-row .who b { display: block; }
.assign-row .who span { font-size: .82rem; color: var(--muted); }
.sticky-actions { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, white); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- reminders ---- */
.rem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 10px; }
.rem .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.rem .head b { font-size: 1.02rem; }
.rem pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: .9rem; color: var(--ink-2); background: var(--bg); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); }
.rem .acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- exports ---- */
.dl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.dl h3 { font-size: 1.25rem; }
.dl p { color: var(--ink-2); font-size: .92rem; flex: 1; }
.dl.is-locked { opacity: .65; }

/* ---- billing ---- */
.result { padding: 24px; border-radius: var(--radius); margin-bottom: 22px; }
.result h2 { font-size: 1.8rem; }
.result p { margin-top: 6px; }
.result-success { background: var(--ok-soft); color: var(--ok); }
.result-failed { background: var(--bad-soft); color: var(--bad); }
.result-pending { background: var(--warn-soft); color: var(--warn); }
.orders { font-size: .9rem; }
.orders td:last-child { text-align: right; }

/* ---- theme picker ---- */
.themes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.theme-opt { position: relative; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; inset: 0; }
.theme-opt .sw { border-radius: var(--radius-sm); border: 2px solid var(--line); padding: 12px; display: grid; gap: 8px; transition: border-color .15s, transform .15s; }
.theme-opt input:checked + .sw { border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.theme-opt input:focus-visible + .sw { outline: 2px solid var(--wine); outline-offset: 2px; }
.theme-opt .sw .names { font-family: var(--display); font-size: 1.2rem; line-height: 1; }
.theme-opt .sw .dots { display: flex; gap: 4px; }
.theme-opt .sw .dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.theme-opt .sw .lbl { font-size: .78rem; opacity: .8; }
.ai-box { background: linear-gradient(135deg, var(--gold-soft), var(--wine-soft)); border-radius: var(--radius); padding: 22px; border: 1px solid #ead9bd; }
.ai-box h3 { display: flex; align-items: center; gap: 8px; }
.ai-box p { margin-top: 6px; color: var(--ink-2); font-size: .93rem; }
.ai-box form { margin-top: 14px; display: grid; gap: 10px; }
@media (min-width: 640px) { .ai-box form { grid-template-columns: 1fr auto; align-items: start; } }
.ai-note { margin-top: 12px; font-size: .88rem; padding: 10px 12px; background: rgba(255,255,255,.7); border-radius: 8px; }
.sched-row { display: grid; gap: 8px; grid-template-columns: 90px 1fr 1fr; }
@media (max-width: 560px) { .sched-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px dashed var(--line); } }

/* ---- wedding cards ---- */
.wcards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.wcard .names { font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.wcard .date { color: var(--muted); font-size: .9rem; }
.wcard .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wcard .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.new-wedding { background: var(--bg-2); border: 1px dashed var(--line-2); }
.new-wedding form { display: grid; gap: 10px; }

/* ---- error page ---- */
.error-page { text-align: center; padding-block: 80px; }
.error-page .code { font-family: var(--display); font-size: 5rem; color: var(--line-2); line-height: 1; }
.error-page h1 { margin-top: 6px; }
.error-page p { margin-top: 10px; color: var(--muted); }
.error-page .btn { margin-top: 24px; }

/* ---- lock ---- */
.lock-hero { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lock-hero .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--warn); display: grid; place-items: center; margin: 0 auto 14px; }
.lock-hero .ico svg { width: 26px; height: 26px; }
.lock-hero p { margin-top: 8px; color: var(--ink-2); max-width: 46ch; margin-inline: auto; }
.lock-hero .btn { margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.legal h2 { font-size: 1.5rem; margin-top: 28px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 8px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { flex: 1; font-size: .88rem; }
.demo-themes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.demo-themes a { font-size: .8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.demo-themes a:hover { text-decoration: none; background: var(--bg-2); }
