/* الجودي للتدريب التربوي — أنماط الموقع والصفحات العامة */
:root {
  /* لوحة الجودي (نوفمبر 2026): عاجي 30٪ خلفيات · أخضر باستيل 20٪ أساسي · وردي 15٪ ثانوي · بترولي 15٪ للرسمي والعناوين · عنابي 10٪ · بيج 5٪ · بني 3٪ · ذهبي 2٪ */
  --teal: #0F3E4E; --teal-2: #1A5366; --teal-3: #E3EBEA;
  --burgundy: #5A1F2D; --burgundy-2: #722A3B;
  --olive: #7F9677; --sage: #A7B89F; --sage-2: #DCE4D7;
  --rose: #C9A1A5; --blush: #E7CFCF; --blush-2: #F6ECEA;
  --ivory: #F6F2EA; --paper: #FBF8F2; --beige: #E8DCCB; --brown: #4A3428;
  --gold: #C9A962; --gold-2: #A98A45;
  --ink: #3A2C24; --muted: #6E6259; --line: #E8DCCB; --white: #fff;
  --ok: #3E6B3A; --warn: #8A5A12;
  --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 62, 78, .06), 0 8px 24px rgba(74, 52, 40, .08);
  --font: 'Alexandria', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-display: 'Alexandria', 'Segoe UI', Tahoma, sans-serif; /* أقرب خط مجاني لخط الشعار (FF Shamel Family Sans) */
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.45; margin: 0 0 .4em; color: var(--teal); }
h1, h2, .card-title, .p-title, .offer h3, .way h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.5; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.num, .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: var(--ivory); }
.btn-primary:hover { background: var(--teal-2); }
.btn-accent { background: var(--burgundy); color: #fff; }
.btn-accent:hover { background: var(--burgundy-2); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-3); }
.btn-soft { background: var(--ivory); color: var(--teal); border-color: var(--line); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font-size: inherit; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* شريط التجربة والإعلان */
.topbar { background: var(--burgundy); color: #fff; text-align: center; font-size: 14px; padding: 6px 16px; line-height: 1.6; }
.topbar.demo { background: var(--gold); color: var(--teal); }

/* الترويسة */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 242, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 400; }
.nav a:hover { background: var(--ivory); color: var(--teal); }
.cart-btn { margin-inline-start: auto; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--teal); color: var(--ivory); border: 0; cursor: pointer; font-weight: 500; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: var(--teal); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
@media (min-width: 860px) { .nav { display: flex; } .cart-btn { margin-inline-start: 8px; } }

/* البطل */
.hero { position: relative; overflow: hidden; background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset-block: 0; left: 0; width: 46%; background: url('/brand/patterns/p08-blush.svg') 0 0 / 92px 92px; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); pointer-events: none; }
@media (max-width: 859px) { .hero::before { width: 100%; top: auto; height: 46%; -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent); mask-image: linear-gradient(0deg, #000 30%, transparent); } }
.hero .wrap { position: relative; }
.hero .wrap { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 40px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--burgundy); font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.hero-kicker::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.hero h1 { font-size: clamp(34px, 8vw, 56px); line-height: 1.45; font-weight: 700; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--burgundy); }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-art { position: relative; justify-self: center; width: min(250px, 64vw); aspect-ratio: 4 / 5; margin-top: 6px; }
.arch { position: absolute; inset: 0; border-radius: 999px 999px 14px 14px; background: var(--sage) url('/brand/patterns/p03-sage.svg') center bottom / 96px 120px; overflow: hidden; box-shadow: var(--shadow); border: 10px solid var(--teal); }
.arch::before { content: ''; position: absolute; inset: 8px; border-radius: 999px 999px 8px 8px; border: 1.5px solid var(--gold); }
.arch .medal { position: absolute; width: 50%; aspect-ratio: 480 / 535; inset-inline-start: 25%; bottom: 12%; border-radius: 999px 999px 10px 10px; background: var(--ivory); border: 2px solid var(--gold); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(15, 62, 78, .18); }
.arch .medal img { width: 58%; margin-top: 8%; }
.hero-art .stamp { position: absolute; inset-inline-end: -4%; top: 12%; background: var(--paper); color: var(--teal); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.6; box-shadow: var(--shadow); }
.hero-art .stamp b { display: block; font-size: 18px; color: var(--burgundy); font-weight: 700; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-art { width: 380px; }
}

/* الأقسام */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 5vw, 32px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.ornament { display: block; width: 92px; height: 12px; margin-bottom: 10px; }

.offer-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.offer:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.offer .ico { width: 50px; height: 56px; border-radius: 999px 999px 6px 6px; display: grid; place-items: center; margin-bottom: 6px; padding-top: 6px; }
.offer .ico svg { width: 24px; height: 24px; }
.offer h3 { font-size: 19px; margin: 0; }
@media (max-width: 719px) {
  .offer { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 16px; }
  .offer .ico { grid-row: span 2; margin: 0; }
}
.offer p { color: var(--muted); margin: 0; font-size: 15px; }

/* التبويبات */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 400; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--ivory); font-weight: 500; }

