/* =========================================================
   DESIGN SYSTEM — palette "Lavande"
   Change the colours here and the whole app follows.
   ========================================================= */
:root {
  --ivory:       #FAF7F4;   /* page background */
  --paper:       #FFFFFF;   /* cards */
  --champagne:   #E8DFD2;   /* borders, soft fills */
  --gold:        #BC9A68;   /* small gold details */
  --gold-light:  #E6CF9E;   /* gold on dark backgrounds */
  --lavender:    #DCD0E3;   /* soft accent fill */
  --lavender-50: #F2EDF5;   /* very light accent fill */
  --plum:        #5B4470;   /* main accent: buttons, hero */
  --plum-dark:   #43304F;   /* pressed / headings */
  --ink:         #2E2733;   /* main text */
  --muted:       #7B7183;   /* secondary text */
  --danger:      #B3413B;   /* over budget, errors */
  --danger-50:   #F8E6E4;
  --success:     #4E7A5A;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --shadow:    0 1px 2px rgba(67, 48, 79, .06), 0 6px 18px rgba(67, 48, 79, .07);
  --shadow-lg: 0 10px 30px rgba(67, 48, 79, .18);

  --font-ar:    'Tajawal', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --tap: 52px; /* minimum height of big buttons */
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html[lang="ar"] body { font-family: var(--font-ar); }

.serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: .01em; }
html[lang="ar"] .serif { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; }

h1, h2, h3 { margin: 0; color: var(--plum-dark); line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 16px calc(32px + env(safe-area-inset-bottom));
}
.screen { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 12px;
  font-size: 1.05rem; color: var(--plum-dark);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--champagne); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 0 10px;
}
.topbar .title { flex: 1; font-size: 1.35rem; }
.brand { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-name { font-size: 1.45rem; color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { color: var(--gold); flex: none; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--champagne); border-radius: 50%;
  background: var(--paper); color: var(--plum);
}
.icon-btn:active { transform: scale(.96); }

.lang-btn {
  height: 40px; padding: 0 16px; flex: none;
  border: 1px solid var(--gold); border-radius: 999px;
  background: transparent; color: var(--plum-dark);
  font-weight: 700; font-size: .95rem;
}
.lang-btn:active { background: var(--lavender-50); }

/* Icons flip direction in Arabic (back arrow, chevrons) */
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- Gold ornament (small diamond on a line) ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold); margin: 6px 0;
}
.ornament::before, .ornament::after { content: ""; height: 1px; width: 44px; background: currentColor; opacity: .7; }
.ornament span { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.greeting { margin: 6px 0 16px; }
.greeting h1 { font-size: 1.6rem; }
.greeting p { color: var(--muted); margin-top: 2px; }

/* ---------- Countdown hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--plum);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.hero::before { /* thin gold frame inside */
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(230, 207, 158, .45);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.hero-kicker { font-size: .95rem; color: var(--gold-light); letter-spacing: .04em; }
.hero-number {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 5rem; line-height: 1; margin: 6px 0 2px;
  color: var(--gold-light);
  font-variant-numeric: lining-nums;
}
.hero-label { font-size: 1.05rem; }
.hero-date { margin-top: 12px; font-size: .9rem; opacity: .85; }
.hero-msg { font-size: 1.35rem; margin: 14px 0 6px; color: var(--gold-light); }
.hero .btn { margin-top: 16px; }

/* ---------- Progress tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 16px; }
.tile.wide { grid-column: 1 / -1; }
.tile-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.tile-head svg { color: var(--gold); }
.tile-value { font-size: 1.7rem; font-weight: 700; color: var(--plum-dark); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: .85rem; color: var(--muted); }
.money-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.money-rows .label { font-size: .85rem; color: var(--muted); }
.money-rows .amount { font-size: 1.1rem; font-weight: 700; color: var(--plum-dark); font-variant-numeric: tabular-nums; }

.bar { height: 8px; border-radius: 99px; background: var(--lavender-50); overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--plum); transition: width .4s ease; }
.bar.gold > span { background: var(--gold); }
.tile.over .bar > span { background: var(--danger); }
.tile.over .amount.remaining { color: var(--danger); }
.warn {
  margin-top: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--danger-50); color: var(--danger); font-size: .9rem; font-weight: 600;
}
.link-btn { background: none; border: 0; padding: 0; color: var(--plum); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section cards (home) ---------- */
.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sections .sec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sec {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 128px; padding: 16px;
  text-align: start;
  background: var(--paper); border: 1px solid var(--champagne);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.sec:active { transform: scale(.98); box-shadow: none; }
.sec-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--lavender-50); color: var(--plum);
  border: 1px solid var(--lavender);
}
.sec-name { font-weight: 700; font-size: 1.05rem; color: var(--plum-dark); }
.sec-hint { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.badge-soon {
  font-size: .72rem; font-weight: 700; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 99px; padding: 1px 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1.05rem;
  transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 6px 16px rgba(91, 68, 112, .28); }
.btn-primary:active { background: var(--plum-dark); }
.btn-gold { background: var(--gold-light); color: var(--plum-dark); }
.btn-ghost { background: transparent; border-color: var(--champagne); color: var(--plum); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; color: var(--plum-dark); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.input {
  width: 100%; min-height: var(--tap);
  padding: 12px 16px;
  border: 1px solid var(--champagne); border-radius: var(--radius-sm);
  background: var(--ivory);
  font-size: 1.05rem; /* ≥16px avoids zoom on iPhone */
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px var(--lavender); background: #fff; }
.input[type="date"] { appearance: none; -webkit-appearance: none; }
.field.has-error .input { border-color: var(--danger); }
.field-error { display: none; color: var(--danger); font-size: .88rem; margin-top: 6px; }
.field.has-error .field-error { display: block; }
.field-hint { color: var(--muted); font-size: .88rem; margin-top: 6px; min-height: 1.3em; }

.welcome { text-align: center; padding: 8px 6px 18px; }
.welcome h1 { font-size: 1.9rem; margin-top: 6px; }
.welcome p { color: var(--muted); margin-top: 6px; }

.empty {
  text-align: center; padding: 36px 20px;
}
.empty .sec-icon { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 20px; }
.empty h2 { font-size: 1.3rem; }
.empty p { color: var(--muted); margin: 8px 0 20px; }

.banner {
  margin: 8px 0; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--danger-50); color: var(--danger); font-size: .9rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s; pointer-events: none; z-index: 50;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lists & summaries (Budget, Jhaz) ---------- */
.tappable { cursor: pointer; }
.tappable:active { transform: scale(.99); }
.summary { padding: 18px; }
.summary.over { border-color: var(--danger); }
.summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.summary .label { font-size: .85rem; color: var(--muted); }
.big-amount { font-size: 1.6rem; font-weight: 700; color: var(--plum-dark); font-variant-numeric: tabular-nums; line-height: 1.2; }
.gold-text { color: var(--gold); font-size: 2.2rem; }
.money-rows.three { grid-template-columns: repeat(3, 1fr); }
.money-rows.three .amount { font-size: .98rem; }
.summary.over .amount.remaining { color: var(--danger); }
.summary.over .bar > span { background: var(--danger); }
.warn.soft { background: #FBF1E3; color: #8A5A1C; }
.note { color: var(--muted); font-size: .88rem; margin: 10px 4px 0; }

.rows { display: grid; gap: 10px; }
.row-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; text-align: start;
  background: var(--paper); border: 1px solid var(--champagne);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.row-card:active { transform: scale(.99); }
.row-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.row-title { font-weight: 700; color: var(--plum-dark); }
.row-sub { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-chev { color: var(--gold); flex: none; }
.row-card.over { border-color: var(--danger); }
.row-card.over .row-sub { color: var(--danger); font-weight: 600; }
.row-card.over .bar > span { background: var(--danger); }
.row-card.complete .row-title::after { content: " ✓"; color: var(--success); }
.bar.thin { height: 5px; margin-top: 6px; }

.add-btn { margin-top: 14px; }
.icon-btn.small { width: 38px; height: 38px; }
.icon-btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }

/* Expenses */
.expenses { list-style: none; margin: 0; padding: 4px 16px; }
.expense { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--lavender-50); }
.expense:last-child { border-bottom: 0; }
.expense-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.expense-amount { font-weight: 700; color: var(--plum-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Jhaz items */
.items { list-style: none; margin: 14px 0 0; padding: 4px 8px; }
.item { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--lavender-50); }
.item:last-child { border-bottom: 0; }
.check {
  flex: none; width: 44px; height: 52px; padding: 0;
  display: grid; place-items: center; background: none; border: 0;
}
.check svg {
  width: 28px; height: 28px; padding: 4px; border-radius: 9px;
  border: 1.5px solid var(--gold); color: transparent; background: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.item.done .check svg { background: var(--plum); border-color: var(--plum); color: #fff; }
.item-body {
  flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 6px;
  text-align: start; background: none; border: 0;
}
.item-name { font-weight: 600; color: var(--ink); }
.item-sub { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.item-sub.muted-link { color: var(--gold); }
.item.done .item-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold); }

/* Compact forms */
.form.compact { margin-top: 14px; gap: 14px; }
.form-title { font-size: 1rem; color: var(--plum-dark); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint span { display: block; }
.price-hint { color: var(--gold); font-weight: 600; margin-top: 2px; }

.danger-zone { display: flex; justify-content: space-between; gap: 12px; margin: 22px 4px 0; }
.link-btn.danger { color: var(--danger); }

/* ---------- Tasks timeline ---------- */
.groups { display: grid; gap: 10px; }
.group {
  background: var(--paper); border: 1px solid var(--champagne);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden;
}
.group-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 16px; cursor: pointer; list-style: none;
}
.group-head::-webkit-details-marker { display: none; }
.group-head::after {
  content: ""; width: 9px; height: 9px; margin-inline-start: 4px;
  border-inline-end: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform .2s;
}
.group[open] > .group-head::after { transform: rotate(-135deg); }
.group-title { font-weight: 700; color: var(--plum-dark); flex: 1; min-width: 50%; }
.group-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.group .items { margin: 0; border-top: 1px solid var(--lavender-50); border-radius: 0; box-shadow: none; }
.group-add { display: inline-flex; align-items: center; gap: 6px; margin: 8px 16px 14px; text-decoration: none; }
.badge-now { font-size: .72rem; font-weight: 700; color: #fff; background: var(--plum); border-radius: 99px; padding: 2px 9px; }
.badge-late { font-size: .72rem; font-weight: 700; color: #8A5A1C; background: #FBF1E3; border-radius: 99px; padding: 2px 9px; }

.appt-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--lavender-50); color: var(--plum);
}
.appt-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 14px; text-align: start; border-color: var(--gold);
}
.appt-kicker { font-size: .78rem; font-weight: 700; color: var(--gold); text-transform: none; }

/* ---------- Guests ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-grid .big-amount { font-size: 1.8rem; }
.ok-text { color: var(--success); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--champagne); background: var(--paper); color: var(--plum-dark); font-weight: 600;
}
.chip.active { background: var(--plum); border-color: var(--plum); color: #fff; }
.guests { margin-top: 0; }
.guest { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--lavender-50); }
.guest:last-child { border-bottom: 0; }
.pill {
  flex: none; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid transparent;
  font-size: .82rem; font-weight: 700;
}
.pill.st-invited { background: var(--lavender-50); color: var(--plum); border-color: var(--lavender); }
.pill.st-confirmed { background: #E5F0E8; color: var(--success); border-color: #C6DDCC; }
.pill.st-declined { background: var(--danger-50); color: var(--danger); border-color: #EFCFCB; }

/* ---------- Notes ---------- */
.notes { display: grid; gap: 12px; margin-top: 14px; }
.note-card { padding: 14px 16px; }
.note-head { display: flex; align-items: flex-start; gap: 8px; }
.note-title { flex: 1; font-size: 1.05rem; color: var(--plum-dark); padding-top: 8px; }
.note-body { color: var(--ink); overflow-wrap: anywhere; margin-top: 4px; }
.note-body a { color: var(--plum); font-weight: 700; }
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; padding-inline-end: 40px; }
[dir="rtl"] select.input { background-position: 16px 50%, 22px 50%; }
.section-title .group-count { margin-inline-start: auto; }

/* ---------- Phase 3b: beauty, calendar, tips, tasdira ---------- */
.ok-note { margin-top: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: #E5F0E8; color: var(--success); font-size: .9rem; font-weight: 600; }
.tip-body { padding: 0 16px 16px; color: var(--ink); line-height: 1.6; }
.tip .group-title { font-weight: 600; }
.small-ta { min-height: 90px; }

.outfits { margin-top: 0; }
.outfit { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--lavender-50); }
.outfit:last-child { border-bottom: 0; }
.outfit-num {
  flex: none; width: 30px; height: 30px; margin-inline-start: 6px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: var(--plum); color: var(--gold-light);
}
.outfit-move { display: flex; flex: none; }
.outfit-move .icon-btn:disabled { opacity: .3; }

.rules { display: grid; gap: 4px; padding: 8px 10px; }
.rule {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px;
  background: none; border: 0; text-align: start; color: var(--ink); font-weight: 600;
}
.rule-box {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: transparent; background: #fff;
}
.rule.on .rule-box { background: var(--plum); border-color: var(--plum); color: #fff; }

.dj-preview {
  margin: 12px 0 14px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--lavender-50); border: 1px dashed var(--lavender);
  font-family: inherit; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 320px; overflow-y: auto;
}
.two-cols > .btn { padding: 0 12px; font-size: .95rem; }

/* ---------- Phase 3c ---------- */
/* Hero with couple names, cover photo and live countdown */
.hero-names { position: relative; font-size: 1.7rem; color: #fff; margin-top: 4px; }
.hero > * { position: relative; }
.hero-cover {
  position: absolute !important; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero.with-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(46, 39, 51, .35), rgba(67, 48, 79, .82));
}
.hero.with-cover > *:not(.hero-cover) { z-index: 1; }
.hero.with-cover { padding-top: 64px; }
.hero.with-cover::before { z-index: 1; }
.hero-photo-btn {
  position: absolute !important; top: 14px; inset-inline-end: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border-radius: 99px; border: 1px solid rgba(230, 207, 158, .6);
  background: rgba(255, 255, 255, .12); color: var(--gold-light); font-size: .8rem; font-weight: 700;
}
.hero:not(.with-cover) { padding-top: 54px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.cd-box {
  display: grid; gap: 2px; padding: 10px 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(230, 207, 158, .35);
}
.cd-num { font-family: var(--font-serif); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--gold-light); font-variant-numeric: lining-nums tabular-nums; }
.cd-unit { font-size: .75rem; color: var(--ivory); opacity: .9; }

/* Photos */
.thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--lavender-50); }
.photo-block { margin-bottom: 14px; }
.photo-preview { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius-sm); background: var(--lavender-50); min-height: 120px; }
.photo-preview.big { max-height: 60vh; object-fit: contain; }
.photo-add {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 72px; margin-bottom: 14px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--gold); background: var(--ivory); color: var(--plum); font-weight: 700;
}
.inspo-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.inspo-tile {
  flex: none; width: 104px; height: 132px; padding: 0; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--champagne); background: var(--paper);
}
.inspo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inspo-tile.add { display: grid; place-items: center; border: 1.5px dashed var(--gold); color: var(--gold); }

