/* ================= TARGET COINS STORE ================= */
:root {
  --bg: #07070c;
  --bg2: #0d0d16;
  --panel: #12121d;
  --panel2: #181826;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f8;
  --muted: #9a9ab0;
  --brand: #ff5a1f;
  --brand2: #ffb21f;
  --hot: #ff2e63;
  --ok: #2bd98f;
  --info: #49b6ff;
  --grad: linear-gradient(135deg, #ff5a1f 0%, #ff8a1f 50%, #ffb21f 100%);
  --glow: 0 0 0 1px rgba(255, 90, 31, 0.35), 0 10px 40px -10px rgba(255, 90, 31, 0.55);
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head: 72px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
.i { width: 20px; height: 20px; flex: none; }
.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.en { font-family: 'Orbitron', 'Cairo', sans-serif; letter-spacing: 0.04em; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a3c; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- خلفية حية ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.9; }
body::before {
  content: '';
  position: fixed; inset: -20%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 85% 0%, rgba(255, 90, 31, 0.16), transparent 70%),
    radial-gradient(35% 30% at 5% 30%, rgba(120, 60, 255, 0.10), transparent 70%),
    radial-gradient(40% 40% at 60% 100%, rgba(255, 178, 31, 0.08), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
main, header, footer { position: relative; z-index: 1; }
.cursor-glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%;
  left: 0; top: 0; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.10), transparent 60%);
  transition: opacity 0.4s; opacity: 0;
}
@media (hover: hover) { body:hover .cursor-glow { opacity: 1; } }

