/*
 * N1-P13-F1-R1 — Unified Website/Admin Design Tokens
 * Design-only. No workflow, route, database, signing, payment, certificate,
 * subscriber, package, Telegram, Store Check, IPA Lab or security logic.
 */
:root {
  color-scheme: dark;
  --n1-font-ui: Inter, "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --n1-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --n1-space-1: 4px;
  --n1-space-2: 8px;
  --n1-space-3: 12px;
  --n1-space-4: 16px;
  --n1-space-5: 20px;
  --n1-space-6: 24px;
  --n1-space-8: 32px;
  --n1-space-10: 40px;
  --n1-space-12: 48px;

  --n1-radius-sm: 10px;
  --n1-radius-md: 14px;
  --n1-radius-lg: 18px;
  --n1-radius-xl: 24px;
  --n1-radius-2xl: 30px;
  --n1-radius-pill: 999px;

  --n1-canvas: #050816;
  --n1-canvas-deep: #020617;
  --n1-surface: rgba(15, 23, 42, 0.78);
  --n1-surface-strong: rgba(15, 23, 42, 0.94);
  --n1-surface-soft: rgba(255, 255, 255, 0.055);
  --n1-line: rgba(255, 255, 255, 0.105);
  --n1-line-strong: rgba(255, 255, 255, 0.17);
  --n1-ink: #f8fafc;
  --n1-ink-soft: #dbe7f5;
  --n1-muted: #9fb0c8;
  --n1-primary: #38bdf8;
  --n1-accent: #8b5cf6;
  --n1-success: #22c55e;
  --n1-warning: #f59e0b;
  --n1-danger: #ef4444;
  --n1-info: #3b82f6;

  --n1-shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.20);
  --n1-shadow-md: 0 22px 62px rgba(0, 0, 0, 0.28);
  --n1-shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.38);
  --n1-focus: 0 0 0 3px color-mix(in srgb, var(--n1-primary) 34%, transparent);
  --n1-ease: cubic-bezier(.2, .75, .25, 1);
  --n1-speed: 180ms;
}

html {
  font-family: var(--n1-font-ui);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", Inter, system-ui, sans-serif;
}

::selection {
  color: #fff;
  background: color-mix(in srgb, var(--n1-primary) 62%, var(--n1-accent));
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--n1-primary) 82%, #fff);
  outline-offset: 3px;
  box-shadow: var(--n1-focus);
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(img, video, canvas, svg) {
  max-inline-size: 100%;
}

:where(code, pre, kbd, samp) {
  font-family: var(--n1-font-mono);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .45) rgba(15, 23, 42, .45);
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(15, 23, 42, .45); }
*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(15, 23, 42, .72);
  border-radius: var(--n1-radius-pill);
  background: rgba(148, 163, 184, .42);
}

[data-n1-theme="light"] {
  color-scheme: light;
  --n1-canvas: #eef4fb;
  --n1-canvas-deep: #e6eef8;
  --n1-surface: rgba(255, 255, 255, .82);
  --n1-surface-strong: rgba(255, 255, 255, .96);
  --n1-surface-soft: rgba(15, 23, 42, .045);
  --n1-line: rgba(15, 23, 42, .10);
  --n1-line-strong: rgba(15, 23, 42, .16);
  --n1-ink: #0f172a;
  --n1-ink-soft: #23324a;
  --n1-muted: #607089;
}

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