/* =====================================================================
   FASEEH · web app · styles communs
   Valeurs reprises des maquettes (Figma « WEB APP », V2). Deux thèmes :
   clair (dessiné) et sombre (dérivé du panneau de marque, à valider).
   Propriétés logiques partout : la page se retourne en arabe sans règle
   « droite/gauche » codée en dur.
   ===================================================================== */
:root {
  --page: #f5f4f1;          /* fond des pages connectées */
  --page-auth: #fbfaf8;     /* fond des pages d'entrée */
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --border: #e9e6e0;
  --border-strong: #d8d4cc;
  --track: #e7e3dc;
  --ink: #2b2e35;
  --ink-2: #4b4e56;
  --muted: #7d8087;
  --placeholder: rgba(125, 128, 135, .85);
  --gold: #c38f3f;
  --gold-text: #9a6f2c;
  --gold-tint: #f7f0e4;
  --gold-ring: rgba(195, 143, 63, .2);
  --green: #2f9e44;
  --red: #d14343;
  --red-tint: #fdf1f0;
  --red-border: #f1cdc8;
  --amber-tint: #fbf3e4;
  --amber-text: #b7791f;
  --avatar: #e9e2d6;
  --brand: #1e1e1e;
  --shadow-card: 0 8px 24px -6px rgba(0, 0, 0, .04);
  --shadow-field: 0 1px 2px rgba(0, 0, 0, .03);
  --shadow-menu: 0 12px 32px -8px rgba(0, 0, 0, .18);
  --ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui-ar: "Noto Sans Arabic", Inter, system-ui, sans-serif;
  --quran: "Amiri Quran", "Amiri", serif;
}
:root[data-theme="dark"] {
  --page: #141414;
  --page-auth: #121212;
  --surface: #1e1e1e;
  --surface-2: #272727;
  --border: #2f2f2f;
  --border-strong: #3b3b3b;
  --track: #333333;
  --ink: #f3efe5;
  --ink-2: #d9d5cc;
  --muted: #a39e93;
  --placeholder: rgba(163, 158, 147, .8);
  --gold-tint: rgba(195, 143, 63, .16);
  --red-tint: #3a1f1c;
  --red-border: #5a2c27;
  --amber-tint: #3a2e18;
  --amber-text: #e0a94a;
  --avatar: #3a342a;
  --shadow-card: 0 8px 24px -6px rgba(0, 0, 0, .4);
  --shadow-field: none;
  --shadow-menu: 0 12px 32px -8px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--ui-ar); line-height: 1.6; }
