/* ============ Dawat app UI (landing, auth, dashboard, editor) ============ */

:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --surface-2: #F5EFE6;
  --surface-3: #EFE6D9;
  --ink: #211913;
  --ink-2: #6E6157;
  --ink-3: #9C8F84;
  --line: #ECE2D4;
  --line-2: #DDCFBC;
  --brand: #6E1A2B;
  --brand-2: #8F2A3F;
  --brand-ink: #FFF8F0;
  --brand-tint: #F6E8E7;
  --gold: #B38A44;
  --gold-2: #D9BE85;
  --gold-tint: #F7EEDB;
  --ok: #2F6B45;
  --ok-bg: #E5F1E8;
  --warn-bg: #F8EEDA;
  --danger: #A3261E;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(50, 30, 15, .06);
  --shadow: 0 1px 2px rgba(50, 30, 15, .05), 0 10px 30px -12px rgba(50, 30, 15, .18);
  --shadow-lg: 0 2px 6px rgba(50, 30, 15, .06), 0 28px 60px -20px rgba(50, 30, 15, .32);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --script: 'Great Vibes', cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--gold-tint); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn:hover { border-color: var(--ink-3); box-shadow: 0 4px 14px -6px rgba(50, 30, 15, .25); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.btn.primary {
  border-color: transparent; color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -6px rgba(110, 26, 43, .55);
}
.btn.primary:hover { background: linear-gradient(180deg, #9C3247, #7A1E31); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -8px rgba(110, 26, 43, .6); }
.btn.gold {
  border-color: transparent; color: #3B2A10;
  background: linear-gradient(180deg, #E8CF96, #C9A25A);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px -6px rgba(150, 110, 40, .55);
}
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); transform: none; box-shadow: none; }
.btn.danger { color: var(--danger); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.large { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 10px; }

/* ---------- form controls ---------- */

.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(179, 138, 68, .16); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.label { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; letter-spacing: .13em; text-transform: uppercase; }
.help { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 10px; }
.error-text { color: var(--danger); font-size: 13.5px; min-height: 1.2em; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; }
.toggle + .toggle { border-top: 1px solid var(--line); }
.toggle .t-text { font-weight: 600; font-size: 14px; }
.toggle .t-text small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .25s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + span { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(179, 138, 68, .2); }

/* ---------- misc ---------- */

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.logo img { width: 38px; height: 38px; filter: drop-shadow(0 4px 8px rgba(74, 14, 26, .35)); }
.logo.light { color: #F6E7C8; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); letter-spacing: .02em; }
.badge.live { background: var(--ok-bg); color: var(--ok); }
.badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(47, 107, 69, .18); }
.muted { color: var(--ink-2); }

.toast-wrap { position: fixed; z-index: 130; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { background: rgba(33, 25, 19, .94); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: toast-in .3s var(--ease); max-width: min(92vw, 420px); backdrop-filter: blur(6px); }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(33, 25, 19, .42); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(100%, 460px); max-height: calc(100svh - 32px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal.wide { width: min(100%, 880px); }
.modal h2 { font-size: 30px; margin-bottom: 6px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.center-page { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.notfound { text-align: center; max-width: 420px; display: grid; gap: 12px; justify-items: center; }
.notfound h1 { font-size: 42px; }
.notfound .ended-names { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 54px; color: var(--brand); line-height: 1.1; }

/* soft champagne glow behind app pages */
.glow-bg {
  background:
    radial-gradient(50% 40% at 0% 0%, rgba(217, 190, 133, .22), transparent 70%),
    radial-gradient(45% 35% at 100% 10%, rgba(143, 42, 63, .07), transparent 70%),
    var(--bg);
}

/* ============ landing ============ */

.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(250, 246, 240, .78); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .in { max-width: 1180px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav nav { display: flex; align-items: center; gap: 6px; }
.site-nav .links { display: flex; gap: 2px; margin-right: 8px; }
.site-nav .links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.site-nav .links a:hover { color: var(--ink); background: var(--surface-2); }

.hero-l { max-width: 1180px; margin: 0 auto; padding: 56px 22px 90px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.hero-l h1 { font-size: clamp(44px, 6vw, 76px); margin: 18px 0 20px; font-weight: 500; }
.hero-l h1 em { font-style: italic; color: var(--brand); font-weight: 500; }
.hero-l .sub { font-size: 18px; color: var(--ink-2); max-width: 520px; line-height: 1.6; }
.hero-l .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-l .fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13.5px; color: var(--ink-2); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23B38A44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.phones { position: relative; height: 640px; }
.phone-frame {
  position: absolute; width: 300px; height: 620px; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2b221d, #120d0a);
  box-shadow: 0 50px 90px -30px rgba(50, 30, 15, .55), inset 0 0 0 1.5px #4a3d34, inset 0 0 0 4px #1a1310;
}
.phone-frame::before { content: ''; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; border-radius: 14px; background: #0e0a08; transform: translateX(-50%); z-index: 2; }
.phone-frame::after { content: ''; position: absolute; right: -3px; top: 130px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; background: #2b221d; }
.phone-frame iframe, .phone-frame img.screen { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; display: block; object-fit: cover; object-position: top; }
.phones .main { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
/* the middle phone turns through a few designs (landing-motion.js) */
.looks { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F6EEDF; }
.looks img.screen { position: absolute; inset: 0; opacity: 0; scale: 1.05; transition: opacity 1.1s var(--ease), scale 5s var(--ease); }
.looks img.screen.on { opacity: 1; scale: 1; }
.look-name { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 2; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #3B2A10; background: rgba(255, 252, 245, .9); box-shadow: 0 6px 18px rgba(50, 30, 15, .18); white-space: nowrap; transition: opacity .4s var(--ease); }
.look-name.swap { opacity: 0; }
.phones .side { width: 236px; height: 488px; top: 90px; border-radius: 38px; padding: 9px; opacity: .96; }
.phones .side::before { width: 70px; height: 20px; top: 16px; }
.phones .side img.screen { border-radius: 30px; }
.phones .left { left: 0; transform: rotate(-8deg); }
.phones .right { right: 0; transform: rotate(8deg); }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink);
  animation: chip-float 6s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.float-chip .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold); font-size: 15px; }
.float-chip.c1 { left: 2%; bottom: 128px; }
.float-chip.c2 { right: 0; top: 40px; animation-delay: -3s; }
@keyframes chip-float { 50% { transform: translateY(-8px); } }

.section-l { max-width: 1180px; margin: 0 auto; padding: 84px 22px; }
.section-l#samples { padding-bottom: 36px; } /* the occasion links end it, so the next section follows closer */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 14px 0 12px; font-weight: 500; }
.section-head p { color: var(--ink-2); font-size: 16.5px; }

.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.see-all { text-align: center; margin-top: 34px; }
.designs-page main { padding-top: 10px; }
.theme-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 174px)); justify-content: center; gap: 18px; } /* a short list (one group) sits in the middle */
.theme-tile { display: block; text-decoration: none; color: var(--ink); }
.theme-tile .img { display: block; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 390 / 760; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; background: var(--surface-2); }
.theme-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-tile:hover .img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.theme-tile .name { display: block; margin-top: 10px; font-weight: 600; font-size: 14px; text-align: center; }
.theme-tile .grp { display: block; text-align: center; font-size: 12px; color: var(--ink-3); }
.demo-strip { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; gap: 26px; } /* six samples: two even rows */
.live-badge {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 7px 14px; border-radius: 99px;
  background: rgba(20, 8, 12, .62); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  backdrop-filter: blur(6px); opacity: .92; transition: background .25s, opacity .25s;
}
.theme-tile:hover .live-badge { background: var(--brand); opacity: 1; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-tint), #F1E3C4); color: var(--gold); margin-bottom: 16px; }
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { font-size: 24px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }

/* the offer strip under the landing page's menu */
.offer-bar { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 0; background: linear-gradient(90deg, #A8823F, #E2C27F 50%, #A8823F); color: #2E1C09; box-shadow: 0 6px 18px rgba(40, 20, 5, .18); }
.offer-bar[hidden] { display: none; }
.ob-window { flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ob-track { display: flex; width: max-content; animation: ob-scroll 26s linear infinite; }
.offer-bar:hover .ob-track { animation-play-state: paused; }
.ob-half { display: flex; }
.ob-run { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.ob-run i { font-style: normal; font-size: 11px; opacity: .55; }
@keyframes ob-scroll { to { transform: translateX(-50%); } }
.ob-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.offer-bar .btn.ob-cta { flex: none; height: 32px; padding: 0 14px; font-size: 13px; background: var(--brand); color: #F6E2B4; border: 1px solid rgba(46, 28, 9, .35); box-shadow: 0 2px 8px rgba(46, 28, 9, .25); }
.offer-bar .btn.ob-cta:hover { background: var(--brand-2); }
@media (prefers-reduced-motion: reduce) {
  .ob-track { animation: none; }
  .ob-window { -webkit-mask: none; mask: none; }
  .ob-half + .ob-half, .ob-run + .ob-run { display: none; }
}
@media (max-width: 760px) { .offer-bar .btn.ob-cta { display: none; } }
@media (max-width: 520px) { .ob-run { font-size: 12.5px; gap: 16px; padding-right: 16px; } .offer-bar .btn.ob-cta { height: 30px; padding: 0 10px; font-size: 12px; } }
.offer-pill { display: inline-block; margin: 0 auto 14px; padding: 7px 16px; border-radius: 99px; background: linear-gradient(90deg, #C9A25A, #E9CF8F); color: #3B2610; font-size: 13.5px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.offer-pill:hover { filter: brightness(1.05); }
.offer-banner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; max-width: 780px; margin: -8px auto 26px; padding: 14px 20px; border-radius: 16px; border: 1.5px solid #C9A25A; background: linear-gradient(180deg, #FFFCF4, #FFF4DE); text-align: center; }
.offer-banner b { font-size: 16px; }
.offer-banner span { font-size: 13px; font-weight: 700; color: #8A5A00; background: #fff; border: 1px solid #E9CF8F; border-radius: 99px; padding: 3px 10px; }
.price b.deal { color: var(--brand); }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 20px; }
@media (max-width: 1040px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 380px)); } }
.compare { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--serif); font-size: 21px; color: var(--ink); font-weight: 600; background: var(--surface-2); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare td { color: var(--ink-2); }
.compare .us { background: linear-gradient(180deg, #FFFAF0, #FBF3E2); color: var(--ink); }
.compare thead .us { color: var(--brand); }
.compare .no { color: var(--ink-3); }
.compare .yes::before { content: '✓ '; color: var(--gold); font-weight: 700; }
@media (max-width: 620px) {
  .compare th, .compare td { padding: 11px 10px; font-size: 13.5px; }
  .compare thead th { font-size: 17px; }
  .compare tbody th { width: 34%; }
}
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-card.featured { border: 1.5px solid #C9A25A; box-shadow: var(--shadow); background: linear-gradient(180deg, #FFFCF6, var(--surface)); }
.price-tag { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 4px 14px; border-radius: 99px; background: linear-gradient(90deg, #C9A25A, #E9CF8F); color: #3B2610; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.price-card h3 { font-size: 30px; }
.price-sub { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 18px; }
.price s, .price b, .price small { white-space: nowrap; }
.price s { color: var(--ink-3); font-size: 17px; }
.price b { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--brand); line-height: 1; }
.price small { color: var(--ink-3); font-size: 13px; }
.price-offer { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; } /* a shorter list keeps its spacing; the button still lines up at the bottom */
.price-card li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.price-card li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.price-card li.lead { padding-left: 0; font-weight: 600; color: var(--ink); }
.price-card li.lead::before { content: none; }
.price-card .btn.wide { width: 100%; justify-content: center; }
.price-note { text-align: center; color: var(--ink-3); font-size: 13.5px; margin-top: 20px; }
@media (max-width: 720px) { .price-cards { grid-template-columns: 1fr; } .price b { font-size: 38px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold-2); margin-bottom: 14px; }
.step h3 { font-size: 24px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

.cta-band {
  position: relative; overflow: hidden; text-align: center; color: var(--brand-ink);
  background: radial-gradient(70% 120% at 50% 0%, #9C3247, var(--brand) 60%, #4E1220);
  border-radius: 28px; padding: 64px 24px; box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(233, 207, 150, .35); border-radius: 18px; pointer-events: none; }
.cta-band h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 10px; font-weight: 500; }
.cta-band p { opacity: .82; margin-bottom: 26px; font-size: 16px; }
.site-foot { text-align: center; color: var(--ink-3); font-size: 13px; padding: 48px 20px; }

/* ---------- public pages: footer, FAQ, occasion links (made by tools/build-seo.mjs) ---------- */
.site-foot.rich { text-align: left; border-top: 1px solid var(--line); padding: 54px 22px 30px; margin-top: 20px; }
.sf-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.sf-brand .logo { margin-bottom: 14px; }
.sf-brand .logo img { width: 34px; height: 34px; }
.sf-brand p { font-size: 14px; color: var(--ink-2); max-width: 300px; margin-bottom: 8px; }
.sf-brand p.sf-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brand); margin-bottom: 10px; }
.sf-col { display: grid; align-content: start; gap: 9px; }
.sf-col b { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.sf-col a { color: var(--ink-2); font-size: 14px; text-decoration: none; width: fit-content; }
.sf-col a:hover { color: var(--brand); }
.sf-fine { max-width: 1180px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 720px) { .sf-in { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); translate: 0 -70%; rotate: 45deg; transition: rotate .3s var(--ease), translate .3s var(--ease); }
.faq-item[open] summary::after { rotate: 225deg; translate: 0 -25%; }
.faq-item p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

.occ-links { margin-top: 38px; text-align: center; }
.occ-links .eyebrow, .occ-more .eyebrow { justify-content: center; margin-bottom: 14px; }
.chip-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-link { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .2s, border-color .2s; }
.chip-link:hover { color: var(--brand); border-color: var(--gold); }

/* reviews: "What families say" on the public pages (ui.js reviewCard), the dashboard band and form, admin */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 18px; }
.review-card { margin: 0; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); }
.review-card .stars { display: flex; gap: 2px; font-size: 17px; line-height: 1; color: #E6DACA; }
.review-card .stars .on { color: var(--gold); }
.review-card blockquote { margin: 0; flex: 1; font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); }
.review-card blockquote::before { content: '“'; }
.review-card blockquote::after { content: '”'; }
.review-card figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-card figcaption b { font-size: 14.5px; }
.review-card figcaption span { font-size: 13px; color: var(--ink-3); }
.review-band { display: flex; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 22px; border-radius: 18px; background: linear-gradient(100deg, #FFF8EA, #FBF0DC); border: 1px solid #EAD6AC; }
.review-band.done { background: var(--surface); border-color: var(--line); }
.rb-stars { font-size: 20px; letter-spacing: 2px; color: var(--gold); flex: none; }
.rb-text { flex: 1; display: grid; gap: 2px; }
.rb-text b { font-size: 15.5px; }
.rb-text span { font-size: 13.5px; color: var(--ink-2); }
.star-pick { display: flex; justify-content: center; gap: 6px; margin: 18px 0 14px; }
.star-btn { all: unset; cursor: pointer; font-size: 38px; line-height: 1; color: #E6DACA; transition: color .15s, transform .15s; }
.star-btn.on { color: var(--gold); }
/* half a star (4.5): gold on the left half, the empty colour on the right */
.star-btn.half, .review-card .stars .half { background: linear-gradient(90deg, var(--gold) 50%, #E6DACA 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the payment window (editor.js checkout) */
.plan-promise { margin: 10px 2px 0; }
.plan-includes { margin: 10px 2px 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.plan-includes b { color: var(--ink); }
.per-guest { margin: 6px 2px 0; color: var(--ink-2); }
.pay-reviews { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 6px; }
.pay-reviews .pr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pay-reviews .stars { display: inline-flex; gap: 1px; color: #E6DACA; }
.pay-reviews .stars .on { color: var(--gold); }
.pay-reviews .stars .half { background: linear-gradient(90deg, var(--gold) 50%, #E6DACA 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-reviews .pr-quote { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.pay-reviews .pr-quote small { font-family: var(--sans, inherit); font-size: 12.5px; color: var(--ink-3); }
.before-pay { margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(100deg, #FFF8EA, #FBF0DC); border: 1px solid #EAD6AC; }
.before-pay .bp-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9A7A3E; }
.before-pay .bp-steps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; }
.before-pay .bp-wait, .before-pay .bp-safe, .before-pay .bp-promise { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.pd-family { margin-top: 10px; }
.pay-keep { text-align: center; color: var(--ink-2); }
.pay-track { list-style: none; display: flex; gap: 6px; margin: 0 0 12px; padding: 0; counter-reset: step; }
.pay-track li { flex: 1; position: relative; padding-top: 22px; font-size: 12.5px; text-align: center; color: var(--ink-3); }
.pay-track li::before { content: ''; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #E6DACA; }
.pay-track li:not(:last-child)::after { content: ''; position: absolute; top: 9px; left: calc(50% + 10px); right: calc(-50% + 10px); height: 2px; background: #E6DACA; }
.pay-track li.done { color: var(--ok, #2E7D4F); }
.pay-track li.done::before { background: var(--ok, #2E7D4F); }
.pay-track li.done::after { background: var(--gold); }
.pay-track li.now { color: var(--ink); font-weight: 600; }
.pay-track li.now::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .25); }
.exit-q { text-align: center; max-width: 440px; margin: 0 auto; }
.exit-q h2 { margin-bottom: 6px; }
.exit-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.exit-options .chip { font-size: 14px; }
.cer-keep { margin: -4px 0 14px; font-size: 13.5px; color: var(--ink-3); text-align: center; }
.star-value { margin: -6px 0 12px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.star-btn:hover { transform: scale(1.12); }
.star-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.review-form .confirm-line { margin-top: 6px; }
.review-admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 26px; }
.review-admin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.review-admin .row-actions { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; text-align: left; } /* the buttons wrap instead of stretching the card */
.review-admin .row-actions .btn { margin-left: 0; }
.review-admin.pending { border-color: #E0A23A; }
.review-admin .review-card { box-shadow: none; padding: 18px; }
.review-admin .review-card blockquote { font-size: 18px; }
@media (max-width: 600px) {
  .review-band { flex-wrap: wrap; gap: 10px 18px; }
  .rb-stars { flex-basis: 100%; } /* stars on their own line, so the words get the full width */
  .review-band .btn { width: 100%; margin-top: 4px; }
}

/* an occasion page (/wedding-cards…): words on the left, the invitation in a phone on the right */
.occ-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding-top: 40px; }
.occ-hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 500; line-height: 1.06; margin: 16px 0 18px; }
.occ-hero .sub { font-size: 17px; color: var(--ink-2); max-width: 560px; line-height: 1.65; margin-bottom: 12px; }
.occ-hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.occ-phone { display: grid; justify-items: center; }
.occ-phone .phone-frame { position: relative; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.occ-hero .trust b { font-weight: inherit; margin-left: -3px; } /* the price inside "Pay once, from …" */
.features.plain .feature h3 { font-size: 22px; }
.features.plain .feature h3::before { content: '✦'; display: block; font-size: 15px; color: var(--gold); margin-bottom: 10px; }
@media (max-width: 960px) {
  .occ-hero { grid-template-columns: 1fr; text-align: center; }
  .occ-hero .sub { margin-left: auto; margin-right: auto; }
  .occ-hero .ctas, .occ-hero .trust, .crumbs { justify-content: center; }
  .occ-hero .eyebrow::before { display: none; }
}
@media (max-width: 520px) { .occ-phone .phone-frame { scale: .86; margin: -44px 0; } }

/* Wording guides (tools/seo-guides.mjs): each wording set like a small printed card, with a Copy button */
.guide-hero { max-width: 900px; text-align: center; padding-top: 40px; padding-bottom: 20px; }
.guide-hero .crumbs, .guide-hero .chip-links { justify-content: center; }
.guide-hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 500; line-height: 1.06; margin: 16px 0 18px; }
.guide-hero .sub { font-size: 17px; color: var(--ink-2); max-width: 680px; line-height: 1.65; margin: 0 auto 12px; }
.guide-jump { margin-top: 26px; }
.guide-sec { max-width: 1180px; margin: 0 auto; padding: 40px 22px; scroll-margin-top: 80px; }
.guide-sec h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 500; margin-bottom: 8px; }
.guide-lead { color: var(--ink-2); font-size: 16px; max-width: 680px; }
.wordings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; margin-top: 22px; align-items: start; }
.wording { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px 14px; box-shadow: var(--shadow-sm); }
.wording::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(179, 138, 68, .3); border-radius: 13px; pointer-events: none; }
.w-text { text-align: center; white-space: pre-line; font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.w-fill { color: var(--brand); font-style: italic; }
.wording.ur .w-text { font-family: 'Noto Nastaliq Urdu', serif; font-size: 17px; line-height: 2.3; }
.wording.ur .w-fill { font-style: normal; } /* Nastaliq has no italic; a slanted copy turns the brackets into slashes */
.wording.ar .w-text { font-size: 26px; line-height: 1.8; }
.wording figcaption { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.w-copy { flex: none; height: 30px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font: 600 12.5px var(--sans); color: var(--brand); cursor: pointer; transition: border-color .2s, background .2s; }
.w-copy:hover { border-color: var(--gold); background: #FBF5EA; }
.w-copy.done { color: #2F6B45; border-color: #9CC5A8; }
.guide-tips { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px clamp(22px, 4vw, 44px); }
.guide-tips ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.guide-tips li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.guide-tips li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: var(--gold); }
.cta-pair { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.guide-link { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.guide-band { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 22px 28px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-band:hover { border-color: var(--gold); transform: translateY(-2px); }
.guide-band b { flex: 1; min-width: 220px; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.gb-go { font-size: 22px; color: var(--gold); }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.guide-card h2 { font-size: 27px; font-weight: 500; }
.guide-card p { flex: 1; color: var(--ink-2); font-size: 14.5px; }
.gc-go { font-size: 13.5px; font-weight: 600; color: var(--brand); }

.reveal-up { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-l { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-l .sub { margin: 0 auto; }
  .hero-l .ctas, .trust { justify-content: center; }
  .hero-l .eyebrow::before { display: none; }
  .phones { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .features, .steps { grid-template-columns: 1fr; }
  .site-nav .links { display: none; }
}
@media (max-width: 520px) {
  .phones { height: 520px; }
  .phones .side { display: none; }
  .phones .main { width: 268px; height: 556px; }
  .float-chip.c2 { right: 2%; top: 10px; }
  .float-chip.c1 { bottom: 40px; } /* below the names */
  .theme-strip, .demo-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* the logo, "Log in" and "Get started" fit on a small phone without pushing the page sideways */
  .site-nav .in { padding: 12px 16px; gap: 10px; }
  .site-nav .logo { gap: 9px; letter-spacing: .26em; }
  .site-nav #nav > .btn { padding-left: 13px; padding-right: 13px; }
}

/* ============ auth ============ */

.auth-page { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px;
  color: var(--brand-ink); background: radial-gradient(90% 70% at 30% 20%, #8F2A3F, #4E1220);
}
.auth-art .collage { position: absolute; inset: -6% -10% 24% -10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transform: rotate(-8deg); opacity: .95; }
.auth-art .collage img { width: 100%; border-radius: 18px; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .55); }
.auth-art .collage .c2 { margin-top: -60px; }
.auth-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(46, 10, 20, .92) 78%); }
.auth-art .quote { position: relative; z-index: 1; max-width: 420px; }
.auth-art h2 { font-size: 40px; font-weight: 500; margin-bottom: 10px; }
.auth-art p { opacity: .8; }
.auth-side { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: min(100%, 400px); }
.auth-card .logo { margin-bottom: 28px; }
.auth-card h1 { font-size: 40px; margin-bottom: 6px; font-weight: 500; }
.auth-card .muted { margin-bottom: 26px; }
.auth-card .btn.primary { width: 100%; height: 50px; margin-top: 6px; font-size: 15px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.auth-help { text-align: center; margin-top: 10px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.support-line a, .site-foot a { color: var(--brand); }
/* Admin → Discuss (admin.js discuss) */
.discuss-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topic-list { display: grid; gap: 8px; }
.topic-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.topic-row:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.topic-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.topic-row .tr-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: transparent; }
.topic-row.unread .tr-dot { background: #D2453A; }
.topic-row.unread .tr-title { font-weight: 800; }
.topic-row.resolved { opacity: .72; }
.tr-main { display: grid; gap: 3px; min-width: 0; }
.tr-title { font-size: 15.5px; }
.tr-ref, .tr-last { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-side { display: grid; gap: 4px; justify-items: end; text-align: right; }
.discuss-empty { text-align: center; }
.discuss-new { display: grid; gap: 6px; }
.discuss-new .input, .discuss-new .textarea { width: 100%; box-sizing: border-box; }
.d-ref { margin: 4px 0 8px; font-size: 14px; color: var(--ink-2); }
.d-ref a { color: var(--brand); }
.discuss-topic .d-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.discuss-topic .d-head h3 { margin: 0; }
.d-thread { display: grid; gap: 10px; margin: 14px 0; max-height: 58vh; overflow-y: auto; padding: 4px; }
.d-msg { max-width: 78%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #F4ECE0; border: 1px solid var(--line); justify-self: start; }
.d-msg.mine { justify-self: end; border-radius: 14px 14px 4px 14px; background: #FBEFD6; border-color: #EAD6AC; }
.d-meta { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--ink-3); margin-bottom: 3px; }
.d-meta b { color: var(--ink); }
.d-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.5; }
.d-event { justify-self: center; margin: 2px 0; font-size: 12.5px; color: var(--ink-3); }
.d-reply { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.discuss-btn { white-space: nowrap; }
@media (max-width: 640px) { .d-msg { max-width: 92%; } .d-reply { grid-template-columns: 1fr; } .topic-row { grid-template-columns: 10px minmax(0, 1fr); } .tr-side { grid-column: 2; justify-items: start; text-align: left; } }

/* footer social icons (filled in by ui.js syncSite from Admin → Socials) */
.sf-social { display: flex; gap: 10px; margin-top: 14px; }
.sf-social .social-link { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); color: var(--brand); background: var(--surface); transition: background .2s, color .2s, border-color .2s; }
.sf-social .social-link:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.sf-social .social-link svg { width: 18px; height: 18px; }

/* Admin → Socials */
.socials-form { display: grid; gap: 14px; max-width: 640px; }
.socials-form .field .input { width: 100%; }
.socials-form .soc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.socials-form .soc-row .field { margin: 0; }
.socials-form .soc-row > .btn { margin-bottom: 6px; }
.socials-form .soc-ico { display: inline-flex; width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; color: var(--brand); }
.socials-form .soc-ico svg { width: 18px; height: 18px; }
.socials-form .check { display: flex; gap: 10px; align-items: start; font-size: 14px; }
.socials-form .check input { margin-top: 3px; }
.socials-form h3 { font-size: 20px; margin-top: 6px; }

/* Admin → Funnel → Contacts */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.contact-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.contact-card .cc-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.contact-card .cc-head .badge { flex: none; }
.contact-card .cc-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card .cc-head small { color: var(--ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.contact-card .cc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.contact-card .cc-who { display: flex; flex-direction: column; min-width: 0; }
.contact-card .cc-who small { color: var(--ink-2); font-size: 12.5px; }
.contact-card .cc-phone { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.contact-card .cc-actions { display: flex; gap: 6px; align-items: center; }
.contact-card .wa-btn { background: #25D366; border-color: #25D366; color: #fff; }
.contact-card .wa-btn:hover { background: #1EBE5A; border-color: #1EBE5A; }
.contact-card .cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; font-size: 13px; }
.contact-card .cc-view { margin-left: auto; color: var(--brand); }
.contact-card .cc-msg { display: flex; flex-direction: column; gap: 6px; }
.contact-card .cc-pick { display: flex; gap: 6px; }
.contact-card .cc-pick .select { flex: 1; min-width: 0; height: 34px; font-size: 13px; }
.contact-card .cc-text { min-height: 0; font-size: 13px; padding: 8px 10px; line-height: 1.45; }
.contact-card .cc-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .contact-card .cc-actions { width: 100%; flex-wrap: nowrap; } .contact-card .cc-actions .btn { flex: 1; padding: 0 8px; justify-content: center; } }
.badge.pending { background: var(--warn-bg); color: #8A5A00; }

/* the floating WhatsApp button (ui.js waFloat): a green circle bottom right; on wider screens it also says
   "Chat on WhatsApp". Below the modals (90) and the toasts, above the page. */
.wa-float {
  position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  display: inline-flex; align-items: center; gap: 8px; height: 56px; min-width: 56px; padding: 0 16px; justify-content: center;
  border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(18, 140, 74, .35), 0 2px 6px rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .4s, transform .4s, box-shadow .2s, background .2s;
}
.wa-float.in { opacity: 1; transform: none; }
.wa-float:hover { background: #1EBE5A; box-shadow: 0 10px 28px rgba(18, 140, 74, .45), 0 2px 6px rgba(0, 0, 0, .12); }
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float-label { white-space: nowrap; }
@media (max-width: 720px) { .wa-float { padding: 0; width: 56px; } .wa-float-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
@media print { .wa-float { display: none; } }

/* "WhatsApp us" links: the WhatsApp mark before the words */
.wa-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.wa-link svg { width: 15px; height: 15px; flex: none; color: #1FA855; }
.before-pay .bp-ask { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* ============ dashboard ============ */

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 240, .82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink-2); font-size: 13.5px; }
.topbar .who #email { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* phones: the initial in the circle stands for the email, so the bar fits beside the logo */
@media (max-width: 600px) {
  .topbar-in { padding: 10px 16px; }
  .topbar .who { gap: 8px; }
  .topbar .who #email { display: none; }
  .topbar .who .btn { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 380px) {
  .topbar .logo { gap: 8px; letter-spacing: .2em; }
  .topbar .who { gap: 6px; }
}
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--brand-ink); background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.dash { max-width: 1180px; margin: 0 auto; padding: 40px 22px 90px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-head h1 { font-size: 46px; font-weight: 500; margin-top: 8px; }
.dash-head .sub { color: var(--ink-2); margin-top: 6px; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.inv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.inv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.inv-cover { height: 210px; position: relative; display: grid; place-items: center; text-align: center; padding: 18px; background-size: cover; background-position: center 12%; overflow: hidden; }
.inv-cover .names { position: relative; z-index: 1; font-family: var(--script); font-size: 40px; line-height: 1.05; text-shadow: 0 2px 14px rgba(255, 255, 255, .6); }
.inv-cover.photo::after, .inv-cover.dark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .45)); }
.inv-cover.photo .names, .inv-cover.dark .names { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.inv-cover .badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); }
.inv-cover .badge.live { background: rgba(229, 241, 232, .95); }
.inv-body { padding: 16px 18px 18px; display: grid; gap: 12px; flex: 1; }
.inv-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.inv-link { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.inv-stats span { text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.inv-stats b { display: block; color: var(--ink); font-size: 18px; font-family: var(--serif); font-variant-numeric: lining-nums; }
.inv-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.inv-share { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
/* same quiet buttons as the row above; only WhatsApp's own green on its icon */
.inv-share .btn.wa svg { color: #25A35A; }
.inv-new {
  display: grid; place-items: center; text-align: center; gap: 10px; min-height: 380px; padding: 24px; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: 22px; background: transparent; color: var(--ink-2);
  transition: border-color .2s, background .2s, transform .3s var(--ease);
}
.inv-new:hover { border-color: var(--gold); background: var(--gold-tint); color: var(--ink); transform: translateY(-3px); }
.inv-new .plus { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 10px 22px -8px rgba(110, 26, 43, .6); }
.inv-new .plus svg { width: 24px; height: 24px; }
.inv-new b { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.empty { text-align: center; padding: 70px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 22px; }
.empty h2 { font-size: 34px; margin: 12px 0 8px; font-weight: 500; }
.empty p { color: var(--ink-2); margin-bottom: 22px; }

.rsvp-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.rsvp-summary div { background: var(--surface-2); border-radius: 14px; padding: 14px; }
.rsvp-summary b { display: block; font-size: 28px; font-family: var(--serif); font-variant-numeric: lining-nums; }
.rsvp-summary span { font-size: 12.5px; color: var(--ink-2); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table.rsvps { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rsvps th, .rsvps td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rsvps th { background: var(--surface-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.rsvps tr:last-child td { border-bottom: 0; }
.rsvps .msg { max-width: 260px; color: var(--ink-2); }

/* new invitation: event type picker */
.modal .kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 20px; }
.kind-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 13.5px; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.kind-card:hover { border-color: var(--gold-2); background: var(--gold-tint); transform: translateY(-2px); box-shadow: var(--shadow); }
.modal:has(.kind-grid) { width: min(100%, 620px); }

/* royal dialog: ivory card with a double gold rule */
.modal.royal {
  padding: 34px 30px 24px; border: 1px solid #E7D6B5;
  background: radial-gradient(120% 55% at 50% 0%, #FFF8EA, transparent 62%), linear-gradient(180deg, #FFFDF9, #FBF5EA);
  box-shadow: 0 30px 80px -24px rgba(60, 30, 10, .45), inset 0 0 0 7px #FFFDF9, inset 0 0 0 8px rgba(179, 138, 68, .4);
}
.royal-head { text-align: center; }
.royal-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.modal.royal h2 { font-size: 34px; font-weight: 600; margin-bottom: 4px; }
.royal-orn { color: var(--gold); width: 230px; margin: 2px auto 10px; }
.royal-orn svg { display: block; width: 100%; height: auto; }
.royal-head .muted { max-width: 420px; margin: 0 auto; }
.modal .actions.center { justify-content: center; }
.royal .kind-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.royal .kind-card {
  position: relative; overflow: hidden; gap: 10px; padding: 18px 8px 14px; border-radius: 18px;
  border-color: #EADCC3; background: linear-gradient(180deg, #fff, #FCF8F1);
  font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--ink);
}
.royal .kind-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 220, .85) 50%, transparent 62%); transition: transform .8s var(--ease);
}
.royal .kind-card:hover { border-color: var(--gold-2); transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(110, 26, 43, .35); background: linear-gradient(180deg, #fff, #FBF3E3); }
.royal .kind-card:hover::after { transform: translateX(110%); }
.kind-medal {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--brand);
  background: radial-gradient(circle at 50% 35%, #FFFDF8, #F4E8D2 72%);
  box-shadow: inset 0 0 0 1px rgba(179, 138, 68, .55), 0 0 0 3px #fff, 0 0 0 4px rgba(179, 138, 68, .32), 0 6px 14px -6px rgba(110, 26, 43, .35);
  transition: background .3s, color .3s;
}
.kind-medal svg { width: 30px; height: 30px; }
.kind-card:hover .kind-medal { background: radial-gradient(circle at 50% 35%, #8F2A3F, #5E1222); color: #F3DFB2; }
.kind-medal.big { width: 72px; height: 72px; margin: 0 auto 14px; }
.kind-medal.big svg { width: 38px; height: 38px; }
.royal .kind-card.featured {
  grid-column: span 2; flex-direction: row; justify-content: flex-start; gap: 16px; padding: 16px 20px; text-align: left;
  border-color: #B38A44; color: #F6E7C8;
  background: radial-gradient(90% 120% at 100% 0%, rgba(217, 190, 133, .28), transparent 60%), linear-gradient(135deg, #7A1F32, #4A0F1C);
}
.royal .kind-card.featured:hover { background: radial-gradient(90% 120% at 100% 0%, rgba(217, 190, 133, .38), transparent 60%), linear-gradient(135deg, #872439, #521222); }
.kind-card.featured .kind-medal, .kind-card.featured:hover .kind-medal {
  background: radial-gradient(circle at 50% 35%, #9A3248, #5E1222); color: #F3DFB2;
  box-shadow: inset 0 0 0 1px rgba(243, 223, 178, .6), 0 0 0 3px rgba(74, 15, 28, .9), 0 0 0 4px rgba(217, 190, 133, .6);
}
.kind-text b { display: block; font-size: 24px; line-height: 1.1; color: #F3DFB2; }
.kind-text small { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgba(246, 231, 200, .8); }
.kind-badge {
  position: absolute; bottom: 10px; right: 12px; padding: 3px 9px; border-radius: 99px;
  font: 600 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #4A0F1C; background: linear-gradient(180deg, #F3DFB2, #D9BE85);
}
@media (max-width: 560px) {
  .modal.royal { padding: 28px 18px 18px; }
  .modal.royal h2 { font-size: 28px; }
  .royal .kind-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .royal .kind-card { font-size: 15px; padding: 14px 4px 12px; }
  .kind-medal { width: 48px; height: 48px; }
  .kind-medal svg { width: 26px; height: 26px; }
  .kind-badge { display: none; }
}

/* editor: built-in songs */
.music-list { display: grid; gap: 8px; }
.music-list.muted { opacity: .55; }
.music-group { margin: 8px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.music-group:first-child { margin-top: 0; }
.music-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, background .2s;
}
.music-row:hover { border-color: var(--gold-2); }
.music-row.on { border-color: var(--gold); background: var(--gold-tint); box-shadow: 0 0 0 1px var(--gold); }
.mr-play {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff;
}
.mr-play svg { width: 15px; height: 15px; }
.mr-play.off { background: var(--surface-2); color: var(--ink-3); cursor: inherit; }
.music-row.listening .mr-play { box-shadow: 0 0 0 4px rgba(110, 26, 43, .15); }
.mr-text { flex: 1; min-width: 0; }
.mr-text b { display: block; font-size: 14px; }
.mr-text small { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mood { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.mr-check { width: 18px; height: 18px; color: var(--gold); visibility: hidden; flex: none; }
.music-row.on .mr-check { visibility: visible; }
.music-pick { margin-bottom: 18px; }

/* ============ editor ============ */

.editor-body { height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.ed-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); z-index: 5; }
.ed-top .title { font-family: var(--serif); font-size: 23px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-top .spacer { flex: 1; }
.save-state { font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 10px; border-radius: 99px; background: var(--surface-2); }
.save-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save-state.saving::before { background: var(--gold); animation: blink 1s ease-in-out infinite; }
.save-state.error::before { background: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }
.ed-main { flex: 1; display: grid; grid-template-columns: minmax(400px, 540px) 1fr; min-height: 0; }
.ed-form { overflow: auto; border-right: 1px solid var(--line); background: var(--bg); padding: 18px 18px 90px; }
.ed-preview {
  position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 30%, #fff, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(110, 90, 70, .12) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface-2);
}
.ed-preview .phone-frame { position: relative; width: 375px; height: 780px; transform-origin: center; flex: none; }
.preview-tools { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.preview-tools .btn { box-shadow: var(--shadow); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.panel[open] { box-shadow: var(--shadow); }
.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 15px 18px; user-select: none; transition: background .2s; }
.panel > summary:hover { background: #FDFBF8; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary .p-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-tint), #F1E3C4); color: var(--gold); flex: none; }
.panel[open] > summary .p-ico { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; }
.panel > summary .p-ico svg { width: 19px; height: 19px; }
.panel > summary .p-title { font-weight: 600; font-size: 15px; }
.panel > summary .p-sub { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.panel > summary .chev { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); transition: transform .3s var(--ease); }
.panel[open] > summary .chev { transform: rotate(180deg); }
.panel-body { padding: 18px; border-top: 1px solid var(--line); }

.font-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.font-opt { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px; cursor: pointer; text-align: center; font-size: 26px; line-height: 1.2; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.font-opt:hover { border-color: var(--line-2); }
.font-opt small { display: block; font: 600 11px var(--sans); color: var(--ink-3); margin-top: 2px; }
.font-opt.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179, 138, 68, .18); }

.list-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; background: #FDFBF8; }
.list-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.list-head strong { font-size: 14.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.add-btn { width: 100%; border-style: dashed; box-shadow: none; }

/* guest list */
.sub-head { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 22px 0 8px; }
.note-box { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); font-size: 13px; }
.check-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.check-pill input { accent-color: var(--brand); }
.check-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.guest-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.guest-summary div { padding: 10px 8px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.guest-summary b { display: block; font-size: 19px; }
.guest-summary span { font-size: 11.5px; color: var(--ink-3); }
.fam-list { display: grid; gap: 8px; margin: 10px 0 14px; }
.fam { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #FDFBF8; }
.fam-main { min-width: 0; }
.fam-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-meta { font-size: 12px; color: var(--ink-3); }
.fam-status { justify-self: end; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.fam-status.new { color: var(--ink-3); }
.fam-status.sent { background: #EEF2FA; color: #3B5998; }
.fam-status.seen { background: #FFF4DE; color: #8A5A00; }
.fam-status.ok { background: var(--ok-bg); color: var(--ok); }
.fam-status.no { background: #FBEAEA; color: var(--danger); }
.fam-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.fam.editing { display: block; }
.bulk-add summary { cursor: pointer; font-weight: 600; }
.bulk-add[open] summary { margin-bottom: 8px; }
@media (max-width: 520px) { .guest-summary { grid-template-columns: repeat(2, 1fr); } }

.media-pick { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 16px; background: #FDFBF8; }
.media-pick .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2) center / cover; flex: none; display: grid; place-items: center; color: var(--ink-3); }
.media-pick .thumb svg { width: 24px; height: 24px; }
.media-pick .m-text { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.media-pick .m-text strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.media-pick .m-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.media-pick audio { width: 100%; margin-top: 8px; height: 34px; }

.share-box { display: flex; gap: 6px; align-items: center; }
.share-box .prefix { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.slug-status { font-size: 12.5px; margin-top: 6px; min-height: 1.2em; }
.slug-status.ok { color: var(--ok); }
.slug-status.bad { color: var(--danger); }
.publish-card { border-radius: 16px; padding: 16px; background: var(--warn-bg); margin-bottom: 16px; display: grid; gap: 12px; }
.publish-card.live { background: var(--ok-bg); }
.publish-card p { font-size: 13.5px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.theme-group { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 10px; }
.theme-group:first-of-type { margin-top: 4px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.theme-card { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 14px; }
.theme-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 390 / 600; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.theme-thumb img, .theme-thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.theme-card:hover .theme-thumb { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.theme-card.on .theme-thumb { box-shadow: 0 0 0 2px var(--gold), 0 8px 20px -8px rgba(150, 110, 40, .5); }
.theme-card.on .theme-thumb::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.theme-name { display: block; font-size: 12px; font-weight: 600; margin-top: 7px; color: var(--ink-2); }
.theme-card.on .theme-name { color: var(--ink); }
.fine-tune { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: #FDFBF8; }
.fine-tune > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-weight: 600; font-size: 14px; }
.fine-tune > summary::-webkit-details-marker { display: none; }
.fine-tune > summary .chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .25s; }
.fine-tune[open] > summary .chev { transform: rotate(180deg); }
.fine-tune[open] { padding-bottom: 4px; }

.video-pick { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.video-tile { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.video-tile video, .video-tile .lv-thumb { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease); }
.video-tile:hover .lv-thumb { transform: translateY(-2px); }
.video-tile.on .lv-thumb { box-shadow: 0 0 0 2px var(--gold); }
.video-tile .vt-none { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); background: var(--surface-2); transition: transform .25s var(--ease); }
.video-tile:hover video { transform: translateY(-2px); }
.video-tile .vt-none { display: grid; place-items: center; font-size: 12px; color: var(--ink-3); }
.video-tile.on video, .video-tile.on .vt-none { box-shadow: 0 0 0 2px var(--gold); }
.vt-name { display: block; font-size: 11.5px; font-weight: 600; margin-top: 6px; color: var(--ink-2); }
.video-tile.on .vt-name { color: var(--ink); }
.open-pick { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.open-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.open-tile { padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; }
.ot-art { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(180deg, #FBF6EC, #F3E9D8); box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.ot-art svg { width: 72%; height: 72%; }
.open-tile:hover .ot-art { transform: translateY(-2px); }
.open-tile.on .ot-art { box-shadow: 0 0 0 2px var(--gold), 0 8px 18px -8px rgba(150, 110, 40, .5); }
.ot-name { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.open-tile.on .ot-name { color: var(--ink); }
.video-preview { width: 100%; max-height: 260px; margin-top: 8px; border-radius: 12px; background: #000; }

.mobile-switch { display: none; }

@media (max-width: 860px) {
  .ed-main { grid-template-columns: 1fr; }
  .ed-form { border-right: 0; padding: 14px 12px 90px; }
  .ed-preview { display: none; }
  .editor-body.show-preview .ed-form { display: none; }
  .editor-body.show-preview .ed-preview { display: grid; }
  .mobile-switch { display: inline-flex; }
  .ed-top .hide-sm { display: none; }
  .row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .save-state { font-size: 0; gap: 0; padding: 6px; }
  .ed-top { gap: 6px; padding: 10px; }
  .row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Luxury layer: brand polish, arrival films, gallery dashboard,
   atelier editor and the publish ceremony
   ===================================================================== */

/* ---------- brand polish ---------- */

@keyframes page-in { from { opacity: 0; } }
body { animation: page-in .55s ease both; }

/* a whisper of paper grain over the ivory pages (not the editor, so the preview stays true) */
body:not(.editor-body)::after {
  content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 1.2 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* gold-foil lettering with a slow sheen */
.foil {
  background: linear-gradient(100deg, #8C6A2F 0%, #C9A25A 15%, #F3DFA6 30%, #B38A44 45%, #EBD49A 62%, #9C7433 80%, #D9B46A 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: foil 10s ease-in-out infinite alternate;
}
.foil.light, .ceremony .foil {
  background-image: linear-gradient(100deg, #C9A25A 0%, #F7E7B4 18%, #FFF6D8 30%, #D9B46A 46%, #F5E1A4 62%, #B8904A 80%, #EBD49A 100%);
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.eyebrow.light { color: #E9CF8F; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }

.btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(233, 207, 150, .22), 0 6px 16px -6px rgba(110, 26, 43, .55); }
.btn.glass { background: rgba(255, 255, 255, .1); border-color: rgba(246, 231, 200, .45); color: #FBF3E4; backdrop-filter: blur(8px); box-shadow: none; }
.btn.glass:hover { background: rgba(255, 255, 255, .18); border-color: #E9CF8F; }
.btn.ghost.light { color: #F6E7C8; }
.btn.ghost.light:hover { background: rgba(255, 255, 255, .08); }

/* gold shimmer placeholders while things load */
.skeleton {
  border-radius: 10px; background: linear-gradient(100deg, #EFE5D4 20%, #FAF2E2 38%, #F1DFB9 50%, #FAF2E2 62%, #EFE5D4 80%);
  background-size: 300% 100%; animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  body, .foil, .skeleton { animation: none; }
}

/* ---------- arrival films (landing hero, login) ---------- */

.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-veil {
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 45%, rgba(46, 10, 20, .2), rgba(20, 4, 9, .78)), linear-gradient(180deg, rgba(20, 4, 9, .35), rgba(20, 4, 9, .5));
}

.auth-film { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: #1C060C; }
.auth-film .film, .auth-film .film-veil { position: fixed; }
.auth-top { position: relative; z-index: 1; padding: 22px 28px; }
.auth-stage { position: relative; z-index: 1; display: grid; place-items: center; padding: 8px 16px 24px; }
.glass-card {
  position: relative; border-radius: 26px; border: 1px solid rgba(233, 207, 150, .6);
  background: rgba(253, 249, 242, .9); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .75);
}
.glass-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(179, 138, 68, .3); border-radius: 19px; pointer-events: none; }
.auth-card.glass-card { width: min(100%, 430px); padding: 36px 34px 28px; text-align: center; }
.auth-card.glass-card form { text-align: left; }
.auth-mark { display: block; width: 60px; height: 60px; margin: 0 auto 14px; filter: drop-shadow(0 8px 14px rgba(74, 14, 26, .35)); }
.auth-card.glass-card h1 { font-size: 40px; margin: 8px 0 6px; }
.auth-card.glass-card .muted { margin-bottom: 22px; }
.auth-card.glass-card .input { background: #FFFDF9; }
.auth-quote { position: relative; z-index: 1; text-align: center; padding: 0 20px 28px; font-family: var(--serif); font-style: italic; font-size: 21px; color: rgba(246, 231, 200, .82); }
@media (max-width: 480px) {
  .auth-card.glass-card { padding: 30px 22px 24px; }
  .auth-top { padding: 18px 20px; }
  .auth-quote { font-size: 17px; }
}

.landing .site-nav { position: fixed; left: 0; right: 0; transition: background .4s, border-color .4s, backdrop-filter .4s; }
.site-nav.over-film:not(.solid) { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.site-nav.over-film:not(.solid) .logo { color: #F6E7C8; }
.site-nav.over-film:not(.solid) .links a { color: rgba(246, 231, 200, .85); }
.site-nav.over-film:not(.solid) .links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav.over-film:not(.solid) .btn.ghost { color: #F6E7C8; }
.site-nav.over-film:not(.solid) .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.site-nav.over-film.solid { background: rgba(250, 246, 240, .88); border-bottom-color: var(--line); }

.hero-film { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #1C060C; color: #FBF3E4; text-align: center; }
.hf-in { position: relative; z-index: 1; max-width: 920px; padding: 120px 22px 100px; }
.hf-mark { display: block; width: 78px; height: 78px; margin: 0 auto 22px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); animation: mark-in 1.4s var(--ease) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(-10px) scale(.9); } }
.hero-film h1 { font-size: clamp(44px, 7.4vw, 96px); font-weight: 500; line-height: 1.02; margin: 18px 0 22px; letter-spacing: -.015em; animation: rise-in 1.2s .15s var(--ease) both; }
.hero-film h1 em { font-weight: 500; padding-right: .06em; }
.hero-film .sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(251, 243, 228, .82); max-width: 600px; margin: 0 auto; line-height: 1.6; animation: rise-in 1.2s .3s var(--ease) both; }
.hero-film .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; animation: rise-in 1.2s .45s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
.hf-scroll { position: absolute; z-index: 1; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(246, 231, 200, .55); border-radius: 14px; }
.hf-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #E9CF8F; animation: scroll-cue 2s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-l { scroll-margin-top: 60px; padding-top: 96px; }
.hero-h2 { font-size: clamp(38px, 4.8vw, 62px); margin: 18px 0 20px; font-weight: 500; }
.hero-h2 em { font-style: italic; color: var(--brand); font-weight: 500; }
@media (max-width: 960px) { .hero-l { padding-top: 64px; } }

/* ---------- landing: premium motion (see app/landing-motion.js) ---------- */

/* hero headline: each word rises out of a soft blur */
.hero-film h1.split-hero { animation: none; }
.split-hero .hw { display: inline-block; }
.split-hero .hw > span { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.38em); animation: word-in 1.25s var(--ease) both; animation-delay: calc(.25s + var(--i) * 95ms); }
@keyframes word-in { to { opacity: 1; filter: none; transform: none; } }
/* a slow shine passes over the gold-foil words now and then */
.hero-film h1 em.foil {
  background-image: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%), linear-gradient(100deg, #C9A25A 0%, #F7E7B4 18%, #FFF6D8 30%, #D9B46A 46%, #F5E1A4 62%, #B8904A 80%, #EBD49A 100%);
  background-size: 260% 100%, 250% 100%;
  animation: foil-shine 9s 1.9s ease-in-out infinite;
}
/* between shines nothing moves, so the words aren't repainted all the time */
@keyframes foil-shine {
  0% { background-position: 160% 0, 0% 50%; }
  18%, 100% { background-position: -60% 0, 0% 50%; }
}

/* section titles rise line by line out of a mask; the small gold rule draws itself */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.reveal-up.in .split .w > span, .split.reveal-up.in .w > span { transform: none; }
/* phones: the words fade up quickly instead of sliding out of a clipped box, so a title is never seen half-drawn */
@media (max-width: 760px) {
  .split .w { overflow: visible; }
  .split .w > span { opacity: 0; transform: translateY(.3em); transition: transform .55s var(--ease), opacity .4s ease; transition-delay: calc(var(--i) * 30ms); }
  .reveal-up.in .split .w > span, .split.reveal-up.in .w > span { opacity: 1; }
  .reveal-up { transition-duration: .5s; }
}
.section-head.reveal-up .eyebrow::before, .section-head.reveal-up .eyebrow.center::after, .hero-l .eyebrow::before { width: 0; transition: width 1s var(--ease) .25s; }
.section-head.reveal-up.in .eyebrow::before, .section-head.reveal-up.in .eyebrow.center::after, .hero-l .eyebrow::before { width: 22px; }

/* tiles tilt under the mouse, with a soft light that follows it */
@media (hover: hover) and (pointer: fine) {
  .landing .theme-tile .img { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .6s var(--ease), box-shadow .35s; will-change: transform; }
  .landing .theme-tile:hover .img { --lift: -6px; transition: transform .18s ease-out, box-shadow .35s; }
  .landing .theme-tile .img::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .38), transparent 55%); opacity: 0; transition: opacity .4s; }
  .landing .theme-tile:hover .img::after { opacity: 1; }
  .landing .theme-tile .live-badge { z-index: 2; }
}

/* "Know exactly who's coming": what the host gets after sending, with a small picture of the dashboard */
.host-side { max-width: 1180px; margin: 0 auto; padding: 96px 22px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; scroll-margin-top: 60px; }
.host-side .sub { font-size: 18px; color: var(--ink-2); max-width: 520px; line-height: 1.6; }
.hs-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.hs-points li { position: relative; padding-left: 34px; }
.hs-points li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold); font-size: 12px; font-weight: 700; }
.hs-points b { display: block; font-size: 16px; color: var(--ink); }
.hs-points span { display: block; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-top: 2px; }
.hs-panel { position: relative; padding: 10px 0 40px; }
/* marks what only comes with Dawat Family */
.hs-plan { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #F6E7EA; color: var(--brand); font: 600 10.5px/1.5 var(--sans); letter-spacing: .04em; text-transform: none; vertical-align: 2px; }
.hs-card { position: relative; max-width: 440px; margin: 0 auto; padding: 24px 24px 12px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.hs-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hs-top b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.hs-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #E9F4EC; color: #2F6B45; font-size: 12px; font-weight: 600; }
.hs-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3E9A5E; }
.hs-label { margin: 18px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hs-bars { display: grid; gap: 10px; }
.hs-bar { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.hs-bar i { height: 10px; border-radius: 99px; background: var(--surface-2, #F4EDE3); overflow: hidden; position: relative; }
.hs-bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.hs-panel.in .hs-bar i::after { transform: none; }
.hs-bar b { text-align: right; font-family: var(--serif); font-size: 19px; color: var(--ink); font-variant-numeric: lining-nums; }
.hs-fam { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hs-fam:first-of-type { border-top: 0; }
.hs-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #F6E7EA; color: var(--brand); font-family: var(--serif); font-weight: 600; font-size: 16px; }
.hs-who { flex: 1; min-width: 0; }
.hs-who b { display: block; font-size: 14px; color: var(--ink); }
.hs-who small { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-fam em { flex: none; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.hs-fam em.ok { background: #E9F4EC; color: #2F6B45; }
.hs-fam em.seen { background: var(--gold-tint); color: #8A6A2E; }
.hs-fam em.wait { background: #F3EFEA; color: var(--ink-3); }
.hs-toast { position: absolute; right: 0; bottom: 6px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13.5px; }
.hs-toast small { display: block; font-size: 12px; color: var(--ink-3); }
.hs-toast .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold); }
@media (max-width: 960px) {
  .host-side { grid-template-columns: 1fr; gap: 36px; padding-top: 72px; }
  .host-side .hs-copy { text-align: center; }
  .host-side .sub { margin: 0 auto; }
  .host-side .eyebrow::before { display: none; }
  .hs-points { text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
  .hs-card { padding-bottom: 44px; } /* room for the "Barat moved" bubble, which overlaps the card's foot here */
  .hs-toast { right: 50%; translate: 50% 0; white-space: nowrap; }
}

/* gold buttons: a light passes across every few seconds */
.landing .btn.gold:not(.ob-cta) { position: relative; overflow: hidden; isolation: isolate; }
.landing .btn.gold:not(.ob-cta)::after { content: ''; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 42%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(0) skewX(-20deg); animation: btn-shine 7s 3s ease-in-out infinite; }
/* moved with transform (not left) so it never makes the page lay itself out again; 452% of its width = 190% of the button */
@keyframes btn-shine { 0% { transform: translateX(0) skewX(-20deg); } 16%, 100% { transform: translateX(452%) skewX(-20deg); } }

/* smooth scrolling: the menu and chips skip the live background blur here (they're nearly opaque anyway),
   and the paper grain is left off this long page */
.landing .site-nav, .landing .site-nav.over-film.solid { backdrop-filter: none; background: rgba(250, 246, 240, .95); }
.landing .float-chip { backdrop-filter: none; background: rgba(255, 255, 255, .97); }
body.landing::after { display: none; }

.landing main { overflow-x: clip; } /* the tilted phones never make the page scroll sideways */
/* the showcase: a real invitation in a phone, opening and replying by itself (driven by landing-motion.js) */
.guest-demo { position: relative; background: radial-gradient(70% 70% at 72% 50%, #2E0B15, #170409 75%); color: #FBF3E4; padding: 96px 0; overflow: hidden; }
.sc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 48px; }
.sc-copy .eyebrow { color: #E9CF8F; }
.sc-title { font-size: clamp(34px, 4.2vw, 56px); font-weight: 500; margin: 16px 0 10px; color: #FBF3E4; }
.sc-sub { color: rgba(251, 243, 228, .62); font-size: 15px; margin: 0 0 30px; }
.sc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: sc; }
.sc-steps button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; position: relative; padding: 12px 14px 14px 58px; border-radius: 14px; transition: background .5s var(--ease); }
.sc-steps button:focus-visible { outline: 2px solid #E9CF8F; outline-offset: 2px; }
.sc-steps li { counter-increment: sc; opacity: .42; transition: opacity .5s var(--ease); }
.sc-steps li:hover { opacity: .75; }
.sc-steps li.on { opacity: 1; }
.sc-steps li.on button { background: rgba(233, 207, 143, .07); }
.sc-steps button::before { content: counter(sc); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(233, 207, 143, .5); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #E9CF8F; transition: background .5s, color .5s, border-color .5s; }
.sc-steps li.on button::before { background: linear-gradient(180deg, #E8CF96, #C9A25A); color: #3B2A10; border-color: transparent; }
/* a thin gold line fills while the step plays */
.sc-steps button::after { content: ''; position: absolute; left: 58px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #C9A25A, #F1D99A); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.sc-steps li.on button::after { opacity: .9; animation: sc-fill var(--dur, 4s) linear forwards; }
.guest-demo.calm .sc-steps li button::after { display: none; }
@keyframes sc-fill { to { transform: scaleX(1); } }
.sc-steps b { display: block; font-size: 18px; color: #FBF3E4; }
.sc-steps span { display: block; font-size: 14.5px; color: rgba(251, 243, 228, .7); margin-top: 2px; }

.sc-stage { position: relative; display: grid; justify-items: center; gap: 18px; }
.sc-glow { position: absolute; top: 50%; left: 50%; width: 560px; aspect-ratio: 1; border-radius: 50%; translate: -50% -55%; background: radial-gradient(circle, rgba(217, 180, 106, .26), transparent 64%); filter: blur(12px); pointer-events: none; }
.phone-frame.sc-phone { position: relative; box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #4a3d34, inset 0 0 0 4px #1a1310; }
.sc-phone iframe { pointer-events: none; } /* it plays by itself; "Open it yourself" is the way in */
.sc-tap { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255, 255, 255, .55) 0 22%, rgba(255, 255, 255, .18) 23% 60%, transparent 61%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.sc-tap.go { animation: sc-tap .75s var(--ease) forwards; }
@keyframes sc-tap { 0% { opacity: 0; scale: 1.5; } 25% { opacity: 1; scale: .82; } 55% { opacity: .9; scale: .9; } 100% { opacity: 0; scale: 1.6; } }
.sc-chip { position: absolute; left: 50%; top: 64px; translate: -50% -8px; z-index: 3; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #3B2A10; background: linear-gradient(180deg, #F1D99A, #D2AD62); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease), translate .5s var(--ease); pointer-events: none; }
.sc-chip.on { opacity: 1; translate: -50% 0; }
.sc-fade { position: absolute; inset: 11px; border-radius: 36px; z-index: 4; background: #170409; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.sc-fade.on { opacity: 1; }
.sc-toast { position: absolute; left: calc(50% + 64px); top: 67%; z-index: 5; white-space: nowrap; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; color: var(--ink); background: rgba(255, 252, 245, .97); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .6); font-size: 14px; opacity: 0; translate: 30px 0; scale: .96; transition: opacity .6s var(--ease), translate .6s var(--ease), scale .6s var(--ease); pointer-events: none; }
.sc-toast.on { opacity: 1; translate: 0 0; scale: 1; }
.sc-toast .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(180deg, #3E9B6B, #2B7A52); flex: none; }
.sc-toast b { display: block; font-size: 14px; }
.sc-toast small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.sc-try { position: relative; color: #E9CF8F; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(233, 207, 143, .4); padding-bottom: 2px; }
.sc-try:hover { border-color: #E9CF8F; }
/* for visitors who prefer less motion: the phone is just a live invitation they can tap */
.guest-demo.calm .sc-phone iframe { pointer-events: auto; }
.guest-demo.calm .sc-steps li { opacity: 1; }
@media (max-width: 860px) {
  .guest-demo { padding: 70px 0 64px; }
  .sc-wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .sc-title { font-size: 29px; margin: 10px 0 6px; }
  .sc-sub { margin-bottom: 18px; }
  .sc-steps { max-width: 380px; margin: 0 auto; text-align: left; gap: 2px; }
  .sc-steps button { padding: 9px 12px 11px 52px; }
  .sc-steps button::before { left: 10px; top: 8px; width: 28px; height: 28px; }
  .sc-steps button::after { left: 52px; bottom: 4px; }
  .sc-steps b { font-size: 16px; }
  .sc-steps span { display: none; }
  .sc-glow { width: 420px; }
  .phone-frame.sc-phone { scale: .8; margin: -62px 0; } /* the steps and the whole phone fit on one screen */
}
/* too narrow for it beside the phone: it rises over the bottom of the screen instead */
@media (max-width: 1100px) {
  .sc-toast { left: 50%; top: auto; bottom: 86px; translate: -50% 20px; }
  .sc-toast.on { translate: -50% 0; }
}

/* ---------- editor: an event's programme ---------- */
.prog-row { display: grid; grid-template-columns: 142px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.note-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.note-ideas .chip { height: 30px; padding: 0 11px; font-size: 12.5px; }
.note-ideas .chip:hover { border-color: var(--gold); color: var(--brand); }
.program-field .add-moment { margin-top: 2px; }

/* ---------- admin: the funnel ---------- */
.funnel-range { justify-content: flex-start; margin-bottom: 18px; }
.admin-card.funnel { display: grid; gap: 14px; margin-bottom: 14px; }
.f-head h3 { margin-bottom: 2px; }
.f-early { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--gold-tint); color: var(--ink-2); font-size: 13px; }
.f-step.none .f-label b { color: var(--ink-3); font-weight: 600; }
.f-step.none .f-bar span { color: var(--ink-3); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .stats.three { grid-template-columns: 1fr; } }
.f-step { display: grid; grid-template-columns: minmax(170px, 1.1fr) 2fr 120px; align-items: center; gap: 16px; }
.f-label b { display: block; font-size: 14px; }
.f-label small { display: block; font-size: 12px; color: var(--ink-3); }
.f-bar { position: relative; height: 30px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.f-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, #C9A25A, #E8CF96); }
.f-bar span { position: relative; z-index: 1; display: block; padding: 0 10px; line-height: 30px; font-weight: 700; font-size: 14px; }
.f-keep { font-size: 13px; color: var(--ink-2); text-align: right; }
.f-keep.low { color: #A3412A; font-weight: 600; }
.muted.block { display: block; font-size: 12px; }
.badge.warn { background: #FCEBD5; color: #8A4B0F; }
@media (max-width: 720px) {
  .f-step { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .f-step .f-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- dashboard: a private gallery ---------- */

.topbar.dark { background: rgba(28, 6, 12, .93); border-bottom: 1px solid rgba(217, 180, 106, .22); backdrop-filter: blur(12px) saturate(1.3); }
.topbar.dark .who { color: rgba(246, 231, 200, .7); }
.topbar.dark .avatar { background: linear-gradient(180deg, #F3DFA6, #C9A25A); color: #3B0A16; }
.dash-hero {
  position: relative; overflow: hidden; color: #FBF3E4;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(217, 180, 106, .18), transparent 60%),
    radial-gradient(70% 140% at 0% 100%, rgba(143, 42, 63, .55), transparent 60%),
    linear-gradient(160deg, #3A0C18, #22070E 70%);
}
.dash-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 2 42 22 22 42 2 22Z M22 12 32 22 22 32 12 22Z' fill='none' stroke='%23E9CF8F' stroke-width='.8'/%3E%3Ccircle cx='22' cy='22' r='1.6' fill='%23E9CF8F'/%3E%3C/svg%3E");
}
.dash-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #D9B46A, transparent); }
.dash-hero-in { position: relative; max-width: 1180px; margin: 0 auto; padding: 46px 22px 54px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dash-hero h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 500; margin-top: 10px; }
.dash-hero .sub { color: rgba(251, 243, 228, .72); margin-top: 8px; }
.dash { padding-top: 50px; }

.inv-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 48px 32px; }
.inv-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; transition: none; }
.inv-card:hover { transform: none; box-shadow: none; }
/* gilded frame, then an ivory mat, then the invitation itself */
.inv-frame {
  position: relative; display: block; padding: 9px; border-radius: 3px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #F3DFA6 0%, #B38A44 22%, #E9CF8F 45%, #9C7433 70%, #E2C47F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 34px 50px -30px rgba(60, 20, 10, .6), 0 3px 8px rgba(60, 20, 10, .18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.inv-frame:hover, .inv-new:hover .inv-frame { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 46px 60px -30px rgba(60, 20, 10, .68), 0 3px 8px rgba(60, 20, 10, .18); }
.inv-mat { display: block; padding: 12px; background: #FBF6EC; box-shadow: inset 0 0 0 1px rgba(156, 116, 51, .45), inset 0 3px 8px rgba(80, 50, 20, .18); }
.inv-shot { position: relative; display: block; aspect-ratio: 390 / 600; overflow: hidden; background: #EFE6D6 center top / cover; box-shadow: 0 0 0 1px rgba(156, 116, 51, .3); }
.inv-shot iframe { position: absolute; top: 0; left: 0; width: 390px; height: 600px; border: 0; transform: scale(var(--s, .6)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.inv-shot iframe.ready { opacity: 1; }
.inv-frame .badge { position: absolute; z-index: 1; top: 26px; left: 26px; height: 22px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: rgba(28, 6, 12, .72); color: #F6E7C8; backdrop-filter: blur(6px); }
.inv-frame .badge.live { background: rgba(28, 6, 12, .72); color: #E9CF8F; }
.inv-frame .badge.live::before { box-shadow: 0 0 0 3px rgba(233, 207, 150, .2); }
.inv-body { padding: 20px 4px 0; text-align: center; display: grid; gap: 8px; }
.inv-body h3 { font-size: 27px; font-weight: 600; }
.inv-meta { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.inv-stats { display: flex; justify-content: center; gap: 0; padding: 4px 0 0; background: none; border-radius: 0; }
.inv-stats span { padding: 0 16px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.inv-stats span + span { border-left: 1px solid var(--line-2); }
.inv-stats b { font-size: 23px; font-weight: 600; }
.inv-actions { justify-content: center; margin-top: 8px; }
.inv-new { display: block; align-self: start; min-height: 0; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; color: var(--ink-2); }
.inv-new:hover { background: none; transform: none; border: 0; }
.inv-new .inv-frame { background: linear-gradient(135deg, #EADFCB, #D8C7A8 50%, #EADFCB); }
.inv-new:hover .inv-frame { background: linear-gradient(135deg, #F3DFA6 0%, #B38A44 22%, #E9CF8F 45%, #9C7433 70%, #E2C47F 100%); }
.inv-shot.blank { display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; background: repeating-linear-gradient(45deg, #FBF6EC 0 10px, #F7F0E3 10px 20px); }
.inv-shot.blank small { font-size: 12.5px; color: var(--ink-3); }
.inv-skel .frame { aspect-ratio: 390 / 640; border-radius: 4px; }
.inv-skel .line { height: 20px; width: 62%; margin: 22px auto 0; }
.inv-skel .line.short { width: 40%; height: 12px; margin-top: 12px; }

.empty.lux { background: none; border: 0; padding: 30px 20px 60px; }
.empty.lux h2 { font-size: clamp(32px, 4vw, 44px); margin: 8px 0 10px; }
.sealed-env { position: relative; width: 220px; height: 144px; margin: 0 auto 30px; border-radius: 6px; background: linear-gradient(180deg, #F6EEDF, #EDE1C9); box-shadow: 0 30px 50px -26px rgba(60, 20, 10, .5), inset 0 0 0 1px #D8C59C; }
.sealed-env::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 92px; background: linear-gradient(180deg, #F2E8D4, #E8D9BC); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sealed-env::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), #D8C59C 50%, transparent calc(50% + .6px)) left bottom / 50% 62% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .6px), #D8C59C 50%, transparent calc(50% + .6px)) right bottom / 50% 62% no-repeat;
}
.sealed-env img { position: absolute; z-index: 1; left: 50%; top: 92px; width: 54px; height: 54px; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 6px rgba(74, 14, 26, .4)); }

@media (max-width: 560px) {
  .dash-hero-in { padding: 34px 20px 40px; }
  .inv-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}

/* ---------- editor: the atelier ---------- */

.ed-top { background: rgba(251, 247, 240, .95); border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(179, 138, 68, .1), rgba(179, 138, 68, .6), rgba(179, 138, 68, .1)) 1; }
.ed-mark { width: 30px; height: 30px; flex: none; }
.ed-top .title { font-size: 25px; font-weight: 500; letter-spacing: .01em; }
.save-state { background: none; padding: 6px 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.save-state::before { content: '\2726'; width: auto; height: auto; border-radius: 0; background: none; font-size: 12px; letter-spacing: 0; color: var(--gold); }
.save-state.saving { color: var(--ink-3); }
.save-state.saving::before { background: none; animation: twinkle 1.2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.7) rotate(45deg); } }
.save-state.error { color: var(--danger); }
.save-state.error::before { content: '!'; background: none; color: var(--danger); }

.ed-form { background: #FBF7F0; }
.panel { border-color: #EBDFCB; border-radius: 16px; }
.panel[open] { border-color: rgba(179, 138, 68, .5); box-shadow: 0 18px 40px -24px rgba(80, 40, 10, .35); }
.panel > summary { gap: 16px; padding: 16px 18px; }
.p-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--gold);
  background: radial-gradient(circle at 50% 35%, #FFFDF8, #F4E8D2 75%);
  box-shadow: inset 0 0 0 1px rgba(179, 138, 68, .55), 0 0 0 3px #fff, 0 0 0 4px rgba(179, 138, 68, .25);
  transition: background .3s, color .3s;
}
.panel[open] > summary .p-num { background: radial-gradient(circle at 50% 35%, #8F2A3F, #5E1222); color: #F3DFB2; }
.panel > summary .p-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.panel > summary .p-sub { font-family: var(--sans); font-size: 12.5px; margin-top: 2px; }
.panel-body { border-top-color: #F0E6D6; }
.panel[open] > .panel-body { animation: panel-rise .45s var(--ease); }
@keyframes panel-rise { from { opacity: 0; transform: translateY(6px); } }

/* the phone stands on a dark velvet stage under a soft spotlight */
.ed-preview {
  background:
    radial-gradient(36% 44% at 50% 3%, rgba(255, 232, 190, .17), transparent 70%),
    radial-gradient(60% 60% at 50% 52%, #4A1220, transparent 75%),
    linear-gradient(180deg, #2A0910, #160408);
}
.ed-preview::after {
  content: ''; position: absolute; z-index: 0; left: 50%; bottom: 2%; width: 440px; height: 60px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); filter: blur(4px);
}
.ed-preview .phone-frame {
  z-index: 1;
  box-shadow: 0 0 0 1.5px #C9A25A, 0 0 0 3.5px rgba(28, 6, 12, .9), 0 0 0 4.5px rgba(217, 180, 106, .4),
    0 60px 90px -30px rgba(0, 0, 0, .85), inset 0 0 0 1.5px #4a3d34, inset 0 0 0 4px #1a1310;
}
.preview-tools .btn { background: rgba(28, 6, 12, .55); color: #F6E7C8; border-color: rgba(217, 180, 106, .35); box-shadow: none; backdrop-filter: blur(8px); }
.preview-tools .btn:hover { background: rgba(28, 6, 12, .8); border-color: #D9B46A; }
@media (max-width: 480px) { .ed-mark { display: none; } }

/* ---------- the publish ceremony ---------- */

.ceremony {
  --seal: #7B1C2A; --sealHi: #B04A60; --sealInk: #F3DFB2;
  position: fixed; inset: 0; z-index: 120; overflow-y: auto; display: grid; justify-items: center; align-items: start;
  /* the envelope sits mid-screen while it seals, then everything settles to make room for the share card */
  padding: max(24px, calc(50svh - 214px)) 16px 30px; transition: padding-top .9s var(--ease);
  background: radial-gradient(70% 60% at 50% 30%, #6E1A2B, #160509 72%);
  animation: fade .4s ease; color: #FBF3E4;
}
.ceremony.leaving { opacity: 0; transition: opacity .35s; }
.cer-light { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(34% 28% at 50% 26%, rgba(255, 226, 170, .2), transparent 70%); }
.cer-wrap { position: relative; display: grid; justify-items: center; width: 100%; max-width: 470px; }
.cer-stage { height: 320px; display: grid; place-items: end center; padding-bottom: 8px; transform-origin: 50% 100%; transition: transform .9s var(--ease), margin .9s var(--ease); }
.cer-env { position: relative; width: 300px; height: 196px; perspective: 900px; }
.cer-back, .cer-pocket { position: absolute; inset: 0; }
.cer-back { z-index: 1; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .5)); }
.cer-pocket { z-index: 4; }
.cer-back svg, .cer-pocket svg, .cer-flap .face svg { display: block; width: 100%; height: 100%; }
.cer-card {
  position: absolute; z-index: 3; left: 22px; top: 0; width: 256px; height: 168px; padding: 14px;
  display: grid; place-content: center; gap: 2px; text-align: center; color: var(--ink);
  background: #FFFDF8; border-radius: 3px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .4);
  transform: translateY(-196px); transition: transform .95s cubic-bezier(.45, 0, .25, 1);
}
.cer-card::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(179, 138, 68, .55); pointer-events: none; }
.s-in .cer-card { transform: translateY(16px); }
.cc-kicker { font: 600 9px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.cc-names { font-family: var(--script); font-size: 32px; line-height: 1.1; color: #6E1A2B; overflow-wrap: anywhere; }
.cc-date { font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: var(--ink-2); font-variant-numeric: lining-nums; }
.cer-flap {
  position: absolute; z-index: 2; left: 0; top: 0; width: 300px; height: 118px;
  transform-origin: 50% 0; transform: rotateX(180deg); transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.5, 0, .3, 1);
}
.cer-flap .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cer-flap .inside { transform: rotateX(180deg); }
.s-close .cer-flap { z-index: 5; transform: rotateX(0deg); }
.cer-seal { position: absolute; z-index: 6; left: 50%; top: 114px; width: 74px; height: 74px; margin: -37px 0 0 -37px; opacity: 0; transform: scale(2.3); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.cer-seal svg { display: block; width: 100%; height: 100%; }
.s-seal .cer-seal { opacity: 1; transform: scale(1); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.cer-sparks { position: absolute; z-index: 7; left: 50%; top: 114px; }
.cer-sparks i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #F3DFA6; box-shadow: 0 0 8px 2px rgba(243, 223, 166, .7); opacity: 0; }
.s-seal .cer-sparks i { animation: spark .9s .12s ease-out both; }
@keyframes spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.3); }
}
.s-done .cer-stage { transform: scale(.6); margin-top: -150px; }
.ceremony.s-done { padding-top: max(24px, calc(50svh - 345px)); }
.cer-panel { position: relative; z-index: 1; margin-top: 14px; width: 100%; text-align: center; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .7s .1s, transform .7s .1s var(--ease); }
.s-done .cer-panel { opacity: 1; transform: none; pointer-events: auto; }
.ceremony.instant *, .ceremony.instant { transition: none !important; animation: none !important; }
.cer-eyebrow { font: 600 11.5px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: #E9CF8F; }
.cer-panel h2 { font-size: clamp(34px, 7vw, 46px); font-weight: 500; margin: 8px 0 2px; }
.cer-panel .royal-orn { color: #D9B46A; width: 200px; margin: 4px auto 12px; }
.cer-sub { color: rgba(251, 243, 228, .75); font-size: 14.5px; max-width: 380px; margin: 0 auto 18px; }
.cer-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; margin-bottom: 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(217, 180, 106, .35); }
.cer-link span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cer-link .btn { background: rgba(255, 255, 255, .94); }
.cer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ceremony .btn.primary { color: #3B0A16; background: linear-gradient(180deg, #F3DFA6, #C9A25A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px -8px rgba(0, 0, 0, .5); }
.ceremony .btn.primary:hover { background: linear-gradient(180deg, #F7E7B4, #D3AE66); }
.cer-actions .btn:not(.primary) { background: transparent; color: #F6E7C8; border-color: rgba(217, 180, 106, .45); box-shadow: none; }
.cer-actions .btn:not(.primary):hover { background: rgba(255, 255, 255, .08); }
.cer-qr { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px; border-radius: 16px; text-align: left; background: rgba(255, 255, 255, .06); border: 1px solid rgba(217, 180, 106, .25); }
.cer-qr .qr { width: 104px; height: 104px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px rgba(217, 180, 106, .5); }
.cer-qr .qr svg { display: block; width: 100%; height: 100%; }
.cer-qr b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.cer-qr p { font-size: 13px; color: rgba(251, 243, 228, .7); margin: 2px 0 6px; }
.cer-qr .btn.ghost { color: #E9CF8F; padding: 0 8px; margin-left: -8px; }
.cer-qr .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.cer-done { margin-top: 12px; color: rgba(246, 231, 200, .75); }
.ceremony .cer-done:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 480px) {
  .cer-actions { grid-template-columns: 1fr; }
  .cer-stage { height: 290px; }
  .s-done .cer-stage { margin-top: -130px; }
}

/* segmented choice (invitation language) */
.seg { display: flex; gap: 0; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg-btn { flex: 1; height: 38px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(50, 30, 15, .12), 0 0 0 1px rgba(179, 138, 68, .45); }

/* ============ admin ============ */
.admin-chip { padding: 3px 10px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3B0A16; background: linear-gradient(180deg, #F3DFA6, #C9A25A); }
.dash.admin { padding-top: 0; }
.admin-tabs { display: flex; gap: 4px; margin: -22px 0 26px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); width: fit-content; max-width: 100%; overflow-x: auto; position: relative; z-index: 2; }
.admin-tab { height: 38px; padding: 0 18px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.admin-tab:hover { color: var(--ink); background: var(--surface-2); }
.admin-tab.on { color: #F6E7C8; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.admin-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tab-alert { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--danger, #C0392B); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.tab-alert[hidden] { display: none; }
.admin-card.quota { display: grid; gap: 14px; margin-bottom: 14px; }
.quota-row { display: grid; gap: 8px; }
.quota-row .muted { margin: 0; }
.admin-card.quota-mini { display: grid; gap: 10px; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.admin-card.quota-mini:hover { border-color: var(--gold, #C9A25A); }
.admin-tab.on .tab-alert { background: #F6E7C8; color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.stat span { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.stat small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.admin-card { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.admin-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.admin-card.storage { margin-bottom: 14px; }
.storage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.storage-head span { font-size: 13.5px; color: var(--ink-2); }
.meter { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(50, 30, 15, .12); }
.meter i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #C9A25A, #E9CF8F); }
.meter.warn i { background: linear-gradient(90deg, #B5462F, #E08A5B); }
/* payments (admin) */
.stats.money { margin-top: -4px; margin-bottom: 14px; }
.stats.money .stat { font: inherit; text-align: left; cursor: default; }
.stats.money button.stat { cursor: pointer; border: 1px solid var(--line); }
.stats.money .stat.alert { border-color: #E0A23A; background: #FFF6E3; }
.admin-sub { font-family: var(--serif); font-size: 22px; margin: 18px 0 10px; }
.pay-queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pay-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pay-big { font-size: 26px; }
.pay-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 13.5px; }
.pay-facts dt { color: var(--ink-3); }
.pay-facts dd { margin: 0; overflow-wrap: anywhere; }
.badge.pending { background: #FFF1D6; color: #8A5A00; }
.pay-details { margin-top: 18px; }
.pay-details summary { cursor: pointer; font-weight: 600; }
.pay-settings { margin-top: 12px; }
.pay-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .pay-settings-grid { grid-template-columns: 1fr; } }

/* offers (admin) */
.offer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 18px; }
.offer-card.live { border-color: #C9A25A; }
.offer-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.offer-head .badge { white-space: nowrap; flex: none; }
.offer-name { font-size: 16px; }
.offer-count { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 8px; }
.offer-count b { font-family: var(--serif); font-size: 32px; }
.offer-count span { color: var(--ink-3); font-size: 13px; }
.offer-uses { margin: 10px 0; font-size: 13.5px; }
.offer-uses summary { cursor: pointer; font-weight: 600; }
.offer-uses ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.offer-card .row-actions { margin-top: 12px; }
.offer-form { margin-top: 8px; }
.approve-box { display: grid; gap: 4px; }
.approve-box .row-actions { justify-content: flex-end; margin-top: 8px; }

/* checkout (editor) */
.plan-offer { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #8A5A00; background: #FFF4DE; border-radius: 99px; padding: 3px 10px; justify-self: start; }
.plan-card.has-offer .plan-price b { color: #2F6B45; }
.code-box { margin: 12px 0 4px; }
.code-box summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand); }
.code-row { display: flex; gap: 8px; margin-top: 8px; }
.code-row .input { flex: 1; }
.free-box { margin-top: 16px; padding: 18px; border-radius: 16px; border: 1.5px solid #C9A25A; background: linear-gradient(180deg, #FFFCF4, #FFF6E3); display: grid; gap: 8px; }
.free-title { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.plan-cards.all-free .plan-offer { display: none; }
.free-points { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
.free-points li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.free-points li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--gold); font-weight: 700; }
.free-points b { color: var(--ink); font-weight: 600; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.plan-card.unavailable { opacity: .5; cursor: not-allowed; }
.group-url { display: block; margin: 2px 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.plan-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 14px; border: 1.5px solid var(--line-2); border-radius: 16px; cursor: pointer; background: var(--surface); }
.plan-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(110, 26, 43, .08); }
.plan-card input { margin-top: 4px; accent-color: var(--brand); }
.plan-text b { display: block; font-size: 15px; }
.plan-text small { color: var(--ink-3); font-size: 12.5px; }
.plan-price { grid-column: 2; display: flex; gap: 8px; align-items: baseline; margin-top: 4px; }
.plan-price s { color: var(--ink-3); font-size: 13px; }
.plan-price b { font-size: 20px; color: var(--brand); }
.pay-step { margin-top: 18px; }
.pay-label { font-weight: 600; margin-bottom: 8px; }
.pay-amount { color: var(--brand); font-size: 18px; }
.method-cards { display: grid; gap: 8px; }
.method-card { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface); }
.method-card:has(input:checked) { border-color: #A8823F; background: #F6EFE4; }
.method-card input { accent-color: #A8823F; width: 18px; height: 18px; }
.method-card b { display: block; font-size: 15px; }
.method-card small { color: var(--ink-3); font-size: 12.5px; }
.pay-details-box { margin-top: 10px; padding: 14px 16px; border: 1px dashed #C9A86A; border-radius: 14px; background: #F6EFE4; display: grid; gap: 10px; }
.pd-row { display: grid; gap: 2px; }
.pd-row > span:first-child { font-size: 12.5px; color: var(--ink-3); }
.pd-row b { font-size: 16px; }
.pd-number { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-number b { font-size: 19px; letter-spacing: .03em; }
.copy-pill { height: 28px; padding: 0 14px; border-radius: 99px; border: 1px solid #C9A86A; background: var(--surface); color: #8A6A2E; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.copy-pill:hover { background: #fff; }
.pd-note { font-size: 13px; color: var(--ink-2); }
.confirm-line { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.confirm-line input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pay-form .btn.wide { width: 100%; }
.pay-accounts { display: grid; gap: 8px; }
.pay-account { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #FDFBF8; }
.pa-method { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); grid-column: 1 / -1; }
.pa-number { display: flex; align-items: center; gap: 6px; font-size: 17px; letter-spacing: .02em; }
.pay-account small { grid-column: 1 / -1; color: var(--ink-2); }
.pay-form .error-text { min-height: 1.2em; }
.publish-card.pending { border-color: #E0A23A; background: #FFF8EA; }
.lock-note { margin-top: -4px; }
.upgrade-box { display: grid; gap: 8px; justify-items: start; }
.ended-box { margin: 0 0 14px; }
@media (max-width: 560px) { .plan-cards { grid-template-columns: 1fr; } }

/* WhatsApp Status video (editor) */
.sv-progress { padding: 26px 0 6px; text-align: center; }
.sv-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sv-bar i { display: block; width: 2%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s; }
.sv-label { margin-top: 12px; font-weight: 600; }
.sv-media { display: block; width: auto; max-width: 100%; height: min(58vh, 620px); margin: 14px auto 12px; border-radius: 18px; background: #111; box-shadow: var(--shadow); }
.sv-actions { justify-content: center; }
.pdf-pages { display: flex; gap: 12px; justify-content: center; margin: 14px 0 12px; }
.pdf-pages img { width: calc(50% - 6px); max-width: 260px; aspect-ratio: 1748 / 2480; border-radius: 6px; box-shadow: var(--shadow); }

.storage-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
p.small { font-size: 12.5px; margin-top: 8px; } /* notes only: buttons also use "small" */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; height: 130px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar i { display: block; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.bar span { order: -1; min-height: 16px; margin-bottom: 3px; text-align: center; font-size: 12px; font-weight: 700; line-height: 16px; color: var(--ink); } /* the count sits just above its bar */
.bars.months { grid-template-columns: repeat(12, 1fr); height: 150px; }
.bars.months .bar small { order: 2; margin-top: 4px; text-align: center; font-size: 11px; color: var(--ink-3); line-height: 14px; }
.plan-bars { display: grid; gap: 14px; margin: 6px 0 12px; }
.plan-bar-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-bottom: 6px; }
.plan-bar-head span { color: var(--ink-2); font-size: 13px; }
.plan-track { display: flex; height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.plan-track i, .plan-legend i { display: block; height: 100%; }
.plan-track i.paid, .plan-legend i.paid { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.plan-track i.free, .plan-legend i.free { background: linear-gradient(90deg, #C9A25A, #E9CF8F); }
.plan-legend { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.plan-legend i { width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.plan-legend i:first-child { margin-left: 0; }
.breakdown { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.breakdown li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.admin-toolbar .input { max-width: 420px; }
.admin-toolbar .select { width: 140px; }
.admin-table td { vertical-align: middle; }
.admin-table td b { font-weight: 600; }
.admin-table .badge { margin-left: 8px; }
.admin-table .sub-line { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.admin-table tr.is-disabled td { opacity: .6; }
.admin-card > .chips { justify-content: flex-start; margin-bottom: 18px; }
.stuck-table .badge { margin-left: 0; white-space: nowrap; }
.stuck-table td { white-space: nowrap; }
.stuck-table td:nth-child(2) { white-space: normal; }
.rem-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rem-cell small { font-size: 12px; padding-left: 4px; }
.rem-cell .link-btn { font-size: 12.5px; padding-left: 4px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn { margin-left: 4px; }
.table-wrap { background: var(--surface); }
.pad { padding: 22px; }
.temp-pass { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--gold-2); }
.temp-pass code { flex: 1; font-size: 20px; letter-spacing: .08em; font-weight: 600; color: var(--brand); user-select: all; }
.admin-log { list-style: none; margin: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.admin-log li { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.admin-log li:last-child { border-bottom: 0; }
.admin-log .when { color: var(--ink-3); font-size: 13px; }
.admin-log .who { color: var(--ink-2); font-size: 13px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 640px) {
  .admin-body .topbar .who #email { display: none; }
  .admin-body .topbar-in { padding: 10px 16px; }
  .admin-body .logo { font-size: 15px; letter-spacing: .24em; }
  .admin-tabs { width: 100%; }
  .admin-tab { padding: 0 12px; font-size: 13px; flex: 1; }
  .admin-toolbar { flex-wrap: wrap; }
  .admin-toolbar .input, .admin-toolbar .select { max-width: none; width: 100%; }
  .admin-table { min-width: 760px; }
  .stat b { font-size: 32px; }
}
.more-row { display: flex; justify-content: center; padding: 14px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 14px 0 4px; }
.pager .btn[disabled] { opacity: .4; cursor: default; }
.funnel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.funnel-top .chips { margin: 0; }
.illus-tile .lv-thumb { background: repeating-conic-gradient(#F3EBDD 0 25%, #FBF7F0 0 50%) 0 0 / 14px 14px; }
.pair-hint { margin-top: 10px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- editor: an event's dress code ---------- */
.dress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.dress-sw { position: relative; width: 34px; height: 34px; }
.dress-sw input[type=color] { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; overflow: hidden; }
.dress-sw input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.dress-sw input[type=color]::-webkit-color-swatch { border: none; border-radius: 50%; }
.dress-sw input[type=color]::-moz-color-swatch { border: none; border-radius: 50%; }
.dress-sw .x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.dress-sw .x svg { width: 10px; height: 10px; }
.add-colour { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px dashed var(--line-2); background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.add-colour svg { width: 13px; height: 13px; }
.add-colour:hover { border-color: var(--gold); color: var(--brand); }

/* ---------- editor: WhatsApp beside a contact number ---------- */
.wa-help { margin: -6px 0 10px; color: var(--danger); }
