/* ============================================================
   مانجا تاور (Manga Tower) — ثيم آيفون الزجاجي الدائم (مثل «شغّل»)
   زجاج هيكلي على طبقة التحكم العائمة فقط + خلفية glow في المحتوى
   ============================================================ */
:root{
  --bg:#000000;
  --surface:#1C1C1E;
  --glass:rgba(28,28,32,.55);
  --glass-strong:rgba(34,34,38,.72);
  --border:rgba(255,255,255,.14);
  --border-soft:rgba(255,255,255,.08);
  --text:#FFFFFF;
  --text-2:rgba(235,235,245,.62);
  --text-3:rgba(235,235,245,.38);
  --blue:#0A84FF;
  --green:#30D158;
  --violet:#6A4DFF;
  --purple:#BF5AF2;
  --pink:#FF3B8E;
  --radius-card:20px;
  --radius-btn:12px;
  --shadow-float:0 12px 32px rgba(0,0,0,.45);
  --font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  font-size:17px;
  line-height:1.55;
  min-height:100vh;
  overflow-x:hidden;
  padding-bottom:110px; /* مساحة للشريط السفلي العائم */
  -webkit-font-smoothing:antialiased;
}

/* ---------- خلفية التوهّج ---------- */
.glow{position:fixed;inset:0;z-index:-1;overflow:hidden;background:#000}
.orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:.5}
.orb-violet{width:480px;height:480px;background:var(--violet);top:-160px;inset-inline-start:-120px}
.orb-blue{width:420px;height:420px;background:var(--blue);top:32%;inset-inline-end:-160px;opacity:.38}
.orb-pink{width:400px;height:400px;background:var(--pink);bottom:-180px;inset-inline-start:22%;opacity:.32}

/* ---------- الزجاج ---------- */
.glass{
  background:var(--glass);
  -webkit-backdrop-filter:blur(22px) saturate(1.6);
  backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid var(--border);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  /* بديل إلزامي بدون ضبابية: سطح شبه معتم بنفس الحد والإبراز */
  .glass{background:rgba(28,28,32,.94)}
}

/* ---------- الشريط العلوي ---------- */
.topbar{
  position:sticky;top:12px;z-index:50;
  margin:12px 16px 0;
  border-radius:28px;
  box-shadow:var(--shadow-float),inset 0 1px 0 rgba(255,255,255,.14);
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 18px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text)}
.brand-icon-img{width:36px;height:36px;border-radius:11px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.brand-name{font-weight:700;font-size:17px}
.gh-link{color:var(--blue);text-decoration:none;font-weight:600;font-size:15px;padding:8px 6px}

/* ---------- التخطيط العام ---------- */
main{max-width:1060px;margin:0 auto;padding:0 16px}
.section{margin-top:44px}
.section-title{font-size:26px;font-weight:800;margin-bottom:8px}
.section-sub{color:var(--text-2);margin-bottom:18px;max-width:640px}

/* ---------- البطل ---------- */
.hero{padding:44px 4px 6px;text-align:center;display:flex;flex-direction:column;align-items:center}
.hero-icon{
  width:120px;height:120px;border-radius:28px;
  box-shadow:0 18px 40px rgba(106,77,255,.35),inset 0 1px 0 rgba(255,255,255,.35);
}
.large-title{font-size:38px;font-weight:800;line-height:1.2;letter-spacing:-.01em;margin-top:18px}
.hero-latin{color:var(--text-3);font-weight:600;font-size:16px;letter-spacing:.04em;margin-top:2px}
.hero-sub{color:var(--text-2);margin-top:12px;max-width:620px}
.hero-actions{display:flex;gap:12px;margin-top:24px;flex-wrap:wrap;justify-content:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:44px;border-radius:var(--radius-btn);padding:10px 18px;
  font-weight:600;font-size:15.5px;text-decoration:none;border:0;cursor:pointer;
  transition:transform .15s ease,opacity .15s ease;
}
.btn:active{transform:scale(.97);opacity:.85}
.btn-big{min-height:52px;font-size:17px;padding:12px 26px;border-radius:14px}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 8px 22px rgba(10,132,255,.35)}
.btn-ghost{background:rgba(120,120,128,.22);color:var(--text)}
.meta{display:flex;flex-wrap:wrap;gap:6px}
.hero-meta{margin-top:18px;justify-content:center}
.chip{
  background:rgba(120,120,128,.18);color:var(--text-2);
  border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:500;
}
.chip b{color:var(--text);font-weight:600}

