/* ══════════════════════════════════════════
   VerseTech Orbit — نظام التصميم
   كل الألوان بهذا البلوك، غيّرها من هون فقط
   ══════════════════════════════════════════ */
:root {
  /* الخلفيات */
  --bg: #05080F;
  --bg-2: #080D19;
  --panel: #0D1424;
  --panel-2: #111A2E;
  --line: #1C2740;
  --line-soft: #162034;

  /* النصوص */
  --text: #E8EEFB;
  --text-2: #A9B7D0;
  --muted: #6C7C9C;

  /* الهوية */
  --brand: #3D7BFF;
  --brand-2: #8B5CF6;
  --brand-glow: rgba(61, 123, 255, .35);
  --cyan: #22D3EE;

  /* الحالات */
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #FB7185;
  --info: #38BDF8;
  --wa: #25D366;

  /* أخرى */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .45);
  --ring: 0 0 0 3px rgba(61, 123, 255, .28);
  --f-display: 'Almarai', system-ui, sans-serif;
  --f-body: 'Tajawal', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ── أساسيات ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 100% -5%, rgba(61, 123, 255, .13), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(139, 92, 246, .10), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.4; font-weight: 800; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--f-mono); letter-spacing: .5px; direction: ltr; unicode-bidi: embed; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }

/* ── الهيدر ────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 8, 15, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 6px 20px var(--brand-glow);
  position: relative;
}
.brand-mark::after {
  position: absolute; inset: 7px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%; border-block-end-color: transparent;
}
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; margin-top: -6px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; font-size: 14px; color: var(--text-2);
  transition: .18s;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.on { color: #fff; background: var(--panel-2); }

@media (max-width: 780px) {
  .nav-in { height: 60px; }
  .nav-links a span { display: none; }
  .nav-links a { padding: 8px 10px; }
}

/* ── الأزرار ───────────────────────────── */
.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .12s, filter .18s, box-shadow .18s;
  position: relative; white-space: nowrap; user-select: none;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.is-loading { opacity: .75; pointer-events: none; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--brand), var(--brand-2));
  --btn-fg: #fff; border-color: transparent;
  box-shadow: 0 10px 26px var(--brand-glow);
}
.btn-wa { --btn-bg: rgba(37, 211, 102, .12); --btn-fg: #6EE7A8; border-color: rgba(37, 211, 102, .35); }
.btn-ok { --btn-bg: rgba(52, 211, 153, .12); --btn-fg: var(--ok); border-color: rgba(52, 211, 153, .35); }
.btn-danger { --btn-bg: rgba(251, 113, 133, .10); --btn-fg: var(--danger); border-color: rgba(251, 113, 133, .32); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text-2); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn .spin {
  width: 15px; height: 15px; border-radius: 50%; display: none;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spin { display: block; }
.btn.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── البطاقات ──────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.card-pad-sm { padding: 16px; }
.card-title { font-size: 16px; display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.card-desc { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ── الحقول ────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field .hint { color: var(--muted); font-size: 12px; font-weight: 400; }

.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border-radius: 13px;
  background: #070C17; border: 1px solid var(--line);
  transition: border-color .18s, box-shadow .18s;
  font-size: 15px; /* يمنع تكبير الشاشة على iOS */
}
.input::placeholder, .textarea::placeholder { color: #4B5A78; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: var(--ring); outline: none;
}
.textarea { min-height: 92px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 50%, 24px 50%; background-size: 6px 6px; background-repeat: no-repeat; }

/* ── الشارات ───────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.badge.warn { color: var(--warn); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.badge.danger { color: var(--danger); border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .08); }
.badge.info { color: var(--info); border-color: rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .08); }
.badge.plain::before { display: none; }

/* ── التوست ────────────────────────────── */
#toasts {
  position: fixed; z-index: 200; inset-block-start: 16px; inset-inline-end: 16px;
  display: flex; flex-direction: column; gap: 10px; width: min(370px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; border-radius: 14px;
  background: rgba(17, 26, 46, .96); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: toastIn .32s cubic-bezier(.2, .9, .3, 1.3);
  font-size: 14px; position: relative; overflow: hidden;
}
.toast.out { animation: toastOut .25s forwards; }
.toast i {
  width: 24px; height: 24px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700;
}
.toast::after {
  content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0;
  height: 2px; width: 100%; background: currentColor; opacity: .5;
  animation: toastBar 4s linear forwards; transform-origin: right;
}
.toast.success { color: var(--ok); } .toast.success i { background: rgba(52, 211, 153, .15); }
.toast.error { color: var(--danger); } .toast.error i { background: rgba(251, 113, 133, .15); }
.toast.info { color: var(--info); } .toast.info i { background: rgba(56, 189, 248, .15); }
.toast p { color: var(--text); flex: 1; line-height: 1.6; }

@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes toastBar { to { transform: scaleX(0); } }

@media (max-width: 620px) {
  #toasts { inset-block-start: auto; inset-block-end: 14px; inset-inline: 14px; width: auto; }
  .toast { animation: toastUp .3s cubic-bezier(.2, .9, .3, 1.3); }
  @keyframes toastUp { from { opacity: 0; transform: translateY(18px); } }
}

/* ── شاشة التحميل ──────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 300; display: none;
  place-items: center; background: rgba(5, 8, 15, .74); backdrop-filter: blur(5px);
}
#loader.on { display: grid; }
.loader-box { display: grid; place-items: center; gap: 14px; }
.orbit-load { width: 54px; height: 54px; position: relative; }
.orbit-load::before, .orbit-load::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--brand); animation: spin .9s linear infinite;
}
.orbit-load::after { inset: 10px; border-top-color: var(--brand-2); animation-duration: 1.4s; animation-direction: reverse; }
.loader-box span { font-size: 13.5px; color: var(--text-2); }

/* ── النافذة المنبثقة ──────────────────── */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.on { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(3, 6, 12, .7); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-box {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: min(560px, calc(100% - 28px)); max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow); animation: pop .28s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { font-size: 17px; margin-inline-end: auto; }
.x-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); cursor: pointer; color: var(--muted); font-size: 17px; line-height: 1;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(50%, -46%) scale(.96); } }

@media (max-width: 620px) {
  .modal-box {
    inset: auto 0 0 0; transform: none; width: 100%; max-height: 92vh;
    border-radius: 24px 24px 0 0; padding: 20px 18px 26px;
    animation: sheet .3s cubic-bezier(.2, .9, .3, 1.1);
  }
  @keyframes sheet { from { transform: translateY(100%); } }
  .modal-box::before {
    content: ''; display: block; width: 44px; height: 4px; border-radius: 99px;
    background: var(--line); margin: -6px auto 16px;
  }
}

/* ══════════════════════════════════════════
   الصفحة الرئيسية
   ══════════════════════════════════════════ */
.hero { padding: 70px 0 60px; position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-size: 12.5px; color: var(--text-2); margin-bottom: 20px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero h1 { font-size: clamp(30px, 6.2vw, 52px); line-height: 1.28; letter-spacing: -.5px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--cyan) 55%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--text-2); font-size: clamp(15px, 2.2vw, 17.5px); margin: 18px 0 28px; max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* العنصر المميز: مدار السيرفرات */
.orbit-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orbit-ring {
  position: absolute; border: 1px solid var(--line); border-radius: 50%;
  animation: rotate 26s linear infinite;
}
.orbit-ring:nth-child(1) { inset: 4%; animation-duration: 34s; }
.orbit-ring:nth-child(2) { inset: 19%; animation-duration: 24s; animation-direction: reverse; border-color: rgba(61, 123, 255, .28); }
.orbit-ring:nth-child(3) { inset: 34%; animation-duration: 16s; border-color: rgba(139, 92, 246, .3); }
.orbit-ring i {
  position: absolute; inset-block-start: -5px; inset-inline-start: 50%;
  width: 10px; height: 10px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}
.orbit-ring:nth-child(2) i { background: var(--brand); box-shadow: 0 0 16px var(--brand); }
.orbit-ring:nth-child(3) i { background: var(--brand-2); box-shadow: 0 0 16px var(--brand-2); }
@keyframes rotate { to { transform: rotate(360deg); } }

.core {
  width: 42%; aspect-ratio: 1; border-radius: 26px; position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); display: grid; place-items: center; gap: 6px;
  box-shadow: 0 0 60px rgba(61, 123, 255, .18), var(--shadow); padding: 14px;
}
.core .u { font-family: var(--f-display); font-size: clamp(20px, 4.4vw, 32px); }
.core .l { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }
.rack { display: flex; gap: 4px; margin-top: 4px; }
.rack span { width: 4px; height: 15px; border-radius: 2px; background: var(--line); animation: blink 2.6s infinite; }
.rack span:nth-child(2n) { background: var(--brand); animation-delay: .3s; }
.rack span:nth-child(3n) { background: var(--ok); animation-delay: .7s; }
@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 880px) {
  .hero { padding: 44px 0 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .orbit-art { max-width: 300px; margin-inline: auto; order: -1; }
}

/* الأقسام */
.section { padding: 62px 0; }
.section-head { margin-bottom: 32px; max-width: 62ch; }
.section-head .kicker {
  font-size: 12px; letter-spacing: 3px; color: var(--brand);
  font-weight: 700; margin-bottom: 10px; font-family: var(--f-mono);
}
.section-head h2 { font-size: clamp(23px, 4.4vw, 34px); }
.section-head p { color: var(--text-2); margin-top: 12px; }

.feature { padding: 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); transition: .2s; }
.feature:hover { border-color: rgba(61, 123, 255, .4); transform: translateY(-3px); }
.feature .ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(61, 123, 255, .12); color: var(--brand); margin-bottom: 14px; font-size: 19px;
}
.feature h3 { font-size: 16px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 14px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.stat-strip div { background: var(--bg-2); padding: 22px 14px; text-align: center; }
.stat-strip b { display: block; font-family: var(--f-display); font-size: clamp(20px, 4vw, 28px); }
.stat-strip span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 620px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* الفوتر */
.footer { border-top: 1px solid var(--line-soft); padding: 34px 0; margin-top: 40px; background: var(--bg-2); }
.footer-in { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.footer small { color: var(--muted); }

/* ══════════════════════════════════════════
   لوحة التحكم
   ══════════════════════════════════════════ */
.page-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 28px 0 20px;
}
.page-head h1 { font-size: clamp(20px, 4vw, 27px); margin-inline-end: auto; }

.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 17px; position: relative; overflow: hidden; }
.stat-card b { font-family: var(--f-display); font-size: 25px; display: block; line-height: 1.5; }
.stat-card span { font-size: 12.5px; color: var(--muted); }
.stat-card::after {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-end: 0;
  width: 62px; height: 62px; border-radius: 50%; filter: blur(28px); opacity: .5;
  background: var(--brand);
}
.stat-card.due::after { background: var(--danger); }
.stat-card.review::after { background: var(--info); }
.stat-card.money::after { background: var(--ok); }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13.5px; color: var(--text-2); white-space: nowrap; cursor: pointer;
}
.chip.on { background: var(--brand); border-color: transparent; color: #fff; font-weight: 700; }

/* بطاقة عميل */
.client-card {
  display: grid; gap: 14px; padding: 18px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: .18s;
}
.client-card:hover { border-color: rgba(61, 123, 255, .35); }
.client-card::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px;
  background: var(--line);
}
.client-card[data-tone="ok"]::before { background: var(--ok); }
.client-card[data-tone="warn"]::before { background: var(--warn); }
.client-card[data-tone="danger"]::before { background: var(--danger); }
.client-card[data-tone="info"]::before { background: var(--info); }

