*{box-sizing:border-box}
:root{
  --primary:#2458d6;
  --primary-dark:#173fa7;
  --primary-soft:#edf3ff;
  --primary-lighter:#f7f9ff;
  --accent:#6c63ff;
  --text:#172033;
  --muted:#68728a;
  --line:#e3e8f2;
  --surface:#fff;
  --bg:#f4f7fc;
  --success:#0f8f61;
  --warning-bg:#fff8e7;
  --warning-line:#f2ddb1;
  --shadow:0 18px 52px rgba(27,42,86,.10);
  --shadow-soft:0 8px 26px rgba(27,42,86,.07);
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Cairo",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 93% 0%,rgba(71,110,224,.14),transparent 31%),
    radial-gradient(circle at 5% 35%,rgba(108,99,255,.08),transparent 27%),
    var(--bg);
  color:var(--text);
  min-height:100vh;
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}


/* ===== Intro splash / 7-second opening experience ===== */
body.splash-active{overflow:hidden}
.intro-splash{
  position:fixed;inset:0;z-index:9999;display:grid;place-items:center;overflow:hidden;
  padding:clamp(20px,5vw,56px);background:
    radial-gradient(circle at 82% 16%,rgba(126,152,255,.30),transparent 28%),
    radial-gradient(circle at 12% 84%,rgba(111,86,255,.20),transparent 30%),
    linear-gradient(145deg,#10266f 0%,#2458d6 49%,#496ee0 100%);
  color:#fff;isolation:isolate;opacity:1;visibility:visible;
  transition:opacity .5s ease,visibility .5s ease
}
.intro-splash::before{
  content:"";position:absolute;inset:0;z-index:-1;opacity:.42;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.85),transparent 88%)
}
.intro-splash.is-leaving{opacity:0;visibility:hidden;pointer-events:none}
.splash-orb{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none;opacity:.55}
.splash-orb-one{width:min(52vw,620px);aspect-ratio:1;right:-22vw;top:-20vw;background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 68%);animation:splashFloat 5.8s ease-in-out infinite alternate}
.splash-orb-two{width:min(44vw,520px);aspect-ratio:1;left:-18vw;bottom:-22vw;background:radial-gradient(circle,rgba(149,166,255,.25),rgba(255,255,255,0) 70%);animation:splashFloat 6.5s ease-in-out infinite alternate-reverse}
.splash-content{width:min(720px,100%);display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;z-index:2}
.splash-logo-wrap{position:relative;width:clamp(116px,17vw,154px);height:clamp(116px,17vw,154px);margin-bottom:24px;display:grid;place-items:center}
.splash-logo-wrap::before,.splash-logo-wrap::after{content:"";position:absolute;border-radius:34%;inset:4px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);transform:rotate(9deg);box-shadow:0 26px 70px rgba(5,22,78,.24)}
.splash-logo-wrap::after{inset:15px;background:rgba(255,255,255,.07);transform:rotate(-7deg);border-color:rgba(255,255,255,.12)}
.splash-logo{position:relative;z-index:2;width:88px;height:78px;border-radius:23px;background:rgba(255,255,255,.98);box-shadow:0 18px 46px rgba(6,23,75,.28);transform:translateZ(0);animation:splashLogoIn .85s cubic-bezier(.2,.9,.25,1.18) both}
.splash-logo::after{content:"";position:absolute;left:15px;bottom:-12px;width:24px;height:24px;background:#fff;clip-path:polygon(0 0,100% 0,0 100%)}
.splash-logo-line{position:absolute;right:17px;height:7px;border-radius:99px;background:linear-gradient(90deg,#6b84e8,#2458d6)}
.splash-logo-line.line-one{top:25px;width:53px}.splash-logo-line.line-two{top:42px;width:39px}
.splash-logo-cursor{position:absolute;left:18px;top:42px;width:7px;height:14px;border-radius:3px;background:#2458d6;animation:splashBlink .75s steps(1) infinite}
.splash-logo-spark{position:absolute;color:#fff;text-shadow:0 4px 12px rgba(27,49,132,.25);line-height:1}
.spark-one{font-size:26px;right:-22px;top:-12px;animation:sparkPulse 1.8s ease-in-out infinite}
.spark-two{font-size:15px;left:-20px;bottom:0;animation:sparkPulse 1.8s .45s ease-in-out infinite}
.splash-kicker{display:inline-flex;align-items:center;justify-content:center;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-size:12px;font-weight:800;color:#eef3ff;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.splash-brand h1{margin:12px 0 2px;font-size:clamp(29px,6vw,48px);line-height:1.35;letter-spacing:-.8px;text-wrap:balance}
.splash-brand-en{margin:2px 0 0;color:#ffd66b;font-size:clamp(24px,4.5vw,38px);font-weight:800;letter-spacing:.35px;line-height:1.3;text-shadow:0 5px 18px rgba(18,32,88,.28)}
.splash-message{margin-top:27px;width:min(690px,100%);padding:20px 24px;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.06));box-shadow:inset 0 1px rgba(255,255,255,.11),0 14px 38px rgba(8,25,81,.10);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.splash-message strong{display:block;font-size:clamp(20px,3.6vw,28px);line-height:1.7;text-wrap:balance}
.splash-loading{width:min(430px,88%);margin-top:25px}
.splash-progress{height:5px;border-radius:999px;background:rgba(255,255,255,.18);overflow:hidden;box-shadow:inset 0 1px 2px rgba(6,20,65,.18)}
.splash-progress span{display:block;height:100%;width:0;background:#fff;border-radius:inherit;box-shadow:0 0 16px rgba(255,255,255,.65);animation:splashProgress 7s linear forwards}
.splash-loading-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin-top:11px;color:#eaf0ff;text-align:center}
.splash-loading-status b{display:grid;place-items:center;min-width:38px;height:34px;padding:0 9px;border-radius:11px;background:rgba(255,255,255,.14);color:#fff;font-size:15px;font-weight:800;border:1px solid rgba(255,255,255,.18);box-shadow:0 8px 20px rgba(9,28,91,.12)}
.splash-loading-status span{font-size:13px;font-weight:600;line-height:1.5}
@keyframes splashProgress{to{width:100%}}
@keyframes splashBlink{0%,47%{opacity:1}48%,100%{opacity:.15}}
@keyframes sparkPulse{0%,100%{transform:scale(.8) rotate(-8deg);opacity:.55}50%{transform:scale(1.14) rotate(7deg);opacity:1}}
@keyframes splashLogoIn{from{opacity:0;transform:translateY(14px) scale(.84) rotate(-4deg)}to{opacity:1;transform:none}}
@keyframes splashFloat{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(20px,-16px,0) scale(1.06)}}
.topbar{
  padding:24px clamp(18px,5vw,70px);
  background:linear-gradient(126deg,#142e83 0%,#2458d6 52%,#557be6 100%);
  color:#fff;
  box-shadow:0 8px 28px rgba(22,50,131,.18)
}
.topbar-inner{max-width:1320px;margin:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:16px;min-width:0}
.brand-icon{
  width:58px;height:58px;border-radius:19px;display:grid;place-items:center;
  background:rgba(255,255,255,.14);font-size:28px;border:1px solid rgba(255,255,255,.25);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18)
}
.brand-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brand h1{margin:0;font-size:clamp(22px,3vw,34px);letter-spacing:-.3px}
.brand p{margin:4px 0 0;color:#e8eeff;line-height:1.8}
.version-badge{font-size:11px;font-weight:800;padding:5px 9px;border-radius:99px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2)}
.app-shell{
  max-width:1320px;margin:28px auto;padding:0 18px 54px;
  display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"wizard progress";gap:22px;align-items:start
}
.progress-card,.wizard-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.progress-card{grid-area:progress;padding:22px;position:sticky;top:18px}
.wizard-card{grid-area:wizard;padding:clamp(20px,4vw,38px);min-width:0}
.aside-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.aside-title span{font-weight:800;font-size:17px}
.aside-title strong{font-size:12px;color:var(--primary);background:var(--primary-soft);padding:5px 9px;border-radius:99px}
.progress-card ol{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.progress-card li{display:flex;align-items:center;gap:11px;padding:10px;border-radius:14px;color:var(--muted);transition:.2s;cursor:pointer}
.progress-card li>span{
  flex:0 0 30px;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;
  border:1px solid var(--line);background:#fff;font-size:12px;font-weight:800
}
.progress-card li div{display:flex;flex-direction:column;min-width:0}
.progress-card li strong{font-size:13px;color:inherit}
.progress-card li small{font-size:10.5px;color:#9199aa;margin-top:1px}
.progress-card li.active{background:var(--primary-soft);color:var(--primary)}
.progress-card li.active>span,.progress-card li.done>span{background:var(--primary);color:#fff;border-color:var(--primary)}
.progress-card li.done{color:var(--text)}
.progress-card li:hover{background:#f8faff}
.context-card{margin-top:20px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fbfcff}
.context-label{display:block;font-size:11px;font-weight:800;color:var(--muted);margin-bottom:7px}
.context-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px dashed #e6eaf2;font-size:12px}
.context-row:first-of-type{border-top:0}
.context-row span{color:var(--muted)}
.context-row strong{max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tip{margin-top:18px;padding:14px;border-radius:15px;background:var(--warning-bg);border:1px solid var(--warning-line)}
.tip strong{font-size:13px}.tip p{font-size:11.5px;line-height:1.85;margin:5px 0 0;color:#705d35}
.wizard-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.wizard-head-actions{display:flex;align-items:center;gap:10px}
.eyebrow{color:var(--primary);font-size:12px;font-weight:800}
.wizard-head h2{font-size:clamp(21px,3vw,30px);margin:5px 0;letter-spacing:-.2px}
.wizard-head p{margin:0;color:var(--muted);line-height:1.8;font-size:14px}
.ghost-btn,.secondary-btn,.primary-btn{border:0;border-radius:12px;padding:11px 18px;font-weight:800;transition:.2s;white-space:nowrap}
.ghost-btn{background:#f2f4f8;color:#596176}
.ghost-btn:hover{background:#e9edf4}
.primary-btn{background:var(--primary);color:#fff;box-shadow:0 8px 18px rgba(36,88,214,.22)}
.primary-btn:hover{background:var(--primary-dark);transform:translateY(-1px)}
.secondary-btn{background:#eef1f7;color:#384158}
.secondary-btn:hover{background:#e5e9f1}
.progress-track{height:7px;background:#edf0f6;border-radius:99px;margin:23px 0 29px;overflow:hidden}
.progress-track span{display:block;height:100%;width:16.66%;background:linear-gradient(90deg,var(--primary),#7a91ee);transition:.3s}
.step-panel{display:none;animation:fade .24s ease}.step-panel.active{display:block}
@keyframes fade{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:none}}
.section-intro{margin-bottom:17px}.compact-intro{margin-top:0}.section-intro h3{font-size:20px;margin:3px 0 2px}.section-intro p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.section-kicker{font-size:11px;font-weight:800;color:var(--primary);background:var(--primary-soft);padding:4px 8px;border-radius:99px}.section-divider{height:1px;background:var(--line);margin:28px 0}
.choice-grid{display:grid;gap:12px}.choice-grid.two{grid-template-columns:repeat(2,1fr)}.choice-grid.four{grid-template-columns:repeat(4,1fr)}
.choice-card{position:relative;padding:19px;border:1.5px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:6px;min-height:132px;transition:.18s;cursor:pointer;background:#fff;box-shadow:0 2px 0 rgba(22,36,72,.015)}
.choice-card:hover{border-color:#bdc9e7;transform:translateY(-1px);box-shadow:var(--shadow-soft)}
.choice-card input{position:absolute;opacity:0;pointer-events:none}
.choice-card:has(input:checked){border-color:var(--primary);background:linear-gradient(180deg,#f7f9ff,#edf3ff);box-shadow:0 0 0 3px rgba(36,88,214,.07)}
.choice-card:has(input:checked)::after{content:"✓";position:absolute;top:11px;left:11px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:white;font-size:12px;font-weight:800}
.choice-icon{font-size:26px;line-height:1}.choice-card strong{font-size:15px}.choice-card small{color:var(--muted);line-height:1.65;font-size:11.5px}.school-card{min-height:142px}.compact-card{min-height:124px;padding:17px}.output-card{min-height:112px;padding:15px}.output-card .choice-icon{font-size:23px}.output-card small{font-size:10.5px}
.field-group{margin-top:20px}.field-group.no-top{margin-top:0}.field-group>label{display:block;margin-bottom:8px;font-weight:800;font-size:13px}
input[type=text],input[type=number],input[type=url],select,textarea{width:100%;border:1px solid #d9dfeb;border-radius:13px;padding:12px 13px;background:#fff;color:var(--text);outline:none;transition:.18s}
textarea{resize:vertical;line-height:1.85;min-height:90px}
input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(36,88,214,.08)}
select{cursor:pointer}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
.field-meta{font-size:11px;color:var(--muted);margin-top:6px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.field-hint{font-size:11px;color:var(--muted);margin-top:7px}
.chips{display:flex;flex-wrap:wrap;gap:8px}.chips label{border:1px solid var(--line);padding:8px 11px;border-radius:99px;background:#fff;font-size:12px;cursor:pointer;transition:.15s}.chips label:hover{border-color:#c5cfe4}.chips label:has(input:checked){background:var(--primary-soft);border-color:#b7c6ef;color:var(--primary);font-weight:700}.chips input{accent-color:var(--primary)}
.notice,.attachment-reminder,.web-reminder{margin-top:11px;border-radius:12px;padding:12px 14px;background:var(--warning-bg);color:#735d31;border:1px solid var(--warning-line);font-size:12px;line-height:1.8}
.section-box{margin-top:21px;padding:19px;border:1px solid var(--line);border-radius:18px;background:#fbfcff}.section-box h3{margin:0;color:var(--primary-dark);font-size:16px}.section-box.soft-box{background:#f9fbff}.section-help{margin:4px 0 15px;color:var(--muted);font-size:12px}.section-box-head{display:flex;justify-content:space-between;gap:15px;align-items:start}
.output-types{grid-template-columns:repeat(7,minmax(0,1fr));margin-top:15px}.dynamic-output-fields{margin-top:6px;padding-top:2px}
.mobile-only{display:none!important}
.mobile-step-overview{display:none}
.mobile-overview-head h3{margin:10px 0 4px;font-size:23px}.mobile-overview-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.9}
.mobile-step-cards{display:grid;gap:12px;margin-top:16px}
.mobile-step-card{border:1px solid var(--line);border-radius:22px;background:#fff;padding:16px 18px;text-align:right;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:var(--shadow-soft);cursor:pointer;transition:.18s}
.mobile-step-card:hover{transform:translateY(-1px);border-color:#c9d4ed}.mobile-step-card.active{background:linear-gradient(180deg,#f7f9ff,#edf3ff);border-color:#b8c7f1}
.mobile-step-card-num{flex:0 0 50px;width:50px;height:50px;border-radius:18px;display:grid;place-items:center;background:#eef2ff;color:var(--primary);font-size:22px;font-weight:800}
.mobile-step-card.active .mobile-step-card-num{background:#4360d1;color:#fff}.mobile-step-card-text strong{display:block;font-size:15px;color:var(--text)}.mobile-step-card-text small{display:block;margin-top:3px;color:var(--muted);font-size:11.5px;line-height:1.65}
.wizard-actions{display:flex;align-items:center;margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}.spacer{flex:1}
.result-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.result-head h3{margin:6px 0 2px;font-size:23px}.result-head p{margin:0;color:var(--muted);font-size:13px}.result-actions{display:flex;gap:8px;flex-wrap:wrap}.ready-badge{display:inline-flex;align-items:center;background:#eaf8f1;color:var(--success);border:1px solid #c9eadb;padding:4px 8px;border-radius:99px;font-size:11px;font-weight:800}
.prompt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #2b3448;border-bottom:0;background:#1a2231;color:#b9c4d8;border-radius:14px 14px 0 0;font-size:11px}.prompt-output{min-height:520px;background:#111827;color:#f3f4f6;border:1px solid #2b3448;border-radius:0 0 14px 14px;direction:rtl;font-family:"Cairo",system-ui,sans-serif;font-size:13px;line-height:1.95;padding:17px}.prompt-output:focus{box-shadow:none;border-color:#3e4a62}
.hidden{display:none!important}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#172033;color:#fff;border-radius:12px;padding:11px 18px;opacity:0;pointer-events:none;transition:.25s;z-index:20;font-size:13px;box-shadow:0 10px 25px rgba(16,25,45,.18)}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1180px){.output-types{grid-template-columns:repeat(4,1fr)}.choice-grid.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:930px){.app-shell{grid-template-columns:1fr;grid-template-areas:"progress" "wizard"}.progress-card{position:static}.progress-card ol{grid-template-columns:repeat(3,1fr)}.progress-card li{align-items:flex-start}.context-card,.tip{display:none}}
@media(max-width:680px){.topbar{padding:18px 15px}.topbar-inner{flex-direction:column;align-items:stretch;gap:14px}.brand{align-items:flex-start}.brand-icon{width:46px;height:46px;border-radius:14px;flex:0 0 46px}.brand p{font-size:11.5px}.version-badge{display:none}.app-shell{margin-top:14px;padding:0 10px 30px}.progress-card{display:none}.wizard-card{border-radius:18px;padding:17px 13px}.wizard-head{align-items:flex-start}.wizard-head p{font-size:12px}.wizard-head-actions{gap:8px}.ghost-btn{padding:8px 10px;font-size:11px}.mobile-only{display:inline-flex!important}.choice-grid.two,.choice-grid.four,.form-grid{grid-template-columns:1fr}.choice-card{min-height:auto}.source-grid{grid-template-columns:1fr 1fr!important}.output-types{grid-template-columns:1fr 1fr}.result-head{align-items:flex-start;flex-direction:column}.result-actions{width:100%}.result-actions button{flex:1}.wizard-actions button{min-width:100px}.prompt-output{min-height:440px;font-size:12px}.section-box{padding:15px}.mobile-step-overview{display:block}.mobile-step-card{padding:15px 16px}.mobile-step-card-num{width:44px;height:44px;border-radius:16px;font-size:20px}body.mobile-overview-mode .progress-track,body.mobile-overview-mode #promptForm{display:none}body.mobile-overview-mode #mobileStepOverview{display:block}}
@media(max-width:430px){.brand h1{font-size:20px}.brand p{display:none}.source-grid,.output-types{grid-template-columns:1fr!important}.choice-card.compact-card,.output-card{min-height:auto}.wizard-actions{gap:8px}.wizard-actions button{flex:1}.spacer{display:none}}

/* =========================================================
   UI refresh — bilingual identity, right-side creation path,
   gender-aware school cards, and mobile-first polish.
   ========================================================= */
:root{
  --boys-bg:#edf6ff;
  --boys-bg-strong:#e2f0ff;
  --boys-border:#a9cff8;
  --boys-text:#185a9d;
  --girls-bg:#fff0f6;
  --girls-bg-strong:#ffe6f0;
  --girls-border:#f3b9d1;
  --girls-text:#ad3f70;
  --glass:rgba(255,255,255,.86);
}

body{overflow-x:hidden}

/* Header */
.topbar{position:relative;overflow:hidden}
.topbar::before,.topbar::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.topbar::before{width:260px;height:260px;inset:-150px auto auto -50px;background:rgba(255,255,255,.07)}
.topbar::after{width:180px;height:180px;inset:auto 14% -125px auto;background:rgba(255,255,255,.06)}
.topbar-inner{position:relative;z-index:1}
.brand-line{display:flex;flex-direction:column;align-items:flex-start;gap:1px}

/* Usage notice modal */
body.notice-modal-open{overflow:hidden}
.notice-modal{position:fixed;inset:0;z-index:9000;display:grid;place-items:center;padding:18px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .24s ease,visibility .24s ease}
.notice-modal.is-open{opacity:1;visibility:visible;pointer-events:auto}
.notice-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:rgba(10,18,43,.58);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);cursor:default}
.notice-modal-card{position:relative;z-index:1;width:min(620px,100%);max-height:min(88vh,680px);overflow:auto;padding:31px 30px 27px;border-radius:28px;background:#fff;color:#111827;border:1px solid rgba(255,255,255,.85);box-shadow:0 30px 90px rgba(5,19,60,.32);text-align:center;transform:translateY(16px) scale(.975);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.notice-modal.is-open .notice-modal-card{transform:none}
.notice-modal-close{position:absolute;top:13px;left:13px;width:38px;height:38px;border:0;border-radius:12px;background:#f0f3f8;color:#3f485c;font-size:25px;line-height:1;display:grid;place-items:center;transition:.18s ease}
.notice-modal-close:hover{background:#e6ebf3;color:#172033;transform:rotate(3deg)}
.notice-modal-mark{width:58px;height:58px;margin:0 auto 11px;border-radius:19px;display:grid;place-items:center;background:linear-gradient(145deg,#edf3ff,#dce7ff);color:#2458d6;font-size:25px;box-shadow:0 10px 25px rgba(36,88,214,.14)}
.notice-modal-kicker{display:inline-flex;padding:5px 11px;border-radius:999px;background:#edf3ff;color:#2458d6;font-size:11px;font-weight:800}
.notice-modal-card h2{margin:8px 0 14px;font-size:22px;color:#172033}
.notice-modal-card p{margin:0;font-size:14px;line-height:2;color:#2f3748}
.notice-modal-card p+p{margin-top:8px}
.notice-modal-credit{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:17px;padding-top:15px;border-top:1px solid #e7eaf1}
.notice-modal-credit strong{font-size:14px;line-height:1.8;color:#101828}
.notice-modal-credit a{font-size:14px;font-weight:800;color:#2458d6;text-decoration:none;direction:ltr}
.notice-modal-credit a:hover{text-decoration:underline}
.notice-modal-button{min-width:145px;margin-top:18px;border:0;border-radius:13px;padding:11px 22px;background:#2458d6;color:#fff;font-weight:800;box-shadow:0 9px 20px rgba(36,88,214,.22);transition:.18s ease}
.notice-modal-button:hover{background:#173fa7;transform:translateY(-1px)}

/* Keep the creation path physically on the right on desktop. */
.app-shell{
  direction:ltr;
  grid-template-columns:minmax(0,1fr) 318px;
  grid-template-areas:"wizard progress";
  gap:24px;
}
.progress-card,.wizard-card{direction:rtl}
.progress-card{overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%)}
.progress-card::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,#6c63ff,var(--primary))}
.progress-card li{position:relative;padding:11px 12px}
.progress-card li.active{box-shadow:inset -3px 0 0 var(--primary)}
.progress-card li.done>span{box-shadow:0 0 0 4px rgba(36,88,214,.08)}

/* School selection: no emoji, color is the visual cue. */
.school-card{min-height:150px;justify-content:center;overflow:hidden;padding:22px 24px;border-width:1.5px}
.school-card::before{content:"";position:absolute;inset:0 0 0 auto;width:5px;border-radius:0 18px 18px 0;opacity:.9}
.school-card-label{align-self:flex-start;padding:5px 9px;border-radius:999px;font-size:10.5px;font-weight:800;line-height:1.2}
.school-card strong{font-size:17px;margin-top:2px}
.school-card small{font-size:11.5px;line-height:1.9}
.boys-card{background:linear-gradient(145deg,#fff 0%,var(--boys-bg) 100%);border-color:var(--boys-border)}
.boys-card::before{background:#559ce4}
.boys-card .school-card-label{background:#dceeff;color:var(--boys-text)}
.girls-card{background:linear-gradient(145deg,#fff 0%,var(--girls-bg) 100%);border-color:var(--girls-border)}
.girls-card::before{background:#df78a7}
.girls-card .school-card-label{background:#ffe0ed;color:var(--girls-text)}
.boys-card:hover{border-color:#72afea;box-shadow:0 12px 28px rgba(49,118,185,.11)}
.girls-card:hover{border-color:#e58caf;box-shadow:0 12px 28px rgba(180,65,113,.10)}
.choice-card.boys-card:has(input:checked){background:linear-gradient(145deg,#f9fcff 0%,var(--boys-bg-strong) 100%);border-color:#438fd9;box-shadow:0 0 0 3px rgba(67,143,217,.10),0 10px 24px rgba(49,118,185,.10)}
.choice-card.girls-card:has(input:checked){background:linear-gradient(145deg,#fffafd 0%,var(--girls-bg-strong) 100%);border-color:#d86698;box-shadow:0 0 0 3px rgba(216,102,152,.10),0 10px 24px rgba(180,65,113,.09)}
.choice-card.boys-card:has(input:checked)::after{background:#438fd9}
.choice-card.girls-card:has(input:checked)::after{background:#d86698}

/* Form & card refinement */
.wizard-card{background:linear-gradient(180deg,#fff 0%,#fefeff 100%)}
.choice-card{box-shadow:0 5px 18px rgba(25,42,85,.035)}
input[type=text],input[type=number],input[type=url],select,textarea{background:#fff;box-shadow:0 1px 0 rgba(22,36,72,.02)}
input[type=text]:hover,input[type=number]:hover,input[type=url]:hover,select:hover,textarea:hover{border-color:#c7d1e4}
.primary-btn,.secondary-btn,.ghost-btn{min-height:44px}
.primary-btn{background:linear-gradient(135deg,var(--primary),#496fdd)}
.primary-btn:active,.secondary-btn:active,.ghost-btn:active{transform:translateY(1px)}
.progress-track{height:8px;box-shadow:inset 0 1px 2px rgba(26,41,80,.04)}
.progress-track span{box-shadow:0 0 14px rgba(36,88,214,.24)}

/* Mobile creation path cards */
.mobile-overview-head{padding:18px;border:1px solid #dfe7f7;border-radius:22px;background:linear-gradient(145deg,#f8fbff,#eef4ff);box-shadow:0 9px 24px rgba(35,67,136,.06)}
.mobile-overview-head h3{margin:8px 0 3px}
.mobile-step-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mobile-step-card{min-height:145px;padding:14px;align-items:stretch;justify-content:flex-start;flex-direction:column;text-align:right;border-radius:20px;box-shadow:0 8px 22px rgba(27,42,86,.055)}
.mobile-step-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile-step-card-num{flex:0 0 40px;width:40px;height:40px;border-radius:13px;font-size:17px}
.mobile-step-state{font-size:9.5px;font-weight:800;color:#7a8499;background:#f4f6fa;border:1px solid #e8ebf2;border-radius:999px;padding:4px 7px;white-space:nowrap}
.mobile-step-card-text{margin-top:auto;padding-top:14px}
.mobile-step-card-text strong{font-size:14px;line-height:1.5}
.mobile-step-card-text small{font-size:10.5px;line-height:1.65}
.mobile-step-card.active{background:linear-gradient(145deg,#f7faff,#eaf1ff);border-color:#9db4ef;box-shadow:0 10px 28px rgba(44,83,184,.13)}
.mobile-step-card.active .mobile-step-state{color:var(--primary);background:#fff;border-color:#c9d5f5}
.mobile-step-card.done{border-color:#d7e2f6;background:#fbfdff}
.mobile-step-card.done .mobile-step-state{color:#0f8f61;background:#eef9f4;border-color:#d6eee3}
.mobile-step-card.done .mobile-step-card-num{background:#eaf8f1;color:#0f8f61}

@media(max-width:930px){
  .app-shell{direction:rtl;grid-template-columns:1fr;grid-template-areas:"progress" "wizard";gap:16px}
}

@media(max-width:680px){
  body{background:linear-gradient(180deg,#eff4ff 0,#f7f9fd 210px,#f4f7fc 100%)}
  .topbar{padding:16px 14px 20px;border-radius:0 0 28px 28px;box-shadow:0 10px 28px rgba(22,50,131,.16)}
  .topbar-inner{gap:12px}
  .brand{gap:12px}
  .brand-icon{width:44px;height:44px;flex-basis:44px;border-radius:15px;font-size:23px}
  .brand h1{font-size:25px;line-height:1.45}

  .app-shell{margin-top:12px;padding:0 9px 26px}
  .wizard-card{border-radius:22px;padding:15px 12px 18px;border-color:#e0e6f1;box-shadow:0 12px 34px rgba(27,42,86,.08)}
  .wizard-head{gap:12px;flex-wrap:wrap}
  .wizard-head>div:first-child{min-width:0;flex:1}
  .wizard-head h2{font-size:22px;line-height:1.55;margin-top:3px}
  .wizard-head p{font-size:13px;line-height:1.85}
  .wizard-head-actions{margin-inline-start:auto}
  .eyebrow{font-size:11.5px}
  .progress-track{margin:17px 0 20px;height:6px}

  .section-intro h3{font-size:20px}
  .section-intro p{font-size:13px;line-height:1.85}
  .section-kicker{font-size:11px}
  .field-group>label{font-size:14px}
  input[type=text],input[type=number],input[type=url],select,textarea{padding:13px;border-radius:12px;font-size:14px}

  /* Keep boys/girls side-by-side on most phones for a clearer first choice. */
  .school-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  .school-card{min-height:150px;padding:15px 13px;border-radius:17px}
  .school-card::before{width:4px;border-radius:0 17px 17px 0}
  .school-card-label{font-size:9px;padding:4px 7px}
  .school-card strong{font-size:15.5px}
  .school-card small{font-size:11px;line-height:1.8}
  .choice-card:has(input:checked)::after{width:22px;height:22px;top:9px;left:9px;font-size:11px}

  .source-grid{grid-template-columns:1fr 1fr!important;gap:9px}
  .source-grid .choice-card{padding:14px;min-height:112px}
  .output-types{gap:9px}

  .mobile-step-overview{display:block}
  .mobile-step-cards{margin-top:12px}

  /* Always-accessible navigation on long mobile forms. */
  .wizard-actions{position:sticky;bottom:8px;z-index:12;margin:24px -2px 0;padding:9px;border:1px solid rgba(210,218,234,.9);border-radius:17px;background:var(--glass);box-shadow:0 10px 30px rgba(24,38,74,.14);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .wizard-actions button{min-height:43px}
  .prompt-output{min-height:380px;border-radius:0 0 13px 13px;line-height:1.85}
  .prompt-toolbar{border-radius:13px 13px 0 0}
  .notice-modal{padding:13px}
  .notice-modal-card{padding:28px 18px 22px;border-radius:23px;max-height:90vh}
  .notice-modal-close{top:10px;left:10px;width:36px;height:36px;border-radius:11px;font-size:23px}
  .notice-modal-mark{width:53px;height:53px;border-radius:17px;font-size:23px;margin-bottom:9px}
  .notice-modal-card h2{font-size:21px;margin:7px 0 12px}
  .notice-modal-card p{font-size:14.2px;line-height:1.95}
  .notice-modal-credit strong{font-size:13.8px;line-height:1.8}
  .notice-modal-credit a{font-size:14px}
  .notice-modal-button{width:100%;min-height:45px;font-size:14px}
  .choice-card strong{font-size:15px}
  .choice-card small{font-size:11.5px;line-height:1.75}
  .mobile-step-card-text strong{font-size:14.5px}
  .mobile-step-card-text small{font-size:11.2px}
}

@media(max-width:430px){
  .mobile-step-cards{grid-template-columns:1fr}
  .mobile-step-card{min-height:0;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-areas:"top text";column-gap:10px;align-items:center;padding:13px 14px}
  .mobile-step-card-top{grid-area:top;display:flex;flex-direction:column;justify-content:center;gap:5px}
  .mobile-step-card-text{grid-area:text;margin:0;padding:0}
  .mobile-step-state{font-size:8.5px;padding:3px 5px}
  .mobile-step-card-text strong{font-size:13.5px}
  .mobile-step-card-text small{font-size:10px}
  .source-grid{grid-template-columns:1fr 1fr!important}
  .output-types{grid-template-columns:1fr 1fr!important}
}

@media(max-width:360px){
  .school-type-grid{grid-template-columns:1fr!important}
  .school-card{min-height:125px}
  .source-grid,.output-types{grid-template-columns:1fr!important}
}



@media(max-width:680px){
  .intro-splash{padding:20px 17px 24px;align-items:center;background:radial-gradient(circle at 82% 9%,rgba(142,163,255,.30),transparent 27%),linear-gradient(155deg,#122b78 0%,#2458d6 54%,#4e72df 100%)}
  .intro-splash::before{background-size:30px 30px;opacity:.30}
  .splash-content{max-width:430px}
  .splash-logo-wrap{width:112px;height:112px;margin-bottom:17px}
  .splash-logo-wrap::before{border-radius:30px}.splash-logo-wrap::after{border-radius:25px}
  .splash-logo{width:74px;height:66px;border-radius:19px}
  .splash-logo::after{left:13px;bottom:-10px;width:20px;height:20px}
  .splash-logo-line{right:14px;height:6px}.splash-logo-line.line-one{top:21px;width:45px}.splash-logo-line.line-two{top:36px;width:33px}
  .splash-logo-cursor{left:15px;top:35px;width:6px;height:13px}
  .spark-one{font-size:22px;right:-18px}.spark-two{font-size:13px;left:-16px}
  .splash-kicker{font-size:12px;padding:7px 13px}
  .splash-brand h1{font-size:32px;margin-top:11px;line-height:1.45}
  .splash-brand-en{font-size:29px;line-height:1.35}
  .splash-message{margin-top:20px;padding:17px 15px;border-radius:21px}
  .splash-message strong{font-size:20px;line-height:1.75}
  .splash-loading{width:88%;margin-top:20px}
  .splash-loading-status span{font-size:13.5px}
  .splash-loading-status b{font-size:16px;min-width:40px;height:36px}
}
@media(max-width:390px){
  .splash-logo-wrap{width:100px;height:100px;margin-bottom:13px}
  .splash-brand h1{font-size:28px}
  .splash-brand-en{font-size:26px}
  .splash-message{margin-top:16px;padding:15px 13px}
  .splash-message strong{font-size:18.5px}
  .splash-loading{margin-top:16px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* =========================
   روابط التواصل أسفل العنوان
========================= */

.brand-line {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.brand-social-text {
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.brand-social-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
}

.brand-social-icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;

  text-decoration: none;
}

.brand-social-icon img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  display: block;
}

.brand-social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
}

/* الجوال */
@media (max-width: 768px) {

  .brand-social {
    margin-top: 6px;
    gap: 7px;
  }

  .brand-social-text {
    font-size: 11px;
  }

  .brand-social-icons {
    gap: 5px;
  }

  .brand-social-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .brand-social-icon img {
    width: 17px;
    height: 17px;
  }
}

/* الشاشات الصغيرة جدًا */
@media (max-width: 420px) {

  .brand-social-text {
    /*display: none;*/
  }

  .brand-social-icon {
    width: 29px;
    height: 29px;
  }

  .brand-social-icon img {
    width: 16px;
    height: 16px;
  }
}