/* MolviFinder — premium UI. Emerald & gold, layered depth, Islamic geometric patterns.
   System fonts only (fast on low-end Android, works offline). No inline styles (strict CSP). */
:root {
  color-scheme: light dark;
  --paper: #f6f2ea;
  --surface: #ffffff;
  --surface-2: #efe8da;
  --ink: #17221d;
  --ink-2: #4f5b55;
  --line: #e6dccb;
  --line-strong: #8f8572;
  --primary: #0e5a45;
  --primary-strong: #0a4334;
  --primary-tint: #e1efe8;
  --on-primary: #ffffff;
  --gold: #8a6114;
  --gold-leaf: #c99a3c;
  --danger: #a3302a;
  --danger-tint: #f9e5e2;
  --warn: #7a5000;
  --warn-tint: #fbefd5;
  --info: #1f4f86;
  --info-tint: #e4eefa;
  --focus: #0b6e8a;

  --grad-primary: linear-gradient(140deg, #08392c 0%, #0e5a45 48%, #17805f 100%);
  --grad-gold: linear-gradient(140deg, #f5dc97 0%, #d4a648 48%, #a8781f 100%);
  --grad-wa: linear-gradient(140deg, #23a55a 0%, #17803f 100%);
  --grad-glow: radial-gradient(120% 80% at 85% 0%, rgba(245, 220, 151, .35) 0%, rgba(245, 220, 151, 0) 55%);
  --glass: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .6);

  --shadow: 0 1px 2px rgba(23, 34, 29, .05), 0 8px 24px -10px rgba(23, 34, 29, .18);
  --shadow-3d: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 22px -10px rgba(8, 57, 44, .55), 0 2px 4px rgba(8, 57, 44, .12);
  --shadow-float: 0 30px 60px -24px rgba(8, 57, 44, .45), 0 8px 20px -8px rgba(23, 34, 29, .18);
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='56' cy='0' r='7'/%3E%3Ccircle cx='0' cy='56' r='7'/%3E%3Ccircle cx='56' cy='56' r='7'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c99a3c' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='56' cy='0' r='7'/%3E%3Ccircle cx='0' cy='56' r='7'/%3E%3Ccircle cx='56' cy='56' r='7'/%3E%3C/g%3E%3C/svg%3E");

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-xl: 28px; --radius-pill: 999px;
  --tap: 48px;
  --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1512; --surface: #18201c; --surface-2: #212b26; --ink: #ede7db; --ink-2: #b7b1a5;
    --line: #2c3832; --line-strong: #6f7a73; --primary: #5fc3a0; --primary-strong: #82d4b7; --primary-tint: #173a2e;
    --on-primary: #06231a; --gold: #e0b866; --gold-leaf: #d9ae5a; --danger: #f08a80; --danger-tint: #3a1e1b;
    --warn: #e5b75c; --warn-tint: #3a2e14; --info: #9cc3f2; --info-tint: #1b2a3d; --focus: #7cc8e0;
    --glass: rgba(24, 32, 28, .8); --glass-line: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
    --shadow-float: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 8px 20px -8px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 var(--font-body);
  background: var(--paper) var(--pattern-gold);
  min-height: 100vh; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--primary); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 var(--space-3); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(28px, 6vw, 46px); }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
p { margin: 0 0 var(--space-3); }
small, .small { font-size: 14px; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-4); }
.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.mt { margin-top: var(--space-4); }
.mb { margin-bottom: var(--space-4); }
.h2 { font-size: 26px; margin: 0; }
.pre { white-space: pre-wrap; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: var(--space-5) 0; }
code { font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

/* ---------- App bar ---------- */
.topbar { background: var(--grad-primary); background-color: #0e5a45; position: sticky; top: 0; z-index: 20; color: #fff;
  box-shadow: 0 6px 20px -12px rgba(8, 57, 44, .8); }
.topbar::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light); pointer-events: none; }
.topbar .wrap { position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.brand svg { width: 34px; height: 34px; color: #f5dc97; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.brand-hole { fill: #0e5a45; }
.brand small { font-family: var(--font-body); font-size: 11px; color: #f5dc97; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: block; line-height: 1; margin-top: 3px; }
.topnav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.topnav a { white-space: nowrap; color: rgba(255, 255, 255, .88); text-decoration: none; padding: 9px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; }
.topnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topnav a[aria-current="page"] { background: #fff; color: #0e5a45; }
.topnav a .dot { margin-left: 4px; }
@media (max-width: 719px) { .topnav .desk { display: none; } }

/* ---------- Floating bottom nav (Android) ---------- */
.bottomnav { display: none; }
@media (max-width: 719px) {
  body.authed, body.guest-nav { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.authed .bottomnav, body.guest-nav .bottomnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 30;
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--glass-line); border-radius: 24px; box-shadow: var(--shadow-float); padding: 6px;
  }
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
  color: var(--ink-2); text-decoration: none; font-size: 11.5px; font-weight: 700; position: relative; border-radius: 18px; }
.bottomnav a .ib { width: 40px; height: 30px; display: grid; place-items: center; border-radius: var(--radius-pill); transition: transform .2s, background .2s; }
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a[aria-current="page"] { color: var(--primary); }
.bottomnav a[aria-current="page"] .ib { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-3d); transform: translateY(-2px); }
.bottomnav .dot { position: absolute; top: 6px; left: calc(50% + 10px); }

main { flex: 1; padding: var(--space-4) 0 var(--space-7); }
footer.site { border-top: 1px solid var(--line); padding: var(--space-5) 0; color: var(--ink-2); font-size: 14px; background: var(--surface); }
footer.site .row { gap: var(--space-4); }

/* ---------- Hero ---------- */
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--grad-primary); background-color: #0e5a45; color: #fff;
  padding: var(--space-5) var(--space-5) 72px; box-shadow: var(--shadow-float); isolation: isolate; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light), var(--grad-glow); z-index: -1; }
