/* ==========================================================================
   رمال آر بي — الهوية: ليل الصحراء، ذهب الرمل، وهج الفانوس
   ========================================================================== */
:root {
  /* رمال — غروب الصحراء: رمل فاتح، شمس برتقالية، سماء بنفسجية داكنة */
  --bg0: #120c0f;
  --bg1: #1b1317;
  --bg2: #2a1d24;
  --card: rgba(43, 30, 35, .72);
  --card-2: rgba(30, 21, 26, .78);
  --line: rgba(235, 169, 134, .15);
  --line-2: rgba(235, 169, 134, .36);
  --gold: #eba986;
  --gold-hi: #faceb4;
  --gold-lo: #a76241;
  --ember: #ff6927;
  --text: #f5dbcc;
  --muted: #ba9e98;
  --dim: #7e6f66;
  --ok: #6fc89c;
  --bad: #e7695b;
  --warn: #ff8552;
  --r: 18px;
  --nav-h: 70px;
  --wrap: 1180px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Lalezar", "Reem Kufi", "Tajawal", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 16.5px/1.9 "Tajawal", system-ui, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 520px at 50% 108%, rgba(255, 105, 39, .22), transparent 70%),
    radial-gradient(900px 400px at 15% 0%, rgba(122, 85, 102, .25), transparent 70%),
    linear-gradient(180deg, #120c10 0%, #1d1318 35%, #2a1a1f 70%, #2b1916 100%) fixed;
  background-color: var(--bg0);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(235, 169, 134, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
#app, .foot, .nav { position: relative; z-index: 1; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.view-pad { padding-top: calc(var(--nav-h) + 34px); padding-bottom: 40px; min-height: 80vh; }

/* ---------- icons ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }

/* ---------- typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
  background: linear-gradient(180deg, #ffebe6 0%, #f6b3a0 42%, #d9705a 80%, #8d3a2a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .55));
}
h1.display { font-size: clamp(34px, 5.4vw, 58px); }
h2.display { font-size: clamp(27px, 3.8vw, 40px); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 62ch; margin: 14px auto 0; }

.kicker { display: flex; justify-content: center; margin-bottom: 10px; }
.kicker span {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 13.5px "Tajawal"; letter-spacing: .02em; color: var(--gold);
  padding: 5px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(235, 169, 134, .05);
}
.kicker span::before, .kicker span::after { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); opacity: .8; }

.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px auto 0; }
.orn::before, .orn::after { content: ""; height: 1px; width: min(150px, 26vw); }
.orn::before { background: linear-gradient(to left, var(--gold), transparent); }
.orn::after { background: linear-gradient(to right, var(--gold), transparent); }
.orn i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); background: var(--gold-lo); box-shadow: 0 0 14px rgba(235, 169, 134, .6); }

/* ---------- buttons ---------- */
.btn {
  --pad: 12px 22px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 13px; border: 1px solid var(--line-2);
  font: 700 15.5px/1.2 "Tajawal"; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s, opacity .25s;
}
.btn .ic { width: 19px; height: 19px; }
.btn-lg { --pad: 15px 28px; font-size: 17px; border-radius: 15px; }
.btn-gold {
  color: #fff; border-color: #f08a6c; text-shadow: 0 1px 2px rgba(80, 20, 10, .35);
  background: linear-gradient(180deg, #f59a7c 0%, #d6573b 55%, #9c3321 100%);
  box-shadow: 0 14px 34px -14px rgba(255, 109, 46, .7), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn-gold:hover::after { transform: translateX(-120%); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(255, 109, 46, .85), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { background: rgba(255, 255, 255, .035); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(235, 169, 134, .08); transform: translateY(-2px); }
.btn:disabled, .btn.is-disabled { opacity: .42; cursor: not-allowed; transform: none !important; filter: saturate(.4); }
.btn:disabled::after { display: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.solid, body:not(.at-home) .nav {
  background: rgba(18, 12, 15, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px #000;
}
.nav-in { height: 100%; width: min(1320px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--gold);
  background: radial-gradient(circle at 50% 30%, rgba(235, 169, 134, .22), rgba(235, 169, 134, .03)); border: 1px solid var(--line-2); }
.brand-mark .ic { width: 24px; height: 24px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font: 400 25px/1.1 var(--display); color: var(--gold-hi); }
.brand-txt small { font: 700 10.5px/1.4 "Tajawal"; letter-spacing: .28em; color: var(--dim); direction: ltr; text-align: right; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: #cdb8ac; transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav-links a.active { color: var(--gold-hi); }
.nav-links a.active::after { content: ""; position: absolute; inset: auto 14px 2px 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.nav-links a > i { display: none; color: var(--ok); }
.nav-links a > i .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.nav-links a.is-read > i { display: inline-flex; }
.nav-exam { }
.nav-exam .exam-lock .ic { width: 15px; height: 15px; }
.nav-exam .exam-lock .ic { color: var(--gold); }

.read-pill { display: flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); flex: none; }
.read-pill b { color: var(--gold-hi); }
.read-pill .segs { display: flex; gap: 3px; }
.read-pill .segs i { width: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); transition: background .4s; }
.read-pill .segs i.on { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 8px rgba(235, 169, 134, .6); }
.read-pill.all { border-color: rgba(111, 200, 156, .4); }

.read-bar { position: absolute; inset: auto 0 -1px 0; height: 2px; pointer-events: none; }
.read-bar span { display: block; height: 100%; width: 0; margin-inline-start: 0; background: linear-gradient(270deg, var(--ember), var(--gold-hi)); box-shadow: 0 0 12px var(--ember); transition: width .12s linear; }

.burger { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--gold-hi); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 28px; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO — the banner fills the screen (cover), effects sit on the image itself
   ========================================================================== */
.hero { --hh: clamp(560px, 100svh, 980px); position: relative; overflow: hidden; background: #130d10; }
.hero-bg { position: absolute; inset: -40px; background: url(../assets/banner.jpg?v=red1) center / cover; filter: blur(34px) brightness(.45) saturate(1.1); transform: scale(1.08); }
.hero-frame { position: relative; height: var(--hh); overflow: hidden; }
.hero-art { position: absolute; left: 50%; top: 50%; width: max(100%, calc(var(--hh) * 1.7773)); aspect-ratio: 1365 / 768; transform: translate(-50%, -50%); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; animation: heroIn 1.8s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.05); filter: brightness(.35) blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(18, 12, 15, .55) 0%, transparent 16%, transparent 58%, rgba(18, 12, 15, .55) 76%, #130d10 100%); }

.fx { position: absolute; z-index: 1; pointer-events: none; }
.fx.sun { left: 18.2%; top: 63.8%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 151, 99, .45), rgba(255, 86, 60, .16) 45%, transparent 72%); mix-blend-mode: screen; animation: sunPulse 6s ease-in-out infinite alternate; }
@keyframes sunPulse { from { opacity: .65; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
.fx.beacon { left: 77.85%; top: 25.4%; width: .55%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #ff4a3a;
  box-shadow: 0 0 6px 2px rgba(255, 74, 58, .9), 0 0 22px 8px rgba(255, 74, 58, .35); animation: beacon 2.4s steps(1) infinite; }
@keyframes beacon { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .08; } }

.hero-cta { position: absolute; z-index: 3; inset: auto 0 clamp(26px, 6vh, 64px) 0; text-align: center; padding: 0 16px; }
.hero-tag { margin: 0 auto 18px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; color: #f4d4c3; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.hero-tag b { font-family: var(--display); font-weight: 400; font-size: 1.35em; color: var(--gold-hi); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-ghost { background: rgba(20, 14, 17, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 10px; transform: translateX(-50%); width: 26px; height: 40px; border-radius: 20px; border: 1.5px solid rgba(250, 206, 180, .45); background: rgba(0, 0, 0, .2); cursor: pointer; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: var(--gold-hi); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   HOME BLOCKS
   ========================================================================== */
.block { padding: clamp(56px, 8vw, 96px) 0 0; }
.block-head { text-align: center; margin-bottom: 40px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 38px; inset-inline: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), var(--line-2), transparent); }
.step { position: relative; text-align: center; padding: 0 10px 22px; }
.step-medal { position: relative; width: 76px; height: 76px; margin: 0 auto 16px; display: grid; place-items: center; }
.step-medal::before { content: ""; position: absolute; inset: 8px; transform: rotate(45deg); border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, #3a2830, #1b1317); box-shadow: 0 10px 30px -10px #000, inset 0 0 0 4px rgba(15, 10, 13, .6); transition: .4s var(--ease); }
.step-medal b { position: relative; font: 700 26px "Reem Kufi"; color: var(--gold); }
.step:hover .step-medal::before { transform: rotate(135deg); border-color: var(--gold); }
.step.done .step-medal::before { background: linear-gradient(135deg, #f59a7c, #9c3321); border-color: #f8b48b; box-shadow: 0 0 30px rgba(235, 169, 134, .45); }
.step.done .step-medal b { color: #1d0d0a; }
.step h3 { margin: 0 0 6px; font: 700 19px "Reem Kufi"; color: var(--gold-hi); }
.step p { margin: 0 auto 12px; color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 30ch; }
.step-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.step-state .ic { width: 15px; height: 15px; }
.step-state.ok { color: var(--ok); border-color: rgba(111, 200, 156, .35); background: rgba(111, 200, 156, .07); }
.step-state.link { color: var(--gold-hi); cursor: pointer; border-color: var(--line-2); }
.step-state.link:hover { background: rgba(235, 169, 134, .1); }

.sec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-card {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 24px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}
.sec-card::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; top: -130px; inset-inline-end: -90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 169, 134, .16), transparent); transition: transform .6s var(--ease); }
.sec-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 34px 70px -30px #000, 0 0 0 1px rgba(235, 169, 134, .1); }
.sec-card:hover::before { transform: scale(1.4); }
.sec-card .num { position: absolute; top: 14px; inset-inline-start: 22px; font: 700 70px/1 "Reem Kufi"; color: rgba(235, 169, 134, .07); }
.sec-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--gold); margin-inline-start: auto;
  background: linear-gradient(135deg, rgba(235, 169, 134, .18), rgba(235, 169, 134, .03)); border: 1px solid var(--line-2); }
.sec-ico .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.sec-card h3 { margin: 18px 0 6px; font: 700 23px "Reem Kufi"; color: var(--gold-hi); }
.sec-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.8; flex: 1; }
.sec-meta { display: flex; gap: 14px; margin: 18px 0; font-size: 13.5px; color: var(--dim); }
.sec-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sec-meta .ic { width: 15px; height: 15px; }
.sec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sec-foot .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-hi); }
.sec-foot .go .ic { transition: transform .3s var(--ease); }
.sec-card:hover .go .ic { transform: translateX(-5px); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--muted); border: 1px solid var(--line); }
.badge .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.badge.ok { color: var(--ok); border-color: rgba(111, 200, 156, .35); background: rgba(111, 200, 156, .07); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { padding: 26px 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(43, 30, 35, .55), rgba(25, 17, 21, .55)); transition: border-color .3s, transform .4s var(--ease); }
.feat:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feat-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: var(--ember); background: radial-gradient(closest-side, rgba(255, 105, 39, .2), rgba(255, 105, 39, .02)); border: 1px solid rgba(255, 105, 39, .3); }
.feat-ico .ic { width: 24px; height: 24px; }
.feat h3 { margin: 16px 0 6px; font: 700 19px "Reem Kufi"; color: var(--gold-hi); }
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.cta { position: relative; margin: clamp(64px, 9vw, 110px) 0 20px; padding: clamp(40px, 6vw, 64px) 24px; text-align: center; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-2); background: radial-gradient(700px 260px at 50% 0%, rgba(235, 169, 134, .16), transparent 70%), linear-gradient(180deg, rgba(47, 32, 38, .85), rgba(24, 17, 21, .85)); }
.cta::before, .cta::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); opacity: .6; }
.cta::before { top: 14px; inset-inline-start: 14px; border-inline-end: 0; border-bottom: 0; }
.cta::after { bottom: 14px; inset-inline-end: 14px; border-inline-start: 0; border-top: 0; }
.cta-crown { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--gold); filter: drop-shadow(0 0 18px rgba(235, 169, 134, .5)); }
.cta-crown .ic { width: 100%; height: 100%; stroke-width: 1.2; }
.cta p { color: var(--muted); margin: 10px 0 26px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   RULES
   ========================================================================== */
.sec-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 34px; padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(20, 14, 17, .6); backdrop-filter: blur(8px); }
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 11px; white-space: nowrap; font-weight: 700; font-size: 15px; color: var(--muted); transition: .25s; }
.sec-tab .ic { width: 18px; height: 18px; }
.sec-tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.sec-tab.on { color: #fff; background: linear-gradient(180deg, #f59a7c, #c94e33); box-shadow: 0 8px 22px -10px rgba(255, 109, 46, .8); }
.sec-tab .tick { display: none; color: var(--ok); }
.sec-tab .tick .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.sec-tab.is-read .tick { display: inline-flex; }
.sec-tab.on .tick { color: #1f5a3c; }

.rules-head { text-align: center; margin-bottom: 44px; }
.meta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 99px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.chip .ic { width: 16px; height: 16px; }
.chip.ok { color: var(--ok); border-color: rgba(111, 200, 156, .35); background: rgba(111, 200, 156, .07); }
.search { position: relative; display: flex; align-items: center; max-width: 520px; margin: 24px auto 0; }
.search .ic { position: absolute; inset-inline-start: 16px; color: var(--dim); width: 19px; height: 19px; pointer-events: none; }
.search input { width: 100%; padding: 14px 48px 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(20, 14, 17, .7); color: var(--text); font: 500 16px "Tajawal"; transition: border-color .25s, box-shadow .25s; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 169, 134, .12); }

.rules-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 22px); }
.toc-inner { padding: 18px 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(25, 17, 21, .7); backdrop-filter: blur(8px); }
.toc-title { font: 700 13px "Tajawal"; color: var(--dim); padding: 0 10px 10px; letter-spacing: .04em; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 15px; color: var(--muted); transition: .2s; position: relative; }
.toc a .ic { width: 17px; height: 17px; color: var(--dim); transition: color .2s; }
.toc a em { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--dim); }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.toc a.on { color: var(--gold-hi); background: rgba(235, 169, 134, .08); }
.toc a.on .ic { color: var(--gold); }
.toc a.on::before { content: ""; position: absolute; inset-inline-start: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); }
.toc-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.tp-bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.tp-bar span { display: block; height: 100%; width: 0; background: linear-gradient(270deg, var(--ember), var(--gold-hi)); transition: width .15s; }
.toc-progress small { font-size: 12.5px; color: var(--gold); min-width: 34px; text-align: left; }