html[lang="ar"] .quran, .quran { font-family: var(--quran); }
/* Les e-mails, adresses et mots de passe restent de gauche à droite en arabe. */
input[type="email"], input[type="password"], .ltr { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] input[type="email"], html[lang="ar"] input[type="password"] { text-align: start; }
a { color: var(--gold-text); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 10px 18px; border-radius: 12px;
  font: 500 16px/20px var(--ui); white-space: nowrap; transition: background .15s, border-color .15s;
}
html[lang="ar"] .btn { font-family: var(--ui-ar); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 1px rgba(43, 46, 54, .12); }
.btn-primary:hover { background: #3a3d45; }
:root[data-theme="dark"] .btn-primary { background: #f3efe5; color: #1e1e1e; }
:root[data-theme="dark"] .btn-primary .ico { filter: invert(1); }
:root[data-theme="dark"] .btn-primary:hover { background: #ffffff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-compact { min-height: 36px; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn .ico { width: 16px; height: 16px; flex: none; }
html[lang="ar"] .btn .ico.flip { transform: scaleX(-1); }

/* ----------------------------------------------------------------- champs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field-label .optional { font-weight: 400; color: var(--muted); font-size: 13px; margin-inline-start: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  box-shadow: var(--shadow-field); font: 400 15px var(--ui); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
html[lang="ar"] .input, html[lang="ar"] .select, html[lang="ar"] .textarea { font-family: var(--ui-ar); }
.textarea { min-height: 96px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-ring); }
.field.error .input, .field.error .select { border-color: var(--red); box-shadow: none; }
.helper { font-size: 13px; color: var(--muted); }
.helper.error { color: var(--red); }
.input-wrap { position: relative; }
.input-wrap .input { padding-inline-end: 44px; }
.input-eye {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 44px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 10px;
}
.input-eye img { width: 18px; height: 18px; display: block; }
.input-eye[aria-pressed="true"] img { opacity: .5; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("/static/img/chevron-bas.svg");
  background-repeat: no-repeat; background-size: 14px; background-position: right 12px center;
  padding-inline-end: 38px;
}
html[dir="rtl"] .select { background-position: left 12px center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

/* puces à choix unique */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink-2); line-height: 1.25; transition: all .12s;
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] {
  background: var(--gold-tint); border: 1.5px solid var(--gold); color: var(--ink); font-weight: 600;
  padding: 8.5px 13.5px;
}

/* case à cocher */
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.check .box img { width: 12px; height: 12px; display: none; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box img { display: block; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px var(--gold-ring); }
:root[data-theme="dark"] .check input:checked + .box { background: #f3efe5; border-color: #f3efe5; }
:root[data-theme="dark"] .check input:checked + .box img { filter: invert(1); }

/* bandeau d'erreur */
.banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; color: var(--ink);
}
.banner-error { background: var(--red-tint); border: 1px solid var(--red-border); }
.banner-error::before {
  content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--red);
  color: var(--red); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* zone de dépôt (certificat) */
.upload {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px;
  border: 1px dashed var(--border-strong); background: var(--surface); cursor: pointer; text-align: start;
}
.upload:hover { border-color: var(--gold); }
.upload .ico-box {
  width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.upload .ico-box img { width: 18px; height: 18px; }
.upload .text { flex: 1; min-width: 0; }
.upload .title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload .sub { display: block; font-size: 12px; color: var(--muted); }
.upload .action { font-size: 13px; font-weight: 600; color: var(--gold-text); }
.upload .remove { font-size: 13px; font-weight: 600; color: var(--red); }

/* -------------------------------------------------- sélecteur de langue */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.lang-btn img { width: 16px; height: 16px; }
.lang-btn img.chev { width: 12px; height: 12px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow-menu);
}
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 14px 12px; border-radius: 12px; text-align: start;
}
.lang-opt:hover { background: var(--surface-2); }
.lang-opt[aria-selected="true"] { background: var(--surface-2); }
.lang-opt .name { font-size: 15px; font-weight: 500; color: var(--ink); display: block; }
.lang-opt .dir { font-size: 12px; color: var(--muted); display: block; }
.lang-opt img { width: 14px; height: 14px; display: none; }
.lang-opt[aria-selected="true"] img { display: block; }

/* ------------------------------------------------------ bascule du thème */
.theme {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.theme button {
  width: 30px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}
.theme button img { width: 16px; height: 16px; opacity: .55; }
.theme button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.theme button[aria-pressed="true"] img { opacity: 1; }
:root[data-theme="dark"] .theme img, :root[data-theme="dark"] .lang-btn img, :root[data-theme="dark"] .lang-opt img,
:root[data-theme="dark"] .input-eye img, :root[data-theme="dark"] .topbar .ico,
:root[data-theme="dark"] .upload .ico-box img, :root[data-theme="dark"] .back img { filter: invert(.9); }
:root[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%23d9d5cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------- barre haute */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar .grow { flex: 1; }
.logo { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.logo img { width: 28px; height: 28px; }
.logo span { font-size: 18px; font-weight: 600; letter-spacing: -.18px; color: var(--ink); font-family: var(--ui); }
.logo span b { color: var(--gold); font-weight: 600; }
.logo.on-dark span { color: #fff; }
.account { display: inline-flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--avatar); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.account .name { font-size: 14px; font-weight: 500; color: var(--ink); }
.topbar .ico { width: 14px; height: 14px; }
@media (max-width: 640px) { .topbar { padding: 0 16px; gap: 10px; } .account .name { display: none; } }

/* -------------------------------------------------------- pages connectées */
.page-center { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.card {
  width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 36px 32px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 20px;
}
.card.center { align-items: center; text-align: center; }
.card > .status-pill { align-self: flex-start; }
.card h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.39px; line-height: 1.25; }
.card .lead { margin: 0; color: var(--muted); font-size: 15px; }
.card .stack { display: flex; flex-direction: column; gap: 8px; width: 100%; }
@media (max-width: 480px) { .card { padding: 28px 20px 24px; } }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--amber-tint); color: var(--amber-text); font-size: 12px; font-weight: 600;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.declined { background: var(--red-tint); color: var(--red); }

.timeline { display: flex; flex-direction: column; width: 100%; }
.tl { display: flex; gap: 14px; align-items: flex-start; }
.tl .rail { display: flex; flex-direction: column; align-items: center; }
.tl .node {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.tl .node img { width: 12px; height: 12px; }
.tl.done .node { background: var(--green); border-color: var(--green); }
.tl.done .node img { filter: brightness(0) invert(1); }
.tl.current .node { border-color: var(--gold); background: var(--gold-tint); }
.tl.current .node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tl.declined .node { border-color: var(--red); background: var(--red-tint); }
.tl.declined .node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tl .line { width: 2px; height: 26px; background: var(--track); }
.tl.done .line { background: var(--green); }
.tl .text { padding-top: 2px; }
.tl .title { font-size: 14px; font-weight: 600; color: var(--ink); }
.tl .sub { font-size: 13px; color: var(--muted); }
.tl.todo .title { color: var(--muted); }

.big-check {
  width: 60px; height: 60px; border-radius: 50%; background: var(--gold-tint); border: 1px solid rgba(195, 143, 63, .4);
  display: flex; align-items: center; justify-content: center;
}
.big-check img { width: 28px; height: 28px; }
.expect { display: flex; gap: 10px; width: 100%; }
.expect div {
  flex: 1; background: var(--surface-2); border-radius: 12px; padding: 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.expect img { width: 18px; height: 18px; }
:root[data-theme="dark"] .expect img, :root[data-theme="dark"] .big-check img, :root[data-theme="dark"] .tl .node > img { filter: invert(.9); }
:root[data-theme="dark"] .tl.done .node img { filter: brightness(0) invert(1); }
@media (max-width: 480px) { .expect { flex-direction: column; } }

/* ------------------------------------------------- présentation (O07) */
.intro { max-width: 1180px; margin: 0 auto; padding: 72px 24px 48px; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.intro .kicker { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--gold-text); text-transform: uppercase; }
html[lang="ar"] .intro .kicker { letter-spacing: 0; text-transform: none; }
.intro h1 { margin: 10px 0; font-size: 36px; font-weight: 600; letter-spacing: -.54px; }
.intro .lead { margin: 0; color: var(--muted); font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 272px); gap: 20px; }
@media (max-width: 1200px) { .steps { grid-template-columns: repeat(2, 272px); } }
@media (max-width: 620px) { .steps { grid-template-columns: minmax(0, 320px); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 20px 22px; text-align: start; display: flex; flex-direction: column; gap: 16px; }
.step .visual { height: 132px; border-radius: 14px; background: var(--surface-2); position: relative; overflow: hidden; direction: ltr; }
.step .title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.step .index { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-text); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.step p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.v-play { position: absolute; left: 20px; top: 46px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); }
.v-play::after { content: ""; position: absolute; left: 16px; top: 13px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.v-bars { position: absolute; left: 76px; top: 52px; height: 28px; display: flex; align-items: center; gap: 4px; }
.v-bars i { display: block; width: 3px; border-radius: 1.5px; background: #cfcac1; }
.v-bars i.on { background: var(--gold); }
.v-speed { position: absolute; left: 168px; top: 98px; background: var(--surface); border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 600; }
.v-syl { position: absolute; top: 18px; width: 46px; height: 50px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font: 26px/50px var(--quran); text-align: center; color: var(--ink); }
.v-syl.sel { background: var(--gold-tint); border: 2px solid var(--gold); }
.v-err { position: absolute; left: 12px; top: 80px; width: 208px; background: var(--surface); border: 1px solid rgba(195, 143, 63, .55); border-radius: 12px; padding: 10px 12px 10px 10px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.v-err .k { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.v-mic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; border: 1.5px solid rgba(195, 143, 63, .45); display: flex; align-items: center; justify-content: center; }
.v-mic::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgba(195, 143, 63, .7); }
.v-mic .core { width: 62px; height: 62px; border-radius: 50%; background: var(--surface); box-shadow: 0 6px 14px rgba(0, 0, 0, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.v-mic .stop { width: 18px; height: 18px; border-radius: 3px; background: var(--ink); }
.v-mic .t { font-size: 9px; font-weight: 500; color: var(--ink); }
.v-review { position: absolute; left: 16px; top: 14px; width: 200px; background: var(--surface); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.v-review .row { display: flex; align-items: center; gap: 8px; }
.v-review .b { width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.v-review .l { flex: 1; height: 6px; border-radius: 3px; background: var(--track); }
.v-review .c { width: 12px; height: 12px; }
.v-review .s { height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
:root[data-theme="dark"] .v-review .s, :root[data-theme="dark"] .v-play { background: #f3efe5; color: #1e1e1e; }
:root[data-theme="dark"] .v-play::after { border-left-color: #1e1e1e; }
:root[data-theme="dark"] .v-mic .stop { background: #f3efe5; }
.intro .note { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- pages d'entrée */
body.auth { background: var(--page-auth); }
.auth-layout { display: flex; min-height: 100vh; }
.brand {
  flex: none; width: 640px; margin: 16px; border-radius: 24px; background: var(--brand); color: #fff;
  position: relative; overflow: hidden; padding: 44px 48px; display: flex; flex-direction: column;
  min-height: calc(100vh - 32px);
}
.brand .calli {
  position: absolute; pointer-events: none; left: -9.38%; top: 12.93%; width: 228.4%; height: 58.4%;
}
.brand .calli img { width: 100%; height: 100%; display: block; }
html[dir="rtl"] .brand .calli { left: auto; right: -9.38%; transform: scaleX(-1); }
.brand .statement { position: relative; margin: auto 0; padding-top: 120px; max-width: 500px; display: flex; flex-direction: column; gap: 18px; }
.brand h2 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 500; letter-spacing: -.6px; color: #fff; }
html[lang="ar"] .brand h2 { font-weight: 600; line-height: 1.3; }
.brand .sub { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .62); max-width: 460px; }
.brand .foot { position: relative; display: flex; gap: 16px; font-size: 13px; color: rgba(255, 255, 255, .45); }
.motif {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px;
  padding: 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.motif .words { display: flex; gap: 10px; align-items: flex-end; direction: rtl; font: 30px/52px var(--quran); color: rgba(255, 255, 255, .85); }
.motif .words .w { padding: 0 6px; height: 52px; }
.motif .words .sel { background: rgba(195, 143, 63, .16); border: 1.5px solid var(--gold); border-radius: 12px; padding: 0 16px; color: #fff; }
.motif .wave { display: flex; align-items: center; gap: 3px; height: 30px; direction: ltr; }
.motif .wave i { display: block; width: 3px; border-radius: 1.5px; background: rgba(255, 255, 255, .25); }
.motif .wave i.on { background: var(--gold); }
.motif .cap { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.how { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.how div { display: flex; align-items: center; gap: 14px; }
.how .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .9); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.how .t { font-size: 15px; font-weight: 600; color: #fff; }
.how .d { font-size: 13px; color: rgba(255, 255, 255, .55); }

.auth-main { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 96px 24px 48px; }
.auth-controls { position: absolute; top: 32px; inset-inline-end: 32px; display: flex; gap: 12px; align-items: center; }
#vue { width: 100%; display: flex; justify-content: center; }
.form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.form.wide { max-width: 420px; gap: 22px; }
.form > form { display: flex; flex-direction: column; gap: 24px; }
.form.wide > form { gap: 22px; }
.form h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.45px; line-height: 1.2; }
.form.wide h1 { font-size: 28px; }
.form .lead { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.form .fields { display: flex; flex-direction: column; gap: 18px; }
.form .between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form .switch { text-align: center; font-size: 14px; color: var(--muted); }
.form .actions { display: flex; gap: 12px; }
.form .actions .btn-primary { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.back img { width: 16px; height: 16px; }
html[dir="rtl"] .back img { transform: scaleX(-1); }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-tint); border: 1px solid rgba(195, 143, 63, .4); display: flex; align-items: center; justify-content: center; }
.icon-tile img { width: 22px; height: 22px; }
:root[data-theme="dark"] .icon-tile img { filter: invert(.9); }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress .bars { display: flex; gap: 6px; }
.progress .bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--track); }
.progress .bars i.on { background: var(--gold); }
.progress .labels { display: flex; justify-content: space-between; font-size: 13px; }
.progress .labels b { font-weight: 600; color: var(--ink-2); }
.progress .labels span { font-size: 12px; color: var(--muted); }
.next-steps { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.next-steps .h { font-size: 13px; font-weight: 600; color: var(--ink); }
.next-steps div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.next-steps .n { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.resend { text-align: center; font-size: 13px; color: var(--muted); }
.resend b { color: var(--ink-2); }
.resend button { color: var(--gold-text); font-weight: 600; }

@media (max-width: 1100px) { .brand { width: 480px; } .brand h2 { font-size: 32px; line-height: 40px; } }
@media (max-width: 900px) {
  .auth-layout { flex-direction: column; }
  .brand { width: auto; min-height: 0; margin: 12px; padding: 20px 24px; }
  .brand .statement, .brand .foot, .brand .calli { display: none; }
  .auth-main { padding: 72px 20px 40px; align-items: flex-start; }
  .auth-controls { top: 28px; inset-inline-end: 28px; }
}

/* ------------------------------------------------------- administration */
.admin { max-width: 1100px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.admin h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.3px; }
.admin .lead { margin: 0; color: var(--muted); }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); letter-spacing: .2px; }
tr:last-child td { border-bottom: 0; }
td .small { font-size: 12px; color: var(--muted); }
td .btn + .btn { margin-inline-start: 6px; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.pill.pending { background: var(--amber-tint); color: var(--amber-text); }
.pill.active { background: #e7f4ea; color: var(--green); }
.pill.declined, .pill.blocked { background: var(--red-tint); color: var(--red); }
.pill.draft { background: var(--surface-2); color: var(--muted); }
:root[data-theme="dark"] .pill.active { background: #1f3a27; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; padding: 14px 16px 16px; background: var(--surface-2); font-size: 13px; }
.details .k { color: var(--muted); display: block; font-size: 12px; }
.details .v { color: var(--ink); font-weight: 500; }
.details .full { grid-column: 1 / -1; }
.row-toggle { color: var(--gold-text); font-weight: 600; font-size: 13px; }
.select.small { min-height: 34px; font-size: 13px; width: auto; padding-inline-end: 32px; }
@media (max-width: 760px) { th:nth-child(3), td:nth-child(3) { display: none; } }