.cc-top { display: flex; align-items: flex-start; gap: 12px; }
.cc-top h3 { font-size: 16px; }
.cc-top .sub { font-size: 13px; color: var(--muted); }
.avatar {
  width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(61, 123, 255, .22), rgba(139, 92, 246, .22));
  border: 1px solid var(--line); font-family: var(--f-display); font-size: 16px;
}
.cc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-2); }
.cc-meta i { color: var(--muted); font-style: normal; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-actions .btn { flex: 1 1 auto; min-width: 110px; }

/* الجدول (للشاشات الكبيرة) */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }

/* كلمة سر العميل */
.code-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 13px; background: #070C17; border: 1px dashed var(--line);
}
.code-box .code { font-family: var(--f-mono); font-size: 16px; font-weight: 700; color: var(--cyan); flex: 1; letter-spacing: 1px; }

/* ══════════════════════════════════════════
   شاشات الدخول والبوابة
   ══════════════════════════════════════════ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-box { width: min(430px, 100%); }
.auth-mark { width: 58px; height: 58px; border-radius: 19px; margin: 0 auto 18px; }
.auth h1 { font-size: 22px; text-align: center; }
.auth .sub { color: var(--muted); text-align: center; font-size: 14px; margin: 8px 0 26px; }
.pin {
  text-align: center; font-family: var(--f-mono); font-size: 19px;
  letter-spacing: 3px; padding: 16px;
}

/* لافتة المبلغ المستحق */
.due-banner {
  border-radius: var(--r-lg); padding: 24px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(251, 113, 133, .13), var(--panel) 65%);
  border: 1px solid rgba(251, 113, 133, .3);
}
.due-banner.paid { background: linear-gradient(150deg, rgba(52, 211, 153, .13), var(--panel) 65%); border-color: rgba(52, 211, 153, .3); }
.due-banner.pending { background: linear-gradient(150deg, rgba(56, 189, 248, .13), var(--panel) 65%); border-color: rgba(56, 189, 248, .3); }
.due-banner .amount { font-family: var(--f-display); font-size: clamp(34px, 9vw, 48px); line-height: 1.3; }
.due-banner .label { color: var(--text-2); font-size: 14px; }

