/* ═══════════════════════════════════════════════
   Vioa — Design System
   Minimal dark · near-black · violet accent
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: 'Cairo';
  src: url('/fonts/Cairo.ttf') format('truetype');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08080f;
  --bg-2: #0a0a12;
  --bg-3: #101018;
  --card: #050508;
  --card-2: #0b0b14;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: #9a9aa5;
  --muted-2: #6d6d78;
  --violet: #5b3df5;
  --violet-2: #a78bfa;
  --violet-3: #c4b5fd;
  --cyan: #7dd3fc;
  --pink: #f0abfc;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(167, 139, 250, 0.18), 0 18px 50px rgba(91, 61, 245, 0.22);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 68px;

  /* مقياس موحّد للأحجام */
  --fs-2xs: 12px;
  --fs-xs: 12.5px;
  --fs-sm: 13.5px;
  --fs-base: 15.5px;
  --fs-md: 16.5px;
  --fs-lg: 18px;
  --pad-card: 26px;
  --section-y: clamp(72px, 8vw, 104px);
  --gap-card: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(91, 61, 245, 0.45); color: #fff; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.container.wide { width: min(1320px, calc(100% - 40px)); }

/* ───────────── الخلفية ───────────── */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg);
  pointer-events: none;
}
.bg-fx::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 48% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 48% at 50% 0%, #000 0%, transparent 78%);
}
.bg-fx::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 30% at 50% -4%, rgba(91, 61, 245, 0.20), transparent 70%),
    radial-gradient(ellipse 34% 22% at 84% 4%, rgba(124, 92, 255, 0.08), transparent 70%);
}
.aurora { display: none; }

/* ───────────── الهيدر ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8, 8, 15, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 15, 0.86);
}
.nav { display: flex; align-items: center; gap: 24px; width: 100%; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #7257ff, #4b2fe0 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 18px rgba(91, 61, 245, 0.3);
  position: relative; overflow: hidden; flex: none;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo small { display: block; font-size: 10px; font-weight: 500; color: var(--muted-2); letter-spacing: 0.26em; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: 16px; }
.nav-links a {
  padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-switch {
  display: flex; padding: 3px; gap: 2px; border-radius: 9px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); padding: 4px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; transition: 0.2s;
}
.lang-switch button.on { background: rgba(91, 61, 245, 0.25); color: #ddd6fe; }
.burger { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-3); }
.burger span { display: block; width: 16px; height: 1.8px; margin: 3.4px auto; background: var(--text); border-radius: 2px; transition: 0.25s; }
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 auto; z-index: 55;
  background: rgba(8, 8, 15, 0.98); border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px; backdrop-filter: blur(20px);
}
.mobile-menu.open { display: block; animation: slideDown 0.25s ease; }
.mobile-menu a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--muted); font-weight: 500; font-size: 15px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

/* ───────────── الأزرار ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 19px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--violet); color: #fff;
  border-color: rgba(167, 139, 250, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 22px rgba(139, 92, 246, 0.32), 0 8px 24px rgba(91, 61, 245, 0.24);
}
.btn-primary:hover {
  background: #6a4cf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 26px rgba(139, 92, 246, 0.4), 0 10px 30px rgba(91, 61, 245, 0.34);
}
.btn-ghost {
  background: #101018; border-color: rgba(255, 255, 255, 0.12); color: var(--text);
}
.btn-ghost:hover { background: #16161f; border-color: rgba(255, 255, 255, 0.2); }
.btn-cyan {
  background: var(--violet); color: #fff; border-color: rgba(167, 139, 250, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 22px rgba(139, 92, 246, 0.32), 0 8px 24px rgba(91, 61, 245, 0.24);
}
.btn-cyan:hover { background: #6a4cf7; }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ───────────── مشترك ───────────── */
section { position: relative; padding: var(--section-y) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 500;
  color: #c7bdf7; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.09);
  letter-spacing: 0.01em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: var(--fs-lg); font-weight: 600; }