.hero-card .eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  color: #f5dc97; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: var(--space-3); }
.hero-card .eyebrow svg { width: 14px; height: 14px; }
.hero-card h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.hero-card h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card .lead { color: rgba(255, 255, 255, .86); font-size: 16px; max-width: 34ch; margin: 0; }
.hero-art { position: absolute; right: -18px; bottom: -6px; width: 230px; height: auto; z-index: -1; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
@media (max-width: 480px) { .hero-art { width: 150px; right: -22px; bottom: 34px; } .hero-card h1 { max-width: 11ch; } .hero-card .lead { max-width: 21ch; } }
@media (min-width: 720px) { .hero-card { padding: 48px 48px 96px; } .hero-art { width: 360px; right: 24px; } }
.search-float { position: relative; z-index: 2; margin: -52px var(--space-3) 0; background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-float); border: 1px solid var(--line); }
@media (min-width: 720px) { .search-float { margin: -64px var(--space-6) 0; padding: var(--space-5); } }

.section { margin-top: var(--space-6); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: 14px; text-decoration: none; }

.hscroll { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin: 0 -2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.dchip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.dchip .pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #3b2a07; box-shadow: var(--shadow-3d); }
.dchip .pin svg { width: 15px; height: 15px; }
.dchip:hover { border-color: var(--gold-leaf); }

/* 3D icon tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-3); text-align: center; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 14px; line-height: 1.25; margin-top: 10px; }
.tile span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.3; }
.ico3d { width: 52px; height: 52px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad-primary); box-shadow: var(--shadow-3d); position: relative; }
.ico3d::after { content: ""; position: absolute; inset: 3px 3px 50% 3px; border-radius: 13px 13px 40% 40%; background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); pointer-events: none; }
.ico3d svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.ico3d.gold { background: var(--grad-gold); color: #3b2a07; }
.ico3d.wa { background: var(--grad-wa); }
.ico3d.info { background: linear-gradient(140deg, #3a74c0, #1f4f86); }
.ico3d.rose { background: linear-gradient(140deg, #c2566b, #8f2f45); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4) var(--space-4) 76px; box-shadow: var(--shadow); min-height: 84px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 14px; background: var(--grad-gold);
  color: #3b2a07; display: grid; place-items: center; font: 700 20px/1 var(--font-display); box-shadow: var(--shadow-3d); }
.steps strong { display: block; font-size: 16px; }
.steps p { margin: 2px 0 0; font-size: 14px; }

.promo { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: var(--space-5); background: var(--grad-gold); color: #2e2105; box-shadow: var(--shadow-float); isolation: isolate; }
.promo::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light); opacity: .9; z-index: -1; }
.promo h3 { color: #2e2105; font-size: 22px; }
.promo p { color: #4a3610; max-width: 36ch; }
.promo .btn { background: #1b1405; color: #f5dc97; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6); }
.trust { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .trust { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card-tight { padding: var(--space-4); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }

/* Premium molvi card (portrait) */
.molvi-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.molvi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.hscroll .molvi-card { width: 264px; }
.pmedia { position: relative; height: 210px; overflow: hidden; isolation: isolate; }
.pmedia::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light); z-index: 0; }
.pmedia .portrait { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 190px; height: auto; z-index: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.pmedia .halo { position: absolute; left: 50%; top: 28px; width: 150px; height: 150px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, .45) 0%, rgba(255, 236, 190, 0) 70%); z-index: 0; }
.v0 { background: linear-gradient(160deg, #1d8a67, #0b4636); }
.v1 { background: linear-gradient(160deg, #2c6aa3, #13355c); }
.v2 { background: linear-gradient(160deg, #9b4a63, #4f1f33); }
.v3 { background: linear-gradient(160deg, #b98a35, #6a4810); }
.v4 { background: linear-gradient(160deg, #3d7f86, #173f45); }
.ribbon { position: absolute; left: 0; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 10px;
  background: var(--grad-gold); color: #2e2105; font-size: 12px; font-weight: 800; letter-spacing: .02em; border-radius: 0 var(--radius-pill) var(--radius-pill) 0; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.ribbon svg { width: 14px; height: 14px; }
.pmedia .exp { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pmedia .langs { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 4px; flex-wrap: wrap; }
.pmedia .langs span { font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .28); padding: 3px 8px; border-radius: var(--radius-pill); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pbody { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pbody .trustrow { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 700; }
.pbody .trustrow span { display: inline-flex; align-items: center; gap: 4px; color: var(--info); }
.pbody .trustrow span.g { color: var(--gold); }
.pbody .trustrow svg { width: 14px; height: 14px; }
.pbody h3 { margin: 2px 0 0; font-size: 19px; }
.pbody .meta { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.pbody .serves { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 2px 0 0; }
.pbody .serves svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold-leaf); }
.molvi-card .actions { margin-top: auto; padding-top: var(--space-3); display: flex; gap: var(--space-2); }
.molvi-card .actions .btn { flex: 1; }
.monogram { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-gold); color: #3b2a07; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 700; flex: none; box-shadow: var(--shadow-3d); }

/* Profile page */
.pcover { position: relative; border-radius: var(--radius-xl); height: 190px; overflow: hidden; box-shadow: var(--shadow-float); isolation: isolate; }
.pcover::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light), var(--grad-glow); z-index: 0; }
.pcover .portrait { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); width: 200px; z-index: 1; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); }
.pcover .back { position: absolute; left: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .35); text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pcover .back svg { width: 20px; height: 20px; }
.phead { text-align: center; margin-top: var(--space-4); }
.phead h1 { font-size: 28px; margin-bottom: 6px; }
.phead .row { justify-content: center; gap: 6px; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-4) 0; }
.pstats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-2); text-align: center; box-shadow: var(--shadow); }
.pstats b { display: block; font: 700 22px/1.1 var(--font-display); color: var(--primary); }
.pstats span { font-size: 12px; color: var(--ink-2); }
.cta-bar { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); }
.cta-bar .btn { flex: 1; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.badge.verified, .badge.accepted, .badge.resolved, .badge.sent, .badge.active { background: var(--primary-tint); color: var(--primary); }
.badge.pending, .badge.open, .badge.in_review, .badge.queued { background: var(--warn-tint); color: var(--warn); }
.badge.rejected, .badge.cancelled, .badge.suspended, .badge.failed { background: var(--danger-tint); color: var(--danger); }
.badge.completed, .badge.expired, .badge.dismissed, .badge.skipped, .badge.neutral { background: var(--surface-2); color: var(--ink-2); }
.badge.idv { background: var(--info-tint); color: var(--info); }
.badge.goldb { background: var(--grad-gold); color: #2e2105; }
.chip { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: 13px; color: var(--ink); margin: 3px 4px 3px 0; font-weight: 600; }
.dot { width: 9px; height: 9px; background: #e5484d; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap); padding: 0 22px;
  border-radius: var(--radius-pill); border: 1.5px solid transparent; font: 700 15.5px/1 var(--font-body); cursor: pointer; text-decoration: none;
  background: var(--grad-primary); background-color: #0e5a45; color: #fff; box-shadow: var(--shadow-3d); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); box-shadow: none; }
.btn.secondary:hover { background: var(--primary-tint); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: var(--danger-tint); }
.btn.gold { background: var(--grad-gold); color: #2e2105; }
.btn.whatsapp { background: var(--grad-wa); background-color: #1a7f45; color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- Forms ---------- */
form .field, .field { display: flex; flex-direction: column; gap: 6px; }
label, .label { font-weight: 700; font-size: 14px; }
.hint { font-size: 13px; color: var(--ink-2); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font: 16px/1.4 var(--font-body); box-shadow: inset 0 1px 2px rgba(23, 34, 29, .05);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-tint); }
.error { color: var(--danger); font-size: 13.5px; font-weight: 700; margin: 0; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 600; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 14px; margin-bottom: var(--space-2); padding: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: var(--radius-pill); }
.segmented label { display: flex; gap: var(--space-2); align-items: center; justify-content: center; padding: 11px 10px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 700; font-size: 14px; text-align: center; color: var(--ink-2); }
.segmented label:has(input:checked) { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-3d); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-panel { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .search-panel { grid-template-columns: 1.2fr 1.2fr 1fr auto; align-items: end; } }
.search-panel .btn { min-height: 52px; }

/* ---------- Alerts / toast ---------- */
.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14.5px; margin: 0 0 var(--space-4); }
.alert.info { background: var(--primary-tint); color: var(--ink); }
.alert.warn { background: var(--warn-tint); color: var(--ink); }
.alert.error { background: var(--danger-tint); color: var(--danger); font-weight: 700; }
.alert svg { width: 18px; height: 18px; vertical-align: -4px; color: var(--primary); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 50; background: #17221d; color: #fff;
  padding: 13px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-float); max-width: calc(100% - 32px); font-weight: 600; font-size: 14.5px; }

/* ---------- Tabs (segmented pill) ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); padding: 5px; border-radius: var(--radius-pill);
  margin-bottom: var(--space-4); box-shadow: var(--shadow); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; text-align: center; padding: 10px 16px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; border-radius: var(--radius-pill); white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-3d); }

/* ---------- Bookings ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: var(--space-4) 0; }
.list > li:last-child { border-bottom: 0; }
.blist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.booking-row { display: flex; align-items: center; gap: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-3); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s; }
.booking-row:hover { transform: translateY(-2px); }
.datetile { flex: none; width: 62px; height: 68px; border-radius: 16px; background: var(--grad-primary); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-shadow: var(--shadow-3d); position: relative; overflow: hidden; }
.datetile::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light); }
.datetile b { font: 700 26px/1 var(--font-display); position: relative; }
.datetile span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f5dc97; position: relative; margin-top: 3px; }
.datetile.gold { background: var(--grad-gold); color: #2e2105; }
.datetile.gold span { color: #4a3610; }
.datetile.mute { background: linear-gradient(140deg, #8d948f, #5d6560); }
.bmain { flex: 1; min-width: 0; }
.bmain strong { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmain .small { display: block; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.statushero { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: var(--space-5); color: #fff; background: var(--grad-primary); background-color: #0e5a45; box-shadow: var(--shadow-float); margin-bottom: var(--space-4); isolation: isolate; }
.statushero::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light), var(--grad-glow); z-index: -1; }
.statushero.s-pending { background: linear-gradient(140deg, #7a5410, #b98a35); }
.statushero.s-rejected, .statushero.s-cancelled { background: linear-gradient(140deg, #5a1d1a, #9a3a33); }
.statushero.s-completed, .statushero.s-expired { background: linear-gradient(140deg, #3f4743, #6b746f); }
.statushero h1 { color: #fff; margin: 4px 0; font-size: 26px; }
.statushero .when { font-size: 15px; opacity: .9; }
.statushero .badge { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--space-4); position: relative; }
.stepper::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 13px; height: 3px; background: rgba(255, 255, 255, .25); border-radius: 3px; }
.stepper div { text-align: center; font-size: 12px; font-weight: 700; position: relative; color: rgba(255, 255, 255, .75); }
.stepper i { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .45); font-style: normal; }
.stepper .done i { background: #f5dc97; border-color: #f5dc97; color: #2e2105; box-shadow: 0 0 0 4px rgba(245, 220, 151, .25); }
.stepper .done { color: #fff; }
.stepper svg { width: 15px; height: 15px; }

/* ---------- Tables, kv, misc ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px var(--space-4); margin: 0; }
.kv dt { color: var(--ink-2); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stat { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.stat .ico3d { margin: 0; width: 48px; height: 48px; flex: none; }
.stat .n { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.stat .l { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px dashed var(--line); }
.timeline li { padding: 0 0 var(--space-3) var(--space-4); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 0 3px var(--surface); }
.empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--ink-2); }
.empty .ico3d { width: 64px; height: 64px; border-radius: 20px; margin-bottom: var(--space-3); }
.empty .ico3d svg { width: 30px; height: 30px; }
.skeleton { height: 140px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--space-5); }
.pager { display: flex; justify-content: center; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.list > li.unread { background: linear-gradient(90deg, var(--primary-tint), transparent 70%); padding-left: var(--space-3); border-radius: var(--radius-sm); }
select.inline, .row > select, .row > input[type=search] { width: auto; flex: 1 1 160px; }
.area-row select { flex: 1 1 160px; width: auto; }
.area-row input { flex: 2 1 180px; width: auto; }
.user-status input { flex: 1 1 120px; min-height: 40px; }
.card h3 svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--primary); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.page-title h1 { margin: 0; font-size: 28px; }
.results-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }

/* Auth */
.auth-box { max-width: 480px; margin: 0 auto; }
.auth-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--grad-primary); background-color: #0e5a45; color: #fff; padding: var(--space-5) var(--space-5) 56px; isolation: isolate; }
.auth-hero::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light), var(--grad-glow); z-index: -1; }
.auth-hero h1 { color: #fff; font-size: 28px; margin: 0 0 4px; }
.auth-hero p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 14.5px; max-width: 28ch; }
.auth-hero svg.art { position: absolute; right: -8px; bottom: -8px; width: 120px; z-index: -1; opacity: .95; }
.auth-box > .card { border-radius: var(--radius-xl); margin-top: -32px; position: relative; box-shadow: var(--shadow-float); }

/* Onboarding (app mode) */
.onboard { position: fixed; inset: 0; z-index: 70; background: var(--paper) var(--pattern-gold); display: flex; flex-direction: column; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); }
.onboard .skip { align-self: flex-end; background: none; border: 0; color: var(--ink-2); font: 700 14px var(--font-body); padding: 8px; cursor: pointer; }
.onboard .slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.onboard .slide svg { width: min(260px, 70vw); height: auto; filter: drop-shadow(0 24px 30px rgba(8, 57, 44, .3)); }
.onboard h2 { font-size: 28px; margin: 18px 0 0; }
.onboard p { color: var(--ink-2); max-width: 30ch; margin: 0; }
.onboard .dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.onboard .dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: width .2s; }
.onboard .dots i.on { width: 26px; background: var(--grad-primary); background-color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } * { transition: none !important; } }
.empty > svg { width: 40px; height: 40px; color: var(--gold-leaf); margin-bottom: var(--space-2); }
.dchip[aria-current="true"] { background: var(--grad-primary); color: #fff; border-color: transparent; }
.screen .onboard { position: absolute; }
.bmain .badge { margin-top: 6px; }
.booking-row .chev { flex: none; color: var(--ink-2); transform: rotate(180deg); display: grid; }
.booking-row .chev svg { width: 18px; height: 18px; }

/* ---------- Services ---------- */
.svc-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.svc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 14px; text-decoration: none;
  font-size: 12px; font-weight: 800; color: var(--primary); background: var(--primary-tint); border: 1.5px solid transparent; text-align: center; transition: transform .15s; }
