@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&family=Cinzel:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --gold-primary: #C9A84C;
  --gold-bright: #FFD700;
  --gold-light: #F5D98A;
  --gold-dark: #8B6914;
  --gold-ultra: #E8C547;
  --black-deep: #080A0F;
  --black-card: #0D1117;
  --black-surface: #111827;
  --black-elevated: #1A2332;
  --marble-dark: #0A0C10;
  --silver: #C0C0C0;
  --silver-light: #E8E8E8;
  --text-primary: #F0E6C8;
  --text-secondary: #B8A878;
  --text-muted: #7A6A4A;
  --glow-gold: rgba(201, 168, 76, 0.6);
  --glow-gold-soft: rgba(201, 168, 76, 0.15);
  --border-gold: rgba(201, 168, 76, 0.3);
  --circuit-color: rgba(201, 168, 76, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background: var(--black-deep);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
}

body.ltr {
  direction: ltr;
  font-family: 'Rajdhani', 'Tajawal', sans-serif;
}

/* ========== CIRCUIT BOARD BACKGROUND ========== */
.circuit-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.circuit-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--circuit-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--circuit-color) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 50%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
  animation: circuitPulse 8s ease-in-out infinite;
}

.circuit-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(139,105,20,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(201,168,76,0.06) 0%, transparent 50%);
}

@keyframes circuitPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0;
}

@keyframes float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(8,10,15,0.95) 0%, rgba(8,10,15,0.8) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(8,10,15,0.98);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  filter:
    drop-shadow(0 0 8px rgba(255,165,0,0.8))
    drop-shadow(0 0 18px rgba(201,168,76,0.5));
  transition: filter 0.3s;
  mix-blend-mode: normal;
}

.nav-logo-img:hover {
  filter:
    drop-shadow(0 0 14px rgba(255,215,0,1))
    drop-shadow(0 0 30px rgba(201,168,76,0.8))
    drop-shadow(0 0 50px rgba(201,168,76,0.4));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.2;
  text-shadow: 0 0 10px var(--glow-gold);
}

.nav-brand-en {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.lang-toggle:hover {
  background: var(--glow-gold-soft);
  border-color: var(--gold-primary);
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--black-deep);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(201,168,76,0.3);
}

.btn-nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  box-shadow: 0 0 25px rgba(201,168,76,0.6);
  transform: translateY(-1px);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(139,105,20,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 40%),
    linear-gradient(180deg, rgba(8,10,15,0.2) 0%, rgba(8,10,15,0.5) 100%);
}

.hero-image-bg {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.7); }
  50% { box-shadow: 0 0 0 8px rgba(255,215,0,0); }
}

.hero-key-icon {
  animation: keyFloat 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes keyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

.hero-title-ar {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 40%, var(--gold-dark) 70%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.5));
}

.hero-title-en {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--gold-dark);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold-primary);
  letter-spacing: 3px;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: 0 0 20px var(--glow-gold);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #a07820 50%, var(--gold-dark) 100%);
  color: var(--black-deep);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(201,168,76,0.4), 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(201,168,76,0.7), 0 8px 30px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: var(--glow-gold-soft);
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px var(--glow-gold-soft);
  transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold-primary);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title-ar {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-title-en {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: 1.5rem auto;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ========== MODULES GRID ========== */
.modules-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--black-deep) 0%, var(--marble-dark) 50%, var(--black-deep) 100%);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.module-card {
  background: linear-gradient(135deg, var(--black-card) 0%, var(--black-surface) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.module-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow:
    0 0 30px rgba(201,168,76,0.2),
    0 20px 40px rgba(0,0,0,0.4),
    inset 0 0 30px rgba(201,168,76,0.03);
}

.module-card:hover::before { opacity: 1; }
.module-card:hover::after { transform: scaleX(1); }

.module-icon-wrap {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  transition: all 0.3s;
  position: relative;
}

.module-card:hover .module-icon-wrap {
  background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.1));
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
  transform: scale(1.1) rotate(5deg);
}

.module-number {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  background: var(--gold-primary);
  color: var(--black-deep);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
}