/* ---------- شاشة التحميل ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-target { position: relative; width: 110px; height: 110px; }
.pl-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.pl-ring.r1 { border-top-color: var(--brand); border-bottom-color: var(--brand); animation: spin 1.2s linear infinite; }
.pl-ring.r2 { inset: 18px; border-left-color: var(--brand2); border-right-color: var(--brand2); animation: spin 0.9s linear infinite reverse; }
.pl-ring.r3 { inset: 36px; border-color: rgba(255, 90, 31, 0.5); animation: pulse 1.2s ease-in-out infinite; }
.pl-dot { position: absolute; inset: 49px; border-radius: 50%; background: var(--brand2); box-shadow: 0 0 20px var(--brand2); }
.pl-brand { font-family: 'Orbitron'; font-weight: 900; letter-spacing: 0.3em; font-size: 14px; color: var(--muted); direction: ltr; }
.pl-bar { width: 180px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1s var(--ease) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(0.85); opacity: 0.5; } }
@keyframes load { from { transform: translateX(250%); } to { transform: translateX(-150%); } }

/* ---------- الهيدر ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: rgba(7, 7, 12, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.topbar.scrolled { background: rgba(7, 7, 12, 0.85); border-color: var(--line); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; direction: ltr; flex: none; }
.brand-mark { position: relative; width: 38px; height: 38px; }
.brand-mark i { position: absolute; border-radius: 50%; border: 2.5px solid var(--brand); inset: 0; }
.brand-mark i + i { inset: 9px; border-width: 2px; }
.brand-mark b { position: absolute; inset: 15.5px; border-radius: 50%; background: var(--brand2); box-shadow: 0 0 10px var(--brand2); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; left: 50%; width: 2.5px; height: 8px; background: var(--brand); translate: -50% 0; border-radius: 2px; }
.brand-mark::before { top: -4px; } .brand-mark::after { bottom: -4px; }
.brand:hover .brand-mark i:first-child { animation: spin 1.4s linear infinite; border-color: var(--brand) transparent var(--brand) transparent; }
.brand-text { font-family: 'Orbitron'; font-weight: 900; font-size: 17px; line-height: 1; letter-spacing: 0.04em; display: grid; grid-template-columns: auto auto; column-gap: 5px; }
.brand-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { grid-column: 1 / -1; font-size: 9px; letter-spacing: 0.55em; color: var(--muted); margin-top: 4px; }

.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav > a, .nav-drop-btn {
  padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #cfcfe0;
  display: inline-flex; align-items: center; gap: 4px; position: relative; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.mainnav > a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.mainnav > a:hover, .mainnav > a.active, .nav-drop-btn:hover { color: #fff; }
.mainnav > a:hover::after, .mainnav > a.active::after { transform: scaleX(1); }
.mainnav > a.hot { color: var(--brand2); }
.nav-drop { position: relative; }
.nav-drop-btn .i { width: 16px; height: 16px; transition: transform 0.3s; }
.nav-drop:hover .nav-drop-btn .i, .nav-drop.open .nav-drop-btn .i { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
  width: 460px; padding: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  background: rgba(18, 18, 29, 0.96); border: 1px solid var(--line2); border-radius: var(--r);
  box-shadow: 0 30px 60px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98); transform-origin: top;
  transition: 0.25s var(--ease);
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-weight: 700; transition: background 0.2s; }
.nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.nav-drop-menu a .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.nav-drop-menu a small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }

.searchbox { position: relative; flex: 1; max-width: 420px; margin-inline-start: auto; }
.searchbox > .i { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.searchbox input {
  width: 100%; height: 44px; padding-inline: 44px 40px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 12px; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.searchbox input:focus { border-color: rgba(255, 90, 31, 0.6); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox kbd { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%; font: 700 11px 'Cairo'; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); }
.searchbox input:not(:placeholder-shown) ~ kbd, .searchbox input:focus ~ kbd { display: none; }
.suggest {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 60;
  background: rgba(15, 15, 24, 0.98); border: 1px solid var(--line2); border-radius: var(--r);
  box-shadow: 0 30px 60px -10px #000; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s var(--ease);
  max-height: 70vh; overflow-y: auto;
}
.suggest.open { opacity: 1; visibility: visible; transform: none; }
.sug-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; transition: background 0.15s; }
.sug-item:hover, .sug-item.active { background: rgba(255, 90, 31, 0.1); }
.sug-item img { width: 78px; height: 45px; object-fit: cover; border-radius: 8px; flex: none; background: var(--panel2); }
.sug-item .t { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.35; direction: ltr; text-align: right; }
.sug-item .t small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.sug-item .p { font-weight: 900; color: var(--brand2); white-space: nowrap; }
.sug-foot { display: block; padding: 10px 12px; text-align: center; font-weight: 800; color: var(--brand2); border-top: 1px solid var(--line); }
.sug-empty { padding: 18px; text-align: center; color: var(--muted); }

.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: rgba(255, 90, 31, 0.12); border-color: rgba(255, 90, 31, 0.4); }
.icon-btn:active { transform: scale(0.94); }
.cart-count {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--grad); color: #1a0a00; font-weight: 900; font-size: 11px;
  display: grid; place-items: center; box-shadow: 0 0 12px rgba(255, 90, 31, 0.7);
  transform: scale(0); transition: transform 0.3s var(--ease);
}
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } }
.account-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.account-btn.in { border-color: rgba(255, 90, 31, 0.6); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15); }
.account-btn .ini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1d0b00; font-weight: 900; }
.auth { max-width: 460px; margin: 50px auto; padding: 34px 28px; border-radius: 24px; text-align: center; background: rgba(18, 18, 29, 0.9); border: 1px solid var(--line2); box-shadow: 0 40px 80px -30px #000; position: relative; overflow: hidden; }
.auth::before { content: ''; position: absolute; inset: -40% -40% auto; height: 220px; background: radial-gradient(closest-side, rgba(255, 90, 31, 0.35), transparent); pointer-events: none; }
.auth .brand-mark { width: 64px; height: 64px; margin: 0 auto 16px; }
.auth .brand-mark i + i { inset: 15px; }
.auth .brand-mark b { inset: 26px; }
.auth h1 { margin: 0 0 8px; font-size: 26px; }
.auth p { color: var(--muted); margin: 0 0 22px; }
.gbtn { display: flex; justify-content: center; min-height: 48px; }
.auth .perks { display: grid; gap: 8px; margin-top: 24px; text-align: start; }
.auth .perks div { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; color: #cfcfe0; }
.auth .perks .i { color: var(--ok); }
.profile { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); margin: 24px 0; flex-wrap: wrap; }
.profile img, .profile .ini { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.profile .ini { display: grid; place-items: center; background: var(--grad); color: #1d0b00; font-size: 26px; font-weight: 900; }
.profile .who { flex: 1; min-width: 180px; }
.profile .who b { font-size: 20px; display: block; }
.burger { display: none; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: 0.3s; }
.burger { gap: 4px; align-content: center; }

/* ---------- أزرار ---------- */
.btn {
  --bh: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding-inline: 22px; border-radius: 12px; font-weight: 800; font-size: 15px;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--grad); color: #1d0b00; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, 0.8); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(-120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 90, 31, 0.95); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: rgba(255, 90, 31, 0.5); background: rgba(255, 90, 31, 0.08); }
