/* Dr. Dopamine — واجهة المرحلة الأولى */

:root {
  --night: #f7f0e3;
  --deep: #efe5d2;
  --panel: #eadcc3;
  --cream: #2e2218;
  --muted: #6f5d4b;
  --amber: #b5502f;
  --amber-deep: #96401f;
  --blue: #3d6a8f;
  --violet: #6b5a9e;
  --rose: #c4623f;
  --line: rgba(46, 34, 24, 0.16);
  --line-strong: rgba(46, 34, 24, 0.5);
  --radius: 4px;
  --font-display: "Amiri", "Noto Naskh Arabic", "Segoe UI", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: var(--amber); text-underline-offset: 0.25em; }
a:hover { color: #a24a2c; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--amber);
  color: var(--night);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.35; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; max-width: 62ch; }
.lead { font-size: 1.2rem; color: var(--cream); }
.muted { color: var(--muted); }

/* ---------- الرأس ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 227, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--cream); }
.brand img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.brand span { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.98rem;
}
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.nav .nav-cta {
  background: var(--amber);
  color: var(--night);
  font-weight: 600;
  margin-inline-start: 0.6rem;
  border-radius: var(--radius);
  box-shadow: none;
}
.nav .nav-cta:hover { background: var(--amber); color: #fff; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  font: inherit;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.5rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--amber); }
  .nav .nav-cta { margin: 0.6rem 0 0; text-align: center; }
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--amber); color: var(--night); }
.btn-primary:hover { background: var(--amber); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- الهيرو: الجانبان ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: min(44rem, calc(100vh - 4.5rem));
}
.hero-side { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 4rem 0; }
.hero-mind {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(108, 155, 209, 0.16), transparent 65%),
    var(--night);
  padding-inline-end: clamp(1.5rem, 5vw, 4.5rem);
  padding-inline-start: max(1.25rem, calc((100vw - var(--wrap)) / 2));
}
.hero-feel {
  align-items: center;
  background:
    radial-gradient(34rem 28rem at 30% 55%, rgba(224, 168, 74, 0.2), transparent 68%),
    var(--deep);
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}
.hero-seam {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 57.5%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--amber) 20%, var(--amber) 80%, transparent);
  transform-origin: top;
  animation: seam 1.4s ease-out both;
  pointer-events: none;
}
@keyframes seam { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero h1 { max-width: 14ch; margin-bottom: 0.5em; }
.hero .lead { max-width: 40ch; color: var(--muted); }

.hero-art { width: min(26rem, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 0 5rem rgba(224, 168, 74, 0.18); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-side { padding: 3rem 0; }
  .hero-mind { padding-inline: 1.25rem; }
  .hero-seam { display: none; }
  .hero-feel { border-top: 1px solid var(--line-strong); }
}

/* ---------- الأقسام ---------- */
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.tint { background: var(--deep); }

.page-head { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line); background: radial-gradient(50rem 20rem at 90% 0, rgba(108, 155, 209, 0.12), transparent 70%), var(--night); }
.page-head p { color: var(--muted); font-size: 1.15rem; }

/* صفوف الأقسام الرئيسية */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-link {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  transition: background 0.15s, padding 0.15s;
}
.row-link:hover { background: rgba(224, 168, 74, 0.06); padding-inline: 1rem; color: var(--cream); }
.row-link .t { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; }
.row-link .d { color: var(--muted); }
.row-link .go { color: var(--amber); font-weight: 600; white-space: nowrap; }
.row-soon { opacity: 0.6; pointer-events: none; }
.row-soon .go { color: var(--muted); }

@media (max-width: 760px) {
  .row-link { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* اقتباس الفكرة الأساسية */
.pull {
  padding: 5rem 0;
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.pull blockquote {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.5;
  padding-inline-start: 1.6rem;
  border-inline-start: 3px solid var(--amber);
}
.pull p { margin-top: 1.4rem; color: var(--muted); }

/* قائمتان جنبًا إلى جنب */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 3rem; } }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.mini-list li:first-child { border-top: 1px solid var(--line); }
.mini-list .t { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 0.2rem; }
.mini-list .d { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }
.mini-list a { text-decoration: none; color: inherit; display: block; }
.mini-list a:hover .t { color: var(--amber); }

/* من نحن */
.about-grid { display: grid; grid-template-columns: 14rem 1fr; gap: 3rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.about-grid:first-of-type { border-top: 1px solid var(--line); }
.about-grid h2 { font-size: 1.7rem; margin: 0; }
.about-grid p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 0.5rem; } }