/* ---------- موك-أب الهواتف (CSS) ---------- */
.phones{
  display:grid;gap:26px;justify-items:center;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}
.phone-wrap{margin:0;text-align:center}
.phone-wrap figcaption{color:var(--text-2);font-size:14.5px;margin-top:12px}
.phone{
  width:248px;height:520px;border-radius:38px;padding:9px;
  background:linear-gradient(160deg,#2c2c30,#101012);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 24px 48px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.2);
  position:relative;
}
.phone-notch{
  position:absolute;top:9px;left:50%;transform:translateX(-50%);
  width:86px;height:20px;border-radius:0 0 14px 14px;background:#050506;z-index:3;
}
.mock-screen{
  height:100%;border-radius:30px;overflow:hidden;position:relative;
  background:linear-gradient(175deg,#17121f 0%,#0b0b10 55%,#0d0a14 100%);
  padding:34px 14px 64px;display:flex;flex-direction:column;gap:11px;text-align:start;
}
.mock-large-title{font-size:21px;font-weight:800}
.mock-search{
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.1);
  border-radius:999px;padding:7px 13px;font-size:12.5px;color:var(--text-3);
}
.mock-row{
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07);
  border-radius:16px;padding:9px;
}
.mock-cover{
  width:42px;height:56px;flex:0 0 42px;border-radius:9px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}
