/* Shared Dark Theme variables and background styling for AZRAR sub-pages */
:root {
  --navy: #181341; --navy2: #221c55; --navy3: #2a2460;
  --blue: #4f46e5; --blue-l: #6366f1; --blue-d: #1d4ed8;
  --gold: #cda434; --gold-l: #e6c55c;
  --ink: #cdd5e8; --head: #ffffff; --muted: #8ea5c8; --muted2: #63799b;
  --bg: #070518; --card: rgba(255,255,255,0.03); --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.04);
  --green: #22c55e; --danger: #ef4444;
  --font-ar: 'Tajawal', sans-serif; --font-en: 'Inter', sans-serif; --mono: 'IBM Plex Mono', monospace;
}

/* Background elements styling */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block !important;
}
.bg-photo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at 12% 15%, rgba(79,70,229,0.18) 0%, transparent 60%), radial-gradient(circle at 85% 70%, rgba(205,164,52,0.1) 0%, transparent 55%);
  pointer-events: none;
  display: block !important;
}

/* Stacking content over fixed canvas background */
.topbar, .phero, .guide-hero, .wrap, .cta, .guide-cta, footer, .site-footer {
  position: relative;
  z-index: 2;
}

/* Glassmorphism for subpage components */
.card, .step, .toc, .shot, .faq-item, .fb-card, .how-step, .cmp-table {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

/* Unified topbar styling */
.topbar {
  background: rgba(7, 5, 24, 0.78) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.brand {
  color: #fff !important;
}

/* Lang switcher and CTA on topbar */
.lang-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cdd5e8 !important;
}
.lang-link:hover {
  color: var(--gold-l) !important;
  border-color: var(--gold) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Unified Footer */
.site-footer {
  background: rgba(7, 5, 24, 0.92) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  position: relative;
  z-index: 2;
}

/* Alert panels / callouts in guide.html */
.step .tip {
  background: rgba(205, 164, 52, 0.08) !important;
  border: 1px solid rgba(205, 164, 52, 0.25) !important;
  color: var(--gold-l) !important;
}
.step .tip b {
  color: #fff !important;
}
.step .note {
  background: rgba(79, 70, 229, 0.08) !important;
  border: 1px solid rgba(79, 70, 229, 0.25) !important;
  color: #cdd5e8 !important;
}
.step .warn {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
}
.step .warn b {
  color: #fff !important;
}

/* Table stylings */
.cmp-table th {
  background: rgba(255, 255, 255, 0.04) !important;
}
.cmp-table th.hot {
  background: rgba(205, 164, 52, 0.12) !important;
}
.cmp-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.cmp-table td.hot {
  background: rgba(205, 164, 52, 0.03) !important;
  border-left: 1px solid rgba(205, 164, 52, 0.1) !important;
  border-right: 1px solid rgba(205, 164, 52, 0.1) !important;
}
.cmp-table tbody td:first-child {
  color: #fff !important;
}

/* Inline code tags and lists */
.path, kbd {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}
.toc a::before {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--gold-l) !important;
}

/* Motion system overrides */
.az-progress {
  background: linear-gradient(90deg, var(--blue), var(--blue-l), var(--gold-l)) !important;
}

@media(max-width: 768px) {
  #bg-canvas {
    display: none !important;
  }
}