.module-title-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.module-title-en {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.module-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.module-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.module-features li {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.module-arrow {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 32px;
  height: 32px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s;
  opacity: 0;
}

.module-card:hover .module-arrow {
  opacity: 1;
  background: rgba(201,168,76,0.2);
}

/* ========== FEATURES SECTION ========== */
.features-section {
  background: var(--black-card);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.feature-item:hover {
  background: var(--glow-gold-soft);
  border-color: var(--border-gold);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.5));
}

.feature-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta-section {
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-title span {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--black-card);
  border-top: 1px solid var(--border-gold);
  padding: 3rem 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand-logo {
  height: 65px;
  width: auto;
  margin-bottom: 1rem;
  filter:
    drop-shadow(0 0 10px rgba(255,165,0,0.8))
    drop-shadow(0 0 22px rgba(201,168,76,0.5));
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-col-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-gold);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-text span {
  color: var(--gold-primary);
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ========== GOLD LINE SEPARATOR ========== */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-bright), var(--gold-primary), transparent);
  margin: 0;
  opacity: 0.4;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== MOBILE MENU ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--gold-primary);
  transition: all 0.3s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 2rem; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== PAGE TRANSITIONS ========== */
.page-transition {
  animation: pageIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== GLOWING BORDER CARDS ========== */
.glow-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--gold-primary) 0deg,
    transparent 60deg,
    transparent 300deg,
    var(--gold-primary) 360deg
  );
  border-radius: inherit;
  animation: rotate-border 4s linear infinite;
  opacity: 0.6;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-border {
  to { --angle: 360deg; }
}

/* ========== MODULE PAGE STYLES ========== */
.module-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.module-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15rem;
  opacity: 0.03;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  justify-content: center;
}

.breadcrumb a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--gold-primary); }
.breadcrumb-sep { color: var(--gold-dark); }

.module-tag {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

/* ========== FEATURES LIST ========== */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--black-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--gold-primary);
  background: var(--black-surface);
  transform: translateX(-4px);
}

.feature-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
}

.feature-card-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.feature-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== DASHBOARD STYLES ========== */
.dashboard-body {
  direction: rtl;
  background: #070B12;
  min-height: 100vh;
  font-family: 'Tajawal', sans-serif;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--black-card);
  border-left: 1px solid var(--border-gold);
  padding: 0;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  text-align: center;
}

.sidebar-logo {
  height: 50px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
}

.sidebar-title {
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.sidebar-nav {
  padding: 1rem 0;
}

.sidebar-section-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 0.8rem 1.5rem 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-right: 2px solid transparent;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  font-family: 'Tajawal', sans-serif;
}

.sidebar-link:hover, .sidebar-link.active {
  color: var(--gold-primary);
  background: rgba(201,168,76,0.05);
  border-right-color: var(--gold-primary);
}

.sidebar-link-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.main-content {
  flex: 1;
  margin-right: 260px;
  padding: 0;
}

.dash-topbar {
  background: var(--black-card);
  border-bottom: 1px solid var(--border-gold);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-page-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dash-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--black-deep);
  font-size: 0.9rem;
}

.dash-body {
  padding: 2rem;
}

/* Dashboard Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--black-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 25px rgba(201,168,76,0.15);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.stat-icon {
  font-size: 1.5rem;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-trend {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
}

.stat-trend.up {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}

.stat-trend.down {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Content Editor */
.editor-panel {
  background: var(--black-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.editor-header {
  background: var(--black-surface);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.editor-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--black-deep);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select option {
  background: var(--black-card);
}

.btn-save {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--black-deep);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-save:hover {
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}

.btn-danger {
  background: transparent;
  color: #ef4444;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.3);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-danger:hover {
  background: rgba(239,68,68,0.1);
}

/* Pages table */
.pages-table {
  width: 100%;
  border-collapse: collapse;
}

.pages-table th {
  text-align: right;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-gold);
  font-weight: 600;
}

.pages-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.05);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pages-table tr:hover td {
  background: rgba(201,168,76,0.03);
}

.page-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.page-status.published {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}

.page-status.draft {
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
}

.edit-btn {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Tajawal', sans-serif;
}

