/* Elmasryx · main stylesheet (dark neon theme) */
:root {
  --bg: #05070D;
  --bg2: #0A0F1E;
  --panel: #0D1427;
  --panel2: #111A33;
  --line: rgba(160, 190, 255, .10);
  --tq: #22E3D4;          /* turquoise */
  --blue: #2D7BFF;        /* electric blue */
  --purple: #9B5CFF;      /* purple */
  --pink: #FF5C9A;
  --text: #E8EEFA;
  --muted: #93A0BC;
  --green: #1FBF63;
  --radius: 18px;
  --glow-tq: 0 0 18px rgba(34, 227, 212, .45);
  --glow-bl: 0 0 22px rgba(45, 123, 255, .45);
  --grad: linear-gradient(90deg, var(--tq), var(--blue) 50%, var(--purple));
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-ar: "Cairo", "Inter", system-ui, Tahoma, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-en); color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--tq); color: #001; }
.wrap { width: min(1160px, 92%); margin-inline: auto; }
.mono { font-family: var(--mono); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* code-editor grid + soft glows behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(155, 92, 255, .16), transparent 70%),
    radial-gradient(700px 500px at 5% 60%, rgba(45, 123, 255, .13), transparent 70%),
    radial-gradient(500px 400px at 60% 100%, rgba(34, 227, 212, .10), transparent 70%),
    linear-gradient(rgba(160, 190, 255, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(160, 190, 255, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
}
/* animated logo watermark */
.watermark {
  position: fixed; z-index: -2; pointer-events: none; width: 480px; height: 480px;
  inset-inline-end: -110px; top: 22vh; border-radius: 50px;
  background: url("../image.jpg") center / contain no-repeat;
  opacity: .07; mix-blend-mode: screen; filter: saturate(1.3); transform: rotate(-8deg);
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-8deg) scale(1); }
  50% { transform: translate(-60px, 50px) rotate(5deg) scale(1.07); }
  100% { transform: translate(-20px, -30px) rotate(-2deg) scale(.95); }
}

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; z-index: 200;
  background: var(--grad); box-shadow: 0 0 12px var(--tq); }

