/* Dashboard + landing styles */
:root {
  --bg: #f8f5f2;
  --surface: #ffffff;
  --surface-2: #f2ede8;
  --primary: #3b3541;
  --primary-dark: #26222b;
  --primary-soft: #efe8ea;
  --accent: #b5826e;
  --text: #26222b;
  --muted: #6f6870;
  --line: #e6dfda;
  --danger: #b2493a;
  --danger-soft: #f6e3df;
  --warn: #b7802b;
  --warn-soft: #f7ecd9;
  --info: #3d6a8a;
  --info-soft: #e1ebf2;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(38, 34, 43, .35);
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Cormorant Garamond', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 .8rem; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.script { font-family: var(--script); font-weight: 400; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.ic { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.05rem; border-radius: 10px; border: 1px solid transparent;
  font: 500 .88rem/1.1 var(--sans); cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #d8e0ce; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.btn-sm { padding: .42rem .7rem; font-size: .78rem; border-radius: 8px; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: .45rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-dark); cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- Forms ---------- */
.field { display: block; margin: 0 0 1rem; min-width: 0; }
.field > span, .label { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-bottom: .35rem; letter-spacing: .01em; }
.field small, .hint { display: block; color: var(--muted); font-size: .76rem; margin-top: .3rem; }
input, select, textarea {
  width: 100%; font: 400 .95rem var(--sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 53, 65, .15); }
input[type="checkbox"], input[type="radio"] { width: auto; }
input[type="color"] { padding: 2px; height: 38px; width: 46px; cursor: pointer; }
.row { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 .6rem; background: var(--surface-2); border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.input-prefix input { border-radius: 0 10px 10px 0; }
.toggle { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { width: 40px; height: 22px; border-radius: 999px; background: #cfcabd; position: relative; transition: .2s; flex: none; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + .track { background: var(--primary); }
.toggle input:checked + .track::after { left: 21px; }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.i18n-pair { display: grid; gap: .4rem; }
.i18n-pair .lang-tag { font-size: .65rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.i18n-pair label { display: grid; grid-template-columns: 26px 1fr; gap: .4rem; align-items: start; }
.i18n-pair label .lang-tag { padding-top: .7rem; }
.form-error { color: var(--danger); font-size: .85rem; margin: .4rem 0; }

/* ---------- Layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--primary-dark); font-weight: 600; font-size: 1.05rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--script); font-size: 1.25rem; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 600; }
.container { max-width: 1320px; margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 600; }
.page-head p { margin: .2rem 0 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.card h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: .8rem; }
.grid { display: grid; gap: 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .big { font-size: 3rem; margin-bottom: .5rem; }

/* Invitation sub-navigation */
.inv-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.inv-head h1 { font-family: var(--script); font-weight: 400; font-size: 2.2rem; color: var(--primary-dark); line-height: 1.1; }
.inv-head .spacer { flex: 1; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; }
.tabs a {
  padding: .7rem 1rem; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--primary-dark); border-bottom-color: var(--primary); }

/* Badges & stats */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 500; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.live { background: var(--primary-soft); color: var(--primary-dark); }
.badge.draft { background: var(--warn-soft); color: var(--warn); }
.badge.yes { background: var(--primary-soft); color: var(--primary-dark); }
.badge.no { background: var(--danger-soft); color: var(--danger); }
.badge.maybe { background: var(--warn-soft); color: var(--warn); }
.badge.pending { background: var(--surface-2); color: var(--muted); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.stat b { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat.accent b { color: var(--primary-dark); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; }

/* Dashboard cards */
.inv-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.inv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.inv-card-top { padding: 1.4rem 1.2rem 1.1rem; color: #fff; position: relative; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; }
.inv-card-top .names { font-family: var(--script); font-size: 2.3rem; line-height: 1.1; }
.inv-card-top .date { font-size: .82rem; opacity: .9; letter-spacing: .05em; }
.inv-card-top .badge { position: absolute; top: .9rem; right: .9rem; }
.inv-card-body { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .8rem; flex: 1; }
.inv-card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; text-align: center; }
.inv-card-stats b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.inv-card-stats span { font-size: .68rem; color: var(--muted); }
.inv-card-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.inv-link { font-size: .8rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; overflow: hidden; }
.inv-link code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2); padding: .2rem .45rem; border-radius: 6px; font-size: .78rem; }

.theme-ivory { background: linear-gradient(140deg, #4a4350, #26222b); }
.theme-sage { background: linear-gradient(140deg, #6b7b5b, #4a573e); }
.theme-navy { background: linear-gradient(140deg, #2a3b5c, #1a263e); }
.theme-terracotta { background: linear-gradient(140deg, #a85d3e, #7c3f27); }
.theme-blush { background: linear-gradient(140deg, #b07c80, #85565a); }
.theme-noir { background: linear-gradient(140deg, #2a2c32, #15161a); }
.theme-crimson { background: linear-gradient(140deg, #9e1b26, #6f0f18); }
.theme-emerald { background: linear-gradient(140deg, #14594a, #0b3b31); }

/* ---------- Editor ---------- */
.editor { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 380px; } }
.editor-side { position: sticky; top: 76px; display: grid; gap: 1rem; }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; }
.section-card > summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem; display: flex; align-items: center; gap: .7rem;
  font-weight: 600; font-size: .98rem;
}
.section-card > summary::-webkit-details-marker { display: none; }
.section-card > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.section-card[open] > summary .chev { transform: rotate(180deg); }
.section-card > summary .sec-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; }
.section-card > summary small { font-weight: 400; color: var(--muted); font-size: .8rem; display: block; }
.section-body { padding: .2rem 1.2rem 1.2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.sub-head { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.2rem 0 .8rem; }
.sub-head:first-child { margin-top: 0; }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .8rem; background: #fcfbf8; }
.list-item-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.list-item-head strong { flex: 1; font-size: .9rem; }
.theme-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.theme-option { border: 2px solid var(--line); border-radius: 12px; padding: .55rem; cursor: pointer; background: var(--surface); text-align: center; font-size: .8rem; font-weight: 500; transition: .2s; }
.theme-option.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,53,65,.15); }
.theme-option .sw { display: flex; height: 34px; border-radius: 8px; overflow: hidden; margin-bottom: .35rem; }
.theme-option .sw i { flex: 1; }
.upload-box { display: flex; align-items: center; gap: .8rem; }
.upload-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--surface-2) center/cover no-repeat; border: 1px dashed var(--line); flex: none; display: grid; place-items: center; color: var(--muted); font-size: .7rem; text-align: center; }
.upload-thumb.has { border-style: solid; }
.upload-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--surface-2) center/cover no-repeat; overflow: hidden; }
.gallery-item .gi-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: .25rem; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.gallery-item button { background: rgba(255,255,255,.9); border: 0; border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-size: .8rem; line-height: 1; }
.colors-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.color-chip { display: flex; align-items: center; gap: .2rem; }
.color-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.save-status { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.save-status.saving { color: var(--warn); }
.save-status.saved { color: var(--primary-dark); }
.save-status.error { color: var(--danger); }
.phone-frame { width: 340px; max-width: 100%; height: 690px; margin: 0 auto; border-radius: 42px; border: 11px solid #1c1e22; background: #000; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); position: relative; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.preview-actions { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.publish-card { display: grid; gap: .7rem; }
.publish-card .url-row { display: flex; gap: .4rem; }
.publish-card .url-row input { font-size: .8rem; background: var(--surface-2); }

/* ---------- Tables / lists ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar .search { flex: 1; min-width: 180px; }
.toolbar select { width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: #faf9f5; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .name { font-weight: 500; }
td .sub { font-size: .76rem; color: var(--muted); }
td .acts { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.code-pill { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; background: var(--surface-2); padding: .1rem .4rem; border-radius: 6px; letter-spacing: .05em; }
.rsvp-list { display: grid; gap: .7rem; }
.rsvp-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; }
.rsvp-item.is-hidden { opacity: .55; }
.rsvp-item .msg { margin: .35rem 0 0; white-space: pre-line; font-size: .92rem; }
.rsvp-item .meta { font-size: .76rem; color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }
.filter-tabs { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.filter-tabs button { border: 0; background: none; padding: .4rem .75rem; border-radius: 8px; font: 500 .8rem var(--sans); color: var(--muted); cursor: pointer; }
.filter-tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Check-in ---------- */
.checkin { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .checkin { grid-template-columns: 1.1fr 1fr; } }
.checkin-input { display: flex; gap: .5rem; }
.checkin-input input { font-size: 1.4rem; letter-spacing: .2em; text-transform: uppercase; font-family: ui-monospace, Consolas, monospace; text-align: center; }
.scanner { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; margin-top: 1rem; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner::after { content: ""; position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.8); border-radius: 16px; }
.result-card { border-radius: 16px; padding: 1.4rem; text-align: center; border: 2px solid var(--line); }
.result-card.ok { border-color: var(--primary); background: var(--primary-soft); }
.result-card.warn { border-color: var(--warn); background: var(--warn-soft); }
.result-card.err { border-color: var(--danger); background: var(--danger-soft); }
.result-card h3 { font-size: 1.5rem; margin: .3rem 0; }
.big-count { font-size: 3rem; font-weight: 600; color: var(--primary-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; gap: .6rem; margin: .8rem 0; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.3rem; cursor: pointer; }
.stepper b { font-size: 1.6rem; min-width: 2ch; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth { grid-template-columns: 1.1fr 1fr; } }
.auth-art {
  display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 50%), linear-gradient(150deg, #4a4350, #26222b);
}
@media (min-width: 900px) { .auth-art { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-art .quote { font-family: var(--script); font-size: 3.4rem; line-height: 1.15; max-width: 12ch; }
.auth-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; opacity: .95; }
.auth-art li::before { content: "✓"; margin-right: .6rem; color: #e2c58a; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; }
.auth-form .box { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 1.7rem; margin: 1.2rem 0 .3rem; }
.auth-form .switch { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---------- Modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(20, 22, 18, .45); display: grid; place-items: center; padding: 1rem; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); animation: pop .2s; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.1rem; font-weight: 600; }
.modal-body { padding: 1.2rem 1.3rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); background: #fbfaf7; }
.close-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 300; background: #262a22; color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-size: .88rem; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 3rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* ---------- 404 ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notfound h1 { font-family: var(--script); font-size: 6rem; color: var(--primary); font-weight: 400; }

/* ---------- Landing ---------- */
.landing-nav { max-width: 1180px; margin: 0 auto; padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: 1rem; }
.landing-nav .spacer { flex: 1; }
.landing-nav a.plain { text-decoration: none; color: var(--text); font-size: .92rem; font-weight: 500; }
.hero-l { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.2rem 4rem; display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .hero-l { grid-template-columns: 1.15fr 1fr; padding-top: 3.5rem; } }
.eyebrow-l { display: inline-flex; gap: .4rem; align-items: center; background: var(--primary-soft); color: var(--primary-dark); padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.hero-l h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; margin: 1rem 0; font-weight: 600; letter-spacing: -.02em; }
.hero-l h1 em { font-family: var(--script); font-style: italic; font-weight: 500; color: var(--accent); font-size: 1.12em; }
.hero-l p.lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.hero-points { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.hero-points span::before { content: "✓ "; color: var(--primary); font-weight: 600; }
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(184,149,90,.25), transparent 65%); top: 10%; z-index: 0; }
.hero-phone .phone-frame { position: relative; z-index: 1; transform: rotate(-2deg); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-l { max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.2rem; }
.section-l h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); text-align: center; margin-bottom: .6rem; font-weight: 600; letter-spacing: -.01em; }
.section-l .sub { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 2.6rem; }
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feature { background: var(--bg); border-radius: 16px; padding: 1.3rem; border: 1px solid var(--line); }
.band .feature { background: #fbfaf6; }
.feature .fi { width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; margin-bottom: .8rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .35rem; font-weight: 600; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.3rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 1.2rem; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; }
.step h3 { font-size: 1.02rem; margin: .4rem 0; font-weight: 600; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }
.themes-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.theme-tile { border-radius: 16px; padding: 1.6rem 1rem; color: #fff; text-decoration: none; text-align: center; transition: transform .2s; display: block; }
.theme-tile:hover { transform: translateY(-4px); }
.theme-tile .names { font-family: var(--script); font-style: italic; font-weight: 500; font-size: 1.9rem; display: block; }
.theme-tile small { opacity: .85; }
.compare { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; font-size: .92rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--primary); font-weight: 600; }
.cta-band { text-align: center; background: linear-gradient(150deg, #4a4350, #26222b); color: #fff; border-radius: 24px; padding: 3rem 1.5rem; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; margin-bottom: 1.5rem; }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); }
.footer-l { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem 3rem; }


/* ---------- Media, reviews, replies ---------- */
.gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gi-badge { position: absolute; top: .3rem; left: .3rem; background: rgba(0,0,0,.6); color: #fff; font-size: .6rem; font-weight: 600; letter-spacing: .08em; padding: .15rem .35rem; border-radius: 5px; }
.field-video { width: 100%; max-height: 220px; border-radius: 10px; background: #000; margin-bottom: .5rem; }
.song-req { margin-top: .35rem; font-size: .85rem; color: var(--primary-dark); }
.reply-view { margin-top: .4rem; font-size: .85rem; padding: .4rem .6rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.reply-edit { margin-top: .5rem; display: grid; gap: .4rem; justify-items: start; }
.stars { color: #e0a526; letter-spacing: .05em; }
.star-input { display: flex; gap: .3rem; margin-bottom: 1rem; }
.star-input button { font-size: 2rem; line-height: 1; border: 0; background: none; color: #d8d3c4; cursor: pointer; transition: transform .15s; }
.star-input button.on { color: #e0a526; }
.star-input button:hover { transform: scale(1.12); }
.review-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.reviews-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.review p { color: var(--text); font-size: .95rem; margin: .5rem 0 .8rem; }
.review .who { font-size: .85rem; color: var(--muted); }
.review .who b { color: var(--text); }

/* ---------- Religion demos ---------- */
.hero-phone { flex-direction: column; align-items: center; gap: 1.2rem; }
.demo-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 420px; }
.demo-chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .35rem .85rem; font: inherit; font-size: .85rem; cursor: pointer; transition: background .15s, color .15s; }
.demo-chip:hover { border-color: var(--primary); }
.demo-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.religion-row { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.religion-tile { background: var(--surface); color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.4rem 1rem; }
.religion-tile .religion-symbol { font-size: 1.9rem; line-height: 1; height: 2rem; }
.religion-tile strong { font-size: 1.1rem; font-weight: 600; }

/* Neutral typography: serif italic wherever the old calligraphy script was used */
.script, .brand-mark, .inv-head h1, .inv-card-top .names, .auth-art .quote, .notfound h1 { font-style: italic; font-weight: 500; }
.religion-tile small { color: var(--muted); opacity: 1; }
.religion-tile .religion-symbol { color: var(--accent); }
.religion-tile:hover { border-color: var(--accent); }
.lang-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: .3rem .75rem; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .06em; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--primary); }

/* Installable app (PWA) */
.install-btn { background: var(--primary); color: #fff; border-color: var(--primary); }
.install-btn:hover { background: var(--primary-dark); }
.install-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; border: 0; border-radius: 999px; cursor: pointer;
  padding: .65rem 1.1rem; background: var(--primary); color: #fff; font: inherit; font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(38, 34, 43, .6);
}
.is-installed-app .landing-nav { padding-top: max(1.1rem, env(safe-area-inset-top)); }

/* ---- Guest status chips + WhatsApp queue ---- */
.status-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.status-chips button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: .35rem .8rem; font: 500 .8rem var(--sans); cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.status-chips button b { font-variant-numeric: tabular-nums; color: var(--text); background: var(--surface-2); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
.status-chips button.urgent b { background: var(--warn-soft); color: var(--warn); }
.status-chips button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.status-chips button.active b { background: rgba(255,255,255,.18); color: #fff; }
.queue-progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: .8rem; }
.queue-progress i { display: block; height: 100%; background: var(--primary); transition: width .2s; }
.queue-msg { white-space: pre-wrap; font: .82rem/1.45 var(--sans); background: var(--surface-2); border-radius: 10px; padding: .8rem; max-height: 220px; overflow: auto; margin: .6rem 0 1rem; }

/* ---- Menu + table tags ---- */
.meal-tag { display: inline-flex; gap: .25rem; align-items: center; font-size: .75rem; color: var(--text); background: var(--surface-2); border-radius: 6px; padding: .1rem .45rem; }
.table-tag { display: inline-flex; gap: .25rem; align-items: center; font-size: .75rem; font-weight: 600; color: var(--primary-dark, var(--primary)); background: var(--primary-soft); border-radius: 6px; padding: .1rem .45rem; margin-top: .2rem; }
.table-tag svg, .checkin-table svg { width: 13px; height: 13px; }
.checkin-table { font-size: 1.3rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; background: var(--primary-soft); border-radius: 10px; padding: .3rem .8rem; }
.checkin-table svg { width: 20px; height: 20px; }
.meal-card { margin-bottom: 1.2rem; }
.meal-card h2 { margin-bottom: .8rem; }
.meal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.meal-cell { background: var(--surface-2); border-radius: 10px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.meal-cell b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.meal-cell span { font-weight: 600; font-size: .85rem; }
.meal-cell small { color: var(--muted); font-size: .72rem; }
.meal-cell.unset { background: var(--warn-soft); }
.diet-notes { margin-top: .8rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.stat.warn b { color: var(--warn); }
.stat.danger { border-color: var(--danger); background: var(--danger-soft); }
.stat.danger b { color: var(--danger); }

/* ---- Seating board ---- */
.seat-alert { background: var(--warn-soft); border-color: #ecd5ad; margin-bottom: 1rem; font-size: .88rem; }
.seat-layout { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 1rem; align-items: start; }
.seat-waiting { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.seat-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; transition: border-color .15s, box-shadow .15s; }
.seat-table.full { border-color: var(--primary-soft); }
.seat-table.over { border-color: var(--danger); background: var(--danger-soft); }
.drop-hover { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--primary-soft); }
.seat-head { display: flex; align-items: center; gap: .4rem; }
.seat-name { flex: 1; min-width: 0; font: 600 .95rem var(--sans); border: 1px solid transparent; background: transparent; padding: .2rem .3rem; border-radius: 6px; }
.seat-name:hover, .seat-name:focus { border-color: var(--line); background: var(--surface); }
.seat-count { font-size: .85rem; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; }
.seat-count b { color: var(--text); font-size: 1rem; }
.seat-cap { width: 3.2rem; padding: .15rem .3rem; font-size: .85rem; border: 1px solid transparent; background: transparent; border-radius: 6px; }
.seat-cap:hover, .seat-cap:focus { border-color: var(--line); background: var(--surface); }
.seat-bar { height: 5px; background: var(--surface-2); border-radius: 5px; overflow: hidden; margin: .45rem 0; }
.seat-bar i { display: block; height: 100%; background: var(--primary); }
.seat-table.over .seat-bar i { background: var(--danger); }
.seat-over { color: var(--danger); font-size: .78rem; font-weight: 600; margin: 0 0 .3rem; }
.seat-meals { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .72rem; color: var(--muted); margin-bottom: .4rem; }
.seat-meals b { color: var(--text); }
.seat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; min-height: 2.2rem; }
.seat-empty { padding: .5rem; text-align: center; border: 1px dashed var(--line); border-radius: 8px; }
.party { background: var(--surface-2); border-radius: 8px; padding: .45rem .55rem; cursor: grab; display: grid; gap: .25rem; }
.party.dragging { opacity: .45; }
.party.declined { background: var(--danger-soft); }
.party-top { display: flex; justify-content: space-between; gap: .4rem; align-items: baseline; }
.party-name { font-weight: 600; font-size: .85rem; }
.party-seats { font-size: .75rem; font-weight: 700; background: var(--surface); border-radius: 999px; padding: 0 .45rem; min-width: 1.4rem; text-align: center; }
.party-sub { display: flex; flex-wrap: wrap; gap: .25rem; }
.party-sub .badge, .party-sub .meal-tag { font-size: .68rem; }
.party-move { font-size: .75rem; padding: .15rem .3rem; border-radius: 6px; width: 100%; background: var(--surface); }
@media (max-width: 760px) {
  .seat-layout { grid-template-columns: 1fr; }
  .seat-waiting { position: static; max-height: none; }
}
@media print {
  .topbar, .tabs, .seat-setup, .party-move, .seat-waiting, .seat-alert, .inv-head .btn, #seatStats, .toast { display: none !important; }
  .seat-layout { display: block; }
  .seat-grid { grid-template-columns: repeat(3, 1fr); }
  .seat-table { break-inside: avoid; }
  .seat-name, .seat-cap { border: 0 !important; }
  body { background: #fff; }
}

/* ---- GitHub Pages dashboard demo bar (assets/demo-api.js) ---- */
.demo-bar { position: fixed; left: 50%; bottom: .8rem; transform: translateX(-50%); z-index: 90; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--text, #26222b); color: #fff; border-radius: 999px; padding: .45rem .6rem .45rem 1rem; font-size: .78rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: calc(100vw - 1.6rem); }
.demo-bar button, .demo-bar a { border: 0; border-radius: 999px; padding: .3rem .75rem; font: 600 .75rem var(--sans); cursor: pointer; text-decoration: none; }
.demo-bar button { background: rgba(255,255,255,.14); color: #fff; }
.demo-bar a { background: #fff; color: var(--text, #26222b); }
body.has-demo-bar { padding-bottom: 4.5rem; }
@media print { .demo-bar { display: none !important; } }