/* بطاقات المنتجات */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: start; padding: 0; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ivory); overflow: hidden; margin: 10px 10px 0; border-radius: 120px 120px 10px 10px / 70px 70px 10px 10px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--paper); color: var(--teal); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 500; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.badge.out { background: var(--ink); color: #fff; }
.badge.low { background: var(--burgundy); color: #fff; }
.badge.demo { inset-inline-start: auto; inset-inline-end: 12px; background: var(--gold); color: var(--teal); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-type { font-size: 13px; color: var(--burgundy); font-weight: 500; }
.card-title { font-size: 18px; color: var(--teal); margin: 0; }
.card-meta { font-size: 14px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; color: var(--teal); font-size: 18px; }
.price small { font-weight: 400; color: var(--muted); font-size: 13px; }
.price s { color: var(--muted); font-weight: 300; font-size: 14px; margin-inline-start: 6px; }
.card-cta { color: var(--burgundy); font-weight: 500; font-size: 15px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); }

/* الغلاف المولّد (للمنتج بلا صورة) */
.cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.cover::before { content: ''; position: absolute; width: 40%; aspect-ratio: 480 / 535; border-radius: 999px 999px 8px 8px; border: 1.5px solid var(--gold); background: var(--cbg); bottom: 14%; }
.cover img { position: relative; width: 22% !important; height: auto !important; object-fit: contain !important; margin-top: 6%; }
.cover-teal { --cbg: var(--teal); background: var(--teal) url('/brand/patterns/p07-teal.svg') center / 46px 46px; }
.cover-burgundy { --cbg: var(--burgundy); background: var(--burgundy) url('/brand/patterns/p07-burgundy.svg') center / 46px 46px; }
.cover-olive { --cbg: var(--sage); background: var(--sage) url('/brand/patterns/p13-sage.svg') center / 110px 110px; }
.cover-rose { --cbg: #F1E4E3; background: #F1E4E3 url('/brand/patterns/p05-blush.svg') center / 56px 28px; }
.cover-gold { --cbg: var(--ivory); background: var(--ivory) url('/brand/patterns/p04-ivory.svg') center / 60px 84px; }
.cover-olive::before { border-color: var(--ivory); }

/* شريط خصم الإخوة */
.sibling-band { background: var(--blush-2) url('/brand/patterns/p08-blush.svg') 0 0 / 92px 92px; border: 1px solid var(--blush); border-radius: var(--r); padding: 20px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sibling-band > * { background: var(--ivory); border-radius: 12px; padding: 8px 14px; }
.sibling-band .big { font-size: 34px; font-weight: 700; color: var(--burgundy); line-height: 1.3; }
.sibling-band p { margin: 0; flex: 1 1 240px; }

/* طريقتا الحقائب */
.ways { display: grid; gap: 14px; }
@media (min-width: 720px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; gap: 14px; }
.way .n { flex: none; width: 44px; height: 52px; border-radius: 999px 999px 10px 10px; display: grid; place-items: center; background: var(--teal); color: var(--ivory); font-weight: 700; }
.way h3 { font-size: 18px; margin-bottom: 2px; }
.way p { margin: 0; color: var(--muted); font-size: 15px; }

.about-box { background: var(--teal); color: var(--ivory); border-radius: calc(var(--r) * 1.4); padding: 32px 24px; position: relative; overflow: hidden; }
.about-box::before { content: ''; position: absolute; inset: 0; background: url('/brand/patterns/p01-clear-gold.svg') center / 110px 124px; opacity: .12; }
.about-box > * { position: relative; }
.about-box h2 { font-size: clamp(26px, 5vw, 34px); }
.about-box h2 { color: var(--gold); }
.about-box p { font-size: 17px; max-width: 46em; position: relative; }
.about-grid { display: grid; gap: 14px; margin: 22px 0; }
@media (min-width: 760px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-card { background: rgba(246, 242, 234, .08); border: 1px solid rgba(201, 169, 98, .35); border-radius: var(--r); padding: 18px 20px; }
.about-card h3 { color: var(--gold); font-size: 19px; margin-bottom: 6px; }
.about-card p { margin: 0; font-size: 16px; }
.goals { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .goals { grid-template-columns: 1fr 1fr; column-gap: 26px; } }
.goals li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.8; }
.goals li::before { content: ''; flex: none; width: 9px; height: 9px; margin-top: 10px; background: var(--gold); transform: rotate(45deg); }
.about-box .mark-bg { position: absolute !important; width: 240px; inset-inline-end: -40px; bottom: -40px; opacity: .1; }

/* الفوتر */
.site-foot { background: var(--teal); color: rgba(246, 242, 234, .85); margin-top: 40px; padding: 0 0 24px; font-size: 15px; }
.site-foot::before { content: ''; display: block; height: 56px; background: var(--sage) url('/brand/patterns/p06-sage.svg') center top / 64px 51px; border-bottom: 4px solid var(--gold); margin-bottom: 40px; }
.site-foot a { color: var(--ivory); }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot img.logo { width: 190px; margin-bottom: 12px; }
.site-foot h4 { color: var(--gold); font-size: 17px; margin-bottom: 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-bottom { border-top: 1px solid rgba(217, 199, 172, .25); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 13px; color: rgba(247, 243, 234, .6); }
.foot-bottom a { color: rgba(247, 243, 234, .75); text-decoration: none; }

/* النوافذ المنبثقة (ورقة سفلية على الجوال) */
.sheet-back { position: fixed; inset: 0; background: rgba(13, 30, 36, .45); z-index: 50; opacity: 0; transition: opacity .2s; }
.sheet-back.on { opacity: 1; }
.sheet { position: fixed; z-index: 51; inset-inline: 0; bottom: 0; max-height: 92vh; background: var(--paper); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sheet.on { transform: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 18px; flex: 1; }
.sheet-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ivory); cursor: pointer; font-size: 22px; line-height: 1; color: var(--teal); }
.sheet-body { overflow-y: auto; padding: 16px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
@media (min-width: 760px) {
  /* في RTL نهاية السطر = اليسار، فالدرج يطلع من اليسار ويختفي بإزاحته لليسار */
  .sheet { inset-inline-start: auto; inset-inline-end: 0; top: 0; bottom: 0; width: 480px; max-height: none; border-radius: 0; transform: translateX(-100%); }
  .sheet.product-sheet { width: 600px; }
  .sheet.on { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-back, .card, .offer, .btn { transition: none; } }

/* تفاصيل المنتج */
.p-media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--ivory); margin-bottom: 16px; }
.p-media > img { width: 100%; height: 100%; object-fit: cover; }
.p-thumbs { display: flex; gap: 8px; margin: -6px 0 14px; overflow-x: auto; }
.p-thumbs button { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; }
.p-thumbs button[aria-current="true"] { border-color: var(--teal); }
.p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-title { font-size: 24px; margin-bottom: 2px; }
.p-sub { color: var(--muted); margin-bottom: 12px; }
.facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); }
.fact { display: flex; gap: 10px; font-size: 15px; }
.fact dt { color: var(--muted); min-width: 64px; }
.fact dd { margin: 0; font-weight: 400; }
.p-desc { white-space: pre-line; margin-bottom: 18px; }
.field-label { font-weight: 500; color: var(--teal); margin: 18px 0 8px; display: block; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); cursor: pointer; }
.choice input { margin-top: 6px; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-3); }
.choice .c-main { flex: 1; }
.choice .c-title { font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.choice .c-note { font-size: 14px; color: var(--muted); }
.choice.disabled { opacity: .55; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--teal); }
.stepper button[disabled] { opacity: .3; }
.stepper output { min-width: 32px; text-align: center; font-weight: 600; }
.att-list { display: grid; gap: 10px; margin-top: 10px; }
.att { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.note { background: var(--blush-2); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; color: var(--burgundy); margin-top: 12px; }
.note.info { background: var(--teal-3); color: var(--teal); }

/* الحقول */
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); font-size: 16px; font-weight: 400; transition: border-color .15s; }
.textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(15, 62, 78, .12); }
.input.bad { border-color: var(--burgundy); }
input[type="tel"], input[type="email"] { direction: ltr; text-align: right; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label { font-weight: 500; font-size: 15px; }
.form-row .hint { font-size: 13px; color: var(--muted); }
.form-2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .form-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--teal); flex: none; }