/* Donut chart */
.donut-card { margin-top: 14px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.donut {
  flex: none; width: 132px; height: 132px; border-radius: 50%; position: relative;
  display: grid; place-items: center;
}
.donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--paper); }
.donut span { position: relative; z-index: 1; font-size: .78rem; font-weight: 700; color: var(--plum-dark); text-align: center; padding: 0 30px; line-height: 1.3; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.legend .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.lg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-pct { font-weight: 700; color: var(--plum-dark); font-variant-numeric: tabular-nums; }

/* Priority badges */
.prio { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; margin-inline-end: 4px; }
.prio-high { background: #FBF1E3; color: #8A5A1C; }
.prio-urgent { background: var(--danger-50); color: var(--danger); }

/* Guests WhatsApp */
.icon-btn.wa { border-color: #C6DDCC; color: var(--success); background: #F1F7F3; }

/* Vendors */
.vendor { padding: 12px 14px; }
.vendor.chosen { border-color: var(--plum); box-shadow: 0 0 0 2px var(--lavender), var(--shadow); }
.vendor-head { display: flex; align-items: flex-start; gap: 8px; }
.vendor-head .item-body { padding: 2px 0; }
.vendor-price { font-size: 1.15rem; font-weight: 700; color: var(--plum-dark); font-variant-numeric: tabular-nums; }
.vendor-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.badge-cheap { font-size: .72rem; font-weight: 700; color: var(--success); background: #E5F0E8; border-radius: 99px; padding: 2px 9px; }
.vendor-notes { margin-top: 4px; }
.vendor-actions { display: flex; gap: 8px; margin-top: 10px; }
.vendor-actions:empty { display: none; }
.small-btn { min-height: 40px; padding: 0 14px; font-size: .9rem; text-decoration: none; }

/* ---------- Bottom sheet ---------- */
body.no-scroll { overflow: hidden; }
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(46, 39, 51, .45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(30px); transition: transform .22s ease;
}
.sheet-backdrop.open .sheet { transform: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: var(--champagne); margin: 0 auto 12px; }
.sheet-title { font-size: 1.25rem; margin-bottom: 14px; }
.sheet .form { gap: 14px; }
.sheet-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }

/* ---------- Bigger screens ---------- */
@media (min-width: 700px) {
  body { background: linear-gradient(180deg, var(--lavender-50), var(--ivory) 40%); }
  .app { padding-top: 12px; }
  .sections { grid-template-columns: repeat(3, 1fr); }
  .sections .sec:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- Phase 4: activation, demo, settings ---------- */
.code-input { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.field label svg { vertical-align: -3px; color: var(--gold); }
.note.center { text-align: center; margin-top: 16px; }
.note a { color: var(--plum); font-weight: 700; }
.card.form.compact + .card.form.compact { margin-top: 14px; }
a.btn { text-decoration: none; }

/* ---------- Phase 6 ---------- */
/* "Le mot de Lella" daily card */
.lella-says { margin-top: 14px; padding: 14px 14px 8px; border-color: var(--gold); background: linear-gradient(180deg, #FFFCF6, var(--paper)); }
.says-title { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; color: var(--plum); margin-bottom: 6px; }
.says-title svg { color: var(--gold); }
.says-list { list-style: none; margin: 0; padding: 0; }
.say-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 2px; background: none; border: 0; border-top: 1px solid var(--lavender-50); text-align: start; color: var(--ink); }
.says-list li:first-child .say-item { border-top: 0; }
.say-icon { flex: none; width: 32px; height: 34px; display: grid; place-items: center; color: var(--plum); background: var(--lavender-50); border-radius: 50% 50% 8px 8px / 14px 14px 8px 8px; }
.say-text { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; }
.say-empty { padding: 8px 2px 10px; color: var(--muted); }

/* Readiness ring */
.ready-card { display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 12px; text-align: start; }
.ring.big { width: 92px; height: 92px; margin: 0; flex: none; }
.ring.big::after { inset: 9px; }
.ring.big span { font-size: 1.35rem; font-family: var(--font-serif); color: var(--plum); }
.ready-title { font-size: 1.5rem; color: var(--plum-dark); }
.ready-msg { color: var(--ink); font-weight: 600; margin-top: 2px; }
.link-btn.small { font-size: .85rem; margin-top: 6px; display: inline-block; }
.ready-parts { display: grid; gap: 8px; margin: 14px 0; }
.ready-part { display: grid; gap: 4px; width: 100%; padding: 10px 12px; text-align: start; background: var(--ivory); border: 1px solid var(--champagne); border-radius: var(--radius-sm); }
.rp-head { display: flex; justify-content: space-between; font-weight: 700; color: var(--plum-dark); }
.center-txt { text-align: center; }

/* Who pays */
.who-pays { margin-top: 14px; }
.who-pays .label { display: flex; align-items: center; gap: 6px; }
.dot.pay-bride, .payer-tag.pay-bride { background: var(--lavender); }
.dot.pay-groom, .payer-tag.pay-groom { background: #E8D5B5; }
.dot.pay-shared, .payer-tag.pay-shared { background: #CFE0D3; }
.who-pays .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.payer-tag { display: inline-block; margin-inline-start: 6px; padding: 0 7px; border-radius: 99px; font-size: .7rem; font-weight: 700; color: var(--plum-dark); vertical-align: 1px; }

/* Vendor stars */
.stars { color: var(--gold); letter-spacing: 1px; font-size: .95rem; }
.stars .off { color: var(--champagne); }

/* Dream box */
.dream-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dream { position: relative; padding: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 50% 50% var(--radius-sm) var(--radius-sm) / 70px 70px var(--radius-sm) var(--radius-sm); border: 1px solid var(--champagne); background: var(--lavender-50); }
.dream img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dream-cap { position: absolute; inset: auto 0 0 0; padding: 18px 10px 8px; font-size: .8rem; font-weight: 700; color: #fff; text-align: center; background: linear-gradient(180deg, transparent, rgba(46, 39, 51, .75)); }

/* Day program timeline */
.timeline { list-style: none; margin: 12px 0 0; padding: 6px 12px; }
.step { position: relative; display: flex; align-items: center; gap: 12px; padding-inline-start: 4px; }
.step + .step { border-top: 1px dashed var(--champagne); }
.step-time { flex: none; min-width: 58px; padding: 4px 8px; border-radius: 99px; text-align: center; font-weight: 700; font-size: .88rem; background: var(--plum); color: var(--gold-light); font-variant-numeric: tabular-nums; direction: ltr; }
.step .item-sub svg { vertical-align: -2px; }

/* ---------- Phase 7 ---------- */
.hero-share {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; height: 36px; padding: 0 14px;
  border-radius: 99px; border: 1px solid rgba(230, 207, 158, .6); background: rgba(255, 255, 255, .12);
  color: var(--gold-light); font-size: .85rem; font-weight: 700;
}
.invite-link { margin-bottom: 14px; border-color: var(--gold); }
.invite-preview-card { padding: 10px; }
.invite-preview { display: block; width: 100%; aspect-ratio: 1080 / 1350; border-radius: var(--radius-sm); background: var(--lavender-50); object-fit: contain; }
.prio-region { background: #E9F0EA; color: var(--success); }
.after-card { border-color: var(--plum); }
.after-card .items { box-shadow: none; border: 0; }

/* ---------- «اسقسي لالّة» chat ---------- */
.ask-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bubble {
  max-width: 88%; padding: 12px 14px; line-height: 1.55; font-size: .97rem;
  border-radius: 18px; box-shadow: var(--shadow); overflow-wrap: anywhere;
}
.bubble.me { align-self: flex-end; background: linear-gradient(180deg, #6B5281, var(--plum)); color: #fff; border-end-end-radius: 6px; }
.bubble.lella { align-self: flex-start; background: var(--paper); border: 1px solid var(--champagne); border-end-start-radius: 6px; }
.bubble.hello { display: flex; gap: 10px; align-items: flex-start; border-color: var(--gold); background: #FFFCF6; }
.ask-avatar {
  flex: none; width: 34px; height: 38px; display: grid; place-items: center; color: var(--gold-light);
  background: var(--plum); border-radius: 50% 50% 9px 9px / 16px 16px 9px 9px;
}
.ask-go { margin-top: 10px; }
.ask-rel { margin: 10px 2px 4px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ask-chips .chip { height: auto; min-height: 36px; padding: 6px 12px; text-align: start; font-size: .86rem; line-height: 1.35; white-space: normal; }
.ask-form {
  display: flex; gap: 8px; margin: 16px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  position: sticky; bottom: 0; z-index: 5;
  background: rgba(250, 247, 244, .96); border-top: 1px solid var(--champagne);
}
.ask-form .input { flex: 1; background: #fff; }
.ask-form .btn { min-width: 52px; padding: 0 14px; }
.ask-foot { text-align: center; }
.ask-link {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 12px;
  border: 1px dashed var(--gold); border-radius: var(--radius-sm); background: #FFFCF6;
  color: var(--plum-dark); font-weight: 700; text-align: start;
}
.ask-link svg { color: var(--gold); flex: none; }
.ask-link-hint { margin-inline-start: auto; font-weight: 400; font-size: .78rem; color: var(--muted); }

/* ---------- Mistake-proofing hints ---------- */
.date-hint { color: var(--plum); font-weight: 600; }
.money-suggest:empty { display: none; }
.suggest-btn {
  display: block; width: 100%; margin-top: 6px; padding: 8px 12px; text-align: start;
  border: 1.5px dashed var(--gold); border-radius: var(--radius-sm);
  background: #FFFCF6; color: #8A5A1C; font-weight: 700; font-size: .88rem;
}

/* ---------- « Les portes »: side button + all-sections panel ---------- */
.app { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.fab {
  position: fixed; z-index: 35; bottom: calc(18px + env(safe-area-inset-bottom));
  inset-inline-end: max(16px, calc((100vw - 520px) / 2 + 16px));
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0; background: none; border: 0;
}
.fab-arch {
  width: 58px; height: 66px; display: grid; place-items: center;
  border-radius: 50% 50% 16px 16px / 30px 30px 16px 16px;
  background: linear-gradient(180deg, #6B5281, var(--plum)); color: var(--gold-light);
  box-shadow: inset 0 0 0 1.5px rgba(230, 207, 158, .55), 0 10px 24px rgba(67, 48, 79, .35);
}
.fab-label {
  font-size: .72rem; font-weight: 700; color: var(--plum-dark);
  background: rgba(250, 247, 244, .92); padding: 1px 8px; border-radius: 99px;
}
.fab:active .fab-arch { transform: scale(.95); }

.doors-group { margin: 16px 2px 8px; font-weight: 700; color: var(--plum-dark); display: flex; align-items: center; gap: 8px; }
.doors-group::before {
  content: ""; width: 12px; height: 12px; background: var(--gold);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat;
}
.doors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.door {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 4px 8px; background: none; border: 0; text-align: center; min-width: 0;
}
.door-arch {
  width: 100%; max-width: 92px; height: 78px; display: grid; place-items: center;
  border-radius: 50% 50% 14px 14px / 34px 34px 14px 14px;
  background: linear-gradient(180deg, var(--lavender-50), #fff);
  border: 1px solid var(--champagne); color: var(--plum);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(188, 154, 104, .35);
}
.door.current .door-arch { background: linear-gradient(180deg, #6B5281, var(--plum)); color: var(--gold-light); border-color: var(--plum); }
.door-name { font-size: .82rem; font-weight: 700; color: var(--plum-dark); line-height: 1.25; }
.door-status { font-size: .72rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.doors-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--lavender-50); }

/* ---------- Phase 5: install card ---------- */
.install-card { margin-top: 14px; border-color: var(--gold); }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.install-head img { flex: none; border-radius: 12px; }
.ios-steps { background: var(--lavender-50); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .92rem; }
.install-later { display: block; margin: 10px auto 0; }
.ios-first { margin: 14px 0; border: 1.5px solid var(--gold); background: #FFFCF6; }
.ios-first .form-title svg, .backup-card .form-title svg { vertical-align: -3px; color: var(--gold); }
.ios-first .ios-steps { margin-top: 10px; }
.backup-card { margin-top: 14px; border: 1.5px solid var(--gold); }
.backup-card .btn { margin-top: 12px; }

/* =========================================================
   DESIGN V2 — « Casbah »
   Arches of Algiers' old doors and windows, a zellige star
   pattern, and fetla-style gold embroidery lines.
   ========================================================= */
:root {
  --font-ar-display: 'Aref Ruqaa', 'Tajawal', serif;
  /* 8-point star (khatam) used as a mask, so it can take any colour */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3.4 3.8 5.1-.3-.3 5.1L24 12l-3.8 3.4.3 5.1-5.1-.3L12 24l-3.4-3.8-5.1.3.3-5.1L0 12l3.8-3.4-.3-5.1 5.1.3z'/%3E%3C/svg%3E");
  /* Fetla ornament: curls on both sides of a small star */
  --fetla: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6 12h44c7 0 9-7 15-7 5 0 6 5 2 7'/%3E%3Cpath d='M154 12h-44c-7 0-9-7-15-7-5 0-6 5-2 7'/%3E%3Cpath d='M30 12c4 0 6 4 10 4M130 12c-4 0-6 4-10 4'/%3E%3C/g%3E%3Cpath d='M80 4l2.6 3.4 4.2.6-3 3 .7 4.2L80 13.4l-4.5 1.8.7-4.2-3-3 4.2-.6z' fill='%23000'/%3E%3C/svg%3E");
  /* Very light zellige pattern for the page background */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23BC9A68' stroke-opacity='.14' stroke-width='1'%3E%3Crect x='21' y='21' width='22' height='22'/%3E%3Crect x='21' y='21' width='22' height='22' transform='rotate(45 32 32)'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='64' cy='0' r='6'/%3E%3Ccircle cx='0' cy='64' r='6'/%3E%3Ccircle cx='64' cy='64' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --arch-r: 50% 50% var(--radius-lg) var(--radius-lg) / 120px 120px var(--radius-lg) var(--radius-lg);
}

body { background-color: var(--ivory); background-image: var(--pattern); background-size: 64px 64px; }
@media (min-width: 700px) {
  body { background-image: var(--pattern), linear-gradient(180deg, var(--lavender-50), var(--ivory) 40%); background-size: 64px 64px, auto; }
}

/* Display fonts: Ruqaa calligraphy in Arabic, Cormorant italic in French */
html[lang="ar"] .display { font-family: var(--font-ar-display); font-weight: 700; letter-spacing: 0; }
html[lang="fr"] .display { font-family: var(--font-serif); font-style: italic; font-weight: 600; }
.brand-name.display { font-size: 1.65rem; color: var(--plum); }
.greeting h1.display { font-size: 1.85rem; }

/* Fetla ornament (replaces the small diamond) */
.ornament {
  width: 160px; height: 22px; margin: 10px auto; color: var(--gold);
  background: currentColor;
  -webkit-mask: var(--fetla) center / contain no-repeat; mask: var(--fetla) center / contain no-repeat;
}
.ornament::before, .ornament::after, .ornament span { display: none; }
.hero .ornament { color: var(--gold-light); }

/* Section titles start with a small gold star */
.section-title::before {
  content: ""; flex: none; width: 13px; height: 13px; background: var(--gold);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat;
}

/* ---------- Arch hero (like a Casbah window) ---------- */
.hero { border-radius: var(--arch-r); padding-top: 64px; }
.hero::before { border-radius: 50% 50% calc(var(--radius-lg) - 8px) calc(var(--radius-lg) - 8px) / 112px 112px calc(var(--radius-lg) - 8px) calc(var(--radius-lg) - 8px); }
.hero:not(.with-cover) { padding-top: 70px; }
.hero.with-cover { padding-top: 132px; }
.hero:not(.with-cover)::after { /* soft star glow behind the names */
  content: ""; position: absolute; top: 18px; left: 50%; width: 220px; height: 220px; margin-left: -110px;
  background: var(--gold-light); opacity: .08; z-index: 0;
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat;
}
.hero-photo-btn {
  inset-inline-end: auto; inset-inline-start: auto; top: 16px; left: 50%; right: auto;
  transform: translateX(-50%); width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%;
}
.hero-photo-btn span { display: none; }
.hero-names { font-size: 2.1rem; line-height: 1.3; }
.cd-box { border-radius: 50% 50% 12px 12px / 20px 20px 12px 12px; padding-top: 14px; }

/* ---------- Arch shapes on icons, welcome and empty states ---------- */
.sec-icon, .appt-icon {
  border-radius: 50% 50% 12px 12px / 22px 22px 12px 12px;
  height: 52px; background: linear-gradient(180deg, var(--lavender-50), #fff);
  border: 1px solid var(--champagne);
}
.appt-icon { width: 42px; height: 48px; }
.sec { position: relative; overflow: hidden; }
.sec::after { /* faint star in the corner of each card */
  content: ""; position: absolute; top: -20px; inset-inline-end: -20px; width: 64px; height: 64px;
  background: var(--gold); opacity: .09; pointer-events: none;
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat;
}
.empty .sec-icon { height: 72px; border-radius: 50% 50% 16px 16px / 32px 32px 16px 16px; }

.welcome {
  position: relative; margin-top: 6px; padding: 44px 22px 26px;
  background: var(--paper); border: 1px solid var(--champagne); box-shadow: var(--shadow);
  border-radius: var(--arch-r);
}
.welcome::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid var(--gold); opacity: .45;
  border-radius: 50% 50% calc(var(--radius-lg) - 7px) calc(var(--radius-lg) - 7px) / 113px 113px calc(var(--radius-lg) - 7px) calc(var(--radius-lg) - 7px);
}
.welcome + .form { margin-top: 14px; }

/* Primary buttons: deeper plum with a fine gold edge */
.btn-primary {
  background: linear-gradient(180deg, #6B5281, var(--plum));
  box-shadow: inset 0 0 0 1px rgba(230, 207, 158, .35), 0 6px 16px rgba(91, 68, 112, .28);
}
.btn-gold { background: linear-gradient(180deg, #EFDDB4, var(--gold-light)); }

/* ---------- Progress rings (home tiles) ---------- */
.ring {
  --p: 0; position: relative; width: 66px; height: 66px; margin: 10px 0 6px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--ring-color, var(--gold)) calc(var(--p) * 1%), var(--lavender-50) 0);
}
.ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); }
.ring span { position: relative; z-index: 1; font-weight: 700; font-size: .95rem; color: var(--plum-dark); font-variant-numeric: tabular-nums; }
.ring.plum { --ring-color: var(--plum); }

/* ---------- Celebration: gold stars burst when a list is complete ---------- */
.burst { position: fixed; left: 50%; top: 42%; z-index: 60; pointer-events: none; }
.burst i {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: var(--gold);
  -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat;
  animation: burst 1.15s cubic-bezier(.2, .7, .3, 1) forwards;
}
.burst i:nth-child(3n) { background: var(--plum); width: 10px; height: 10px; }
.burst i:nth-child(3n+1) { background: var(--gold-light); }
@keyframes burst {
  0% { transform: translate(0, 0) scale(.3) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.1) rotate(200deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .burst { display: none; }
  .screen { animation: none; }
}

/* ---------- Extra sections (more.js) ---------- */
.feast-result { padding: 4px 16px; }
.feast-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--champagne); }
.feast-row:last-child { border-bottom: 0; }
.feast-row strong { font-size: 1.25rem; color: var(--plum-dark); font-variant-numeric: tabular-nums; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--plum-dark); }
.check-line input { width: 22px; height: 22px; accent-color: var(--plum); }
.tel-link { display: inline-flex; align-items: center; gap: 6px; color: var(--plum); font-weight: 700; text-decoration: none; }
.item > .icon-btn { flex: none; align-self: center; }

/* ---------- Group 3: calm corner, summary, print ---------- */
.dua { padding: 16px; margin-top: 12px; }
.dua-text { font-family: "Aref Ruqaa", "Tajawal", serif; font-size: 1.35rem; line-height: 2; color: var(--plum-dark); text-align: center; }
.dua-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.calm-words { list-style: none; margin: 0; padding: 6px 16px; }
.calm-word { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--lavender-50); color: var(--ink); line-height: 1.6; }
.calm-word:last-child { border-bottom: 0; }
.calm-word svg { flex: none; margin-top: 5px; color: var(--gold); }
.sum-head { text-align: center; }
.sum-names { font-size: 1.7rem; color: var(--plum); }
.summary-page .feast-row strong { font-size: 1rem; text-align: end; }
div.item-body { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
@media print {
  .no-print, .fab, .topbar .lang-btn, .topbar .icon-btn, .toast { display: none !important; }
  body { background: #fff !important; }
  .card { box-shadow: none !important; break-inside: avoid; }
  .app { max-width: none; }
}

/* ---------- Group 4: health advice, dark-spots routine ---------- */
.info-list { margin: 0; padding: 0 34px 14px 16px; color: var(--ink); line-height: 1.7; }
[dir="ltr"] .info-list { padding: 0 16px 14px 34px; }
.info-list li { margin-bottom: 6px; }
.warn-group { border-color: #EFCFCB; }
.warn-group .group-title { color: var(--danger); }
.doctor-card { margin-top: 14px; padding: 14px 4px 12px; border-color: var(--danger); background: var(--danger-50); }
.doctor-card .tile-sub { padding: 0 16px; }
.doctor-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--danger); padding: 0 16px 8px; }
.routine { margin-top: 12px; padding: 14px 4px 2px; }
.routine-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--plum); padding: 0 16px 8px; }
.pick { margin: 6px 0 0; }
.pick-chip { cursor: pointer; display: inline-flex; align-items: center; }
.pick-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pick-chip:has(input:checked) { background: var(--plum); border-color: var(--plum); color: #fff; }
.pick-chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.day-dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 8px 0; }
.day-dot { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--champagne); background: transparent; }
.day-dot.half { background: var(--lavender); border-color: var(--lavender); }
.day-dot.full { background: var(--plum); border-color: var(--plum); }

/* ---------- Group 5: loving word, bell ---------- */
.love-card { margin-top: 14px; padding: 16px; text-align: center; border-color: var(--lavender); background: linear-gradient(180deg, var(--lavender-50), var(--paper)); }
.love-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--gold); }
.love-text { font-size: 1.35rem; line-height: 1.7; color: var(--plum-dark); margin: 6px 0 4px; }
.love-card .two-cols { margin-top: 12px; }
.bell-btn { position: relative; }
.bell-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- Personal activation ---------- */
.owner-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 6px; padding: 5px 12px; border-radius: 99px; background: var(--lavender-50); color: var(--plum); font-size: .8rem; font-weight: 700; }
.code-input { font-size: .95rem; }

/* ---------- This phone's code (activation screen) ---------- */
.device-card { margin: 14px 0; text-align: center; border: 1.5px solid var(--lavender); background: var(--lavender-50); }
.device-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.9rem; font-weight: 700; letter-spacing: .12em; color: var(--plum-dark); margin: 6px 0; user-select: all; -webkit-user-select: all; }
.device-card .two-cols { margin-top: 12px; }

/* ---------- Personal link: one more step (iPhone / Instagram browser) ---------- */
.pending-card { margin: 14px 0; border: 1.5px solid var(--gold); background: #FFFCF6; }
.pending-card .ios-steps { margin: 8px 0 12px; white-space: pre-line; }
#activation-form .btn-ghost { margin-top: 10px; }

/* ---------- Navigation like a real app: bottom bar + large rows ---------- */
html { touch-action: manipulation; overscroll-behavior: none; }
body { overscroll-behavior-y: none; }
button, .tab, .menu-row, .sec, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.app { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
/* The tab on the side of the screen */
.side-tab {
  position: fixed; z-index: 35; top: 62%; inset-inline-start: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 7px 12px 9px; border: 0; font: inherit;
  background: linear-gradient(180deg, #6B5281, var(--plum)); color: var(--gold-light);
  border-start-end-radius: 16px; border-end-end-radius: 16px;
  box-shadow: 0 8px 22px rgba(67, 48, 79, .32), inset 0 0 0 1.5px rgba(230, 207, 158, .5);
}
.side-tab-label { writing-mode: vertical-rl; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
html[lang="fr"] .side-tab-label { transform: rotate(180deg); }
.side-tab:active { filter: brightness(1.1); }
@media (min-width: 560px) { .side-tab { inset-inline-start: calc((100vw - 520px) / 2); border-radius: 16px; } }

/* The menu that slides in from the same side */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 45; display: flex; justify-content: flex-start;
  background: rgba(46, 39, 51, .45); opacity: 0; transition: opacity .2s;
}
.drawer-backdrop.open { opacity: 1; }
.drawer {
  width: min(88vw, 380px); height: 100%; display: flex; flex-direction: column;
  background: var(--paper); box-shadow: 0 0 40px rgba(46, 39, 51, .3);
  transform: translateX(var(--drawer-off, 100%)); transition: transform .22s ease;
}
html[dir="ltr"] { --drawer-off: -100%; }
.drawer-backdrop.open .drawer { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--lavender-50);
}
.drawer-title { font-size: 1.35rem; color: var(--plum-dark); margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px calc(24px + env(safe-area-inset-bottom)); }
.drawer .doors-foot { justify-content: stretch; }
.drawer .doors-foot .btn { flex: 1; }
@media print { .side-tab, .drawer-backdrop { display: none !important; } }

.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px;
  padding: 10px 12px; text-align: start; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--champagne); border-radius: 16px;
}
.menu-row:active { background: var(--lavender-50); }
.menu-row.current { border-color: var(--plum); background: var(--lavender-50); }
.menu-icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: var(--lavender-50); color: var(--plum);
}
.menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menu-name { font-size: 1.08rem; font-weight: 700; color: var(--plum-dark); line-height: 1.3; }
.menu-hint { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.menu-status { flex: none; font-size: .85rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* narrow phones: keep the app name whole */
@media (max-width: 400px) {
  .topbar { gap: 6px; }
  .topbar .lang-btn { padding: 0 10px; font-size: .82rem; }
  .topbar .brand { min-width: 0; gap: 6px; }
  .topbar .brand-name { font-size: 1.25rem; overflow: visible; text-overflow: clip; white-space: nowrap; }
}

/* ---------- Group 6: body map, period calendar, cycle stats ---------- */
.body-map { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; }
.bm-toggle { display: flex; gap: 8px; }
.bm-figure { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.bm-body { fill: var(--lavender-50); stroke: var(--lavender); color: var(--lavender-50); }
.bm-body path[stroke-width], .bm-body g path { stroke: var(--lavender-50); }
.bm-body circle, .bm-body rect, .bm-body ellipse, .bm-body > path { stroke: var(--lavender); stroke-width: 1.2; }
.bm-hair { fill: var(--champagne); }
.bm-dot { cursor: pointer; }
.bm-dot circle { fill: var(--plum); }
.bm-dot .bm-ring { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .7; }
.bm-dot text { fill: #fff; font: 700 10px var(--font-sans); pointer-events: none; }
.bm-dot.mine circle:not(.bm-ring) { fill: var(--gold); }
.bm-dot:focus { outline: none; } .bm-dot:focus .bm-ring { stroke-width: 3; opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .bm-dot .bm-ring { animation: bmPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; } }
@keyframes bmPulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.zone-chip { border: 1px solid var(--champagne); background: var(--paper); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.zone-chip b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--plum); color: #fff; font-size: .72rem; margin-inline-end: 4px; }
.zone-chip.mine b { background: var(--gold); }
.zone-block { margin-bottom: 14px; }
.zone-h { font-weight: 800; color: var(--plum); margin-bottom: 4px; }
.zone-block.doctor { background: var(--danger-50); border-radius: 14px; padding: 10px 12px; }
.zone-block.doctor .zone-h { color: var(--danger); }
.zone-see { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.zone-see .chip { border: 1px solid var(--lavender); background: var(--lavender-50); color: var(--plum); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.item-sub.req { color: var(--danger); font-weight: 700; }
.center { text-align: center; }

.cal { padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .icon-btn { font-size: 1.5rem; line-height: 1; }
.cal-month { font-weight: 800; color: var(--plum-dark); text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .cal-cell { min-width: 0; min-height: 0; padding: 0; margin: 0; }
.cal-wd { overflow: hidden; text-overflow: clip; white-space: nowrap; }
.cal-wd { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 700; padding-bottom: 4px; }
.cal-cell { position: relative; aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font: inherit; font-size: .95rem; color: var(--ink); display: grid; place-items: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal-cell.empty { cursor: default; }
.cal-cell.p { background: #E9B8BE; color: #5A2A38; font-weight: 800; }
.cal-cell.pred { border: 1.5px dashed #D88C98; color: #A85A68; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--plum); }
.cal-log { position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--plum); }
.cal-ring { position: absolute; inset: 2px; border-radius: 50%; border: 2px solid var(--gold); pointer-events: none; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 12px 0 6px; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg.p { background: #E9B8BE; } .lg.pred { border: 1.5px dashed #D88C98; } .lg.log { width: 6px; height: 6px; border-radius: 50%; background: var(--plum); } .lg.wed { border-radius: 50%; border: 2px solid var(--gold); }

.cyc-stats .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cyc-stats .stat-row div { display: flex; flex-direction: column; gap: 2px; }
.cyc-stats .stat-row b { font-size: 1.1rem; color: var(--plum-dark); font-variant-numeric: tabular-nums; }
.mini-chart { width: 100%; height: auto; margin-top: 6px; direction: ltr; }
.mini-chart .band { fill: var(--lavender-50); }
.mini-chart rect:not(.band) { fill: var(--plum); }
.mini-chart rect.out { fill: var(--danger); }
.mini-chart text { fill: var(--ink); font: 700 11px var(--font-sans); }
.mini-chart .axis { fill: var(--muted); font-weight: 400; font-size: 10px; }
.mini-chart .base { stroke: var(--champagne); }
.sources .info-list li { font-size: .82rem; color: var(--muted); }

/* ---------- Daily period questions: soft cards + icon tiles ---------- */
.day-form { gap: 14px; }
.day-q { border-radius: 20px; padding: 12px 12px 14px; }
.day-q.rose { background: #FCEEF0; } .day-q.peach { background: #FDF1EA; } .day-q.lav { background: #F4EFFA; }
.day-q.blush { background: #FBF0F4; } .day-q.cream { background: #FBF6EE; }
.day-q-h { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #6B3443; margin: 0 4px 10px; }
.day-q-h span { font-size: 1.15rem; }
.day-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.day-tiles.mood { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.day-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 4px; border-radius: 16px; background: #fff; border: 1.5px solid rgba(216, 140, 152, .25); cursor: pointer; text-align: center; transition: transform .12s, background .15s, border-color .15s; }
.day-tile input { position: absolute; opacity: 0; pointer-events: none; }
.dt-ico { font-size: 1.6rem; line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.dt-txt { font-size: .78rem; font-weight: 700; color: #6B5A62; line-height: 1.2; }
.day-tile:has(input:checked) { background: linear-gradient(180deg, #F7C6D0, #EFA9B8); border-color: #D88C98; box-shadow: 0 4px 12px rgba(216, 140, 152, .35); }
.day-tile:has(input:checked) .dt-txt { color: #5A2A38; }
.day-tile:has(input:focus-visible) { outline: 2px solid #A85A68; outline-offset: 2px; }
.day-tile:active { transform: scale(.96); }
.drops { width: auto; height: 22px; }
.drops path { fill: #E58FA3; }
.drops path.empty { fill: none; stroke: #D88C98; stroke-width: 1.5; }
.day-tile:has(input:checked) .drops path { fill: #A8384C; }
.day-tile:has(input:checked) .drops path.empty { fill: none; stroke: #A8384C; }
.day-q .input { background: #fff; border-color: rgba(216, 140, 152, .35); }
.day-start { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(90deg, #FCEEF0, #F4EFFA); border: 1.5px solid rgba(216, 140, 152, .35); cursor: pointer; font-weight: 700; color: #6B3443; }
.day-start input { position: absolute; opacity: 0; pointer-events: none; }
.ds-ico { font-size: 1.3rem; }
.day-start span:nth-of-type(2) { flex: 1; }
.ds-switch { flex: none; width: 44px; height: 26px; border-radius: 99px; background: #E8D8DC; position: relative; transition: background .15s; }
.ds-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .15s; }
.day-start:has(input:checked) .ds-switch { background: #D88C98; }
.day-start:has(input:checked) .ds-switch::after { inset-inline-start: 21px; }
.day-start:has(input:focus-visible) { outline: 2px solid #A85A68; outline-offset: 2px; }
@media (max-width: 360px) { .day-tiles.mood { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.day-form .btn-primary { background: linear-gradient(180deg, #E58FA3, #C96F84); border-color: #C96F84; box-shadow: 0 6px 16px rgba(201, 111, 132, .35); }
/* line icons for the daily questions (replace the emoji) */
.dico { width: 30px; height: 30px; fill: none; stroke: #C96F84; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dico .f { fill: #C96F84; stroke: none; }
.day-tile:has(input:checked) .dico { stroke: #7E2F44; }
.day-tile:has(input:checked) .dico .f { fill: #7E2F44; }
.dq-ico .dico, .ds-ico .dico { width: 20px; height: 20px; stroke: #A85A68; }
.dq-ico, .ds-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(216,140,152,.35); }
.day-q.lav .dico { stroke: #8E6BB0; } .day-q.lav .dico .f { fill: #8E6BB0; }
.day-q.lav .day-tile:has(input:checked) { background: linear-gradient(180deg, #E6DAF4, #CDB8E6); border-color: #A98BD6; box-shadow: 0 4px 12px rgba(169,139,214,.35); }
.day-q.lav .day-tile:has(input:checked) .dico { stroke: #5B3C7E; } .day-q.lav .day-tile:has(input:checked) .dico .f { fill: #5B3C7E; }
.day-q.peach .dico { stroke: #D08A6A; } .day-q.peach .dico .f { fill: #D08A6A; }
.day-q.peach .day-tile:has(input:checked) { background: linear-gradient(180deg, #FAD9C8, #F2B89C); border-color: #E09A7A; box-shadow: 0 4px 12px rgba(224,154,122,.35); }
.day-q.peach .day-tile:has(input:checked) .dico { stroke: #8A4426; } .day-q.peach .day-tile:has(input:checked) .dico .f { fill: #8A4426; }

/* ---------- Group 7: food health ---------- */
.water-card { padding: 16px; margin-top: 12px; }
.water-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.water-head b { color: var(--plum-dark); font-variant-numeric: tabular-nums; }
.glasses { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin: 12px 0 8px; direction: ltr; }
.glass-btn { border: 0; background: none; padding: 2px; cursor: pointer; min-width: 0; min-height: 0; }
.glass { width: 100%; max-width: 34px; height: auto; display: block; margin: 0 auto; }
.glass .g-line { fill: none; stroke: #9DBFD6; stroke-width: 1.6; stroke-linejoin: round; }
.glass .g-water { fill: transparent; transition: fill .2s; }
.glass.full .g-water { fill: #A9D3EE; }
.glass.full .g-line { stroke: #5E9CC4; }
.glass-btn:active .glass { transform: scale(.92); }
.plate-card { padding: 14px; }
.plate { width: 100%; height: auto; display: block; }
.pl-rim { fill: #fff; stroke: var(--champagne); stroke-width: 2; }
.pl-veg { fill: #DCEBD9; } .pl-prot { fill: #F6D9DD; } .pl-grain { fill: #F3E6CC; }
.pl-sep { stroke: #fff; stroke-width: 3; }
.pl-t { fill: var(--plum-dark); font: 700 13px var(--font-ar); }
html[lang="fr"] .pl-t { font-family: var(--font-sans); font-size: 12px; }
.pl-t.small { font-size: 11px; }
.pl-cup { fill: #fff; stroke: #9DBFD6; stroke-width: 1.6; } .pl-water { fill: #A9D3EE; }
.pl-oil { fill: #E9DDA0; stroke: #BC9A68; stroke-width: 1.4; }
.need .group-head { gap: 10px; }
.need-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.need.rose .need-ico { background: #FCEEF0; color: #C96F84; }
.need.lav .need-ico { background: #F4EFFA; color: #8E6BB0; }
.need.mint .need-ico { background: #EAF4EC; color: #5E9470; }
.need.cream .need-ico { background: #FBF3E4; color: #B8935A; }
.need-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.need-why { color: var(--ink); line-height: 1.6; }
.need-why b { color: var(--plum); }
.need-h { font-weight: 800; color: var(--plum); margin-top: 4px; }
.food-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.food-chip { border-radius: 99px; padding: 5px 12px; font-size: .88rem; font-weight: 700; background: var(--lavender-50); color: var(--plum-dark); }
.need.rose .food-chip { background: #FCEEF0; color: #8E3B50; }
.need.mint .food-chip { background: #EAF4EC; color: #3E6B4C; }
.need.cream .food-chip { background: #FBF3E4; color: #7E602F; }

/* language choice */
.lang-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.lang-choice[lang="ar"] { font-family: var(--font-ar); }

/* update button (bottom, opposite side of "Les portes") */
.upd {
  position: fixed; z-index: 34; bottom: calc(18px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%); width: min(calc(100vw - 24px), 496px); box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; padding-inline-start: 10px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--gold); border-radius: 999px;
  box-shadow: 0 10px 28px rgba(60, 30, 50, .18);
  animation: upd-in .4s ease-out;
}
@keyframes upd-in { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.upd-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: #fff; }
.upd-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.upd-tx b { font-size: .9rem; }
.upd-tx small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upd-go { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--plum); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.upd-x { flex: none; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 4px 6px; cursor: pointer; }
.upd-card .btn svg { vertical-align: -5px; }
.upd-notes { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.upd-notes li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.upd-notes li svg { flex: none; color: var(--gold); margin-top: 3px; }

/* period day: advice sheet */
.adv-verdict { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; margin-bottom: 14px; font-size: 1.05rem; }
.adv-verdict.ok { background: #E8F3EC; color: #2F6B47; }
.adv-verdict.care { background: #FBEFE6; color: #8A5427; }
.adv-verdict.doc { background: #FBE6E8; color: #9B2C3C; }
.adv-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: currentColor; }
.adv-badge { color: inherit; }
.adv-verdict .adv-badge { background: rgba(255,255,255,.75); font-weight: 800; }
.adv-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.adv-item { background: var(--paper); border: 1px solid var(--line, #EEE4EA); border-radius: 16px; padding: 12px 14px; }
.adv-t { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 4px; }
.adv-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.adv-item.ok .adv-dot { background: #5FA77B; }
.adv-item.care .adv-dot { background: #E0A36B; }
.adv-item.doc .adv-dot { background: #D45D6E; }
.adv-why { margin: 0; color: var(--muted); line-height: 1.6; }
.adv-tips { margin: 8px 0 0; padding-inline-start: 18px; line-height: 1.7; }
.adv-doc { background: #FBE6E8; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; color: #6E2230; }
.adv-doc .adv-tips { margin-top: 4px; }
/* ---------- Computer view (desk.js) ---------- */
body.desk-on .app { max-width: none; padding: 0; }
body.desk-on .side-tab, body.desk-on .fab { display: none; }
.desk { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.desk-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: rgba(255,255,255,.82); border-inline-end: 1px solid var(--champagne); backdrop-filter: blur(6px); }
.ds-brand { padding: 22px 22px 12px; }
.ds-brand .display { margin: 0; font-size: 1.7rem; color: var(--plum); }
.ds-couple { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.ds-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.ds-group { margin: 16px 10px 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.ds-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: .92rem; color: var(--ink); text-align: start; cursor: pointer; }
.ds-row:hover { background: var(--lavender-50, #F4F0F7); }
.ds-row.current { background: var(--plum); color: #fff; }
.ds-row.current .ds-ico, .ds-row.current .ds-st { color: var(--gold-light, #E6CF9E); }
.ds-ico { color: var(--plum); display: grid; place-items: center; }
.ds-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-st { font-size: .75rem; color: var(--muted); font-weight: 700; }
.ds-foot { display: flex; gap: 8px; padding: 12px 16px 18px; border-top: 1px solid var(--champagne); flex-wrap: wrap; }
.desk-main { min-width: 0; padding: 26px 40px 60px; }
.desk-main > .screen { max-width: 760px; margin: 0 auto; }
.desk-main > .screen.dash { max-width: 1280px; }
.dash-head h1 { margin: 0; font-size: 2.3rem; color: var(--plum-dark, var(--plum)); }
.dash-head p { margin: 4px 0 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.dash-grid > div > :first-child { margin-top: 0; }
.d-hero { grid-column: span 2; }
.d-hero .hero { margin: 0; }
.d-says { display: flex; flex-direction: column; gap: 16px; }
.d-says .card { margin: 0; }
.d-wide { grid-column: 1 / -1; }
.d-tiles { grid-column: span 2; display: flex; flex-direction: column; gap: 16px; }
.d-tiles .card, .d-tiles .tiles { margin: 0; }
.d-tiles .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-tiles .tile.wide { grid-column: auto; }
.d-cycle .cal { margin: 0; }
.d-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.d-stat { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 0; font: inherit; text-align: start; cursor: pointer; }
.d-stat-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lavender-50, #F4F0F7); color: var(--plum); }
.d-stat-v { font-size: 1.35rem; font-weight: 800; color: var(--plum-dark, var(--plum)); }
.d-stat-l { font-size: .82rem; color: var(--muted); }
.d-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.d-group { margin: 0; padding: 16px; }
.d-group-t { margin: 0 0 8px; font-size: 1.25rem; color: var(--plum); }
.d-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 4px; border: 0; border-bottom: 1px solid var(--champagne); background: none; font: inherit; font-size: .88rem; color: var(--ink); text-align: start; cursor: pointer; }
.d-row:last-child { border-bottom: 0; }
.d-row:hover .d-row-name { color: var(--plum); }
.d-row-ico { color: var(--gold); display: grid; place-items: center; }
.d-row-name { flex: 1; min-width: 0; }
.d-row-st { font-size: .74rem; font-weight: 700; color: var(--muted); }
@media (max-width: 1350px) { .d-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phone home: the bride's numbers + progress on each section tile */
.m-dash .d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-dash .d-stat { padding: 12px 14px; }
.m-dash .d-stat-v { font-size: 1.15rem; }
.sec .sec-st { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 99px; background: var(--lavender-50, #F4F0F7); color: var(--plum); font-size: .72rem; font-weight: 800; }
/* ---------- group 9: essentials + where to buy ---------- */
.quick { margin: 16px 0 6px; }
.quick-title { display: flex; align-items: center; gap: 6px; margin: 0 2px 10px; font-weight: 800; font-size: .85rem; color: var(--gold); letter-spacing: .02em; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 20px; border: 1px solid var(--champagne); background: var(--paper); box-shadow: 0 6px 18px rgba(67,48,79,.07); font: inherit; color: var(--ink); text-align: start; cursor: pointer; min-width: 0; }
.quick-tile.big { background: linear-gradient(160deg, #6B5281, var(--plum)); color: #fff; border-color: transparent; }
.quick-tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.quick-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lavender-50, #F4F0F7); color: var(--plum); flex: none; }
.quick-tile.big .quick-ico { background: rgba(255,255,255,.16); color: var(--gold-light, #E6CF9E); }
.quick-name { font-weight: 800; font-size: 1rem; }
.quick-st { font-size: .8rem; font-weight: 800; color: var(--gold); }
.quick-tile.big .quick-st { color: var(--gold-light, #E6CF9E); }
.quick-hint { font-size: .78rem; color: var(--muted); }
.quick-tile.big .quick-hint { color: rgba(255,255,255,.75); }
.shops { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shop { background: var(--paper); border: 1px solid var(--champagne); border-radius: 18px; padding: 12px; }
.shops.compact .shop { border-radius: 14px; padding: 10px; background: var(--ivory); }
.shop-head { display: flex; gap: 10px; align-items: flex-start; }
.shop-fav { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--champagne); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.shop-fav.on { color: var(--gold); background: #FBF4E6; border-color: var(--gold); }
.shop-fav.on svg { fill: currentColor; }
.shop-main { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: start; display: flex; flex-direction: column; gap: 2px; padding: 0; cursor: pointer; }
.shop-name { font-weight: 800; }
.shop-sub { font-size: .82rem; color: var(--muted); }
.shop-note { font-size: .85rem; color: var(--plum); }
.shop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.shop-actions .small-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.shop-filter { margin-bottom: 12px; }
.shop-for-cat .form-title { display: flex; align-items: center; gap: 8px; }
.desk-main .quick-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.desk-main .quick-tile:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; align-items: flex-start; }

/* ---------- After the wedding (more10.js) ---------- */
.hb-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.hb-month-name { font-size: 1.05rem; text-transform: capitalize; }
.hb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-bottom: 10px; }
.hb-stats > div { display: flex; flex-direction: column; gap: 2px; }
.hb-stats strong { font-size: 1rem; }
.hb-neg { color: #B4434E; }
.hb-income { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.hb-income .field { flex: 1; margin: 0; }
.menu-day.today { border-color: var(--gold, #BC9A68); box-shadow: 0 0 0 2px rgba(188,154,104,.25); }
.menu-line { display: flex; align-items: center; gap: 6px; }
.menu-line .input { flex: 1; min-width: 0; }
.menu-slot { display: flex; flex-direction: column; gap: 4px; }
.occ-ic { flex: 0 0 auto; align-self: center; margin-inline-end: 8px; }
.after-card p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.menu-slots { display: grid; gap: 10px; }
@media (min-width: 700px) { .menu-slots { grid-template-columns: 1fr 1fr; } }

/* ---------- Free trial (trial.js) ---------- */
.trial-card { text-align: center; }
.trial-card .trial-go { font-size: 1.05rem; padding: 14px; }
.trial-card .tile-sub { margin: 10px 0 0; }
.trial-or { margin: 14px 0 6px; color: var(--muted, #7A6670); font-size: .92rem; }
.trial-end { border: 1.5px solid #E6CF9E; }
.trial-end .tile-sub { margin: 6px 0 12px; }
.trial-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 8px 14px; background: linear-gradient(90deg, #5B4470, #43304F); color: #fff; font-size: .88rem; }
.trial-bar .trial-txt { display: flex; align-items: center; gap: 6px; }
.trial-bar .trial-btns { display: flex; gap: 6px; }
.trial-bar .trial-buy, .trial-bar .trial-code { border-radius: 99px; padding: 5px 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.trial-bar .trial-buy { background: #E6CF9E; color: #43304F; border: 0; }
.trial-bar .trial-code { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }

/* ---------- Brand pages (Instagram, Facebook, TikTok) ---------- */
.socials { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1.5px solid #E5D9EA; background: #fff; color: #5B4470; font-weight: 700; font-size: .88rem; text-decoration: none; }
.social-btn:active { background: #F4EEF6; }

/* ---------- Trial: locked sections ---------- */
.is-locked { position: relative; opacity: .62; }
.lock-badge { position: absolute; top: 6px; inset-inline-start: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #5B4470; color: #fff; }
.trial-lock { text-align: center; padding: 26px 20px; }
.trial-lock-ico { width: 68px; height: 68px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: #F4EEF6; color: #5B4470; }
.trial-lock .tile-sub { margin: 8px 0 16px; line-height: 1.6; }
.trial-lock .btn { margin-top: 8px; }
.trial-lock .link-btn { margin-top: 12px; }
.shop-for-cat-locked { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; font: inherit; font-weight: 700; color: #5B4470; text-align: start; cursor: pointer; }
.trial-back { display: block; margin: 12px auto 0; }
.trial-sum { background: #FBF6F1; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.trial-sum ul { list-style: none; margin: 6px 0; padding: 0; }
.trial-sum li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-weight: 600; color: #43304F; }
.trial-sum li svg { color: #4F9D74; }

/* ---------- First steps guide (guide.js) ---------- */
.guide { border: 1.5px solid #E6CF9E; }
.guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.guide-title { margin: 0; font-weight: 700; font-size: 1.1rem; color: #43304F; }
.guide-head .tile-sub { margin: 2px 0 8px; }
.guide-count { flex: 0 0 auto; background: #5B4470; color: #fff; font-weight: 700; border-radius: 99px; padding: 3px 12px; font-size: .9rem; }
.guide-steps { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #FBF6F1; }
.guide-steps li.ok { opacity: .6; }
.guide-steps li.ok .guide-txt { text-decoration: line-through; }
.guide-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #E6CF9E; color: #43304F; font-weight: 700; font-size: .9rem; }
.guide-steps li.ok .guide-num { background: #4F9D74; color: #fff; }
.guide-txt { flex: 1; font-weight: 600; font-size: .95rem; }
.guide-go { flex: 0 0 auto; border: 0; border-radius: 99px; padding: 6px 14px; background: #5B4470; color: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.guide-hide { display: block; margin: 6px auto 0; }
.guide-done p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; color: #43304F; }
.guide-tip { border: 1.5px solid #E6CF9E; background: #FFFBF4; }
.guide-tip-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; color: #43304F; }
.guide-tip .tile-sub { margin: 0 0 10px; line-height: 1.6; }
.guide-tip-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guide-tip-btns .link-btn { display: inline-flex; align-items: center; gap: 6px; }
.guide-hide { display: inline-flex; align-items: center; gap: 6px; }
/* help button on every screen */
.help-fab { position: fixed; z-index: 45; left: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px;
  padding: 10px 16px 10px 12px; border: 0; border-radius: 99px; background: #5B4470; color: #fff; font: inherit; font-weight: 700; font-size: .9rem;
  box-shadow: 0 10px 26px rgba(67,48,79,.35); cursor: pointer; }
body.no-scroll .help-fab { display: none; }   /* hidden while a sheet or the menu is open */
.next-card { border: 2px solid var(--gold, #c9a45c); background: linear-gradient(180deg, rgba(201,164,92,.12), transparent); }
.next-title { font-weight: 800; display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.next-txt { font-size: 1.08rem; line-height: 1.6; margin: 0 0 12px; }
.next-go { animation: nextPulse 2s ease-in-out infinite; }
@keyframes nextPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .next-go { animation: none; } }
.ex-card { opacity: .55; border-style: dashed; pointer-events: none; }
.ex-title { font-size: .85rem; font-weight: 700; margin: 0 0 8px; }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-list li { display: flex; align-items: center; gap: 10px; }
.ex-box { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 6px; flex: none; }
.welcome-video { display: block; width: 100%; max-height: 46vh; border-radius: 16px; background: #000; margin: 0 auto 12px; }
.jp-thumb { flex: none; width: 54px; height: 54px; border-radius: 12px; overflow: hidden; position: relative; border: 0; padding: 0; background: var(--cream-2, #f3ece2); display: grid; place-items: center; color: var(--muted, #8a7f8f); cursor: pointer; }
.jp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jp-thumb.empty { border: 1.5px dashed currentColor; opacity: .7; }
.jp-n { position: absolute; bottom: 3px; inset-inline-end: 3px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 8px; padding: 0 5px; line-height: 16px; }
.jp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.jp-ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #eee; }
.jp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.jp-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.jp-add { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed currentColor; background: transparent; display: grid; place-items: center; align-content: center; gap: 4px; font-size: .78rem; color: inherit; cursor: pointer; }
.jp-big { display: grid; gap: 10px; margin-bottom: 10px; }
.jp-plan summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 800; }
.jp-plan summary::-webkit-details-marker { display: none; }
.jp-plan-t { display: flex; align-items: center; gap: 6px; }
.jp-plan[open] .jp-plan-chev { transform: rotate(90deg); }
.jp-plan .guide-txt small { display: block; font-weight: 400; opacity: .75; margin-top: 2px; line-height: 1.5; }
.jp-tip { font-size: .9rem; line-height: 1.6; margin: 0 2px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(201,164,92,.12); }
.sec-fold { padding: 0; margin: 10px 0; overflow: hidden; }
.sec-fold summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; font-size: 1.12rem; font-weight: 700; }
.sec-fold summary::-webkit-details-marker { display: none; }
.sec-fold summary .serif { flex: 1; }
.sec-fold-n { font-size: .8rem; font-weight: 700; padding: 1px 9px; border-radius: 10px; background: rgba(201,164,92,.18); }
.sec-fold-chev { transition: transform .2s; }
.sec-fold[open] .sec-fold-chev { transform: rotate(90deg); }
.sec-fold .sections { padding: 0 12px 14px; }
.sg-open { margin-bottom: 12px; }
.sg-card .sg-title { font-weight: 800; display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sg-chip { display: inline-flex; align-items: center; gap: 4px; }
.guide-video { display: block; width: 100%; max-height: 68vh; border-radius: 16px; background: #000; margin: 4px auto 8px; }
/* animated tour (guide.js) */
.tour { position: fixed; inset: 0; z-index: 200; opacity: 0; transition: opacity .3s ease; }
.tour.on { opacity: 1; }
.tour-spot { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px rgba(36,22,33,.74); pointer-events: none;
  transition: left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); }
.tour-spot::after { content: ''; position: absolute; inset: -6px; border-radius: 24px; border: 2px solid #E6CF9E; animation: tourPulse 1.4s ease-in-out infinite; }
@keyframes tourPulse { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .35; transform: scale(1.03); } }
.tour-pop { position: fixed; left: 16px; right: 16px; max-width: 460px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .3s ease, transform .3s ease; }
.tour-pop.show { opacity: 1; transform: none; }
.tour-count { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: #BC9A68; }
.tour-txt { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.6; color: #2E2433; font-weight: 600; }
.tour-btns { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-btns > span { display: flex; gap: 8px; }
.tour-skip { border: 0; background: none; color: #7A6670; font: inherit; font-size: .9rem; cursor: pointer; padding: 6px; }
.tour-back { border: 1.5px solid #E5D9EA; background: #fff; color: #5B4470; font: inherit; font-weight: 700; border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.tour-next { border: 0; background: #5B4470; color: #fff; font: inherit; font-weight: 700; border-radius: 99px; padding: 9px 18px; cursor: pointer; }
body.touring .help-fab { z-index: 199; }
/* «قسمة لالّة» chosen by the bride (split.js) */
.split-total { margin: 8px 0; font-weight: 700; color: #43304F; }
.split-quick { display: flex; gap: 8px; margin: 4px 0 10px; }
.split-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; margin-bottom: 12px; }
.split-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid #EEE4F0; background: #fff; cursor: pointer; }
.split-row.on { border-color: #BC9A68; background: #FFFBF4; }
.split-ck { position: absolute; opacity: 0; pointer-events: none; }
.split-box { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #CFC2D6; display: grid; place-items: center; color: transparent; }
.split-row.on .split-box { background: #5B4470; border-color: #5B4470; color: #fff; }
.split-name { flex: 1; font-weight: 600; }
.split-amt { font-weight: 700; color: #5B4470; white-space: nowrap; }
.split-amt small { font-weight: 500; color: #9A8AA0; }
.mine-choice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; font-weight: 700; color: #43304F; }
.not-mine-card { border: 1.5px solid #E6CF9E; background: #FFFBF4; }
.not-mine-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; color: #43304F; }
.not-mine-card .tile-sub { margin: 0 0 12px; line-height: 1.6; }
.split-tag { font-style: normal; font-size: .75rem; font-weight: 600; color: #9A8AA0; background: #F3EEF5; border-radius: 99px; padding: 1px 8px; margin-inline-start: 6px; }
.help-sheet .btn { margin-top: 8px; }
.welcome-tour .wt-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.welcome-tour li { display: flex; gap: 12px; align-items: flex-start; background: #FBF6F1; border-radius: 16px; padding: 12px; }
.welcome-tour .wt-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #5B4470; color: #E6CF9E; }
.welcome-tour b { display: block; font-size: 1rem; color: #43304F; }
.welcome-tour small { display: block; color: #7A6670; line-height: 1.5; margin-top: 2px; }
.welcome-tour .btn { margin-top: 8px; }
