/* Aliens Store — لغة تصميم واحدة: ابيض صافي، درجات رمادي، اسود للأفعال، والاحمر لمسة براند صغيرة بس */
:root {
  --ink: #171717;
  --ink-2: #404040;
  --muted: #737373;
  --faint: #a3a3a3;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --bg: #ffffff;
  --soft: #fafafa;
  --soft-2: #f5f5f5;
  --card: #ffffff;
  --accent: #171717;
  --accent-ink: #ffffff;
  --brand: #ae1a1c;
  --brand-soft: #fbf3f3;
  --ok: #166534;
  --ok-soft: #f0f7f2;
  --warn: #92400e;
  --warn-soft: #faf5ec;
  --info: #1e3a8a;
  --info-soft: #f1f4fa;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .18);
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #f5f5f5; --ink-2: #d4d4d4; --muted: #a3a3a3; --faint: #737373; --line: #2a2a2a; --line-2: #1f1f1f;
  --bg: #0e0e0e; --soft: #141414; --soft-2: #1a1a1a; --card: #141414; --accent: #f5f5f5; --accent-ink: #0e0e0e;
  --brand-soft: rgba(174, 26, 28, .14); --ok-soft: rgba(22, 101, 52, .18); --warn-soft: rgba(146, 64, 14, .18); --info-soft: rgba(30, 58, 138, .2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 15px;
  -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; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.ico.lg { width: 26px; height: 26px; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ازرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; background: var(--card); color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.985); }
.btn-primary, .btn-dark { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-dark:hover { background: #2b2b2b; }
:root[data-theme="dark"] .btn-primary:hover { background: #e5e5e5; }
.btn-line { border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--soft-2); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--brand); border-color: var(--line); }
.btn-danger:hover { border-color: var(--brand); }
.link { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

/* حقول */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .label { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); outline: none; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 23, 23, .06); }
.input[dir="ltr"] { text-align: left; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.alert-error { background: var(--brand-soft); color: var(--brand); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--info-soft); color: var(--info); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 500; background: var(--soft-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-new { background: var(--info-soft); color: var(--info); }
.badge-confirmed { background: var(--warn-soft); color: var(--warn); }
.badge-shipped { background: #f4f2fa; color: #4c1d95; }
.badge-delivered { background: var(--ok-soft); color: var(--ok); }
.badge-collected { background: var(--ink); color: var(--card); }
.badge-cancelled, .badge-returned { background: var(--brand-soft); color: var(--brand); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 24px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto !important; } }
