/* Weds.me — Muslim matrimony. Sharp edges, editorial type, geometric ornament. */
:root {
  --green-950: #08261e;
  --green-900: #0b3328;
  --green-800: #0d3b2e;
  --green-700: #14513f;
  --green-600: #1d6a53;
  --green-100: #e4ede7;
  --gold: #b48a3c;
  --gold-dark: #8a6623;
  --gold-light: #d9bf86;
  --ivory: #f7f2e7;
  --paper: #fffdf8;
  --ink: #17221d;
  --muted: #5b6862;
  --rule: #e0d7c5;
  --rule-strong: #c9bda5;
  --rose: #8f2d3a;
  --ok: #1d6a53;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;
  --wrap: 1200px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d9bf86' stroke-opacity='.22' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3Cpath d='M0 0L20 20M80 0L60 20M0 80L20 60M80 80L60 60M40 0v11.7M40 80v-11.7M0 40h11.7M80 40h-11.7'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--green-900); }
h1, h2, h3, h4, .stat-row strong, .meter-num, .mono, .ilist-body strong { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 100; background: var(--gold); color: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.eyebrow { font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.light { color: var(--gold-light); }
.bismillah { font-family: var(--arabic); font-size: 1.6rem; color: var(--gold-light); margin: 0 0 18px; line-height: 1.4; text-align: start; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; width: 0; opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .9rem/1 var(--sans); letter-spacing: .02em; padding: 13px 22px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 17px 28px; font-size: .98rem; }
.btn-sm { padding: 8px 14px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-green { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.btn-green:hover { background: var(--green-950); color: #fff; }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--rule-strong); }
.btn-outline:hover { border-color: var(--green-800); color: var(--green-900); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.danger, .linkbtn.danger { color: var(--rose) !important; }
.btn.danger { border-color: var(--rose); }
form.inline { display: inline; margin: 0; }

/* ---------- Header ---------- */
.site-head { background: var(--green-900); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(217,191,134,.25); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-decoration: none; color: #fff; }
.brand-mark { grid-row: span 2; display: block; width: 38px; height: 38px; color: var(--gold-light); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font: 600 1.75rem/1 var(--display); letter-spacing: -.01em; }
.brand-word span, .foot-brand span { color: var(--gold-light); }
.brand-sub { font: 500 .62rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.main-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.main-nav a, .main-nav .linkbtn { color: rgba(255,255,255,.86); text-decoration: none; font-size: .9rem; font-weight: 500; }
.main-nav a:hover, .main-nav .linkbtn:hover, .main-nav a[aria-current] { color: var(--gold-light); }
.main-nav .btn-gold { color: #fff; padding: 11px 18px; }
.main-nav .btn-gold:hover { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); }
.count { display: inline-block; min-width: 20px; padding: 2px 6px; margin-inline-start: 6px; background: var(--gold); color: #fff; font: 600 .7rem/1.3 var(--sans); text-align: center; }
.navtoggle, .burger { display: none; }

@media (max-width: 960px) {
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-inline-start: auto; width: 44px; height: 44px; cursor: pointer; }
  .burger span { display: block; height: 2px; background: #fff; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-950); border-bottom: 2px solid var(--gold); padding: 8px 24px 20px;
  }
  .main-nav > a, .main-nav > form { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .main-nav .btn-gold { margin-top: 14px; padding: 15px; border-bottom: 0; }
  .nav-sep { display: none; }
  .navtoggle:checked ~ .main-nav { display: flex; }
  .navtoggle:checked + .burger span:nth-child(2) { opacity: 0; }
}

/* ---------- Flash ---------- */
.flashes { padding-top: 18px; }
.flash { margin: 0 0 8px; padding: 13px 18px; border-inline-start: 3px solid var(--green-600); background: var(--green-100); font-size: .93rem; }
.flash-error { border-color: var(--rose); background: #f7e7e7; }
.flash-info { border-color: var(--gold); background: #f6efdf; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero-pattern { position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; mask-image: linear-gradient(100deg, transparent 0%, #000 55%); -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 55%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold) 0 33%, var(--gold-light) 33% 66%, var(--gold-dark) 66%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
.hero .eyebrow { color: var(--gold-light); }
.hero .lead { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sub-bride .hero, .sub-bride .site-head { background: #2a1d24; }
.sub-bride .hero { background: linear-gradient(135deg, #3a1f2b, #22161c); }

.search-panel { background: var(--paper); color: var(--ink); padding: 32px; border-top: 4px solid var(--gold); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.search-panel h2 { font-size: 1.8rem; margin-bottom: 18px; }
.panel-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Forms ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.fld > span { font: 600 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fld em { color: var(--gold-dark); font-style: normal; }
.fld small { font-size: .78rem; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); padding: 12px 13px; min-height: 48px; appearance: none;
}
textarea { min-height: auto; resize: vertical; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--green-800) 50%), linear-gradient(135deg, var(--green-800) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-700); box-shadow: inset 0 0 0 1px var(--green-700); }
input[disabled] { background: var(--ivory); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; accent-color: var(--green-800); appearance: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 16px; line-height: 1.45; }
.check input { margin-top: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; }
.seg legend { font: 600 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 13px; border: 1px solid var(--rule-strong); font-weight: 600; font-size: .92rem; }
.seg label + label span { border-inline-start: 0; }
.seg input:checked + span { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.form-grid .wide, .form-grid > .fld.wide, .form-grid > p { grid-column: 1 / -1; }

/* ---------- Bands & sections ---------- */
.band { padding: 88px 0; }
.band-tight { padding: 48px 0; }
.band-ivory { background: var(--ivory); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-green { background: var(--green-800); color: rgba(255,255,255,.85); position: relative; }
.band-green::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .5; }
.band-green > * { position: relative; }
.band-green h2, .band-green h3 { color: #fff; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.sec-head h2 { margin: 0; }
.more { font-weight: 600; font-size: .88rem; white-space: nowrap; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 56px; padding-bottom: 56px; }
.pillars > div { padding: 0 28px; border-inline-start: 1px solid var(--rule-strong); }
.pillars > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pillars .num { font: 500 italic 1.1rem var(--display); color: var(--gold); }
.pillars h3 { margin: 6px 0 8px; }
.pillars p { font-size: .92rem; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.step-list li { counter-increment: s; padding-block: 26px; padding-inline: 0 26px; border-top: 1px solid rgba(217,191,134,.3); }
.step-list li:nth-child(even) { padding-inline-start: 26px; border-inline-start: 1px solid rgba(217,191,134,.3); }
.step-list li::before { content: "0" counter(s); font: 500 italic 1.1rem var(--display); color: var(--gold-light); }
.step-list h3 { margin: 6px 0 6px; }
.step-list p { font-size: .93rem; margin: 0; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.svc { position: relative; display: block; padding: 28px 26px 46px; border-inline-end: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); background: var(--paper); transition: background .15s; }
.svc:hover { background: var(--ivory); color: var(--ink); }
.svc h2, .svc h3 { font-size: 1.35rem; margin-bottom: 8px; }
.svc p { font-size: .88rem; color: var(--muted); margin: 0; }
.svc .arrow { position: absolute; inset-inline-start: 26px; bottom: 16px; color: var(--gold); font-size: 1.2rem; transition: transform .15s; }
.svc:hover .arrow { transform: translateX(6px); }
.svc-count { position: absolute; inset-inline-end: 22px; bottom: 18px; font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.svc-grid-full { grid-template-columns: repeat(3, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule-strong); }
.door { display: flex; flex-direction: column; gap: 8px; padding: 34px 28px; text-decoration: none; color: var(--ink); background: var(--paper); position: relative; overflow: hidden; }
.door + .door { border-inline-start: 1px solid var(--rule-strong); }
.door span { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.door strong { font: 600 2rem/1 var(--display); color: var(--green-900); }
.door em { font-style: normal; font-size: .86rem; color: var(--muted); }
.door:hover { background: var(--green-900); }
.door:hover strong, .door:hover em { color: #fff; }
.door:hover span { color: var(--gold-light); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-block: 13px; padding-inline: 34px 0; border-bottom: 1px solid var(--rule); position: relative; }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 19px; width: 10px; height: 10px; border: 1.5px solid var(--gold); transform: rotate(45deg); }
.checklist.light li { border-color: rgba(255,255,255,.15); }

.cta-band { background: var(--gold); color: #fff; padding: 46px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band .btn-gold { background: var(--green-900); border-color: var(--green-900); }
.cta-band .btn-gold:hover { background: var(--green-950); }

/* ---------- Page head ---------- */
.page-head { background: var(--ivory); border-bottom: 1px solid var(--rule); padding: 56px 0 44px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset-inline-end: -40px; top: 0; bottom: 0; width: 40%; background-image: var(--pattern); background-size: 80px; filter: brightness(.55) sepia(1); opacity: .5; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 820px; }
.lead-dark { font-size: 1.08rem; color: var(--muted); max-width: 680px; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--rule); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--green-800); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 500 3.4rem var(--display); color: var(--gold-light); background: var(--green-800) var(--pattern) center / 60px; letter-spacing: .04em; }
.mono.female { background-color: #4a2734; }
.lock { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(8,38,30,.82); color: #fff; font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.45rem; margin: 0 0 2px; display: flex; align-items: baseline; gap: 10px; }
.card h3 a { color: var(--green-900); text-decoration: none; }
.age, .profile-main h1 .age { font: 500 1rem var(--sans); color: var(--gold-dark); }
.card-loc { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.card-facts { margin: 0 0 12px; font-size: .85rem; }
.card-facts div { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 5px 0; border-top: 1px solid var(--rule); }
.card-facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.card-facts dd { margin: 0; }
.card-code { margin: auto 0 0; font: 600 .7rem var(--sans); letter-spacing: .12em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { display: inline-block; padding: 4px 8px; background: var(--green-100); color: var(--green-700); font: 600 .66rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Browse ---------- */
.browse { display: grid; grid-template-columns: 290px 1fr; gap: 36px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.filters { background: var(--ivory); border: 1px solid var(--rule); position: sticky; top: 92px; }
.filters summary { list-style: none; cursor: pointer; padding: 16px 20px; font: 600 1.25rem var(--display); color: var(--green-900); border-bottom: 1px solid var(--rule); }
.filters summary::-webkit-details-marker { display: none; }
.filters form { padding: 20px; }
.filters .fld { margin-bottom: 12px; }
.filters input, .filters select { min-height: 42px; padding: 9px 11px; font-size: .92rem; }
.filters select { background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; }
.reset { display: block; text-align: center; margin-top: 12px; font-size: .85rem; }
.notice { padding: 14px 18px; background: var(--ivory); border: 1px solid var(--rule); border-inline-start: 3px solid var(--gold); font-size: .92rem; margin-bottom: 24px; }
.empty { padding: 56px 32px; text-align: center; border: 1px dashed var(--rule-strong); background: var(--paper); }
.empty p { max-width: 520px; margin: 0 auto 22px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 28px; align-items: center; margin-top: 40px; font-size: .92rem; }

/* ---------- Profile ---------- */
.profile { padding-top: 32px; padding-bottom: 80px; }
.profile-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.profile-side { position: sticky; top: 92px; }
.gallery-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--rule); cursor: pointer; background: none; }
.gallery-thumbs img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-empty { position: relative; aspect-ratio: 4 / 5; }
.gallery-empty .mono { font-size: 6rem; }
.gallery-empty p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 16px; background: rgba(8,38,30,.88); color: #fff; font-size: .85rem; text-align: center; }
.gallery-empty .lock { display: none; }
.actions { display: grid; gap: 10px; margin-top: 18px; }
.actions form { margin: 0; }
.status-line { margin: 0; padding: 12px 14px; background: var(--ivory); font-size: .9rem; border-inline-start: 3px solid var(--gold); }
.interest-form textarea { font-size: .92rem; }
.report { margin-top: 6px; font-size: .88rem; }
.report summary { cursor: pointer; color: var(--muted); }
.report form { margin-top: 12px; }
.profile-main h1 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.profile-main h1 .age { font-size: 1.4rem; }
.profile-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 28px; }
.pblock { border-top: 1px solid var(--rule-strong); padding: 26px 0 8px; }
.pblock h2 { font-size: 1.6rem; }
.prose { font-size: 1.02rem; line-height: 1.75; max-width: 70ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0 0 16px; }
.facts.one { grid-template-columns: 1fr; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .94rem; }
.facts dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }
.locked { padding: 16px 18px; background: var(--ivory); border-inline-start: 3px solid var(--gold); color: var(--muted); }
.gate { background: var(--ivory); padding: 32px; border: 1px solid var(--rule); margin-top: 12px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; background: #fbf3dd; border: 1px solid var(--gold-light); margin-bottom: 22px; font-size: .9rem; }
.admin-bar form { margin: 0; display: flex; gap: 6px; }
.admin-bar > span { margin-inline-end: auto; }
.reject-form input { min-height: 34px; padding: 6px 10px; font-size: .85rem; width: 220px; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 1100px; margin: 48px auto 80px; border: 1px solid var(--rule); background: #fff; }
.auth-wrap.narrow { grid-template-columns: 1fr; max-width: 480px; }
.auth-aside { background: var(--green-900) var(--pattern); color: rgba(255,255,255,.86); padding: 48px; }
.auth-aside h1 { color: #fff; font-size: 2.8rem; }
.auth-aside .checklist { margin-top: 28px; }
.auth-form { padding: 44px; }
.auth-form h1 { font-size: 2.4rem; }
.auth-alt { margin: 18px 0 0; font-size: .9rem; text-align: center; color: var(--muted); }

/* ---------- Account ---------- */
.acct-nav { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--rule); margin-top: 24px; scrollbar-width: none; }
.acct-nav a { padding: 14px 18px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acct-nav a[aria-current] { color: var(--green-900); border-color: var(--gold); }
.acct { padding-top: 32px; padding-bottom: 80px; }
.narrow-col { max-width: 760px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 28px; }
.acct-head h1 { margin-bottom: 4px; }
.meter { min-width: 240px; }
.meter-num { font: 600 2.6rem/1 var(--display); color: var(--green-900); }
.meter-label { margin-inline-start: 8px; color: var(--muted); font-size: .85rem; }
.meter-bar { display: block; height: 6px; background: var(--rule); margin-top: 10px; }
.meter-bar i { display: block; height: 100%; width: var(--pct); background: var(--gold); }
.status-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 30px; border: 1px solid var(--rule); border-inline-start: 4px solid var(--gold); background: var(--ivory); margin-bottom: 26px; flex-wrap: wrap; }
.status-card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.status-card p { margin: 0; color: var(--muted); }
.status-card form { margin: 0; }
.status-approved { border-inline-start-color: var(--green-600); }
.status-rejected, .status-suspended { border-inline-start-color: var(--rose); }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--rule); margin-bottom: 36px; }
.stat-row > * { padding: 20px; text-decoration: none; color: var(--ink); border-inline-start: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.stat-row > *:first-child { border-inline-start: 0; }
.stat-row a:hover { background: var(--ivory); }
.stat-row strong { font: 600 2.2rem/1 var(--display); color: var(--green-900); }
.stat-row span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.stat-grid > div { border-bottom: 1px solid var(--rule); }

.ilist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.ilist li { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ilist-ph { position: relative; display: block; width: 72px; height: 90px; overflow: hidden; background: var(--green-800); }
.ilist-ph img { width: 100%; height: 100%; object-fit: cover; }
.ilist-ph .mono { font-size: 1.6rem; }
.ilist-ph .lock { display: none; }
.ilist-body { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); min-width: 0; }
.ilist-body strong { font: 600 1.25rem var(--display); color: var(--green-900); }
.ilist-body q { font-style: italic; color: var(--ink); font-size: .92rem; }
.ilist-act { display: flex; gap: 8px; }
.ilist-act form { margin: 0; }
.when { font-size: .78rem; color: var(--muted); }
.threads li.unread { background: #fbf6ea; }
.tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1px solid var(--rule); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 10px 18px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500; border-inline-start: 1px solid var(--rule); white-space: nowrap; }
.tabs a:first-child { border-inline-start: 0; }
.tabs a[aria-current] { background: var(--green-800); color: #fff; }

/* ---------- Editor ---------- */
.edit { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 80px; align-items: start; }
.stepper { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); position: sticky; top: 92px; }
.stepper li a { display: flex; gap: 12px; align-items: center; padding: 13px 16px; text-decoration: none; color: var(--muted); font-size: .92rem; border-bottom: 1px solid var(--rule); }
.stepper li:last-child a { border-bottom: 0; }
.stepper span { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule-strong); font: 600 .75rem var(--sans); flex: none; }
.stepper li.done span { background: var(--green-100); border-color: var(--green-600); color: var(--green-700); }
.stepper li.on a { background: var(--green-800); color: #fff; }
.stepper li.on span { border-color: var(--gold-light); color: var(--gold-light); }
.edit-panel { background: #fff; border: 1px solid var(--rule); padding: 36px 40px; }
.edit-panel h1 { font-size: 2.4rem; }
.edit-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--rule); }
.foot-right { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 24px 0; }
.photo-grid figure { margin: 0; border: 1px solid var(--rule); }
.photo-grid figure.primary { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.photo-grid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.photo-grid figcaption { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: .82rem; gap: 6px; }
.photo-grid figcaption form { margin: 0; }
.upload label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 5; border: 1px dashed var(--rule-strong); cursor: pointer; text-align: center; padding: 12px; color: var(--muted); background: var(--ivory); }
.upload label:hover { border-color: var(--green-700); color: var(--green-800); }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload .plus { font: 300 2.6rem/1 var(--display); color: var(--gold); }
.upload small { font-size: .72rem; }
.charcount { font-size: .76rem; color: var(--muted); text-align: right; margin-top: -10px; margin-bottom: 12px; }

/* ---------- Messages ---------- */
.thread { max-width: 820px; padding-top: 24px; padding-bottom: 60px; }
.thread-head { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.thread-head .ilist-ph { width: 56px; height: 70px; }
.thread-head h1 { font-size: 1.9rem; margin: 0; }
.msgs { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; min-height: 280px; }
.msg { max-width: 78%; padding: 12px 16px; background: var(--ivory); border: 1px solid var(--rule); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--green-800); color: #fff; border-color: var(--green-800); }
.msg p { margin: 0 0 4px; white-space: pre-wrap; word-wrap: break-word; }
.msg time { font-size: .7rem; opacity: .65; }
.composer { display: flex; gap: 10px; align-items: stretch; position: sticky; bottom: 0; background: var(--paper); padding: 14px 0; border-top: 1px solid var(--rule); }
.composer textarea { flex: 1; }

/* ---------- Panels, tables, vendors ---------- */
.panel { background: #fff; border: 1px solid var(--rule); padding: 28px 30px; margin-bottom: 22px; }
.panel h2 { font-size: 1.6rem; }
.panel.faded { opacity: .6; }
.danger-panel { border-color: #e6c9cc; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.tbl th { text-align: start; font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--ivory); padding: 12px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.row-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-act form { margin: 0; }
.inline-search { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 22px; max-width: 520px; }
.inline-search .fld { flex: 1; margin: 0; }
.inline-search .btn { min-height: 48px; }
.vendor-list { border-top: 1px solid var(--rule); }
.vendor-row { display: grid; grid-template-columns: 280px 1fr 30px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); align-items: center; }
.vendor-row h2 { font-size: 1.45rem; margin: 0; }
.vendor-row p { margin: 0; font-size: .92rem; }
.vendor-row .arrow { color: var(--gold); font-size: 1.2rem; }
.vendor-row:hover h2 { color: var(--gold-dark); }
.vendor-detail { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 30px 34px; background: var(--green-900) var(--pattern); color: rgba(255,255,255,.85); }
.cta-inline h2 { color: #fff; margin-bottom: 4px; }
.cta-inline p { margin: 0; }

/* ---------- Content pages ---------- */
.prose-page { padding-top: 48px; padding-bottom: 80px; }
.prose h2 { font-size: 1.85rem; margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .5em; }
.howto { list-style: none; padding: 0; margin: 0 0 40px; counter-reset: h; max-width: 820px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 80px 1fr; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.howto li::before { content: counter(h, decimal-leading-zero); font: 500 italic 2.4rem/1 var(--display); color: var(--gold); grid-row: span 2; }
.howto h2 { font-size: 1.6rem; margin: 0 0 6px; }
.howto p { margin: 0; color: var(--muted); }
.error-page { padding: 100px 24px; text-align: center; }
.error-page .btn { margin: 4px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--green-950); color: rgba(255,255,255,.7); padding: 64px 0 28px; margin-top: 0; font-size: .9rem; }
.ayah { text-align: center; max-width: 820px; margin: 0 auto 56px; padding-bottom: 44px; border-bottom: 1px solid rgba(217,191,134,.2); }
.ayah .ar { font: 400 1.9rem/1.8 var(--arabic); color: var(--gold-light); margin-bottom: 12px; }
.ayah .tr { font: italic 500 1.2rem/1.5 var(--display); color: rgba(255,255,255,.8); margin: 0; }
.ayah cite { display: block; margin-top: 8px; font: 600 .7rem var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-cols h4 { font: 600 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.foot-cols a { display: block; color: rgba(255,255,255,.72); text-decoration: none; padding: 4px 0; }
.foot-cols a:hover { color: #fff; }
.foot-brand { font: 600 2rem var(--display); color: #fff; margin-bottom: 10px; }
.site-foot .muted { color: rgba(255,255,255,.55); max-width: 300px; }
.copy { margin: 48px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stat-row > * { border-bottom: 1px solid var(--rule); }
  .stat-row > *:nth-child(3n+1) { border-inline-start: 0; }
}
@media (max-width: 900px) {
  .hero-grid, .steps, .split, .profile-grid, .browse, .edit, .vendor-detail, .auth-wrap { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .pillars > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .profile-side, .filters, .stepper { position: static; }
  .profile-side { max-width: 460px; }
  .gallery-main { max-height: 58vh; }
  .gallery-empty { aspect-ratio: auto; height: 46vh; }
  .stepper { display: flex; overflow-x: auto; scrollbar-width: none; }
  .stepper li a { border-bottom: 0; border-inline-end: 1px solid var(--rule); white-space: nowrap; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .vendor-row { grid-template-columns: 1fr; gap: 6px; }
  .vendor-row .arrow { display: none; }
  .svc-grid-full { grid-template-columns: 1fr 1fr; }
  .auth-aside { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline-start: 16px; padding-inline-end: 16px; }
  .band { padding: 56px 0; }
  .cards, .cards-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 1.2rem; }
  .card-facts { display: none; }
  .card-code .tag { display: none; }
  .mono { font-size: 2.4rem; }
  .svc-grid, .svc-grid-full, .doors, .step-list, .form-grid, .facts { grid-template-columns: 1fr; }
  .door + .door { border-inline-start: 0; border-top: 1px solid var(--rule-strong); }
  .step-list li:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { border-inline-start: 0; padding: 0 0 20px; border-bottom: 1px solid var(--rule); }
  .search-panel { padding: 24px 20px; }
  .facts div { grid-template-columns: 120px 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row > * { border-inline-start: 0 !important; }
  .stat-row > *:nth-child(even) { border-inline-start: 1px solid var(--rule) !important; }
  .edit-panel { padding: 24px 18px; }
  .auth-form { padding: 28px 20px; }
  .auth-wrap { margin: 24px 0 56px; border-inline-start: 0; border-inline-end: 0; }
  .ilist li { grid-template-columns: 60px 1fr; }
  .ilist-ph { width: 60px; height: 75px; }
  .ilist-act { grid-column: 1 / -1; }
  .ilist-act .btn { flex: 1; }
  .ilist-act form { flex: 1; display: flex; }
  .msg { max-width: 92%; }
  .foot-cols { grid-template-columns: 1fr; gap: 24px; }
  .ayah .ar { font-size: 1.45rem; }
  .sec-head { flex-direction: column; gap: 6px; }
  .page-head { padding: 40px 0 32px; }
  .howto li { grid-template-columns: 56px 1fr; }
  .howto li::before { font-size: 1.8rem; }
  .cta-row .btn, .hero-cta .btn { width: 100%; }
  .brand-sub { display: none; }
  .brand-word { font-size: 1.55rem; }
  .reject-form input { width: 100%; }
}

/* =====================================================================
   Languages: Hindi (Devanagari) and Urdu (Nastaliq headings, Naskh body, RTL)
   ===================================================================== */
:root[lang="hi"] {
  --display: "Tiro Devanagari Hindi", "Cormorant Garamond", Georgia, serif;
  --sans: "IBM Plex Sans Devanagari", "IBM Plex Sans", system-ui, sans-serif;
}
:root[lang="ur"] {
  --display: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  --sans: "Noto Naskh Arabic", "IBM Plex Sans", system-ui, sans-serif;
}
/* Letter-spacing and uppercase break Devanagari and Arabic script joining. */
:root[lang="hi"] *, :root[lang="ur"] * { letter-spacing: 0 !important; text-transform: none !important; }
:root[lang="hi"] h1 em, :root[lang="hi"] h2 em, :root[lang="ur"] h1 em, :root[lang="ur"] h2 em { font-style: normal; }
:root[lang="hi"] body { line-height: 1.75; }
:root[lang="hi"] h1, :root[lang="hi"] h2, :root[lang="hi"] h3 { line-height: 1.3; font-weight: 400; }
:root[lang="ur"] body { line-height: 1.9; font-size: 17px; }
:root[lang="ur"] h1, :root[lang="ur"] h2, :root[lang="ur"] h3, :root[lang="ur"] h4 { line-height: 1.9; font-weight: 600; }
:root[lang="ur"] h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
:root[lang="ur"] .hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.8; }
:root[lang="ur"] h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
:root[lang="ur"] .card h3, :root[lang="ur"] .ilist-body strong, :root[lang="ur"] .door strong { line-height: 1.8; }
:root[lang="ur"] .eyebrow, :root[lang="ur"] .fld > span, :root[lang="ur"] .seg legend { font-size: .85rem; line-height: 1.6; }
:root[lang="hi"] .eyebrow, :root[lang="hi"] .fld > span, :root[lang="hi"] .seg legend { font-size: .82rem; }
:root[lang="ur"] .btn { font-size: .95rem; line-height: 1.5; padding-block: 10px; }
.brand-word, .foot-brand { font-family: "Cormorant Garamond", Georgia, serif; }
[lang="ar"] { font-family: var(--arabic) !important; letter-spacing: 0 !important; }
.lang-switch a[lang="hi"] { font-family: "IBM Plex Sans Devanagari", "Nirmala UI", sans-serif; }
.lang-switch a[lang="ur"], .foot-langs a[lang="ur"], .lang-choices a[lang="ur"] { font-family: "Noto Naskh Arabic", "Segoe UI", sans-serif; }

/* RTL mirroring for the few things logical properties cannot express */
[dir="rtl"] select { background-position: 13px 21px, 18px 21px; }
[dir="rtl"] .filters select { background-position: 13px 18px, 18px 18px; }
[dir="rtl"] .hero-pattern { mask-image: linear-gradient(260deg, transparent 0%, #000 55%); -webkit-mask-image: linear-gradient(260deg, transparent 0%, #000 55%); }
[dir="rtl"] .page-head::after { mask-image: linear-gradient(270deg, transparent, #000); -webkit-mask-image: linear-gradient(270deg, transparent, #000); }
[dir="rtl"] .svc .arrow, [dir="rtl"] .vendor-row .arrow { transform: scaleX(-1); }
[dir="rtl"] .svc:hover .arrow { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"], [dir="rtl"] input[type="number"] { direction: ltr; text-align: end; }
[dir="rtl"] .check input { margin-top: 8px; }

/* =====================================================================
   Header language switch, small shared bits
   ===================================================================== */
.lang-switch { display: flex; gap: 14px; margin-inline-start: 18px; }
.lang-switch a { color: var(--gold-light); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.lang-switch a:hover { color: #fff; }
.foot-langs { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.foot-langs a { color: rgba(255,255,255,.75); text-decoration: none; }
.foot-langs a[aria-current] { color: var(--gold-light); }
.lang-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row, .chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.page-head.slim { padding: 36px 0 28px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--gold-dark); text-decoration: none; }
.ayah-more { display: inline-block; margin-top: 14px; color: var(--gold-light); font-size: .88rem; }
.app-promo .cta-inline { margin-top: 0; }
.ios-hint { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--gold-light); }
.thread-back { font-size: 1.6rem; text-decoration: none; color: var(--green-800); padding-block: 4px; padding-inline: 0 10px; }

/* =====================================================================
   Keyword landing pages and hub
   ===================================================================== */
.topic-cols, .hub-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.hub-cols h2 a { color: var(--green-900); text-decoration: none; }
.topic-group { margin-bottom: 26px; }
.topic-group h3 { font-size: 1.15rem; color: var(--gold-dark); margin-bottom: 10px; }
.topic-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--rule); }
.topic-links li { border-bottom: 1px solid var(--rule); }
.topic-links a { display: block; padding: 11px 2px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.topic-links a:hover { color: var(--gold-dark); }
.hub-single { margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-inline-end: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 0; color: var(--gold); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.howto.compact li { grid-template-columns: 52px 1fr; padding: 16px 0; }
.howto.compact li::before { font-size: 1.6rem; }
.howto.compact h3 { font-size: 1.2rem; margin: 0 0 4px; }
.related h2 { font-size: 1.6rem; }

/* =====================================================================
   Quran verses
   ===================================================================== */
.verse-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.verse-index a { padding: 8px 12px; border: 1px solid var(--rule-strong); text-decoration: none; color: var(--green-800); font-size: .85rem; background: #fff; }
.verse-index a:hover { border-color: var(--gold); }
.verse { border-top: 1px solid var(--rule-strong); padding: 34px 0 26px; scroll-margin-top: 90px; }
.verse header { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.verse h2 { margin: 0; }
.verse-ref { color: var(--gold-dark); font-size: .9rem; margin: 0; }
.ar { font-family: var(--arabic); font-size: 2rem; line-height: 2.1; color: var(--green-900); text-align: right; margin: 18px 0 12px; }
.ar.big { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--gold-light); text-align: center; }
.verse-tr { font: 500 1.25rem/1.6 var(--display); color: var(--ink); max-width: 64ch; margin: 0 0 14px; }
:root[lang="ur"] .verse-tr, :root[lang="hi"] .verse-tr { font-family: var(--sans); font-size: 1.12rem; line-height: 1.9; }
.verse-actions { display: flex; gap: 22px; font-size: .88rem; margin: 0; }
.verse-dua { background: var(--ivory); padding: 30px; border: 1px solid var(--rule); margin-top: 20px; }
.note-panel { margin: 36px 0; padding: 22px 26px; border-inline-start: 3px solid var(--gold); background: #fff; }
.note-panel h2 { font-size: 1.3rem; }
.note-panel p { color: var(--muted); font-size: .92rem; }
.verse-band .verse-feature { text-align: center; max-width: 860px; }
.verse-band .verse-tr { color: rgba(255,255,255,.9); margin: 0 auto 8px; }
.verse-band .verse-ref { color: var(--gold-light); margin-bottom: 22px; }

/* =====================================================================
   Invitation cards
   ===================================================================== */
.icard {
  --c-bg: #0d3b2e; --c-ink: #f4ead2; --c-accent: #d9bf86; --c-soft: rgba(244,234,210,.78);
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 5 / 7; margin: 0 auto; overflow: hidden;
  background: var(--c-bg); color: var(--c-ink); container-type: inline-size;
  font-family: "Cormorant Garamond", Georgia, serif; text-align: center;
}
.icard.fmt-square { aspect-ratio: 1 / 1; }
.icard[lang="hi"] { font-family: "Tiro Devanagari Hindi", "Cormorant Garamond", serif; }
.icard[lang="ur"] { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; }
.icard-frame { position: absolute; inset: 4.5%; border: 1px solid var(--c-accent); pointer-events: none; }
.icard-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--c-accent); opacity: .45; }
.icard-inner { position: absolute; inset: 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(1.2cqw * var(--fit, 1)); }
.icard p, .icard h3 { margin: 0; color: inherit; }
.ic-bism { font-size: calc(6.4cqw * var(--fit, 1)); color: var(--c-accent); line-height: 1.6; }
.ic-ayah { font-size: calc(3.7cqw * var(--fit, 1)); line-height: 1.8; color: var(--c-accent); max-width: 92%; }
.ic-ayah-tr { font-size: calc(2.9cqw * var(--fit, 1)); line-height: 1.45; color: var(--c-soft); max-width: 88%; font-style: italic; }
.icard[lang="ur"] .ic-ayah-tr, .icard[lang="hi"] .ic-ayah-tr { font-style: normal; }
.ic-kicker { font-size: calc(3.2cqw * var(--fit, 1)); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); margin-top: 1.5cqw !important; font-family: "IBM Plex Sans", sans-serif; font-weight: 500; }
.icard[lang="hi"] .ic-kicker, .icard[lang="ur"] .ic-kicker { letter-spacing: 0; text-transform: none; font-family: inherit; font-size: calc(3.8cqw * var(--fit, 1)); }
.ic-invite { font-size: calc(3.6cqw * var(--fit, 1)); line-height: 1.4; color: var(--c-soft); max-width: 86%; }
.ic-names { display: flex; flex-direction: column; align-items: center; font-size: calc(10cqw * var(--fit, 1)); line-height: 1.05; font-weight: 600; color: var(--c-ink); margin: 1.5cqw 0 !important; letter-spacing: 0; }
.icard[lang="ur"] .ic-names { font-size: calc(8cqw * var(--fit, 1)); line-height: 1.9; }
.icard[lang="hi"] .ic-names { font-size: calc(8.4cqw * var(--fit, 1)); line-height: 1.35; font-weight: 400; }
.ic-amp { font-size: calc(5cqw * var(--fit, 1)); font-style: italic; color: var(--c-accent); font-weight: 500; }
.ic-parents { font-size: calc(3cqw * var(--fit, 1)); color: var(--c-soft); }
.ic-rule { display: block; width: 24%; height: 1px; background: var(--c-accent); margin: 1.6cqw 0; }
.ic-date { font-size: calc(4.4cqw * var(--fit, 1)); font-weight: 600; color: var(--c-ink); }
.ic-time, .ic-venue { font-size: calc(3.6cqw * var(--fit, 1)); }
.ic-venue { font-weight: 600; }
.ic-addr, .ic-rsvp, .ic-hosts { font-size: calc(3cqw * var(--fit, 1)); color: var(--c-soft); }
.ic-dua { font-size: calc(3.2cqw * var(--fit, 1)); color: var(--c-accent); margin-top: 1.4cqw !important; line-height: 1.7; }
.ic-sample { position: absolute; top: 3.2%; inset-inline-end: 3.2%; z-index: 2; background: var(--c-accent); color: var(--c-bg); font: 600 2.6cqw/1 "IBM Plex Sans", sans-serif; padding: 1.2cqw 2cqw; letter-spacing: .1em; text-transform: uppercase; }
.icard-mini .ic-ayah, .icard-mini .ic-ayah-tr { display: none; }
.icard.fmt-square .ic-ayah-tr, .icard.fmt-square .ic-parents, .icard.fmt-square .ic-hosts { display: none; }
.icard.fmt-square .ic-names { font-size: calc(8.4cqw * var(--fit, 1)); }
.icard.fmt-square .icard-inner { gap: calc(.6cqw * var(--fit, 1)); }
/* Designs */
.icard.tpl-emerald { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d9bf86' stroke-opacity='.10' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E"); background-size: 18cqw; }
.icard.tpl-ivory { --c-bg: #faf4e6; --c-ink: #2b2417; --c-accent: #a8812f; --c-soft: #6b5d43; }
.icard.tpl-ivory .icard-frame::after { content: ""; position: absolute; left: 22%; right: 22%; top: -1px; height: 9%; border: 1px solid var(--c-accent); border-top: 0; border-bottom-left-radius: 50% 100% !important; border-bottom-right-radius: 50% 100% !important; background: var(--c-bg); }
.icard.tpl-rose { --c-bg: #5a1f33; --c-ink: #fbe9e4; --c-accent: #f0b98d; --c-soft: rgba(251,233,228,.8); background-image: radial-gradient(circle at 50% 0, rgba(240,185,141,.18), transparent 60%); }
.icard.tpl-midnight { --c-bg: #101a33; --c-ink: #eef0f7; --c-accent: #d6b46a; --c-soft: rgba(238,240,247,.75);
  background-image: radial-gradient(1px 1px at 12% 18%, #d6b46a, transparent), radial-gradient(1px 1px at 82% 12%, #d6b46a, transparent), radial-gradient(1.5px 1.5px at 70% 86%, #d6b46a, transparent), radial-gradient(1px 1px at 22% 78%, #d6b46a, transparent), radial-gradient(1px 1px at 90% 52%, #d6b46a, transparent); }
.icard.tpl-minimal { --c-bg: #ffffff; --c-ink: #17221d; --c-accent: #0d3b2e; --c-soft: #5b6862; }
.icard.tpl-minimal .icard-frame { border-color: transparent; border-top: 3px solid var(--c-accent); border-bottom: 3px solid var(--c-accent); }
.icard.tpl-minimal .icard-frame::before { display: none; }
.icard.tpl-minimal .ic-names { font-weight: 500; }

.card-peek { max-width: 360px; justify-self: center; width: 100%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.format { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.format-card { background: var(--ivory); padding: 22px; border: 1px solid var(--rule); transition: border-color .15s; }
.format:hover .format-card { border-color: var(--gold); }
.format h2 { font-size: 1.5rem; margin: 8px 0 0; }
.format p { font-size: .92rem; color: var(--muted); margin: 0; }
.design-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.design { text-decoration: none; color: var(--ink); text-align: center; font-size: .88rem; font-weight: 600; }
.design span { display: block; margin-top: 10px; }
.sample-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 20px; }
.sample-row figure { margin: 0; }
.sample-row figcaption { margin-top: 10px; font-size: .88rem; text-align: center; }

/* Card maker */
.maker { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; padding-top: 32px; padding-bottom: 80px; align-items: start; }
.maker-preview { position: sticky; top: 92px; }
.maker-stage { background: var(--ivory) var(--pattern); padding: 28px; border: 1px solid var(--rule); }
.maker-stage .icard { box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); }
.maker-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.maker-actions .btn { flex: 1 1 auto; }
.maker-form h2 { font-size: 1.35rem; margin-top: 8px; }

/* =====================================================================
   Mobile app shell: bottom tab bar, sticky profile action
   ===================================================================== */
.tabbar { display: none; }
.m-cta { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--green-950); border-top: 1px solid rgba(217,191,134,.3); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 62px;
    color: rgba(255,255,255,.66); text-decoration: none; font-size: .68rem; font-weight: 500; }
  :root[lang="ur"] .tabbar a { font-size: .74rem; line-height: 1.2; }
  .tabbar a[aria-current] { color: var(--gold-light); }
  .tabbar a[aria-current]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--gold-light); }
  .tabbar .count { position: absolute; top: 7px; inset-inline-start: calc(50% + 6px); margin: 0; font-size: .62rem; padding: 1px 5px; min-width: 16px; }
  .m-cta { display: block; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 55;
    padding: 10px 16px; background: rgba(255,253,248,.96); border-top: 1px solid var(--rule); backdrop-filter: blur(6px); }
  .m-cta form { margin: 0; }
  body:has(.m-cta) { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .composer { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .is-standalone .site-head { padding-top: env(safe-area-inset-top); }

  /* Header: brand, language and menu only */
  .head-row { min-height: 60px; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .lang-switch { margin-inline-start: auto; gap: 12px; }
  .lang-switch a { font-size: .85rem; }
  .burger { margin-inline-start: 4px; }
  .main-nav .install-btn { color: var(--gold-light); text-align: start; padding: 14px 0; }

  /* Bigger touch targets */
  .btn { min-height: 46px; }
  .btn-sm { min-height: 38px; }
  input, select, textarea { font-size: 16px; }
  .filters summary { display: flex; justify-content: space-between; align-items: center; background: var(--green-800); color: #fff; border: 0; font-size: 1.1rem; }
  .filters summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); }
  .filters[open] summary::after { content: "\2212"; }
  .filters .count { margin: 0 10px; }
  .browse { padding-top: 20px; gap: 20px; }

  /* Pages */
  .topic-cols, .hub-cols, .maker { grid-template-columns: 1fr; gap: 28px; }
  .maker-preview { position: static; }
  .maker-stage { padding: 16px; }
  .format-grid, .sample-row { grid-template-columns: 1fr; gap: 28px; }
  .format-card { padding: 16px; }
  .design-row { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .design { scroll-snap-align: start; }
  .verse { padding: 26px 0 20px; }
  .ar { font-size: 1.6rem; }
  .verse-dua { padding: 20px 16px; }
  .verse-index { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; }
  .verse-index a { white-space: nowrap; }
  .card-peek { max-width: 300px; }
  .thread { padding-top: 0; }
  .thread-head { position: sticky; top: 60px; background: var(--paper); z-index: 5; padding: 10px 0; }
  .thread-head h1 { font-size: 1.4rem; }
  .msgs { padding-bottom: 90px; }
}
@media (min-width: 761px) {
  .thread-back { display: none; }
}

/* =====================================================================
   Print: card maker prints only the card
   ===================================================================== */
@media print {
  @page { size: 5in 7in; margin: 0; }
  body * { visibility: hidden !important; }
  .page-maker .maker-stage, .page-maker .maker-stage * { visibility: visible !important; }
  .page-maker .maker-stage { position: fixed; inset: 0; padding: 0; border: 0; background: none; }
  .page-maker .maker-stage .icard { max-width: none; width: 5in; height: 7in; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-maker .maker-stage .icard.fmt-square { height: 5in; }
  .site-head, .tabbar, .site-foot { display: none !important; }
}