.btn-sm { --bh: 38px; padding-inline: 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: scale(0); animation: ripple 0.6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- انتقالات الصفحة والظهور ---------- */
#app { min-height: calc(100vh - var(--head)); outline: none; }
.page { animation: pageIn 0.55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- الهيرو ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 30px;
  background: rgba(255, 90, 31, 0.1); border: 1px solid rgba(255, 90, 31, 0.3); font-weight: 800; font-size: 13px; color: #ffd2bf;
}
.hero-tag b { background: var(--grad); color: #1d0b00; border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.hero-tag .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { margin: 18px 0 14px; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; font-weight: 900; }
.hero h1 .en { display: block; direction: ltr; text-align: right; font-size: 0.82em; letter-spacing: 0.02em; }
.shine {
  background: linear-gradient(100deg, #fff 0%, #fff 35%, #ffb21f 45%, #ff5a1f 55%, #fff 65%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero p.lead { font-size: 18px; color: #c9c9da; max-width: 560px; margin: 0 0 26px; }
.typed { color: var(--brand2); font-weight: 900; border-inline-end: 3px solid var(--brand2); padding-inline-end: 4px; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-search { position: relative; display: flex; max-width: 560px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line2); box-shadow: 0 20px 60px -30px rgba(255, 90, 31, 0.6); }
.hero-search input { flex: 1; min-width: 0; height: 50px; padding-inline: 16px; background: none; border: 0; outline: none; font-size: 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.stat b { display: block; font-family: 'Orbitron'; font-size: 28px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; text-align: right; }
.stat span { color: var(--muted); font-weight: 700; font-size: 13px; }

/* كاروسيل ثلاثي الأبعاد */
.spot { position: relative; height: 420px; perspective: 1400px; }
.spot-card {
  position: absolute; inset: 0; margin: auto; width: 86%; height: 330px; border-radius: 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line2);
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease), filter 0.9s var(--ease);
  box-shadow: 0 40px 80px -30px #000;
  cursor: pointer;
}
.spot-card img { width: 100%; height: 100%; object-fit: cover; }
.spot-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 7, 12, 0.95) 0%, rgba(7, 7, 12, 0.2) 45%, transparent 70%); }
.spot-info { position: absolute; z-index: 2; inset-inline: 20px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.spot-info h3 { margin: 0; font-size: 20px; line-height: 1.2; direction: ltr; text-align: right; }
.spot-info .muted { font-size: 13px; }
.spot-price { text-align: center; flex: none; }
.spot-price del { color: var(--muted); font-size: 13px; display: block; }
.spot-price b { font-size: 24px; font-weight: 900; color: var(--brand2); }
.spot-card .spot-info, .spot-card .spot-badge { transition: opacity 0.5s; }
.spot-card:not(.front) .spot-info, .spot-card:not(.front) .spot-badge { opacity: 0; }
.spot-badge { position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px; }
.spot-dots { position: absolute; bottom: -4px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.spot-dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line2); transition: 0.4s var(--ease); }
.spot-dots button.on { width: 28px; background: var(--grad); }
.spot-ring { position: absolute; width: 520px; height: 520px; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(255, 90, 31, 0.25); animation: spin 60s linear infinite; pointer-events: none; }
.spot-ring::before { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); top: -5px; left: 50%; box-shadow: 0 0 20px var(--brand); }
.spot-ring.two { width: 400px; height: 400px; border-style: solid; border-color: rgba(255, 178, 31, 0.08); animation-duration: 40s; animation-direction: reverse; }

