/* =========================================================
   جايزتك — تصميم فاخر (أسود وذهبي)
   ========================================================= */
:root {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --bg-3: #13131a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #f6f2e9;
  --text-2: #d2cbbd;
  --muted: #8f8a80;
  --gold-1: #fbe9ac;
  --gold-2: #e5bf66;
  --gold-3: #b0812c;
  --gold: linear-gradient(135deg, #fdeeb8 0%, #e8c46c 38%, #c39340 70%, #9c7128 100%);
  --gold-soft: rgba(229, 191, 102, .12);
  --gold-line: rgba(229, 191, 102, .35);
  --ok: #63e0a3;
  --err: #ff8f80;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(229, 191, 102, .13), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(176, 129, 44, .07), transparent 60%);
  background-attachment: fixed;
  color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body::before { /* نسيج ناعم */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-header, .site-footer { position: relative; z-index: 1; }
::selection { background: var(--gold-2); color: #1a1408; }

a { color: var(--gold-1); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-size: .85em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
svg.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.gold-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }

/* عنوان القسم */
.sec-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.sec-head p { color: var(--muted); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--gold-2); }
.kicker::before, .kicker::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.kicker::after { transform: scaleX(-1); }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 7, 10, .78); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.logo:hover { color: var(--text); }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: #1a1408; box-shadow: 0 8px 24px -8px rgba(229, 191, 102, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.logo-mark svg { width: 22px; height: 22px; stroke-width: 2; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 99px; color: var(--text-2); font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-inline-start: 8px; }
.nav a.on { color: var(--gold-1); background: var(--gold-soft); }

/* قائمة الجوال */
.mmenu { display: none; position: static; }
.mmenu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); cursor: pointer; }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary .i { width: 22px; height: 22px; }
.mmenu .ic-close, .mmenu[open] .ic-open { display: none; }
.mmenu[open] .ic-close { display: block; }
.mmenu[open] summary { border-color: var(--gold-line); color: var(--gold-1); }
.mmenu-panel { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 4px; padding: 12px 16px 18px;
  background: rgba(10, 10, 14, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0, 0, 0, .7); animation: drop .25s var(--ease); }
.mmenu-panel a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 12px; color: var(--text); font-size: 1.05rem; font-weight: 500; }
.mmenu-panel a:not(.btn) .i { color: var(--gold-2); width: 20px; height: 20px; }
.mmenu-panel a:not(.btn):hover, .mmenu-panel a.on { background: var(--gold-soft); color: var(--gold-1); }
.mmenu-panel .btn { margin-top: 8px; padding: 15px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 980px) {
  .nav a:not(.btn) { display: none; }
  .mmenu { display: block; }
  .header-inner { gap: 10px; }
  .nav { margin-inline-start: auto; }
}
@media (max-width: 760px) { .header-inner { height: 66px; } }
@media (max-width: 380px) { .nav .btn { display: none; } }

