/* BasKal Academy — v1 styles. Mobile-first, RTL/LTR via logical properties.
   Brand: navy #052D4F, gold #B27F2B, white backgrounds.
   Font: Cairo (SIL OFL, self-hosted) as an open stand-in for 29LT Bukra. */

@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cairo-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/cairo-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cairo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/cairo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --navy: #052D4F;
  --navy-800: #0A3B66;
  --gold: #B27F2B;
  --gold-text: #8A621D;   /* gold dark enough for small text on white (>= 5:1) */
  --ink: #1A2836;
  --muted: #4A5A6A;
  --line: #E1E7ED;
  --tint: #F5F7FA;
  --white: #fff;
  --ok: #17703F;      --ok-bg: #EAF6EF;
  --bad: #A8231C;     --bad-bg: #FBECEA;
  --warn: #8A5200;    --warn-bg: #FFF4E0;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(5,45,79,.06), 0 8px 24px rgba(5,45,79,.07);
  --header-h: 72px;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.85; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; }
html[lang="en"] body { line-height: 1.7; font-size: 1.03rem; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 6.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
bdi, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; display: inline-block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; background: var(--navy); color: #fff; padding: .6em 1em; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 10px; }
mark.todo { background: #FFF1B8; color: #5B4300; padding: 0 .3em; border-radius: 6px; border: 1px dashed #B58900; font-weight: 600; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 56px; }
.section--tint { background: var(--tint); }
.section h2 { position: relative; padding-bottom: .55em; margin-bottom: .9em; }
.section h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); }
.lead { font-size: 1.12em; color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .55em 1.4em; border-radius: var(--radius-sm); border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: #fff; color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #F0F4F8; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #8C1C16; }
.btn-sm { min-height: 40px; padding: .3em .95em; font-size: .92rem; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; margin-inline-end: auto; }
.brand img { height: 62px; width: auto; display: block; margin-block: 2px; }
.menu-btn, .lang-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-width: 46px; min-height: 46px; padding: 0 .9em; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.menu-btn:hover, .lang-btn:hover { border-color: var(--navy); }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--navy); content: ""; position: relative; }
.menu-btn .bars::before { position: absolute; top: -6.5px; }
.menu-btn .bars::after { position: absolute; top: 6.5px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.lang-btn svg { width: 18px; height: 18px; }
.site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(5,45,79,.08); padding: 10px 20px 20px; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: .7em .2em; text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.site-nav li a:hover { color: var(--gold-text); }
.nav-actions { display: grid; gap: 10px; margin-top: 16px; }
.header-demo { background: #FFF4E0; color: #6B4300; font-size: .88rem; text-align: center; padding: .35em 1em; border-bottom: 1px solid #F0D9A8; line-height: 1.5; }
@media (min-width: 980px) {
  :root { --header-h: 84px; }
  .menu-btn { display: none; }
  .brand img { height: 70px; }
  .site-nav { display: flex; position: static; align-items: center; gap: 4px; background: transparent; border: 0; box-shadow: none; padding: 0; flex: 1; justify-content: flex-end; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li a { border: 0; padding: .45em .7em; border-radius: 10px; font-size: .95rem; }
  .site-nav li a:hover { background: var(--tint); }
  .nav-actions { display: flex; margin: 0; margin-inline-start: 10px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 48px 40px; background: #fff; }
.hero::before { content: ""; position: absolute; inset-inline-end: -90px; top: -30px; width: 380px; height: 380px; background: url("/assets/mark.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.hero .wrap { position: relative; }
.hero-bar { display: block; width: 64px; height: 5px; border-radius: 5px; background: var(--gold); margin-bottom: 20px; }
.hero h1 { max-width: 18ch; }
html[lang="en"] .hero h1 { max-width: 20ch; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin-bottom: 1.6em; }
.cta-row { display: grid; gap: 12px; }
.pattern { height: 96px; background: url("/assets/pattern-cap.png") repeat-x center / auto 96px; opacity: .55; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); margin-top: 8px; }
@media (min-width: 640px) { .cta-row { display: flex; flex-wrap: wrap; } .hero { padding-block: 72px 56px; } .hero::before { width: 520px; height: 520px; inset-inline-end: -40px; } }
@media (min-width: 980px) { .hero::before { width: 620px; height: 620px; inset-inline-end: 0; top: -60px; opacity: .08; } }

/* ---------- services ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: #FBF4E6; display: grid; place-items: center; margin-bottom: 14px; color: var(--gold-text); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); flex: 1; font-size: .98rem; line-height: 1.75; }
.note { color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; padding-inline-start: 72px; min-height: 76px; display: flex; align-items: center; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { align-items: flex-start; padding: 70px 20px 22px; } .steps li::before { top: 20px; inset-inline-start: 20px; transform: none; } }

/* ---------- founder ---------- */
.founder { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-inline-start: 6px solid var(--gold); max-width: 820px; }
.founder h3 { font-size: 1.3rem; margin: 0; }

/* ---------- verification CTA band ---------- */
.band { background: var(--navy); color: #fff; }
.band h2 { color: #fff; }
.band h2::after { background: var(--gold); }
.band p { color: #D6E1EC; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; padding-inline-end: 54px; font-weight: 700; color: var(--navy); position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 20px; top: 50%; width: 10px; height: 10px; border-inline-end: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details[open] { border-color: var(--gold); }
.faq .answer { padding: 0 18px 16px; color: var(--muted); }

/* ---------- contact ---------- */
.contact-box { display: grid; gap: 14px; max-width: 560px; }
.contact-hours { display: flex; align-items: center; gap: .6em; color: var(--muted); margin-top: 6px; }
.contact-hours svg { width: 20px; height: 20px; flex: none; color: var(--gold-text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding-block: 32px; }
.footer-row { display: grid; gap: 18px; align-items: center; }
.footer-row img { height: 56px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; padding: .4em 0; display: inline-block; font-weight: 600; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.copy { color: var(--muted); font-size: .92rem; margin: 0; }
@media (min-width: 800px) { .footer-row { grid-template-columns: auto 1fr auto; gap: 28px; } }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 640px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 700; color: var(--navy); font-size: .98rem; }
.input, select.input, textarea.input { width: 100%; min-height: 52px; padding: .6em .9em; border-radius: var(--radius-sm); border: 1.5px solid #B9C4CF; background: #fff; font: inherit; color: var(--ink); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--navy); outline: 3px solid rgba(178,127,43,.45); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--bad); background: #FFF9F8; }
.input.code { direction: ltr; text-align: start; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .input.code { text-align: right; }
.field-error { color: var(--bad); font-size: .92rem; font-weight: 600; margin: 0; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
.input-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .input-row.inline { grid-template-columns: 1fr auto; } }

/* ---------- verify page ---------- */
.page-title { padding-block: 40px 8px; }
.page-title p { color: var(--muted); max-width: 62ch; }
.result { margin-top: 24px; max-width: 640px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.result-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.result-head .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.result-head .ico svg { width: 24px; height: 24px; }
.result-head h2 { margin: 0 0 2px; font-size: 1.3rem; }
.result-head h2::after { display: none; }
.result-head p { margin: 0; font-size: .98rem; }
.result--valid .result-head { background: var(--ok-bg); } .result--valid .ico { background: var(--ok); } .result--valid h2 { color: var(--ok); }
.result--revoked .result-head { background: var(--bad-bg); } .result--revoked .ico { background: var(--bad); } .result--revoked h2 { color: var(--bad); }
.result--expired .result-head { background: var(--warn-bg); } .result--expired .ico { background: var(--warn); } .result--expired h2 { color: var(--warn); }
.result dl { margin: 0; padding: 6px 20px 14px; display: grid; }
.result dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.result dl > div:last-child { border-bottom: 0; }
.result dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.result dd { margin: 0; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
@media (min-width: 560px) { .result dl > div { grid-template-columns: 11rem 1fr; align-items: baseline; gap: 12px; } }
.badge { display: inline-flex; align-items: center; padding: .1em .8em; border-radius: 999px; font-size: .92rem; font-weight: 800; }
.badge--valid { background: var(--ok-bg); color: var(--ok); } .badge--revoked { background: var(--bad-bg); color: var(--bad); } .badge--expired { background: var(--warn-bg); color: var(--warn); }
.result-foot { padding: 14px 20px 18px; background: var(--tint); font-size: .94rem; color: var(--muted); border-top: 1px solid var(--line); }
.result-foot p { margin: 0 0 .5em; } .result-foot p:last-child { margin: 0; }
.msg { margin-top: 18px; max-width: 640px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; display: flex; gap: 12px; align-items: flex-start; line-height: 1.7; }
.msg svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.msg--info { background: #EEF4FA; border-color: #BCD0E4; color: var(--navy); }
.msg--warn { background: var(--warn-bg); border-color: #E8C98B; color: #5E3A00; }
.msg--error { background: var(--bad-bg); border-color: #E7B1AD; color: #7D1913; }
.msg--ok { background: var(--ok-bg); border-color: #A7D4BA; color: #0F5A31; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #BCD0E4; border-top-color: var(--navy); animation: spin .8s linear infinite; flex: none; margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; padding-block: 24px 56px; }
.legal ol { padding-inline-start: 1.4em; display: grid; gap: .8em; }
.legal li::marker { color: var(--gold-text); font-weight: 800; }
.draft-banner { background: #FFF8E0; border: 1px solid #E8D28A; border-radius: var(--radius-sm); padding: 14px 16px; margin-block: 8px 24px; color: #5B4300; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 72px; }
.notfound .num { font-size: clamp(4rem, 18vw, 7rem); font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 12px; font-family: var(--font); }
.notfound .cta-row { justify-content: center; }
.notfound p { color: var(--muted); }

/* ---------- admin ---------- */
.admin-wrap { padding-block: 28px 64px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.admin-bar .grow { flex: 1 1 260px; min-width: 0; }
.toolbar { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .toolbar { grid-template-columns: 1fr 190px auto; } }
.records { display: grid; gap: 12px; }
.rec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.rec.is-revoked { border-inline-start: 5px solid var(--bad); }
.rec.is-expired { border-inline-start: 5px solid var(--warn); }
.rec.is-valid { border-inline-start: 5px solid var(--ok); }
.rec-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; }
.rec .no { font-weight: 800; color: var(--navy); direction: ltr; unicode-bidi: isolate; letter-spacing: .03em; }
.rec .meta { color: var(--muted); font-size: .95rem; }
.rec .internal { font-size: .9rem; background: var(--tint); border: 1px dashed #B9C4CF; border-radius: 10px; padding: 8px 12px; color: var(--muted); }
.rec .internal b { color: var(--navy); }
.rec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 24px 64px rgba(5,45,79,.35); color: var(--ink); }
dialog::backdrop { background: rgba(5,45,79,.55); }
.dlg { padding: 22px; display: grid; gap: 4px; max-height: calc(100dvh - 24px); overflow: auto; }
.dlg h2 { font-size: 1.35rem; padding: 0; margin-bottom: .6em; } .dlg h2::after { display: none; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.qr-preview { display: grid; place-items: center; padding: 8px; }
.qr-preview img { width: min(280px, 100%); height: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.toast-area { position: fixed; inset-inline: 12px; bottom: 14px; z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 560px; width: 100%; padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 600; box-shadow: var(--shadow); line-height: 1.6; }
.toast--ok { background: var(--ok); } .toast--error { background: var(--bad); } .toast--info { background: var(--navy); }
.list-errors { margin: 8px 0 0; padding-inline-start: 1.2em; font-size: .92rem; max-height: 140px; overflow: auto; }
[hidden] { display: none !important; }
.flat { margin: 0 !important; }
.center-row { justify-content: center; margin-top: 16px; }
.mt { margin-top: 14px; }

.btn-danger-outline { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn-danger-outline:hover { background: var(--bad); color: #fff; }

.admin-bar.actions { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .admin-bar.actions { display: flex; } }

.modes { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.modes legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #d9e0e8); border-radius: 8px; cursor: pointer; }
.radio input { margin-top: 6px; flex: none; accent-color: var(--navy); }
.radio small { display: block; color: var(--muted, #4d6074); font-weight: 400; }

.demo-reset { margin-inline-start: 12px; font: inherit; font-size: .85rem; padding: 4px 10px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.demo-reset:hover { background: rgba(255,255,255,.35); }

/* ---------- v1.1 additions ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.header-verify { flex: none; white-space: nowrap; }
.header-row { gap: 8px; }
@media (max-width: 430px) { .header-verify { padding-inline: .7em; } .lang-btn, .menu-btn { min-width: 42px; padding-inline: .6em; } .header-row { gap: 6px; } }
@media (min-width: 980px) { .header-verify { display: none; } }

/* services */
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.svc-meta { margin: 0 0 16px; display: grid; gap: 8px; font-size: .94rem; }
.svc-meta > div { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.svc-meta dt { color: var(--gold-text); font-weight: 700; }
.svc-meta dd { margin: 0; color: var(--ink); }
.card .btn svg { margin-inline-end: .1em; }

/* how-to steps carry a title and a line of detail */
.steps li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.steps li strong { color: var(--navy); font-size: 1.05rem; }
.steps li span { color: var(--muted); font-size: .96rem; line-height: 1.7; }

/* founder */
.founder-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 800px) { .founder-grid:has(.photo) { grid-template-columns: 280px 1fr; } }
.founder { max-width: none; }
.founder .role { color: var(--gold-text); font-weight: 700; margin: -6px 0 0; }
.founder p { max-width: 68ch; }
.sub { font-size: 1.2rem; margin: 36px 0 14px; color: var(--navy); }
.stats { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; } }
.stats li { background: var(--navy); color: #D6E1EC; border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 2px; border-block-end: 4px solid var(--gold); }
.stats .pre { font-size: .9rem; color: #E8CD9A; }
.stats .num { font-size: 2.4rem; line-height: 1.15; color: #fff; font-weight: 800; letter-spacing: .01em; unicode-bidi: plaintext; text-align: start; font-variant-numeric: tabular-nums; }
.quals { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .quals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quals li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 4px; border-inline-start: 4px solid var(--gold); }
.quals strong { color: var(--navy); unicode-bidi: plaintext; text-align: start; overflow-wrap: anywhere; }
.quals span { color: var(--muted); font-size: .94rem; }
.note { color: var(--muted); font-size: .92rem; }

/* photos */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4x5 { aspect-ratio: 4 / 5; max-width: 320px; width: 100%; }
.ratio-3x2 { aspect-ratio: 3 / 2; width: 100%; }
.photo--slot { display: grid; place-items: center; text-align: center; padding: 18px; border: 2px dashed var(--gold); color: var(--gold-text); font-weight: 600; font-size: .92rem; background: #FBF4E6; }
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* contact + social */
.tg-cta { background: #fff; border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; }
.tg-cta p { margin: 0; font-weight: 700; color: var(--navy); }
.social-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .social-row { grid-template-columns: 1fr 1fr; } }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.social a:hover { border-color: var(--gold); color: var(--gold-text); }
.social svg { width: 22px; height: 22px; }
.footer-admin { display: inline-flex !important; align-items: center; gap: .4em; font-size: .88rem; font-weight: 500 !important; opacity: .85; }
.footer-admin svg { width: 14px; height: 14px; }
@media (min-width: 800px) { .footer-row { grid-template-columns: auto 1fr auto; } .footer-row .social { grid-column: 3; } .footer-row .copy { grid-column: 1 / -1; } }

.demo-try { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px; background: #FFF4E0; border-bottom: 1px solid #F0D9A8; }
.demo-try small { color: #6B4300; font-weight: 600; }
html[dir="rtl"] .quals strong, html[dir="rtl"] .stats .num { text-align: right; }
html[dir="ltr"] .quals strong, html[dir="ltr"] .stats .num { text-align: left; }

@media (min-width: 980px) { .site-nav li a, .nav-actions .btn { white-space: nowrap; } .site-nav ul { gap: 0; } .site-nav li a { padding-inline: .55em; font-size: .92rem; } .nav-actions { display: flex; margin-top: 0; margin-inline-start: 8px; } }
@media (min-width: 980px) and (max-width: 1180px) { .site-nav li a { padding-inline: .4em; font-size: .86rem; } .brand img { height: 56px; } }