/* ---------- custom cursor ---------- */
.cur-ring, .cur-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1000; display: none; }
.has-cursor .cur-ring, .has-cursor .cur-dot { display: block; }
.cur-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 2px solid var(--tq); box-shadow: var(--glow-tq), inset 0 0 10px rgba(34, 227, 212, .35);
  transition: width .2s, height .2s, margin .2s, background .2s, border-color .2s;
}
.cur-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(34, 227, 212, .10); border-color: var(--purple); box-shadow: 0 0 24px rgba(155, 92, 255, .6); }
.cur-ring.down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cur-dot { width: 22px; height: 22px; margin: -2px 0 0 -2px; filter: drop-shadow(0 0 6px var(--tq)); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [data-zoom] { cursor: none; }
.has-cursor textarea, .has-cursor input[type="text"] { cursor: text; }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 900; background: #000; display: grid; place-items: center;
  transition: transform .7s cubic-bezier(.7, 0, .2, 1), opacity .7s; font-family: var(--mono);
}
#loader.done { transform: translateY(-100%); opacity: .6; }
.ld-box { width: min(520px, 90vw); text-align: center; }
.ld-bot { width: 150px; margin: 0 auto 6px; }
.ld-bot .eyes { opacity: .08; transition: opacity .25s; }
.ld-bot.on .eyes { opacity: 1; }
.ld-brand { font-family: var(--font-en); font-size: 34px; font-weight: 800; letter-spacing: .5px; direction: ltr; min-height: 48px; }
.ld-brand .x { color: var(--purple); text-shadow: 0 0 18px var(--purple); display: inline-block; }
.ld-brand .x.pop { animation: xpop .5s ease-out; }
@keyframes xpop { 0% { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.5) rotate(10deg); } 100% { transform: scale(1); } }
.ld-caret { display: inline-block; width: 3px; height: 30px; background: var(--tq); vertical-align: -4px; margin-inline-start: 3px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ld-code { direction: ltr; text-align: left; margin-top: 18px; background: #070B16; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: #A9B6D3; min-height: 168px; }
.ld-code .k { color: var(--purple); } .ld-code .v { color: var(--tq); } .ld-code .n { color: #FFB86B; }
.ld-bar { margin: 8px 0; letter-spacing: 1px; white-space: nowrap; overflow: hidden; }
.ld-bar .f { color: var(--tq); text-shadow: 0 0 8px var(--tq); }
.ld-bar .e { color: #2A3550; }
.ld-log div { color: #6FE9A0; animation: fadeIn .25s; }
html[lang="ar"] .ld-log div { direction: rtl; text-align: right; font-family: var(--font-ar); }
.ld-skip { margin-top: 12px; font-size: 12px; color: #4D5A78; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------- announcement bar ---------- */
.offer-bar {
  position: relative; z-index: 60; text-align: center; font-size: 14px; padding: 8px 12px; color: #fff;
  background: linear-gradient(90deg, #3B1C8C, #1D3FB8, #0E7C86, #3B1C8C); background-size: 300% 100%;
  animation: barflow 12s linear infinite;
}
@keyframes barflow { to { background-position: 300% 0; } }
.offer-bar a { color: #fff; font-weight: 700; margin-inline-start: 8px; }
.offer-bar .count { font-family: var(--mono); font-weight: 700; background: rgba(0, 0, 0, .35); padding: 2px 9px; border-radius: 8px; margin-inline: 6px; white-space: nowrap; direction: ltr; display: inline-block; border: 1px solid rgba(34, 227, 212, .5); color: var(--tq); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tq); margin-inline-end: 6px; animation: pulse 1.4s infinite; vertical-align: middle; box-shadow: 0 0 8px var(--tq); }
@keyframes pulse { 50% { opacity: .2; } }
.offer-off .offer-bar, .offer-off .when-offer { display: none !important; }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 13, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; box-shadow: 0 0 0 1px var(--line), var(--glow-tq); }
.brand b { color: var(--purple); text-shadow: 0 0 12px var(--purple); }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; color: #C9D3EA; position: relative; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s; border-radius: 2px; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.lang-btn { border: 1px solid rgba(34, 227, 212, .5); background: transparent; color: var(--tq); padding: 7px 13px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; transition: background .2s, box-shadow .2s; }
.lang-btn:hover { background: rgba(34, 227, 212, .1); box-shadow: var(--glow-tq); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 26px; padding: 4px 8px; }
@media (max-width: 880px) {
  .menu-btn { display: block; margin-inline-start: auto; }
  .nav-links { display: none; position: absolute; top: 66px; inset-inline: 0; background: rgba(5, 7, 13, .97); flex-direction: column; align-items: stretch; padding: 10px 4%; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px; }
  .lang-btn { align-self: flex-start; margin-top: 6px; }
}

/* ---------- buttons (glow + ripple) ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; color: #fff;
  transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: linear-gradient(135deg, var(--tq), var(--blue)); color: #02131A; }
.btn-main:hover { box-shadow: 0 0 0 1px rgba(34, 227, 212, .6), 0 8px 30px rgba(34, 227, 212, .45); }
.btn-purple { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.btn-purple:hover { box-shadow: 0 8px 30px rgba(155, 92, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: rgba(34, 227, 212, .45); color: var(--tq); }
.btn-ghost:hover { background: rgba(34, 227, 212, .08); box-shadow: var(--glow-tq); }
.btn-green { background: var(--green); }
.btn-green:hover { box-shadow: 0 8px 26px rgba(31, 191, 99, .5); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn::before { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s;
}
.btn:hover::before { transform: translateX(120%); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); background: rgba(255, 255, 255, .55); animation: ripple .65s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.tap-wave { position: fixed; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 2px solid var(--tq); pointer-events: none; z-index: 999; animation: tapwave .6s ease-out forwards; }
@keyframes tapwave { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 60px; overflow: hidden; min-height: 640px; }
.circuit { position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent);
  transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .25s ease-out; }
.circuit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit .base path { stroke: rgba(110, 150, 255, .16); stroke-width: 1.4; fill: none; }
.circuit .base circle { fill: #0B1226; stroke: rgba(110, 150, 255, .3); stroke-width: 1.4; }
.circuit .pulse path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 46 554; animation: run linear infinite; opacity: .9; }
@keyframes run { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
/* the spotlight copy: brighter traces only around the mouse / finger */
.circuit .lit { -webkit-mask-image: radial-gradient(180px circle at var(--sx, -999px) var(--sy, -999px), #000 0%, transparent 75%);
  mask-image: radial-gradient(180px circle at var(--sx, -999px) var(--sy, -999px), #000 0%, transparent 75%); }
.circuit .lit path { stroke: var(--tq); stroke-width: 2; fill: none; }
.circuit .lit circle { fill: var(--purple); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.tagline { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--tq); background: rgba(34, 227, 212, .08); border: 1px solid rgba(34, 227, 212, .3); padding: 4px 11px; border-radius: 8px; direction: ltr; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.1; margin: 18px 0; letter-spacing: -1px; }
html[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 580px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; max-width: 620px; }
.stats div { background: rgba(13, 20, 39, .75); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stats b { display: block; font-size: 26px; line-height: 1.1; color: var(--tq); text-shadow: var(--glow-tq); }
.stats span { font-size: 13px; color: var(--muted); }
.hero-bot { position: relative; display: grid; place-items: center; }
.hero-bot .bit { width: min(220px, 60vw); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-bot .halo { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 123, 255, .35), rgba(155, 92, 255, .12) 45%, transparent 70%); z-index: -1; }
.hero-say {
  position: absolute; top: -6px; inset-inline-start: -30px; max-width: 250px; z-index: 2;
  background: #fff; color: #0A0F1E; font-weight: 700; font-size: 15px; padding: 12px 15px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: opacity .3s, transform .3s; line-height: 1.45;
}
.hero-say::after { content: ""; position: absolute; bottom: -8px; inset-inline-end: 34px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
.hero-say.swap { opacity: 0; transform: translateY(6px) scale(.96); }
.hero-say code { font-family: var(--mono); font-size: 13px; color: #5B2EC9; direction: ltr; unicode-bidi: isolate; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-bot { order: -1; margin-top: 40px; }
  .hero-bot .bit { width: 190px; }
  .hero-bot .halo { width: 230px; height: 230px; }
  .hero-say { inset-inline-start: 0; top: -36px; max-width: 220px; font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- sections ---------- */
section.block { padding: 70px 0; position: relative; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--tq); letter-spacing: 1px; direction: ltr; display: inline-block; }
.sec-head h2 { font-size: clamp(27px, 3.5vw, 40px); margin: 6px 0 8px; line-height: 1.25; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* animated gradient border */
.glow-border { position: relative; border-radius: var(--radius); background: var(--panel); }
.glow-border::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--tq), var(--blue), var(--purple), transparent 40%, transparent 60%, var(--tq));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .55; transition: opacity .3s;
}
.glow-border:hover::before { opacity: 1; animation: spin 2s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }

/* ---------- book cards (horizontal) ---------- */
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.book { display: grid; grid-template-columns: 170px 1fr; transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s; will-change: transform; }
.book:hover { box-shadow: 0 24px 60px rgba(45, 123, 255, .25); }
.book .cover { display: grid; place-items: center; padding: 18px; border-radius: var(--radius) 0 0 var(--radius);
  background: radial-gradient(circle at 50% 110%, rgba(45, 123, 255, .4), transparent 70%); }
html[dir="rtl"] .book .cover { border-radius: 0 var(--radius) var(--radius) 0; }
.book .cover img { width: 100%; border-radius: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); transform: translateZ(30px) rotate(-3deg); transition: transform .35s; }
.book:hover .cover img { transform: translateZ(40px) rotate(0) scale(1.04); }
.book .body { padding: 18px 18px 18px 4px; display: flex; flex-direction: column; gap: 8px; }
html[dir="rtl"] .book .body { padding: 18px 4px 18px 18px; }
.book h3 { margin: 0; font-size: 21px; }
.book p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meta > span { font-size: 12px; background: rgba(45, 123, 255, .12); color: #A9C6FF; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(45, 123, 255, .22); white-space: nowrap; }
.meta > span.q { background: rgba(155, 92, 255, .14); color: #D5C2FF; border-color: rgba(155, 92, 255, .3); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 28px; color: var(--tq); text-shadow: var(--glow-tq); }
.price s { color: var(--muted); font-size: 16px; }
.egp { font-size: 13px; color: var(--muted); }
.book .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.book .actions .btn { flex: 1; }
.swipe-hint { display: none; text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
@media (max-width: 1000px) {
  .books { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 12px; margin-inline: -4%; padding-inline: 4%; scrollbar-width: none; }
  .books::-webkit-scrollbar { display: none; }
  .book { flex: 0 0 min(560px, 88%); scroll-snap-align: center; }
  .swipe-hint { display: block; }
}
@media (max-width: 520px) {
  .book { grid-template-columns: 112px 1fr; }
  .book .cover { padding: 12px; }
  .book .body { padding: 14px 14px 14px 2px; }
  html[dir="rtl"] .book .body { padding: 14px 2px 14px 14px; }
  .book h3 { font-size: 18px; }
  .book p { display: none; }
  .meta > span { font-size: 11px; padding: 2px 6px; }
  .meta > span.x { display: none; }
}

/* ---------- bundle ---------- */
.bundle { padding: 38px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; overflow: hidden;
  background: radial-gradient(circle at 90% 20%, rgba(155, 92, 255, .35), transparent 50%), radial-gradient(circle at 10% 90%, rgba(34, 227, 212, .18), transparent 50%), var(--panel); }
.bundle h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 6px 0 10px; line-height: 1.25; }
.bundle p { color: var(--muted); }
.bundle .price b { font-size: 46px; }
.save { background: var(--purple); color: #fff; font-weight: 800; padding: 3px 10px; border-radius: 8px; font-size: 14px; box-shadow: 0 0 16px rgba(155, 92, 255, .6); }
.minis { display: flex; justify-content: center; }
.minis img { width: 140px; border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .6); margin-inline: -18px; transition: transform .3s; }
.minis img:nth-child(odd) { transform: rotate(-8deg) translateY(10px); }
.minis img:nth-child(even) { transform: translateY(-6px); }
.bundle:hover .minis img { transform: translateY(-10px) rotate(0); }
.check { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.check li::before { content: "✓"; color: var(--tq); font-weight: 900; margin-inline-end: 8px; }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; padding: 24px; } .minis img { width: 100px; } }

/* ---------- learning path ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path { padding: 24px; }
.path .icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; color: var(--tq); background: rgba(34, 227, 212, .1); border: 1px solid rgba(34, 227, 212, .3); }
.path h3 { margin: 0 0 6px; }
.path p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.steps a { text-decoration: none; background: rgba(155, 92, 255, .14); color: #CDB6FF; font-weight: 700; padding: 6px 12px; border-radius: 10px; font-size: 14px; border: 1px solid rgba(155, 92, 255, .3); transition: background .2s, box-shadow .2s; }
.steps a:hover { background: var(--purple); color: #fff; box-shadow: 0 0 16px rgba(155, 92, 255, .6); }
.steps i { font-style: normal; color: var(--muted); }
html[lang="ar"] .steps i { transform: scaleX(-1); display: inline-block; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

/* ---------- quiz ---------- */
.quiz { max-width: 760px; margin: 0 auto; padding: 28px; }
.q-progress { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.q-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s; }
.q-step h3 { margin: 0 0 14px; font-size: 22px; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opts button {
  font: inherit; text-align: start; color: var(--text); background: var(--panel2); border: 1.5px solid var(--line);
  padding: 14px 16px; border-radius: 12px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.q-opts button:hover { border-color: var(--tq); transform: translateY(-2px); box-shadow: var(--glow-tq); }
.q-opts button span { display: block; color: var(--muted); font-size: 13px; }
.q-step { animation: fadeIn .35s; }
.q-result { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; animation: fadeIn .4s; }
.q-result img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.q-result h3 { margin: 0 0 6px; font-size: 24px; }
.q-result p { color: var(--muted); margin: 0 0 12px; }
.q-again { background: none; border: 0; color: var(--tq); font: inherit; text-decoration: underline; padding: 0; margin-top: 10px; }
@media (max-width: 560px) { .q-opts { grid-template-columns: 1fr; } .q-result { grid-template-columns: 1fr; } .q-result img { width: 140px; } }

/* ---------- playground ---------- */
.play { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.play-head { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.play-head .dots i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 5px; }
.play-head .dots i:nth-child(1) { background: #FF5F57; } .play-head .dots i:nth-child(2) { background: #FEBC2E; } .play-head .dots i:nth-child(3) { background: #28C840; }
.play-head .file { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-inline-end: auto; }
.chip { font: inherit; font-size: 13px; color: var(--text); background: var(--panel2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; transition: border-color .2s; }
.chip:hover, .chip.on { border-color: var(--tq); color: var(--tq); }
#code { min-height: 340px; border: 0; border-radius: 0; resize: vertical; background: #070B16; color: #CFE3FF; font-family: var(--mono); font-size: 14px; line-height: 1.6; padding: 16px; direction: ltr; text-align: left; tab-size: 2; outline: none; width: 100%; }
#out { width: 100%; height: 100%; min-height: 340px; border: 0; background: #fff; }
.play-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 800px) { .play { grid-template-columns: 1fr; } #code, #out { min-height: 240px; } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { padding: 20px; transition: transform .25s; }
.feat:hover { transform: translateY(-4px); }
.feat .n { font-family: var(--mono); color: var(--purple); font-size: 13px; }
.feat h3 { margin: 6px 0; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- samples ---------- */
.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sample { padding: 16px; display: flex; gap: 12px; align-items: center; }
.sample img { width: 58px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.sample h3 { margin: 0 0 6px; font-size: 16px; }
.sample .links { display: flex; gap: 6px; flex-wrap: wrap; }
.sample .links a { font-size: 13px; font-weight: 700; color: var(--tq); text-decoration: none; border: 1px solid rgba(34, 227, 212, .35); padding: 3px 8px; border-radius: 8px; transition: background .2s, box-shadow .2s; }
.sample .links a:hover { background: rgba(34, 227, 212, .12); box-shadow: var(--glow-tq); }
@media (max-width: 1020px) { .samples { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .samples { grid-template-columns: 1fr; } }

/* ---------- how to buy ---------- */
.buy-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.way { padding: 26px; }
.way h3 { margin: 0 0 4px; font-size: 21px; }
.way .sub { color: var(--muted); margin: 0 0 14px; }
.way ol { margin: 0 0 18px; padding-inline-start: 22px; display: grid; gap: 6px; color: #C9D3EA; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgba(34, 227, 212, .12); color: var(--tq); margin-bottom: 10px; border: 1px solid rgba(34, 227, 212, .3); }
.note { margin-top: 18px; background: rgba(155, 92, 255, .08); border: 1px solid rgba(155, 92, 255, .3); color: #D9CCFF; border-radius: 12px; padding: 12px 16px; font-size: 15px; }
@media (max-width: 760px) { .buy-ways { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: rgba(5, 7, 13, .9); color: var(--muted); padding: 36px 0; margin-top: 40px; font-size: 14px; }
footer .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; text-decoration: none; margin-inline-end: 14px; }
footer a:hover { color: var(--tq); }

/* ---------- floating buttons ---------- */
.wa { position: fixed; bottom: 20px; left: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tq), var(--blue)); display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(34, 227, 212, .5); transition: transform .25s, bottom .3s; }
.wa::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(var(--purple), transparent 35%, var(--purple) 50%, transparent 85%, var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: ringSpin 3s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.wa svg { width: 31px; height: 31px; animation: ringing 4s ease-in-out infinite; }
.wa svg path { stroke: #02131A !important; }
.wa svg path + path { fill: #02131A !important; }
@keyframes ringing { 0%, 76%, 100% { transform: rotate(0); } 80% { transform: rotate(-16deg); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(8deg); } }
.wa:hover { transform: scale(1.12) rotate(-6deg); }
.to-top { position: fixed; bottom: 92px; left: 28px; z-index: 60; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(34, 227, 212, .5); background: rgba(5, 7, 13, .8); color: var(--tq); font-size: 20px; display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, bottom .3s, box-shadow .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: var(--glow-tq); }
.bar-on .wa { bottom: 92px; }
.bar-on .to-top { bottom: 162px; }
.bar-on .buddy { bottom: 116px; }
.bar-on .site-badge { bottom: 80px; }

/* ---------- Bit (robot) ---------- */
.bit { overflow: visible; }
.bit .eyes, .bit .eye, .bit .arm-l, .bit .arm-r, .bit .leg-l, .bit .leg-r, .bit .antenna, .bit .shades, .bit .zzz, .bit .mouth, .bit .body-g { transform-box: fill-box; }
.bit .eye { transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.bit .chest { animation: chest 1.6s ease-in-out infinite; }
@keyframes chest { 50% { opacity: .35; } }
.bit .ball { animation: ball 1.2s ease-in-out infinite; }
@keyframes ball { 50% { filter: brightness(1.8); } }
.bit .arm-l { transform-origin: 90% 10%; }
.bit .arm-r { transform-origin: 10% 10%; }
.bit .antenna { transform-origin: 50% 100%; }
.bit .shades { opacity: 0; transform: translateY(-16px); transition: opacity .35s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.bit.cool .shades { opacity: 1; transform: none; }
.bit .zzz { opacity: 0; }
.bit .mouth-o { opacity: 0; }
.hero-bot .bit .arm-r { animation: wave 3.5s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 68% { transform: rotate(-35deg); } 76% { transform: rotate(-10deg); } 84% { transform: rotate(-35deg); } }

/* walking buddy */
.buddy { position: fixed; bottom: 48px; right: 22px; z-index: 70; width: 84px; pointer-events: none; transition: bottom .3s; }
.buddy .walker { animation: pace 14s ease-in-out infinite; }

@keyframes pace { 0%, 100% { transform: translateX(0); } 45%, 55% { transform: translateX(-46px); } }
@keyframes paceR { 0%, 100% { transform: translateX(0); } 45%, 55% { transform: translateX(-46px); } }
.buddy .bit { width: 84px; display: block; animation: bob .5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.buddy .leg-l { animation: legA .5s ease-in-out infinite; transform-origin: 50% 0; }
.buddy .leg-r { animation: legB .5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes legA { 50% { transform: rotate(14deg); } }
@keyframes legB { 50% { transform: rotate(-14deg); } }
.buddy .arm-l { animation: armA .5s ease-in-out infinite; }
.buddy .arm-r { animation: armB .5s ease-in-out infinite; }
@keyframes armA { 50% { transform: rotate(-12deg); } }
@keyframes armB { 50% { transform: rotate(12deg); } }
.say {
  position: absolute; bottom: 100%; right: 0; margin-bottom: 6px; width: max-content; max-width: 230px;
  background: #fff; color: #0A0F1E; font-size: 13.5px; font-weight: 700; line-height: 1.45; padding: 9px 12px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(8px) scale(.9); transform-origin: bottom right;
  transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
html[dir="rtl"] .say { transform-origin: bottom right; }
.say.show { opacity: 1; transform: none; }
.say::after { content: ""; position: absolute; top: 100%; right: 30px; border: 7px solid transparent; border-top-color: #fff; }
.say code { font-family: var(--mono); font-size: 12px; color: #5B2EC9; direction: ltr; unicode-bidi: isolate; }
/* states */
.buddy.paused .walker, .buddy.paused .bit, .buddy.paused .leg-l, .buddy.paused .leg-r, .buddy.paused .arm-l, .buddy.paused .arm-r { animation-play-state: paused; }
.buddy.trip .bit { animation: trip 1.3s cubic-bezier(.4, 0, .3, 1) forwards; }
@keyframes trip {
  0% { transform: rotate(0); } 18% { transform: rotate(-24deg) translateX(-4px); }
  35% { transform: rotate(-78deg) translate(-8px, 18px); } 45% { transform: rotate(-70deg) translate(-8px, 16px); }
  70% { transform: rotate(-74deg) translate(-8px, 18px); } 100% { transform: rotate(0); }
}
html[dir="rtl"] .buddy.trip .bit { animation-name: tripR; }
@keyframes tripR {
  0% { transform: rotate(0); } 18% { transform: rotate(24deg) translateX(4px); }
  35% { transform: rotate(78deg) translate(8px, 18px); } 45% { transform: rotate(70deg) translate(8px, 16px); }
  70% { transform: rotate(74deg) translate(8px, 18px); } 100% { transform: rotate(0); }
}
.buddy.fix .antenna { animation: wiggle .25s ease-in-out 6; }
@keyframes wiggle { 50% { transform: rotate(18deg); } }
.buddy.fix .arm-r { animation: fixArm 1.5s ease-in-out; }
@keyframes fixArm { 20%, 80% { transform: rotate(-150deg); } }
.buddy.startle .bit { animation: startle .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes startle { 0% { transform: none; } 30% { transform: translateY(-30px) scale(1.08); } 45% { transform: translateY(-30px) rotate(-8deg); } 60% { transform: translateY(-30px) rotate(8deg); } 100% { transform: none; } }
.bit.wide .eye { animation: none; transform: scale(1.35); }
.bit.wide .mouth { opacity: 0; } .bit.wide .mouth-o { opacity: 1; }
.buddy.sleep .walker, .buddy.sleep .bit, .buddy.sleep .leg-l, .buddy.sleep .leg-r, .buddy.sleep .arm-l, .buddy.sleep .arm-r { animation-play-state: paused; }
.bit.sleepy .eye { animation: none; transform: scaleY(.12); }
.bit.sleepy .zzz { animation: zzz 2.4s ease-in-out infinite; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -16px); } }
.buddy.party .bit { animation: party .55s ease-in-out 3; }
@keyframes party { 50% { transform: translateY(-26px) rotate(-6deg); } }
.buddy.party .arm-l { animation: armsUpL .55s ease-in-out 3; }
.buddy.party .arm-r { animation: armsUpR .55s ease-in-out 3; }
@keyframes armsUpL { 50% { transform: rotate(120deg); } }
@keyframes armsUpR { 50% { transform: rotate(-120deg); } }
.confetti { position: fixed; width: 8px; height: 12px; z-index: 1001; pointer-events: none; border-radius: 2px; }
@media (max-width: 560px) { .buddy { width: 56px; } .buddy .bit { width: 56px; } .say { max-width: 200px; font-size: 12.5px; } }

/* ---------- book page ---------- */
.crumbs { padding: 20px 0 0; font-size: 14px; }
.crumbs a { color: var(--tq); text-decoration: none; font-weight: 700; }
.bk-hero { padding: 26px 0 40px; }
.bk-hero .wrap { display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: start; }
.bk-cover { border-radius: 12px; box-shadow: 0 24px 60px rgba(45, 123, 255, .3), 0 0 0 1px var(--line); transition: transform .4s; }
.bk-cover:hover { transform: perspective(800px) rotateY(-8deg) scale(1.02); }
.bk-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 12px 0 6px; line-height: 1.15; }
.bk-hero .lead { font-size: 18px; color: var(--muted); }
.buybox { padding: 22px; margin-top: 20px; }
.buybox .price b { font-size: 40px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.buybox small, .small-note { display: block; color: var(--muted); margin-top: 10px; font-size: 13px; }
.sample-links a { color: var(--tq); font-weight: 700; }
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.get { padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.get .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #02131A; font-family: var(--mono); font-weight: 800; font-size: 12px; }
.get h3 { margin: 0 0 2px; font-size: 16px; }
.get p { margin: 0; font-size: 14px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 22px; }
.panel h2 { margin: 0 0 12px; font-size: 22px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.chapters li { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px dashed var(--line); transition: background .2s, padding .2s; border-radius: 8px; }
.chapters li:hover { background: rgba(34, 227, 212, .05); padding-inline-start: 12px; }
.chapters li:last-child { border-bottom: 0; }
.chapters .num { font-family: var(--mono); font-weight: 800; color: #02131A; background: var(--tq); border-radius: 8px; min-width: 36px; text-align: center; padding: 2px 6px; font-size: 13px; }
.chapters .proj .num { background: var(--purple); color: #fff; }
.peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.peek img { border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.peek img:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 20px 50px rgba(45, 123, 255, .35); }
.fit-note { margin-top: 18px; background: rgba(45, 123, 255, .08); border: 1px solid rgba(45, 123, 255, .3); border-radius: 12px; padding: 12px 16px; }
@media (max-width: 900px) {
  .bk-hero .wrap { grid-template-columns: 1fr; }
  .bk-cover { max-width: 290px; margin-inline: auto; }
  .gets, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .peek { grid-template-columns: 1fr 1fr; } .grid2 { grid-template-columns: 1fr; } }

/* sticky buy bar */
.buybar { position: fixed; bottom: 0; inset-inline: 0; z-index: 65; background: rgba(8, 12, 24, .94); backdrop-filter: blur(10px); border-top: 1px solid rgba(34, 227, 212, .35); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); transform: translateY(110%); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.buybar.show { transform: none; }
.buybar .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.buybar .nm { font-weight: 800; }
.buybar .price b { font-size: 22px; }
.buybar .acts { margin-inline-start: auto; display: flex; gap: 8px; }
@media (max-width: 600px) { .buybar .nm { display: none; } .buybar .acts .btn { padding: 9px 12px; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(2, 4, 10, .9); z-index: 950; display: none; place-items: center; padding: 20px; }
.lightbox.show { display: grid; animation: fadeIn .25s; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 8px; box-shadow: 0 0 60px rgba(45, 123, 255, .4); }

/* ---------- Egypt page ---------- */
.narrow { width: min(780px, 92%); margin-inline: auto; }
.card { padding: 24px; }
.pick { display: grid; gap: 10px; }
.pick label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel2); transition: border-color .2s, box-shadow .2s; }
.pick label:hover { border-color: rgba(34, 227, 212, .5); }
.pick label:has(input:checked) { border-color: var(--tq); box-shadow: var(--glow-tq); background: rgba(34, 227, 212, .06); }
.pick input { accent-color: var(--tq); width: 18px; height: 18px; }
.pick .nm { font-weight: 700; flex: 1; }
.pick .pr { margin-inline-start: auto; font-weight: 800; color: var(--tq); white-space: nowrap; }
.pick .pr b { color: var(--tq); }
.pick .pr s { color: var(--muted); font-weight: 400; font-size: 13px; margin-inline-start: 6px; }
.step { display: flex; gap: 14px; margin-top: 24px; }
.step .sn { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #02131A; display: grid; place-items: center; font-weight: 800; box-shadow: var(--glow-tq); }
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0 0 10px; color: var(--muted); }
.paynum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #070B16; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.paynum b { font-family: var(--mono); font-size: 22px; letter-spacing: 1px; direction: ltr; color: var(--tq); }
.amount { font-size: 22px; font-weight: 800; color: var(--tq); }
@media (max-width: 560px) {
  .card { padding: 16px; }
  .step { gap: 10px; }
  .step .sn { width: 28px; height: 28px; font-size: 14px; }
  .pick label { padding: 10px; gap: 8px; }
  .pick .pr { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; }
  .pick .pr s { margin: 0; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
.ld-bot .bit { overflow: hidden; }
.play { direction: ltr; }
.play .chip { font-family: var(--font-ar), var(--font-en); }

/* code-style buttons: the ( ) show up on hover */
.btn::after { content: "()"; font-family: var(--mono); font-weight: 700; display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s, opacity .3s; margin-inline-start: -8px; }
.btn:hover::after { max-width: 2.2em; opacity: 1; margin-inline-start: -4px; }

/* sections slide in once */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Bit: face-plant, dizzy stars, play moves */
.bit .stars { opacity: 0; transform-box: fill-box; transform-origin: center; }
.bit.dizzy .stars { opacity: 1; animation: starsSpin 1s linear infinite; }
@keyframes starsSpin { to { transform: rotate(360deg); } }
.buddy.plant .bit { animation: plant 1.7s cubic-bezier(.4, 0, .3, 1) forwards; }
@keyframes plant {
  0% { transform: rotate(0); } 14% { transform: rotate(-16deg) translateX(-3px); }
  34% { transform: rotate(-96deg) translate(-10px, 28px); } 40% { transform: rotate(-86deg) translate(-10px, 22px); }
  46% { transform: rotate(-96deg) translate(-10px, 28px); } 78% { transform: rotate(-96deg) translate(-10px, 28px); }
  100% { transform: rotate(0); }
}

@keyframes plantR {
  0% { transform: rotate(0); } 14% { transform: rotate(16deg) translateX(3px); }
  34% { transform: rotate(96deg) translate(10px, 28px); } 40% { transform: rotate(86deg) translate(10px, 22px); }
  46% { transform: rotate(96deg) translate(10px, 28px); } 78% { transform: rotate(96deg) translate(10px, 28px); }
  100% { transform: rotate(0); }
}
.buddy.plant .leg-l { animation: kick .18s ease-in-out infinite alternate; }
.buddy.plant .leg-r { animation: kick .18s ease-in-out infinite alternate-reverse; }
@keyframes kick { to { transform: rotate(30deg); } }
.buddy.hop .bit { animation: hop .8s ease-in-out 2; }
@keyframes hop { 40% { transform: translateY(-28px) scaleY(1.05); } 80% { transform: translateY(0) scaleY(.92); } }
.buddy.spin .bit { animation: spinY 1s ease-in-out; }
@keyframes spinY { 50% { transform: scaleX(-1) translateY(-14px); } }
.buddy.dance .bit { animation: dance .4s ease-in-out 4; }
@keyframes dance { 25% { transform: rotate(-10deg) translateX(-4px); } 75% { transform: rotate(10deg) translateX(4px); } }
.buddy.dance .arm-l { animation: armsUpL .4s ease-in-out 4; }
.buddy.dance .arm-r { animation: armsUpR .4s ease-in-out 4; }

/* phones: lighter */
@media (max-width: 700px), (pointer: coarse) {
  .watermark { display: none; }
  .nav, .buybar { backdrop-filter: none; background: rgba(5, 7, 13, .97); }
  .offer-bar { animation: none; }
  .glow-border::before { opacity: .45; }
  .hero-bot .bit { filter: none; }
}

/* ===== round 4 ===== */
.brand img { width: auto; height: 46px; max-width: 170px; border-radius: 10px; object-fit: contain; box-shadow: none; }
footer .brand img { height: 40px; }

/* elmasryx.shop badge (bottom right) */
.site-badge {
  position: fixed; right: 14px; bottom: 12px; z-index: 60; text-decoration: none;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .5px;
  padding: 5px 11px; border-radius: 20px; background: rgba(5, 7, 13, .85); border: 1px solid rgba(34, 227, 212, .35); transition: bottom .3s;
}
.site-badge i { font-style: normal; display: inline-block; color: #6F7EA3; animation: letter 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes letter { 0%, 30%, 100% { color: #6F7EA3; transform: none; } 12% { color: var(--tq); transform: translateY(-3px); } 20% { color: var(--purple); } }

/* new loader: the logo drawn with light */
#loader { background: #000; }
.ld2 { display: grid; justify-items: center; gap: 14px; }
.ld2 .frame { position: relative; width: 132px; height: 132px; }
.ld2 .frame img { position: absolute; inset: 14px; width: 104px; height: 104px; object-fit: contain; border-radius: 16px; opacity: .25; transition: opacity .3s, transform .4s; }
.ld2 .frame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ld2 .frame rect { fill: none; stroke: url(#ldg); stroke-width: 3; stroke-linecap: round; }
.ld2 .pct { font-family: var(--mono); font-weight: 700; color: var(--tq); font-size: 15px; letter-spacing: 1px; direction: ltr; }
.ld2 .name { font-family: var(--mono); font-size: 12px; color: #4D5A78; direction: ltr; }
.ld2.full .frame img { opacity: 1; transform: scale(1.06); }
#loader.done { transform: none; opacity: 0; pointer-events: none; transition: opacity .45s; }

/* how-to-buy strip under the books */
.pay-strip { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center;
  padding: 12px 16px; border-radius: 14px; background: rgba(13, 20, 39, .7); border: 1px dashed rgba(34, 227, 212, .3); font-size: 14px; color: #C9D3EA; }
.pay-strip a { color: var(--tq); font-weight: 700; }
.pay-strip .final { color: var(--muted); font-size: 13px; }

/* book page */
.bk-hero .who { color: #B9C6E3; font-size: 15px; margin: 6px 0 12px; }
.you-get { margin-top: 14px; font-size: 14px; color: #C9D3EA; }
.sample-links { margin-top: 8px; font-size: 14px; }
.panel .hint { color: var(--muted); font-size: 13.5px; margin: -6px 0 10px; }
.chapters details { width: 100%; }
.chapters summary { display: flex; gap: 12px; align-items: center; list-style: none; cursor: pointer; }
.chapters summary::-webkit-details-marker { display: none; }
.chapters summary .chev { margin-inline-start: auto; font-style: normal; color: var(--tq); transition: transform .25s; font-size: 18px; line-height: 1; }
.chapters details[open] summary .chev { transform: rotate(180deg); }
.chapters .topics { margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 227, 212, .06); border: 1px solid rgba(34, 227, 212, .18); color: #C9D3EA; font-size: 14px; animation: fadeIn .3s; }
.chapters .topics code { font-family: var(--mono); font-size: 12.5px; color: var(--tq); direction: ltr; unicode-bidi: isolate; }
.chapters li:has(details) { padding: 6px; }

/* look-inside slider */
.slider { position: relative; max-width: 560px; margin: 0 auto; }
.slider .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 14px; scrollbar-width: none; direction: ltr; }
.slider .track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; padding: 4px; }
.slide img { width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.sl-btn { position: absolute; top: 45%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(34, 227, 212, .5); background: rgba(5, 7, 13, .85); color: var(--tq); font-size: 26px; line-height: 1; display: grid; place-items: center; transition: box-shadow .2s, transform .2s; }
.sl-btn:hover { box-shadow: var(--glow-tq); transform: scale(1.08); }
.sl-btn.prev { left: -56px; } .sl-btn.next { right: -56px; }
.sl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; direction: ltr; }
.sl-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #2A3550; transition: background .2s, width .2s; }
.sl-dots button.on { background: var(--tq); width: 24px; border-radius: 6px; }
@media (max-width: 700px) { .sl-btn.prev { left: 4px; } .sl-btn.next { right: 4px; } }

/* the seller Bit inside the price box */
.buybox { position: relative; }
.seller { position: absolute; top: -58px; inset-inline-end: 14px; width: 66px; z-index: 3; pointer-events: none; opacity: 0; transform: translateY(16px) scale(.8); transition: opacity .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.seller.show { opacity: 1; transform: none; }

.seller .bit { width: 66px; display: block; }
.seller .mini-say { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; width: max-content; max-width: 210px; background: #fff; color: #0A0F1E; font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.seller .mini-say.show { opacity: 1; }
.seller .arrow { position: absolute; top: 100%; left: 50%; margin-left: -10px; font-size: 24px; line-height: 1; color: var(--tq); opacity: 0; animation: bounceDown .6s ease-in-out infinite alternate; }
.seller.at-btn .arrow { opacity: 1; }
@keyframes bounceDown { to { transform: translateY(8px); } }
.bit .hammer { opacity: 0; }
.seller .bit .hammer { opacity: 1; }
.seller.swing .arm-r { animation: swing .45s ease-in 2; }
@keyframes swing { 0% { transform: rotate(-150deg); } 70% { transform: rotate(10deg); } 100% { transform: rotate(-150deg); } }
.seller.at-btn .bit .hammer { opacity: 0; }
.seller.wink .eye:nth-child(2) { animation: none; transform: scaleY(.1); }
.buybox .price.pre b { opacity: 0; transform: scale(.4); display: inline-block; }
.buybox .price.pre s { color: #fff; font-size: 28px; text-decoration: none; }
.buybox .price s { position: relative; display: inline-block; }
.buybox .price.hit b { animation: newPrice .5s cubic-bezier(.3, 1.6, .5, 1) both; display: inline-block; }
.buybox .price.hit s { animation: crack .35s ease-out; text-decoration: none; }
.buybox .price.hit s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2.5px; background: var(--pink); transform: rotate(-10deg) scaleX(0); transform-origin: left; animation: strike .3s ease-out .05s forwards; box-shadow: 0 0 8px var(--pink); }
@keyframes newPrice { from { opacity: 0; transform: scale(.3) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes crack { 30% { transform: translate(-3px, 2px) rotate(-4deg); } 60% { transform: translate(3px, -1px) rotate(3deg); } }
@keyframes strike { to { transform: rotate(-10deg) scaleX(1); } }
@media (max-width: 560px) { .seller { top: -50px; width: 54px; } .seller .bit { width: 54px; } }

/* ===== round 5 ===== */
/* loader: a battery charging up */
.ld4 { display: grid; justify-items: center; gap: 14px; direction: ltr; }
.ld4 .lg { width: 74px; height: 74px; object-fit: contain; border-radius: 16px; opacity: .2; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.ld4.full .lg { opacity: 1; filter: none; transform: scale(1.12); box-shadow: 0 0 30px rgba(34, 227, 212, .55); }
.ld4 .bat { position: relative; width: 190px; height: 74px; border: 3px solid #2F3E66; border-radius: 16px; padding: 4px; }
.ld4 .bat::after { content: ""; position: absolute; top: 50%; right: -12px; width: 8px; height: 26px; margin-top: -13px; border-radius: 0 6px 6px 0; background: #2F3E66; }
.ld4.full .bat { border-color: var(--tq); box-shadow: 0 0 22px rgba(34, 227, 212, .5); }
.ld4.full .bat::after { background: var(--tq); }
.ld4 .fill { position: relative; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--tq), var(--blue), var(--purple)); background-size: 190px 100%; }
.ld4 .fill .edge { position: absolute; right: -2px; top: 0; bottom: 0; width: 4px; background: #fff; border-radius: 4px; box-shadow: 0 0 10px #fff, 0 0 18px var(--tq); }
.ld4 .volt { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; }
.ld4 .volt path { fill: #fff; stroke: #0A0F1E; stroke-width: 1.5; stroke-linejoin: round; }
.ld4.full .volt { animation: voltPop .4s ease-out; }
@keyframes voltPop { 50% { transform: scale(1.4); } }
.ld4 .pct { font-family: var(--mono); font-weight: 700; color: var(--tq); font-size: 16px; letter-spacing: 1px; direction: ltr; }
.ld4 .name { font-family: var(--mono); font-size: 12px; color: #4D5A78; direction: ltr; }
#loader .spark { position: fixed; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 6px currentColor; }

/* electric background: floating code symbols + lightning */
.zap-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.zap-bg span { position: absolute; font-family: var(--mono); font-weight: 700; opacity: .16; animation: drift2 18s ease-in-out infinite alternate; transition: opacity .15s, text-shadow .15s; }
.zap-bg span.c1 { color: var(--tq); } .zap-bg span.c2 { color: var(--blue); } .zap-bg span.c3 { color: var(--purple); }
.zap-bg span.hit { opacity: .9; text-shadow: 0 0 14px currentColor; }
@keyframes drift2 { 0% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(30px, -40px) rotate(4deg); } 100% { transform: translate(-25px, 20px) rotate(-2deg); } }
.zap-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zap-bg .bolt path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.zap-bg .bolt { animation: zap .5s ease-out forwards; }
@keyframes zap { 0% { opacity: 0; } 10% { opacity: 1; } 25% { opacity: .3; } 40% { opacity: 1; } 100% { opacity: 0; } }

/* first-buyers code */
.coupon-bar { display: inline-block; margin-inline-start: 12px; padding: 2px 10px; border-radius: 20px; background: rgba(255, 209, 102, .16); border: 1px solid rgba(255, 209, 102, .5); color: #FFE29A; font-weight: 700; }
.coupon-bar[hidden], .coupon-line[hidden], .use-code[hidden] { display: none !important; }
.coupon-line { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 209, 102, .1); border: 1px dashed rgba(255, 209, 102, .5); color: #FFE29A; font-size: 14px; }
.coupon-line b, .coupon-bar b { font-family: var(--mono); letter-spacing: 1px; }
.use-code { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 209, 102, .08); border: 1px dashed rgba(255, 209, 102, .45); color: #FFE29A; font-size: 14px; }
.use-code input { accent-color: #FFD166; width: 18px; height: 18px; }
@media (max-width: 700px) { .coupon-bar { display: block; margin: 6px auto 0; width: max-content; } }