.service-list { list-style: none; padding: 0; margin: 0; max-width: 62ch; }
.service-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.service-list strong { color: var(--amber); font-weight: 600; }

/* خطوات (تسلسل حقيقي) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--night);
  background: var(--amber);
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: grid; place-items: center;
  line-height: 1;
}
.steps .t { font-family: var(--font-display); font-size: 1.25rem; display: block; }
.steps .d { color: var(--muted); }

/* باقات الماسترمايند */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan { padding: 2rem 1.6rem; display: flex; flex-direction: column; background: var(--deep); }
.plan + .plan { border-inline-start: 1px solid var(--line); }
.plan.featured { background: var(--panel); box-shadow: inset 0 3px 0 var(--amber); padding: 2rem 1.6rem; border-bottom: 0; }
.plan h3 { margin-bottom: 0.3rem; }
.plan .price { font-size: 1.05rem; font-weight: 600; color: var(--amber); margin: 0.4rem 0 1rem; }
.plan .btn { margin-top: 1.2rem; width: 100%; }
.plan p { color: var(--muted); font-size: 0.98rem; flex: 1; }
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* أسئلة شائعة */
details.faq { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--amber); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 0.8rem 0 0; color: var(--muted); }

.notice {
  border: 1px solid var(--line-strong);
  border-inline-start-width: 4px;
  background: rgba(224, 168, 74, 0.07);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.8;
}
.notice p { margin: 0; max-width: none; }