/* شريط متحرك */
.marquee { position: relative; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-family: 'Orbitron'; font-weight: 800; font-size: 16px; color: #6e6e86; white-space: nowrap; direction: ltr; transition: color 0.2s; }
.marquee-track span:hover { color: var(--brand2); }
.marquee-track span::before { content: '◆'; color: var(--brand); font-size: 10px; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- أقسام ---------- */
.section { padding: 46px 0 10px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; display: flex; align-items: center; gap: 12px; }
.sec-head h2 .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 90, 31, 0.12); color: var(--brand); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.3); }
.sec-head h2 .ic .i { width: 22px; height: 22px; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.sec-actions { display: flex; gap: 8px; align-items: center; }
.sec-link { font-weight: 800; color: var(--brand2); display: inline-flex; align-items: center; gap: 4px; }
.sec-link:hover { text-decoration: underline; }

/* تصنيفات */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat {
  --c: var(--brand);
  position: relative; padding: 18px 14px; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: var(--panel); border: 1px solid var(--line);
  display: grid; gap: 10px; justify-items: start;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%); opacity: 0.5; transition: opacity 0.35s; }
.cat:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--c) 80%, transparent); }
.cat:hover::before { opacity: 1; }
.cat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); transition: transform 0.5s var(--ease); }
.cat:hover .ico { transform: rotate(-10deg) scale(1.1); }
.cat .ico .i { width: 24px; height: 24px; }
.cat b { font-size: 16px; font-weight: 900; }
.cat small { color: var(--muted); font-weight: 700; font-size: 12px; }