.rgroup { margin-bottom: 44px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.rgroup-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rgroup-head > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: var(--gold); border: 1px solid var(--line-2); background: rgba(235, 169, 134, .07); }
.rgroup-head h2 { margin: 0; font: 700 25px "Reem Kufi"; color: var(--gold-hi); }
.rgroup-head::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: linear-gradient(to left, transparent, var(--line-2)); }
.rgroup-note { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 18px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; color: #d9bba7; border: 1px solid rgba(255, 133, 82, .25); background: rgba(255, 133, 82, .06); }
.rgroup-note .ic { color: var(--warn); margin-top: 5px; }

.rule {
  position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; padding: 22px 22px 20px; margin-bottom: 14px;
  border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(45, 31, 37, .7), rgba(27, 19, 23, .7));
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; scroll-margin-top: calc(var(--nav-h) + 30px);
}
.rule::before { content: ""; position: absolute; inset-inline-start: -1px; top: 20px; bottom: 20px; width: 3px; border-radius: 3px; background: linear-gradient(var(--gold-hi), var(--ember)); opacity: 0; transition: opacity .3s; }
.rule:hover { border-color: var(--line-2); box-shadow: 0 20px 40px -26px #000; }
.rule:hover::before { opacity: 1; }
.rule.flash { animation: flash 2.2s var(--ease); }
@keyframes flash { 0%, 30% { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 169, 134, .2), 0 0 50px rgba(235, 169, 134, .25); } 100% { } }
.rule-num { width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; line-height: 1;
  border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(235, 169, 134, .14), rgba(235, 169, 134, .02)); }
.rule-num span { font: 700 13px "Reem Kufi"; color: var(--dim); }
.rule-num b { font: 700 24px "Reem Kufi"; color: var(--gold); margin-top: 3px; }
.rule h3 { margin: 2px 0 6px; font: 700 19px/1.5 "Tajawal"; color: #f6dccc; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.tag { direction: ltr; font: 700 11.5px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .03em; padding: 5px 9px; border-radius: 7px;
  color: #ff844e; background: rgba(255, 105, 39, .1); border: 1px solid rgba(255, 105, 39, .3); }
.rule p { margin: 0; color: #cab5b0; font-size: 16px; }
.rule p b { color: var(--gold-hi); }
.rule-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ex { display: flex; gap: 9px; align-items: flex-start; flex: 1 1 340px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.75; color: var(--muted); background: rgba(255, 255, 255, .025); border: 1px dashed var(--line); }
.ex .ic { color: var(--gold); margin-top: 5px; }
.ex b { color: #dcc3b3; }
.pen { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.pen .ic { width: 16px; height: 16px; }
.sev-1 { color: var(--warn); background: rgba(255, 133, 82, .08); border: 1px solid rgba(255, 133, 82, .28); }
.sev-2 { color: #f0955a; background: rgba(240, 149, 90, .08); border: 1px solid rgba(240, 149, 90, .3); }
.sev-3 { color: #f07a6c; background: rgba(231, 105, 91, .09); border: 1px solid rgba(231, 105, 91, .34); }

.no-results { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }

.rules-end { position: relative; margin-top: 30px; padding: 40px 24px 34px; text-align: center; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-2); background: radial-gradient(600px 220px at 50% 0, rgba(235, 169, 134, .12), transparent 70%), linear-gradient(180deg, rgba(45, 31, 37, .85), rgba(24, 17, 21, .85)); }
.seal { position: relative; width: 92px; height: 92px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--gold); }
.seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 26s linear infinite; }
.seal::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle, rgba(235, 169, 134, .14), transparent 70%); }
.seal .ic { position: relative; z-index: 1; width: 42px; height: 42px; stroke-width: 1.4; }
.rules-end.done .seal { color: #1d0d0a; }
.rules-end.done .seal::after { background: linear-gradient(135deg, #f59a7c, #b23f28); border-color: #fbbb93; box-shadow: 0 0 40px rgba(235, 169, 134, .5); animation: pop .7s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.rules-end h3 { margin: 0; font: 700 26px "Reem Kufi"; color: var(--gold-hi); }
.end-msg { margin: 10px auto 22px; color: var(--muted); max-width: 52ch; }
.end-msg b { color: var(--gold-hi); font-size: 1.15em; }
.end-msg.ok { color: var(--ok); }
.end-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.count-ring { display: inline-grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 6px; position: relative; }

/* ==========================================================================
   EXAM
   ========================================================================== */
.exam-wrap { max-width: 920px; }
.gate { text-align: center; }
.gate-emblem { position: relative; width: 110px; height: 110px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--gold); }
.gate-emblem::before { content: ""; position: absolute; inset: 0; transform: rotate(45deg); border-radius: 26px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, #38272f, #1a1216); box-shadow: 0 0 0 8px rgba(235, 169, 134, .04), var(--shadow); }
.gate-emblem .ic { position: relative; width: 44px; height: 44px; stroke-width: 1.5; }
.gate-emblem.open::before { background: linear-gradient(135deg, #f59a7c, #9c3321); border-color: #f9b88f; box-shadow: 0 0 0 8px rgba(235, 169, 134, .08), 0 0 60px rgba(235, 169, 134, .35); }
.gate-emblem.open { color: #1d0d0a; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0; }
.facts div { padding: 16px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(33, 23, 28, .7); }
.facts b { display: block; font: 700 30px/1.2 "Reem Kufi"; color: var(--gold-hi); }
.facts span { font-size: 13.5px; color: var(--muted); }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: start; }
.panel { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--card-2)); }
.panel h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font: 700 17px "Tajawal"; color: var(--gold-hi); }
.panel h3 .ic { color: var(--gold); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-weight: 500; transition: .3s; }
.checklist .ck { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--dim); }
.checklist .ck .ic { width: 15px; height: 15px; }
.checklist li.ok { border-color: rgba(111, 200, 156, .3); background: rgba(111, 200, 156, .05); }
.checklist li.ok .ck { color: #0e2a1c; background: var(--ok); border-color: var(--ok); }
.checklist li.ok .ck .ic { stroke-width: 3; }
.checklist em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: var(--ok); }
.checklist a { margin-inline-start: auto; font-size: 13.5px; font-weight: 700; color: var(--gold-hi); white-space: nowrap; }
.checklist a:hover { text-decoration: underline; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 10, 13, .7); color: var(--text); font: 500 16px "Tajawal"; transition: border-color .25s, box-shadow .25s; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 169, 134, .12); }
.field input::placeholder { color: var(--dim); }
.agree { display: flex; align-items: flex-start; gap: 12px; max-width: 640px; margin: 24px auto; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; text-align: start; transition: border-color .25s, background .25s; }
.agree:hover { border-color: var(--line-2); }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree .box { width: 24px; height: 24px; flex: none; margin-top: 3px; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid var(--line-2); color: transparent; transition: .2s; }
.agree .box .ic { width: 15px; height: 15px; stroke-width: 3; }
.agree input:checked + .box { background: var(--gold); border-color: var(--gold); color: #1d0d0a; }
.agree input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 3px; }
.agree:has(input:checked) { border-color: rgba(235, 169, 134, .45); background: rgba(235, 169, 134, .05); }
.gate-hint { min-height: 1.9em; margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }
.gate-hint.warn { color: var(--warn); }
.last-res { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: -6px 0 22px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(33, 23, 28, .7); text-align: start; }
.last-res.pass { border-color: rgba(111, 200, 156, .35); }
.last-res .lr-txt { display: flex; align-items: center; gap: 12px; }
.last-res .lr-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.last-res.pass .lr-ico { background: rgba(111, 200, 156, .14); color: var(--ok); }
.last-res.fail .lr-ico { background: rgba(231, 105, 91, .12); color: var(--bad); }
.last-res small { display: block; color: var(--muted); font-size: 13px; }
.last-res .btn { --pad: 9px 16px; font-size: 14px; }

/* run */
.run-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.run-who { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; min-width: 0; }
.run-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-count { font-size: 15px; color: var(--muted); }
.run-count b { font: 700 26px "Reem Kufi"; color: var(--gold-hi); }
.timer { position: relative; width: 66px; height: 66px; flex: none; display: grid; place-items: center; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 3; }
.t-bg { stroke: rgba(255, 255, 255, .08); }
.t-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 106.8; transition: stroke-dashoffset .25s linear, stroke .3s; }
.timer span { font: 700 14px "Tajawal"; direction: ltr; color: var(--gold-hi); }
.timer.warn .t-fg { stroke: var(--bad); }
.timer.warn span { color: var(--bad); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45; } }
.run-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-bottom: 26px; }
.run-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(270deg, var(--ember), var(--gold-hi)); box-shadow: 0 0 12px rgba(255, 105, 39, .6); transition: width .5s var(--ease); }
.q-stage { min-height: 420px; }
.q-card { padding: clamp(22px, 4vw, 38px); border-radius: 26px; border: 1px solid var(--line-2);
  background: radial-gradient(600px 200px at 50% 0, rgba(235, 169, 134, .08), transparent 70%), linear-gradient(180deg, rgba(45, 31, 37, .88), rgba(24, 17, 21, .88));
  box-shadow: var(--shadow); animation: qIn .5s var(--ease) both; }