/* السلة */
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-thumb { width: 64px; height: 64px; border-radius: 12px; position: relative; overflow: hidden; background: var(--ivory); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { font-size: 15px; margin: 0; line-height: 1.6; color: var(--ink); font-weight: 500; }
.cart-line .meta { font-size: 13px; color: var(--muted); }
.cart-line .amt { font-weight: 600; white-space: nowrap; }
.cart-line .rm { background: none; border: 0; color: var(--burgundy); font-size: 13px; cursor: pointer; padding: 4px 0; }
.totals { display: grid; gap: 6px; padding: 14px 0 4px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .disc { color: var(--burgundy); }
.totals .grand { font-size: 19px; font-weight: 700; color: var(--teal); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }

/* صفحات: الدفع، الطلب، التتبع */
.page { padding: 28px 0 40px; }
.page h1 { font-size: clamp(24px, 5vw, 32px); }
.checkout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1fr 380px; } .summary { position: sticky; top: 92px; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel h2 .step { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--ivory); font-size: 14px; display: inline-grid; place-items: center; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { direction: ltr; text-transform: uppercase; }
.msg { font-size: 14px; margin-top: 6px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--burgundy); }
.error-box { background: #FBEDEE; color: var(--burgundy); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 15px; }

.status-hero { text-align: center; padding: 28px 20px; border-radius: var(--r); background: var(--ivory); border: 1px solid var(--line); margin-bottom: 18px; }
.status-hero .icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; }
.status-hero .icon svg { width: 32px; height: 32px; }
.status-hero.ok .icon { background: var(--teal); color: var(--ivory); }
.status-hero.wait .icon { background: var(--gold); color: var(--teal); }
.status-hero.bad .icon { background: var(--burgundy); color: #fff; }
.status-hero h1 { margin-bottom: 4px; }
.dl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); text-decoration: none; color: inherit; margin-bottom: 8px; }
.dl .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--burgundy); color: #fff; display: grid; place-items: center; flex: none; }
.dl .ic svg { width: 20px; height: 20px; }
.dl b { display: block; color: var(--teal); }
.dl small { color: var(--muted); }
.track-box { max-width: 440px; margin: 0 auto; }

