/* =========================================================
   ZedniElmaa | زدني علما — public site styles (RTL)
   ========================================================= */
:root {
  --primary: #0b8f7a;
  --primary-600: #087563;
  --primary-50: #e8f6f3;
  --accent: #ffb020;
  --accent-600: #e59a0c;
  --ink: #0e2233;
  --ink-2: #33475b;
  --muted: #6b7c8f;
  --line: #e3e9ef;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --header-bg: rgba(255, 255, 255, .88);
  --amber-50: #fff4de;
  --amber-ink: #8a5a00;
  --danger-50: #fff1f1;
  --on-accent: #0e2233;
  --tint: #f4f8f7;
  --dark: #0e2233;
  --danger: #d6454b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 34, 51, .06), 0 2px 8px rgba(14, 34, 51, .05);
  --shadow: 0 10px 30px -10px rgba(14, 34, 51, .18);
  --shadow-lg: 0 30px 60px -20px rgba(14, 34, 51, .28);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; transition: background-color .25s, color .25s; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center .btn { margin-top: 1.5rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid transparent; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; line-height: 1.4; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-600); color: var(--on-accent); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-arrow { display: inline-flex; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(-4px); }

/* ---------- header ---------- */
.announce { background: var(--dark); color: #fff; text-align: center; padding: .45rem 1rem; font-size: .9rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font-size: 1.25rem; }
.logo small { font-size: .72rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; direction: ltr; text-align: end; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light small { color: rgba(255, 255, 255, .6); }
.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a:not(.btn) { color: var(--ink-2); font-weight: 500; padding: .5rem .8rem; border-radius: 10px; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-50); }
.nav-cta { margin-inline-start: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 80px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
  radial-gradient(700px 380px at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); padding: .35rem .9rem; border-radius: 999px; font-weight: 600; color: var(--primary); font-size: .9rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.eyebrow svg { width: 18px; height: 18px; }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .32em; background: color-mix(in srgb, var(--accent) 55%, transparent); z-index: -1; border-radius: 4px; }
.hero h1 { position: relative; z-index: 0; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; }
.hero-points li { display: flex; align-items: center; gap: .65rem; font-size: 1.08rem; color: var(--ink-2); }
.hero-points svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--primary); color: #fff; stroke-width: 2.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(14, 34, 51, .15)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- stats ---------- */
.stats-band { margin-top: -36px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--dark); color: #fff; border-radius: 24px; padding: 28px 12px; box-shadow: var(--shadow-lg); }
.stat { text-align: center; padding: 6px 10px; border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border: 0; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--accent); font-weight: 700; direction: rtl; }
.stat span { color: rgba(255, 255, 255, .75); font-size: .95rem; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.kicker { display: inline-block; color: var(--primary); font-weight: 700; font-size: .95rem; margin-bottom: .5rem; letter-spacing: .02em; }
.kicker::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); vertical-align: middle; margin-inline-end: .5rem; }
.kicker-light { color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--primary-50); color: var(--primary); margin-bottom: 1rem; }
.feature-ic svg { width: 28px; height: 28px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* stages & subjects */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); border: 1px solid var(--line); padding: .45rem .95rem; border-radius: 999px; font-weight: 500; }
.chip svg { width: 18px; height: 18px; color: var(--primary); }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subject { background: var(--surface); border-radius: var(--radius); padding: 26px 14px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-weight: 600; transition: transform .2s; }
.subject:hover { transform: translateY(-3px) rotate(-1deg); }
.subject svg { width: 38px; height: 38px; color: var(--primary); padding: 6px; border-radius: 12px; background: var(--primary-50); box-sizing: content-box; }
.subject:nth-child(even) svg { color: var(--accent-600); background: var(--amber-50); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 58px; inset-inline: 16%; border-top: 2px dashed var(--line); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.step > svg { width: 116px; height: 116px; padding: 32px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--surface); color: var(--primary); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num { position: absolute; top: -4px; inset-inline-start: calc(50% + 28px); width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow-sm); z-index: 2; }
.step p { color: var(--muted); }