/* صفوف أفقية */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail-track { grid-auto-columns: calc((100% - 64px) / 5); } }
.arrow { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: 0.2s; }
.arrow:hover { background: var(--brand); border-color: var(--brand); color: #1d0b00; }

/* ---------- كرت المنتج ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0));
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.card:hover { --ty: -6px; border-color: rgba(255, 90, 31, 0.45); box-shadow: 0 24px 50px -24px rgba(255, 90, 31, 0.6); }
.card.tilting { transition: transform 0.08s linear, border-color 0.3s, box-shadow 0.3s; }
.card-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.14), transparent 45%); opacity: 0; transition: opacity 0.3s; }
.card:hover .card-glare { opacity: 1; }
.card-media { position: relative; aspect-ratio: 380 / 218; overflow: hidden; background: linear-gradient(110deg, var(--panel2) 30%, #222234 50%, var(--panel2) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img { opacity: 0; transition: opacity 0.5s, transform 0.8s var(--ease); }
.card-media img.loaded { opacity: 1; }
.card-media.ready { animation: none; }
.card:hover .card-media img { transform: scale(1.07); }
.card-media video { opacity: 0; transition: opacity 0.4s; }
.card-media video.playing { opacity: 1; }
.card-media::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, rgba(18, 18, 29, 0.85), transparent); pointer-events: none; }
.badge-off { position: absolute; z-index: 2; top: 10px; inset-inline-start: 10px; padding: 3px 9px; border-radius: 8px; background: var(--hot); color: #fff; font-weight: 900; font-size: 13px; direction: ltr; box-shadow: 0 6px 16px -6px var(--hot); }
.badge-store { position: absolute; z-index: 2; bottom: 8px; inset-inline-end: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); font-weight: 800; font-size: 11px; direction: ltr; border: 1px solid var(--line2); }
.badge-flag { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; padding: 3px 9px; border-radius: 8px; font-weight: 900; font-size: 11px; background: var(--info); color: #001323; }
.badge-flag.pre { background: #a46bff; color: #fff; }
.badge-flag.out { background: #2a2a3a; color: #bbb; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.35; direction: ltr; text-align: right; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .i { width: 13px; height: 13px; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.1; direction: ltr; align-items: flex-end; }
.price del { color: var(--muted); font-size: 12.5px; }
.price b { font-size: 21px; font-weight: 900; }
.price.out b { color: var(--muted); font-size: 15px; }
.add-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 90, 31, 0.12); color: var(--brand); border: 1px solid rgba(255, 90, 31, 0.35); transition: 0.25s var(--ease); }
.add-btn:hover { background: var(--grad); color: #1d0b00; transform: rotate(-8deg) scale(1.08); }
.add-btn.added { background: var(--ok); color: #002a18; border-color: var(--ok); }
.add-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; background: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

.skeleton { border-radius: var(--r); background: linear-gradient(110deg, var(--panel) 30%, #1c1c2c 50%, var(--panel) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; aspect-ratio: 230 / 250; border: 1px solid var(--line); }

/* عملة طائرة للسلة */
.fly-coin { position: fixed; z-index: 999; width: 26px; height: 26px; border-radius: 50%; pointer-events: none; background: var(--grad); box-shadow: 0 0 20px var(--brand2); display: grid; place-items: center; color: #1d0b00; font-weight: 900; font-size: 13px; }

/* ---------- مميزات وخطوات ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: 0.4s var(--ease); }
.feature::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 60%, var(--brand) 80%, var(--brand2) 90%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; animation: rot 4s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rot { to { --ang: 360deg; } }
.feature:hover { transform: translateY(-6px); }
.feature:hover::before { opacity: 1; }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #1d0b00; margin-bottom: 14px; box-shadow: 0 10px 30px -10px var(--brand); }
.feature .ico .i { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; position: relative; }
.steps::before { content: ''; position: absolute; top: 34px; inset-inline: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), var(--brand2), transparent); opacity: 0.4; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step .num { position: relative; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); border: 2px solid rgba(255, 90, 31, 0.5); font-family: 'Orbitron'; font-weight: 900; font-size: 22px; color: var(--brand2); box-shadow: 0 0 0 8px var(--bg), 0 0 30px -5px var(--brand); }
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta { margin: 60px auto 20px; padding: 46px 30px; border-radius: 24px; text-align: center; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, rgba(255, 90, 31, 0.18), rgba(255, 178, 31, 0.06)); border: 1px solid rgba(255, 90, 31, 0.35); }
.cta::before { content: ''; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(255, 90, 31, 0.25), transparent 30%); animation: spin 8s linear infinite; }
.cta::after { content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: 23px; background: rgba(10, 10, 16, 0.88); }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); }
.cta p { margin: 0 auto 22px; color: #c9c9da; max-width: 560px; }

/* ---------- صفحة التصنيف ---------- */
.cat-hero { padding: 40px 0 24px; position: relative; }
.cat-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); font-weight: 900; display: flex; align-items: center; gap: 14px; }
.cat-hero h1 .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 40px -10px var(--c); }
.cat-hero h1 .ico .i { width: 28px; height: 28px; }
.cat-hero p { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand2); }
.toolbar { position: sticky; top: calc(var(--head) + 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; margin-bottom: 20px; border-radius: var(--r); background: rgba(13, 13, 22, 0.88); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 30px; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: 0.2s; }
.chip:hover { border-color: rgba(255, 90, 31, 0.5); }
.chip.on { background: var(--grad); color: #1d0b00; border-color: transparent; }
.select { height: 38px; padding-inline: 12px 30px; border-radius: 10px; background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239a9ab0' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat left 8px center / 16px; border: 1px solid var(--line); appearance: none; outline: none; font-weight: 700; }
.select option { background: var(--panel); }
.toolbar .grow { flex: 1; }
.toolbar .count { color: var(--muted); font-weight: 700; font-size: 13px; }
.filter-input { height: 38px; padding-inline: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); outline: none; min-width: 180px; }
.filter-input:focus { border-color: rgba(255, 90, 31, 0.6); }
.range { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.range input[type=range] { accent-color: var(--brand); width: 120px; }
.load-more { display: flex; justify-content: center; padding: 30px 0; }
.sentinel { height: 1px; }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 60px; margin-bottom: 10px; }

/* ---------- صفحة المنتج ---------- */
.pd-bg { position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; overflow: hidden; }
.pd-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.3); opacity: 0.35; transform: scale(1.15); }
.pd-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 7, 12, 0.3), var(--bg) 95%); }
.pd { position: relative; padding: 28px 0 20px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 40px 80px -40px #000; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; animation: fadeIn 0.5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 116px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: 0.6; transition: 0.25s; position: relative; background: var(--panel2); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on, .thumbs button:hover { opacity: 1; border-color: var(--brand); }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.4); font-size: 20px; }
.buybox { position: sticky; top: calc(var(--head) + 16px); padding: 22px; border-radius: 20px; background: rgba(18, 18, 29, 0.85); backdrop-filter: blur(16px); border: 1px solid var(--line2); box-shadow: 0 30px 60px -30px #000; }
.buybox h1 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; direction: ltr; text-align: right; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.tag .i { width: 14px; height: 14px; }
.tag.ok { color: var(--ok); border-color: rgba(43, 217, 143, 0.35); background: rgba(43, 217, 143, 0.08); }
.tag.bad { color: #ff7b8f; border-color: rgba(255, 46, 99, 0.35); background: rgba(255, 46, 99, 0.08); }
.pid-field { margin: 6px 0 14px; }
.pid-field input { height: 50px; font-size: 18px; font-weight: 800; letter-spacing: 0.05em; text-align: center; border-color: rgba(255, 178, 31, 0.5); }
.pid-field small { font-size: 12px; }
.ci .pid { font-size: 12px; font-weight: 800; color: var(--brand2); margin-top: 2px; }
.variants { margin: 4px 0 14px; animation: fadeIn 0.4s var(--ease); }
.v-title { font-weight: 900; font-size: 14px; margin-bottom: 8px; }
.v-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.v-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1.5px solid var(--line2); transition: 0.2s var(--ease); }
.v-item:hover { border-color: rgba(255, 90, 31, 0.6); transform: translateY(-2px); }
.v-item.on { border-color: var(--brand); background: rgba(255, 90, 31, 0.1); box-shadow: var(--glow); }
.v-item.out { opacity: 0.55; }
.v-name { font-weight: 800; font-size: 13px; text-align: right; }
.v-price { font-weight: 900; color: var(--brand2); font-size: 14px; text-align: right; }
.big-price { display: flex; align-items: flex-end; gap: 12px; margin: 14px 0; direction: ltr; justify-content: flex-end; flex-wrap: wrap; }
.big-price b { font-size: 42px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-price del { color: var(--muted); font-size: 18px; }
.big-price .badge-off { position: static; font-size: 15px; }
.qty { display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--line2); overflow: hidden; height: 48px; }
.qty button { width: 42px; height: 100%; font-size: 20px; font-weight: 900; transition: background 0.2s; }
.qty button:hover { background: rgba(255, 90, 31, 0.15); }
.qty span { min-width: 36px; text-align: center; font-weight: 900; }
.buy-row { display: flex; gap: 10px; margin-top: 8px; }
.buy-row .btn { flex: 1; }
.assure { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.assure div { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 13.5px; color: #cfcfe0; }
.assure .i { color: var(--brand2); }
.score { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ring { --v: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--v) * 1%), rgba(255, 255, 255, 0.08) 0); position: relative; font-weight: 900; transition: --v 1.4s var(--ease); }
@property --v { syntax: '<number>'; initial-value: 0; inherits: false; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel); }
.ring span { position: relative; }
.about { margin-top: 28px; padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.about h2 { margin: 0 0 12px; font-size: 20px; }
.about-text { direction: ltr; text-align: left; color: #cfcfe0; white-space: pre-line; line-height: 1.75; max-height: 260px; overflow: hidden; position: relative; transition: max-height 0.6s var(--ease); }
.about-text.open { max-height: 3000px; }
.about-text:not(.open)::after { content: ''; position: absolute; inset: auto 0 0; height: 80px; background: linear-gradient(transparent, var(--panel)); }
.activation { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.activation div { padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.activation b { display: block; color: var(--brand2); font-family: 'Orbitron'; font-size: 20px; }

/* ---------- السلة ---------- */
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: 0.35s; }
.drawer-mask.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; z-index: 91; top: 0; bottom: 0; left: 0; width: min(440px, 100%); background: var(--bg2); border-inline-start: 1px solid var(--line2); display: flex; flex-direction: column; transform: translateX(-105%); transition: transform 0.5s var(--ease); box-shadow: 30px 0 60px -20px #000; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: var(--panel); }
.ci { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: ciIn 0.4s var(--ease) both; }
@keyframes ciIn { from { opacity: 0; transform: translateX(-20px); } }
.ci.out { animation: ciOut 0.35s var(--ease) forwards; }
@keyframes ciOut { to { opacity: 0; transform: translateX(-40px); height: 0; padding: 0; } }
.ci img { width: 92px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.ci .t { font-weight: 800; font-size: 13.5px; line-height: 1.35; direction: ltr; text-align: right; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci .ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ci .mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.ci .mini-qty button { width: 26px; height: 26px; font-weight: 900; }
.ci .mini-qty button:hover { background: rgba(255, 90, 31, 0.2); }
.ci .mini-qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 13px; }
.ci .rm { color: var(--muted); padding: 4px; border-radius: 6px; }
.ci .rm:hover { color: var(--hot); }
.ci .rm .i { width: 16px; height: 16px; }
.ci .p { font-weight: 900; color: var(--brand2); direction: ltr; }
.sum-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.sum-row.total { font-size: 20px; font-weight: 900; margin: 10px 0 14px; }
.sum-row .v { direction: ltr; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty .big { font-size: 56px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- الدفع والطلبات ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: start; padding: 30px 0; }
.panel { padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.panel h2 { margin: 0 0 18px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #1d0b00; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 13px; color: #cfcfe0; }
.field input, .field textarea { height: 48px; padding-inline: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); outline: none; transition: 0.2s; }
.field textarea { height: 90px; padding-block: 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12); }
.field input.err { border-color: var(--hot); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(6px); } 75% { transform: translateX(-6px); } }
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.method { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1.5px solid var(--line2); cursor: pointer; transition: 0.25s var(--ease); }
.method input { position: absolute; opacity: 0; }
.method .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.method b { font-weight: 900; }
.method:hover { border-color: rgba(255, 90, 31, 0.5); }
.method:has(input:checked) { border-color: var(--brand); background: rgba(255, 90, 31, 0.08); box-shadow: var(--glow); }
.method:has(input:checked) .ico { background: var(--grad); color: #1d0b00; }
.method-note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(73, 182, 255, 0.08); border: 1px solid rgba(73, 182, 255, 0.25); color: #bfe3ff; font-weight: 700; font-size: 13.5px; }
.sum-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum-item img { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.sum-item .t { flex: 1; font-weight: 700; font-size: 13px; direction: ltr; text-align: right; line-height: 1.35; }
.sum-item .p { font-weight: 900; direction: ltr; white-space: nowrap; }

.success { text-align: center; padding: 50px 0 20px; }
.check-anim { width: 110px; height: 110px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(43, 217, 143, 0.12); border: 2px solid var(--ok); color: var(--ok); animation: popIn 0.7s var(--ease) both; box-shadow: 0 0 60px -10px var(--ok); }
.check-anim .i { width: 56px; height: 56px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.4s var(--ease) forwards; }
.check-anim .i path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.6s 0.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.1); } }
.order-id { display: inline-flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 18px; border-radius: 12px; background: var(--panel); border: 1px dashed var(--brand); font-family: 'Orbitron'; font-size: 22px; font-weight: 900; color: var(--brand2); direction: ltr; }
.order-id button { color: var(--muted); }
.order-id button:hover { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-weight: 900; font-size: 12.5px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pending, .st-local { color: #ffcf5a; background: rgba(255, 207, 90, 0.1); }
.st-paid { color: var(--info); background: rgba(73, 182, 255, 0.1); }
.st-delivered { color: var(--ok); background: rgba(43, 217, 143, 0.1); }
.st-cancelled { color: #ff7b8f; background: rgba(255, 46, 99, 0.1); }
.timeline { display: flex; justify-content: center; gap: 0; margin: 26px auto; max-width: 620px; }
.tl { flex: 1; text-align: center; position: relative; font-weight: 800; font-size: 13px; color: var(--muted); }
.tl::before { content: ''; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line2); z-index: -1; }
.tl:last-child::before { display: none; }
.tl i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--line2); font-style: normal; }
.tl.done { color: #fff; }
.tl.done i { background: var(--grad); border-color: transparent; color: #1d0b00; }
.tl.done:has(+ .tl.done)::before { background: var(--grad); }
.codes { margin: 16px auto; max-width: 620px; padding: 16px; border-radius: 14px; background: rgba(43, 217, 143, 0.07); border: 1px solid rgba(43, 217, 143, 0.35); text-align: start; }
.codes pre { margin: 8px 0 0; font-family: ui-monospace, Consolas, monospace; font-size: 15px; white-space: pre-wrap; word-break: break-all; direction: ltr; text-align: left; color: #c6ffe5; }
.orders-list { display: grid; gap: 12px; padding: 20px 0; }
.order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: 0.25s var(--ease); }
.order-row:hover { border-color: rgba(255, 90, 31, 0.4); transform: translateX(-4px); }
.order-row .oid { font-family: 'Orbitron'; font-weight: 900; color: var(--brand2); direction: ltr; text-align: right; }

/* ---------- المساعدة ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(255, 90, 31, 0.4); }
.faq summary { list-style: none; padding: 16px 20px; font-weight: 800; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--brand); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: #c9c9da; }

/* ---------- الفوتر ---------- */
.footer { margin-top: 70px; padding: 50px 0 20px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, rgba(255, 90, 31, 0.04)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { margin: 0 0 14px; font-size: 15px; }
.footer p { max-width: 340px; }
.flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flinks a { color: var(--muted); font-weight: 600; transition: color 0.2s, padding 0.2s; }
.flinks a:hover { color: var(--brand2); padding-inline-start: 4px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: 0.3s var(--ease); }
.socials a:hover { background: var(--grad); color: #1d0b00; transform: translateY(-4px) rotate(-6deg); }
.paychips { display: flex; flex-wrap: wrap; gap: 6px; }
.paychips span { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-weight: 800; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 13px; }

/* ---------- توست ولايت بوكس ---------- */
.toasts { position: fixed; z-index: 200; bottom: 20px; right: 20px; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-width: 260px; max-width: 360px; border-radius: 14px; background: rgba(24, 24, 38, 0.96); border: 1px solid var(--line2); box-shadow: 0 20px 40px -10px #000; font-weight: 700; animation: toastIn 0.5s var(--ease) both; }
.toast.bye { animation: toastOut 0.4s var(--ease) forwards; }
.toast img { width: 56px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.toast .ok { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #002a18; display: grid; place-items: center; flex: none; }
.toast .ok .i { width: 16px; height: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.92); display: grid; place-items: center; padding: 30px; opacity: 0; visibility: hidden; transition: 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 90vh; border-radius: 14px; transform: scale(0.94); transition: transform 0.4s var(--ease); }
.lightbox.open img { transform: none; }
.lb-close { position: absolute; top: 20px; left: 20px; }

/* ---------- موبايل ---------- */
@media (max-width: 1180px) {
  .mainnav { display: none; position: fixed; top: var(--head); inset-inline: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: rgba(7, 7, 12, 0.98); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--head)); overflow-y: auto; }
  .mainnav.open { display: flex; animation: pageIn 0.35s var(--ease); }
  .mainnav > a, .nav-drop-btn { padding: 12px; font-size: 16px; }
  .nav-drop-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .nav-drop.open .nav-drop-menu { display: grid; }
  .burger { display: grid; }
  .burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 980px) {
  .hero-grid, .pd-grid, .checkout { grid-template-columns: 1fr; }
  .spot { height: 340px; }
  .spot-card { height: 260px; width: 92%; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .buybox { position: static; }
}
@media (max-width: 640px) {
  :root { --head: 64px; }
  .topbar-in { gap: 10px; }
  .brand-text { font-size: 14px; }
  .brand-text small { display: none; }
  .searchbox { position: fixed; top: var(--head); inset-inline: 0; max-width: none; padding: 8px 16px; background: rgba(7, 7, 12, 0.96); border-bottom: 1px solid var(--line); display: none; }
  .searchbox.open { display: block; }
  .searchbox > .i { inset-inline-start: 30px; }
  .searchbox kbd { display: none; }
  .search-toggle { display: grid !important; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 13px; }
  .price b { font-size: 17px; }
  .add-btn { width: 36px; height: 36px; }
  .rail-track { grid-auto-columns: 72%; }
  .features, .steps, .activation, .methods, .fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .stat b { font-size: 22px; }
  .order-row { grid-template-columns: 1fr auto; }
  .toolbar { position: static; }
  .toasts { left: 16px; right: 16px; }
  .toast { max-width: none; }
  .hero { padding-top: 30px; }
  .buy-row { flex-wrap: wrap; }
}
@media (min-width: 641px) { .search-toggle { display: none !important; } }

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