a.svc:hover { border-color: var(--primary); transform: translateY(-1px); }
.svc i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); background-color: #0e5a45; color: #fff; box-shadow: var(--shadow-3d); }
.svc i svg { width: 17px; height: 17px; }
.svc.off { color: var(--ink-2); background: var(--surface-2); opacity: .55; text-decoration: line-through; }
.svc.off i { background: var(--line); color: var(--ink-2); box-shadow: none; }
.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-opt { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 12px 26px 12px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; }
.svc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svc-opt .ico3d { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.svc-opt .ico3d svg { width: 20px; height: 20px; }
.svc-opt b { font-size: 15px; line-height: 1.2; }
.svc-opt small { font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.svc-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px var(--primary-tint); }
.svc-opt:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-primary); background-color: #0e5a45; color: #fff; font-size: 12px; display: grid; place-items: center; }
.svc-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.svc-seg { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.tile-link { text-decoration: none; color: var(--ink); transition: transform .15s; }
.tile-link:hover { transform: translateY(-2px); border-color: var(--gold-leaf); }

/* ---------- Near me / location ---------- */
.near-btn { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; padding: 14px 16px; border: 0;
  border-radius: var(--radius-lg); background: var(--grad-gold); color: #2e2105; box-shadow: var(--shadow-float); font: inherit; position: relative; overflow: hidden; isolation: isolate; }
.near-btn::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light); z-index: -1; }
.near-btn b { display: block; font-size: 17px; }
.near-btn small { display: block; font-size: 12.5px; font-weight: 600; color: #4a3610; }
.near-btn > span:nth-child(2) { flex: 1; }
.near-btn > svg { width: 20px; height: 20px; transform: rotate(180deg); flex: none; }
.near-btn:hover { filter: brightness(1.05); }
.near-btn[disabled] { opacity: .7; cursor: wait; }
.pulse { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); background-color: #0e5a45; color: #fff; box-shadow: var(--shadow-3d); }
.pulse svg { width: 24px; height: 24px; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(14, 90, 69, .45); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
.near-wrap { margin-top: var(--space-4); }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; font-weight: 700; margin: var(--space-4) 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.near-banner { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: var(--space-3); }
.near-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.near-banner b { display: block; }
.near-banner small { color: var(--ink-2); font-size: 12.5px; }
.pmedia .dist { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--grad-gold); color: #2e2105; font-size: 12px; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.pmedia .dist svg { width: 13px; height: 13px; }
.loc-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-md); background: var(--surface-2); border: 1.5px dashed var(--line-strong); }
.loc-box b { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.loc-box b svg { width: 16px; height: 16px; color: var(--primary); }
.loc-box small { display: block; color: var(--ink-2); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.loc-box.ok { background: var(--primary-tint); border-style: solid; border-color: var(--primary); }
.loc-box .pulse { width: 40px; height: 40px; }
.loc-box.ok .pulse::after { animation: none; opacity: 0; }
.field.invalid .loc-box { border-color: var(--danger); background: var(--danger-tint); }
.sheet-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(10, 20, 15, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-float); display: grid; gap: 10px; }
.sheet h3 { margin: 0; }
.sheet p { margin: 0; }
.sheet-list { display: grid; gap: 8px; }
.sheet-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.sheet-item:hover { border-color: var(--primary); background: var(--primary-tint); }
.sheet-item svg { width: 20px; height: 20px; color: var(--gold-leaf); flex: none; }
.sheet-item b { display: block; }
.sheet-item small { color: var(--ink-2); }
.page-title .btn { flex: none; }

/* ---------- Quick booking ---------- */
.svc small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: -4px; }
.svc.off small { display: none; }
.book-sheet { gap: 14px; max-height: 92%; overflow-y: auto; }
.book-head { display: flex; align-items: center; gap: 12px; }
.book-head .ico3d { margin: 0; width: 48px; height: 48px; flex: none; }
.book-head h3 { margin: 0; font-size: 21px; }
.book-head p { margin: 0; }
.book-head > div:nth-child(2) { flex: 1; min-width: 0; }
.book-head .close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.qb-dt { grid-template-columns: 1fr 1fr; gap: 10px; }
.book-done { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 8px 0; }
.book-done .ico3d { width: 64px; height: 64px; border-radius: 20px; }
.book-done .btn { justify-self: stretch; }
.contact-card { margin-bottom: var(--space-4); border: 1.5px solid var(--primary); background: linear-gradient(180deg, var(--primary-tint), var(--surface) 60%); }
.contact-card h3 { margin: 0; }
.contact-card .cname { font: 700 20px/1.2 var(--font-display); margin: 10px 0 8px; }
.contact-card .cnum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; }
.contact-card .cnum .label { flex-basis: 100%; font-size: 12px; color: var(--ink-2); }
.contact-card .cnum b { font-size: 20px; letter-spacing: .02em; user-select: all; font-variant-numeric: tabular-nums; }
.contact-card .cnum .linkbtn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; text-decoration: none; }
.contact-card .cnum .linkbtn svg { width: 15px; height: 15px; }
.cbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cbtns .btn { padding: 0 8px; }
.contact-card.locked { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--line-strong); background: var(--surface); }
.contact-card.locked .ico3d { margin: 0; flex: none; }
.contact-card.locked p { margin: 2px 0 0; }