/* المكتبة */
.product { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1.6rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.product:first-child { border-top: 1px solid var(--line); }
.cover {
  width: 7.5rem; aspect-ratio: 3 / 4;
  border-radius: 4px 10px 10px 4px;
  display: grid; place-items: center;
  text-align: center;
  padding: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--cream);
  border: 1px solid var(--line);
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.25);
}
.tone-blue { background: linear-gradient(160deg, #dfe6ea, #cdd8de); }
.tone-amber { background: linear-gradient(160deg, #efd9b5, #e2c590); }
.tone-violet { background: linear-gradient(160deg, #e3dbe9, #d3c8de); }
.product h3 { margin-bottom: 0.2rem; }
.product .kind { color: var(--amber-deep); font-size: 0.92rem; }
.product p { margin: 0.4rem 0 0; color: var(--muted); }
.product .buy { text-align: end; }
.product .price { font-family: var(--font-display); font-size: 1.3rem; color: var(--amber); display: block; margin-bottom: 0.6rem; }
@media (max-width: 700px) {
  .product { grid-template-columns: 5.5rem 1fr; }
  .cover { width: 5.5rem; font-size: 0.85rem; }
  .product .buy { grid-column: 1 / -1; text-align: start; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .product .price { margin: 0; }
}

dialog {
  background: var(--panel);
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1.6rem;
  width: min(52rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  font-family: var(--font-body);
}
dialog::backdrop { background: rgba(46, 34, 24, 0.55); }
dialog h3 { margin: 0 0 .2rem; font-size: 1.6rem; line-height: 1.4; }
dialog dl { margin: 1rem 0; }
dialog dt { color: var(--amber); font-weight: 600; margin-top: .8rem; font-size: .95rem; }
dialog dd { margin: 0.1rem 0 0; color: var(--muted); font-size: .98rem; line-height: 1.8; }
.pd { display: grid; gap: 1.4rem; }
.pd.has-img { grid-template-columns: 13rem minmax(0, 1fr); align-items: start; }
.pd-img img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 34px rgba(0,0,0,.55); display: block; }
.pd.has-imgs { grid-template-columns: 22rem minmax(0, 1fr); }
.pd-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: start; }
.pd-imgs figure { margin: 0; text-align: center; }
.pd-imgs figcaption { margin-top: .5rem; font-size: .9rem; color: var(--amber); font-weight: 600; }
@media (max-width: 700px) { .pd.has-imgs { grid-template-columns: 1fr; } .pd.has-imgs .pd-imgs { display: grid; max-width: 16rem; margin-inline: auto; } }
.pd-kind { color: var(--amber); margin: 0 0 .5rem; font-size: .95rem; }
.pd-body p { margin: 0 0 .4rem; }
.pd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pd-price { display: flex; align-items: baseline; gap: .6rem; }
.pd-price strong { font-size: 1.5rem; color: var(--cream); }
.pd-foot .actions { display: flex; gap: .6rem; margin: 0; }
@media (max-width: 700px) {
  dialog { padding: 1.1rem; }
  .pd.has-img { grid-template-columns: 1fr; }
  .pd-img { display: none; }
  dialog h3 { font-size: 1.3rem; }
  .pd-foot { flex-direction: column; align-items: stretch; }
  .pd-foot .actions { flex-direction: column; }
  .pd-foot .actions .btn { width: 100%; }
}

/* البودكاست */
.episode { padding: 2rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 17rem; gap: 2.5rem; }
.episode:first-child { border-top: 1px solid var(--line); }
.episode h3 { margin-bottom: 0.3rem; }
.episode .meta { color: var(--blue); font-size: 0.92rem; margin-bottom: 0.6rem; display: block; }
.episode ul { margin: 0.6rem 0 0; padding-inline-start: 1.2rem; color: var(--muted); }
.player { align-self: start; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.player audio { width: 100%; }
.player .soon { margin: 0; color: var(--muted); font-size: 0.95rem; text-align: center; padding: 0.8rem 0; }
.player a { display: block; margin-top: 0.7rem; font-size: 0.95rem; }
@media (max-width: 760px) { .episode { grid-template-columns: 1fr; gap: 1rem; } }

/* الحجز */
.booking { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; gap: 3rem; } }
form.book { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.4rem; }
.field label, fieldset legend { font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  font: inherit;
  color: var(--cream);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  width: 100%;
  min-height: 3rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 1px; }
textarea { min-height: 7rem; resize: vertical; }
.help { color: var(--muted); font-size: 0.92rem; }
.error-msg { color: #b3261e; font-size: 0.95rem; min-height: 1.2em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.45rem; accent-color: var(--amber); }

.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: 6rem; }
.summary h2 { font-size: 1.4rem; }
.summary dl { margin: 0; }
.summary dt { color: var(--muted); font-size: 0.92rem; margin-top: 0.9rem; }
.summary dd { margin: 0; font-weight: 600; }
.confirm { display: none; }
.confirm.show { display: block; }

/* تنبيه عائم */
.toast {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1.5rem;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - 2rem);
  background: var(--cream);
  color: var(--night);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- التذييل ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--deep); padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; gap: 3rem; }
.footer-grid h2 { font-size: 1.15rem; margin-bottom: 0.8rem; color: var(--amber); font-family: var(--font-body); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--cream); }
.footer-grid p { color: var(--muted); font-size: 0.98rem; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.legal p { max-width: none; margin-bottom: 0.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-seam { animation: none; }
  .toast, .row-link, .btn { transition: none; }
}

.cover.has-img { padding: 0; overflow: hidden; display: block; }
.cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- موبايل أولًا: وصول سريع للكتاب والحجز ---------- */
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.08rem; }
.hero-more { margin: 1rem 0 0; }
.featured { background: var(--deep); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.featured-card { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.1rem; align-items: center; }
.featured-card img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.featured-card .kind { color: var(--amber); font-size: 0.9rem; }
.featured-card h2 { font-size: 1.2rem; margin: 0.15rem 0 0.35rem; line-height: 1.5; }
.featured-card p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.featured-card .price { font-weight: 600; color: var(--cream); margin-inline-end: 0.8rem; }

.quickbar { display: none; }
@media (max-width: 760px) {
  .hero-side { padding: 2rem 0 1.6rem; }
  .hero-mind { padding-inline: 1.25rem; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); max-width: none; line-height: 1.55; }
  .hero .lead { font-size: 1.02rem; max-width: none; }
  .hero-actions { flex-direction: column; margin-top: 1.2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-feel { padding: 1.4rem 1.25rem; }
  .hero-art { width: 9.5rem; box-shadow: 0 0 2.5rem rgba(224, 168, 74, 0.18); }
  .section { padding: 3rem 0; }
  body.has-quickbar { padding-bottom: 4.6rem; }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; align-items: stretch;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(247, 240, 227, 0.97); border-top: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  }
  .quickbar a { display: flex; align-items: center; justify-content: center; min-height: 2.9rem; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; }
  .quickbar .q-buy { background: var(--amber); color: var(--night); }
  .quickbar .q-book { border: 1.5px solid var(--line-strong); color: var(--cream); }
  .quickbar .q-wa { width: 2.9rem; background: #1f9d55; color: #fff; }
}

.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.legal-links a { color: var(--amber); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
.legal-page .about-grid p { margin: 0 0 .6rem; line-height: 1.9; }
@media (max-width: 700px) { .legal-page .about-grid { grid-template-columns: 1fr; gap: .6rem; padding: 1.4rem 0; } .legal-page .about-grid h2 { font-size: 1.3rem; } }

@media (max-width: 700px) { #f-book button[type="submit"], form#booking-form button[type="submit"], form button.btn-primary[type="submit"] { width: 100%; } }



/* ---------- الشكل الفاتح المعتمد ---------- */
body { background: radial-gradient(60rem 30rem at 85% -4%, rgba(246,196,120,.35), transparent 65%), var(--night); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
.btn { border-radius: 0; border: 1.5px solid var(--cream); }
.btn-primary { background: var(--cream); color: var(--night); border-color: var(--cream); }
.btn-primary:hover { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.nav .nav-cta { border-radius: 0; }
.brand span { font-family: var(--font-display); font-weight: 700; }
.page-head { background: radial-gradient(46rem 18rem at 90% 0, rgba(246,196,120,.3), transparent 70%), var(--night); }
.tint { background: var(--deep); }
.plans { gap: 1rem; border: 0; overflow: visible; }
.plan, .plan.featured { border: 1px solid var(--line); border-radius: 4px; background: var(--deep); box-shadow: none; }
.plan.featured { background: var(--panel); border-color: var(--line-strong); }
.pull { background: var(--panel); }
.pull blockquote { border-inline-start: 4px solid var(--amber); }
.row-link:hover { background: rgba(196,98,63,.07); }
.hand { font-family: "Aref Ruqaa", var(--font-display); font-weight: 400; color: var(--amber); }
.card, .buy-card, .method { background: #fffaf0; }

/* ---------- الرئيسية الجديدة ---------- */
.home-hero { position: relative; padding: 2rem 0 3rem; border-bottom: 1.5px solid var(--cream); overflow: hidden; }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 3rem; align-items: center; }
.arch { position: relative; aspect-ratio: 400 / 590; width: 100%; border-radius: 999px 999px 8px 8px; overflow: hidden; box-shadow: 0 0 0 10px var(--night), 0 0 0 11px var(--amber-deep); background: #d9c5a4; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.sun { position: absolute; inset-inline-start: -1rem; top: -1.4rem; width: 6.5rem; height: 6.5rem; border-radius: 50%; background: radial-gradient(circle, #ffd48a, #f7b25a); box-shadow: 0 0 2.5rem .6rem rgba(247,178,90,.45); z-index: 2; }
.arch-wrap { position: relative; padding: 1.2rem; }
.home-hero .k { display: block; font-family: "Aref Ruqaa", serif; font-size: 1.4rem; color: var(--amber); margin-bottom: .2rem; }
.home-hero h1 { font-family: var(--font-body); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.35; margin: 0; max-width: none; }
.home-hero h1 b { display: inline-block; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.45em; line-height: 1.15; }
.home-hero h1 b svg { position: absolute; inset-inline: 0; bottom: -.1em; width: 100%; height: .3em; }
.home-hero .lead { color: var(--muted); max-width: 28rem; margin: 1.4rem 0 1.8rem; }
.start-note { font-family: "Aref Ruqaa", serif; color: var(--amber); font-size: 1.4rem; display: inline-flex; align-items: flex-end; gap: .4rem; transform: rotate(-3deg); margin-inline-start: 1.2rem; }
.start-note svg { flex: none; margin-bottom: .5rem; }
@media (max-width: 860px) {
  .home-hero .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .arch-wrap { order: -1; width: min(19rem, 100%); margin-inline: auto; }
  .start-note { display: none; }
}
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--amber-deep); margin-top: 1rem; }
.path { padding: 2.2rem 1.8rem; border-inline-start: 1px solid var(--line); }
.path:first-child { border-inline-start: 0; padding-inline-start: 0; }
.path .n { font-family: "Aref Ruqaa", serif; font-size: 2rem; color: var(--amber); display: block; margin-bottom: .6rem; }
.path h3 { font-family: var(--font-body); font-weight: 400; font-size: 2rem; line-height: 1.3; margin: 0; }
.path h3 b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; line-height: 1.2; }
.path p { color: var(--muted); margin: .8rem 0 1.4rem; font-size: 1rem; }
.path .pbook { display: flex; gap: 1rem; align-items: flex-end; }
.path .pbook img { width: 8.5rem; height: auto; box-shadow: 6px 8px 0 var(--panel), 0 12px 30px rgba(46,34,24,.25); transform: rotate(-2deg); }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path { border-inline-start: 0; border-top: 1px solid var(--line); padding: 1.6rem 0; }
  .path:first-child { border-top: 0; }
  .path h3 { font-size: 1.6rem; } .path h3 b { font-size: 2.2rem; }
  .path .pbook img { width: 5.5rem; }
}
.prog-band { position: relative; background: var(--panel); padding: 3rem; border-radius: 4px; margin-top: 2rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; }
.prog-band .stamp { position: absolute; inset-inline-start: 2rem; top: -1.1rem; background: var(--amber); color: #fff; font-family: "Aref Ruqaa", serif; font-size: 1.3rem; padding: .3rem 1.2rem; transform: rotate(-3deg); }
.prog-band h2 { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0; line-height: 1.3; }
.prog-band h2 b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.9em; line-height: 1.2; }
.prog-band p { color: var(--muted); }
.prog-band .btn-prog { background: var(--amber); border-color: var(--amber); color: #fff; }
@media (max-width: 860px) { .prog-band { grid-template-columns: 1fr; padding: 2rem 1.4rem; } }

/* اللوجو كخلفية شفافة متحركة خلف نص الرئيسية */
.home-hero .wrap { grid-template-columns: 1fr; position: relative; z-index: 1; min-height: 30rem; align-content: center; }
.home-hero > .hero-bg { position: absolute; z-index: 0; top: 50%; left: 1rem; height: min(34rem, 135%); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; overflow: hidden; opacity: .42;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero .wrap > div { max-width: 34rem; margin-inline-end: auto; }
@media (max-width: 860px) {
  .home-hero > .hero-bg { left: 50%; transform: translate(-50%, -50%); height: 125%; opacity: .2; }
  .home-hero .wrap { min-height: 26rem; } .home-hero .wrap > div { margin-inline: 0; max-width: none; }
}

/* programs list (sessions page) */
.progs-title{font-family:var(--font-display);font-weight:400;font-size:2rem;margin:4rem 0 .4rem}
.progs-title b{font-weight:700;color:var(--amber)}
.progs-sub{color:var(--muted);margin:0 0 1.6rem}
.progs{border-top:1px solid var(--line)}
.prog{border-bottom:1px solid var(--line)}
.prog summary{list-style:none;cursor:pointer;padding:1.2rem 0;display:flex;flex-direction:column;gap:.25rem;position:relative;padding-inline-end:2.4rem}
.prog summary::-webkit-details-marker{display:none}
.prog summary::after{content:"+";position:absolute;inset-inline-end:.2rem;top:1.1rem;font-size:1.6rem;color:var(--amber);line-height:1}
.prog[open] summary::after{content:"\2212"}
.prog .pt{font-family:var(--font-display);font-weight:700;font-size:1.7rem;line-height:1.3}
.prog .ps{color:var(--muted)}
.prog .pb{padding:0 0 1.6rem}
.prog .pl{margin:0 0 .4rem;color:var(--amber-deep);font-weight:600}
.prog ul{margin:0 0 1rem;padding-inline-start:1.2rem}
.prog li{margin:.3rem 0}
.prog .prog-note{color:var(--muted);font-size:.92rem;margin:0 0 1rem}
.prog summary:focus-visible{outline:2px solid var(--amber);outline-offset:2px}

@media (max-width: 860px) { .prog-band { padding-top: 3rem; } .prog-band .stamp { font-size: 1.1rem; top: -1rem; } }

/* social chips */
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1.5px solid var(--cream); border-radius: 999px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; background: transparent; transition: background .2s, color .2s, border-color .2s; }
.social a:hover, .social a:focus-visible { background: var(--cream); color: var(--night); }
.footer-grid .social { margin-top: .2rem; }
.footer-grid .social li { margin: 0; }
.footer-grid .social a { color: var(--cream); }
.footer-grid .social a:hover, .footer-grid .social a:focus-visible { color: var(--night); background: var(--cream); }
.home-social { text-align: center; padding: 3rem 0; }
.home-social h2 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0 0 .4rem; }
.home-social h2 b { color: var(--amber); }
.home-social p { color: var(--muted); margin: 0 auto 1.4rem; }
.home-social .social { justify-content: center; }

/* attachment program page */
.cd { display: inline-block; margin: .4rem 0 1.2rem; padding: .45rem 1rem; border: 1.5px solid var(--amber); color: var(--amber-deep); font-weight: 600; border-radius: 999px; }
.cta-note { margin-top: .8rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.facts li { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.facts b { color: var(--amber-deep); font-size: .9rem; font-weight: 600; }
.facts span { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; }
.qs { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; max-width: 40rem; }
.qs li { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.6; padding-inline-start: 1rem; border-inline-start: 3px solid var(--amber); }
.axes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.axis { border: 1.5px solid var(--cream); padding: 1.4rem; }
.axis .n { font-family: var(--font-display); color: var(--amber); font-size: 1.6rem; }
.axis h3 { font-family: var(--font-display); font-size: 1.5rem; margin: .2rem 0 .5rem; }
.axis p { margin: 0; color: var(--muted); line-height: 1.9; }
.gets { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; max-width: 42rem; }
.gets li { padding-inline-start: 1.8rem; position: relative; line-height: 1.8; }
.gets li::before { content: "\2713"; position: absolute; inset-inline-start: 0; color: var(--amber); font-weight: 700; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .axes { grid-template-columns: 1fr; } .qs li { font-size: 1.2rem; } }

.wa-channel { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 999px; margin: .4rem 0 1.2rem; }
.consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; margin: .8rem 0; }
.consent input { margin-top: .3rem; }

.path-img { width: 100%; height: 140px; object-fit: cover; display: block; margin-bottom: .8rem; }
.quiz-q { margin: 1rem 0; } .quiz-q h3 { margin: 0 0 .6rem; }
.quiz-opt { border-radius: 12px; display: block; width: 100%; text-align: right; padding: .8rem 1rem; margin: .4rem 0; border: 1.5px solid var(--cream); background: transparent; color: var(--cream); font: inherit; cursor: pointer; }
.quiz-opt:hover, .quiz-opt:focus { background: var(--panel); }
.quiz-bar { height: 6px; background: var(--panel); margin-bottom: 1rem; } .quiz-bar i { display: block; height: 100%; background: var(--amber); }

.pay .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .92rem; margin: 1rem 0; }
.pay .consent input { width: auto; flex: none; margin-top: .35rem; }
.pay textarea { width: 100%; box-sizing: border-box; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line-strong, rgba(46,34,24,.4)); background: #fffaf0; color: inherit; font: inherit; }
.pay .field { margin-bottom: .2rem; } .pay .field label { margin-top: .9rem; }

.quiz-teaser { background: var(--deep); padding: 2rem 0; } .quiz-teaser h2 { margin: .2rem 0 .5rem; } .quiz-teaser .btn { margin-top: .6rem; }
.home-price { margin: .2rem 0 .8rem; } .home-price strong { font-size: 1.3rem; } .home-price small { color: var(--muted); }

/* مساحة لمس مريحة للروابط النصية المستقلة على الموبايل */
@media (max-width: 700px) {
  .path p a, .legal-links a, .consent a { display: inline-block; padding: .5rem .15rem; }
}
.footer-grid.two { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 760px) { .footer-grid.two { grid-template-columns: 1fr; } }

/* إعلان «قريبًا»: كتاب فن التلاعب النفسي (ألوان الغلاف: أسود وذهبي) */
.soon-book { background: #15110c; color: #f3e9d2; padding: 2.6rem 0; }
.soon-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2rem; align-items: center; }
.soon-cover img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(217,170,79,.45), 0 18px 40px rgba(0,0,0,.55), 0 0 60px rgba(217,170,79,.18); }
.soon-badge { display: inline-block; padding: .2rem .8rem; background: #d9aa4f; color: #15110c; font-weight: 600; font-size: .9rem; border-radius: 3px; }
.soon-book h2 { margin: .6rem 0 .1rem; color: #f0c767; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.soon-sub { margin: 0 0 1rem; color: #d9aa4f; font-size: 1.1rem; }
.soon-book p { color: #eadfc6; }
.soon-list { margin: 1rem 0 1.3rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.soon-list li { position: relative; padding-right: 1.5rem; color: #f3e9d2; }
.soon-list li::before { content: "◆"; position: absolute; right: 0; top: .1rem; color: #d9aa4f; font-size: .8rem; }
.soon-book .btn-primary { background: #d9aa4f; color: #15110c; border-color: #d9aa4f; }
.soon-book .btn-primary:hover { background: #f0c767; color: #15110c; }
.soon-badge.is-new { background: #f0c767; position: relative; padding-right: 1.5rem; animation: soonGlow 1.8s ease-in-out infinite; }
.soon-badge.is-new::before { content: ""; position: absolute; right: .6rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-radius: 50%; background: #15110c; animation: soonDot 1.2s ease-in-out infinite; }
.soon-book .btn-primary.glow { animation: soonGlow 1.8s ease-in-out infinite; }
@keyframes soonGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,199,103,.55); } 50% { box-shadow: 0 0 18px 6px rgba(240,199,103,.55); } }
@keyframes soonDot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .soon-badge.is-new, .soon-badge.is-new::before, .soon-book .btn-primary.glow { animation: none; } }
.soon-note { margin: .9rem 0 0; font-size: .85rem; color: #b9ab8c !important; }
@media (max-width: 700px) {
  .soon-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .soon-cover { max-width: 240px; margin: 0 auto; }
  .soon-book .btn-primary { width: 100%; box-sizing: border-box; text-align: center; }
}

/* ===== رفّ الكتب التفاعلي ===== */
.shelf-sec { position: relative; overflow: hidden; background: radial-gradient(60rem 22rem at 50% 0, rgba(217,170,79,.16), transparent 70%), #15110c; color: #f3e9d2; padding: 2.6rem 0 2.4rem; }
.shelf-sec .wrap { position: relative; z-index: 1; }
.shelf-sec h2 { margin: 0 0 .2rem; color: #f0c767; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.shelf-hint { margin: 0 0 1.4rem; color: #b9ab8c; }
.shelf-hint .h-touch { display: none; }
@media (hover: none) { .shelf-hint .h-mouse { display: none; } .shelf-hint .h-touch { display: inline; } }
.shelf { display: flex; align-items: flex-end; justify-content: safe center; gap: 8px; height: 270px; padding: 0 1.2rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.bk { position: relative; perspective: 900px; flex: 0 0 auto; width: 60px; height: 240px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .55s cubic-bezier(.2,.8,.2,1); font: inherit; color: inherit; }
.bk.on { width: var(--cw, 165px); }
.bk .bkc { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bk.on .bkc { transform: translateY(-18px) rotateY(180deg); }
.bk .bkf { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px; overflow: hidden; }
.bk .bks { background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 18%, transparent 80%, rgba(255,255,255,.08)), var(--sp, #3b2a24); box-shadow: inset 0 0 0 1px rgba(217,170,79,.35); display: flex; align-items: center; justify-content: center; }
.bk .bks::before, .bk .bks::after { content: ""; position: absolute; inset-inline: 8px; height: 2px; background: var(--fg, #f0c767); opacity: .7; }
.bk .bks::before { top: 16px; } .bk .bks::after { bottom: 16px; }
.bk .bks b { writing-mode: vertical-rl; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; max-height: 190px; overflow: hidden; color: var(--fg, #f0c767); font-weight: 700; padding: 22px 0; }
.bk .bkv { transform: rotateY(180deg); box-shadow: 0 0 0 1px rgba(217,170,79,.4), 0 18px 34px rgba(0,0,0,.6), 0 0 46px rgba(217,170,79,.22); }
.bk .bkv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk.soon .bks { filter: saturate(.5) brightness(.8); }
.bk.soon .bkv img { filter: grayscale(.4) brightness(.8); }
.bk:focus-visible { outline: 3px solid #f0c767; outline-offset: 4px; }
.plank { height: 16px; margin-top: -2px; background: linear-gradient(#6a4526, #3d2613 60%, #2a1a0d); border-radius: 2px; box-shadow: 0 14px 22px -6px rgba(0,0,0,.7), 0 1px 0 rgba(255,220,160,.25) inset; }
.shelf-info { min-height: 8.5rem; padding: 1.6rem 0 0; }
.shelf-info .si-tag { display: inline-block; padding: .15rem .7rem; font-size: .85rem; font-weight: 600; background: #d9aa4f; color: #15110c; border-radius: 3px; margin-bottom: .4rem; }
.shelf-info h3 { margin: .1rem 0 .3rem; color: #f0c767; font-size: 1.6rem; }
.shelf-info p { margin: 0 0 .8rem; color: #eadfc6; max-width: 46rem; }
.shelf-info .si-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.shelf-info .si-price { font-size: 1.3rem; color: #f0c767; font-weight: 600; }
.shelf-info .btn-primary { background: #d9aa4f; color: #15110c; border-color: #d9aa4f; }
.shelf-info .btn-primary:hover { background: #f0c767; color: #15110c; }
.shelf-info.pop { animation: siIn .4s ease both; }
@keyframes siIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* رسوم الخلفية: ألغاز وتروس ولمبة وشبكة عصبية */
.shelf-bg { position: absolute; inset: 0; pointer-events: none; }
.fi { position: absolute; width: 56px; height: 56px; fill: none; stroke: #d9aa4f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .16; animation: fiFloat 9s ease-in-out infinite; }
.fi.f1 { top: 8%; right: 7%; } .fi.f2 { top: 52%; right: 3%; width: 70px; height: 70px; animation: fiSpin 40s linear infinite; }
.fi.f3 { top: 14%; left: 8%; animation-delay: -3s; } .fi.f4 { top: 60%; left: 5%; width: 90px; animation-delay: -5s; }
.fi.f5 { top: 4%; left: 46%; width: 38px; height: 38px; animation-delay: -6s; } .fi.f6 { bottom: 6%; left: 40%; width: 44px; height: 44px; animation: fiSpin 30s linear infinite reverse; }
@keyframes fiFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(8deg); } }
@keyframes fiSpin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .shelf { height: 240px; padding: 0 1rem; } .bk { height: 214px; width: 52px; } .shelf-info h3 { font-size: 1.35rem; } .fi { opacity: .1; } }
@media (prefers-reduced-motion: reduce) { .fi, .shelf-info.pop { animation: none; } .bk, .bk .bkc { transition: none; } }