.grad, .grad-cyan, .accent {
  background: linear-gradient(100deg, #ffffff 0%, #e4dcff 38%, #b9a6ff 72%, #8b6cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 17.5px; line-height: 1.85; max-width: 640px; }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: var(--fs-md); margin: 16px auto 0; max-width: 620px; line-height: 1.8; }
.muted { color: var(--muted); }
.tiny { font-size: var(--fs-xs); color: var(--muted-2); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.16); background: var(--card-2); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.icon-tile {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; background: rgba(91, 61, 245, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.24); flex: none;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 500; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--muted);
}
.pill.pro { color: #ddd6fe; background: rgba(91, 61, 245, 0.16); border-color: rgba(139, 92, 246, 0.32); }
.pill.green { color: #a7f3d0; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.28); }

/* شارة باقة السيرفر + حساب ديسكورد في الهيدر */
.plan-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted);
  white-space: nowrap;
}
.plan-chip .pc-dot { width: 7px; height: 7px; border-radius: 50%; background: #6b7280; flex: none; }
.plan-chip .pc-plan { font-weight: 500; letter-spacing: 0; color: var(--muted-2); }
.plan-chip.free { color: #c7c7d2; }
.plan-chip.pro {
  color: #ede9fe; border-color: rgba(139, 92, 246, 0.46);
  background: linear-gradient(135deg, rgba(91, 61, 245, 0.34), rgba(34, 211, 238, 0.1));
  box-shadow: 0 0 18px rgba(91, 61, 245, 0.18);
}
.plan-chip.pro .pc-dot { background: #a78bfa; box-shadow: 0 0 8px #8b5cf6; animation: planPulse 2.4s infinite; }
@keyframes planPulse { 50% { opacity: 0.45; } }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 3px 10px 3px 3px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  max-width: 210px;
}
.user-chip img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset; }
.user-chip .uc-fallback {
  width: 27px; height: 27px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: linear-gradient(150deg, #6d4bff, #3b2bb5);
}
.user-chip .uc-name { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .plan-chip .pc-plan, .user-chip .uc-name { display: none; }
  .plan-chip { padding: 0 9px; }
  .user-chip { padding: 3px; border: 0; background: transparent; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────── الهيرو ───────────── */
.hero { padding: 92px 0 88px; }
.hero-center {
  max-width: 920px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-center h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.16; font-weight: 700; letter-spacing: -0.03em;
  margin: 24px 0 22px;
}
.hero .lead { font-size: 18px; line-height: 1.8; max-width: 680px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap;
  margin-top: 32px; color: var(--muted-2); font-size: var(--fs-xs);
}
.hero-people { display: flex; align-items: center; gap: 12px; text-align: start; }
.hero-people .stars-mini { line-height: 1.4; }
.hero-facts { display: flex; align-items: center; gap: 0; }
.hero-facts span {
  padding: 0 20px; border-inline-start: 1px solid var(--line); color: var(--muted-2); font-size: 12.5px;
}
.hero-facts span:first-child { border-inline-start: 0; }
.hero-facts b { color: var(--text); font-size: 15px; font-weight: 600; margin-inline-end: 5px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted-2); font-size: var(--fs-xs); flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); margin-inline-start: -8px;
  background: linear-gradient(150deg, #6d4bff, #3b2bb5); display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin: 0; }
.stars-mini { color: var(--yellow); letter-spacing: 1.5px; font-size: 12px; }

/* نافذة المنتج / الداشبورد mockup */
.hero-window { position: relative; max-width: 1080px; margin: clamp(40px, 5vw, 70px) auto 0; }
.hero-window .product-window { margin: 0 auto; }
.product-window {
  position: relative; margin: 70px auto 0; max-width: 1080px;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b14; overflow: hidden;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.product-window::before {
  content: ''; position: absolute; inset: -40% 12% auto; height: 320px;
  background: radial-gradient(ellipse at center, rgba(91, 61, 245, 0.22), transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: 0;
}
.pw-bar {
  position: relative; z-index: 1; height: 46px; display: flex; align-items: center; gap: 12px;
  padding: 0 17px; background: #08080f; border-bottom: 1px solid var(--line);
}
.pw-bar .dots { display: flex; gap: 6px; }
.pw-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a35; }
.pw-bar .dots i:nth-child(1) { background: #3a3a46; }
.pw-url {
  margin-inline: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); font-size: 12px; color: var(--muted-2); direction: ltr;
}
.pw-spacer { width: 52px; }
.pw-screen { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; }
.pw-side {
  padding: 20px 15px; background: #08080f; border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 17px;
}
.pw-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; padding: 0 4px; }
.pw-logo {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px;
  background: linear-gradient(160deg, #7257ff, #4b2fe0); font-weight: 700;
}
.pw-server { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.pw-ava { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(91, 61, 245, 0.25); flex: none; }
.pw-server b { display: block; font-size: 12px; line-height: 1.4; }
.pw-server small { display: block; font-size: 10.5px; color: var(--muted-2); }
.pw-nav { display: grid; gap: 3px; }
.pw-nav span { padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--muted); }
.pw-nav span.on { background: rgba(91, 61, 245, 0.16); color: #ddd6fe; }
.pw-pro { margin-top: auto; padding: 9px 10px; border-radius: 9px; font-size: 11px; color: #ddd6fe; background: rgba(91, 61, 245, 0.12); border: 1px solid rgba(139, 92, 246, 0.22); text-align: center; }
.pw-main { padding: 20px 22px 24px; min-width: 0; }
.pw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.pw-head b { display: block; font-size: 15px; line-height: 1.4; }
.pw-head small { display: block; font-size: 11.5px; color: var(--muted-2); }
.pw-head-actions { display: flex; align-items: center; gap: 8px; }
.pw-search { padding: 7px 13px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2); }
.pw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 11px; }
.pw-stats > div { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); position: relative; }
.pw-stats b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.pw-stats span { display: block; font-size: 10.5px; color: var(--muted-2); }
.pw-stats em {
  position: absolute; top: 11px; inset-inline-end: 11px; font-style: normal; font-size: 9.5px; font-weight: 600;
  color: #6ee7b7; background: rgba(52, 211, 153, 0.1); padding: 2px 6px; border-radius: 999px;
}
.pw-stats em.ok { color: #a7f3d0; }
.pw-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 9px; }
.pw-chart, .pw-feed { padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); min-width: 0; }
.pw-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pw-chart-head b { font-size: 11.5px; }
.pw-chart-head span { font-size: 10px; color: var(--muted-2); }
.pw-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding-top: 4px; }
.pw-bars i {
  flex: 1; height: var(--h, 40%); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #8b6cff, rgba(91, 61, 245, 0.35));
  min-height: 6px;
}
.pw-days { display: flex; gap: 8px; margin-top: 9px; }
.pw-days span { flex: 1; text-align: center; font-size: 9px; color: var(--muted-2); }
.pw-feed { display: flex; flex-direction: column; gap: 8px; }
.pw-feed .pw-chart-head { margin-bottom: 4px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.8s infinite; }
.pw-event { display: flex; align-items: center; gap: 8px; font-size: 10.5px; }
.pw-event > span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); font-size: 11px; flex: none; }
.pw-event div { min-width: 0; }
.pw-event b { display: block; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-event small { display: block; font-size: 9.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-event em { margin-inline-start: auto; font-style: normal; font-size: 9px; color: var(--muted-2); flex: none; }

/* لقطة حقيقية داخل نافذة المنتج */
.pw-shot { position: relative; z-index: 1; display: block; background: #08080f; }
.pw-shot img { display: block; width: 100%; height: auto; }
.pw-shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 15, 0.4));
}

/* شارة البوت فوق نافذة المنتج */
.hero-bot-badge {
  position: absolute; inset-inline-end: -22px; top: 44px; z-index: 4;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  border-radius: 16px; background: rgba(13, 13, 22, 0.92); border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); backdrop-filter: blur(14px);
}
.hero-bot-badge img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero-bot-badge b { display: block; font-size: 13.5px; line-height: 1.4; }
.hero-bot-badge span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.hero-bot-badge span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
@media (max-width: 1120px) { .hero-bot-badge { inset-inline-end: 16px; top: 16px; } }
@media (max-width: 760px) { .hero-bot-badge { display: none; } }