/* classroom */
.phone-art { display: flex; justify-content: center; }
.phone-art img { width: min(320px, 80%); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .35)); }
.class-features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.class-features li { display: flex; gap: 1rem; align-items: flex-start; }
.class-features svg { flex: none; width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--accent); }
.class-features b { display: block; font-size: 1.08rem; }
.class-features span { color: rgba(255, 255, 255, .7); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-card .muted { min-height: 3.4em; font-size: .95rem; }
.ribbon { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .85rem; padding: .25rem .9rem; border-radius: 999px; }
.price { font-size: 2.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.per-session { color: var(--primary); font-weight: 600; font-size: .9rem; margin: .4rem 0 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; flex: 1; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: .25rem; color: var(--primary); stroke-width: 2.6; }
.note-box { display: flex; gap: 1rem; align-items: center; background: var(--primary-50); border-radius: var(--radius); padding: 18px 22px; margin-top: 2rem; }
.note-box svg { flex: none; color: var(--primary); width: 32px; height: 32px; }
.note-box p { margin: 0; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.quote-card { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.quote-card::before { content: "”"; position: absolute; top: 4px; inset-inline-end: 22px; font-size: 5rem; line-height: 1; color: var(--primary-50); font-family: Georgia, serif; }
.stars { color: var(--accent); letter-spacing: 2px; }
.stars span { color: var(--line); }
.quote-card blockquote { margin: .8rem 0 1.4rem; color: var(--ink-2); flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.quote-card figcaption > span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.4; }
.quote-card small { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.sample-badge { font-style: normal; font-size: .75rem; background: var(--amber-50); color: var(--amber-ink); padding: .1rem .55rem; border-radius: 999px; margin-inline-start: auto; }

/* faq */
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s, border-color .2s; }
.faq[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-50); position: relative; transition: transform .25s, background .25s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq[open] summary i { background: var(--primary); }
.faq[open] summary i::before, .faq[open] summary i::after { background: #fff; }
.faq[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-body { padding: 0 22px 18px; color: var(--ink-2); }
.faq-body p { margin: 0; }
#faq .muted { margin-top: 2rem; }

/* cta band */
.cta-band { padding: 0 0 96px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: linear-gradient(135deg, var(--primary) 0%, #0a6f8f 100%); color: #fff; border-radius: 28px; padding: 48px 52px; position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .07); inset-inline-start: -80px; top: -120px; }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { margin: 0; opacity: .9; }
.cta-inner .btn { position: relative; z-index: 1; }

/* page hero */
.page-hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(700px 300px at 50% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%), var(--tint); }
.page-hero.compact { padding: 56px 0 40px; }
.page-hero .lead { max-width: 640px; margin-inline: auto; }

/* ---------- forms ---------- */
.card { background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-section { padding-top: 56px; }
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.form { padding: 32px; }
.form-title { font-size: 1.4rem; margin-bottom: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 0; margin-bottom: .1rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-50); }
.field input[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.field input, .field select { height: 52px; }
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: var(--danger-50); }
.field-error { color: var(--danger); font-size: .85rem; }
.chip-select { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span { display: inline-block; padding: .45rem .95rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; transition: all .15s; background: var(--surface); user-select: none; }
.chip-opt input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-50); }
.field.has-error .chip-opt span { border-color: #f1b7b9; }
.form-error { background: var(--danger-50); color: var(--danger); border-radius: 10px; padding: .7rem 1rem; font-weight: 500; }
.fine { font-size: .85rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.form-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.aside-card { padding: 26px; }
.aside-card h3 { margin-bottom: 1rem; }
.mini-steps { list-style: none; padding: 0; margin: 0; counter-reset: m; display: grid; gap: 1rem; }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 34px 1fr; column-gap: .8rem; }
.mini-steps li::before { content: counter(m, arabic-indic); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; }
.mini-steps span { color: var(--muted); font-size: .92rem; }
.guarantee { display: flex; gap: 1rem; align-items: center; background: var(--dark); color: #fff; border: 0; }
.guarantee svg { flex: none; width: 44px; height: 44px; color: var(--accent); }
.guarantee p { margin: 0; opacity: .8; }
.success-card { grid-column: 1 / -1; text-align: center; padding: 56px 24px; }
.success-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--primary); color: #fff; margin-bottom: 1.2rem; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.success-ic svg { width: 44px; height: 44px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* prose */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p { color: var(--ink-2); }

/* error pages */
.error-page { padding: 120px 0; }
.big-code { font-size: 7rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 1rem; opacity: .9; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-about p { margin: 1.2rem 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--accent); }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); }
.socials { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.socials svg { width: 20px; height: 20px; }
.stores { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.store-btn { border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; padding: .35rem .8rem; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.site-footer .pay-methods { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-methods li { background: rgba(255, 255, 255, .08); border-radius: 8px; padding: .15rem .7rem; font-weight: 600; font-size: .8rem; color: rgba(255, 255, 255, .85); }

.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .6); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s; visibility: hidden; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: .8rem; }
  .nav-cta { margin: .6rem 0 0; }
  .hero { padding: 32px 0 72px; }
  .hero-grid, .split, .form-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat:nth-child(3) { border: 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .form-aside { position: static; }
  .cta-inner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { white-space: normal; }
  .logo small { display: none; }
}

/* =========================================================
   Dark theme
   ========================================================= */
[data-theme="dark"] {
  --primary: #19b39a;
  --primary-600: #13a08a;
  --primary-50: rgba(25, 179, 154, .14);
  --ink: #e7eef5;
  --ink-2: #b9c7d4;
  --muted: #8b9cad;
  --line: #213447;
  --bg: #0b1621;
  --tint: #0f1c2a;
  --surface: #122232;
  --surface-2: #0f1d2b;
  --dark: #07111a;
  --header-bg: rgba(11, 22, 33, .86);
  --amber-50: rgba(255, 176, 32, .14);
  --amber-ink: #ffc75a;
  --danger-50: rgba(214, 69, 75, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
[data-theme="dark"] .hero-art img, [data-theme="dark"] .phone-art img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)) brightness(.95); }
[data-theme="dark"] .quote-card::before { color: rgba(25, 179, 154, .15); }
[data-theme="dark"] .section-dark { background: #081420; }
[data-theme="dark"] .stats-grid { background: #081420; border: 1px solid var(--line); }
[data-theme="dark"] .cta-inner { background: linear-gradient(135deg, #0c7a68 0%, #0a5670 100%); }

/* ---------- header tools ---------- */
.header-tools { display: flex; align-items: center; gap: .4rem; }
.icon-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font-weight: 700; font-size: .9rem; transition: border-color .2s, color .2s; }
.icon-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-account { display: inline-flex; align-items: center; gap: .3rem; margin-inline-start: .4rem; }
.nav-login { color: var(--ink-2); font-weight: 600; padding: .5rem .8rem; }
.avatar-sm { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: inline-grid; place-items: center; font-size: .8rem; }

/* ---------- LTR adjustments ---------- */
[dir="ltr"] .btn-arrow svg, [dir="ltr"] .flip-ltr { transform: scaleX(-1); }
[dir="ltr"] .btn:hover .btn-arrow { transform: translateX(4px); }
[dir="ltr"] .field input[dir="ltr"] { text-align: left; }
[dir="ltr"] .logo small { text-align: start; }
[dir="ltr"] body { letter-spacing: 0; }

/* =========================================================
   Accounts, teachers, exams, classroom
   ========================================================= */
.center-actions { justify-content: center; margin-top: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { display: inline-block; background: var(--primary-50); color: var(--primary); border-radius: 8px; padding: .1rem .6rem; font-size: .82rem; font-weight: 600; }
.tag.alt { background: var(--amber-50); color: var(--amber-ink); }
.tag.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.h-sm { font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
.pre { white-space: pre-line; }

/* curricula strip */
.curricula-strip { padding: 40px 0 0; }
.curricula-strip .container { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; }
.cur-pill { border: 1px solid var(--line); background: var(--surface); padding: .3rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.cur-pill.alt { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* segmented tabs */
.seg { display: inline-flex; gap: 4px; background: var(--tint); border: 1px solid var(--line); padding: 4px; border-radius: 999px; margin: 0 auto 2rem; }
.tabs-wrap { display: flex; flex-direction: column; align-items: stretch; }
.tabs-wrap .seg { align-self: center; }
.seg-btn { border: 0; background: none; padding: .5rem 1.2rem; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); font-family: inherit; }
.seg-btn.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.section-tint .seg { background: var(--surface); }
.section-tint .seg-btn.active { background: var(--primary); color: #fff; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; padding: 14px; margin-bottom: 26px; align-items: center; }
.filters select, .filters input { padding: .6rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 150px; font: inherit; color: var(--ink); }
.filter-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--line); border-radius: 12px; padding-inline-start: .7rem; background: var(--surface-2); }
.filter-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.filter-search input { border: 0; background: none; flex: 1; min-width: 0; padding-inline-start: 0; }
.filter-search input:focus { outline: none; }

/* teacher cards */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.teacher-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: .8rem; transition: transform .2s, box-shadow .2s; }
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.t-head { display: flex; gap: .8rem; align-items: center; color: var(--ink); }
.t-head:hover { color: var(--ink); }
.t-avatar { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; background: linear-gradient(135deg, var(--primary), #0a6f8f); color: #fff; }
.t-avatar.f { background: linear-gradient(135deg, #c2528b, #7c4dcc); }
.t-avatar.xl { width: 96px; height: 96px; border-radius: 26px; font-size: 2.4rem; }
.t-id { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.t-id small { color: var(--muted); }
.t-rating { color: var(--accent-600); font-weight: 700; white-space: nowrap; }
.t-rating small { color: var(--muted); font-weight: 500; }
.t-rating.new { color: var(--primary); background: var(--primary-50); border-radius: 999px; padding: 0 .6rem; font-size: .85rem; }
.t-bio { color: var(--ink-2); font-size: .94rem; margin: 0; flex: 1; }
.t-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .88rem; }
.btn-sm { padding: .4rem .9rem; font-size: .88rem; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state > svg { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--primary); }

/* teacher profile */
.profile-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.profile-main { padding: 32px; }
.profile-head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: .5rem; }
.profile-head h1 { font-size: 1.8rem; margin: 0; }
.profile-head p { margin: .2rem 0; }
.profile-book { position: sticky; top: 96px; }
.reviews { display: grid; gap: .8rem; }
.review { background: var(--tint); border-radius: 12px; padding: 12px 16px; }
.review p { margin: .3rem 0 0; }

/* exams */
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.exam-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: .6rem; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.exam-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.exam-ic svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--primary-50); color: var(--primary); box-sizing: content-box; }
.exam-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.exam-intro { padding: 32px; text-align: center; }
.exam-intro .tags { justify-content: center; margin-bottom: .8rem; }
.exam-facts { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin: 1rem 0 1.6rem; color: var(--ink-2); }
.exam-facts li { display: flex; align-items: center; gap: .4rem; }
.exam-facts svg { width: 20px; height: 20px; color: var(--primary); }
.exam-form { padding: 0 0 24px; overflow: hidden; }
.exam-form > .btn { margin: 0 24px; width: calc(100% - 48px); }
.exam-bar { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 1rem; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.exam-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exam-progress { color: var(--muted); font-weight: 600; }
.exam-timer { background: var(--primary-50); color: var(--primary); padding: .2rem .8rem; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.exam-timer.low { background: var(--danger-50); color: var(--danger); }
.question { border: 0; margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.question legend, .q-title { font-weight: 600; font-size: 1.08rem; display: flex; gap: .6rem; align-items: flex-start; padding: 0; margin-bottom: .9rem; }
.q-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: .9rem; }
.q-options { display: grid; gap: .5rem; }
.q-opt { display: block; cursor: pointer; }
.q-opt input { position: absolute; opacity: 0; }
.q-opt span { display: block; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.q-opt:hover span { border-color: var(--primary); }
.q-opt input:checked + span { border-color: var(--primary); background: var(--primary-50); font-weight: 600; }
.q-opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-50); }
.result-card { padding: 36px 24px; text-align: center; }
.score-ring { --p: 0; width: 150px; height: 150px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); }
.score-ring b { position: relative; font-size: 2rem; }
.review-title { margin: 2rem 0 1rem; }
.review-q { padding: 18px 20px; margin-bottom: 12px; border-inline-start: 4px solid var(--primary); }
.review-q.bad { border-inline-start-color: var(--danger); }
.q-review { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .35rem; }
.q-review li { padding: .45rem .8rem; border-radius: 10px; background: var(--surface-2); }
.q-review li.correct { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.q-review li.wrong { background: var(--danger-50); color: var(--danger); }
.q-expl { background: var(--amber-50); border-radius: 10px; padding: .6rem .9rem; margin: .5rem 0 0; }

/* auth */
.auth-wrap { padding: 56px 0 80px; background: radial-gradient(700px 300px at 50% 0%, var(--primary-50), transparent 70%); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 980px; }
.auth-card { padding: 34px; }
.auth-card h1, #signup-form h1 { font-size: 1.7rem; margin-bottom: .2rem; }
.auth-card .field { margin-bottom: 14px; }
.auth-alt { text-align: center; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.auth-side h2 { font-size: 1.6rem; }
.auth-points { list-style: none; padding: 0; display: grid; gap: 1rem; }
.auth-points li { display: flex; gap: .8rem; align-items: center; font-size: 1.05rem; }
.auth-points svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--primary-50); color: var(--primary); }
#signup-form { padding: 34px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.2rem 0 1.6rem; }
.role-card { cursor: pointer; position: relative; }
.role-card input { position: absolute; opacity: 0; }
.role-card span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 18px 12px; border: 2px solid var(--line); border-radius: 16px; transition: border-color .2s, background .2s; height: 100%; }
.role-card svg { width: 34px; height: 34px; color: var(--primary); }
.role-card small { color: var(--muted); line-height: 1.5; }
.role-card input:checked + span { border-color: var(--primary); background: var(--primary-50); }
.role-card input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-50); }
.note-inline { display: flex; gap: .6rem; align-items: flex-start; background: var(--primary-50); border-radius: 12px; padding: .7rem 1rem; margin: 0; font-size: .92rem; }
.note-inline svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: .2rem; }
.check-line { display: flex; gap: .6rem; align-items: center; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--primary); }
.check-line.has-error { color: var(--danger); }
.field.full, .note-inline.full, .check-line.full { grid-column: 1 / -1; }

/* classroom */
.class-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.class-head h1 { font-size: 1.6rem; margin: .4rem 0 .2rem; }
.class-head p { margin: 0; }
.class-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.class-actions svg { width: 18px; height: 18px; }
.badge-status { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--tint); color: var(--muted); }
.badge-status.st-scheduled { background: var(--primary-50); color: var(--primary); }
.badge-status.st-requested { background: var(--amber-50); color: var(--amber-ink); }
.badge-status.st-cancelled { background: var(--danger-50); color: var(--danger); }
.class-stage { padding: 24px; min-height: 280px; }
.class-wait, .join-panel { text-align: center; padding: 40px 10px; }
.class-wait svg { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--primary); }
.countdown { font-size: 2.6rem; font-weight: 700; color: var(--primary); direction: ltr; font-variant-numeric: tabular-nums; margin: .5rem 0; }
.live-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: pulse 1.6s infinite; margin-bottom: .6rem; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.call-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px; border-radius: 16px; overflow: hidden; background: #000; }
.call-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.teacher-tools { display: grid; gap: .8rem; margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.tool { border: 1px solid var(--line); border-radius: 14px; padding: .2rem 1rem; }
.tool summary { cursor: pointer; font-weight: 600; padding: .7rem 0; }
.tool-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding-bottom: 1rem; }
.tool-form.col { flex-direction: column; align-items: stretch; }
.tool-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .92rem; }
.tool-form input, .tool-form textarea, .tool-form select { padding: .6rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); font: inherit; color: var(--ink); flex: 1; min-width: 200px; }
.report-panel { max-width: 720px; margin: 0 auto; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
[dir="rtl"] .star-input { flex-direction: row-reverse; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }
.rate-form { background: var(--tint); border-radius: 14px; padding: 1rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .auth-grid, .profile-layout { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .profile-book { position: static; }
  .nav-account { margin: .6rem 0 0; flex-direction: column; align-items: stretch; }
  .nav-account .btn { justify-content: center; }
  .nav-login { text-align: center; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card span { flex-direction: row; text-align: start; }
  .call-frame { min-height: 320px; aspect-ratio: auto; height: 70vh; }
}
@media (max-width: 600px) {
  .exam-bar { top: 76px; padding: 10px 14px; }
  .question { padding: 18px 14px; }
  .auth-card, #signup-form { padding: 22px 16px; }
  .header-tools .icon-toggle { width: 36px; height: 36px; }
}

/* recordings */
.rec-banner { background: #e5484d; color: #fff; font-weight: 700; text-align: center; padding: .6rem 1rem; border-radius: 12px; margin-bottom: 14px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .75; } }
.recorder { margin-top: 1rem; border: 1px dashed var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.recorder.on { border: 2px solid #e5484d; background: rgba(229, 72, 77, .06); }
.rec-row { display: flex; justify-content: space-between; align-items: center; }
.rec-time { color: #e5484d; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; }
.btn-danger-solid { background: #e5484d !important; color: #fff !important; }
.recs h3 { margin: 1.6rem 0 .8rem; }
.rec-item { background: var(--tint); border-radius: 14px; padding: 10px; margin-bottom: 12px; }
.rec-item video { width: 100%; max-height: 460px; border-radius: 10px; background: #000; display: block; }
.rec-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.rec-meta span { flex: 1; }
.pay-demo-methods { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.pay-demo-methods span { border: 1px solid var(--line); border-radius: 8px; padding: .2rem .7rem; font-weight: 700; font-size: .85rem; }

/* ---------- email verification / password reset ---------- */
.narrow-sm { max-width: 520px; }
.auth-msg { padding: 44px 24px; }
.auth-msg .h2 { font-size: 1.5rem; margin: 0 0 .6rem; }
.auth-msg p { max-width: 440px; margin-inline: auto; }
.success-ic.warn { background: var(--amber, #f59e0b); font-size: 2.6rem; font-weight: 800; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.link-btn:disabled { opacity: .6; cursor: default; text-decoration: none; }
.form-extra { background: var(--primary-50); border-radius: 12px; padding: .7rem 1rem; margin: 0; font-size: .92rem; }
.auth-card .note-inline { margin-bottom: .4rem; }

/* ---------- step-by-step signup ---------- */
.wz-wrap { max-width: 860px; }
.wz-head { text-align: center; margin-bottom: 22px; }
.wz-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: .3rem 0 .4rem; }
.wz-head .kicker { color: var(--accent-600); }
.wz-steps { list-style: none; padding: 0; margin: 22px 0 10px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; text-align: start; }
.wz-steps li { border-top: 4px solid var(--line); padding-top: 10px; display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--muted); transition: border-color .25s; }
.wz-num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; background: var(--surface); }
.wz-steps li.active { border-color: var(--primary); color: var(--ink); font-weight: 700; }
.wz-steps li.active .wz-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.wz-steps li.done { border-color: var(--primary); color: var(--ink-2); cursor: pointer; }
.wz-steps li.done .wz-num { background: var(--primary-50); border-color: var(--primary); color: var(--primary); font-size: 0; }
.wz-steps li.done .wz-num::after { content: "✓"; font-size: .9rem; }
.wz-meta { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.wz-meta b { color: var(--primary); }
.wz-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.wz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; transition: width .35s ease; }
[dir="rtl"] .wz-bar i { background: linear-gradient(-90deg, var(--primary), var(--accent)); margin-inline-start: 0; }
.wz-card { padding: clamp(20px, 4vw, 36px); }
.wz-step h2 { font-size: 1.3rem; margin: 0 0 .2rem; }
.wz-step > .muted { margin: 0 0 1.2rem; }
.wz-step legend, .wz-step .field > label { font-weight: 600; }
.wz-step .field > .chip-select { margin-top: .35rem; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.wz-nav [data-wz-next], .wz-nav [data-wz-submit] { margin-inline-start: auto; min-width: 180px; }
.role-grid.two { grid-template-columns: repeat(2, 1fr); }
.teacher-cta { display: flex; align-items: center; gap: .8rem; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--ink-2); text-decoration: none; transition: border-color .2s, background .2s; }
.teacher-cta:hover { border-color: var(--primary); background: var(--primary-50); }
.teacher-cta svg { width: 28px; height: 28px; color: var(--primary); flex: none; }
.teacher-cta b { color: var(--ink); }
.teacher-cta .arrow { margin-inline-start: auto; color: var(--primary); font-weight: 700; }
.hint { display: block; color: var(--muted); font-size: .84rem; margin: -.1rem 0 .45rem; }
.hint a { color: var(--primary); font-weight: 700; }
.dropzone { position: relative; display: block; border: 2px dashed var(--line); border-radius: 14px; background: var(--surface-2); padding: 18px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-50); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone input[type=file]:disabled { pointer-events: none; }
.dropzone > span { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.dropzone svg { width: 26px; height: 26px; color: var(--primary); }
.dropzone small { color: var(--muted); }
.dropzone.is-done { border-style: solid; border-color: var(--primary); background: var(--primary-50); cursor: default; }
.dropzone .dz-done { flex-direction: row; justify-content: center; gap: .6rem; flex-wrap: wrap; position: relative; z-index: 1; }
.dropzone .dz-done b { word-break: break-all; }
.dz-prog { display: block; width: min(280px, 80%); height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dz-prog > i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.field.has-error .dropzone { border-color: var(--danger); }
.hours-total { display: flex; flex-direction: column; justify-content: center; padding: .6rem 1rem; border-radius: 12px; background: var(--amber-50); }
.hours-total b { font-size: 1.4rem; color: var(--amber-ink); }
.hours-total small { color: var(--amber-ink); }
.hours-total.ok { background: var(--primary-50); }
.hours-total.ok b, .hours-total.ok small { color: var(--primary); }
.chip-opt.day span { min-width: 92px; text-align: center; }
@media (max-width: 600px) {
  .wz-label { display: none; }
  .wz-steps li.active .wz-label { display: inline; }
  .role-grid.two { grid-template-columns: 1fr; }
  .wz-nav .btn { min-width: 0; flex: 1; }
}
.req-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.req-list li { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.req-list svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--primary-50); color: var(--primary); }
.req-list b { display: block; margin-bottom: .2rem; }
.req-list span { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 600px) { .req-list { grid-template-columns: 1fr; } }
#exp-box { grid-column: 1 / -1; }
.dropzone input[type=file] { height: 100%; padding: 0; border: 0; }
.dropzone { width: 100%; box-sizing: border-box; }
.dropzone.is-done { padding: 14px 18px; }