.mock-cover.big{width:58px;height:78px;flex-basis:58px;border-radius:11px}
.mock-cover.c1{background:linear-gradient(150deg,var(--violet),var(--blue))}
.mock-cover.c2{background:linear-gradient(150deg,var(--purple),var(--pink))}
.mock-cover.c3{background:linear-gradient(150deg,#FF9500,#FF3B30)}
.mock-cover.c4{background:linear-gradient(150deg,var(--green),#64D2FF)}
.mock-lines{display:flex;flex-direction:column;gap:7px;flex:1}
.mock-lines i{display:block;height:8px;border-radius:4px;background:rgba(255,255,255,.28)}
.mock-lines i.w75{width:75%}.mock-lines i.w70{width:70%}.mock-lines i.w60{width:60%}
.mock-lines i.w55{width:55%}.mock-lines i.w50{width:50%}.mock-lines i.w45{width:45%}.mock-lines i.w40{width:40%}
.mock-badge{
  font-size:10.5px;font-weight:700;color:#fff;background:var(--blue);
  border-radius:999px;padding:2px 8px;white-space:nowrap;
}
.mock-tabbar{
  position:absolute;bottom:12px;inset-inline:12px;
  display:flex;justify-content:space-between;gap:2px;
  background:rgba(40,40,46,.66);border:1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-radius:22px;padding:8px 10px;font-size:10.5px;color:var(--text-3);
}
.mock-tabbar .on{color:#fff;font-weight:700}
.mock-detail-head{display:flex;gap:12px;align-items:center}
.mock-cta{
  background:var(--blue);color:#fff;font-weight:700;font-size:14.5px;text-align:center;
  border-radius:12px;padding:11px;box-shadow:0 8px 20px rgba(10,132,255,.35);
}
.mock-chapter{
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07);
  border-radius:13px;padding:10px 12px;font-size:13px;
}
.mock-dl{font-size:11.5px;color:var(--blue);font-weight:600}
.mock-dl.done{color:var(--green)}
.mock-screen.reader{padding:30px 10px 14px;gap:8px;background:#101014}
.mock-panel{border-radius:8px;position:relative;flex:1;overflow:hidden}
.mock-panel.p1{background:linear-gradient(160deg,#3b2d5c,#191324)}
.mock-panel.p2{background:linear-gradient(160deg,#123a4d,#0a1a26)}
.mock-panel.p3{background:linear-gradient(160deg,#4d2438,#200d18);flex:.8}
.mock-panel::after{
  content:"";position:absolute;inset:auto -10% -30% -10%;height:70%;border-radius:50%;
  background:rgba(255,255,255,.1);
}
.mock-bubble{
  position:absolute;width:52px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.85);z-index:1;
}
.mock-bubble.b1{top:12px;inset-inline-start:12px}
.mock-bubble.b2{bottom:14px;inset-inline-end:14px;width:40px;height:24px}
.mock-progress{height:4px;border-radius:2px;background:rgba(255,255,255,.15);overflow:hidden}
.mock-progress span{display:block;height:100%;width:46%;background:var(--blue);border-radius:2px}

/* ---------- كروت المميزات ---------- */
.grid{
  display:grid;gap:16px;margin-top:16px;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
}
.card{
  background:var(--glass);
  -webkit-backdrop-filter:blur(22px) saturate(1.6);
  backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid var(--border-soft);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  border-radius:var(--radius-card);
  padding:20px;
  transition:transform .25s cubic-bezier(.32,.72,0,1);
}
.card:hover{transform:translateY(-2px)}
.card h3{font-size:18px;font-weight:700;margin-bottom:8px}
.card p{color:var(--text-2);font-size:15px}

/* ---------- الأقسام الزجاجية ---------- */
.panel{border-radius:var(--radius-card);padding:24px;margin-top:44px}
.panel h2{font-size:22px;font-weight:700;margin-bottom:12px}
.panel p{color:var(--text-2);margin-bottom:10px}
.panel p b{color:var(--text)}
.steps{margin:0;padding-inline-start:22px;color:var(--text-2)}
.steps li{margin-bottom:8px}
.steps b{color:var(--text)}
.steps code{
  background:rgba(120,120,128,.25);color:var(--text);
  border-radius:6px;padding:1px 7px;font-size:14px;direction:ltr;display:inline-block;
}
.note{
  margin-top:14px;background:rgba(10,132,255,.12);
  border:1px solid rgba(10,132,255,.25);border-radius:14px;
  padding:14px 16px;color:var(--text-2);font-size:15px;
}
.note b{color:var(--text)}
.empty{color:var(--text-2);text-align:center;padding:28px 0}
.empty a{color:var(--blue)}

/* ---------- سجل الإصدارات ---------- */
.release{
  background:var(--glass);
  -webkit-backdrop-filter:blur(22px) saturate(1.6);
  backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid var(--border-soft);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
  border-radius:var(--radius-card);
  padding:20px;margin-top:14px;
}
.release-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.release-head h3{font-size:19px;font-weight:700}
.tag-latest{
  background:var(--green);color:#04150a;font-weight:700;font-size:12px;
  border-radius:999px;padding:2px 10px;
}
.release-date{color:var(--text-3);font-size:13.5px}
.release-notes{color:var(--text-2);font-size:15px;margin-top:10px}
.release-notes ul{margin:6px 0;padding-inline-start:20px}
.release-notes li{margin-bottom:5px}
.release-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.release-actions .btn{flex:0 0 auto}

/* ---------- الأسئلة الشائعة ---------- */
.faq-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.faq{border-radius:16px;padding:4px 18px}
.faq summary{
  cursor:pointer;font-weight:600;font-size:16.5px;padding:12px 0;min-height:44px;
  display:flex;align-items:center;list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";margin-inline-start:auto;color:var(--blue);font-size:22px;font-weight:700}
.faq[open ] summary::after{content:"–"}
.faq p{color:var(--text-2);font-size:15px;padding:0 0 14px}

/* ---------- التذييل والشريط السفلي ---------- */
.footer{text-align:center;color:var(--text-3);font-size:13.5px;padding:38px 16px 8px}
.footer a{color:var(--blue);text-decoration:none}
.bottombar{
  position:fixed;z-index:50;
  bottom:calc(12px + env(safe-area-inset-bottom));
  left:50%;transform:translateX(-50%);
  border-radius:28px;box-shadow:var(--shadow-float),inset 0 1px 0 rgba(255,255,255,.14);
  display:flex;gap:2px;padding:6px;white-space:nowrap;max-width:calc(100vw - 16px);overflow-x:auto;
}
.bottombar a{
  color:var(--text-2);text-decoration:none;font-weight:600;font-size:14.5px;
  padding:9px 14px;border-radius:22px;min-height:44px;display:flex;align-items:center;
}
.bottombar a:hover{background:rgba(120,120,128,.22);color:var(--text)}

@media (max-width:560px){
  .large-title{font-size:31px}
  .grid{grid-template-columns:1fr}
  .topbar{margin:10px 10px 0}
  main{padding:0 12px}
  .hero-actions .btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .card,.btn{transition:none}
}