.q-card.from-l { animation-name: qInL; } .q-card.from-r { animation-name: qInR; }
@keyframes qIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qInL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes qInR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.q-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.q-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--gold); padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(235, 169, 134, .05); }
.q-tag .ic { width: 15px; height: 15px; }
.q-num { font: 700 15px "Reem Kufi"; color: var(--dim); }
.q-text { margin: 0 0 24px; font: 700 clamp(20px, 2.6vw, 25px)/1.6 "Tajawal"; color: #f7ded1; }
.opts { display: grid; gap: 12px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-align: start; cursor: pointer;
  border-radius: 15px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font: 500 17px/1.6 "Tajawal"; color: var(--text);
  transition: border-color .2s, background .2s, transform .25s var(--ease), box-shadow .25s; }
.opt:hover { border-color: var(--line-2); background: rgba(235, 169, 134, .06); transform: translateX(-4px); }
.opt-key { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line-2); font: 700 17px "Reem Kufi"; color: var(--gold); transition: .2s; }
.opt-txt { flex: 1; }
.opt-ring { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); transition: .2s; }
.opt.sel { border-color: var(--gold); background: linear-gradient(270deg, rgba(235, 169, 134, .05), rgba(235, 169, 134, .15)); box-shadow: inset 0 0 0 1px var(--gold), 0 12px 30px -16px rgba(235, 169, 134, .6); }
.opt.sel .opt-key { background: var(--gold); color: #1d0d0a; border-color: var(--gold); }
.opt.sel .opt-ring { border-color: var(--gold); box-shadow: inset 0 0 0 5px #1d1418, inset 0 0 0 12px var(--gold); }
.run-nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.dots { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dot { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font: 700 12.5px "Tajawal"; color: var(--dim); cursor: pointer; transition: .2s; }
.dot:hover { border-color: var(--line-2); color: var(--text); }
.dot.ans { color: var(--gold-hi); border-color: rgba(235, 169, 134, .45); background: rgba(235, 169, 134, .1); }
.dot.cur { color: #1d0d0a; background: var(--gold); border-color: var(--gold); }
.kbd-hint { text-align: center; color: var(--dim); font-size: 13px; margin-top: 18px; }
.kbd-hint kbd { font: 700 12px ui-monospace, Consolas, monospace; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }

/* result */
.result { text-align: center; }
.score { position: relative; width: 190px; height: 190px; margin: 0 auto 20px; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 7; }
.s-bg { stroke: rgba(255, 255, 255, .07); }
.s-fg { stroke: url(#sg); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.6s var(--ease); }
.result.fail .s-fg { stroke: var(--bad); }
.s-mark { stroke: rgba(255, 255, 255, .55); stroke-width: 12 !important; stroke-dasharray: 1.4 325.3; }
.score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; direction: ltr; }
.score-num b { font: 700 54px "Reem Kufi"; color: var(--gold-hi); }
.score-num span { font: 700 22px "Reem Kufi"; color: var(--gold); margin-top: 14px; }
.result.fail .score-num b { color: #f19d92; }
.result.pass .score { filter: drop-shadow(0 0 30px rgba(235, 169, 134, .35)); }
.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0; }
.res-stats div { padding: 16px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(33, 23, 28, .7); }
.res-stats b { display: block; font: 700 26px/1.3 "Reem Kufi"; color: var(--gold-hi); direction: ltr; }
.res-stats .g b { color: var(--ok); } .res-stats .r b { color: var(--bad); }
.res-stats span { font-size: 13.5px; color: var(--muted); }

.cert { position: relative; margin: 10px auto 0; max-width: 680px; padding: 10px; border-radius: 24px;
  background: linear-gradient(135deg, #f6a184, #8c2f1e 30%, #ee8f72 55%, #7a2716 80%, #f6a184); box-shadow: 0 30px 70px -30px #000, 0 0 60px -10px rgba(235, 169, 134, .35); }
.cert-in { position: relative; padding: 36px 28px 28px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(500px 220px at 50% 0, rgba(235, 169, 134, .15), transparent 70%), linear-gradient(180deg, #2a1d24, #171014); }
.cert-in::before { content: ""; position: absolute; inset: 10px; border-radius: 10px; border: 1px solid rgba(235, 169, 134, .3); pointer-events: none; }
.cert-in::after { content: "رمال"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 210px/1 var(--display); color: rgba(235, 169, 134, .045); pointer-events: none; white-space: nowrap; }
.cert-crown { width: 58px; height: 58px; margin: 0 auto 6px; color: var(--gold); }
.cert-crown .ic { width: 100%; height: 100%; stroke-width: 1.3; }
.cert-kick { font: 700 13px "Tajawal"; letter-spacing: .2em; color: var(--gold); }
.cert h2 { margin: 6px 0 14px; font: 700 26px "Reem Kufi"; color: var(--gold-hi); }
.cert p { margin: 0; color: var(--muted); }
.cert-name { margin: 6px 0 8px; font: 700 clamp(28px, 5vw, 40px)/1.4 "Reem Kufi"; background: linear-gradient(180deg, #ffe8e2, #e0755a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px dashed rgba(235, 169, 134, .3); }
.cert-foot small { display: block; font-size: 12px; color: var(--dim); }
.cert-foot b { font-size: 14.5px; color: #e9cab7; word-break: break-all; }
.cert-actions, .res-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.retry { max-width: 620px; margin: 0 auto; padding: 22px; border-radius: 20px; border: 1px solid rgba(231, 105, 91, .3); background: rgba(231, 105, 91, .05); }
.retry p { margin: 0 0 4px; color: #e0cabf; }
.retry b { color: var(--gold-hi); direction: ltr; display: inline-block; }

.review { margin-top: 46px; text-align: start; }
.review-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.review-head h3 { margin: 0; font: 700 22px "Reem Kufi"; color: var(--gold-hi); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20, 14, 17, .6); }
.seg button { padding: 7px 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; }
.seg button.on { background: rgba(235, 169, 134, .14); color: var(--gold-hi); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rv { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(33, 23, 28, .7); }
.rv.bad { border-color: rgba(231, 105, 91, .28); }
.rv-head { display: flex; gap: 12px; align-items: flex-start; }
.rv-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; margin-top: 2px; }
.rv-ico .ic { width: 15px; height: 15px; stroke-width: 3; }
.rv.ok .rv-ico { background: rgba(111, 200, 156, .15); color: var(--ok); }
.rv.bad .rv-ico { background: rgba(231, 105, 91, .14); color: var(--bad); }
.rv-q { font-weight: 700; color: #f1d8c9; }
.rv-ans { margin: 10px 40px 0 0; display: grid; gap: 4px; font-size: 15px; }
.rv-ans .mine { color: #ef9488; }
.rv-ans .right { color: var(--ok); }
.rv-why { margin: 8px 40px 0 0; font-size: 14.5px; color: var(--muted); }
.rv-ref { display: inline-flex; align-items: center; gap: 6px; margin: 10px 40px 0 0; font-size: 13.5px; font-weight: 700; color: var(--gold-hi); }
.rv-ref:hover { text-decoration: underline; }
.rv-ref .ic { width: 15px; height: 15px; }
.rv-empty { padding: 30px; text-align: center; color: var(--ok); border: 1px dashed rgba(111, 200, 156, .35); border-radius: 16px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { margin-top: 70px; }
.horizon { height: clamp(120px, 16vw, 230px); position: relative; }
.horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-in { background: #110c0e; padding: 10px 16px 34px; text-align: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; text-align: start; }
.foot-brand b { display: block; font: 700 20px "Reem Kufi"; color: var(--gold-hi); }
.foot-brand small { color: var(--dim); font-size: 13.5px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 14px; }
.foot-links a { color: var(--muted); font-size: 15px; cursor: pointer; }
.foot-links a:hover { color: var(--gold-hi); }
.foot-note { margin: 0; color: var(--dim); font-size: 13px; }

/* ==========================================================================
   OVERLAYS
   ========================================================================== */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 10px; width: min(440px, 100% - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(27, 19, 23, .94); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px #000; font-weight: 500; animation: tIn .45s var(--ease) both; }
.toast .ic { width: 22px; height: 22px; flex: none; }
.toast.ok .ic { color: var(--ok); } .toast.warn .ic { color: var(--warn); } .toast.info .ic { color: var(--gold); }
.toast.out { animation: tOut .4s var(--ease) both; }
@keyframes tIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tOut { to { opacity: 0; transform: translateY(10px); } }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 5, 7, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.modal.show { opacity: 1; }
.modal-card { width: min(460px, 100%); padding: 30px 26px 24px; border-radius: 22px; text-align: center; border: 1px solid var(--line-2); background: linear-gradient(180deg, #2e2027, #181115); box-shadow: var(--shadow); transform: translateY(10px) scale(.97); transition: transform .3s var(--ease); }
.modal.show .modal-card { transform: none; }
.modal-ico { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--warn); background: rgba(255, 133, 82, .1); border: 1px solid rgba(255, 133, 82, .3); }
.modal-ico .ic { width: 26px; height: 26px; }
.modal-card h3 { margin: 0 0 8px; font: 700 22px "Reem Kufi"; color: var(--gold-hi); }
.modal-card p { margin: 0 0 22px; color: var(--muted); }
.modal-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

#confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.steps .step:nth-child(2), .features .feat:nth-child(2), .sec-cards > :nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3), .features .feat:nth-child(3), .sec-cards > :nth-child(3) { transition-delay: .16s; }
.steps .step:nth-child(4), .features .feat:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .read-pill { display: none; }
}
@media (max-width: 1020px) {
  .burger { display: block; }
  .nav-links { position: absolute; top: calc(var(--nav-h) - 4px); inset-inline: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 18px; border: 1px solid var(--line-2); background: rgba(20, 14, 17, .97); backdrop-filter: blur(14px); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(235, 169, 134, .08); }
  .rules-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .steps::before { display: none; }
  .sec-cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .hero { --hh: 500px; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(18, 12, 15, .5) 0%, transparent 18%, transparent 70%, #130d10 100%); }
  .hero-cta { position: relative; inset: auto; margin-top: -40px; padding: 0 16px 8px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .facts, .res-stats { grid-template-columns: repeat(2, 1fr); }
  .gate-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .rule-num { flex-direction: row; gap: 6px; width: auto; height: auto; justify-self: start; padding: 5px 12px; border-radius: 10px; }
  .rule-num b { font-size: 17px; margin: 0; }
  .rule-num span::after { content: "-"; }
  .run-nav { flex-wrap: wrap; }
  .run-nav .dots { order: -1; flex-basis: 100%; }
  .run-nav .btn { flex: 1; }
  .dot { width: 26px; height: 26px; font-size: 11.5px; }
  .cert-foot { grid-template-columns: 1fr; }
  .rv-ans, .rv-why, .rv-ref { margin-right: 0; }
  .kbd-hint { display: none; }
  .brand-txt small { display: none; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .btn-lg { --pad: 14px 20px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* exam: server / preview mode note + busy spinner */
.mode-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 620px; margin: 12px auto 0; font-size: 14px; color: var(--muted); }
.mode-note .ic { width: 17px; height: 17px; margin-top: 5px; color: var(--gold); }
.mode-note.server .ic { color: var(--ok); }
.mode-note b { color: var(--gold-hi); }
.result .mode-note { margin-top: 16px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(33, 23, 28, .7); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }

/* exam: essay questions */
.field-help { display: flex; gap: 7px; align-items: flex-start; margin: -4px 0 0; font-size: 13px; line-height: 1.7; color: var(--dim); }
.field-help .ic { width: 15px; height: 15px; margin-top: 4px; color: var(--gold); }
.q-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.q-type { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; color: #9fd6ba; border: 1px solid rgba(111, 200, 156, .3); background: rgba(111, 200, 156, .07); }
.q-type .ic { width: 15px; height: 15px; }
.q-type.essay { color: #ff844e; border-color: rgba(255, 105, 39, .32); background: rgba(255, 105, 39, .08); }
.essay textarea { width: 100%; min-height: 190px; resize: vertical; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(15, 10, 13, .7); color: var(--text); font: 500 17px/1.9 "Tajawal", sans-serif; transition: border-color .25s, box-shadow .25s; }
.essay textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 169, 134, .12); }
.essay textarea::placeholder { color: var(--dim); }
.essay-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-top: 10px; font-size: 13.5px; color: var(--dim); line-height: 1.7; }
.essay-foot > span:first-child { display: flex; gap: 7px; }
.essay-foot .ic { width: 15px; height: 15px; margin-top: 4px; flex: none; color: var(--gold); }
.essay-count { flex: none; font: 700 13px ui-monospace, Consolas, monospace; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--warn); }
.essay-count.ok { color: var(--ok); border-color: rgba(111, 200, 156, .35); }
.dot.essay { border-style: dashed; }

/* result: activation card + fail reasons + essay review */
.activation { display: flex; gap: 20px; align-items: flex-start; max-width: 680px; margin: 26px auto 0; padding: 24px; text-align: start; border-radius: 22px;
  border: 1px solid var(--gold); background: radial-gradient(420px 160px at 100% 0, rgba(235, 169, 134, .16), transparent 70%), linear-gradient(180deg, rgba(52, 36, 42, .92), rgba(27, 19, 23, .92));
  box-shadow: 0 0 0 6px rgba(235, 169, 134, .05), var(--shadow); }
.act-ico { width: 62px; height: 62px; flex: none; display: grid; place-items: center; border-radius: 18px; color: #1d0d0a; background: linear-gradient(135deg, #f59a7c, #b23f28); box-shadow: 0 0 34px rgba(235, 169, 134, .45); }
.act-ico .ic { width: 30px; height: 30px; }
.act-kick { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.activation h3 { margin: 2px 0 8px; font: 700 26px "Reem Kufi"; color: var(--gold-hi); }
.activation p { margin: 0 0 14px; color: #d3bbad; }
.activation p b { color: var(--gold-hi); }
.act-dm { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.act-dm .ic { width: 17px; height: 17px; margin-top: 5px; flex: none; }
.act-dm.sent { color: #a9dcc2; border-color: rgba(111, 200, 156, .3); } .act-dm.sent .ic { color: var(--ok); }
.act-dm.failed, .act-dm.notfound { color: #eeaa99; border-color: rgba(255, 133, 82, .3); } .act-dm.failed .ic, .act-dm.notfound .ic { color: var(--warn); }
.reasons { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; text-align: start; }
.reasons li { display: flex; gap: 9px; align-items: flex-start; color: #efc4bd; }
.reasons .ic { width: 16px; height: 16px; margin-top: 6px; flex: none; color: var(--bad); stroke-width: 2.6; }
.rv.essay .rv-ico { background: rgba(255, 105, 39, .12); color: var(--ember); }
.rv-text { margin: 10px 40px 0 0; padding: 12px 16px; border-radius: 12px; white-space: pre-wrap; word-break: break-word; font-size: 15px; color: #e3c9bb; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line); }
.rv-why .ic { width: 15px; height: 15px; vertical-align: -2px; }
.rv-guide { display: block; margin-top: 4px; color: var(--dim); }
@media (max-width: 760px) {
  .activation { flex-direction: column; padding: 20px; }
  .rv-text { margin-right: 0; }
  .essay-foot { flex-direction: column; }
}

/* Discord login */
.btn-discord { color: #fff; border-color: #6d78f5; background: linear-gradient(180deg, #6f7af6, #4f5bea); box-shadow: 0 12px 30px -14px rgba(88, 101, 242, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(88, 101, 242, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.nav-user { flex: none; }
.nav-user a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 99px; font-size: 14px; font-weight: 700; transition: .2s; }
.nav-user .nu-in { border: 1px solid var(--line-2); color: var(--gold-hi); padding: 0 6px 0 12px; }
.nav-user .nu-in:hover { background: rgba(235, 169, 134, .08); }
.nav-user .nu-in img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); }
.nav-user .nu-in span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user .nu-login { padding: 0 14px; color: #fff; background: linear-gradient(180deg, #6f7af6, #4f5bea); }
.nav-user .nu-login:hover { filter: brightness(1.1); }
.nav-user .ic { width: 18px; height: 18px; }
.home-login { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 auto 40px; max-width: 860px; padding: 18px 22px; border-radius: 20px;
  border: 1px solid rgba(111, 122, 246, .45); background: linear-gradient(180deg, rgba(40, 46, 92, .55), rgba(34, 24, 30, .7)); }
.hl-txt { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 380px; }
.hl-txt > .ic { width: 34px; height: 34px; flex: none; color: #8f98ff; margin-top: 2px; }
.hl-txt b { display: block; font-size: 17px; color: #fff; }
.hl-txt span { font-size: 14.5px; color: var(--muted); }
.field-label { display: block; font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.dc-login .btn { width: 100%; margin-bottom: 10px; }
.dc-user { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(111, 122, 246, .4); background: rgba(88, 101, 242, .08); }
.dc-user img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #6f7af6; flex: none; }
.dc-who { flex: 1; min-width: 0; line-height: 1.4; }
.dc-who b { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-who small { color: var(--muted); font-size: 13px; }
.link-btn { flex: none; border: 0; background: none; padding: 4px; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--gold-hi); }
.dc-warn { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 133, 82, .35); background: rgba(255, 133, 82, .07); }
.dc-warn p { display: flex; gap: 8px; margin: 0 0 10px; font-size: 14.5px; color: #eeaa99; }
.dc-warn p .ic { width: 17px; height: 17px; margin-top: 5px; flex: none; color: var(--warn); }
.dc-warn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-warn-actions .btn { --pad: 9px 14px; font-size: 14px; }
@media (max-width: 1020px) {
  .nav-user { margin-inline-start: auto; }
  .nav-user + .burger { margin-inline-start: 10px; }
}
@media (max-width: 520px) {
  .nav-user .nu-in span, .nav-user .nu-login span { display: none; }
  .nav-user .nu-in { padding: 0 4px; }
  .nav-user .nu-login { padding: 0 10px; }
}

/* ==========================================================================
   STORE
   ========================================================================== */
.nav-store { color: #ffbd9b !important; }
.nav-store .ic { width: 15px; height: 15px; color: var(--ember); }
.nav-cart { position: relative; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--gold-hi); cursor: pointer; transition: .2s; }
.nav-cart:hover { background: rgba(235, 169, 134, .1); border-color: var(--gold); }
.nav-cart .ic { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--ember); color: #1d0c0a; font: 800 12px/1 "Tajawal"; box-shadow: 0 0 0 2px var(--bg0); }
.nav-cart.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92); } }
.fly-dot { position: fixed; z-index: 120; width: 18px; height: 18px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 18px currentColor, 0 0 0 3px rgba(255, 255, 255, .25); }

.store-head { text-align: center; margin-bottom: 40px; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: 14px; color: #e9cdbe; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.trust .ic { width: 17px; height: 17px; color: var(--ember); }
.sec-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; }
.sec-title h2.display { font-size: clamp(26px, 3.2vw, 36px); }
.seg.period button em { font-style: normal; font-size: 11.5px; margin-inline-start: 6px; padding: 2px 7px; border-radius: 99px; background: rgba(111, 200, 156, .16); color: var(--ok); }

/* VIP tiers */
.vip { margin-bottom: 70px; }
.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 24px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); background: linear-gradient(180deg, rgba(48, 33, 39, .85), rgba(24, 17, 21, .9));
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .3s, border-color .3s; transform-style: preserve-3d; }
.tier::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; pointer-events: none;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%); }
.tier:hover { border-color: var(--tc); box-shadow: 0 30px 60px -28px #000, 0 0 40px -14px var(--tc); }
.tier.popular { border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc), 0 30px 70px -30px #000, 0 0 60px -20px var(--tc); }
.ribbon { position: absolute; top: 16px; inset-inline-end: -36px; transform: rotate(-45deg); padding: 5px 40px; font-size: 12.5px; font-weight: 800; color: #1d0c0a; background: linear-gradient(90deg, #f59a7c, #d9543a); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.tier-top { display: flex; align-items: center; gap: 12px; }
.tier-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent); background: color-mix(in srgb, var(--tc) 12%, transparent); }
.tier-ico .ic { width: 28px; height: 28px; }
.tier h3 { margin: 0; font: 400 26px var(--display); color: var(--tc); }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 16px; direction: rtl; }
.tier-price b { font: 400 48px/1 var(--display); color: #ffebe6; }
.tier-price span { font-size: 15px; color: var(--muted); }
.tier-price s, .price s { color: var(--dim); font-size: 14px; margin-inline-start: 6px; }
.perks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; flex: 1; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #e6ccbe; }
.perks .ic { width: 18px; height: 18px; margin-top: 4px; flex: none; color: var(--ok); stroke-width: 2.6; }
.tier .btn { width: 100%; }

/* products */
.shop { margin-bottom: 60px; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); font: 700 14.5px "Tajawal"; cursor: pointer; transition: .2s; }
.chip-btn .ic { width: 16px; height: 16px; }
.chip-btn:hover { color: var(--text); border-color: var(--line-2); }
.chip-btn.on { color: #fff; border-color: transparent; background: linear-gradient(180deg, #f59a7c, #d6573b); }
.shop-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.search.mini { margin: 0; max-width: 240px; }
.search.mini input { padding: 10px 42px 10px 14px; font-size: 15px; border-radius: 12px; }
.search.mini .ic { inset-inline-start: 13px; width: 17px; height: 17px; }
#shop-sort { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20, 14, 17, .8); color: var(--text); font: 500 15px "Tajawal"; cursor: pointer; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.prod { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; cursor: pointer; isolation: isolate;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(45, 31, 37, .85), rgba(24, 17, 21, .9)); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .3s, box-shadow .3s; transform-style: preserve-3d; animation: prodIn .5s var(--ease) both; }
@keyframes prodIn { from { opacity: 0; transform: translateY(14px); } }
.prod:hover, .prod:focus-visible { border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 26px 50px -26px #000, 0 0 40px -16px var(--acc); }
.prod-art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; color: var(--acc);
  background: radial-gradient(200px 140px at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--acc) 34%, transparent), transparent 70%),
              repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
              linear-gradient(160deg, color-mix(in srgb, var(--acc) 16%, #1b1317), #140e11); }
.prod-art::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 90%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); }
.prod-art > .ic { position: relative; z-index: 1; width: 68px; height: 68px; stroke-width: 1.3; filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--acc) 55%, transparent)); transition: transform .5s var(--ease); }
.prod:hover .prod-art > .ic { transform: translateY(-6px) scale(1.08) rotate(-4deg); }
.prod-badge { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: #1d0c0a; background: var(--acc); box-shadow: 0 6px 16px -6px var(--acc); }
.prod-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.prod-body h3 { margin: 0 0 6px; font: 700 18px "Tajawal"; color: #ffe7e2; }
.prod-body p { margin: 0 0 16px; flex: 1; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 5px; }
.price b { font: 400 30px/1 var(--display); color: #ffebe6; }
.price span { font-size: 13.5px; color: var(--muted); }
.btn-sm { --pad: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn-sm .ic { width: 16px; height: 16px; }

/* donation */
.donate { display: flex; gap: 26px; align-items: center; padding: 30px; margin-bottom: 26px; border-radius: 26px; border: 1px solid rgba(255, 107, 107, .35);
  background: radial-gradient(500px 240px at 0% 50%, rgba(255, 107, 107, .14), transparent 70%), linear-gradient(180deg, rgba(45, 31, 37, .85), rgba(24, 17, 21, .9)); }
.donate-art { flex: none; width: 110px; height: 110px; display: grid; place-items: center; border-radius: 30px; color: #ff6b6b; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .35); }
.donate-art .ic { width: 56px; height: 56px; stroke-width: 1.4; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }
.donate-body { flex: 1; }
.donate-body h2.display { font-size: 30px; }
.donate-body p { margin: 4px 0 16px; color: var(--muted); }
.donate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amt { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font: 700 14.5px "Tajawal"; cursor: pointer; transition: .2s; }
.amt:hover { border-color: rgba(255, 107, 107, .5); }
.amt.on { background: rgba(255, 107, 107, .16); border-color: #ff6b6b; color: #ffd0d0; }
.amt-custom { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.amt-custom output { min-width: 80px; font: 400 24px var(--display); color: #ffd0d0; }
#don-range { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; direction: ltr;
  background: linear-gradient(90deg, #ff6b6b var(--p, 20%), rgba(255, 255, 255, .1) var(--p, 20%)); }
#don-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #ff6b6b; box-shadow: 0 0 14px rgba(255, 107, 107, .6); cursor: pointer; }
#don-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #ff6b6b; cursor: pointer; }
.store-terms { display: flex; gap: 8px; align-items: flex-start; max-width: 760px; margin: 10px auto 0; font-size: 13.5px; line-height: 1.8; color: var(--dim); }
.store-terms .ic { width: 16px; height: 16px; margin-top: 4px; flex: none; }

/* product modal */
.prod-modal { position: relative; width: min(480px, 100%); padding: 0 0 22px; overflow: hidden; text-align: start; }
.prod-modal .prod-art.big { height: 190px; }
.prod-modal .prod-art.big > .ic { width: 90px; height: 90px; }
.prod-modal h3, .prod-modal > p, .prod-modal .perks, .prod-modal .pm-note, .prod-modal .pm-buy, .prod-modal .modal-actions { margin-inline: 24px; }
.prod-modal h3 { margin-top: 18px; text-align: start; }
.prod-modal > p { text-align: start; margin-bottom: 14px; }
.prod-modal .perks { margin-bottom: 14px; }
.pm-x { position: absolute; z-index: 3; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; }
.pm-buy { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.qty { display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; }
.qty button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .04); color: var(--gold-hi); cursor: pointer; }
.qty button:hover { background: rgba(235, 169, 134, .12); }
.qty .ic { width: 16px; height: 16px; }
.qty output { min-width: 34px; text-align: center; font-weight: 800; }
.qty.sm button { width: 30px; height: 30px; }
.qty.sm output { min-width: 26px; font-size: 14px; }
.order-pre { display: block; margin: 12px 0; padding: 12px 14px; border-radius: 12px; text-align: start; white-space: pre-wrap; font-size: 13.5px; line-height: 1.8; color: #ead0c1; background: rgba(0, 0, 0, .3); border: 1px dashed var(--line-2); }

/* cart drawer */
.cart { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: rgba(8, 5, 7, 0); transition: background .3s; }
.cart.open { pointer-events: auto; background: rgba(8, 5, 7, .6); backdrop-filter: blur(3px); }
.cart-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #2a1d24, #160f13); border-inline-start: 1px solid var(--line-2); box-shadow: -30px 0 60px -20px #000;
  transform: translateX(-105%); transition: transform .4s var(--ease); }
[dir="rtl"] .cart-panel { transform: translateX(-105%); }
.cart.open .cart-panel { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 24px var(--display); color: var(--gold-hi); }
.cart-head .ic { width: 22px; height: 22px; color: var(--ember); }
.cart-n { font: 800 13px "Tajawal"; padding: 2px 9px; border-radius: 99px; background: rgba(255, 105, 39, .16); color: var(--ember); }
.cart-close { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.cart-list { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 10px; overflow-y: auto; flex: 1; align-content: start; }
.cart-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); animation: prodIn .35s var(--ease) both; }
.ci-art { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.ci-art .ic { width: 24px; height: 24px; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.ci-body b { font-size: 15px; color: #ffe7e2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-body small { font-size: 12.5px; color: var(--dim); }
.ci-price { font-size: 14px; color: var(--gold); font-weight: 700; }
.ci-del { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; color: var(--dim); cursor: pointer; }
.ci-del:hover { color: var(--bad); background: rgba(231, 105, 91, .1); }
.ci-del .ic { width: 17px; height: 17px; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total span { color: var(--muted); }
.cart-total b { font: 400 30px var(--display); color: #ffebe6; }
.cart-foot .btn-lg { width: 100%; }
.cart-help { display: flex; gap: 8px; margin: 0; font-size: 13px; line-height: 1.7; color: var(--dim); }
.cart-help .ic { width: 15px; height: 15px; margin-top: 4px; flex: none; }
.cart-foot .link-btn { justify-self: center; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; color: var(--muted); }
.ce-art { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--line-2); color: var(--dim); }
.ce-art .ic { width: 40px; height: 40px; stroke-width: 1.3; }
body.cart-open { overflow: hidden; }

/* home teaser */
.store-teaser { display: flex; align-items: center; gap: 34px; margin: clamp(60px, 8vw, 96px) 0 0; padding: 34px; border-radius: 28px; overflow: hidden; position: relative;
  border: 1px solid rgba(255, 105, 39, .35); background: radial-gradient(600px 260px at 100% 0%, rgba(255, 105, 39, .18), transparent 70%), linear-gradient(180deg, rgba(45, 31, 37, .85), rgba(24, 17, 21, .9)); }
.st-art { position: relative; flex: none; width: 210px; height: 170px; }
.st-art span { position: absolute; display: grid; place-items: center; border-radius: 24px; border: 1px solid var(--line-2); background: rgba(20, 14, 17, .7); box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite; }
.st-art span:nth-child(1) { width: 110px; height: 110px; inset-inline-start: 50px; top: 30px; color: var(--gold); z-index: 2; }
.st-art span:nth-child(2) { width: 80px; height: 80px; inset-inline-start: 0; top: 0; color: var(--ember); animation-delay: -1.6s; }
.st-art span:nth-child(3) { width: 72px; height: 72px; inset-inline-start: 140px; top: 96px; color: #ff8fa3; animation-delay: -3s; }
.st-art span:nth-child(1) .ic { width: 58px; height: 58px; }
.st-art span:nth-child(2) .ic, .st-art span:nth-child(3) .ic { width: 36px; height: 36px; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-3deg); } }
.st-body .kicker { justify-content: flex-start; }
.st-body p { color: var(--muted); margin: 8px 0 20px; }

@media (max-width: 1020px) {
  .vip-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .nav-cart { margin-inline-start: auto; }
  .nav-cart ~ .nav-user { margin-inline-start: 8px; }
}
@media (max-width: 760px) {
  .shop-bar { flex-direction: column; align-items: stretch; }
  .shop-bar > * { min-width: 0; max-width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; }
  .shop-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .search.mini { max-width: none; }
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prod-art { height: 110px; }
  .prod-art > .ic { width: 48px; height: 48px; }
  .prod-body { padding: 12px; }
  .prod-body h3 { font-size: 15.5px; }
  .prod-body p { display: none; }
  .prod-foot { flex-direction: column; align-items: stretch; }
  .prod-foot .btn { width: 100%; }
  .donate { flex-direction: column; text-align: center; padding: 24px 18px; }
  .amounts { justify-content: center; }
  .store-teaser { flex-direction: column; text-align: center; padding: 26px 18px; }
  .st-body .kicker { justify-content: center; }
}

/* store: extra details */
.prod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.prod-meta span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.prod-meta .ic { width: 13px; height: 13px; color: var(--acc); }
.prod-meta .gift { color: #ffb894; border-color: rgba(255, 105, 39, .35); }
.compare { margin-top: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(24, 17, 21, .6); overflow: hidden; }
.compare summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--gold-hi); list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary .ic { width: 18px; height: 18px; }
.compare summary .chev { margin-inline-start: auto; transition: transform .3s; transform: rotate(90deg); }
.compare[open] summary .chev { transform: rotate(-90deg); }
.compare-wrap { overflow-x: auto; padding: 0 16px 16px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 14.5px; }
.compare th, .compare td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: start; color: #e6ccbe; }
.compare th { font: 400 18px var(--display); }
.compare tbody tr:hover { background: rgba(255, 255, 255, .025); }
.compare .yes { color: var(--ok); } .compare .no { color: var(--dim); }
.compare .yes .ic, .compare .no .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.howto-line { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.howto-line li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-2); font-size: 14.5px; color: #e6ccbe; }
.howto-line b, .steps-list b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 400 16px var(--display); color: #1d0c0a; background: linear-gradient(180deg, #f59a7c, #d6573b); }
.steps-list li { align-items: center; }
.steps-list b { width: 26px; height: 26px; font-size: 14px; }
.faq { margin: 10px 0 30px; }
.faq-item { margin-bottom: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(24, 17, 21, .6); transition: border-color .25s; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; color: #f4d4c3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pm { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform .3s var(--ease); }
.faq-item[open] .pm { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.9; }
.pm-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 24px 16px; }
.pm-meta span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: center; }
.pm-meta .ic { width: 18px; height: 18px; color: var(--acc); }
.pm-meta small { font-size: 11.5px; color: var(--dim); }
.pm-meta b { font-size: 13.5px; color: #f4d4c3; }
.pm-tabs { display: flex; gap: 6px; margin: 0 24px 12px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.pm-tabs button { flex: 1; padding: 8px 6px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 700 13.5px "Tajawal"; cursor: pointer; }
.pm-tabs button.on { background: color-mix(in srgb, var(--acc) 22%, transparent); color: #ffe7e2; }
.prod-modal { max-height: calc(100svh - 32px); overflow-y: auto; }
@media (max-width: 760px) {
  .howto-line { grid-template-columns: 1fr; }
  .pm-meta { margin-inline: 16px; }
  .pm-tabs { margin-inline: 16px; }
}

/* ==========================================================================
   ECONOMY — where everything comes from
   ========================================================================== */
.eco-head { text-align: center; margin-bottom: 34px; }
.eco-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 900px; margin: 28px auto 0; }
.eco-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(24, 17, 21, .6); }
.eco-stats .ic { width: 22px; height: 22px; color: var(--ember); }
.eco-stats b { font: 400 28px/1.2 var(--display); color: #ffebe6; }
.eco-stats span { font-size: 13px; color: var(--muted); }
.eco-search { position: relative; max-width: 560px; margin: 24px auto 0; }
.eco-search .search { margin: 0; max-width: none; }
.eco-results { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; border-radius: 16px; border: 1px solid var(--line-2); background: #241820; box-shadow: var(--shadow); text-align: start; }
.eco-results button { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border: 0; border-radius: 11px; background: none; color: var(--text); cursor: pointer; text-align: start; }
.eco-results button:hover { background: rgba(235, 169, 134, .08); }
.eco-results .ic { grid-row: span 2; width: 22px; height: 22px; color: var(--ember); }
.eco-results b { font-size: 15px; }
.eco-results small { font-size: 12.5px; color: var(--dim); }
.eco-results .none { padding: 12px; color: var(--muted); font-size: 14px; }

.legend { display: flex; justify-content: center; gap: 16px; margin-bottom: 14px; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; }
.st i { width: 9px; height: 9px; border-radius: 50%; }
.st.live { color: var(--ok); } .st.live i { background: var(--ok); box-shadow: 0 0 0 4px rgba(111, 200, 156, .18); animation: livePulse 1.8s ease-in-out infinite; }
.st.soon { color: var(--warn); } .st.soon i { border: 2px dashed var(--warn); }
@keyframes livePulse { 50% { box-shadow: 0 0 0 7px rgba(111, 200, 156, 0); } }
.chain-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.chain-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(30, 21, 26, .7); color: var(--text); font-family: inherit; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.chain-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.chain-card.on { border-color: var(--acc); background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 20%, #241820), #1d1418); box-shadow: 0 0 30px -10px var(--acc); }
.chain-card.soon { opacity: .72; }
.chain-card.soon .cc-ico { border-style: dashed; }
.cc-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.cc-ico .ic { width: 26px; height: 26px; }
.chain-card b { font-size: 14.5px; }
.chain-card small { font-size: 11.5px; color: var(--dim); }
.chain-card.live small { color: var(--ok); }

.chain-view { margin: 30px 0 60px; padding: clamp(20px, 3vw, 32px); border-radius: 28px; scroll-margin-top: calc(var(--nav-h) + 20px);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  background: radial-gradient(700px 260px at 100% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%), linear-gradient(180deg, rgba(45, 31, 37, .88), rgba(22, 15, 19, .92)); }
.cv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cv-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: #1d0c0a; background: var(--acc); box-shadow: 0 0 40px -6px var(--acc); }
.cv-ico .ic { width: 34px; height: 34px; }
.cv-head h2.display { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.cv-play { margin-inline-start: auto; }
.cv-sum { margin: 14px 0 26px; font-size: 16.5px; color: #e6ccbe; max-width: 75ch; }
.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; }
.node { flex: 1 0 140px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 18px; cursor: pointer; text-align: center;
  border: 1px solid var(--line); background: rgba(20, 14, 17, .55); color: var(--text); font-family: inherit; transition: .3s var(--ease); }
.node:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.node-ico { position: relative; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: var(--acc); border: 1.5px solid color-mix(in srgb, var(--acc) 50%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); transition: .3s; }
.node-ico .ic { width: 26px; height: 26px; }
.node-ico em { position: absolute; top: -4px; inset-inline-end: -4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 800 11.5px "Tajawal"; font-style: normal; color: #1d0c0a; background: var(--gold); }
.node b { font-size: 14.5px; line-height: 1.4; }
.node small { font-size: 12px; color: var(--dim); line-height: 1.5; }
.node.done .node-ico { background: color-mix(in srgb, var(--acc) 25%, transparent); }
.node.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, #1d1418); transform: translateY(-4px); box-shadow: 0 16px 34px -18px var(--acc); }
.node.on .node-ico { color: #1d0c0a; background: var(--acc); border-color: var(--acc); box-shadow: 0 0 26px -2px var(--acc); }
.flow-link { position: relative; flex: 0 0 46px; align-self: center; height: 2px; margin: 0 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.flow-link.lit { background: color-mix(in srgb, var(--acc) 80%, transparent); }
.flow-link i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: flowDot 1.8s linear infinite; opacity: 0; }
.flow-link i:nth-child(2) { animation-delay: .6s; } .flow-link i:nth-child(3) { animation-delay: 1.2s; }
@keyframes flowDot { 0% { inset-inline-start: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { inset-inline-start: calc(100% - 8px); opacity: 0; } }
.node-detail { margin-top: 8px; }
.nd-card { padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(14, 10, 12, .5); }
.nd-top { display: flex; align-items: center; gap: 12px; }
.nd-n { font: 800 12.5px "Tajawal"; padding: 3px 10px; border-radius: 99px; color: #1d0c0a; background: var(--acc); }
.nd-top h3 { margin: 0; font: 400 24px var(--display); color: #ffe7e2; }
.nd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.nd-meta span { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.nd-meta .ic { grid-row: span 2; width: 20px; height: 20px; color: var(--acc); }
.nd-meta small { font-size: 11.5px; color: var(--dim); }
.nd-meta b { font-size: 14px; color: #f4d4c3; }
.nd-card p { margin: 0 0 16px; font-size: 16px; line-height: 1.95; color: #e3c8ba; }
.nd-nav { display: flex; justify-content: space-between; gap: 10px; }
.cv-block { margin-top: 24px; }
.cv-block h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; color: var(--gold-hi); }
.cv-block h3 .ic { width: 18px; height: 18px; color: var(--ember); }
.prod-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prod-chips span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: .3s; }
.prod-chips b { font-size: 14px; color: #f4d4c3; }
.prod-chips em { font-style: normal; font-size: 13px; color: var(--acc); font-weight: 700; }
.prod-chips .hit { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 16%, transparent); animation: flash 2.2s var(--ease); }
.cv-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.cv-facts li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.cv-facts .ic { width: 16px; height: 16px; margin-top: 5px; flex: none; color: var(--acc); }

.money { margin-bottom: 50px; }
.money-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.money-card { padding: 20px 18px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(45, 31, 37, .7), rgba(24, 17, 21, .7)); transition: transform .3s var(--ease), border-color .3s; }
.money-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.money-card .ic { width: 30px; height: 30px; color: var(--gold); }
.money-card b { display: block; margin: 10px 0 6px; font-size: 16px; color: #ffe7e2; }
.money-card p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.eco-cta { text-align: center; padding: 34px 22px; border-radius: 26px; border: 1px solid var(--line-2); background: radial-gradient(600px 220px at 50% 0, rgba(255, 105, 39, .14), transparent 70%), rgba(24, 17, 21, .7); }
.eco-cta p { max-width: 62ch; margin: 10px auto 22px; color: var(--muted); }
.feat-more { text-align: center; margin-top: 26px; }

@media (max-width: 1020px) {
  .chain-grid { grid-template-columns: repeat(4, 1fr); }
  .money-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .chain-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .chain-card { padding: 12px 4px 10px; }
  .cc-ico { width: 40px; height: 40px; } .cc-ico .ic { width: 22px; height: 22px; }
  .chain-card b { font-size: 12.5px; }
  .eco-stats { grid-template-columns: repeat(2, 1fr); }
  .eco-stats div:last-child { grid-column: span 2; }
  .cv-play { margin-inline-start: 0; width: 100%; }
  .flow { flex-direction: column; overflow: visible; }
  .node { flex: none; flex-direction: row; text-align: start; gap: 12px; padding: 10px 12px; }
  .node.on { transform: none; }
  .node-ico { width: 46px; height: 46px; flex: none; }
  .node b { flex: 1; }
  .node small { display: none; }
  .flow-link { flex: 0 0 22px; width: 2px; height: auto; margin: 2px 0; align-self: auto; margin-inline-start: 34px; background: repeating-linear-gradient(180deg, var(--line-2) 0 5px, transparent 5px 9px); }
  .flow-link i { top: auto; inset-inline-start: -3px; animation-name: flowDotV; }
  @keyframes flowDotV { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .money-grid { grid-template-columns: 1fr; }
  .nd-nav .btn { flex: 1; }
}

/* economy: the dark side */
.chain-group + .chain-group { margin-top: 22px; }
.cg-title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 16px; color: var(--gold-hi); }
.cg-title .ic { width: 20px; height: 20px; color: var(--ember); }
.cg-title em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #ffb3b3; background: rgba(230, 57, 70, .14); border: 1px solid rgba(230, 57, 70, .35); }
.chain-group.dark { padding: 16px; border-radius: 22px; border: 1px solid rgba(230, 57, 70, .25);
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .18) 0 10px, transparent 10px 20px), linear-gradient(180deg, rgba(40, 14, 20, .65), rgba(18, 10, 13, .75)); }
.chain-group.dark .cg-title .ic { color: #e63946; }
.chain-group.dark .chain-grid { grid-template-columns: repeat(5, 1fr); }
.chain-card.crime { background: rgba(14, 8, 10, .75); }
.crime-note { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: -10px 0 22px; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.8; color: #f2c9c9; border: 1px solid rgba(230, 57, 70, .4); background: rgba(230, 57, 70, .08); }
.crime-note .ic { width: 18px; height: 18px; margin-top: 4px; flex: none; color: #e63946; }
.crime-note span { flex: 1 1 300px; }
.crime-note a { font-weight: 800; color: #ffb3b3; white-space: nowrap; }
.crime-note a:hover { text-decoration: underline; }
@media (max-width: 1020px) { .chain-group.dark .chain-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .chain-group.dark { padding: 12px 10px; } }

/* rules tabs: short names on phones so all three fit */
.sec-tab .t-short { display: none; }
@media (max-width: 520px) {
  .sec-tabs { width: 100%; justify-content: stretch; }
  .sec-tab { flex: 1; justify-content: center; gap: 6px; padding: 9px 8px; font-size: 14px; }
  .sec-tab .t-full { display: none; }
  .sec-tab .t-short { display: inline; }
  .sec-tab > .ic { width: 16px; height: 16px; }
}

.opt-tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: var(--muted); border: 1px solid var(--line); margin-inline-start: 4px; }

/* exam watch */
.watch-note { display: flex; gap: 9px; align-items: flex-start; max-width: 640px; margin: -8px auto 16px; padding: 11px 16px; border-radius: 14px; text-align: start;
  font-size: 14px; line-height: 1.8; color: #eeaa99; border: 1px solid rgba(255, 133, 82, .35); background: rgba(255, 133, 82, .07); }
.watch-note .ic { width: 18px; height: 18px; margin-top: 4px; flex: none; color: var(--warn); }
.watch-badge { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; font-size: 13px; color: #e09d79; }
.watch-badge .ic { width: 16px; height: 16px; color: var(--warn); }
.exam-wrap .q-card { -webkit-user-select: none; user-select: none; }
.exam-wrap .q-card textarea { -webkit-user-select: text; user-select: text; }

/* exam: the question writes itself, then the choices come in one by one */
.q-text.typing::after { content: ""; display: inline-block; width: 3px; height: 1.05em; margin-inline-start: 4px; vertical-align: -3px; border-radius: 2px; background: var(--gold); animation: caret .7s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.q-card .opt { animation: optIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 180ms); }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-card .essay { animation: optIn .4s var(--ease) both; animation-delay: .25s; }


/* ==========================================================================
   INTRO — the word "رمال" draws itself on a dark screen, then the banner comes alive
   ========================================================================== */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(900px 500px at 50% 58%, rgba(214, 87, 59, .2), transparent 70%),
              radial-gradient(1300px 700px at 50% 125%, rgba(156, 51, 33, .38), transparent 70%), #0f0a0c;
  transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.intro.out { opacity: 0; visibility: hidden; }
body.intro-on { overflow: hidden; }
.intro-logo { width: min(620px, 84vw); height: auto; overflow: visible; transition: transform 1s var(--ease), filter 1s var(--ease); }
.intro.out .intro-logo { transform: scale(1.2); filter: blur(6px); }
.intro-glow { opacity: 0; }
.intro-dune { fill: url(#introSand); fill-opacity: 0; stroke: #f59a7c; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1100; stroke-dashoffset: 1100; }
.intro-palm path { fill: none; stroke: #f59a7c; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
.intro-palm path:first-child { stroke-width: 8; }
.intro-word { font: 400 200px var(--display); fill: url(#introSand); fill-opacity: 0; stroke: #f59a7c; stroke-width: 2; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.intro-wave { fill: none; stroke: url(#introSand); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 460; stroke-dashoffset: 460; }
.intro-sub { font: 700 22px "Tajawal", sans-serif; letter-spacing: 14px; fill: #e0755a; opacity: 0; }
.intro.go .intro-glow { animation: introGlow 2.8s ease .3s forwards; }
.intro.go .intro-dune { animation: introDraw 1s cubic-bezier(.6, .05, .3, 1) .1s forwards, introFill .6s ease 1s forwards; }
.intro.go .intro-palm path { animation: introDraw .5s ease-out forwards; }
.intro.go .intro-palm path:nth-child(1) { animation-delay: .65s; }
.intro.go .intro-palm path:nth-child(2) { animation-delay: .9s; }
.intro.go .intro-palm path:nth-child(3) { animation-delay: .96s; }
.intro.go .intro-palm path:nth-child(4) { animation-delay: 1.02s; }
.intro.go .intro-palm path:nth-child(5) { animation-delay: 1.08s; }
.intro.go .intro-palm path:nth-child(6) { animation-delay: 1.14s; }
.intro.go .intro-word { animation: introDraw 1.5s cubic-bezier(.55, .05, .35, 1) .45s forwards, introFill .7s ease 1.6s forwards, introStroke .7s ease 1.9s forwards; }
.intro.go .intro-wave { animation: introDraw .8s ease 1.55s forwards; }
.intro.go .intro-sub { animation: introSub .9s var(--ease) 2.05s forwards; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFill { to { fill-opacity: 1; } }
@keyframes introStroke { to { stroke-opacity: 0; } }
@keyframes introSub { from { opacity: 0; letter-spacing: 2px; } to { opacity: 1; letter-spacing: 14px; } }
@keyframes introGlow { 0% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: .6; } }
.intro > i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f59a7c; opacity: 0; animation: introDust 6s linear infinite; }
.intro > i:nth-of-type(1) { top: 30%; left: 90%; animation-delay: .2s; } .intro > i:nth-of-type(2) { top: 62%; left: 80%; animation-delay: 1s; }
.intro > i:nth-of-type(3) { top: 75%; left: 95%; animation-delay: 1.8s; } .intro > i:nth-of-type(4) { top: 45%; left: 70%; animation-delay: .6s; }
.intro > i:nth-of-type(5) { top: 20%; left: 85%; animation-delay: 2.4s; } .intro > i:nth-of-type(6) { top: 85%; left: 75%; animation-delay: 1.4s; }
@keyframes introDust { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: .6; } 100% { opacity: 0; transform: translateX(-70vw) translateY(-6vh); } }
.intro-skip { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 8px 18px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(235, 169, 134, .3); background: rgba(255, 255, 255, .04); color: #ba9e98; font: 700 13px "Tajawal"; opacity: 0; animation: introSkip .5s ease 1s forwards; }
.intro-skip:hover { color: #ffe7e2; border-color: var(--gold); }
@keyframes introSkip { to { opacity: 1; } }

/* hero: comes in after the intro, then keeps moving (slow zoom, mouse parallax, logo shine, drifting sand) */
.hero-par { position: absolute; inset: -2.5%; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .8s var(--ease); }
.hero-frame { animation: none; }
.hero-art img { animation: none; }
body.hero-play .hero-frame { animation: heroReveal 1.4s var(--ease) both; }
@keyframes heroReveal { from { opacity: 0; filter: brightness(.3) blur(6px); } to { opacity: 1; filter: none; } }
body.hero-play .hero-art { animation: heroZoom 2.8s var(--ease) both, heroDrift 26s ease-in-out 2.8s infinite alternate; }
@keyframes heroZoom { from { transform: translate(-50%, -50%) scale(1.14); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes heroDrift { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.05); } }
body:not(.hero-play) .hero-cta { opacity: 0; }
body.hero-play .hero-tag { animation: ctaUp .8s var(--ease) .9s backwards; }
body.hero-play .hero-actions .btn { animation: ctaUp .7s var(--ease) 1.1s backwards; }
body.hero-play .hero-actions .btn:nth-child(2) { animation-delay: 1.22s; }
body.hero-play .hero-actions .btn:nth-child(3) { animation-delay: 1.34s; }
@keyframes ctaUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.logo-shine { position: absolute; inset: 0; pointer-events: none; clip-path: inset(19% 25% 24% 30%);
  background: linear-gradient(100deg, transparent 44%, rgba(255, 229, 222, .75) 50%, transparent 56%) no-repeat;
  background-size: 260% 100%; background-position: 150% 0; mix-blend-mode: soft-light;
  -webkit-mask: url(../assets/banner.jpg?v=red1) center / 100% 100%; mask: url(../assets/banner.jpg?v=red1) center / 100% 100% luminance; }
body.hero-play .logo-shine { animation: logoShine 8s ease-in-out 3.2s infinite; }
@keyframes logoShine { 0% { background-position: 150% 0; } 30%, 100% { background-position: -50% 0; } }
.hero-dust { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-dust i { position: absolute; border-radius: 50%; background: #f8b18b; opacity: 0; animation: heroDust linear infinite; }
@keyframes heroDust { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: var(--o, .5); } 90% { opacity: var(--o, .5); } 100% { opacity: 0; transform: translateX(-60vw) translateY(-4vh); } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .logo-shine, .hero-dust { display: none; }
}

/* the banner file itself is recoloured to red sand (assets/banner.jpg), no CSS tint needed */

/* live stats */
.nav-online { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 12px; border-radius: 99px; font-size: 13px; color: var(--muted);
  border: 1px solid rgba(111, 200, 156, .3); background: rgba(111, 200, 156, .06); }
.nav-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 200, 156, .2); animation: livePulse 1.8s ease-in-out infinite; }
.nav-online b { color: #fff; font-size: 14px; }
.live-stats { position: relative; z-index: 3; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 12px; margin: -34px 0 0; }
.ls-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(48, 30, 33, .9), rgba(26, 16, 19, .92)); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.ls-card small { font-size: 13px; color: var(--muted); }
.ls-card > b, .ls-online b { font: 400 34px/1.2 var(--display); color: #fff3ee; }
.ls-online b em { font-style: normal; font-size: 18px; color: var(--muted); margin-inline-start: 6px; }
.ls-head { display: flex; align-items: center; gap: 8px; }
.ls-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(111, 200, 156, .2); animation: livePulse 1.8s ease-in-out infinite; }
.ls-online { border-color: rgba(111, 200, 156, .35); }
.ls-bar { height: 6px; border-radius: 6px; margin-top: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ls-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #a7e3c4); transition: width 1.2s var(--ease); }
.ls-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; margin-bottom: 4px; color: var(--ember); background: rgba(255, 105, 39, .1); border: 1px solid rgba(255, 105, 39, .25); }
.ls-ico .ic { width: 18px; height: 18px; }
.ls-sub { font-style: normal; font-size: 12.5px; color: var(--dim); }
.gate-stat { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px auto 0; font-size: 14.5px; color: var(--muted); }
.gate-stat .ic { width: 17px; height: 17px; color: var(--ember); }
.gate-stat b { color: #fff3ee; }
@media (max-width: 1020px) {
  .live-stats { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
  .ls-online { grid-column: span 3; }
  .nav-online span { display: none; }
}
@media (max-width: 760px) {
  .live-stats { grid-template-columns: 1fr 1fr; }
  .ls-online { grid-column: span 2; }
  .ls-card:last-child { grid-column: span 2; }
}
.live-stats.is-demo::before { content: "أرقام تجريبية للمعاينة — الأرقام الحقيقية تطلع لما ينفتح الموقع من السيرفر"; grid-column: 1 / -1; order: 9;
  justify-self: center; padding: 4px 12px; border-radius: 99px; font-size: 12px; color: var(--warn); border: 1px dashed rgba(255, 133, 82, .4); }

/* ==========================================================================
   NEWS · JOBS · STAFF PANEL · LIVE PRICES
   ========================================================================== */
/* nav: two more links, so the menu folds into the burger a bit earlier */
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 105, 39, .22); animation: livePulse 1.8s ease-in-out infinite; margin-inline-start: 2px; }
.nav-dot[hidden] { display: none; }
.nav-admin { color: #ffc2a6 !important; }
.nav-admin .ic { width: 15px; height: 15px; }
@media (max-width: 1360px) {
  .nav-links a { padding: 8px 10px; font-size: 14.5px; }
  .nav-online span { display: none; }
}
@media (max-width: 1240px) {
  .burger { display: block; }
  .nav-user { margin-inline-start: auto; }
  .nav-user + .burger { margin-inline-start: 10px; }
  .nav-links { position: absolute; top: calc(var(--nav-h) - 4px); inset-inline: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 18px; border: 1px solid var(--line-2); background: rgba(20, 14, 17, .97); backdrop-filter: blur(14px); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(235, 169, 134, .08); }
}

/* shared bits */
.page-head { text-align: center; margin-bottom: 30px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.back-link:hover { color: var(--gold-hi); }
.back-link .ic { width: 17px; height: 17px; }
.loading-box { display: grid; place-items: center; min-height: 40vh; color: var(--gold); }
.loading-box .spin { width: 34px; height: 34px; }
.empty-box { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 20px; text-align: center; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--muted); }
.empty-box > .ic { width: 40px; height: 40px; color: var(--gold); opacity: .8; }
.empty-box h2 { margin: 0; font: 400 28px var(--display); color: var(--gold-hi); }
.empty-box p { margin: 0; }
.gate-hint.ok { color: var(--ok); }
.field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 10, 13, .7); color: var(--text); font: 500 16px/1.7 "Tajawal"; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 169, 134, .12); }
.field textarea::placeholder { color: var(--dim); }
.field input[type=datetime-local] { color-scheme: dark; }
.btn-sm { --pad: 9px 14px; font-size: 14px; }
.chip-btn em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.chip-btn.on em { background: rgba(0, 0, 0, .2); }
code { font-family: Consolas, monospace; font-size: .92em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--gold-hi); }

/* ---------------- news ---------------- */
.news-wrap { max-width: 1100px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { --tc: var(--gold); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card-2)); overflow: hidden; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.news-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--tc), transparent); opacity: .8; }
.news-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px #000; }
.news-card.pinned { border-color: rgba(255, 105, 39, .35); }
.tag-rules { --tc: #eba986; } .tag-event { --tc: #ff6927; } .tag-update { --tc: #8fb0ff; } .tag-announce { --tc: #e8573a; }
.nc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nc-tag, .nc-pin, .nc-new { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; }
.nc-tag { color: var(--tc, var(--gold)); background: color-mix(in srgb, var(--tc, var(--gold)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tc, var(--gold)) 35%, transparent); }
.nc-tag .ic, .nc-pin .ic { width: 14px; height: 14px; }
.nc-pin { color: var(--muted); border: 1px solid var(--line); }
.nc-new { color: #fff; background: linear-gradient(180deg, #f59a7c, #d6573b); }
.news-card h3 { margin: 2px 0 0; font: 700 19px/1.5 "Tajawal"; color: #fff3ee; }
.news-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; flex: 1; }
.nc-event { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; color: var(--text); background: rgba(255, 105, 39, .08); border: 1px solid rgba(255, 105, 39, .25); }
.nc-event .ic { width: 16px; height: 16px; color: var(--ember); }
.nc-event em { font-style: normal; font-weight: 700; color: var(--ember); margin-inline-start: auto; }
.nc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--dim); }
.nc-foot .ic { width: 14px; height: 14px; vertical-align: -2px; }
.nc-foot .go { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-hi); font-weight: 700; }
.home-news { margin-top: 70px; }
.news-chips { justify-content: center; margin-bottom: 22px; }
.next-event { display: flex; align-items: center; gap: 16px; margin: 0 auto 24px; padding: 18px 22px; border-radius: 22px; color: var(--text);
  border: 1px solid rgba(255, 105, 39, .4); background: radial-gradient(600px 160px at 85% 0, rgba(255, 105, 39, .2), transparent 70%), linear-gradient(180deg, var(--card), var(--card-2)); transition: transform .3s var(--ease); }
.next-event:hover { transform: translateY(-3px); }
.ne-ico { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #ff8552, #c94e33); box-shadow: 0 10px 30px -10px rgba(255, 105, 39, .7); }
.ne-ico .ic { width: 28px; height: 28px; }
.ne-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ne-txt small { color: var(--ember); font-weight: 700; font-size: 13px; }
.ne-txt b { font: 400 24px/1.3 var(--display); color: #fff3ee; }
.ne-txt span { font-size: 14px; color: var(--muted); }
.ne-cd { font-style: normal; font-weight: 800; color: #fff; padding: 8px 14px; border-radius: 12px; background: rgba(255, 105, 39, .16); border: 1px solid rgba(255, 105, 39, .4); white-space: nowrap; }
.news-article { --tc: var(--gold); max-width: 780px; margin: 0 auto; padding: 30px clamp(18px, 4vw, 40px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--card-2)); }
.news-article h1 { margin: 12px 0 6px; font-size: clamp(30px, 4.4vw, 46px); text-align: start; }
.na-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--dim); }
.na-meta .ic { width: 14px; height: 14px; vertical-align: -2px; }
.na-event { display: flex; align-items: center; gap: 14px; margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 105, 39, .08); border: 1px solid rgba(255, 105, 39, .3); }
.na-event > .ic { width: 30px; height: 30px; color: var(--ember); flex: none; }
.na-event b { display: block; color: #fff3ee; }
.na-event em { font-style: normal; color: var(--ember); font-weight: 700; }
.rich { margin-top: 18px; font-size: 17px; line-height: 2; color: var(--text); }
.rich p { margin: 0 0 12px; }
.rich ul { margin: 0 0 14px; padding-inline-start: 22px; }
.rich li { margin-bottom: 6px; }
.rich li::marker { color: var(--ember); }
.rich b { color: #fff; }
.na-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.more-title { margin: 44px 0 16px; font: 400 28px var(--display); color: var(--gold-hi); text-align: center; }

/* ---------------- jobs ---------------- */
.jobs-wrap { max-width: 1100px; }
.jobs-how { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 26px; padding: 0; }
.jobs-how li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(33, 23, 28, .6); counter-increment: how; position: relative; }
.jobs-how li::after { content: counter(how); position: absolute; top: 12px; inset-inline-end: 14px; font: 700 26px "Reem Kufi"; color: rgba(235, 169, 134, .14); }
.jobs-how .ic { width: 24px; height: 24px; color: var(--ember); margin-bottom: 4px; }
.jobs-how b { color: #fff3ee; }
.jobs-how span { font-size: 13.5px; color: var(--muted); }
.jobs-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(255, 133, 82, .4); background: rgba(255, 133, 82, .07); color: #f3c0ad; }
.jobs-note > .ic { width: 20px; height: 20px; color: var(--warn); }
.jobs-note span { flex: 1; min-width: 200px; }
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.job-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(420px 180px at 100% 0, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%), linear-gradient(180deg, var(--card), var(--card-2));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.job-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--acc) 50%, transparent); box-shadow: 0 30px 60px -30px #000; }
.job-card.is-closed { opacity: .72; }
.jc-ico, .jh-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 85%, #fff 10%), color-mix(in srgb, var(--acc) 70%, #000 30%)); box-shadow: 0 12px 30px -12px var(--acc); }
.jc-ico .ic, .jh-ico .ic { width: 27px; height: 27px; }
.job-card h3 { margin: 4px 0 0; font: 400 28px/1.2 var(--display); color: #fff3ee; }
.job-card p { margin: 0; color: var(--muted); line-height: 1.8; flex: 1; }
.jc-meta { display: flex; gap: 14px; font-size: 13.5px; color: var(--dim); }
.jc-meta .ic { width: 15px; height: 15px; vertical-align: -3px; }
.jc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.jc-foot .go { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-hi); font-weight: 700; font-size: 14px; }
.jb-st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.jb-st .ic { width: 14px; height: 14px; }
.jb-st.open { color: var(--ok); border-color: rgba(111, 200, 156, .35); }
.jb-st.open i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: livePulse 1.8s ease-in-out infinite; }
.jb-st.ok { color: var(--ok); border-color: rgba(111, 200, 156, .35); background: rgba(111, 200, 156, .08); }
.jb-st.pending, .jb-st.wait { color: var(--warn); border-color: rgba(255, 133, 82, .35); }
.jb-st.closed { color: var(--dim); }
.job-hero { display: flex; align-items: center; gap: 18px; }
.jh-ico { width: 72px; height: 72px; border-radius: 22px; }
.jh-ico .ic { width: 36px; height: 36px; }
.job-hero h1 { margin: 0 0 6px; font-size: clamp(34px, 5vw, 52px); text-align: start; }
.job-desc { margin: 20px 0; font-size: 17px; line-height: 2; color: var(--text); max-width: 80ch; }
.job-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.job-list li { position: relative; padding-inline-start: 24px; line-height: 1.7; color: var(--text); }
.job-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--acc, var(--ember)); }
.job-list.perks li::before { background: var(--ok); }
.job-start { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.job-start .field, .job-start .dc-user { width: 100%; max-width: 420px; text-align: start; }
.job-start .watch-note { margin: 0 auto; }
.job-gate { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 15.5px; color: var(--warn); }
.job-gate .ic { width: 19px; height: 19px; }
.job-gate a { color: var(--gold-hi); text-decoration: underline; }
.jr-bar { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; padding: 14px 18px 18px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); background: rgba(24, 16, 20, .94); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.jr-name { display: inline-flex; align-items: center; gap: 9px; flex: 1; font-size: 17px; color: #fff3ee; }
.jr-name .ic { width: 22px; height: 22px; color: var(--acc); }
.jr-time { font: 700 24px "Reem Kufi"; color: var(--gold-hi); direction: ltr; }
.jr-time.low { color: var(--bad); animation: livePulse 1s ease-in-out infinite; }
.jr-prog { position: absolute; inset: auto 18px 8px 18px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.jr-prog span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc), #f59a7c); transition: width .5s var(--ease); }
.jr-form { display: grid; gap: 16px; }
.jr-sec h3 { font-size: 18px; }
.jr-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.jr-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.jr-opt input, .jr-choice input { position: absolute; opacity: 0; pointer-events: none; }
.jr-opt span { display: inline-block; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; color: var(--muted); transition: .2s; }
.jr-opt input:checked + span { color: #fff; border-color: transparent; background: linear-gradient(180deg, #f59a7c, #d6573b); }
.jr-opt input:focus-visible + span, .jr-choice input:focus-visible ~ span:last-child { outline: 2px solid var(--gold); outline-offset: 2px; }
.jr-q { padding: 16px 0; border-top: 1px dashed var(--line); }
.jr-q:first-of-type { border-top: 0; padding-top: 4px; }
.jr-q > p { display: flex; gap: 10px; margin: 0 0 12px; font-size: 16.5px; line-height: 1.8; color: #fff3ee; }
.jr-q > p em, .ad-q em { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-style: normal; font-weight: 800; font-size: 14px; color: var(--gold-hi); border: 1px solid var(--line-2); margin-top: 1px; }
.jr-choices { display: grid; gap: 8px; }
.jr-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.jr-choice:hover { border-color: var(--line-2); }
.jr-choice .l { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); transition: .2s; }
.jr-choice:has(input:checked) { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.jr-choice:has(input:checked) .l { color: #fff; border-color: transparent; background: var(--acc); }
.jr-essay { width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15, 10, 13, .7); color: var(--text); font: 500 16px/1.9 "Tajawal"; resize: vertical; }
.jr-essay:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(235, 169, 134, .12); }
.jr-count { margin-top: 6px; font-size: 13px; color: var(--dim); text-align: end; }
.jr-count.ok { color: var(--ok); }
.jr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.job-result { text-align: center; max-width: 720px; margin: 0 auto; }
.job-result .facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 420px; margin: 24px auto; }
.job-result.bad .gate-emblem { color: var(--bad); }

/* ---------------- staff panel ---------------- */
.adm { max-width: 1180px; }
.adm-demo { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 10px 16px; border-radius: 14px; border: 1px dashed rgba(255, 133, 82, .45); color: var(--warn); font-size: 14px; }
.adm-demo .ic { width: 17px; height: 17px; flex: none; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.adm-head .kicker { justify-content: flex-start; }
.adm-head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); text-align: start; }
.adm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.adm-stats div { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(33, 23, 28, .7); }
.adm-stats b { display: block; font: 400 30px/1.2 var(--display); color: #fff3ee; }
.adm-stats b em { font-style: normal; font-size: 16px; color: var(--muted); }
.adm-stats span { font-size: 13px; color: var(--muted); }
.adm-stats .hl { border-color: rgba(255, 105, 39, .35); background: rgba(255, 105, 39, .06); }
.adm-stats .hl b { color: var(--ember); }
.adm-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(20, 14, 17, .6); overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; transition: .2s; }
.adm-tabs a .ic { width: 18px; height: 18px; }
.adm-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.adm-tabs a.on { color: #fff; background: linear-gradient(180deg, #f59a7c, #d6573b); }
.adm-tabs em { font-style: normal; font-size: 12px; min-width: 22px; padding: 1px 7px; border-radius: 99px; color: #fff; background: var(--bad); }
.adm-tabs a.on em { background: rgba(0, 0, 0, .25); }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.adm-bar > * { min-width: 0; }
.adm-search { margin: 0; max-width: 340px; flex: 1; }
.adm-search input { padding: 11px 44px 11px 14px; font-size: 15px; }
.adm-jobs { margin-bottom: 12px; }
.adm-list { display: grid; gap: 8px; }
.adm-row { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--card-2)); overflow: hidden; transition: border-color .2s; }
.adm-row.open { border-color: var(--line-2); }
.ar-head { width: 100%; display: grid; grid-template-columns: minmax(150px, 1.6fr) auto 60px auto auto 90px; align-items: center; gap: 12px; padding: 13px 16px; border: 0; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.adm-row:not(:has(.ar-job)) .ar-head { grid-template-columns: minmax(150px, 1.6fr) 60px auto auto 90px; }
.ar-head:hover { background: rgba(255, 255, 255, .025); }
.ar-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.ar-who b { color: #fff3ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-who small { color: var(--dim); font-size: 12.5px; text-align: end; direction: ltr; overflow: hidden; text-overflow: ellipsis; }
.ar-job { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); white-space: nowrap; }
.ar-job .ic { width: 14px; height: 14px; }
.ar-score { font: 700 17px "Reem Kufi"; color: var(--gold-hi); text-align: center; direction: ltr; }
.ar-watch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ar-watch i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.ar-watch.warn i { background: var(--warn); } .ar-watch.bad i { background: var(--bad); }
.ar-st { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; justify-self: start; }
.ar-st .ic { width: 13px; height: 13px; }
.ar-st.pending { color: var(--warn); background: rgba(255, 133, 82, .1); }
.ar-st.accepted { color: var(--ok); background: rgba(111, 200, 156, .1); }
.ar-st.rejected, .ar-st.failed { color: var(--bad); background: rgba(231, 105, 91, .1); }
.ar-time { font-size: 12.5px; color: var(--dim); text-align: end; white-space: nowrap; }
.ar-body { padding: 4px 16px 18px; border-top: 1px dashed var(--line); animation: fadeUp .3s var(--ease); }
.ar-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 0; font-size: 13px; color: var(--dim); }
.ar-meta .ic { width: 14px; height: 14px; vertical-align: -2px; }
.ar-meta a { color: #9aa3ff; }
.ar-fields { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px; margin-bottom: 12px; }
.ar-fields div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.ar-fields small { display: block; font-size: 12px; color: var(--dim); }
.ar-fields b { color: #fff3ee; }
.ar-fields p { margin: 0; font-size: 14.5px; line-height: 1.8; white-space: pre-wrap; }
.ar-watchbox { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--ok); background: rgba(111, 200, 156, .07); border: 1px solid rgba(111, 200, 156, .25); }
.ar-watchbox .ic { width: 17px; height: 17px; margin-top: 3px; flex: none; }
.ar-watchbox.warn { color: var(--warn); background: rgba(255, 133, 82, .07); border-color: rgba(255, 133, 82, .3); }
.ar-watchbox.bad { color: #f39a8f; background: rgba(231, 105, 91, .08); border-color: rgba(231, 105, 91, .35); }
.ar-details { display: grid; gap: 10px; }
.ad-q { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; color: #fff3ee; line-height: 1.7; }
.ad-q > .ic { width: 17px; height: 17px; margin-top: 5px; flex: none; }
.ad-mc { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.ad-mc.ok .ad-q > .ic { color: var(--ok); }
.ad-mc.bad { border-color: rgba(231, 105, 91, .3); }
.ad-mc.bad .ad-q > .ic { color: var(--bad); }
.ad-mc small { display: block; padding-inline-start: 36px; color: var(--muted); font-size: 13.5px; }
.ad-mc small b { color: var(--text); }
.ad-essay { padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(235, 169, 134, .04); }
.ad-text { padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .25); line-height: 1.95; white-space: normal; }
.ad-text i { color: var(--dim); }
.ad-guide { display: flex; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--dim); }
.ad-guide .ic { width: 13px; height: 13px; margin-top: 3px; }
.ad-review { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ad-note { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 10, 13, .7); color: var(--text); font: 500 15px/1.7 "Tajawal"; resize: vertical; }
.ad-note:focus { outline: none; border-color: var(--gold); }
.ad-btns { display: flex; gap: 10px; margin-top: 10px; }
.btn-ok { color: #fff; border-color: transparent; background: linear-gradient(180deg, #74cf9f, #3f9a6c); }
.btn-bad { color: #fff; border-color: transparent; background: linear-gradient(180deg, #ef7a6c, #b9473b); }
.btn-ok:hover, .btn-bad:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ad-done { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.ad-done .ic { width: 16px; height: 16px; }
.ad-done.accepted .ic { color: var(--ok); } .ad-done.rejected .ic { color: var(--bad); }
.ad-done span { width: 100%; color: var(--text); }
.adm-gate { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.adm-gate .field-help { justify-content: center; }
.adm-news { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.an-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.an-checks { display: grid; gap: 8px; margin: 14px 0; }
.an-check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14.5px; color: var(--text); }
.an-check input { width: 18px; height: 18px; accent-color: #d6573b; }
.an-check .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--gold); }
.an-check.off { color: var(--dim); cursor: default; }
.an-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.an-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 17px "Tajawal"; color: var(--gold-hi); }
.an-title .ic { width: 18px; height: 18px; }
.an-list { display: grid; gap: 8px; }
.an-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--card-2)); }
.an-item > div:first-child { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-item b { width: 100%; color: #fff3ee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-item small { color: var(--dim); font-size: 12.5px; }
.an-btns { display: flex; gap: 4px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; transition: .2s; }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--gold-hi); border-color: var(--line-2); }
.icon-btn.danger:hover { color: var(--bad); border-color: rgba(231, 105, 91, .5); }
.adm-jobs-list { display: grid; gap: 10px; }
.aj-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--card-2)); }
.aj-item .jc-ico { width: 44px; height: 44px; border-radius: 13px; }
.aj-item .jc-ico .ic { width: 22px; height: 22px; }
.aj-txt { flex: 1; display: flex; flex-direction: column; }
.aj-txt b { color: #fff3ee; font-size: 16.5px; }
.aj-txt small { color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 48px; height: 27px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); transition: .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 19px; height: 19px; border-radius: 50%; background: #cdb8ac; transition: .25s var(--ease); }
.switch input:checked + span { background: linear-gradient(180deg, #74cf9f, #3f9a6c); border-color: transparent; }
.switch input:checked + span::after { inset-inline-start: 24px; background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--muted); min-width: 44px; }

/* ---------------- live prices ---------------- */
.market { margin: 10px 0 46px; padding: 24px; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(43, 30, 35, .75), rgba(24, 16, 20, .8)); overflow: hidden; }
.ticker { margin: -24px -24px 20px; padding: 10px 0; overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tk-track { display: flex; width: max-content; gap: 34px; animation: ticker 60s linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
.tk-track span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); white-space: nowrap; }
.tk-track b { color: var(--muted); font-weight: 500; }
@keyframes ticker { to { transform: translateX(50%); } }
.mkt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mkt-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 38px); text-align: start; }
.mkt-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.mkt-head p .ic { width: 15px; height: 15px; }
.mkt-demo { color: var(--warn); }
.mkt-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--ok); border: 1px solid rgba(111, 200, 156, .35); background: rgba(111, 200, 156, .07); }
.mkt-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: livePulse 1.8s ease-in-out infinite; }
.mkt-live.frozen { color: #8fb0ff; border-color: rgba(143, 176, 255, .35); background: rgba(143, 176, 255, .07); }
.mkt-live.frozen i { background: #8fb0ff; animation: none; }
.mkt-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mkt-big { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(15, 10, 13, .55); }
.mb-ico { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--ember); background: rgba(255, 105, 39, .1); border: 1px solid rgba(255, 105, 39, .25); }
.mb-ico .ic { width: 19px; height: 19px; }
.mkt-big small { color: var(--muted); font-size: 13.5px; }
.mkt-big b { font: 400 34px/1.2 var(--display); color: #fff3ee; }
.mkt-big b em { font: 500 15px "Tajawal"; color: var(--muted); font-style: normal; }
.chg { display: inline-flex; align-items: center; gap: 3px; font-size: 13.5px; font-weight: 700; direction: ltr; }
.chg .ic { width: 15px; height: 15px; }
.chg.up { color: var(--ok); } .chg.down { color: var(--bad); } .chg.flat { color: var(--dim); }
.mkt-big .chg { direction: rtl; }
.mkt-chips { margin-bottom: 12px; }
.mkt-table { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.mt-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1.3fr; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid rgba(235, 169, 134, .07); }
.mt-row:nth-child(even) { background: rgba(255, 255, 255, .018); }
.mt-h { border-top: 0; background: rgba(0, 0, 0, .3) !important; font-size: 13px; font-weight: 700; color: var(--dim); }
.mt-name { display: flex; flex-direction: column; min-width: 0; }
.mt-name b { color: #fff3ee; font-weight: 700; }
.mt-name small { font-size: 12px; color: var(--dim); }
.mt-price { font-weight: 800; color: var(--gold-hi); }
.mt-price em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.mt-sup { position: relative; display: flex; align-items: center; gap: 8px; }
.mt-sup::before { content: ""; position: absolute; inset-inline-start: 0; width: 64px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.mt-sup i { position: relative; display: block; width: 0; max-width: 64px; height: 6px; border-radius: 6px; background: var(--ok); flex: none; }
.mt-sup.low i { background: var(--bad); } .mt-sup.high i { background: #8fb0ff; }
.mt-sup em { font-style: normal; font-size: 13px; color: var(--muted); margin-inline-start: 64px; position: absolute; padding-inline-start: 10px; }
.mkt-note { display: flex; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: var(--dim); line-height: 1.8; }
.mkt-note .ic { width: 15px; height: 15px; margin-top: 4px; flex: none; color: var(--gold); }
.mkt-off { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.mkt-off > .ic { width: 40px; height: 40px; color: var(--ember); flex: none; }
.mkt-off b { display: block; color: #fff3ee; font-size: 18px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1020px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-how { grid-template-columns: repeat(2, 1fr); }
  .adm-stats { grid-template-columns: repeat(3, 1fr); }
  .adm-news { grid-template-columns: 1fr; }
  .ar-head, .adm-row:not(:has(.ar-job)) .ar-head { grid-template-columns: 1fr auto auto; grid-template-areas: none; }
  .ar-head .ar-job, .ar-head .ar-time, .ar-head .ar-watch { display: none; }
}
@media (max-width: 760px) {
  .news-grid, .jobs-grid { grid-template-columns: 1fr; }
  .jobs-how { grid-template-columns: 1fr 1fr; }
  .next-event { flex-wrap: wrap; }
  .ne-cd { width: 100%; text-align: center; }
  .jr-grid, .an-row, .ar-fields { grid-template-columns: 1fr; }
  .adm-stats { grid-template-columns: 1fr 1fr; }
  .adm-head { flex-direction: column; align-items: flex-start; }
  .market { padding: 16px; }
  .ticker { margin: -16px -16px 16px; }
  .mt-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .mt-row > :nth-child(4), .mt-row > :nth-child(5) { display: none; }
  .job-hero { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; }
}
.mkt-more { display: flex; justify-content: center; margin-top: 12px; }
.mt-name { line-height: 1.45; }
.adm-news > *, .an-row > *, .jr-grid > * { min-width: 0; }
.an-form input, .an-form select, .an-form textarea { min-width: 0; max-width: 100%; }
.an-check { align-items: flex-start; }
.an-check input { flex: none; margin-top: 4px; }
@media (max-width: 520px) {
  .nav-online { display: none !important; }
  .nav-in { gap: 8px; }
}
.an-list > *, .adm-list > *, .ar-details > * { min-width: 0; }
.an-item > div:first-child { overflow: hidden; }
@media (max-width: 760px) {
  .adm-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .adm-tabs a { padding: 10px 8px; font-size: 14px; }
  .adm-stats > :last-child { grid-column: span 2; }
}