/* بيانات كليك */
.cliq { display: grid; gap: 10px; }
.cliq-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border-radius: 13px; background: #070C17; border: 1px solid var(--line);
}
.cliq-row span { color: var(--muted); font-size: 13px; }
.cliq-row b { margin-inline-start: auto; font-family: var(--f-mono); font-size: 15px; color: var(--text); }

/* رفع الصورة */
.drop {
  border: 2px dashed var(--line); border-radius: var(--r); padding: 26px 18px;
  text-align: center; cursor: pointer; transition: .2s; background: #070C17; display: block;
}
.drop:hover, .drop.over { border-color: var(--brand); background: rgba(61, 123, 255, .06); }
.drop .ico { font-size: 27px; margin-bottom: 8px; }
.drop b { display: block; font-size: 14.5px; }
.drop small { color: var(--muted); font-size: 12.5px; }
.preview { margin-top: 14px; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.preview img { width: 100%; max-height: 340px; object-fit: contain; background: #05080F; }
.preview .rm {
  position: absolute; inset-block-start: 9px; inset-inline-end: 9px;
  background: rgba(5, 8, 15, .85); border: 1px solid var(--line); color: var(--danger);
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
}

/* الخط الزمني */
.timeline { display: grid; gap: 2px; }
.tl-item { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-top: 9px; flex: none; }
.tl-item .t { font-size: 14px; }
.tl-item .d { font-size: 12.5px; color: var(--muted); }
.tl-item .amt { margin-inline-start: auto; font-family: var(--f-mono); color: var(--ok); }

/* حالة فارغة */
.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty .ico { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; font-family: var(--f-display); }

/* صفحة الخطأ */
.err { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 20px; }
.err .code { font-family: var(--f-display); font-size: 76px; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* أدوات */
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.sticky-bar {
  position: sticky; inset-block-end: 0; z-index: 40; padding: 12px 0;
  background: linear-gradient(transparent, var(--bg) 30%);
}

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