/* Above-the-fold — يُحمَّل sync فقط؛ باقي CSS عبر deferred-styles.js */
:root {
  --bg-top: #0a2540;
  --bg-mid: #061828;
  --bg-bottom: #020a12;
  --bg: #061828;
  --text: #e8f1fa;
  --muted: #8ba3b8;
  --accent: #38bdf8;
  --ui: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --dmg-primary: #38bdf8;
  --dmg-bg-top: #0a2540;
  --dmg-bg-mid: #061828;
  --dmg-bg-bottom: #020a12;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
body.omdaa-code {
  overflow: hidden;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
}
[hidden] { display: none !important; }
#app {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background:
    radial-gradient(900px 420px at 85% -5%, rgba(56, 189, 248, 0.18), transparent 55%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%);
}
#login {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(165deg, var(--bg-top), var(--bg-bottom));
}
.login-logo { font-size: 32px; font-weight: 800; color: #fff; }
.login-tag { font-size: 22px; font-weight: 700; color: var(--accent); }
.login-sub { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
#desktop-mobile-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  font-family: var(--ui);
  color: #e8f1fa;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(56, 189, 248, 0.22), transparent 55%),
    linear-gradient(165deg, var(--dmg-bg-top) 0%, var(--dmg-bg-mid) 45%, var(--dmg-bg-bottom) 100%);
}
.dmg-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}
.dmg-title-en {
  margin: 0 0 14px;
  font-weight: 600;
  color: rgba(56, 189, 248, 0.92);
}