/* ---------- Molvi sign-up wizard ---------- */
.wiz-head { position: relative; overflow: hidden; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--grad-primary); background-color: #0e5a45; color: #fff; padding: var(--space-4) var(--space-5) 52px; isolation: isolate; }
.wiz-head::before { content: ""; position: absolute; inset: 0; background: var(--pattern-light), var(--grad-glow); z-index: -1; }
.wiz-head h1 { color: #fff; font-size: 26px; margin: 14px 0 4px; }
.wiz-head p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 14.5px; }
.wiz-back { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.wiz-back svg { width: 20px; height: 20px; }
.wiz-count { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #f5dc97; }
.wiz-bar { display: grid; grid-auto-flow: column; gap: 6px; margin-top: 14px; }
.wiz-bar i { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.wiz-bar i.on { background: var(--grad-gold); box-shadow: 0 0 10px rgba(245, 220, 151, .55); }
.wiz > .card { border-radius: var(--radius-xl); margin-top: -32px; position: relative; box-shadow: var(--shadow-float); }
.center { text-align: center; justify-content: center; }

.qual-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qual-opt { position: relative; display: grid; align-content: center; gap: 2px; padding: 10px 28px 10px 12px; min-height: 58px;
  border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.qual-opt input, .soc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qual-opt .qi { display: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-gold); color: #3b2a07; box-shadow: var(--shadow-3d); }
.qual-opt .qi svg { width: 18px; height: 18px; }
.qual-opt b { font-size: 14.5px; line-height: 1.2; }
.qual-opt small { font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.qual-opt:has(input:checked), .soc-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); box-shadow: 0 0 0 3px var(--primary-tint); }
.qual-opt:has(input:checked)::after, .soc-opt:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-primary); background-color: #0e5a45; color: #fff; font-size: 12px; display: grid; place-items: center; }
.qual-opt:has(input:focus-visible), .soc-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.soc-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.soc-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 10px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; }
.soc-opt .si { width: 40px; height: 40px; display: grid; place-items: center; }
.soc-opt .si svg { width: 38px; height: 38px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); }
.soc-opt.none .si { color: var(--ink-2); }
.soc-opt.none .si svg { width: 30px; height: 30px; filter: none; }
@media (max-width: 360px) { .soc-pick { grid-template-columns: 1fr 1fr; } .qual-pick { grid-template-columns: 1fr; } }

