/* Nikah Portal styles — copied verbatim from the approved prototype.html */
:root {
  --ground: #F2F4F1;
  --surface: #FFFFFF;
  --surface-2: #F7F9F7;
  --ink: #0F221E;
  --muted: #5B6C66;
  --faint: #8C9A95;
  --line: #DDE4E0;
  --line-strong: #C9D3CE;
  --hero: #E4EDE8;
  --hero-2: #F6EFDF;
  --on-hero: #0F221E;
  --on-hero-muted: #53645E;
  --hero-accent: #93661C;
  --hero-glass: rgb(255 255 255 / .62);
  --hero-glass-line: rgb(15 34 30 / .09);
  --deep: #0B3D35;
  --deep-2: #10493F;
  --primary: #0B3D35;
  --primary-hover: #135246;
  --on-primary: #F6F4EC;
  --gold: #A97A2C;
  --gold-bright: #D8B26A;
  --gold-soft: #F5EBD7;
  --ok: #1C774A; --ok-soft: #E0F1E7;
  --bad: #B23A2F; --bad-soft: #FAE5E2;
  --wait: #87650C; --wait-soft: #F7EFD4;
  --shadow-sm: 0 1px 2px rgb(15 34 30 / .06);
  --shadow: 0 1px 2px rgb(15 34 30 / .05), 0 12px 32px -16px rgb(15 34 30 / .22);
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Geeza Pro", "Traditional Arabic", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #09120F; --surface: #111D1A; --surface-2: #0D1815; --ink: #E8EFEB; --muted: #9DAEA8; --faint: #6E807A;
    --line: #22332E; --line-strong: #2E433D; --hero: #0A2A24; --hero-2: #0E352D; --on-hero: #F1EFE6; --on-hero-muted: #9FB5AD;
    --hero-accent: #E6C788; --hero-glass: rgb(255 255 255 / .05); --hero-glass-line: rgb(255 255 255 / .1); --deep: #0E352D; --deep-2: #134238;
    --primary: #3FB394; --primary-hover: #56C4A6; --on-primary: #06140F;
    --gold: #D8B26A; --gold-bright: #E6C788; --gold-soft: #2A2415;
    --ok: #62D19C; --ok-soft: #13301F; --bad: #F08D81; --bad-soft: #391C18; --wait: #E3C35E; --wait-soft: #2F2812;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 16px 36px -18px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #09120F; --surface: #111D1A; --surface-2: #0D1815; --ink: #E8EFEB; --muted: #9DAEA8; --faint: #6E807A;
  --line: #22332E; --line-strong: #2E433D; --hero: #0A2A24; --hero-2: #0E352D; --on-hero: #F1EFE6; --on-hero-muted: #9FB5AD;
    --hero-accent: #E6C788; --hero-glass: rgb(255 255 255 / .05); --hero-glass-line: rgb(255 255 255 / .1); --deep: #0E352D; --deep-2: #134238;
  --primary: #3FB394; --primary-hover: #56C4A6; --on-primary: #06140F;
  --gold: #D8B26A; --gold-bright: #E6C788; --gold-soft: #2A2415;
  --ok: #62D19C; --ok-soft: #13301F; --bad: #F08D81; --bad-soft: #391C18; --wait: #E3C35E; --wait-soft: #2F2812;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 16px 36px -18px rgb(0 0 0 / .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground); color: var(--ink);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 480px) { .container { padding-inline: 16px; } }

/* ---------- Shared bits ---------- */
.pattern {
  background-color: var(--hero);
  background-image:
    radial-gradient(120% 90% at 85% 0%, var(--hero-2) 0%, transparent 60%),
    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='%23D8B26A' stroke-opacity='.13' stroke-width='1'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Cpath d='M0 28h4M52 28h4M28 0v4M28 52v4'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--on-hero);
}
.deep, .arch.selected {
  --hero: var(--deep); --hero-2: var(--deep-2);
  --on-hero: #F3F1E8; --on-hero-muted: #B4C6BF; --hero-accent: #D8B26A;
  --hero-glass: rgb(255 255 255 / .06); --hero-glass-line: rgb(255 255 255 / .14);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.brand svg { width: 26px; height: 26px; color: var(--hero-accent); }
.brand span { font-family: var(--display); font-size: 21px; }

.eyebrow { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.pattern .eyebrow { color: var(--hero-accent); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 10px 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.5;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending { color: var(--wait); background: var(--wait-soft); }
.pill.accepted { color: var(--ok); background: var(--ok-soft); }
.pill.rejected { color: var(--bad); background: var(--bad-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 20px;
  font-weight: 600; font-size: 14.5px; line-height: 1.2;
  background: var(--primary); color: var(--on-primary);
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.accept { background: var(--ok); color: var(--surface); }
.btn.accept:hover { filter: brightness(1.08); }
.btn.reject { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.reject:hover { background: var(--bad-soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--hero-accent); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero / groom profile ---------- */
.hero { position: relative; overflow: hidden; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.bismillah { font-family: var(--arabic); font-size: 20px; color: var(--hero-accent); opacity: .9; direction: rtl; }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end;
  padding-block: 36px 72px;
}
@media (max-width: 860px) { .hero-body { grid-template-columns: 1fr; gap: 28px; padding-block: 20px 56px; } }
.groom-name { font-size: clamp(40px, 6.4vw, 68px); line-height: 1; margin-top: 10px; font-weight: 500; }
.groom-line { margin-top: 14px; color: var(--on-hero-muted); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fact {
  border: 1px solid color-mix(in srgb, var(--hero-accent) 30%, transparent); background: var(--hero-glass);
  border-radius: 12px; padding: 10px 14px; min-width: 110px;
}
.fact dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-hero-muted); }
.fact dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.fact.age { border-color: var(--hero-accent); background: color-mix(in srgb, var(--hero-accent) 12%, transparent); }
.fact.age dd { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--hero-accent); font-weight: 600; }
.fact.age dd small { font-family: var(--body); font-size: 12px; color: var(--on-hero-muted); font-weight: 500; margin-left: 4px; }
.about {
  position: relative; border-radius: 18px; padding: 26px 26px 24px;
  background: var(--hero-glass); border: 1px solid var(--hero-glass-line);
  backdrop-filter: blur(2px);
}
.about .quote { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.4; font-weight: 500; }
.about .quote::before { content: "“"; display: block; font-size: 54px; line-height: .6; color: var(--hero-accent); margin-bottom: 8px; font-style: normal; }
.about .sig { margin-top: 14px; font-size: 13px; color: var(--on-hero-muted); }

/* ---------- Steps ---------- */
.step { padding-block: 56px 8px; }
.step-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.step-head .num { font-family: var(--display); font-size: 15px; color: var(--gold); font-weight: 600; letter-spacing: .06em; }
.step-head h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.1; margin-top: 4px; }
.step-head p { color: var(--muted); max-width: 46ch; font-size: 14.5px; }

/* ---------- Arches (vacancies) ---------- */
.arches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .arches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.arch {
  position: relative; isolation: isolate;
  min-height: 300px; border-radius: 999px 999px 22px 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 64px 16px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s, background .2s;
}
@media (max-width: 480px) { .arch { min-height: 250px; padding-top: 44px; } }
.arch::before {
  content: ""; position: absolute; inset: 9px; z-index: -1;
  border-radius: 999px 999px 15px 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  transition: border-color .2s;
}
.arch .ar { font-family: var(--arabic); font-size: 58px; line-height: 1; color: var(--gold); font-weight: 700; }
@media (max-width: 480px) { .arch .ar { font-size: 46px; } }
.arch .label { font-family: var(--display); font-size: 23px; font-weight: 600; margin-top: 6px; }
.arch .state { font-size: 13px; color: var(--muted); }
.arch .count {
  font-size: 12px; font-weight: 600; color: var(--gold); background: var(--gold-soft);
  padding: 3px 10px; border-radius: 999px; margin-top: 2px;
}
.arch .cta {
  margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.arch .cta svg { width: 15px; height: 15px; transition: transform .2s; }
button.arch:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
button.arch:hover::before { border-color: var(--gold); }
button.arch:hover .cta svg { transform: translateX(3px); }

.arch.selected { background: var(--hero); border-color: var(--hero); color: var(--on-hero); box-shadow: var(--shadow); transform: translateY(-4px); }
.arch.selected::before { border-color: var(--hero-accent); }
.arch.selected .ar { color: var(--hero-accent); }
.arch.selected .state { color: var(--on-hero-muted); }
.arch.selected .cta { color: var(--hero-accent); }
.arch.selected .count { background: rgb(216 178 106 / .16); color: var(--hero-accent); }

.arch.booked {
  cursor: not-allowed; border-style: solid; border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--gold) 7%, transparent) 10px 11px),
    var(--gold-soft);
}
.arch.booked::before { border-color: color-mix(in srgb, var(--gold) 55%, transparent); border-style: dashed; }
.arch.booked .ar { opacity: .45; }
.arch.booked .label { opacity: .7; }
.seal {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-4deg);
}
.seal svg { width: 16px; height: 16px; }

/* ---------- Form ---------- */
.apply-shell {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
}
@media (max-width: 860px) { .apply-shell { grid-template-columns: 1fr; } }
.apply-side { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.apply-side .mini-arch {
  width: 92px; height: 116px; border-radius: 999px 999px 12px 12px;
  border: 1.5px solid var(--hero-accent); display: grid; place-items: center;
  font-family: var(--arabic); font-size: 44px; color: var(--hero-accent); font-weight: 700;
  padding-top: 8px;
}
.apply-side h3 { font-size: 28px; line-height: 1.1; }
.apply-side .note { font-size: 13.5px; color: var(--on-hero-muted); display: grid; gap: 10px; }
.apply-side .note div { display: flex; gap: 10px; align-items: flex-start; }
.apply-side .note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--hero-accent); }
.apply-main { padding: 30px; }
@media (max-width: 480px) { .apply-side, .apply-main { padding: 22px 18px; } }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.full { grid-column: 1 / -1; }
.group-title {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--faint);
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-title:not(:first-child) { margin-top: 8px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--faint); }
.control {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
textarea.control { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.control {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238C9A95' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.control::placeholder { color: var(--faint); }
.control:hover { border-color: var(--faint); }
.control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.field.invalid .control { border-color: var(--bad); }
.field.invalid .control:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 16%, transparent); }
.hint { font-size: 12.5px; color: var(--faint); }
.err { font-size: 12.5px; color: var(--bad); font-weight: 500; }
.err:empty { display: none; }
/* ---------- Age picker ---------- */
.agepick { position: relative; }
.agepick-btn {
  display: flex; align-items: center; text-align: left; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238C9A95' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.agepick-btn[aria-expanded="true"] { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.agepick-val.is-empty { color: var(--faint); }
.agepick-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px;
}
.agepick-cap { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--faint); padding: 0 2px 10px; }
.agepick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; max-height: 232px; overflow-y: auto; }
.agepick-opt {
  height: 54px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  transition: border-color .12s, background .12s, transform .12s;
}
.agepick-opt small { font-family: var(--body); font-size: 10.5px; font-weight: 500; color: var(--faint); letter-spacing: .02em; }
.agepick-opt:hover, .agepick-opt:focus-visible { border-color: var(--gold); transform: translateY(-1px); outline: none; }
.agepick-opt[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.agepick-opt[aria-selected="true"] small { color: inherit; opacity: .75; }
@media (prefers-reduced-motion: no-preference) {
  .agepick-panel:not([hidden]) { animation: agepickIn .14s ease-out; }
  @keyframes agepickIn { from { opacity: 0; transform: translateY(-4px); } }
}
.field.is-locked > .label { color: var(--faint); }
.locked {
  height: 46px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--faint) 12%, transparent) 6px 7px),
    var(--surface-2);
  color: var(--faint); font-weight: 500; cursor: not-allowed; user-select: none;
}
.locked .val { flex: 1; }
.locked > svg { width: 15px; height: 15px; flex: none; }
.locked span.tag {
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px;
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-foot p { font-size: 12.5px; color: var(--faint); max-width: 44ch; }

.placeholder {
  border: 1.5px dashed var(--line-strong); border-radius: 22px; padding: 44px 24px;
  text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 10px;
}
.placeholder svg { width: 28px; height: 28px; color: var(--gold); }
.placeholder strong { font-family: var(--display); font-size: 22px; color: var(--ink); font-weight: 600; }

.success { padding: 48px 28px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.success .tick {
  width: 76px; height: 92px; border-radius: 999px 999px 12px 12px; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); border: 1.5px solid var(--ok); padding-top: 8px;
}
.success .tick svg { width: 32px; height: 32px; }
.success h3 { font-size: 32px; }
.success p { color: var(--muted); max-width: 48ch; }
.closed { padding: 20px; border-radius: 14px; background: var(--wait-soft); color: var(--wait); font-weight: 500; }

.site-foot { margin-top: 64px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Admin ---------- */
.admin-band { padding-block: 20px 88px; }
.admin-band .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-band h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 500; margin-top: 30px; }
.admin-band .sub { color: var(--on-hero-muted); margin-top: 6px; }
a.btn { text-decoration: none; }
.btn.on-hero { background: var(--hero-glass); color: var(--on-hero); border-color: var(--hero-glass-line); }
.btn.on-hero:hover { border-color: var(--on-hero-muted); }
.head-actions { display: flex; align-items: center; gap: 12px; }
.theme-btn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--hero-glass); color: var(--on-hero); border: 1px solid var(--hero-glass-line);
  transition: border-color .15s, transform .2s;
}
.theme-btn:hover { border-color: var(--hero-accent); }
.theme-btn:active { transform: rotate(-20deg); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .bismillah { font-size: 16px; } }
.admin-body { margin-top: -56px; position: relative; }

