/* Oxford College Exams — design system
   Navy + gold from the crest. Logical properties everywhere so RTL (Arabic) works automatically. */

:root {
  --navy: #060c33;
  --navy-2: #0e1752;
  --navy-3: #1c2a6b;
  --gold: #e9b31b;
  --gold-2: #f6d365;
  --gold-dark: #b8860b;
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f0f2f9;
  --text: #141a3a;
  --muted: #5e6587;
  --border: #e2e5f0;
  --success: #12805c;
  --success-bg: #e6f6ef;
  --danger: #c62828;
  --danger-bg: #fdecec;
  --info: #1d4ed8;
  --info-bg: #e8efff;
  --warn: #9a6700;
  --warn-bg: #fff6dd;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(6, 12, 51, .05), 0 6px 24px rgba(6, 12, 51, .07);
  --shadow-lg: 0 18px 50px rgba(6, 12, 51, .16);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: "Cinzel", "Playfair Display", Georgia, serif;
  --container: 1180px;
}

:lang(ar) { --font: "Cairo", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; --font-head: "Cairo", serif; }
:lang(zh) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; --font-head: "Noto Serif SC", "Songti SC", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-head); letter-spacing: .02em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.section { padding-block: 64px; }
.section-sm { padding-block: 36px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: .97rem; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, color .2s; text-align: center; line-height: 1.2; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); color: #fff; box-shadow: 0 8px 20px rgba(6, 12, 51, .25); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-dark)); color: var(--navy); }
.btn-gold:hover { color: var(--navy); box-shadow: 0 10px 26px rgba(233, 179, 27, .45); transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-light:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); padding-inline: 12px; }
.btn-ghost:hover { color: var(--navy); background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.08); }
.btn-success { background: var(--success); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(28, 42, 107, .12); }
.field { margin-bottom: 18px; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card-tight { padding: 16px; }
.card h3 { margin-bottom: .35em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

/* ---------- Alerts / badges ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; border: 1px solid transparent; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe8d6; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f6caca; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c9d8ff; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f4e0a2; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); color: var(--navy-3); white-space: nowrap; }
.pill-gold { background: #fff3cf; color: #7a5600; }
.pill-green { background: var(--success-bg); color: var(--success); }
.pill-red { background: var(--danger-bg); color: var(--danger); }
.pill-blue { background: var(--info-bg); color: var(--info); }
.pill-navy { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.announce { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); color: var(--navy); text-align: center; font-weight: 700; font-size: .9rem; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 12, 51, .97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid rgba(233, 179, 27, .25); }
.site-header .bar { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); color: var(--gold); font-size: 1.12rem; letter-spacing: .06em; }
.brand-text span { font-size: .72rem; color: #c4c9e6; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a, .nav button.linklike { color: #dfe3f7; padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: .94rem; }
.nav a:hover, .nav a.active { color: var(--gold); background: rgba(255, 255, 255, .06); }
.nav .btn-gold { color: var(--navy); padding: 10px 18px; }
.nav .btn-gold:hover { color: var(--navy); }
.lang-switch { position: relative; }
.lang-switch > button { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; border-radius: 999px; padding: 8px 12px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 190px; padding: 6px; display: none; z-index: 60; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--text); font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: start; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--navy); }
.dropdown a.current { background: var(--surface-2); font-weight: 700; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; margin-inline-start: auto; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 70px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; display: none; border-bottom: 2px solid var(--gold); max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a, .nav .btn { padding: 12px 14px; }
  .lang-switch .dropdown { position: static; box-shadow: none; margin-top: 6px; }
  .brand-text span { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(233, 179, 27, .22), transparent 60%), radial-gradient(900px 600px at -10% 120%, rgba(28, 42, 107, .9), transparent 60%), var(--navy); color: #fff; padding-block: 80px 96px; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: #cfd4ef; max-width: 620px; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border: 1px solid rgba(233, 179, 27, .5); border-radius: 999px; color: var(--gold-2); font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.hero-crest { justify-self: center; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); animation: float 6s ease-in-out infinite; max-width: 320px; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #c4c9e6; font-size: .92rem; }
.trust span { display: flex; gap: 8px; align-items: center; }
.trust b { color: #fff; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; text-align: center; } .hero-crest { order: -1; max-width: 170px; } .hero-cta, .trust { justify-content: center; } .hero p.lead { margin-inline: auto; } }

.stats-band { margin-top: -48px; position: relative; z-index: 2; }
.stats-band .card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px; }
.stat { text-align: center; padding: 6px; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); font-weight: 800; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .stats-band .card { grid-template-columns: repeat(2, 1fr); } }

.section-title { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-title .kicker { color: var(--gold-dark); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Exam cards ---------- */
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.exam-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; box-shadow: var(--shadow); color: inherit; }
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.exam-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--navy-3)); position: relative; display: grid; place-items: center; overflow: hidden; }
.exam-card .thumb img.cover { width: 100%; height: 100%; object-fit: cover; }
.exam-card .thumb img.crest { height: 62%; width: auto; opacity: .95; }
.exam-card .thumb .tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.exam-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.exam-card h3 { font-size: 1.06rem; margin: 0; color: var(--navy); }
.exam-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.exam-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.price { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.price.free { color: var(--success); }
.price s { color: var(--muted); font-weight: 500; font-size: .9rem; margin-inline-end: 6px; }

/* ---------- Steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; inset-inline-start: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(233, 179, 27, .5); }
.step .ico { font-size: 1.8rem; margin: 8px 0; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 14px; }
.feature .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.3rem; }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd4ef; margin: 0; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 179, 27, .35), transparent 70%); inset-inline-end: -80px; top: -120px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; } }

.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 600; color: var(--navy); font-size: .92rem; }
.chip:hover, .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Exam detail ---------- */
.exam-hero { background: var(--navy); color: #fff; padding-block: 48px; }
.exam-hero h1 { color: #fff; }
.exam-hero .lead { color: #cfd4ef; }
.exam-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.buy-box { position: sticky; top: 90px; margin-top: -120px; }
.buy-box .price { font-size: 2rem; }
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); font-size: .94rem; }
.facts li span:first-child { color: var(--muted); }
.facts li b { color: var(--navy); }
@media (max-width: 960px) { .exam-layout { grid-template-columns: 1fr; } .buy-box { margin-top: 0; position: static; } }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- Exam taking ---------- */
.exam-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.exam-top { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; }
.exam-top .bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.exam-top .title { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.2rem; background: rgba(255, 255, 255, .1); padding: 7px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center; }
.timer.warn { background: var(--gold); color: var(--navy); }
.timer.danger { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .7; } }
.progress { height: 5px; background: rgba(255, 255, 255, .15); }
.progress > i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s; }
.exam-main { display: grid; grid-template-columns: 1fr 290px; gap: 24px; padding-block: 28px 60px; align-items: start; }
@media (max-width: 960px) { .exam-main { grid-template-columns: 1fr; } }
.q-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 28px; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.q-num { font-weight: 800; color: var(--gold-dark); letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.scenario { background: linear-gradient(0deg, #fffaf0, #fffaf0); border-inline-start: 4px solid var(--gold); padding: 16px 18px; border-radius: 10px; margin-bottom: 18px; white-space: pre-line; }
.scenario .lbl { display: block; font-weight: 800; color: var(--gold-dark); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.q-text { font-size: 1.2rem; font-weight: 600; color: var(--navy); white-space: pre-line; margin-bottom: 8px; }
.q-hint { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.options { display: grid; gap: 12px; }
.opt { display: flex; gap: 14px; align-items: center; padding: 15px 18px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s; font-size: 1.02rem; background: #fff; user-select: none; }
.opt:hover { border-color: #b9c0dd; background: #fafbff; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c2c8e2; display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: .9rem; transition: all .12s; }
.opt.multi .mark { border-radius: 9px; }
.opt.selected { border-color: var(--navy); background: #f3f5ff; }
.opt.selected .mark { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt.selected.multi .mark { background: var(--gold); border-color: var(--gold-dark); color: var(--navy); box-shadow: 0 0 0 4px rgba(233, 179, 27, .25); }
.opt:focus-within { box-shadow: 0 0 0 4px rgba(28, 42, 107, .15); }
.tf-options { grid-template-columns: 1fr 1fr; }
.tf-options .opt { justify-content: center; font-weight: 700; font-size: 1.1rem; padding-block: 22px; }
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.flag-btn.on { background: var(--warn-bg); color: var(--warn); border-color: #f4e0a2; }
.palette { position: sticky; top: 90px; }
.palette-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 14px 0; max-height: 46vh; overflow-y: auto; padding: 2px; }
.palette-grid button { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--muted); position: relative; padding: 0; }
.palette-grid button.answered { background: var(--navy); border-color: var(--navy); color: #fff; }
.palette-grid button.flagged::after { content: ""; position: absolute; top: -3px; inset-inline-end: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.palette-grid button.current { outline: 3px solid var(--gold); outline-offset: 1px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-inline-end: 4px; border: 1.5px solid var(--border); }
.save-state { font-size: .8rem; color: #aeb5d8; }
.modal-back { position: fixed; inset: 0; background: rgba(6, 12, 51, .6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; backdrop-filter: blur(3px); }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 18px; padding: 28px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* ---------- Result / congrats ---------- */
.result-hero { text-align: center; padding: 48px 16px 24px; }
.score-ring { --p: 0; width: 190px; height: 190px; border-radius: 50%; margin: 0 auto 18px; background: conic-gradient(var(--ring, var(--success)) calc(var(--p) * 1%), #e5e8f3 0); display: grid; place-items: center; position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.score-ring b { position: relative; font-size: 2.6rem; color: var(--navy); font-weight: 800; }
.score-ring small { display: block; position: relative; color: var(--muted); font-weight: 600; text-align: center; margin-top: -6px; }
.score-ring.fail { --ring: var(--danger); }
.congrats-title { font-size: clamp(2rem, 5vw, 3rem); background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-card { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .badge-card { grid-template-columns: 1fr; text-align: center; } }
.digital-badge { width: 100%; max-width: 300px; margin-inline: auto; filter: drop-shadow(0 16px 30px rgba(6, 12, 51, .28)); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .share-row { justify-content: center; } }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px; font-weight: 700; color: #fff; font-size: .92rem; border: 0; cursor: pointer; font-family: inherit; }
.share-btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.s-linkedin { background: #0a66c2; } .s-x { background: #000; } .s-facebook { background: #1877f2; } .s-whatsapp { background: #25d366; } .s-telegram { background: #229ed9; } .s-copy { background: var(--navy-3); } .s-native { background: var(--gold-dark); }
.cert-frame { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; user-select: none; -webkit-user-select: none; }
.cert-frame img, .cert-frame svg { display: block; width: 100%; height: auto; pointer-events: none; }
.notice-24 { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #f0fff8, #e6f6ef); border: 1px solid #bfe8d6; color: #0b5d42; padding: 20px; border-radius: 14px; }
.notice-24 .ico { font-size: 2rem; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, Menlo, monospace; font-size: .9rem; background: var(--surface-2); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-block: 32px 64px; align-items: start; }
.side-nav { position: sticky; top: 90px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 10px; box-shadow: var(--shadow); }
.side-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; color: var(--text); font-weight: 600; }
.side-nav a:hover { background: var(--surface-2); color: var(--navy); }
.side-nav a.active { background: var(--navy); color: #fff; }
.side-nav .ico { width: 22px; text-align: center; }
.side-user { padding: 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold-dark)); color: var(--navy); display: grid; place-items: center; font-weight: 800; flex: none; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .side-nav a { white-space: nowrap; padding: 9px 12px; }
  .side-user { display: none; }
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi b { display: block; font-size: 1.7rem; color: var(--navy); margin-top: 4px; font-weight: 800; }
.kpi small { color: var(--muted); }
.welcome-band { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; }
.welcome-band h1, .welcome-band h2 { color: #fff; margin: 0 0 4px; }
.welcome-band p { color: #cfd4ef; margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: start; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 12px 14px; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: #fafbff; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ico { font-size: 2.4rem; margin-bottom: 8px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 13px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: radial-gradient(700px 400px at 70% 10%, rgba(233, 179, 27, .25), transparent 60%), var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 18px; }
.auth-art h2 { color: #fff; font-size: 2rem; }
.auth-art ul { list-style: none; padding: 0; display: grid; gap: 12px; color: #d8dcf3; }
.auth-art li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-inline-end: 10px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-form .card { width: 100%; max-width: 440px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9bfdf; padding-block: 56px 28px; margin-top: 40px; }
.site-footer h4 { color: var(--gold); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #d8dcf3; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .87rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Live toast ---------- */
.live-toast { position: fixed; bottom: 18px; inset-inline-start: 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 12px; align-items: center; max-width: 340px; z-index: 40; transform: translateY(140%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); font-size: .9rem; border: 1px solid var(--border); }
.live-toast.show { transform: none; }
.live-toast .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--success-bg); display: grid; place-items: center; flex: none; }
.live-toast b { color: var(--navy); }
@media (max-width: 600px) { .live-toast { inset-inline: 12px; max-width: none; bottom: 12px; } }

/* RTL tweaks */
[dir=rtl] .flip { transform: scaleX(-1); }

@media print {
  .site-header, .site-footer, .no-print, .announce, .live-toast { display: none !important; }
  body { background: #fff; }
}

/* =====================================================================
   Illustrated sections
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; max-width: 440px; display: block; margin-inline: auto; }
.split-text h2 { margin-top: 8px; }
.kicker { color: var(--gold-dark); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.why-globe { display: block; width: 100%; max-width: 300px; margin: 0 auto 8px; }
.exam-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: center; }
.exam-hero-img { width: 100%; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 1px solid rgba(233, 179, 27, .35); }
.hero-spacer { height: 70px; }
.exam-card .thumb img.cover { transition: transform .4s; }
.exam-card:hover .thumb img.cover { transform: scale(1.05); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split.reverse .split-media { order: 0; }
  .split-media img { max-width: 300px; }
  .exam-hero-grid { grid-template-columns: 1fr; }
  .exam-hero-img { display: none; }
}

/* =====================================================================
   Mobile-first refinements
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button, .btn, a, label.opt, .chip { touch-action: manipulation; }
.tabbar { display: none; }

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  /* iOS zooms into inputs under 16px */
  input, select, textarea { font-size: 16px !important; }
  .section { padding-block: 40px; }
  .section-sm { padding-block: 24px; }
  .section-title { margin-bottom: 24px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .card { padding: 18px; border-radius: 14px; }
  .btn { min-height: 46px; }
  .btn-sm { min-height: 38px; }
  .btn-lg { padding: 15px 22px; font-size: 1rem; }

  /* Header: compact, logo + menu */
  .site-header .bar { height: 60px; gap: 10px; }
  .brand img { height: 38px; }
  .brand-text strong { font-size: .98rem; }
  .nav { inset: 60px 0 auto 0; max-height: calc(100vh - 60px); }

  /* Bottom tab bar (app-style) */
  body.has-tabbar { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 60;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -6px 24px rgba(6, 12, 51, .08); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: .7rem; font-weight: 700; min-width: 0; }
  .tabbar a .ti { font-size: 1.25rem; line-height: 1.1; filter: grayscale(1); opacity: .75; }
  .tabbar a .tl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a.active { color: var(--navy); background: #fff6dd; }
  .tabbar a.active .ti { filter: none; opacity: 1; }
  .site-footer { margin-top: 20px; padding-block: 36px 20px; }
  .live-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* Hero */
  .hero { padding-block: 36px 70px; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1.02rem; }
  .hero-crest { max-width: 120px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .trust { gap: 10px 16px; font-size: .85rem; }
  .stats-band { margin-top: -40px; }
  .stats-band .card { padding: 14px 8px; gap: 4px; }
  .stat b { font-size: 1.45rem; }
  .stat span { font-size: .78rem; }
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }

  /* Exam catalogue: compact horizontal cards */
  .exam-grid { grid-template-columns: 1fr; gap: 14px; }
  .exam-card { flex-direction: row; }
  .exam-card .thumb { aspect-ratio: auto; width: 112px; flex: none; }
  .exam-card .thumb .tags { top: 6px; inset-inline-start: 6px; flex-direction: column; align-items: flex-start; }
  .exam-card .thumb .pill { font-size: .66rem; padding: 2px 7px; }
  .exam-card .body { padding: 12px 14px; gap: 6px; min-width: 0; }
  .exam-card h3 { font-size: .98rem; }
  .exam-card .body > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .exam-card .foot { padding-top: 8px; }
  .exam-card .foot .btn { display: none; }
  .exam-hero { padding-block: 28px; }
  .exam-hero form.flex { flex-direction: column; align-items: stretch; }
  .exam-hero form.flex > * { max-width: none !important; width: 100%; }

  /* Exam detail: price & enrol button come first */
  .hero-spacer { height: 0; }
  .exam-layout { display: flex; flex-direction: column; gap: 18px; }
  .buy-box { order: -1; }
  .buy-box .price { font-size: 1.7rem; }

  /* Share buttons: tidy 2-column grid */
  .share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .share-btn { justify-content: center; padding: 12px; }
  .badge-card { gap: 16px; }
  .digital-badge { max-width: 200px; }
  .score-ring { width: 150px; height: 150px; }
  .score-ring b { font-size: 2.1rem; }
  .result-hero { padding: 28px 0 16px; }
  .notice-24 { padding: 16px; gap: 12px; align-items: flex-start; }
  .cta-band { padding: 24px 18px; border-radius: 18px; }
  .copy-field { flex-direction: column; }
  .copy-field .btn { width: 100%; }

  /* Dashboard */
  .dash { padding-block: 16px 40px; gap: 16px; }
  .side-nav { margin-inline: -16px; border-radius: 0; border-inline: 0; box-shadow: none; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 1.35rem; }
  .welcome-band { padding: 20px; }
  .welcome-band .btn { width: 100%; }

  /* Tables become stacked cards */
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table.table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 6px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
  .table td { border: 0; padding: 8px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: end; }
  .table td + td { border-top: 1px dashed var(--border); }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: start; flex: none; }
  .table td:not([data-label])::before, .table td[data-label=""]::before { display: none; }
  .table td:not([data-label]) { justify-content: flex-end; }
  .table.no-head td { justify-content: space-between; text-align: start; }
  .table tr:hover td { background: transparent; }
  .table .num { text-align: end; }

  /* Auth pages */
  .auth-form { padding: 20px 16px; align-items: flex-start; }
  .auth-form .card { box-shadow: none; border: 0; padding: 4px 0; background: transparent; }

  /* Certificate page */
  .cert-frame { border-radius: 8px; }
}

/* ---- Exam screen on phones/tablets ---- */
.q-sheet-btn { display: none; }
@media (max-width: 960px) {
  .exam-top .bar { height: 56px; gap: 8px; }
  .exam-top .bar > img { display: none; }
  .exam-top .title { font-size: .9rem; }
  .q-sheet-btn { display: inline-flex; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); min-height: 38px; }
  .timer { font-size: 1rem; padding: 6px 11px; }
  #open-submit { display: none; }
  .exam-main { padding-block: 14px calc(96px + env(safe-area-inset-bottom, 0px)); gap: 0; }
  .q-card { padding: 18px 16px; border-radius: 16px; }
  .q-text { font-size: 1.08rem; }
  .opt { padding: 14px; min-height: 58px; font-size: 1rem; gap: 12px; }
  .opt .mark { width: 32px; height: 32px; }
  .tf-options { grid-template-columns: 1fr 1fr; }
  .q-nav { position: fixed; inset: auto 0 0 0; z-index: 40; margin: 0; background: #fff; border-top: 1px solid var(--border);
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -8px 24px rgba(6, 12, 51, .1); flex-wrap: nowrap; }
  .q-nav .btn { flex: 1; min-height: 50px; }
  .q-nav .btn[style*="hidden"] { visibility: visible !important; }
  /* Question overview becomes a bottom sheet */
  .palette { position: fixed; inset: auto 0 0 0; z-index: 70; border-radius: 22px 22px 0 0; max-height: 78vh; overflow-y: auto;
    transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .palette.open { transform: none; }
  .palette-grid { grid-template-columns: repeat(6, 1fr); max-height: none; }
  .palette-grid button { min-height: 44px; }
  .sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: -6px auto 12px; }
  .sheet-backdrop { position: fixed; inset: 0; background: rgba(6, 12, 51, .45); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
  .exam-main > section > p.small { display: none; }
}
@media (min-width: 961px) { .sheet-handle, .sheet-backdrop { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Result page: ranking + certificate offer */
.top-rank { display: inline-block; background: linear-gradient(135deg, #fff6dd, #ffe9a8); color: #7a5600; font-weight: 800; padding: 8px 18px; border-radius: 999px; margin: 0 0 10px; }
.sell-sub { font-size: 1.05rem; color: var(--text); }
.offer-bar { display: flex; gap: 16px; align-items: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.offer-bar .offer-clock { flex: none; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-2); background: rgba(255,255,255,.08); padding: 6px 14px; border-radius: 12px; }
.offer-bar .offer-text { font-size: .92rem; color: #cfd4ef; line-height: 1.5; }
.offer-bar .offer-text b { color: #fff; font-size: 1rem; }
.offer-bar.urgent .offer-clock { color: #fff; background: var(--danger); }
@media (max-width: 760px) { .offer-bar { flex-direction: column; align-items: stretch; text-align: center; } .offer-bar .offer-clock { align-self: center; } }

/* =====================================================================
   Oxford AI License™ landing + handbook
   ===================================================================== */
.ai-serif { font-family: "Cormorant Garamond", var(--font-head); font-weight: 700; letter-spacing: 0; }
:lang(ar) .ai-serif, :lang(zh) .ai-serif { font-family: var(--font-head); }
.ai-hero { background: radial-gradient(900px 500px at 85% 0%, rgba(233,179,27,.18), transparent 60%), linear-gradient(160deg, #0b2545, #060c33 70%); color: #fff; padding-block: 64px 90px; overflow: hidden; }
.ai-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ai-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; margin: 14px 0; }
.ai-lead { font-size: 1.15rem; color: #d6dcf2; max-width: 600px; }
.ai-facts { color: var(--gold-2); font-weight: 700; }
.ai-pill { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.ai-btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.35); background: transparent; }
.ai-btn-ghost:hover { color: var(--navy); background: #fff; }
.ai-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.ai-chips span { border: 1px solid rgba(233,179,27,.45); color: #f1e2b4; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.ai-cert-wrap { perspective: 1200px; }
.ai-cert-wrap img { width: 100%; max-width: 400px; display: block; margin-inline: auto; border-radius: 6px; box-shadow: 0 40px 80px rgba(0,0,0,.5); transform: rotateY(-12deg) rotateZ(2deg); }
.ai-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.ai-quick-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); color: var(--text); }
.ai-quick-card:hover { color: var(--text); border-color: var(--gold); }
.ai-quick-card b { color: var(--navy); }
.ai-quick-card p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.ai-quick-ico { width: 44px; height: 44px; border-radius: 12px; background: #fff6dd; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.ai-find { display: flex; gap: 6px; margin-top: 10px; }
.ai-find input { padding: 9px 12px; }
.ai-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin-top: 32px; border-block: 1px solid var(--border); padding-block: 22px; }
.ai-stats b { display: block; font-family: "Cormorant Garamond", var(--font-head); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.ai-stats span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ai-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-feature { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.ai-feature-ico { font-size: 1.5rem; margin-bottom: 8px; }
.ai-feature h3 { font-size: 1.08rem; }
.ai-feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.ai-dark { background: linear-gradient(160deg, #0b2545, #060c33); color: #d6dcf2; }
.ai-dark h2 { color: #fff; }
.ai-dark .ticks li { color: #eef1fb; }
.ai-dark .ticks li::before { background: rgba(233,179,27,.18); color: var(--gold-2); }
.ai-cert-flat { border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.45); max-width: 360px !important; }
.ai-share-icons { display: flex; gap: 10px; margin-top: 16px; }
.ai-share-icons span { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.ai-domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); border-inline-start: 1px solid var(--border); }
.ai-domain { padding: 26px; border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); }
.ai-num { font-family: "Cormorant Garamond", serif; font-size: 1.8rem; color: var(--gold-dark); font-weight: 700; }
.ai-domain h3 { margin-top: 6px; }
.ai-domain p { color: var(--muted); margin: 0; }
.ai-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin-inline: auto; }
.ai-plan { background: #fff; border: 2px solid var(--gold); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.ai-plan-alt { border-color: var(--border); box-shadow: var(--shadow); }
.ai-price { font-family: "Cormorant Garamond", var(--font-head); font-size: 3rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.ai-price small { font-family: var(--font); font-size: .9rem; color: var(--muted); font-weight: 600; }
.ai-book { aspect-ratio: 3/4; max-width: 280px; margin-inline: auto; background: linear-gradient(160deg, #13315c, #060c33); border: 2px solid var(--gold); border-radius: 8px 18px 18px 8px; box-shadow: 18px 24px 50px rgba(0,0,0,.5), inset 10px 0 0 rgba(233,179,27,.35); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; text-align: center; color: #d6dcf2; }
.ai-book b { font-size: 2rem; color: #fff; }
.ai-disclaimer { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; font-size: .88rem; color: var(--muted); }
.ai-disclaimer b { color: var(--navy); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
/* handbook */
.hb-page { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 40px 44px 24px; margin-bottom: 22px; }
.hb-page h1 { font-size: 2.4rem; } .hb-page h2 { font-size: 1.9rem; margin-top: 4px; } .hb-page h3 { margin-top: 22px; font-size: 1.1rem; }
.hb-page p, .hb-page li { line-height: 1.75; }
.hb-cover { background: linear-gradient(160deg, #0b2545, #060c33); color: #d6dcf2; text-align: center; padding-block: 60px; }
.hb-cover h1, .hb-cover h2 { color: #fff; }
.hb-takeaway { background: #fff8e1; border-inline-start: 4px solid var(--gold); padding: 14px 18px; border-radius: 10px; font-weight: 600; color: var(--navy); margin-top: 6px; }
.hb-toc { list-style: none; padding: 0; columns: 2; } .hb-toc li { padding: 4px 0; border-bottom: 1px dashed var(--border); break-inside: avoid; }
.hb-opt { list-style: none; padding: 0; } .hb-opt li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; }
.hb-qlabel { font-weight: 800; color: var(--gold-dark); font-size: .8rem; letter-spacing: .1em; margin-top: 22px; }
.hb-qtext { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.hb-answer { font-weight: 700; color: var(--success); margin: 6px 0; }
.hb-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 26px; padding-top: 12px; font-size: .78rem; color: var(--muted); }
.hb-cover .hb-foot { border-color: rgba(255,255,255,.15); color: #9aa3c8; }
@media (max-width: 860px) {
  .ai-hero-grid, .ai-plans { grid-template-columns: 1fr; }
  .ai-cert-wrap img { max-width: 240px; transform: rotate(2deg); }
  .ai-quick { grid-template-columns: 1fr; margin-top: -30px; }
  .ai-features, .ai-domains { grid-template-columns: 1fr; }
  .ai-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hb-page { padding: 24px 18px 16px; } .hb-toc { columns: 1; }
  .ai-hero { padding-block: 36px 60px; }
  .ai-hero .hero-cta .btn { width: 100%; }
}

/* WhatsApp chat button */
.wa-float { position: fixed; z-index: 55; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 18px; display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff; font-weight: 700; padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(37,211,102,.45); }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }
@media (max-width: 760px) { .wa-float { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); padding: 12px; } .wa-float span { display: none; } }
.footer-disclaimer { font-size: .78rem; color: #8e96bf; margin-top: 18px; line-height: 1.6; }

/* Official website link */
.nav a.official-btn { border: 1.5px solid var(--gold); color: var(--gold-2); }
.nav a.official-btn:hover { background: var(--gold); color: var(--navy); }
.official-strip { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 18px 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(233,179,27,.45); color: #fff; }
.official-strip:hover { background: rgba(233,179,27,.15); color: #fff; }
.official-strip small { display: block; color: var(--gold-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.official-strip b { font-size: 1.05rem; }
@media (max-width: 860px) { .official-strip { margin-inline: auto; } }
.cur-toc { display: grid; gap: 4px; padding: 12px; }
.cur-toc a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; }
.cur-toc a:hover { background: var(--surface-2); color: var(--navy); }
.cur-toc span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; }
.cur-link { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fff8e1; border: 1px solid #f4e0a2; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.cur-link:hover { color: var(--navy); border-color: var(--gold); }


/* =====================================================================
   Formal design layer (typography, icons, photography)
   ===================================================================== */
:root { --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; --font-head: "Source Serif 4", Georgia, "Times New Roman", serif; }
:lang(ar) { --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; --font-head: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; }
:lang(zh) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; --font-head: "Songti SC", "Noto Serif SC", serif; }
body { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.005em; }
.hero h1, .exam-hero h1, .welcome-band h1, .welcome-band h2 { font-family: var(--font-head); }
.hero h1 { font-weight: 700; }
.ai-serif { font-family: var(--font-head) !important; font-weight: 700; }
/* numbers: clear lining, tabular digits in Inter everywhere */
.stat b, .kpi b, .price, .ai-stats b, .ai-price, .ai-num, .score-ring b, .timer, .offer-clock, .num, .pill, .facts b, .palette-grid button, .q-num, .chart .bar {
  font-family: "Inter", system-ui, sans-serif !important; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.stat b, .ai-stats b { font-weight: 700; letter-spacing: -.01em; }
.ai-stats b { font-size: 2.2rem; }
.ai-price { font-size: 2.6rem; font-weight: 700; }
.ai-num { font-size: 1rem; font-weight: 700; color: var(--gold-dark); letter-spacing: .08em; }
/* icons */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.feature .ico, .ai-feature-ico, .ai-quick-ico, .step .ico { color: var(--navy); }
.feature .ico { background: #eef1f8; border-radius: 10px; }
.feature .ico .ic, .ai-feature-ico .ic, .ai-quick-ico .ic { width: 22px; height: 22px; }
.ai-feature-ico { width: 44px; height: 44px; border-radius: 10px; background: #eef1f8; display: grid; place-items: center; font-size: 0; }
.ai-quick-ico { background: #eef1f8; }
.step .ico { width: 44px; height: 44px; border-radius: 10px; background: #eef1f8; display: grid; place-items: center; margin: 6px 0 10px; }
.step .ico .ic { width: 22px; height: 22px; }
.step::before { box-shadow: none; }
.side-nav .ico, .adm-side a.nl .ic { opacity: .85; }
.tabbar a .ti { filter: none !important; opacity: 1 !important; }
.tabbar a .ti .ic { width: 22px; height: 22px; }
.tabbar a { color: #6b7194; }
.tabbar a.active { color: var(--navy); background: #f1f3fa; }
.dropdown a .ic, .dropdown button .ic { color: var(--muted); }
.notice-24 .ico { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--success); font-size: 0; }
.notice-24 .ico .ic { width: 22px; height: 22px; }
.live-toast .ico { color: var(--success); }
.status-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: #eef1f8; color: var(--navy); }
.status-ic.ok { background: var(--success-bg); color: var(--success); }
.status-ic .ic { width: 30px; height: 30px; }
.lang-switch > button .ic { opacity: .85; }
/* calmer, more formal surfaces */
.btn { border-radius: 8px; letter-spacing: .01em; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { box-shadow: none; transform: none; filter: brightness(1.05); }
.pill { border-radius: 6px; }
.card, .exam-card, .kpi, .step, .ai-feature, .ai-plan, .ai-quick-card, .hb-page { border-radius: 10px; }
.exam-card:hover { transform: none; }
.hero-crest { animation: none; }
.section-title .kicker, .kicker { letter-spacing: .14em; }
/* photography */
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 520px; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 10px; border: 1px solid rgba(233,179,27,.5); box-shadow: 0 30px 60px rgba(0,0,0,.4); display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(233,179,27,.35); border-radius: 10px; z-index: -1; }
[dir=rtl] .hero-photo::after { inset: 14px 14px -14px -14px; }
.split-media img.photo { max-width: 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-lg); }
.exam-card .thumb { background: #0b1440; }
.exam-card .thumb img.cover { filter: saturate(.92); }
.exam-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,51,0) 45%, rgba(6,12,51,.45)); pointer-events: none; }
.exam-hero-img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.auth-art { background: linear-gradient(160deg, rgba(6,12,51,.92), rgba(6,12,51,.78)), var(--art) center / cover no-repeat, var(--navy); }
.photo-hero { background: linear-gradient(90deg, rgba(6,12,51,.94), rgba(6,12,51,.75)), var(--bg) center / cover no-repeat, var(--navy); }
[dir=rtl] .photo-hero { background: linear-gradient(270deg, rgba(6,12,51,.94), rgba(6,12,51,.75)), var(--bg) center / cover no-repeat, var(--navy); }
@media (max-width: 860px) { .hero-photo { justify-self: center; max-width: 100%; order: -1; } .hero-photo::after { display: none; } .hero-photo img { aspect-ratio: 16 / 9; } }

.wa-float { padding: 0; width: 52px; height: 52px; justify-content: center; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .wa-float { width: 46px; height: 46px; inset-inline-end: 12px; inset-inline-start: auto; } }

/* ---------- AI exam hero: certificate shown straight and framed ---------- */
.ai-cert-wrap { perspective: none; display: flex; justify-content: center; }
.ai-cert-wrap img { transform: none !important; width: auto; max-width: 100%; max-height: 520px; object-fit: contain; border-radius: 4px;
  border: 8px solid #fff; box-shadow: 0 0 0 1px rgba(233,179,27,.45), 0 30px 60px rgba(0,0,0,.45); background: #fff; }
@media (max-width: 860px) { .ai-cert-wrap img { max-height: 360px; border-width: 6px; } }

/* ---------- Header & menu ---------- */
.site-header .bar { gap: 24px; }
.brand { flex: none; }
.nav { gap: 2px; flex-wrap: nowrap; }
.nav > a, .nav .lang-switch > button { white-space: nowrap; }
.nav > a { padding: 9px 12px; font-size: .92rem; }
.nav a.official-btn { margin-inline: 6px; padding: 8px 14px; border-radius: 8px; }
.nav .btn-gold { margin-inline-start: 4px; border-radius: 8px; }
.lang-switch > button { border-radius: 8px; }

/* Compact (tablet & phone): one clean vertical menu */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .brand-text span { display: none; }
  .nav { position: fixed; inset: 64px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 2px solid var(--gold);
    padding: 6px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .nav.open { display: flex; }
  .site-header .bar { height: 64px; }
  .nav > a, .nav a.official-btn { display: flex; align-items: center; gap: 10px; padding: 15px 2px; margin: 0; border: 0; border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; color: #e6e9f7; background: none; }
  .nav > a:hover, .nav > a.active { background: none; color: var(--gold-2); }
  .nav a.official-btn { color: var(--gold-2); }
  .nav a.official-btn:hover { background: none; color: var(--gold); }
  /* language + account: no extra dropdown, options listed in place */
  .nav .lang-switch { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .lang-switch > button { display: none; }
  .nav .lang-switch .dropdown { display: flex !important; position: static; flex-wrap: wrap; gap: 8px; background: none; box-shadow: none; padding: 0; min-width: 0; margin: 0; }
  .nav #lang-dd a { width: auto; padding: 8px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #e6e9f7; font-size: .9rem; }
  .nav #lang-dd a.current { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
  .nav #user-dd a, .nav #user-dd button { color: #e6e9f7; padding: 13px 2px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav #user-dd a:hover, .nav #user-dd button:hover { background: none; color: var(--gold-2); }
  .nav #user-dd .ic { color: #9aa3c8; }
  .nav > .btn-gold { justify-content: center; margin: 16px 0 0; padding: 14px; border: 0; color: var(--navy); }
  .nav > a[href$="/login"] { border-bottom: 0; }
}
@media (max-width: 760px) { .nav { inset: 60px 0 auto 0; max-height: calc(100vh - 60px - 70px); } .site-header .bar { height: 60px; } }
@media (max-width: 1180px) {
  .nav > a.btn-gold { display: flex; background: var(--gold) !important; color: var(--navy) !important; border-radius: 8px; border-bottom: 0; font-weight: 700; margin-top: 16px; }
}

/* Rectangular share badge (same design as the social image) */
.badge-card { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.badge-card #badge-wrap svg, .digital-badge { display: block; width: 100%; max-width: 640px !important; height: auto; margin-inline: auto; border-radius: 10px; box-shadow: var(--shadow-lg); filter: none; }
.hero .container.badge-hero { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 900px) { .badge-card, .hero .container.badge-hero { grid-template-columns: 1fr; } }

/* Certificates and badges are English artwork: always left-to-right, also on RTL pages */
.digital-badge, .digital-badge text, .cert-svg, .cert-svg text { direction: ltr; unicode-bidi: isolate; }
.copy-field .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ai-share-icons span svg { display: block; }

/* Admin on small screens: side-by-side layouts stack, long codes/emails wrap instead of widening the page */
@media (max-width: 860px) {
  .grid-2[style*="grid-template-columns"], .grid-3[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
}
.card code, .alert code, .field-hint code, td small, td .muted { overflow-wrap: anywhere; word-break: break-word; }
.table-wrap { max-width: 100%; overflow-x: auto; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-info { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line, #e3e6ef); border-radius: 12px; color: inherit; text-decoration: none; }
a.contact-item:hover { border-color: var(--gold); }
.contact-item b { display: block; font-size: .95rem; }
.contact-item > span:last-child > span { color: var(--muted, #5b6382); font-size: .95rem; overflow-wrap: anywhere; }
.ci-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--navy, #060c33); color: var(--gold, #e9b31b); }
.ci-ico svg { width: 22px; height: 22px; }
.ci-wa { background: #25d366; color: #fff; }

/* English content inside Arabic pages: keep each block in its own direction and alignment */
[dir="auto"] { unicode-bidi: plaintext; text-align: start; }

/* ----- Password strength checklist ----- */
.pw-meter { margin: -4px 0 14px; }
.pw-bar { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; margin-top: 8px; }
.pw-bar i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.pw-meter[data-score="2"] .pw-bar i { background: #d98a00; } .pw-meter[data-score="3"] .pw-bar i { background: #6aa84f; } .pw-meter[data-score="4"] .pw-bar i { background: var(--success); }
.pw-level { margin-top: 5px; color: var(--muted); }
.pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; font-size: .82rem; }
.pw-rules li { color: var(--muted); padding-inline-start: 20px; position: relative; line-height: 1.4; }
.pw-rules li::before { content: "○"; position: absolute; inset-inline-start: 2px; top: 0; font-weight: 700; }
.pw-rules li.ok { color: var(--success); } .pw-rules li.ok::before { content: "✓"; }
.pw-meter.show-errors .pw-rules li:not(.ok) { color: var(--danger); } .pw-meter.show-errors .pw-rules li:not(.ok)::before { content: "✕"; }
.pw-mismatch { color: var(--danger); margin-top: 6px; }
.pw-wrap { position: relative; } .pw-wrap input { padding-inline-end: 72px; }
.pw-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--info); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 4px 6px; }
@media (max-width: 520px) { .pw-rules { grid-template-columns: 1fr; } }

/* ----- Free exam result: sticky certificate offer (mobile) ----- */
.offer-sticky { display: none; }
@media (max-width: 760px) {
  .offer-sticky { display: flex; align-items: center; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 59;
    background: var(--navy); color: #fff; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -8px 24px rgba(6, 12, 51, .25); border-top: 2px solid var(--gold); transition: transform .25s ease; }
  body.has-tabbar .offer-sticky { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  .offer-sticky .os-clock { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-2); font-size: .98rem; }
  .offer-sticky .btn { flex: 1; padding: 11px 10px; font-size: .95rem; white-space: nowrap; }
  .offer-sticky.urgent .os-clock { color: #ffb4ad; }
  .offer-sticky.away { transform: translateY(160%); }
  body.has-offer-sticky { padding-bottom: calc(66px + 64px + env(safe-area-inset-bottom, 0px)); }
}

/* ----- AI License landing: conversion-focused first screen ----- */
.ai-lead-short, .ai-cert-strip { display: none; }
.ai-trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #e8ecfb; font-weight: 700; font-size: .92rem; }
.ai-trust li::before { content: "✓"; color: var(--gold-2); margin-inline-end: 6px; }
.ai-sticky-cta { display: none; }
@media (max-width: 760px) {
  .ai-hero { padding-block: 26px 34px; }
  .ai-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 10px 0 8px; }
  .ai-lead-long, .ai-facts, .ai-chips { display: none; }
  .ai-lead-short { display: block; font-size: 1.05rem; margin-bottom: 0; }
  .ai-hero .hero-cta { margin-top: 18px; gap: 6px; }
  .ai-hero .hero-cta .ai-btn-ghost { border: 0; background: none; padding: 6px; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; color: #d6dcf2; }
  .ai-trust { justify-content: center; margin-top: 10px; font-size: .88rem; }
  .ai-cert-strip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border: 1px solid rgba(233,179,27,.4); border-radius: 12px; background: rgba(255,255,255,.05); color: #f1e2b4; font-weight: 600; font-size: .9rem; line-height: 1.4; text-align: start; }
  .ai-cert-strip img { width: 44px; height: auto; border-radius: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.4); flex: none; }
  .ai-hero .ai-cert-wrap { display: none; }
  .ai-sticky-cta { display: block; position: fixed; inset: auto 0 0 0; z-index: 59; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(6, 12, 51, .96); border-top: 2px solid var(--gold); box-shadow: 0 -8px 24px rgba(6, 12, 51, .25); transform: translateY(160%); transition: transform .25s ease; }
  body.has-tabbar .ai-sticky-cta { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  .ai-sticky-cta.on { transform: none; }
  .ai-sticky-cta form, .ai-sticky-cta .btn { width: 100%; margin: 0; }
}

/* phone: country-code picker + local number */
.phone-row{display:flex;gap:8px;align-items:stretch}
.phone-row select{flex:0 0 132px;width:132px;min-width:0;padding-left:10px;padding-right:6px;text-overflow:ellipsis}
.phone-row input{flex:1;min-width:0}
