/* دروسي — معاينة شاشات التسجيل والحصص الجماعية (هوية الدلفين مؤقتًا)
   ألوان مأخوذة من صور التطبيق المرفقة. لا استدعاء لأي API. */
:root{
  --orange:#E89B32;      /* الزر والمؤشر */
  --orange-dark:#B97C29; /* سهم الرجوع */
  --brown:#9B5700;       /* الروابط ونصوص التمييز */
  --navy:#08233F;        /* العناوين والنصوص */
  --muted:#6B7B8C;       /* النص الثانوي */
  --ph:#9DA7B1;          /* placeholder */
  --page:#FFFFFF;        /* خلفية شاشتي التسجيل في الصورة */
  --page-soft:#F7F6F3;   /* خلفية شاشة الحجز */
  --card:#F7F6F3;        /* البطاقة في الصورة */
  --line:#ECE9E3;
  --tint:#FAEBD6;        /* التبويب المفعّل */
  --cream:#FDF5EA;       /* البنر والشريط */
  --cream-line:#F6D7AD;
  --support:#1B648D;
  --error:#C0392B;
  --radius-field:16px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0}
body{font-family:"Alexandria",system-ui,sans-serif;color:var(--navy);background:var(--page);direction:rtl;-webkit-font-smoothing:antialiased}
button,input,select{font-family:inherit;color:inherit}
.screen{max-width:440px;margin:0 auto;min-height:100dvh;padding:0 22px 32px;position:relative}
.preview-ribbon{position:fixed;inset-inline-start:0;bottom:0;z-index:50;background:#08233f99;color:#fff;font-size:10px;padding:3px 8px;border-start-end-radius:10px}

/* الشريط العلوي */
.topbar{display:flex;align-items:center;justify-content:space-between;height:96px;padding-top:28px}
.back{width:48px;height:48px;display:grid;place-items:center;border:0;background:none;cursor:pointer;color:var(--orange-dark);margin-inline-start:-8px}
.back svg{width:28px;height:28px}
.steps{display:flex;align-items:center;gap:12px}
.step{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:14px;border:2px solid #C9CCD0;color:#8C949C;background:#fff}
.step.on{background:var(--orange);border-color:var(--orange);color:#fff}
.step svg{width:18px;height:18px}
.step-line{width:24px;height:2px;background:#D5D9E0;border-radius:2px}
.fab{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;min-width:48px}
.fab img{width:38px;height:38px;border-radius:50%;display:block}
.fab span{font-size:11px;color:var(--support)}

/* التميمة والعناوين */
.mascot{display:block;margin:6px auto 0;height:120px;width:auto}
.head{margin:40px 0 24px}
.head h1{margin:0;font-size:22px;font-weight:500;line-height:1.4}
.head p{margin:10px 0 0;font-size:13px;color:var(--muted)}

/* البطاقة والحقول */
.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px 16px 16px}
.field{margin-bottom:12px}
.label{display:block;font-size:13px;margin:0 4px 10px;font-weight:400}
.label .opt{color:var(--muted)}
.input,.select{width:100%;height:48px;border-radius:var(--radius-field);border:1px solid var(--line);background:#fff;padding:0 14px;font-size:14px;outline:none;transition:border-color .15s}
.input::placeholder{color:var(--ph)}
.input:focus,.select:focus{border-color:var(--orange)}
.input.invalid,.select.invalid{border-color:var(--error)}
.select-wrap{position:relative}
.select{appearance:none;-webkit-appearance:none;padding-inline-end:56px;cursor:pointer}
.select.empty{color:var(--ph)}
.select-wrap .chev{position:absolute;inset-inline-end:10px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;background:#F2F1EC;display:grid;place-items:center;pointer-events:none;color:#3E4A3A}
.select-wrap .chev svg{width:14px;height:14px}
.err{color:var(--error);font-size:12px;margin:6px 4px 0;min-height:0}
.err:empty{display:none}
.btn{width:100%;height:50px;border:0;border-radius:999px;background:var(--orange);color:#fff;font-size:15px;font-weight:400;cursor:pointer;margin-top:8px;transition:opacity .15s,transform .05s}
.btn:active{transform:scale(.99)}

/* PIN */
.pin-block{margin-bottom:20px;padding:0 16px}
.pin-block .label{font-size:14px;margin:0 -12px 14px}
.pin{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;direction:ltr}
.pin input{width:100%;aspect-ratio:1;border-radius:14px;border:1px solid var(--line);background:var(--card);text-align:center;font-size:16px;caret-color:transparent;outline:none;color:transparent;padding:0}
.pin input::selection{background:transparent}
.pin input:focus{border-color:var(--orange)}
.pin input.filled{background-image:radial-gradient(circle,var(--navy) 0 8px,transparent 9px);background-repeat:no-repeat;background-position:center}
.pin.invalid input{border-color:var(--error)}
.agree{display:flex;align-items:center;gap:10px;margin:12px 2px 6px;font-size:13px;cursor:pointer;min-height:40px}
.agree input{position:absolute;opacity:0;pointer-events:none}
.agree .box{width:24px;height:24px;border-radius:7px;border:1.5px solid #D6D2C8;background:#fff;display:grid;place-items:center;flex:none}
.agree input:checked+.box{background:var(--orange);border-color:var(--orange)}
.agree .box svg{width:15px;height:15px;opacity:0}
.agree input:checked+.box svg{opacity:1}
.agree input:focus-visible+.box{outline:2px solid var(--navy);outline-offset:2px}
.agree a{color:var(--brown);text-decoration:underline;text-underline-offset:4px}

/* ورقة سفلية بسيطة */
.sheet-bg{position:fixed;inset:0;background:#08233f66;display:none;align-items:flex-end;justify-content:center;z-index:60}
.sheet-bg.open{display:flex}
.sheet{background:#fff;width:100%;max-width:440px;border-radius:24px 24px 0 0;padding:20px 20px 28px;max-height:80dvh;overflow:auto}
.sheet h2{margin:0 0 10px;font-size:18px}
.sheet p,.sheet li{font-size:14px;line-height:1.8;color:var(--muted)}
.sheet .btn{margin-top:16px}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:var(--navy);color:#fff;font-size:13px;padding:10px 16px;border-radius:12px;opacity:0;transition:opacity .2s;pointer-events:none;z-index:70;max-width:90vw;text-align:center}
.toast.show{opacity:1}

/* شاشة الحجز الجماعي */
body.soft{background:var(--page-soft)}
.gc-top{display:grid;grid-template-columns:48px 1fr auto;align-items:center;height:96px;padding-top:28px;gap:8px}
.gc-top h1{margin:0;font-size:18px;font-weight:400;text-align:center}
.gc-top .end{display:flex;align-items:center;gap:14px}
.gc-top .end img{width:34px;height:34px;border-radius:50%}
.skip{border:0;background:none;color:#185A80;font-size:14px;cursor:pointer;min-height:44px;padding:0 4px}
.promo{display:flex;align-items:center;gap:8px;background:var(--cream);border:1.5px solid var(--cream-line);border-radius:22px;padding:14px 14px 10px;margin-top:6px;min-height:120px}
.promo .txt{flex:1}
.promo h2{margin:0 0 8px;font-size:15px;font-weight:500}
.promo p{margin:0;font-size:11px;line-height:1.75;color:var(--muted)}
.promo img{width:120px;height:auto;flex:none}
.includes{margin:20px 0 6px}
.includes summary{list-style:none;display:flex;align-items:center;gap:8px;color:var(--brown);font-size:14px;cursor:pointer;min-height:40px}
.includes summary::-webkit-details-marker{display:none}
.includes summary .chev{transition:transform .2s;width:16px;height:16px}
.includes[open] summary .chev{transform:rotate(180deg)}
.includes ul{margin:4px 0 0;padding:12px 30px 12px 14px;background:#fff;border:1px solid var(--line);border-radius:16px}
.includes li{font-size:13px;line-height:1.9;color:var(--navy)}
.seg{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px;margin-top:20px}
.seg button{border:0;background:none;border-radius:999px;height:44px;font-size:14px;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.seg button img{width:22px;height:22px}
.seg button.on{background:var(--tint);color:var(--brown)}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--line);border-radius:999px;padding:4px;width:240px;margin:16px auto 14px}
.tabs button{border:0;background:none;border-radius:999px;height:36px;font-size:13px;color:var(--muted);cursor:pointer}
.tabs button.on{background:var(--tint);color:var(--brown)}
.tiers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tier{background:#fff;border:1px solid var(--line);border-radius:16px;text-align:center;padding:12px 2px 10px;transition:border-color .15s,background .15s}
.tier .n{font-size:11px;color:var(--muted)}
.tier .p{font-size:18px;margin:6px 0 2px;font-weight:400}
.tier .c{font-size:10px;color:var(--muted)}
.tier.on{border-color:var(--orange);background:#FFFBF5}
.offer{display:flex;align-items:center;gap:10px;background:var(--cream);border:1.5px solid var(--cream-line);border-radius:14px;padding:9px 14px;margin-top:12px;font-size:12px}
.offer b{color:var(--brown);font-weight:400}
.offer svg{width:20px;height:20px;color:var(--orange);flex:none}
.pick-label{font-size:13px;color:var(--muted);margin:24px 4px 10px}
.subjects{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;margin-bottom:110px}
.subj{display:flex;align-items:center;gap:12px;padding:16px 14px;border-bottom:1px solid var(--line);cursor:pointer;width:100%;text-align:start;background:none;border-inline:0;border-top:0}
.subj:last-child{border-bottom:0}
.subj .ic{width:48px;height:48px;border-radius:14px;object-fit:cover;flex:none}
.subj .ic.txt{display:grid;place-items:center;background:#EAF1FB;color:#2C5DA8;font-size:13px;font-weight:600}
.subj .info{flex:1}
.subj .t{font-size:15px;font-weight:400}
.subj .h{font-size:12px;color:var(--muted);margin-top:4px;display:flex;align-items:center;gap:6px}
.subj .h svg{width:13px;height:13px}
.subj .e{font-size:11px;color:var(--brown);margin-top:4px}
.subj .cb{width:26px;height:26px;border:1.5px solid #E2DED5;border-radius:8px;flex:none;display:grid;place-items:center;background:#fff}
.subj .cb svg{width:16px;height:16px;opacity:0;color:#fff}
.subj[aria-checked="true"] .cb{background:var(--orange);border-color:var(--orange)}
.subj[aria-checked="true"] .cb svg{opacity:1}
.subj:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
.checkout{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);z-index:40}
.checkout .in{max-width:440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 16px calc(14px + env(safe-area-inset-bottom))}
.total{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}
.total b{font-size:24px;color:var(--navy);font-weight:400}
.total svg{width:20px;height:20px;color:#D18C2D}
.go{border:0;border-radius:999px;height:50px;padding:0 24px;background:#FCF3E6;color:#C39A66;font-size:14px;display:flex;align-items:center;gap:10px;cursor:pointer}
.go.ready{background:var(--orange);color:#fff}
.go svg{width:16px;height:16px}
.empty-note{padding:22px 16px;text-align:center;color:var(--muted);font-size:14px}

@media (min-width:700px){
  body{background:#F1EFEA}
  body.soft{background:#ECE9E2}
  .screen{background:var(--page);box-shadow:0 10px 40px #08233f14;border-radius:28px;margin:24px auto;min-height:calc(100dvh - 48px)}
  body.soft .screen{background:var(--page-soft)}
  .checkout{left:50%;right:auto;width:440px;transform:translateX(-50%);border-radius:0 0 28px 28px}
}

/* بطاقة «فعّل التعليم الذاتي مجاناً» فوق المسار الجماعي */
.self{display:flex;align-items:center;gap:12px;background:#fff;border:1.5px solid var(--orange);border-radius:18px;padding:10px 12px;margin-top:6px}
.self-ic{width:38px;height:38px;border-radius:14px;background:var(--tint);display:grid;place-items:center;font-size:22px;flex:none}
.self-txt{flex:1;min-width:0}
.self h2{margin:0;font-size:15px;font-weight:500}
.self p{margin:0;font-size:11px;line-height:1.7;color:var(--muted)}
.self-btn{flex:none;border:0;border-radius:999px;background:var(--orange);color:#fff;font-size:13px;height:40px;padding:0 22px;cursor:pointer;font-size:14px}
.self.on{border-color:#3E9B5A;background:#F2FAF4}
.self.on .self-ic{background:#DDF2E3}
.self.on .self-btn{background:#3E9B5A}
.path-label{font-size:13px;color:var(--muted);margin:18px 4px 8px}
