:root {
  --bg: #05070d; --surface: rgba(255,255,255,.04); --border: rgba(120,200,255,.18);
  --text: #e8f0ff; --muted: #8fa3c4; --accent: #3ee6ff; --accent2: #7c5cff;
  --danger: #ff6b81; --ok: #3dffb0;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; overflow-x: hidden; }
.grid-bg { position: fixed; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.glow { position: fixed; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .28; animation: drift 18s ease-in-out infinite alternate; }
.glow.a { background: var(--accent2); top: -25vmax; inset-inline-start: -15vmax; }
.glow.b { background: var(--accent); bottom: -30vmax; inset-inline-end: -15vmax; animation-delay: -9s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .glow, .dot { animation: none; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; backdrop-filter: blur(10px); }
.field { display: grid; gap: 6px; margin-block-end: 16px; }
.field label { font-size: 14px; color: var(--muted); }
.input { width: 100%; min-width: 0; background: rgba(0,0,0,.35); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea.input { min-height: 130px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0; border-radius: 10px; font: inherit; font-weight: 700; color: #04101a; background: linear-gradient(135deg, var(--accent), var(--accent2)); cursor: pointer; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
.err { color: var(--danger); font-size: 13px; min-height: 1.2em; }
.msg { min-height: 1.6em; margin-top: 12px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--danger); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
