/* Pastel Bloom dashboard: the same quiet watercolour paper, plum ink, lavender
   accents and Cormorant / Karla / Nastaliq type as the invitation itself. */
:root {
  --bg: #FBF6F5;
  --ink: #5A4E62;
  --ink-deep: #473C4F;
  --muted: #6B6075;
  --accent-text: #7A5A8B;
  --ph: #7D7288;
  --accent: #8E6A9E;
  --accent-soft: rgba(214, 196, 236, .5);
  --accent-faint: rgba(214, 196, 236, .22);
  --gold: #B08D57;
  --card: rgba(255, 255, 255, .82);
  --solid: #FFFFFF;
  --line: rgba(90, 78, 98, .12);
  --line-strong: rgba(90, 78, 98, .22);
  --sage: #5E7B50;
  --sage-soft: rgba(142, 166, 124, .22);
  --blush: #EECDC1;
  --blush-soft: rgba(238, 205, 193, .38);
  --rose: #A4505C;
  --shadow: 0 14px 34px -22px rgba(40, 40, 50, .35);
  --display: 'Cormorant Garamond', 'Noto Nastaliq Urdu', serif;
  --body: 'Karla', 'Noto Naskh Arabic', sans-serif;
  --script: 'Pinyon Script', 'Noto Nastaliq Urdu', cursive;
  --ease: cubic-bezier(.22, .8, .26, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); background: var(--bg);
  font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; position: relative;
}
[dir="rtl"] body, body[dir="rtl"] { font-family: 'Noto Naskh Arabic', 'Karla', serif; line-height: 1.95; }

/* Watercolour paper: soft peach and lavender clouds, as on the invitation */
.paper {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 38% at 8% 4%, rgba(246, 214, 196, .62), transparent 70%),
    radial-gradient(55% 40% at 96% 30%, rgba(214, 196, 236, .5), transparent 72%),
    radial-gradient(70% 36% at 20% 96%, rgba(238, 205, 193, .5), transparent 70%),
    radial-gradient(50% 30% at 90% 88%, rgba(214, 196, 236, .36), transparent 70%),
    var(--bg);
}
.paper::after {
  content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .48  0 0 0 0 .5  0 0 0 .05 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

.shell { max-width: 640px; margin: 0 auto; padding: 18px 18px calc(112px + env(safe-area-inset-bottom)); position: relative; overflow-x: clip; }
.screen { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.loading { display: flex; justify-content: center; padding: 30vh 0; opacity: .9; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06) rotate(4deg); opacity: .75; } }

/* ---- top bar ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; position: relative; z-index: 2; }
.pill {
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink); font: 500 15px/1 var(--body); display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), background .25s, box-shadow .25s;
}
[dir="rtl"] .pill { font-size: 17px; }
.pill:hover { background: #fff; box-shadow: 0 8px 20px -14px rgba(90, 78, 98, .5); }
.pill:active { transform: scale(.96); }
.pill .ic { font-size: 17px; line-height: 1; color: var(--accent); }

/* ---- hero ---- */
.hero { position: relative; text-align: center; padding: 6px 0 4px; }
.hero > :not(.bloom) { position: relative; z-index: 1; }
.hero .bloom { position: absolute; z-index: 0; top: -84px; inset-inline-end: -84px; width: 180px; height: 180px; opacity: .95; transform: rotate(14deg); pointer-events: none; animation: sway 9s ease-in-out infinite; transform-origin: 50% 80%; }
[dir="rtl"] .hero .bloom { transform: scaleX(-1) rotate(14deg); }
@keyframes sway { 50% { rotate: 3deg; } }
.hero .eyebrow { font: 500 12px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
[dir="rtl"] .hero .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.names { font: 400 clamp(36px, 10.5vw, 50px)/1.15 var(--script); color: var(--ink); margin: 0; }
.hero .event-title { font-size: clamp(32px, 8.4vw, 46px); padding: 0 8px; text-wrap: balance; }
.login h1.names { font: 400 clamp(34px, 9vw, 46px)/1.15 var(--script); margin: 6px 0 2px; }
[dir="rtl"] .login h1.names { font: 400 clamp(28px, 8vw, 36px)/2.15 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
[dir="rtl"] .names { font: 400 clamp(34px, 9.5vw, 44px)/2.05 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.names .amp { font: italic 500 .5em/1 var(--display); color: var(--gold); margin: 0 .25em; }
.hero .sub { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

.orn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 150px; margin: 14px auto 18px; color: var(--accent); opacity: .75; }
.orn i { flex: 1; height: 1px; background: currentColor; }
.orn b { width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }

/* ---- cards ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 16px;
  animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.card h2 { font: 500 26px/1.15 var(--display); margin: 0 0 6px; color: var(--ink-deep); letter-spacing: .01em; }
[dir="rtl"] .card h2 { font: 400 22px/2.25 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.card p, .help { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
[dir="rtl"] .card p, [dir="rtl"] .help { font-size: 15.5px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 16px; }
.stat { text-align: center; padding: 16px 10px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.stat .num { font: 500 44px/1 var(--display); color: var(--accent); font-variant-numeric: lining-nums; }
.stat .num small { font-size: .5em; color: var(--muted); }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }
[dir="rtl"] .stat .lbl { font-size: 14.5px; margin-top: 2px; }

/* ---- tabs ---- */
.nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -18px 8px; padding-inline: 18px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent 100%); }
[dir="rtl"] .nav { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(270deg, #000 calc(100% - 26px), transparent 100%); }
.nav::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .6);
  color: var(--ink); font: 500 15px/1 var(--body); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; scroll-snap-align: start;
  transition: background .25s var(--ease), color .25s, transform .2s var(--ease), box-shadow .25s;
}
[dir="rtl"] .tab { font-size: 16.5px; }
.tab:active { transform: scale(.96); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(90, 78, 98, .7); }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---- filter chips ---- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 14px; }
.filter .lbl { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }
[dir="rtl"] .filter .lbl { font-size: 14.5px; }
.chip-btn {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .7);
  color: var(--ink); font: 500 14.5px/1 var(--body); cursor: pointer; transition: all .25s var(--ease);
}
[dir="rtl"] .chip-btn { font-size: 16px; }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink-deep); }
.chip-btn:active { transform: scale(.96); }