.edit-btn:hover {
  background: rgba(201,168,76,0.2);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--black-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
}

.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== GOLD KEY SVG STYLES ========== */
.gk-key-wrap {
  position: relative;
  width: 500px;
  max-width: 88vw;
  margin: 0 auto 2.5rem;
  animation: keyFloat 4s ease-in-out infinite;
}
.gk-key-svg {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(255,215,0,0.95))
    drop-shadow(0 0 28px rgba(201,168,76,0.75))
    drop-shadow(0 0 55px rgba(201,168,76,0.45))
    drop-shadow(0 0 90px rgba(201,168,76,0.2));
}
.gk-halo {
  position: absolute;
  top: 50%; left: 19%;
  transform: translate(-50%,-50%);
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.18) 0%, transparent 70%);
  animation: haloPulse 3s ease-in-out infinite;
  pointer-events: none;
}
.gk-halo2 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 65%);
  animation: haloPulse 3s ease-in-out infinite reverse;
  animation-delay: 1.5s;
}
@keyframes haloPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity:0.6; }
  50%      { transform: translate(-50%,-50%) scale(1.3); opacity:1;   }
}

/* ================================================
   LIGHT MODE - Blue & White Theme
   ================================================ */

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.theme-toggle:hover {
  background: var(--glow-gold-soft);
  border-color: var(--gold-primary);
}

/* Show/hide icons based on current theme */
[data-theme="dark"]  .theme-icon-light,
[data-theme="dark"]  .theme-label-light { display: none; }
[data-theme="light"] .theme-icon-dark,
[data-theme="light"] .theme-label-dark  { display: none; }

/* ── LIGHT MODE VARIABLES ── */
[data-theme="light"] {
  --gold-primary:    #1565C0;
  --gold-bright:     #1976D2;
  --gold-light:      #1E88E5;
  --gold-dark:       #0D47A1;
  --gold-ultra:      #42A5F5;
  --black-deep:      #F0F4FF;
  --black-card:      #FFFFFF;
  --black-surface:   #E8EFF9;
  --black-elevated:  #D6E4F7;
  --marble-dark:     #EBF2FB;
  --silver:          #90CAF9;
  --silver-light:    #E3F2FD;
  --text-primary:    #0D1B2A;
  --text-secondary:  #1A3A5C;
  --text-muted:      #4A6A8A;
  --glow-gold:       rgba(21,101,192,0.4);
  --glow-gold-soft:  rgba(21,101,192,0.08);
  --border-gold:     rgba(21,101,192,0.25);
  --circuit-color:   rgba(21,101,192,0.06);
}

/* ── LIGHT MODE BODY ── */
[data-theme="light"] body {
  background: #F0F4FF;
  color: #0D1B2A;
}