.login-card { max-width: 400px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 28px; }
.login-card p { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.login-card .btn { width: 100%; margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .v { font-family: var(--display); font-size: 38px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 20px; color: var(--faint); }
.stat.attn .v { color: var(--wait); }

.overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 900px) { .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ov {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s;
}
.ov:hover { border-color: var(--line-strong); }
.ov[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.ov .ar { grid-row: span 2; font-family: var(--arabic); font-weight: 700; font-size: 30px; color: var(--gold); width: 40px; height: 48px; display: grid; place-items: center; border-radius: 999px 999px 6px 6px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); padding-top: 4px; }
.ov .t { font-weight: 600; font-size: 14px; }
.ov .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov.is-booked { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.ov.is-booked .s { color: var(--gold); font-weight: 600; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 34px; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tabs .badge { font-size: 11px; background: var(--wait-soft); color: var(--wait); padding: 1px 7px; border-radius: 999px; }
.tabs button[aria-selected="true"] .badge { background: rgb(255 255 255 / .18); color: inherit; }

.panel { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar .title { font-weight: 600; }
.toolbar .title span { color: var(--faint); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }

.apps { list-style: none; margin: 0; padding: 0; }
.app {
  display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1.3fr) 110px 100px auto;
  gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.app:last-child { border-bottom: 0; }
.app.is-accepted { background: color-mix(in srgb, var(--ok-soft) 55%, transparent); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--gold-soft); color: var(--gold); }
.app .name { font-weight: 600; }
.app .meta { font-size: 12.5px; color: var(--muted); }
.app .msg { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 4px; }
.app .vac { font-size: 13px; font-weight: 500; }
.phone { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.copy { border: 0; background: none; padding: 2px; color: var(--faint); border-radius: 4px; }
.copy:hover { color: var(--ink); }
.copy svg { width: 14px; height: 14px; display: block; }
.acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 860px) {
  .app { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 14px; }
  .app > :nth-child(n+3) { grid-column: 2; }
  .acts { justify-content: flex-start; }
}
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }

.profile-form { padding: 26px; }
.range-note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.range-note svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 2px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--ground); padding: 11px 12px 11px 16px; border-radius: 12px;
  font-size: 14px; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
.toast button { background: none; border: 0; color: var(--gold-soft); font-weight: 600; padding: 2px 6px; }

@media (prefers-reduced-motion: no-preference) {
  .fade-in { animation: fadeIn .35s ease both; }
  @keyframes fadeIn { from { opacity: .001; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