/* ---- guest rows ---- */
.rows { padding: 6px 18px; }
.row { padding: 15px 0; border-bottom: 1px solid var(--line); animation: fade .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.row:last-child { border-bottom: 0; }
.row-name { font: 500 20px/1.3 var(--display); color: var(--ink-deep); overflow-wrap: anywhere; }
[dir="rtl"] .row-name { font: 400 18px/2.35 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.invby { font-size: 13px; color: var(--muted); }
[dir="rtl"] .invby { font-size: 14.5px; }
.invby bdi { color: var(--ink); font-weight: 600; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font: 600 12.5px/1 var(--body); background: var(--accent-faint); color: var(--ink); border: 1px solid var(--line); }
[dir="rtl"] .chip { font-size: 14px; }
.chip.coming { background: var(--sage-soft); color: #3F5A38; border-color: rgba(94, 123, 80, .25); }
.chip.duas { background: var(--accent-soft); color: #5B3F73; border-color: rgba(142, 106, 158, .3); }
.chip.none { background: var(--blush-soft); color: #8A5A4E; border-color: rgba(176, 120, 100, .25); }
.chip.paused { background: rgba(164, 80, 92, .1); color: var(--rose); border-color: rgba(164, 80, 92, .25); }
.linkline { margin-top: 8px; font-size: 12.5px; color: var(--muted); direction: ltr; text-align: start; word-break: break-all; unicode-bidi: plaintext; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px 26px; }
.empty svg { display: block; margin: 0 auto 8px; opacity: .85; }

/* ---- buttons & forms ---- */
.btn {
  min-height: 54px; width: 100%; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: #fff;
  font: 600 16px/1 var(--body); cursor: pointer; box-shadow: 0 14px 26px -16px rgba(90, 78, 98, .8);
  transition: transform .2s var(--ease), box-shadow .25s, background .25s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
[dir="rtl"] .btn { font-size: 18px; }
.btn:hover { background: var(--ink-deep); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.small { width: auto; min-height: 44px; padding: 0 18px; font-size: 14.5px; box-shadow: none; }
[dir="rtl"] .btn.small { font-size: 16px; }
.btn.ghost { background: rgba(255, 255, 255, .78); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; font-weight: 500; }
.btn.ghost:hover { background: #fff; }
.btn.danger { background: rgba(255, 255, 255, .78); color: var(--rose); border: 1px solid rgba(164, 80, 92, .35); box-shadow: none; font-weight: 500; }

label.fl { display: block; font-size: 13.5px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
[dir="rtl"] label.fl { font-size: 15px; margin: 8px 0 0; }
.inp, select.inp, textarea.inp {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--solid);
  color: var(--ink); font: 400 16px/1.4 var(--body); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
[dir="rtl"] .inp { font-size: 17px; line-height: 1.9; }
textarea.inp { resize: vertical; min-height: 120px; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.inp::placeholder { color: var(--ph); opacity: 1; }
select.inp { background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] select.inp { background-position: 16px 50%, 22px 50%; }
.pwwrap { position: relative; }
.pwwrap .inp { padding-inline-end: 84px; }
.pwwrap .show { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--accent-text); font: 600 13.5px/1 var(--body); cursor: pointer; border-radius: 999px; }
[dir="rtl"] .pwwrap .show { font-size: 15px; }
.msg { margin-top: 12px; font-size: 14px; text-align: center; min-height: 1.2em; }
[dir="rtl"] .msg { font-size: 15.5px; }
.msg.ok { color: var(--sage); }
.msg.err { color: var(--rose); }
.pre { background: var(--accent-faint); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); white-space: pre-wrap; margin: 0 0 12px; direction: auto; }
.cred { background: linear-gradient(180deg, #fff, #FBF6FB); border: 1px solid var(--accent); border-radius: 18px; padding: 14px 16px; margin-top: 14px; }
.cred .k { font-size: 12.5px; color: var(--muted); }
.cred .v { font: 600 17px/1.4 ui-monospace, 'SFMono-Regular', Menlo, monospace; direction: ltr; text-align: start; unicode-bidi: plaintext; word-break: break-all; color: var(--ink-deep); }
.two { display: flex; gap: 8px; }
.two > * { flex: 1; min-width: 0; }

/* ---- sign-in ---- */
.login { max-width: 420px; margin: 0 auto; padding-top: 6vh; text-align: center; position: relative; }
.login .bloom-big { width: 150px; height: 150px; margin: 0 auto -22px; display: block; animation: sway 9s ease-in-out infinite; transform-origin: 50% 80%; position: relative; z-index: 1; }
.login .card { padding: 26px 22px 24px; margin-top: 0; position: relative; }
.login h1 { font: 400 46px/1.1 var(--script); margin: 6px 0 2px; color: var(--ink); }
[dir="rtl"] .login h1 { font: 400 30px/2.15 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.login .eyebrow { font: 500 12px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
[dir="rtl"] .login .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.login .sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.login form, .login .fields { text-align: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; position: relative; padding: 4px; border-radius: 999px; background: var(--accent-faint); border: 1px solid var(--line); margin: 0 0 8px; }
.seg button { position: relative; z-index: 1; min-height: 46px; border: 0; background: transparent; color: var(--muted); font: 600 15px/1 var(--body); border-radius: 999px; cursor: pointer; transition: color .3s; }
[dir="rtl"] .seg button { font-size: 17px; }
.seg button.on { color: #fff; }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; width: calc(50% - 4px); inset-inline-start: 4px; border-radius: 999px; background: var(--ink); box-shadow: 0 10px 20px -12px rgba(90, 78, 98, .8); transition: transform .35s var(--ease); }
.seg[data-mode="host"] .thumb { transform: translateX(100%); }
[dir="rtl"] .seg[data-mode="host"] .thumb { transform: translateX(-100%); }
.fringe { position: fixed; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; z-index: 0; opacity: .9; }
.petals span { position: fixed; top: -40px; width: 18px; height: 25px; pointer-events: none; opacity: 0; z-index: 0; animation: drift linear infinite; }
@keyframes drift { 0% { transform: translate3d(0, -40px, 0) rotate(0); opacity: 0; } 12% { opacity: .75; } 100% { transform: translate3d(var(--dx, 40px), 105vh, 0) rotate(300deg); opacity: 0; } }

.sep { height: 1px; background: var(--line); margin: 18px 0; }
.note-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.meta3 { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
[dir="rtl"] .meta3 { font-size: 14.5px; }
.meta3 b { color: var(--ink); font-weight: 600; }
.cfm { padding-top: 10px; }


/* ---- guest import ---- */
.imp-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .imp-or { letter-spacing: 0; text-transform: none; font-size: 15px; }
.imp-or::before, .imp-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.imp-or span { flex: none; }
.imp-up { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.imp-up .btn { margin: 0; }
.imp-tmpl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
a.tmpl { color: var(--accent-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
a.tmpl:hover { color: var(--ink); }
.pv-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pv-row { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: rgba(255,255,255,.65); }
.pv-row.ok { border-color: rgba(94, 123, 80, .28); }
.pv-row.warn { border-color: rgba(176, 141, 87, .45); background: rgba(176, 141, 87, .07); }
.pv-row.bad { border-color: rgba(164, 80, 92, .35); background: rgba(164, 80, 92, .06); }
.pv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.pv-line { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .pv-line { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.pv-row .ur-name { font-size: 17px; margin-top: 2px; }
.pv-row .muted { color: var(--muted); font-weight: 400; }
.pv-notes { margin: 8px 0 0; padding: 0; list-style: none; }
.pv-notes li { font-size: 13.5px; margin: 0 0 4px; padding-inline-start: 12px; position: relative; }
.pv-notes li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pv-notes li.bad { color: var(--rose); }
.pv-notes li.bad::before { background: var(--rose); }
.pv-notes li.warn { color: #8a6a32; }
#confirmBtn:disabled { opacity: .45; cursor: not-allowed; }
#previewSummary { margin-bottom: 4px; }

@media (min-width: 720px) {
  .shell { padding-top: 30px; }
  .stat .num { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .petals { display: none; }
}

/* ---- WhatsApp tab ---- */
.wa-test { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(176, 141, 87, .12); border: 1px dashed rgba(176, 141, 87, .55); color: #7A5F33; font-size: 13.5px; line-height: 1.5; }
[dir="rtl"] .wa-test { font-size: 15px; line-height: 1.9; }
.wa-qr { width: min(260px, 72vw); margin: 6px auto 14px; padding: 14px; background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 14px 30px -20px rgba(90, 78, 98, .6); }
.wa-qr svg { display: block; width: 100%; height: auto; }
.wa-wait { text-align: center; font-style: italic; }
.wa-linked { color: var(--ink); font-weight: 500; }
.wa-counts { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.wa-counts b { font: 600 22px/1 var(--display); color: var(--ink); margin-inline-end: 4px; }
.wa-bar { height: 8px; margin-top: 12px; border-radius: 999px; background: var(--accent-faint); border: 1px solid var(--line); overflow: hidden; }
.wa-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: inherit; transition: width .6s var(--ease); }
.wa-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 6px 0 2px; cursor: pointer; }
.wa-all input, .wa-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.wa-row { display: flex; align-items: flex-start; gap: 12px; }
.wa-check { padding-top: 3px; }
.wa-main { flex: 1; min-width: 0; }
.wa-row .wa-one { flex: none; align-self: center; }
.wa-phone { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wa-why { margin-top: 6px; font-size: 13px; color: var(--rose); }
.wa-cta { position: sticky; bottom: 10px; display: grid; gap: 8px; margin-top: 14px; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); border: 1px solid var(--line); z-index: 2; }
.wa-bubble { position: relative; white-space: pre-wrap; word-break: break-word; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: #EEF5E9; border: 1px solid rgba(94, 123, 80, .22); color: #2F3B2A; font-size: 15px; line-height: 1.55; }
.wa-bubble[dir="rtl"] { border-radius: 18px 18px 6px 18px; font-size: 16.5px; line-height: 2; }
.wa-sum { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--accent-faint); border: 1px solid var(--line); font-size: 14.5px; }
.wa-big { font: 600 17px/1.4 var(--body); color: var(--ink); margin-bottom: 4px; }
.wa-warn { margin-top: 8px; color: #8A5A4E; }
.wa-skip { margin-top: 12px; font-size: 14px; color: var(--muted); }
.wa-skip summary { cursor: pointer; font-weight: 600; }
.wa-delay { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; align-items: end; }
.wa-delay label span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.linkbtn { border: 0; background: none; padding: 10px 0 4px; min-height: 36px; color: var(--accent-text); font: 500 13.5px/1.3 var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] .linkbtn { font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.wa-url { display: inline-block; max-width: 100%; word-break: break-all; color: #2F5E8A; text-decoration: underline; text-underline-offset: 3px; direction: ltr; unicode-bidi: isolate; }


/* =====================================================================
   Dashboard UX pass: bottom navigation, search, toasts, guide, login fit
   ===================================================================== */
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.inp:focus-visible { outline: none; }
svg.ic { width: 1.15em; height: 1.15em; flex: none; }
.btn svg.ic { width: 19px; height: 19px; }
.btn.small svg.ic { width: 17px; height: 17px; }
button, .btn { touch-action: manipulation; }
.pill svg.ic { width: 18px; height: 18px; color: var(--accent-text); }
.pill { white-space: nowrap; }
.topbar-r { display: flex; align-items: center; gap: 8px; }
.topbar .pill { padding: 0 14px; }

/* hero, stats */
.hero.compact { padding: 4px 0 2px; }
.hero.compact .eyebrow { margin: 14px 0 2px; }
.sec-title { font: 500 34px/1.15 var(--display); margin: 0 0 12px; color: var(--ink-deep); }
[dir="rtl"] .sec-title { font: 400 28px/2.15 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; margin-bottom: 6px; }
.stats.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats.three .stat { padding: 14px 6px 12px; border-radius: 20px; }
.stats.three .stat .num { font-size: 36px; }
.stat.tap { font: inherit; color: inherit; cursor: pointer; width: 100%; transition: transform .2s var(--ease), background .25s; }
.stat.tap:hover { background: #fff; }
.stat.tap:active { transform: scale(.97); }
.stat-skel { display: block; height: 82px; border-radius: 20px; }

/* sub tabs (replies) */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sub-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .7); color: var(--ink); font: 500 14.5px/1 var(--body); cursor: pointer; transition: all .25s var(--ease); }
[dir="rtl"] .sub-btn { font-size: 16px; }
.sub-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px -14px rgba(90, 78, 98, .7); }
.sub-btn:active { transform: scale(.96); }

/* bottom bar */
.bnav {
  position: fixed; z-index: 30; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 20px), 640px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 6px;
  border-radius: 26px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px rgba(71, 60, 79, .55);
}
.bn { min-height: 56px; border: 0; background: transparent; color: var(--muted); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11.5px/1.1 var(--body); cursor: pointer; transition: background .25s var(--ease), color .25s; padding: 4px 2px; min-width: 0; }
[dir="rtl"] .bn { font-size: 13px; line-height: 1.5; }
.bn svg.ic { width: 23px; height: 23px; }
.bn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn.on { background: var(--ink); color: #fff; box-shadow: 0 10px 20px -12px rgba(90, 78, 98, .8); }
.bn:active { transform: scale(.95); }
body.kb .bnav { display: none; }

/* toasts */
.toasts { position: fixed; z-index: 80; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: min(92vw, 460px); padding: 12px 20px; border-radius: 999px; background: var(--ink-deep); color: #fff; font: 500 15px/1.4 var(--body); box-shadow: 0 14px 30px -14px rgba(40, 30, 50, .7); opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease); text-align: center; }
[dir="rtl"] .toast { font-size: 16.5px; line-height: 1.8; }
.toast.err { background: #8A3340; }
.toast.in { opacity: 1; transform: none; }
body.kb .toasts { bottom: 16px; }

/* dialogs and the guide */
body.modal { overflow: hidden; }
.overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(71, 60, 79, .46); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .25s var(--ease) both; }
.sheet { width: min(100%, 520px); max-height: 90vh; max-height: 90dvh; overflow-y: auto; background: var(--solid); border-radius: 28px 28px 0 0; padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px -20px rgba(40, 30, 50, .5); animation: sheetUp .38s var(--ease) both; overscroll-behavior: contain; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .overlay { align-items: center; } .sheet { border-radius: 28px; padding-bottom: 24px; } }
.dlg-text { font-size: 17px; color: var(--ink-deep); margin: 0 0 14px; line-height: 1.5; }
[dir="rtl"] .dlg-text { font-size: 18px; line-height: 2; }
.btn.danger-solid { background: var(--rose); color: #fff; box-shadow: 0 14px 26px -16px rgba(164, 80, 92, .9); }
.btn.danger-solid:hover { background: #8D4350; }
.sheet-head h2 { font: 500 28px/1.15 var(--display); margin: 0 0 6px; color: var(--ink-deep); }
[dir="rtl"] .sheet-head h2 { font: 400 24px/2.15 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.sheet-head .help { margin: 0 0 14px; }
.steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--ink-deep); display: grid; place-items: center; font: 600 17px/1 var(--display); border: 1px solid rgba(142, 106, 158, .35); margin-top: 2px; }
.step-t { font: 600 16px/1.35 var(--body); color: var(--ink-deep); }
[dir="rtl"] .step-t { font-size: 17.5px; line-height: 1.9; }
.step p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
[dir="rtl"] .step p { font-size: 15.5px; line-height: 1.95; }
.step .linkbtn { padding: 4px 0 0; }
.tip { background: var(--accent-faint); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin: 0 0 16px; }
.tip p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
[dir="rtl"] .tip p { font-size: 15px; line-height: 1.95; }

/* search */
.search { position: relative; margin: 0 0 8px; }
.search .s-ic { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.search .inp { padding-inline-start: 44px; border-radius: 999px; }
.row.grow .actions { margin-top: 10px; }
.row.grow .actions .btn { flex: 0 1 auto; }

/* empty and loading */
.empty-t { font: 500 24px/1.2 var(--display); color: var(--ink-deep); margin: 4px 0 6px; }
[dir="rtl"] .empty-t { font: 400 21px/2.25 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif; }
.empty-h { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 0 auto 14px; }
[dir="rtl"] .empty-h { font-size: 16px; }
.empty .actions { margin-top: 4px; }
.skel { display: block; background: linear-gradient(90deg, rgba(214, 196, 236, .22) 20%, rgba(214, 196, 236, .5) 50%, rgba(214, 196, 236, .22) 80%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.skel-card { padding: 8px 20px; }
.skel-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.skel-row:last-child { border-bottom: 0; }
.skel-row .skel { height: 16px; }
.skel.w60 { width: 60%; } .skel.w35 { width: 35%; height: 12px; }

/* sticky save bar and WhatsApp bottom actions sit above the bar */
.savebar { position: sticky; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 5; padding: 10px; margin-top: 8px; border-radius: 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(71, 60, 79, .5); }
.savebar .msg { margin: 6px 0 0; min-height: 0; }
.wa-cta { bottom: calc(88px + env(safe-area-inset-bottom)); }
body.kb .savebar, body.kb .wa-cta { bottom: 10px; }
.wa-code { font: 600 clamp(26px, 9vw, 36px)/1.2 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .14em; text-align: center; padding: 16px 10px; margin: 4px 0 10px; border-radius: 20px; border: 1.5px solid var(--accent); background: #fff; color: var(--ink-deep); user-select: all; }
.wa-code-form { margin-top: 8px; }
.wa-host { padding: 14px 0; border-bottom: 1px solid var(--line); }
.wa-host:last-child { border-bottom: 0; }
.wa-ph .two { margin-top: 6px; align-items: center; }
.wa-ph .inp { min-height: 44px; }
.wa-row .wa-one { min-width: 84px; }
.empty .btn.small { width: auto; }
.help.wa-wait { margin-bottom: 8px; }
.wa-delay select.inp { padding-inline-end: 34px; }

/* wider screens: a little more room, bar stays centred */
@media (min-width: 900px) {
  .shell { max-width: 720px; }
  .bnav { bottom: 18px; }
  .stats.three .stat .num { font-size: 42px; }
}

/* =====================================================================
   Sign-in: always exactly one screen tall, no page scroll (mobile & desktop)
   ===================================================================== */
html.is-login, html.is-login body { height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.shell.login-mode {
  height: 100vh; height: 100dvh; max-width: none; padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; overflow: hidden;
}
.login-mode .topbar { flex: none; min-height: 52px; max-width: 460px; width: 100%; margin: 0 auto; }
.login-scroll { flex: 1 1 auto; min-height: 0; display: flex; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 0 14px; }
.login-scroll .login { margin: auto; width: 100%; padding-top: 0; }
.login-mode .login .bloom-big { width: clamp(64px, 17dvh, 150px); height: clamp(64px, 17dvh, 150px); margin-bottom: calc(clamp(64px, 17dvh, 150px) * -.15); }
.login-mode .login .card { padding: clamp(14px, 3.2dvh, 28px) clamp(16px, 5vw, 24px) clamp(16px, 3.4dvh, 26px); margin-bottom: 0; }
.login-mode .login h1.names { font-size: clamp(26px, min(9vw, 6.4dvh), 46px); margin: 4px 0 2px; }
[dir="rtl"] .login-mode .login h1.names { font-size: clamp(22px, min(7.4vw, 5.2dvh), 34px); line-height: 1.7; }
.login-mode .login .sub { margin-bottom: clamp(8px, 2dvh, 16px); }
.login-mode .login label.fl { margin-top: clamp(8px, 1.6dvh, 14px); }
.login-mode .login .msg { margin-top: 8px; min-height: 1.3em; }
@media (max-height: 700px) {
  .login-mode .login .eyebrow { margin-top: 0; }
  .login-mode .inp { min-height: 46px; padding-top: 8px; padding-bottom: 8px; }
  .login-mode .btn { min-height: 50px; }
  .login-mode .seg button { min-height: 42px; }
  .login-mode .topbar, .login-mode .topbar .pill { min-height: 44px; }
}
@media (max-height: 600px) {
  .login-mode .login .bloom-big, .login-mode .login .sub { display: none; }
  .login-mode .login .card { margin-top: 0; }
}
@media (max-height: 520px) {
  .login-mode .login .eyebrow { display: none; }
  .login-mode .login .seg { margin-bottom: 2px; }
  .login-mode .inp { min-height: 42px; }
  .login-mode .btn { min-height: 46px; }
  .login-mode .login .msg { margin-top: 4px; min-height: 1.1em; }
}
@media (max-height: 440px) {
  .login-mode .fringe, .login-mode .petals { display: none; }
  .login-mode .login .card { padding-top: 10px; padding-bottom: 12px; }
  .login-mode .login h1.names { font-size: 24px; margin: 0; }
  [dir="rtl"] .login-mode .login h1.names { font-size: 20px; }
  .login-mode .topbar { position: absolute; top: 0; inset-inline-end: 8px; width: auto; min-height: 0; z-index: 3; }
}

/* contacts import */
.ct-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 10px; }
.ct-quick .btn { margin: 0; flex: 1 1 200px; }
.ct-ios { margin: 0 0 6px; }
.ct-ios summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.ct-ios p { margin: 4px 0 6px; }
.ct-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ct-head input, .ct-num input, .pv-inc input { width: 22px; height: 22px; flex: none; accent-color: var(--plum, #8E6A9E); }
.ct-num { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 0 0 34px; font-size: 15px; }
[dir="rtl"] .ct-num { padding: 9px 34px 0 0; }
.ct-num.bad { opacity: .85; }
.ct-n { unicode-bidi: isolate; }
.ct-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; }
.ct-err { color: #A4505C; font-size: 13.5px; }
.ct-w { flex-basis: 100%; padding-inline-start: 32px; }
.pv-inc { display: flex; align-items: center; gap: 10px; margin-top: 10px; cursor: pointer; font-size: 14.5px; }

/* ---- opened chips, previews, reminder, rich WhatsApp bubble ---- */
.chip.opened { background: var(--sage-soft); color: #3F5A38; border-color: rgba(94, 123, 80, .25); }
.chip.notopened { background: #FBF3E4; color: #8A6A2E; border-color: rgba(176, 140, 70, .3); }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.top-actions .btn { flex: 1 1 180px; }
.pv-link { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.remind-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; }
.remind-bar .help { flex: 1 1 200px; }
.wa-side { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; }
.wa-side .btn { width: 100%; justify-content: center; }
.wa-bubble.wa-rich { padding: 5px 5px 10px; white-space: normal; }
.wa-card { border-radius: 14px 14px 6px 6px; overflow: hidden; background: #DDEBD3; margin-bottom: 7px; }
.wa-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: #e9e2ee; }
.wa-card-b { padding: 7px 11px 8px; line-height: 1.35; }
.wa-card-t { font-weight: 700; font-size: 14px; color: #1d2a19; }
.wa-card-d { font-size: 13px; color: #44523f; margin-top: 2px; }
.wa-card-u { font-size: 12px; color: #6a7a64; margin-top: 3px; }
.wa-rich .wa-msg { padding: 0 9px; white-space: pre-wrap; }
.pv-card .btn { text-decoration: none; }

/* Per-guest invite language and install-app prompt */
.lang-seg {
  display: inline-flex; align-items: stretch; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.72);
  overflow: hidden; vertical-align: middle; flex: none;
}
.lang-seg button {
  min-height: 28px; padding: 0 11px; border: 0; background: transparent;
  color: var(--muted); font: 600 11.5px/1 var(--body); cursor: pointer;
}
[dir="rtl"] .lang-seg button { font-size: 13px; }
.lang-seg button.on { background: var(--ink); color: #fff; }
.lang-seg.lg button { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.lang-chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px;
  border-radius: 999px; font: 600 11px/1 var(--body); letter-spacing: .02em;
  background: var(--accent-faint); color: var(--ink); border: 1px solid var(--line);
}
[dir="rtl"] .lang-chip { font-size: 13px; letter-spacing: 0; }
.bulk-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 8px 0 12px; padding: 10px 12px; border-radius: 16px;
  background: var(--accent-faint); border: 1px solid var(--line);
}
.bulk-bar .lbl { font: 500 13px/1.2 var(--body); color: var(--muted); margin-inline-end: 2px; }
.install-sheet { max-width: 360px; }
.install-sheet ol { margin: 8px 0 0; padding-inline-start: 1.2em; color: var(--ink); }
.install-sheet li { margin: 0 0 8px; }
.topbar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Man / woman chip on each guest (drives محترم / محترمہ) */
.hon-chip { display: inline-flex; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.72); overflow: hidden; vertical-align: middle; flex: none; }
.hon-chip .hon { min-height: 30px; min-width: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font: 600 12px/1 var(--body); cursor: pointer; }
[dir="rtl"] .hon-chip .hon { font-size: 13.5px; }
.hon-chip .hon + .hon { border-inline-start: 1px solid var(--line); }
.hon-chip .hon.on { background: var(--ink); color: #fff; }
.hon-chip .hon.auto { background: var(--accent-faint); color: var(--ink); }
.hon-chip .hon.sug { background: transparent; color: var(--ink); outline: 1.5px dashed var(--line-strong); outline-offset: -4px; }

/* ---- 1.5.5: simple, easy-to-read host screens.
   Text 18px+ (Urdu 20px+, line-height 2), labels and chips 16px+, every tap target 48px+,
   darker greys so all text is WCAG AA (4.5:1) or better on the cream and white cards.
   Only sizes, colours and spacing change here; nothing about what a screen does. ---- */
:root { --muted: #544A5E; --ph: #6A5F74; --accent-text: #6A4A7B; }
body { font-size: 18px; line-height: 1.55; }
[dir="rtl"] body, body[dir="rtl"] { font-size: 20px; line-height: 2; }

/* Reading text: 18px / Urdu 20px */
.card p, .help, .empty-h, .step p, .tip p, .msg, .wa-sum, .wa-skip, .ct-ios summary, .pv-inc, .sheet p, .dlg-text { font-size: 18px; line-height: 1.55; }
[dir="rtl"] .card p, [dir="rtl"] .help, [dir="rtl"] .empty-h, [dir="rtl"] .step p, [dir="rtl"] .tip p, [dir="rtl"] .msg, [dir="rtl"] .wa-sum,
[dir="rtl"] .wa-skip, [dir="rtl"] .ct-ios summary, [dir="rtl"] .pv-inc, [dir="rtl"] .sheet p, [dir="rtl"] .dlg-text { font-size: 20px; line-height: 2; }
.hero .sub, .login .sub { font-size: 18px; }
[dir="rtl"] .hero .sub, [dir="rtl"] .login .sub { font-size: 20px; line-height: 2; }
.empty-h { max-width: 30ch; }
.wa-test { font-size: 17px; line-height: 1.5; color: #6A5129; }
[dir="rtl"] .wa-test { font-size: 19px; line-height: 2; }
.wa-why { font-size: 16px; color: #93404D; }
.ct-err { font-size: 16px; color: #93404D; }
.pv-notes li { font-size: 16.5px; }
[dir="rtl"] .pv-notes li { font-size: 18px; line-height: 2; }
.pre { font-size: 16px; color: var(--muted); }
.wa-bubble { font-size: 16.5px; }
[dir="rtl"] .wa-bubble[dir="rtl"] { font-size: 18px; }
.wa-card-u { color: #52604D; }

/* Labels, chips and small meta: 16px+ (Urdu 17px+) */
label.fl { font-size: 17px; color: var(--ink); }
[dir="rtl"] label.fl { font-size: 19px; }
.hero .eyebrow, .login .eyebrow { font-size: 13.5px; }
[dir="rtl"] .hero .eyebrow, [dir="rtl"] .login .eyebrow { font-size: 17px; }
.stat .lbl, .invby, .filter .lbl, .meta3, .wa-counts, .wa-all, .wa-phone, .bulk-bar .lbl { font-size: 16px; }
[dir="rtl"] .stat .lbl, [dir="rtl"] .invby, [dir="rtl"] .filter .lbl, [dir="rtl"] .meta3, [dir="rtl"] .wa-counts, [dir="rtl"] .wa-all, [dir="rtl"] .wa-phone, [dir="rtl"] .bulk-bar .lbl { font-size: 17.5px; }
.chip { min-height: 34px; font-size: 15px; }
[dir="rtl"] .chip { font-size: 16.5px; }
.chip.none { color: #7A4A3F; }
.lang-chip { font-size: 14px; }
[dir="rtl"] .lang-chip { font-size: 16px; }
.imp-or { font-size: 15px; }
[dir="rtl"] .imp-or { font-size: 17px; }
.wa-delay label span, .cred .k, .pv-line, .ct-tag { font-size: 15px; }
[dir="rtl"] .pv-line { font-size: 16.5px; }

/* Tap targets: 48px+ */
.btn { min-height: 56px; font-size: 18px; }
[dir="rtl"] .btn { font-size: 20px; }
.btn.small { min-height: 48px; font-size: 17px; }
[dir="rtl"] .btn.small { font-size: 19px; }
.pill, .tab, .sub-btn, .seg button { min-height: 48px; font-size: 16.5px; }
[dir="rtl"] .pill, [dir="rtl"] .tab, [dir="rtl"] .sub-btn, [dir="rtl"] .seg button { font-size: 18px; }
.chip-btn { min-height: 48px; font-size: 16.5px; padding-inline: 16px; }
[dir="rtl"] .chip-btn { font-size: 18px; }
.inp { min-height: 54px; font-size: 18px; }
[dir="rtl"] .inp { font-size: 19px; }
.pwwrap .show { min-height: 48px; font-size: 16px; }
[dir="rtl"] .pwwrap .show { font-size: 18px; }
.linkbtn { min-height: 48px; font-size: 17px; padding: 8px 0; }
[dir="rtl"] .linkbtn { font-size: 19px; }
.hon-chip .hon { min-height: 48px; min-width: 60px; font-size: 16px; }
[dir="rtl"] .hon-chip .hon { font-size: 18px; }
.lang-seg button { min-height: 44px; font-size: 15px; }
[dir="rtl"] .lang-seg button { font-size: 16.5px; }
.bn { min-height: 60px; font-size: 14.5px; }
[dir="rtl"] .bn { font-size: 15.5px; }
.ct-ios summary { min-height: 48px; display: flex; align-items: center; color: var(--accent-text); }
.wa-all { min-height: 48px; }
.wa-all input, .wa-check input, .pv-inc input { width: 22px; height: 22px; }

/* Help sheet steps */
.step-t { font-size: 20px; color: var(--ink-deep); }
[dir="rtl"] .step-t { font-size: 21px; }
.step-n { width: 40px; height: 40px; font-size: 20px; }

/* "More" / مزید: details tucked away, one tap to open */
details.more { margin: 0 0 12px; }
details.more > summary { cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 600; font-size: 17px; list-style: none; }
[dir="rtl"] details.more > summary { font-size: 19px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
details.more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.more > :not(summary) { margin-top: 2px; }

/* Home: the whole job in three steps (1 Link WhatsApp, 2 Add guests, 3 Send) */
.flow { list-style: none; margin: 2px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.flow::before { content: ''; position: absolute; top: 24px; inset-inline: 16.7%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); opacity: .55; }
.flow li { display: flex; }
.flow button { flex: 1; min-height: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px 6px; border: 0; background: none; color: var(--ink-deep); cursor: pointer; border-radius: 18px; font: 600 17px/1.25 var(--body); text-align: center; transition: background .25s var(--ease); }
[dir="rtl"] .flow button { font: 600 18px/1.7 'Noto Naskh Arabic', 'Karla', serif; }
.flow button:hover, .flow button:focus-visible { background: var(--accent-faint); }
.flow .fn { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid rgba(176, 141, 87, .6); box-shadow: 0 8px 18px -14px rgba(90, 78, 98, .7); font: 500 24px/1 var(--display); color: var(--ink-deep); font-variant-numeric: lining-nums; }

/* Numbered how-to on the WhatsApp link screens */
.mini-steps { list-style: none; counter-reset: ms; margin: 4px 0 12px; padding: 0; display: grid; gap: 10px; }
.mini-steps li { counter-increment: ms; display: flex; gap: 12px; align-items: flex-start; font-size: 18px; line-height: 1.5; color: var(--ink-deep); }
[dir="rtl"] .mini-steps li { font-size: 20px; line-height: 2; }
.mini-steps li::before { content: counter(ms); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-faint); border: 1px solid rgba(142, 106, 158, .35); font: 600 17px/1 var(--display); color: var(--ink-deep); margin-top: 1px; }
[dir="rtl"] .mini-steps li::before { margin-top: 6px; }
.mini-steps b { font-weight: 600; }

/* 1.5.5 follow-ups: the few spots more specific rules kept small */
.lang-seg.lg button { min-height: 48px; font-size: 16px; }
[dir="rtl"] .lang-seg.lg button { font-size: 17.5px; }
.login-mode .seg button { min-height: 48px; }
.wa-big { font-size: 20px; line-height: 1.4; color: var(--ink-deep); }
[dir="rtl"] .wa-big { font-size: 22px; line-height: 1.9; }
.wa-warn { color: #7A4A3F; }
.wa-rich .wa-msg { font-size: 17px; }
[dir="rtl"] .wa-rich .wa-msg { font-size: 18.5px; }
.pre, textarea.inp { font-size: 17px; }
[dir="rtl"] .pre, [dir="rtl"] textarea.inp { font-size: 19px; }
.pv-notes li { font-size: 17px; }
.pill .ic { color: var(--accent-text); }
/* Urdu sign-in still fits one phone screen with the bigger text */
[dir="rtl"] .login-mode .login .sub { line-height: 1.8; }
[dir="rtl"] .login-mode .login label.fl { line-height: 1.8; }
@media (max-height: 760px) { [dir="rtl"] .login-mode .login h1.names { line-height: 1.5; } [dir="rtl"] .login-mode .login .eyebrow { margin-top: 0; } }
/* Urdu example list: a joining Urdu font (monospace breaks the letters apart); two-line buttons breathe */
[dir="rtl"] .pre { font-family: 'Noto Naskh Arabic', 'Karla', serif; letter-spacing: 0; line-height: 2; }
label.btn { line-height: 1.35; padding-block: 8px; }
[dir="rtl"] label.btn { line-height: 1.8; }