/* عناصر قديمة (توافق) */
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 0; }
.hero-visual, .hero-glow, .discord-panel, .d-stats { display: none; }

/* شريط الشعارات */
.logo-strip { padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.logo-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; color: var(--muted-2); font-size: var(--fs-xs); font-weight: 500; }
.logo-strip-inner .brandish { display: flex; align-items: center; gap: 8px; opacity: 0.78; font-size: 13.5px; color: #b8b8c4; }
.logo-strip-inner .brandish svg { width: 20px; height: 20px; flex: none; }

/* إحصاءات */
.stats-band { padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-card); }
.stat-box { padding: 30px 22px; text-align: center; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat-box b { display: block; font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.stat-box span { color: var(--muted); font-size: var(--fs-sm); }

/* الميزات */
.feature-card { padding: var(--pad-card); display: flex; flex-direction: column; gap: 11px; position: relative; }
.feature-card h3 { font-size: 17.5px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.feature-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.feature-card .tiny { margin: 0; }

/* أقسام الميزات الكبيرة */
.split { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 60px; align-items: center; }
.split.rev { grid-template-columns: 1.06fr 0.94fr; }
.split-copy h2 { margin-top: 16px; font-size: clamp(28px, 3.4vw, 38px); }
.split-copy p { color: var(--muted); font-size: var(--fs-md); line-height: 1.85; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: #d6d6de; font-size: 14.5px; line-height: 1.7; }
.check-list li i {
  width: 21px; height: 21px; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: 2px;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: #6ee7b7;
  font-style: normal; font-size: 10.5px; font-weight: 800;
}
.panel-visual { padding: 20px; border-radius: var(--radius); }
.mock-card { border-radius: 12px; border: 1px solid var(--line); background: #0a0a12; padding: 18px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-head b { font-size: 13.5px; font-weight: 600; }
.mock-line { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); margin: 9px 0; }
.mock-line.w70 { width: 70%; } .mock-line.w50 { width: 50%; } .mock-line.w90 { width: 90%; }
.mock-row { display: flex; gap: 8px; margin-top: 16px; }
.mock-row span { flex: 1; height: 26px; border-radius: 7px; background: rgba(91, 61, 245, 0.12); border: 1px solid rgba(139, 92, 246, 0.18); }
.mock-row span:nth-child(2) { background: rgba(255, 255, 255, 0.045); border-color: var(--line); }
.mock-row span:nth-child(3) { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.ticket-visual { display: grid; gap: 8px; }
.ticket-row {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 12.5px;
}
.ticket-row .dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px rgba(52, 211, 153, 0.7); flex: none; }
.ticket-row .dot-wait { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: none; }
.ticket-row .spacer { margin-inline-start: auto; color: var(--muted-2); font-size: 11.5px; }

/* لقطات حقيقية من المنتج */
.shots-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: var(--gap-card); align-items: stretch; }
.shots-grid.two { grid-template-columns: 1fr 1fr; }
.shots-col { display: grid; gap: var(--gap-card); align-content: stretch; }
.shots-col .shot-card { flex: 1; }
.shots-col .shot-frame { flex: 1; aspect-ratio: auto; min-height: 150px; }
.shot-card {
  margin: 0; padding: 12px; border-radius: 20px; background: #0b0b14;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.shot-card:hover { border-color: var(--line-2); }
.shot-frame {
  position: relative; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line); background: #08080f; aspect-ratio: 16 / 10;
}
.shot-card.large .shot-frame { aspect-ratio: 16 / 11.2; }
.shot-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shot-card:hover .shot-frame img { transform: scale(1.025); }
.shot-frame::after {
  content: ''; position: absolute; inset: auto 0 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.45)); pointer-events: none;
}
.shot-meta { display: flex; align-items: center; gap: 11px; padding: 2px 8px 6px; }
.shot-meta .si {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-size: 17px; background: rgba(91, 61, 245, 0.14); border: 1px solid rgba(139, 92, 246, 0.26);
}
.shot-meta b { display: block; font-size: 14.5px; line-height: 1.4; }
.shot-meta span { display: block; font-size: var(--fs-xs); color: var(--muted-2); }

/* لقطة داخل قسم منقسم */
.app-shot {
  margin: 0; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #12121c, #08080f);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.app-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.app-shot figcaption { padding: 12px 6px 2px; color: var(--muted-2); font-size: var(--fs-xs); text-align: center; }

/* وضع لقطات الشاشة: يخفي الهيدر والفوتر */
body.shot-mode .site-header, body.shot-mode .site-footer, body.shot-mode .mobile-menu, body.shot-mode .bg-fx { display: none !important; }
body.shot-mode section { padding: 26px 0; }
body.shot-mode .page-hero { padding: 30px 0 22px; }
body.shot-mode .stats-band { padding: 26px 0; }
body.shot-mode .reveal { opacity: 1 !important; transform: none !important; }

/* الأوامر */
.cmd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmd-card {
  padding: 18px 20px; border-radius: 13px; border: 1px solid var(--line); background: var(--card);
  transition: 0.2s; position: relative;
}
.cmd-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); background: var(--card-2); }
.cmd-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.cmd-card code { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 14px; color: #c4b5fd; font-weight: 600; direction: ltr; }
.cmd-card .ar { font-size: 12.5px; color: var(--muted-2); }
.cmd-card p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.cmd-card .cat { font-size: 11.5px; color: var(--muted-2); margin-top: 9px; }
.cmd-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box svg { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.search-box input {
  width: 100%; height: 48px; padding: 0 17px; padding-inline-start: 44px; border-radius: 12px;
  background: #101018; border: 1px solid var(--line); outline: none;
  transition: 0.2s; font-size: 14.5px;
}
.search-box input:focus { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.12); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #101018;
  color: var(--muted); font-size: 12.5px; font-weight: 500; transition: 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: rgba(91, 61, 245, 0.2); border-color: rgba(139, 92, 246, 0.45); color: #ddd6fe; }
.result-count { color: var(--muted-2); font-size: 12.5px; margin-bottom: 16px; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-state b { display: block; font-size: 17px; color: var(--text); margin-bottom: 6px; }

/* الأسعار */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; align-items: stretch; }
.price-card { padding: 32px 26px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { border-color: rgba(139, 92, 246, 0.5); background: linear-gradient(180deg, rgba(91, 61, 245, 0.14), var(--card) 55%); }
.price-card .badge-pop {
  position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--violet); color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 13px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(91, 61, 245, 0.4); border: 1px solid rgba(167, 139, 250, 0.4);
}
html[dir='ltr'] .price-card .badge-pop { transform: translateX(-50%); }
.price-card .plan-name { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-card .price { font-size: clamp(34px, 3.2vw, 41px); font-weight: 700; letter-spacing: -0.04em; margin: 8px 0 4px; line-height: 1.15; }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .plan-desc { color: var(--muted); font-size: 13.5px; min-height: 44px; line-height: 1.7; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; font-size: 13.5px; color: #d2d2da; }
.price-card ul li { display: flex; gap: 8px; line-height: 1.6; }
.price-card ul li::before { content: '✓'; color: #6ee7b7; font-weight: 700; flex: none; }
.price-card .btn { margin-top: auto; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13.5px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
table.compare th:first-child, table.compare td:first-child { text-align: start; color: var(--muted); }
table.compare thead th { font-size: 12.5px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.03); }
table.compare tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.compare .yes { color: #6ee7b7; font-weight: 700; }
table.compare .no { color: var(--muted-2); }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-card); counter-reset: step; }
.step-card { padding: var(--pad-card); position: relative; }
.step-card .num {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(91, 61, 245, 0.14); border: 1px solid rgba(139, 92, 246, 0.28);
  font-weight: 600; font-size: 15px; margin-bottom: 17px; color: #ddd6fe;
}
.step-card h3 { font-size: 17.5px; margin-bottom: 7px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* آراء */
.quote-card { padding: var(--pad-card); display: flex; flex-direction: column; gap: 15px; }
.quote-card p { margin: 0; color: #d2d2da; font-size: 14.5px; line-height: 1.85; }
.quote-who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.quote-who .qava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(150deg, #6d4bff, #3b2bb5); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.quote-who b { display: block; font-size: 12.5px; font-weight: 600; }
.quote-who span { font-size: 11px; color: var(--muted-2); }
.qstars { color: var(--yellow); font-size: 12px; letter-spacing: 1.5px; }

/* الأسئلة */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
details.faq-item { border: 1px solid var(--line); border-radius: 13px; background: var(--card); overflow: hidden; }
details.faq-item summary {
  padding: 18px 21px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; color: var(--muted); font-size: 20px; font-weight: 400; transition: 0.2s; }
details.faq-item[open] { background: var(--card-2); border-color: var(--line-2); }
details.faq-item[open] summary::after { transform: rotate(45deg); color: var(--violet-3); }
details.faq-item .faq-body { padding: 0 21px 19px; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* CTA */
.cta-band {
  border-radius: 24px; padding: 68px 42px; text-align: center; position: relative; overflow: hidden;
  background: #0a0a12; border: 1px solid var(--line);
}
.cta-band::before {
  content: ''; position: absolute; inset: -60% 20% auto; height: 420px;
  background: radial-gradient(ellipse at center, rgba(91, 61, 245, 0.28), transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.cta-band h2 { position: relative; font-size: clamp(30px, 4vw, 44px); }
.cta-band p { position: relative; color: var(--muted); max-width: 580px; margin: 15px auto 28px; font-size: var(--fs-md); }
.cta-band .eyebrow { position: relative; }

/* الفوتر */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: #06060c; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 36px; }
.footer-brand p { color: var(--muted); font-size: 13px; max-width: 290px; margin: 14px 0 18px; line-height: 1.8; }
.footer-col h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 15px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-size: 13.5px; transition: 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; flex-wrap: wrap; }
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); transition: 0.2s; font-size: 13px; }
.footer-bottom .socials a:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }

/* ───────────── الصفحات الداخلية ───────────── */
.page-hero { padding: 84px 0 52px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 56px); margin: 17px 0 15px; font-weight: 700; letter-spacing: -0.03em; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 660px; margin: 0 auto; line-height: 1.8; }

/* التوثيق */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 3px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.docs-nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.docs-nav a:hover, .docs-nav a.active { background: rgba(91, 61, 245, 0.14); color: #ddd6fe; }
.docs-content { min-width: 0; }
.docs-content section { padding: 0 0 46px; }
.docs-content h2 { font-size: 25px; margin-bottom: 14px; }
.docs-content h3 { font-size: 17px; margin: 25px 0 8px; }
.docs-content p, .docs-content li { color: #b9b9c4; font-size: 14.5px; line-height: 1.85; }
.docs-content ul, .docs-content ol { padding-inline-start: 22px; }
.docs-content li { margin: 6px 0; }
.docs-content code {
  background: rgba(91, 61, 245, 0.13); border: 1px solid rgba(139, 92, 246, 0.22);
  padding: 2px 6px; border-radius: 5px; font-size: 12.5px; color: #c4b5fd;
  font-family: ui-monospace, 'Cascadia Code', monospace; direction: ltr; display: inline-block;
}
.code-block {
  background: #050508; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  overflow-x: auto; font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 12.5px; color: #c5c5d0;
  line-height: 1.75; direction: ltr; text-align: left;
}
.note {
  padding: 14px 16px; border-radius: 10px; background: rgba(91, 61, 245, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.24); color: #d8d2f5; font-size: 13px; margin: 18px 0; line-height: 1.75;
}
.note.warn { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.22); color: #f3dfa8; }

/* الحالة */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-card); }
.status-card { padding: var(--pad-card); }
.status-card .label { font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; }
.status-card .value { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.status-card .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.status-pill.up { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: #a7f3d0; }
.status-pill.down { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: #fecaca; }
.status-pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.8); } }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.svc-row:last-child { border: 0; }
.svc-row .svc-dot { width: 7px; height: 7px; border-radius: 50%; }
.svc-row .svc-dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); }
.svc-row .svc-dot.warn { background: var(--yellow); }
.svc-row .svc-dot.bad { background: var(--red); }
.svc-row .spacer { margin-inline-start: auto; color: var(--muted-2); font-size: 11.5px; }

/* ───────────── النماذج ───────────── */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; background: #101018;
  border: 1px solid var(--line); outline: none; font-size: 14px; transition: 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.12);
}
.field textarea { min-height: 92px; resize: vertical; }
.field select option { background: #101018; }
.field .hint { font-size: 11px; color: var(--muted-2); line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.switch:last-child { border: 0; }
.switch .sw-copy b { display: block; font-size: 14px; font-weight: 500; }
.switch .sw-copy span { font-size: 12px; color: var(--muted-2); }
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.toggle .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); transition: 0.25s; }
.toggle .track::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #b9b9c4; top: 3px; inset-inline-start: 4px; transition: 0.25s; }
.toggle input:checked + .track { background: var(--violet); border-color: transparent; }
.toggle input:checked + .track::after { background: #fff; inset-inline-start: 20px; }
html[dir='ltr'] .toggle input:checked + .track::after { inset-inline-start: 20px; }

/* ───────────── لوحة التحكم ───────────── */
.dash-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; padding-top: 32px; }
.dash-side { position: sticky; top: calc(var(--nav-h) + 20px); padding: 14px; }
.guild-chip { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); margin-bottom: 14px; }
.guild-chip img, .guild-chip .g-ava { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(150deg, #6d4bff, #3b2bb5); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.guild-chip b { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; }
.guild-chip span { font-size: 10.5px; color: var(--muted-2); }
.dash-nav { display: grid; gap: 2px; }
.dash-nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  background: transparent; border: 0; color: var(--muted); font-weight: 500; font-size: 13.5px; text-align: start;
  transition: 0.2s; width: 100%;
}
.dash-nav button .di { width: 18px; text-align: center; font-size: 13px; }
.dash-nav button:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.dash-nav button.on { background: rgba(91, 61, 245, 0.15); color: #ddd6fe; }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-head h1 { font-size: 26px; }
.dash-head p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.panel { padding: var(--pad-card); margin-bottom: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-title h3 { font-size: 16.5px; font-weight: 600; }
.panel-title .mini { font-size: 12px; color: var(--muted-2); }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 20px; }
.mini-stat { padding: 17px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.mini-stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mini-stat span { font-size: 11.5px; color: var(--muted-2); }
.premium-banner { padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(91, 61, 245, 0.18), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(139, 92, 246, 0.3); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.premium-banner .pb-icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(91, 61, 245, 0.25); border: 1px solid rgba(139, 92, 246, 0.35); display: grid; place-items: center; font-size: 20px; flex: none; }
.premium-banner b { display: block; font-size: 14.5px; }
.premium-banner span { font-size: 12px; color: var(--muted); }
.premium-banner > .btn { margin-inline-start: auto; }
.premium-banner > .btn + .btn { margin-inline-start: 8px; }
.premium-banner.trial-banner {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(91, 61, 245, 0.2));
  border-color: rgba(34, 211, 238, 0.35); margin-bottom: 14px;
}
.premium-banner.trial-banner .pb-icon { background: rgba(34, 211, 238, 0.16); border-color: rgba(34, 211, 238, 0.32); }

/* ───────── بانل التذاكر المتقدم ───────── */
.tp-builder { margin-top: 18px; }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 24px; align-items: start; }
.tp-form { min-width: 0; }
.tp-option {
  padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022); margin-bottom: 12px;
}
.tp-option-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tp-option-head b { font-size: 12.5px; color: #ddd6fe; }
.tp-option-head .tp-remove { color: #fca5a5; border-color: rgba(248, 113, 113, 0.22); }
.tp-options-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.tp-options-head b { font-size: 13px; }
.tp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.tp-sent { margin-top: 10px; padding: 10px 12px; border-radius: 9px; font-size: 12px; color: #a7f3d0; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.2); }
.tp-sent a { color: #67e8f9; text-decoration: underline; }
.tp-preview-wrap { position: sticky; top: calc(var(--nav-h) + 18px); min-width: 0; }
.tp-preview-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 8px; }
.tp-preview {
  border-radius: 14px; border: 1px solid rgba(139, 92, 246, 0.22);
  background: #101019; padding: 12px; min-height: 220px;
}
.tp-embed { border: 1px solid #7c5cff; border-radius: 8px; background: #17171f; overflow: hidden; }
.tp-banner { display: block; width: 100%; max-height: 190px; object-fit: cover; }
.tp-embed-body { padding: 15px; }
.tp-embed h4 { font-size: 15px; margin: 0 0 7px; color: #fff; }
.tp-embed p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; color: #c8c8d4; white-space: normal; }
.tp-select { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: #1d1d27; overflow: hidden; }
.tp-select-head { padding: 9px 11px; font-size: 11.5px; color: #a9a9b8; background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.tp-select-opt { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.tp-select-opt:last-child { border-bottom: 0; }
.tp-select-opt b { display: block; font-size: 12px; font-weight: 500; color: #e7e7ef; }
.tp-select-opt small { display: block; font-size: 10.5px; color: #8c8c9c; margin-top: 1px; }
.tp-opt-emoji { width: 19px; text-align: center; flex: none; font-size: 15px; }
.tp-emoji { width: 17px; height: 17px; object-fit: contain; vertical-align: -3px; }
.tp-empty { padding: 12px; font-size: 11.5px; color: var(--muted-2); }
.tp-embed-footer { margin-top: 12px; font-size: 10px; color: #7f7f90; }
@media (max-width: 1050px) {
  .tp-grid { grid-template-columns: 1fr; }
  .tp-preview-wrap { position: static; }
  .tp-preview { max-width: 520px; }
}

.guild-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guild-card {
  padding: 15px; display: flex; align-items: center; gap: 13px; cursor: pointer;
  position: relative; overflow: hidden;
}
.guild-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.guild-card .gc-ava {
  width: 52px; height: 52px; border-radius: 15px; flex: none; overflow: hidden;
  background: linear-gradient(150deg, #6d4bff, #3b2bb5); display: grid; place-items: center;
  font-weight: 700; font-size: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.guild-card .gc-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guild-card .gc-main { min-width: 0; flex: 1; }
.guild-card b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-card .gc-sub { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guild-card .gc-arrow { color: var(--muted-2); font-size: 19px; flex: none; line-height: 1; }
.guild-card .gc-add {
  flex: none; font-size: 11.5px; font-weight: 600; color: #fde68a;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.28);
}
.guild-card.no-bot { border-color: rgba(251, 191, 36, 0.18); }
.guild-card.no-bot:hover { border-color: rgba(251, 191, 36, 0.42); background: rgba(251, 191, 36, 0.03); }
.guild-card.no-bot .gc-ava { filter: saturate(0.75) brightness(0.85); }
.guild-card .gc-owner {
  position: absolute; top: 9px; inset-inline-end: 9px;
  font-size: 9.5px; font-weight: 600; color: #c4b5fd;
  background: rgba(91, 61, 245, 0.16); border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 2px 7px; border-radius: 999px;
}

/* نافذة إضافة البوت لسيرفر */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 3, 7, 0.72); backdrop-filter: blur(8px);
}
.modal-box {
  width: 100%; max-width: 430px; padding: 30px; border-radius: 22px;
  background: #0b0b14; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); text-align: center;
  animation: modalIn 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.modal-box .mb-ava {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #6d4bff, #3b2bb5); display: grid; place-items: center;
  font-size: 24px; font-weight: 700; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.modal-box .mb-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-box .mb-name { font-size: 13px; font-weight: 600; color: #c4b5fd; margin: -8px 0 12px; }
.modal-box h3 { font-size: 21px; margin-bottom: 8px; }
.modal-box p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 24px; }
.modal-box .mb-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-box .tiny { margin: 16px 0 0; }

.login-box { max-width: 420px; margin: 56px auto; padding: 36px 32px; text-align: center; }
.login-box .lb-icon { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 18px; background: linear-gradient(160deg, #7257ff, #4b2fe0); display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 30px rgba(91, 61, 245, 0.35); }
.login-box h2 { font-size: 22px; margin-bottom: 8px; }
.login-box p { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; line-height: 1.8; }

.save-bar { position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(10, 10, 18, 0.94); border: 1px solid rgba(139, 92, 246, 0.32); backdrop-filter: blur(16px); box-shadow: var(--shadow); margin-top: 8px; }
.save-bar .saved { font-size: 12px; color: var(--muted-2); margin-inline-start: auto; }
.save-bar .saved.on { color: #6ee7b7; }

/* toast */
.toast-wrap { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 200; display: grid; gap: 8px; }
.toast {
  padding: 12px 18px; border-radius: 10px; background: rgba(10, 10, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: var(--shadow); font-size: 13px;
  animation: toastIn 0.25s ease; display: flex; align-items: center; gap: 9px; max-width: 360px;
}
.toast.err { border-color: rgba(248, 113, 113, 0.4); }
.toast.ok { border-color: rgba(52, 211, 153, 0.4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* skeleton */
.skeleton { border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* الوثائق القانونية */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 38px 0 10px; }
.legal p, .legal li { color: #b9b9c4; font-size: 14.5px; line-height: 1.85; }
.legal ul { padding-inline-start: 22px; }
.legal .updated { color: var(--muted-2); font-size: 12px; }

/* لوحة الإدارة */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-tabs button { height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 500; font-size: 12.5px; }
.admin-tabs button.on { background: rgba(91, 61, 245, 0.16); border-color: rgba(139, 92, 246, 0.4); color: #ddd6fe; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 12.5px; }
table.data th, table.data td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); }
table.data th { background: rgba(255, 255, 255, 0.03); color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
table.data tr:last-child td { border: 0; }
table.data code { font-size: 11.5px; color: #c4b5fd; background: rgba(91, 61, 245, 0.1); padding: 2px 6px; border-radius: 4px; }
.badge-status { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.badge-status.pending { background: rgba(251, 191, 36, 0.12); color: #fde68a; }
.badge-status.paid { background: rgba(52, 211, 153, 0.12); color: #a7f3d0; }
.badge-status.rejected { background: rgba(248, 113, 113, 0.12); color: #fecaca; }
.orange { color: var(--yellow); }

/* استجابة */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { max-width: 520px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .panel-visual, .split.rev .app-shot { order: -1; }
  .cmd-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-wrap { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-nav { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .guild-picker { grid-template-columns: repeat(2, 1fr); }
  .pw-screen { grid-template-columns: 196px 1fr; }
  .pw-stats { grid-template-columns: repeat(2, 1fr); }
  .pw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .container { width: calc(100% - 40px); }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-actions .btn.desktop-cta { display: none; }
  .hero { padding: 56px 0 60px; }
  .hero-center h1 { font-size: clamp(32px, 8.6vw, 44px); margin: 20px 0 18px; }
  .hero .lead { font-size: 16.5px; }
  .hero-meta { gap: 18px; }
  .hero-facts { display: none; }
  .product-window { margin-top: 44px; border-radius: 15px; }
  .pw-screen { grid-template-columns: 1fr; }
  .pw-side { display: none; }
  .pw-main { padding: 16px; }
  .pw-head small { display: none; }
  .pw-search { display: none; }
  .pw-stats { grid-template-columns: repeat(2, 1fr); }
  .shots-grid { grid-template-columns: 1fr; }
  .shot-card.large .shot-frame { aspect-ratio: 16 / 10; }
  .grid-2, .grid-3, .grid-4, .cmd-grid, .status-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 44px 22px; }
  .guild-picker { grid-template-columns: 1fr; }
  .dash-nav { grid-template-columns: 1fr; }
  .logo-strip-inner { justify-content: center; }
  .search-box { min-width: 100%; }
  .section-head { margin-bottom: 38px; }
  .page-hero { padding: 48px 0 34px; }
}
@media (max-width: 420px) {
  .hero-meta { flex-direction: column; gap: 12px; }
  .hero-people { text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
}