.toast { position: fixed; z-index: 80; top: calc(14px + env(safe-area-inset-top)); inset-inline: 16px; margin: 0 auto; max-width: 420px; background: var(--teal); color: var(--ivory); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); text-align: center; transform: translateY(-20px); opacity: 0; transition: transform .2s, opacity .2s; pointer-events: none; }
.toast.on { transform: none; opacity: 1; }

.policy { white-space: pre-line; font-size: 15px; }
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 16px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; color: var(--teal); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; float: inline-end; font-size: 20px; line-height: 1.2; }
details.faq[open] summary::after { content: '−'; }
details.faq > div { padding-bottom: 14px; }

.skeleton { background: linear-gradient(90deg, var(--ivory), #fff, var(--ivory)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 300px; }
@keyframes sk { to { background-position: -200% 0; } }

/* صفحة الدفع التجريبي والتحميل (تُرسم من الخادم) */
body.mock-pay { min-height: 100vh; display: grid; place-items: center; background: var(--ivory); padding: 16px; }
.mock-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; width: 100%; max-width: 400px; text-align: center; box-shadow: var(--shadow); }
.mock-card form { display: grid; gap: 10px; }
.mock-logo { width: 170px; margin: 0 auto 14px; }
.mock-tag { background: var(--gold); color: var(--teal); border-radius: 999px; font-size: 13px; padding: 4px 12px; display: inline-block; }
.mock-amount { font-size: 34px; font-weight: 700; color: var(--burgundy); margin: 4px 0 18px; }

/* الطباعة: صفحة الطلب = فاتورة */
@media print {
  .site-head, .site-foot, .topbar, .no-print, .toast { display: none !important; }
  body { background: #fff; font-size: 13px; }
  .page { padding: 0; }
  .panel { border: 0; padding: 0; }
  .print-head { display: flex !important; }
}
.print-head { display: none; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--teal); padding-bottom: 12px; margin-bottom: 16px; }
.print-head img { width: 180px; }
.card-media .badge { top: auto; bottom: 12px; }
.sib-note b { display: block; font-size: 16px; }
@media (max-width: 480px) { .hero-cta { gap: 6px; } .hero-cta .btn { padding: 0 12px; font-size: 14.5px; min-height: 46px; } }

/* الواجهة الجديدة: شريط بنمط من المكتبة + قوس الشعار + أقواس الأقسام */
.hero2 { position: relative; background: var(--ivory); text-align: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-band { height: 220px; background-repeat: repeat; background-position: center bottom; }
.hero-arch { position: relative; width: min(230px, 62vw); height: 150px; margin: -105px auto 0; background: var(--ivory); border: 7px solid var(--teal); border-bottom: 0; border-radius: 999px 999px 0 0; display: grid; place-items: end center; padding-bottom: 16px; }
.hero-arch::before { content: ''; position: absolute; inset: 7px 7px 0; border: 1.5px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-arch img { width: 72%; height: auto; position: relative; }
.hero-text { padding-top: 22px; padding-bottom: 30px; }
.hero-text .hero-kicker { justify-content: center; }
.hero-text h1 { font-size: clamp(30px, 7.4vw, 48px); line-height: 1.45; margin-bottom: 10px; }
.hero-text h1 em { font-style: normal; color: var(--burgundy); }
.hero-text .lead { font-size: 17px; color: var(--muted); max-width: 36em; margin: 0 auto; }
@media (min-width: 860px) { .hero-band { height: 300px; } .hero-arch { width: 290px; height: 190px; margin-top: -140px; border-width: 8px; } }
.tiles-sec { padding-top: 34px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; max-width: 820px; margin: 0 auto; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.arch-ico { width: 100%; max-width: 128px; aspect-ratio: 480 / 535; border-radius: 999px 999px 14px 14px; display: grid; place-items: center; padding-top: 14%; box-shadow: var(--shadow); transition: transform .2s; }
.arch-ico svg { width: 36%; height: auto; }
.arch-ico img { width: 44%; height: auto; }
.tile:hover .arch-ico { transform: translateY(-4px); }
.tile-t { font-size: 17px; font-weight: 600; text-align: center; line-height: 1.5; }
.all-link { text-align: center; margin: 26px 0 0; }
.all-link a { color: var(--teal); font-weight: 500; }
.page-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.page-head .arch-ico { width: 72px; max-width: 72px; flex: none; box-shadow: none; }
.page-head h1 { margin: 0; }
.page-head p { margin: 2px 0 0; }
@media (prefers-reduced-motion: reduce) { .arch-ico { transition: none; } }

.wrap.page { padding-inline: 16px; }