/* ---------- الأزرار ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 99px; border: 1px solid var(--border-2);
  background: var(--surface-2); color: var(--text); font: 600 .95rem/1.2 var(--font-head); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { color: var(--text); border-color: var(--gold-line); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { border: 0; background: var(--gold); color: #1a1408; box-shadow: 0 14px 34px -12px rgba(229, 191, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-gold:hover { color: #1a1408; box-shadow: 0 18px 44px -12px rgba(229, 191, 102, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-gold::after { /* لمعة */
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  animation: shine 4.5s var(--ease) infinite;
}
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 130%; } }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-2); font-size: .85rem; color: var(--text-2); backdrop-filter: blur(6px); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(99, 224, 163, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(99, 224, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 224, 163, 0); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: .76rem; font-weight: 600; border: 1px solid transparent; }
.badge.live { background: rgba(99, 224, 163, .1); color: var(--ok); border-color: rgba(99, 224, 163, .25); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.soon { background: var(--gold-soft); color: var(--gold-2); border-color: var(--gold-line); }
.badge.ended { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

/* ---------- الهيرو ---------- */
.hero { padding: 40px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 18px; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--text-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.mini-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.mini-trust span { display: inline-flex; align-items: center; gap: 8px; }
.mini-trust .i { color: var(--gold-2); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 24px 0 48px; } }

/* منصة الجائزة */
.stage {
  position: relative; display: block; isolation: isolate; padding: 28px; border-radius: 32px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.stage:hover { color: var(--text); }
.stage::before { /* إطار ذهبي متدرج */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(160deg, var(--gold-line), transparent 40%, transparent 60%, rgba(229, 191, 102, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.stage-art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .82; border-radius: 24px; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 42%, rgba(229, 191, 102, .22), transparent 70%), linear-gradient(180deg, #121219, #0a0a0e); }
.stage-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 48px); mask: radial-gradient(70% 70% at 50% 50%, #000, transparent); -webkit-mask: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.stage-art svg.art, .stage-art img { position: relative; z-index: 1; width: 78%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); animation: float 6s ease-in-out infinite; }
.stage-art .rays { position: absolute; width: 140%; aspect-ratio: 1; background: conic-gradient(from 0deg, transparent 0 8%, rgba(229, 191, 102, .07) 10%, transparent 12% 33%, rgba(229, 191, 102, .06) 35%, transparent 37% 58%, rgba(229, 191, 102, .07) 60%, transparent 62% 83%, rgba(229, 191, 102, .05) 85%, transparent 87%); animation: spin 40s linear infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: .82rem; font-weight: 600;
  background: rgba(12, 12, 17, .82); border: 1px solid var(--border-2); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
.chip .i { color: var(--gold-2); }
.chip-a { top: 18px; right: 18px; animation: float 5s ease-in-out infinite; }
.chip-b { bottom: 18px; left: 18px; animation: float 5s ease-in-out -2.5s infinite; }
.stage-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 22px 4px 4px; }
.stage-info small { display: block; color: var(--muted); font-size: .8rem; }
.stage-info strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.stage-info .value { text-align: left; }
.stage-info .value strong { font-size: 1.3rem; }

/* ---------- شريط الاكتمال ---------- */
.goal { margin-top: 18px; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; font-size: .86rem; color: var(--text-2); }
.goal-head .pct { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.goal-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); overflow: hidden; }
.goal-bar > span { position: absolute; inset: 0 0 0 auto; border-radius: 99px; background: var(--gold); box-shadow: 0 0 18px rgba(229, 191, 102, .6); }
.goal-bar > span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: bar-shine 2.6s linear infinite; }
@keyframes bar-shine { from { background-position: 250% 0; } to { background-position: -150% 0; } }
.goal-big { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.goal-big .goal-bar { height: 14px; }
.goal-note { display: flex; gap: 10px; margin: 14px 0 0; font-size: .92rem; color: var(--text-2); }
.goal-note .i { color: var(--gold-2); margin-top: 4px; }
.goal-note b { color: var(--text); }

/* ---------- آخر المشاركين ---------- */
.ticker { position: relative; overflow: hidden; padding: 16px 0; border-block: 1px solid var(--border); background: rgba(255, 255, 255, .015);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; font-size: .88rem; color: var(--text-2); }
.tick .av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1a1408; font-weight: 700; font-size: .8rem; }
.tick small { color: var(--muted); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- أرقام ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.stats > div { padding: 28px 18px; text-align: center; background: var(--bg-2); }
.stats b { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2; }
.stats span { color: var(--muted); font-size: .88rem; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- بطاقات المسابقات ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.comp-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.comp-card:hover { color: var(--text); transform: translateY(-6px); border-color: var(--gold-line); box-shadow: 0 30px 60px -30px rgba(229, 191, 102, .35); }
.comp-card .badge { position: absolute; top: 14px; right: 14px; z-index: 2; backdrop-filter: blur(8px); }
.comp-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; background: radial-gradient(55% 60% at 50% 45%, rgba(229, 191, 102, .18), transparent 70%), #0d0d12; border-bottom: 1px solid var(--border); }
.comp-art svg.art, .comp-art img { width: 62%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); transition: transform .5s var(--ease); }
.comp-card:hover .comp-art svg.art, .comp-card:hover .comp-art img { transform: scale(1.06) translateY(-4px); }
.comp-card.soon .comp-art svg.art { filter: grayscale(.6) brightness(.7) drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
.comp-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.comp-body h3 { margin-bottom: 4px; }
.comp-body p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }
.comp-body .goal { margin-top: auto; padding-top: 16px; }
.comp-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; color: var(--gold-2); font-weight: 600; font-size: .9rem; }

/* ---------- الخطوات ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 31px; right: 12%; left: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), var(--gold-line), transparent); }
.steps li { counter-increment: s; position: relative; text-align: center; padding: 0 8px; }
.steps .num { position: relative; display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--gold-line); color: var(--gold-1); box-shadow: 0 0 0 8px var(--bg), 0 0 40px -10px rgba(229, 191, 102, .5); }
.steps .num svg { width: 24px; height: 24px; }
.steps .num::after { content: counter(s); position: absolute; top: -4px; left: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1a1408; font: 700 .72rem var(--font-head); }
.steps b { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } .steps::before { display: none; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ---------- المميزات ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.feature:hover { border-color: var(--gold-line); background: var(--surface-2); }
.feature .ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-1); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- دعوة ختامية ---------- */
.cta-band { position: relative; overflow: hidden; padding: 56px 32px; border-radius: 32px; text-align: center; border: 1px solid var(--gold-line);
  background: radial-gradient(70% 120% at 50% 0%, rgba(229, 191, 102, .22), transparent 70%), var(--bg-2); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-2); margin-bottom: 26px; }

/* ---------- الفوتر ---------- */
.site-footer { margin-top: 40px; padding: 56px 0 32px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .4)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { max-width: 380px; margin-top: 14px; color: var(--muted); font-size: .92rem; }
.footer-col h4 { margin: 0 0 12px; font: 600 .95rem var(--font-head); color: var(--text); }
.footer-col a { display: block; padding: 4px 0; color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- الإعلانات (صغيرة وغير مزعجة) ---------- */
.ad { max-width: 760px; margin: 28px auto; text-align: center; }
.ad-label { display: block; font-size: .64rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.adsbygoogle.ad-small { display: inline-block; width: 100%; height: 90px; }
.ad-code { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.ad-code iframe { max-width: 100%; }
.ad-placeholder { display: grid; place-items: center; height: 90px; border: 1px dashed var(--border); border-radius: var(--r-sm); color: #55524c; font-size: .74rem; background: rgba(255, 255, 255, .01); }
@media (max-width: 600px) { .adsbygoogle.ad-small, .ad-placeholder { height: 60px; } .ad { margin: 20px auto; } }

/* ---------- الرئيسية المبسطة ---------- */
.home-head { padding: 36px 16px 26px; text-align: center; }
.home-head h1 { margin: 18px 0 10px; font-size: clamp(1.9rem, 5vw, 3.1rem); }
.home-head .lead { margin: 0 auto; }
.feat-list { display: grid; gap: 20px; }
.feat { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; padding: 20px; border-radius: 30px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--gold-line); box-shadow: var(--shadow), 0 0 80px -40px rgba(229, 191, 102, .45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feat:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow), 0 0 90px -30px rgba(229, 191, 102, .6); }
.feat-art { aspect-ratio: 1 / .78; }
.feat-body { padding: 8px 8px 8px 16px; }
.feat-body h2 { margin: 14px 0 6px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.feat-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.feat-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }
.feat-facts .i { color: var(--gold-2); }
.feat-facts b { color: var(--text); font-weight: 600; }
.feat-btn { margin-top: 22px; }
.feat-btn .i:last-child { transition: transform .3s var(--ease); }
.feat:hover .feat-btn .i:last-child { transform: translateX(-4px); }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; gap: 6px; padding: 12px; border-radius: 26px; }
  .feat-body { padding: 10px 8px 12px; }
  .feat-btn { width: 100%; }
}
.row-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.3rem; }
.row-title .i { color: var(--gold-2); }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-steps li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); }
.mini-steps li > span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #1a1408; font: 700 1rem var(--font-head); }
.mini-steps b { display: block; font-family: var(--font-head); font-weight: 600; }
.mini-steps small { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .mini-steps { grid-template-columns: 1fr; } }

/* ---------- خطوات المشاركة ---------- */
.stepper { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 520px; margin: 18px auto 6px; }
.st { flex: none; }
.st, .st a { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.st a:hover { color: var(--gold-1); }
.st-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--bg-2); font: 600 .9rem var(--font-head); }
.st-num .i { width: 16px; height: 16px; stroke-width: 2.6; }
.st.now { color: var(--text); }
.st.now .st-num { border: 0; background: var(--gold); color: #1a1408; box-shadow: 0 0 0 5px rgba(229, 191, 102, .15); }
.st.done .st-num { border-color: var(--gold-line); color: var(--gold-1); background: var(--gold-soft); }
.st.done, .st.done a { color: var(--text-2); }
.st-line { flex: 1; min-width: 16px; height: 1px; background: var(--border-2); }
@media (max-width: 420px) { .stepper { gap: 6px; } .st-label { font-size: .8rem; } .st-num { width: 28px; height: 28px; } }

.next-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 24px; padding: 26px 30px; border-radius: 26px;
  background: radial-gradient(80% 140% at 100% 0%, rgba(229, 191, 102, .16), transparent 60%), var(--bg-2); border: 1px solid var(--gold-line); }