.selfie-stage { position: relative; width: min(280px, 78vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #0a2e24; box-shadow: var(--shadow-float); }
.selfie-stage video, .selfie-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.selfie-stage video { transform: scaleX(-1); }
.selfie-ring { position: absolute; inset: 0; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px rgba(201, 154, 60, .7); pointer-events: none; }
.selfie-stage.done .selfie-ring { border-color: #2fbf71; }
.selfie-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 28px; text-align: center; color: #fff; font-size: 14px; font-weight: 600; }
.selfie-msg svg { width: 36px; height: 36px; color: #f5dc97; }
.selfie-tips { margin: 0; padding-left: 18px; color: var(--ink-2); }

.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-x { position: absolute; top: 4px; right: 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; }
.ph.add { display: grid; place-content: center; justify-items: center; gap: 2px; border: 1.5px dashed var(--line-strong); cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 700; }
.ph.add svg { width: 26px; height: 26px; }
.ph.add small { color: var(--ink-2); font-weight: 600; }
@media (max-width: 360px) { .ph-grid { grid-template-columns: repeat(2, 1fr); } }

.who-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-md); background: var(--primary-tint); }
.who-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
.who-card b { display: block; font-size: 16px; }
.who-card small { color: var(--ink-2); font-weight: 600; }
.done-card { padding: var(--space-6) var(--space-5); }
.ico3d.big { width: 76px; height: 76px; border-radius: 24px; }
.ico3d.big svg { width: 38px; height: 38px; }

/* ---------- Real molvi photos & social links ---------- */
.pmedia .mphoto { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-float); }
.pcover .mphoto { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 148px; height: 148px; z-index: 2; border-radius: 50%; object-fit: cover; border: 5px solid var(--paper); box-shadow: var(--shadow-float); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.soc-link svg { width: 26px; height: 26px; }
.soc-link:hover { border-color: var(--primary); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery a { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qual-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qual-chip svg { width: 14px; height: 14px; flex: none; }
.phead .qual-chips { justify-content: center; margin-top: 8px; }
.qual-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--grad-gold); color: #3b2a07; font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow-3d); }
.thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.admin-selfie { width: 100%; max-width: 260px; aspect-ratio: 1; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-float); }
.approved-hero { display: flex; align-items: center; gap: 14px; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--grad-primary); background-color: #0e5a45; color: #fff; box-shadow: var(--shadow-float); }
.approved-hero .ico3d { margin: 0; flex: none; }
.approved-hero b { display: block; font-size: 18px; }
.approved-hero small { color: rgba(255, 255, 255, .85); }
[hidden] { display: none !important; }

/* ---------- Help & support / admin panel ---------- */
.badge.info { background: var(--info-tint); color: var(--info); }
.badge.rose { background: var(--danger-tint); color: var(--danger); }
.help-cta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.help-cta .ico3d { margin: 0; flex: none; }
.help-cta > div:nth-child(2) { flex: 1 1 220px; }
.help-cta h2 { margin: 0 0 4px; }
.sup-list li { display: grid; gap: 6px; }
.sup-list .row, .sup-item .row { gap: 8px; }
.sup-item h3 { margin: 0; font-size: 17px; }
.sup-item.is-new { border-left: 5px solid var(--gold-leaf); }
.reply { padding: 10px 12px; border-radius: var(--radius-md); background: var(--primary-tint); border-left: 4px solid var(--primary); }
.reply b { color: var(--primary); font-size: 13px; }
.reply p { margin: 4px 0 0; }
.big-stat { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; transition: transform .15s; }
.big-stat:hover { transform: translateY(-2px); }
.big-stat .ico3d { margin: 0; flex: none; }
.big-stat .n { font-size: 34px; font-weight: 800; font-family: var(--font-display); line-height: 1; }
.admin-login .auth-hero { background: linear-gradient(140deg, #1b1b1b 0%, #0a3a2d 60%, #0e5a45 100%); }
.svc-strip .svc { position: relative; }
