@font-face { font-family: Tajawal; font-weight: 400; font-display: swap; src: url(/assets/fonts/tajawal-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Tajawal; font-weight: 400; font-display: swap; src: url(/assets/fonts/tajawal-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Tajawal; font-weight: 500; font-display: swap; src: url(/assets/fonts/tajawal-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Tajawal; font-weight: 500; font-display: swap; src: url(/assets/fonts/tajawal-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url(/assets/fonts/tajawal-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url(/assets/fonts/tajawal-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Tajawal; font-weight: 800; font-display: swap; src: url(/assets/fonts/tajawal-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Tajawal; font-weight: 800; font-display: swap; src: url(/assets/fonts/tajawal-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  color-scheme: dark;
  --frame: #3a2c57;
  --panel: #1a1527;
  --side: #221b34;
  --card: #221c32;
  --raise: #2b243f;
  --line: #382f50;
  --ink: #f1edf9;
  --soft: #bcb2d1;
  --faint: #978cb0;
  --accent: #a493ef;
  --accent-deep: #6f5cc9;
  --accent-ink: #ffffff;
  --wash: rgba(164, 147, 239, .13);
  --edge: #2f2745;
  --active: #4b3d86;
  --active-ink: #ffffff;
  --host: #35b0c4;
  --network: #d08f3f;
  --auth: #47b183;
  --shadow: #cf78bb;
  --good: #4fb286;
  --warn: #d9a441;
  --bad: #e5727f;
  --veil: rgba(16, 11, 28, .6);
  --lift: 0 18px 50px rgba(9, 5, 20, .38);
  --ease: cubic-bezier(.25, .6, .2, 1);
  --radius: 16px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --frame: #cfc4ea;
  --panel: #ebe6f5;
  --side: #ddd4ef;
  --card: #f5f1fb;
  --raise: #e3dbf2;
  --line: #cfc4e6;
  --ink: #291e45;
  --soft: #51456e;
  --faint: #5f527e;
  --accent: #5f46b8;
  --accent-deep: #6a52c0;
  --accent-ink: #ffffff;
  --wash: rgba(106, 82, 192, .13);
  --host: #0a6f82;
  --network: #93500a;
  --auth: #176b49;
  --shadow: #97357f;
  --good: #176b49;
  --warn: #7f5400;
  --bad: #ad2f41;
  --veil: rgba(52, 40, 84, .34);
  --lift: 0 18px 50px rgba(74, 56, 120, .16);
  --edge: #d3c8ea;
  --active: #6a52c0;
  --active-ink: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--panel); -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--accent-deep) transparent; }
body { margin: 0; min-height: 100dvh; background: var(--panel); color: var(--ink); font: 400 16px/1.65 Tajawal, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-tap-highlight-color: transparent; transition: background-color .35s var(--ease), color .35s var(--ease); }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
svg { display: block; }
::selection { background: var(--accent-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.still, .still * { transition: none !important; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; padding-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 12px; font-weight: 700; line-height: 1.2; background: var(--raise); border: 1px solid var(--line); transition: background-color .2s, border-color .2s, transform .2s var(--ease), opacity .2s; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn.main { background: var(--accent-deep); border-color: transparent; color: var(--accent-ink); }
.btn.main:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: default; }
.round { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--soft); transition: background-color .2s, color .2s; }
.round:hover { background: var(--wash); color: var(--ink); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 500; color: var(--soft); }
.input { width: 100%; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--wash); }
.note { color: var(--bad); font-weight: 500; min-height: 1.6em; }
.note.ok { color: var(--good); }

.pulse { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.locked { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.locked p { color: var(--soft); }
.credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; width: 100%; padding: 18px 0 0; color: var(--soft); font-size: 15px; }
.credit b { color: var(--ink); font-weight: 700; letter-spacing: .01em; }