.next-box small { color: var(--gold-2); font-weight: 600; font-size: .8rem; letter-spacing: .06em; }
.next-box h2 { margin: 4px 0 4px; font-size: 1.4rem; }
.next-box p { margin: 0; }
.next-box .btn { flex: none; }
@media (max-width: 640px) { .next-box { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px; } }
.join-title { font-size: 1.7rem; margin-bottom: 8px; }

/* ---------- اختيار طريقة التواصل ---------- */
.methods { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.methods legend { padding: 0; margin-bottom: 10px; font-weight: 500; font-size: .92rem; color: var(--text-2); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-opt { margin: 0; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .3); border: 1px solid var(--border-2); color: var(--text-2); font-weight: 600; font-size: .9rem; text-align: center; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.seg-opt span .i { width: 22px; height: 22px; color: var(--muted); transition: color .2s; }
.seg-opt:hover span { border-color: var(--gold-line); }
.seg-opt input:checked + span { background: var(--gold-soft); border-color: var(--gold-2); color: var(--text); box-shadow: 0 0 0 3px rgba(229, 191, 102, .12); }
.seg-opt input:checked + span .i { color: var(--gold-1); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.hint { display: flex; align-items: center; gap: 8px; margin: -8px 0 18px; font-size: .82rem; color: var(--muted); }
.hint .i { color: var(--gold-2); }

/* ---------- صفحة المسابقة ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 12px; font-size: .88rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.crumbs a .i { color: var(--gold-2); }
.crumbs a:hover { color: var(--gold-1); }
.comp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 24px 0 40px; }
.comp-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 16px 0 12px; }
.prize-line { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 1.05rem; }
.prize-line .i { color: var(--gold-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.fact { padding: 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); }
.fact small { display: block; color: var(--muted); font-size: .76rem; }
.fact b { font-family: var(--font-head); font-weight: 600; font-size: .98rem; }
@media (max-width: 900px) {
  .comp-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; }
  .comp-hero > :last-child { order: -1; }
  .comp-hero .stage { padding: 14px; border-radius: 26px; }
  .comp-hero .stage-info { margin-top: 14px; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr 1fr; } .facts .fact:last-child { grid-column: 1 / -1; } }

.content-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
.panel { padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); margin-bottom: 24px; }
.panel h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.panel h2 .i { color: var(--gold-2); }
.panel p { color: var(--text-2); }
.panel p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .panel { padding: 22px 18px; } }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 13px 0; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; font-size: .95rem; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; }
.specs td { font-weight: 500; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs tr.hl td, .specs tr.hl th { color: var(--ok); }
.table-scroll { overflow-x: auto; }
.table-scroll .specs th, .table-scroll .specs td { padding-inline: 8px; white-space: nowrap; }

.check-list { padding: 0; margin: 0; list-style: none; }
.check-list li { position: relative; padding-right: 32px; margin-bottom: 12px; color: var(--text-2); }
.check-list li::before { content: ''; position: absolute; right: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5bf66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid var(--gold-line); }

/* ---------- صندوق المشاركة ---------- */
.join-card { position: relative; isolation: isolate; margin: 8px 0 24px; padding: 44px 24px; border-radius: 32px; text-align: center; scroll-margin-top: 96px;
  background: radial-gradient(80% 60% at 50% 0%, rgba(229, 191, 102, .16), transparent 70%), var(--bg-2); border: 1px solid var(--gold-line); box-shadow: 0 0 80px -30px rgba(229, 191, 102, .4); }
.join-step { max-width: 480px; margin: 0 auto; }
.join-step h2 { margin-bottom: 8px; }
.join-step > .muted { margin-bottom: 26px; }
.join-ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; background: var(--gold); color: #1a1408; box-shadow: 0 18px 40px -14px rgba(229, 191, 102, .8); }
.join-ic svg { width: 34px; height: 34px; stroke-width: 1.8; }
.join-step .check-list { text-align: right; max-width: 400px; margin: 10px auto 0; }
.ref-banner { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -12px auto 24px; max-width: 480px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-1); font-weight: 600; font-size: .95rem; }

.timer { position: relative; width: 168px; height: 168px; margin: 0 auto 22px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 6; }
.timer .track { stroke: rgba(255, 255, 255, .07); }
.timer .bar { stroke: url(#timerGold); stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 8px rgba(229, 191, 102, .6)); }
.timer-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.timer-num b { font: 700 3.2rem/1 var(--font-head); }
.timer-num small { color: var(--muted); font-size: .8rem; margin-top: 4px; }

form.join-step { position: relative; text-align: right; }
form.join-step h2, form.join-step > .muted { text-align: center; }
label { display: block; margin-bottom: 18px; font-weight: 500; font-size: .92rem; color: var(--text-2); }
.field { position: relative; margin-top: 8px; }
.field .i { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field input { padding-right: 46px !important; }
input:not([type=checkbox]), select {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2); background: rgba(0, 0, 0, .35); color: var(--text); font: 500 1rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field input { margin-top: 0; }
input:focus, select:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(229, 191, 102, .15); }
input::placeholder { color: #5f5b54; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--gold-2); flex: none; }
.ts-box { display: flex; justify-content: center; min-height: 70px; margin: 4px 0 16px; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-error { display: block; padding: 10px 14px; border-radius: 12px; background: rgba(255, 143, 128, .08); border: 1px solid rgba(255, 143, 128, .25); color: var(--err); font-weight: 500; font-size: .92rem; }
.form-error[hidden] { display: none; }
.notice { padding: 10px 14px; border-radius: 12px; background: rgba(99, 224, 163, .08); border: 1px solid rgba(99, 224, 163, .25); color: var(--ok); font-weight: 500; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .82rem; }

/* التذكرة الذهبية */
.ticket { position: relative; display: flex; align-items: stretch; max-width: 400px; margin: 22px auto 16px; border-radius: 18px; background: var(--gold); color: #1a1408; box-shadow: 0 24px 50px -20px rgba(229, 191, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .6); text-align: right; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); transform: translateY(-50%); }
.ticket::before { right: -13px; } .ticket::after { left: -13px; }
.ticket-main { flex: 1; padding: 18px 28px; }
.ticket-main small { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; opacity: .7; }
.ticket-main strong { display: block; font: 700 clamp(1.25rem, 5.4vw, 1.7rem)/1.3 var(--font-head); letter-spacing: .03em; direction: ltr; text-align: right; white-space: nowrap; }
@media (max-width: 420px) { .ticket-main { padding: 16px 20px; } .ticket-side { padding: 12px 18px; } }
.ticket-side { display: grid; place-content: center; padding: 14px 24px; border-right: 2px dashed rgba(26, 20, 8, .3); text-align: center; }
.ticket-side b { display: block; font: 700 1.7rem/1 var(--font-head); }
.ticket-side small { font-size: .72rem; font-weight: 600; opacity: .7; }
.done-title { display: inline-flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 600; margin-bottom: 4px; }

.share-box { margin-top: 26px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); text-align: right; }
.share-box h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.share-box h3 .i { color: var(--gold-2); }
.share-box p { margin-bottom: 0; }
.copy-row { display: flex; gap: 8px; margin: 16px 0; }
.copy-row input { margin: 0; font-size: .88rem; }
.share-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.share-btns .btn { border-radius: var(--r-sm); }
.share-btns .wa:hover { border-color: #25d366; }
.share-btns .x:hover { border-color: #fff; }
.share-btns .tg:hover { border-color: #2aabee; }
.small-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.ended-card { box-shadow: none; }
.soon-hero { padding: 80px 0; }
.soon-hero .stage-art { max-width: 360px; margin: 0 auto 28px; border-radius: 28px; border: 1px solid var(--border); }

/* الأسئلة */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.faq details[open] { border-color: var(--gold-line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; font-weight: 600; font-family: var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); color: var(--gold-2); font-size: 1.1rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-2); }

/* زر ثابت للجوال */
.sticky-cta { position: fixed; z-index: 40; bottom: 14px; left: 14px; right: 14px; display: none; transform: translateY(140%); transition: transform .4s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; padding: 15px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8), 0 14px 34px -12px rgba(229, 191, 102, .7); }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* ---------- صفحات أخرى ---------- */
.page-head { padding: 56px 0 24px; text-align: center; }
.page-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.check-form { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 12px; align-items: end; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.check-form label { margin: 0; }
@media (max-width: 640px) { .check-form { grid-template-columns: 1fr; } }
.result-card { margin-top: 20px; padding: 28px 24px; text-align: center; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--gold-line); }
.winners { display: grid; gap: 12px; }
.winner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.winner .trophy { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold); color: #1a1408; }
.winner > div { display: flex; flex-direction: column; }
.winner .w-meta { margin-right: auto; text-align: left; font-size: .85rem; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; border-radius: var(--r); border: 1px dashed var(--border-2); color: var(--muted); }
.empty .i { width: 40px; height: 40px; color: var(--gold-2); margin-bottom: 10px; }
.prose { padding-bottom: 40px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; color: var(--gold-1); }
.prose p, .prose li { color: var(--text-2); }

/* لوحة التحكم */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stat { padding: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat b { display: block; font: 600 1.25rem var(--font-head); }
.stat span { font-size: .8rem; color: var(--muted); }
.admin-block { margin: 24px 0 40px; padding: 28px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border); }
.admin-block h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-block h3 { margin-top: 28px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-actions form { margin: 0; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0; }
.fin-grid .stat small { display: block; font-size: .72rem; color: var(--muted); }
.ok-text { color: var(--ok) !important; }
.warn-text { color: var(--gold-1); }
.revenue-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.revenue-form label { margin: 0; flex: 1 1 220px; }
.formula { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .3); border: 1px dashed var(--border-2); font-size: .9rem; color: var(--text-2); }

/* ---------- المقالات ---------- */
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.row-head .row-title { margin: 0; }
.row-head .small-link { margin: 0; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.art-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .3s var(--ease), border-color .3s; }
.art-card:hover { color: var(--text); transform: translateY(-4px); border-color: var(--gold-line); }
.art-thumb { display: grid; place-items: center; aspect-ratio: 16 / 8.5; overflow: hidden; background: radial-gradient(55% 60% at 50% 45%, rgba(229, 191, 102, .16), transparent 70%), #0d0d12; border-bottom: 1px solid var(--border); }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-thumb svg.art { width: 46%; height: auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .6)); }
.thumb-ic { color: var(--gold-2); } .thumb-ic .i { width: 40px; height: 40px; }
.art-body { padding: 18px 20px 20px; }
.art-body small { color: var(--muted); font-size: .8rem; }
.art-body h3 { margin: 6px 0 8px; font-size: 1.08rem; line-height: 1.55; }
.art-body p { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.art-head { padding: 28px 0 10px; }
.art-head small { color: var(--gold-2); font-weight: 500; }
.art-head h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); margin: 10px 0 14px; line-height: 1.4; }
.art-cover { display: block; width: 100%; border-radius: var(--r); margin: 10px 0; border: 1px solid var(--border); }
.art-content { font-size: 1.08rem; line-height: 2; color: var(--text-2); }
.art-content h2 { margin: 1.8em 0 .6em; font-size: 1.45rem; color: var(--text); }
.art-content h3 { margin: 1.5em 0 .5em; font-size: 1.18rem; color: var(--text); }
.art-content p { margin: 0 0 1.1em; }
.art-content ul, .art-content ol { margin: 0 0 1.2em; padding-right: 1.4em; }
.art-content li { margin-bottom: .45em; }
.art-content li::marker { color: var(--gold-2); font-weight: 700; }
.art-content strong { color: var(--text); }
.art-content a { color: var(--gold-1); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
.art-content blockquote { margin: 1.4em 0; padding: 16px 20px; border-radius: var(--r-sm); background: var(--gold-soft); border-right: 3px solid var(--gold-2); color: var(--text); }
.art-content .ad { margin: 28px auto; }
.art-cta { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; margin: 36px 0 10px; padding: 16px 20px 16px 16px; border-radius: var(--r); color: var(--text);
  background: radial-gradient(80% 140% at 100% 0%, rgba(229, 191, 102, .16), transparent 60%), var(--bg-2); border: 1px solid var(--gold-line); }
.art-cta:hover { color: var(--text); }
.art-cta-img { display: grid; place-items: center; height: 90px; border-radius: 14px; background: #0d0d12; }
.art-cta-img svg.art, .art-cta-img img { width: 85%; height: auto; }
.art-cta small { display: block; color: var(--gold-2); font-weight: 600; font-size: .8rem; }
.art-cta b { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.art-cta span:not(.btn) { color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .art-cta { grid-template-columns: 80px 1fr; } .art-cta .btn { grid-column: 1 / -1; } .art-cta-img { height: 70px; } }

/* =========================================================
   لوحة التحكم
   ========================================================= */
body.adm { font-size: 16px; }
.adm-top { position: sticky; top: 0; z-index: 30; background: rgba(7, 7, 10, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.adm-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.adm-top .logo { font-size: 1.15rem; }
.adm-top .logo small { color: var(--muted); font: 500 .78rem var(--font-body); margin-inline-start: 4px; }
.adm-top-actions { display: flex; gap: 8px; }
.adm-top-actions form { margin: 0; }
.adm-top-actions .btn { padding: 8px 14px; font-size: .85rem; }
.adm-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--muted); font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.adm-nav a:hover { color: var(--text); }
.adm-nav a.on { color: var(--gold-1); border-color: var(--gold-2); }
.adm-main { padding-top: 24px; padding-bottom: 60px; }
.adm-main > .notice, .adm-main > .form-error { margin-bottom: 16px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.adm-head h1 { font-size: 1.6rem; margin: 0; }
.adm-card { margin-bottom: 20px; padding: 24px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border); }
.adm-card > h2, .adm-card-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.2rem; margin-bottom: 16px; }
.adm-card > h2 .i { color: var(--gold-2); }
.adm-card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.adm-card.danger { border-color: rgba(255, 143, 128, .25); }
.adm-sub { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.adm-sub h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin-bottom: 12px; }
.adm-sub h3 .i { color: var(--gold-2); }
.adm-sub form { margin-top: 12px; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .stat-row.four { grid-template-columns: 1fr 1fr; } .adm-card { padding: 18px 14px; } .adm-top-actions > a.btn { display: none; } }
.btn-sm { padding: 7px 12px; font-size: .82rem; }
.td-act { text-align: left !important; width: 1%; white-space: nowrap; }
.td-act form { margin: 0; }
textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: rgba(0, 0, 0, .35); color: var(--text); font: 500 .95rem/1.7 var(--font-body); resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(229, 191, 102, .15); }
input:disabled { opacity: .6; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 16px; }
.adm-form label.check { margin-bottom: 14px; }
.calc-out { align-self: end; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.calc-out small { display: block; color: var(--muted); font-size: .78rem; }
.calc-out b { font-family: var(--font-head); color: var(--gold-1); }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin: 0 -4px 20px; padding: 14px 4px; background: linear-gradient(0deg, var(--bg) 70%, transparent); }
.img-pick { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.img-pick .btn { margin: 4px 0 4px 6px; }
.img-prev { aspect-ratio: 1 / .82; border-radius: 18px; border: 1px solid var(--border); }
.img-prev img, .img-prev svg.art { position: relative; z-index: 1; width: 80%; height: auto; }
@media (max-width: 560px) { .img-pick { grid-template-columns: 1fr; } .img-prev { max-width: 260px; } }

.comp-admin-list { display: grid; gap: 10px; }
.ca-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border); color: var(--text); transition: border-color .2s; }
.ca-row:hover { color: var(--text); border-color: var(--gold-line); }
.ca-art { display: grid; place-items: center; height: 70px; border-radius: 12px; background: #0d0d12; overflow: hidden; }
.ca-art svg, .ca-art img { width: 90%; height: auto; }
.ca-body { display: flex; flex-direction: column; min-width: 0; }
.ca-body span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 520px) { .ca-row { grid-template-columns: 64px 1fr; } .ca-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; } .ca-art { height: 56px; } }

.toolbar { display: grid; grid-template-columns: 1fr 2fr 1fr auto; gap: 10px; margin-bottom: 16px; }
.toolbar input, .toolbar select { margin: 0; }
@media (max-width: 760px) { .toolbar { grid-template-columns: 1fr 1fr; } .toolbar input { grid-column: 1 / -1; order: -1; } }
.bulk-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.bulk-bar .btn:disabled { opacity: .4; cursor: not-allowed; }
.entries-table th, .entries-table td { padding: 10px 8px !important; white-space: nowrap; font-size: .88rem; }
.entries-table tr:first-child th { color: var(--muted); font-weight: 500; }
.entries-table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--gold-2); }
.entries-table tr.is-out td { opacity: .55; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }

/* الرسم البياني */
.chart { margin: 18px 0 0; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chart figcaption span { color: var(--muted); font-size: .82rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .bl { stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.chart .ax { fill: var(--muted); font: 10px var(--font-body); }
.chart .bar { fill: #b8892f; transition: fill .15s; }
.chart .hit { fill: transparent; }
.chart .col.on .bar { fill: var(--gold-1); }
.chart .col.on .hit { fill: rgba(255, 255, 255, .04); }
.chart details { margin-top: 8px; }
.chart summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
.chart details .specs { margin-top: 8px; max-width: 320px; }
.tip { position: fixed; z-index: 100; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: #1b1b23; border: 1px solid var(--border-2); color: var(--text); font-size: .82rem; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }

.tg-steps { margin: 0 0 18px; padding: 16px 36px 16px 18px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); color: var(--text-2); font-size: .92rem; }
.tg-steps li { margin-bottom: 6px; }
.tg-steps li::marker { color: var(--gold-2); font-weight: 700; }
.bk-problems { margin: 6px 0 10px; }
.bk-problems p { margin: 0 0 6px; }
.adm-head form { margin: 0; }
.code-box { font: 500 .8rem/1.6 ui-monospace, Consolas, monospace; }
.ad-help { margin: 4px 0 18px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: .9rem; color: var(--text-2); }
.ad-help ul { margin: 8px 0 0; padding-right: 20px; }
.ad-help li { margin-bottom: 4px; }
.fmt-help { margin-bottom: 12px; }
.fmt-help summary { cursor: pointer; color: var(--gold-1); font-size: .9rem; }
.fmt-help .specs { margin-top: 10px; max-width: 420px; }
.fmt-help th { font-family: ui-monospace, Consolas, monospace; color: var(--text) !important; }
.body-editor { font-size: 1rem; line-height: 1.9; min-height: 420px; }
.img-prev > .i { position: relative; z-index: 1; width: 48px; height: 48px; color: var(--gold-2); }
.img-prev img { object-fit: contain; max-height: 90%; }
.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { width: 100%; max-width: 380px; padding: 36px 28px; border-radius: 28px; text-align: center; background: var(--bg-2); border: 1px solid var(--gold-line); box-shadow: 0 0 80px -30px rgba(229, 191, 102, .4); }
.login-card h1 { font-size: 1.6rem; margin-bottom: 2px; }
.login-card label { text-align: right; margin-top: 20px; }
.login-card .form-error { margin-top: 14px; }
.code-input { text-align: center; font: 700 1.8rem var(--font-head) !important; letter-spacing: .4em; }

/* ---------- حركة الظهور ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s !important; } .reveal.d2 { transition-delay: .16s !important; } .reveal.d3 { transition-delay: .24s !important; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