/* ── LIGHT MODE NAVBAR ── */
[data-theme="light"] .navbar {
  background: linear-gradient(180deg, rgba(240,244,255,0.97) 0%, rgba(240,244,255,0.92) 100%);
  border-bottom: 1px solid rgba(21,101,192,0.15);
  box-shadow: 0 2px 20px rgba(21,101,192,0.08);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(240,244,255,0.99);
}
[data-theme="light"] .nav-brand-ar { color: #1565C0; text-shadow: none; }
[data-theme="light"] .nav-brand-en { color: #1976D2; }
[data-theme="light"] .nav-links a  { color: #1A3A5C; }
[data-theme="light"] .nav-links a:hover { color: #1565C0; }
[data-theme="light"] .nav-links a::after { background: #1565C0; }
[data-theme="light"] .lang-toggle {
  border-color: rgba(21,101,192,0.3);
  color: #1565C0;
}
[data-theme="light"] .lang-toggle:hover { background: rgba(21,101,192,0.08); }
[data-theme="light"] .theme-toggle {
  border-color: rgba(21,101,192,0.3);
  color: #1565C0;
}
[data-theme="light"] .btn-nav-cta {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: #fff;
  box-shadow: 0 0 15px rgba(21,101,192,0.3);
}
[data-theme="light"] .btn-nav-cta:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  box-shadow: 0 0 25px rgba(21,101,192,0.5);
}
[data-theme="light"] .hamburger span { background: #1565C0; }

/* ── LIGHT MODE HERO ── */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(21,101,192,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(25,118,210,0.05) 0%, transparent 40%),
    linear-gradient(180deg, rgba(240,244,255,0.3) 0%, rgba(240,244,255,0.7) 100%);
}
[data-theme="light"] .hero-eyebrow {
  background: rgba(21,101,192,0.08);
  border-color: rgba(21,101,192,0.2);
  color: #1565C0;
}
[data-theme="light"] .hero-eyebrow-dot { background: #1565C0; }
[data-theme="light"] .hero-title-ar {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #1976D2 70%, #42A5F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}
[data-theme="light"] .hero-title-en { color: #1976D2; }
[data-theme="light"] .hero-subtitle  { color: #1A3A5C; }
[data-theme="light"] .hero-tagline   { color: #1565C0; }
[data-theme="light"] .hero-stat-num  { color: #1565C0; text-shadow: none; }
[data-theme="light"] .hero-stat-label { color: #4A6A8A; }

/* ── LIGHT MODE KEY GLOW ── */
[data-theme="light"] .gk-key-svg {
  filter:
    drop-shadow(0 0 8px rgba(21,101,192,0.6))
    drop-shadow(0 0 20px rgba(21,101,192,0.3))
    drop-shadow(0 0 40px rgba(21,101,192,0.15)) !important;
}
[data-theme="light"] .gk-halo {
  background: radial-gradient(circle, rgba(21,101,192,0.12) 0%, transparent 68%);
}
[data-theme="light"] .gk-halo2 {
  background: radial-gradient(circle, rgba(21,101,192,0.08) 0%, transparent 65%);
}

/* ── LIGHT MODE BUTTONS ── */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(21,101,192,0.3), 0 4px 20px rgba(0,0,0,0.1);
}
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 0 35px rgba(21,101,192,0.5), 0 8px 25px rgba(0,0,0,0.15);
}
[data-theme="light"] .btn-secondary {
  color: #1565C0;
  border-color: rgba(21,101,192,0.3);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(21,101,192,0.06);
  border-color: #1565C0;
}

/* ── LIGHT MODE SECTIONS ── */
[data-theme="light"] .section-eyebrow { color: #1565C0; }
[data-theme="light"] .section-title-ar {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .section-title-en { color: #4A6A8A; }
[data-theme="light"] .section-divider {
  background: linear-gradient(90deg, transparent, #1565C0, transparent);
}
[data-theme="light"] .section-desc { color: #1A3A5C; }
[data-theme="light"] .gold-line {
  background: linear-gradient(90deg, transparent, #1565C0, #42A5F5, #1565C0, transparent);
}

/* ── LIGHT MODE FEATURES ── */
[data-theme="light"] .features-section {
  background: #FFFFFF;
  border-color: rgba(21,101,192,0.1);
}
[data-theme="light"] .feature-item:hover {
  background: rgba(21,101,192,0.05);
  border-color: rgba(21,101,192,0.2);
}
[data-theme="light"] .feature-title { color: #1565C0; }
[data-theme="light"] .feature-desc  { color: #1A3A5C; }

/* ── LIGHT MODE MODULE CARDS ── */
[data-theme="light"] .modules-section {
  background: linear-gradient(180deg, #F0F4FF 0%, #E8EFF9 50%, #F0F4FF 100%);
}
[data-theme="light"] .module-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F4FF 100%);
  border-color: rgba(21,101,192,0.15);
  box-shadow: 0 2px 12px rgba(21,101,192,0.06);
}
[data-theme="light"] .module-card:hover {
  border-color: #1565C0;
  box-shadow: 0 0 25px rgba(21,101,192,0.15), 0 10px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] .module-card::after {
  background: linear-gradient(90deg, transparent, #1565C0, transparent);
}
[data-theme="light"] .module-icon-wrap {
  background: linear-gradient(135deg, rgba(21,101,192,0.12), rgba(21,101,192,0.04));
  border-color: rgba(21,101,192,0.2);
}
[data-theme="light"] .module-number { background: #1565C0; color: #fff; }
[data-theme="light"] .module-title-ar { color: #0D47A1; }
[data-theme="light"] .module-title-en { color: #4A6A8A; }
[data-theme="light"] .module-desc     { color: #1A3A5C; }
[data-theme="light"] .module-features li {
  background: rgba(21,101,192,0.06);
  border-color: rgba(21,101,192,0.12);
  color: #1A3A5C;
}
[data-theme="light"] .module-arrow {
  background: rgba(21,101,192,0.08);
  border-color: rgba(21,101,192,0.2);
  color: #1565C0;
}

/* ── LIGHT MODE CTA ── */
[data-theme="light"] .cta-section::before {
  background: radial-gradient(circle, rgba(21,101,192,0.06) 0%, transparent 70%);
}
[data-theme="light"] .cta-title { color: #0D1B2A; }
[data-theme="light"] .cta-title span {
  background: linear-gradient(135deg, #1565C0, #1976D2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .cta-subtitle { color: #1A3A5C; }

/* ── LIGHT MODE FORMS ── */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: #F8FBFF;
  border-color: rgba(21,101,192,0.2);
  color: #0D1B2A;
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: #1565C0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
[data-theme="light"] .form-label { color: #1A3A5C; }

/* ── LIGHT MODE FOOTER ── */
[data-theme="light"] .footer {
  background: #FFFFFF;
  border-color: rgba(21,101,192,0.1);
}
[data-theme="light"] .footer-brand-desc { color: #4A6A8A; }
[data-theme="light"] .footer-col-title  { color: #1565C0; }
[data-theme="light"] .footer-col ul li a { color: #4A6A8A; }
[data-theme="light"] .footer-col ul li a:hover { color: #1565C0; }
[data-theme="light"] .footer-bottom { border-color: rgba(21,101,192,0.1); }
[data-theme="light"] .footer-bottom-text { color: #4A6A8A; }
[data-theme="light"] .footer-bottom-text span { color: #1565C0; }

/* ── LIGHT MODE CIRCUIT BG ── */
[data-theme="light"] .circuit-bg::before {
  background-image:
    linear-gradient(rgba(21,101,192,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,101,192,0.05) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(21,101,192,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(21,101,192,0.03) 0%, transparent 50%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
}
[data-theme="light"] .circuit-bg::after {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(21,101,192,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(21,101,192,0.04) 0%, transparent 50%);
}

/* ── LIGHT MODE LOGO ── */
[data-theme="light"] .nav-logo-img {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15)) drop-shadow(0 0 10px rgba(21,101,192,0.25)) !important;
}
[data-theme="light"] .footer-brand-logo {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15)) drop-shadow(0 0 10px rgba(21,101,192,0.25)) !important;
}

/* ── LIGHT MODE TESTIMONIALS ── */
[data-theme="light"] .editor-panel,
[data-theme="light"] [style*="background:var(--black-surface)"],
[data-theme="light"] [style*="background:var(--black-card)"] {
  background: #FFFFFF !important;
  border-color: rgba(21,101,192,0.12) !important;
}

/* ── LIGHT MODE SCROLL INDICATOR ── */
[data-theme="light"] .hero .scroll-dot-wrap { border-color: rgba(21,101,192,0.3); }
[data-theme="light"] .hero .scroll-dot-wrap div { background: #1565C0; }

/* ── SMOOTH THEME TRANSITION ── */
body, .navbar, .module-card, .feature-item, .hero-bg,
.modules-section, .features-section, .footer, .section {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ================================================
   DASHBOARD LIGHT MODE
   ================================================ */

[data-theme="light"] .dashboard-body {
  background: #EEF2FB;
}

/* Sidebar */
[data-theme="light"] .sidebar {
  background: #FFFFFF;
  border-color: rgba(21,101,192,0.12);
  box-shadow: 2px 0 20px rgba(21,101,192,0.06);
}
[data-theme="light"] .sidebar-header {
  border-color: rgba(21,101,192,0.12);
  background: #F5F8FF;
}
[data-theme="light"] .sidebar-title { color: #1565C0; }
[data-theme="light"] .sidebar-section-label { color: #4A6A8A; }
[data-theme="light"] .sidebar-link { color: #1A3A5C; }
[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
  color: #1565C0;
  background: rgba(21,101,192,0.06);
  border-right-color: #1565C0;
}

/* Topbar */
[data-theme="light"] .dash-topbar {
  background: #FFFFFF;
  border-color: rgba(21,101,192,0.12);
  box-shadow: 0 2px 12px rgba(21,101,192,0.06);
}
[data-theme="light"] .dash-page-title { color: #0D47A1; }
[data-theme="light"] .dash-avatar {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
}

/* Stat cards */
[data-theme="light"] .stat-card {
  background: #FFFFFF;
  border-color: rgba(21,101,192,0.12);
  box-shadow: 0 2px 12px rgba(21,101,192,0.06);
}
[data-theme="light"] .stat-card:hover {
  border-color: #1565C0;
  box-shadow: 0 8px 25px rgba(21,101,192,0.12);
}
[data-theme="light"] .stat-value { color: #1565C0; text-shadow: none; }
[data-theme="light"] .stat-label { color: #4A6A8A; }
[data-theme="light"] .stat-icon {
  background: rgba(21,101,192,0.08);
}

/* Editor panels */
[data-theme="light"] .editor-panel {
  background: #FFFFFF;
  border-color: rgba(21,101,192,0.12);
}
[data-theme="light"] .editor-header {
  background: #F5F8FF;
  border-color: rgba(21,101,192,0.1);
}
[data-theme="light"] .editor-title { color: #1565C0; }

/* Forms */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: #F8FBFF;
  border-color: rgba(21,101,192,0.2);
  color: #0D1B2A;
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] .form-select:focus {
  border-color: #1565C0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
[data-theme="light"] .form-label { color: #1A3A5C; }

/* Buttons */
[data-theme="light"] .btn-save {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: #fff;
}
[data-theme="light"] .btn-save:hover {
  box-shadow: 0 0 20px rgba(21,101,192,0.4);
}

/* Table */
[data-theme="light"] .pages-table th {
  color: #4A6A8A;
  border-color: rgba(21,101,192,0.1);
}
[data-theme="light"] .pages-table td {
  color: #1A3A5C;
  border-color: rgba(21,101,192,0.05);
}
[data-theme="light"] .pages-table tr:hover td {
  background: rgba(21,101,192,0.03);
}
[data-theme="light"] .edit-btn {
  background: rgba(21,101,192,0.08);
  border-color: rgba(21,101,192,0.2);
  color: #1565C0;
}
[data-theme="light"] .edit-btn:hover {
  background: rgba(21,101,192,0.15);
}

/* Status badges */
[data-theme="light"] .page-status.published {
  background: rgba(21,180,92,0.1);
  color: #15803d;
}
[data-theme="light"] .page-status.draft {
  background: rgba(202,138,4,0.1);
  color: #a16207;
}

/* Quick links */
[data-theme="light"] .dash-body a[style*="background:var(--black-card)"] {
  background: #FFFFFF !important;
  border-color: rgba(21,101,192,0.15) !important;
  color: #1A3A5C !important;
}

/* Toast */
[data-theme="light"] .toast {
  background: #FFFFFF;
  border-color: rgba(21,101,192,0.2);
  color: #0D1B2A;
  box-shadow: 0 10px 30px rgba(21,101,192,0.1);
}

/* Dividers in sidebar */
[data-theme="light"] .sidebar div[style*="background:var(--border-gold)"] {
  background: rgba(21,101,192,0.1) !important;
}

/* Module cards in dashboard */
[data-theme="light"] .dash-body a[style*="background:var(--black-surface)"] {
  background: #F5F8FF !important;
  border-color: rgba(21,101,192,0.15) !important;
}

/* Theme toggle button in sidebar */
[data-theme="light"] #dashThemeToggle {
  border-color: rgba(21,101,192,0.25) !important;
  color: #1565C0 !important;
}
[data-theme="light"] #dashThemeToggle:hover {
  background: rgba(21,101,192,0.08) !important;
}
