/* ===== Root Variables ===== */
:root {
  --primary: #6c0311;
  --primary-light: #8a1525;
  --primary-dark: #4a0009;
  --primary: #5a020e;
  --primary-light: #fef1f2;
  --primary-dark: #3a010a;
  --gold: #d4af37;
  --secondary: #c9a227;
  --accent: #1e293b;
  --blue-dark: #082d55;

  /* Aliases for legacy code compatibility */
  --primary-color: #5a020e;
  --secondary-color: #c9a227;
  --text-color: #0f172a;
  --text-dark: #0f172a;

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --white: #ffffff;
  --border: #e2e8f0;

  --font-ar: 'Cairo', 'Tajawal', sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font: var(--font-ar);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 50px rgba(108,3,17,0.1);
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
}

[lang="en"] {
  --font: var(--font-en);
}

/* ===== Reset ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background-color: var(--bg-main);
  background-image: radial-gradient(rgba(108,3,17,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text-main);
  overflow-x: hidden;
  direction: inherit;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Preloader ===== */
#preloader {
  position: fixed; inset: 0; background: var(--bg-main);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-size: 2.5rem; font-weight: 800; color: var(--primary);
  margin-bottom: 20px; letter-spacing: 2px;
}
.preloader-logo img { height: 80px; margin: 0 auto 10px; }
.preloader-bar {
  width: 200px; height: 3px; background: var(--border);
  border-radius: 4px; overflow: hidden; margin: 0 auto;
}
.preloader-fill {
  width: 0; height: 100%; background: var(--primary);
  animation: preloaderFill 1.5s ease forwards;
}
@keyframes preloaderFill { to { width: 100%; } }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  padding: 10px 0; box-shadow: 0 2px 24px rgba(0,0,0,.08);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.nav-logo img { height: 50px; width: auto; object-fit: contain; }
.logo-text { color: var(--text-main); font-weight: 400; }
.logo-text strong { color: var(--primary); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav-link {
  padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-muted);
  font-size: .95rem; transition: var(--transition); position: relative; font-weight: 500;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(108,3,17,.05); }
.nav-btn {
  padding: 10px 24px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; transition: var(--transition); margin-inline-start: 8px;
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(108,3,17,.3); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.hamburger span {
  width: 26px; height: 2.5px; background: var(--primary);
  border-radius: 4px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; inset-inline-end: -100%; width: 280px; height: 100vh;
  background: var(--bg-main); z-index: 999; padding: 80px 24px 40px;
  transition: inset-inline-end .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 30px rgba(0,0,0,.1);
  border-inline-start: 1px solid var(--border);
}
.mobile-menu.active { inset-inline-end: 0; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a {
  display: block; padding: 14px 20px; border-radius: var(--radius-sm);
  color: var(--text-main); font-size: 1.05rem; transition: var(--transition); font-weight: 500;
}
.mobile-menu a:hover { background: rgba(108,3,17,.05); color: var(--primary); }
.mobile-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: var(--white) !important; font-weight: 700; text-align: center;
  border-radius: var(--radius-sm) !important; margin-top: 8px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4f6f9 100%);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(201,160,63,.1) 0%, transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(108,3,17,.05) 0%, transparent 50%);
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  background: rgba(108,3,17,.1); color: var(--primary);
  font-size: .9rem; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(108,3,17,.15);
  animation: fadeInUp .8s ease;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.3; margin-bottom: 20px; animation: fadeInUp .8s ease .1s both;
  color: var(--text-main);
}
.highlight { color: var(--primary); }
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 32px; animation: fadeInUp .8s ease .2s both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp .8s ease .3s both; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-weight: 700; border-radius: var(--radius-sm);
  font-size: 1rem; border: none; cursor: pointer; transition: var(--transition);
  font-family: var(--font);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(108,3,17,.3); color: var(--white); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border: 2px solid var(--primary);
  color: var(--primary); font-weight: 600; border-radius: var(--radius-sm);
  font-size: 1rem; transition: var(--transition); cursor: pointer;
  background: transparent; font-family: var(--font);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Hero floating cards */
.hero-image-side {
  position: absolute; left: 5%; top: 50%; transform: translateY(-50%);
  width: 450px; height: 450px;
}
.hero-image-side img.hero-main-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 250px; height: 250px; z-index: 1;
  animation: floatLogo 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(108,3,17,.15));
}
.hero-circle-glow {
  position: absolute; width: 350px; height: 350px;
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(201,160,63,.15) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite; z-index: 0;
}
.hero-card-float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border: 1px solid var(--border); color: var(--text-main);
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,.08); z-index: 2;
}
.hero-card-float i { color: var(--gold); font-size: 1.3rem; }
.card1 { top: 15%; right: 5%; animation: float 4s ease-in-out infinite; }
.card2 { top: 75%; left: 5%; animation: float 4s ease-in-out infinite .5s; }
.card3 { bottom: 15%; right: 10%; animation: float 4s ease-in-out infinite 1s; }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: .85rem; z-index: 2; font-weight: 500;
}
.bounce { animation: bounce 2s infinite; color: var(--primary); }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatLogo {
  0%,100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
}
@keyframes pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .6; }
  50% { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}
/* Split Hero Layout */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: right;
  position: relative;
  z-index: 2;
}

[dir="ltr"] .hero-split {
  text-align: left;
}

.hero-text-side {
  flex: 1;
  max-width: 600px;
}

.hero-visual-side {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  animation: floatImage 6s ease-in-out infinite;
}

.hero-main-img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.floating-stats-card {
  position: absolute;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: floatCard 4s ease-in-out infinite;
}

.f-card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.f-card-2 { bottom: 15%; left: -20px; animation-delay: 1s; }
.f-card-3 { bottom: -10px; right: 20%; animation-delay: 2s; }

.floating-stats-card i {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-stats-card .info {
  display: flex;
  flex-direction: column;
}

.floating-stats-card .info span:first-child {
  font-weight: 800;
  color: var(--text-main);
  font-size: 1.1rem;
}

.floating-stats-card .info span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Aura Minimalist Design (No Images) */
.hero-aura {
  min-height: 100vh;
  position: relative;
  padding: 160px 0 100px;
  background: var(--bg-main);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aura-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.aura-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: auraMove 20s infinite alternate ease-in-out;
}

.aura-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90,2,14,0.15) 0%, rgba(255,255,255,0) 70%);
  top: -100px;
  left: -50px;
}

.aura-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, rgba(255,255,255,0) 70%);
  bottom: -100px;
  right: -50px;
  animation-delay: -5s;
}

.aura-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(90,2,14,0.08) 0%, rgba(255,255,255,0) 70%);
  top: 20%;
  right: 15%;
  animation-duration: 25s;
}

.aura-4 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gold);
  bottom: 20%;
  left: 15%;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  z-index: 1;
  animation: auraMove 18s infinite alternate;
}

@keyframes auraMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 100px) scale(1.2); }
  100% { transform: translate(-30px, -50px) scale(0.9); }
}

.hero-aura-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(108, 3, 17, 0.05);
  border: 1px solid rgba(108, 3, 17, 0.1);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 30px;
  backdrop-filter: blur(5px);
}

.aura-title {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary-dark);
  letter-spacing: -2px;
  margin-bottom: 30px;
  text-shadow: 0 10px 30px rgba(90,2,14,0.1);
}

.aura-title span {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800;
  font-size: 1.4em;
  color: #8b0000; /* Dark Red as requested */
  display: block;
  margin-top: 20px;
}

[lang="en"] .aura-title span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  color: #8b0000;
  background: none;
  -webkit-text-fill-color: initial;
}

.aura-desc {
  font-size: 1.4rem;
  color: #000000; /* Black as requested */
  line-height: 1.7;
  margin-bottom: 50px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.aura-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Floating Shapes Background */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(108, 3, 17, 0.05), rgba(201, 160, 63, 0.05));
  filter: blur(40px);
  animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation-duration: 25s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  background: linear-gradient(135deg, rgba(201, 160, 63, 0.08), rgba(108, 3, 17, 0.03));
  animation-duration: 30s;
  animation-delay: -5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  top: 20%;
  left: 10%;
  background: linear-gradient(135deg, rgba(108, 3, 17, 0.04), rgba(201, 160, 63, 0.04));
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes floatShape {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(30px, 50px) rotate(10deg) scale(1.1); }
  66% { transform: translate(-20px, 20px) rotate(-5deg) scale(0.9); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Decorative SVG Shape */
.hero-decorative-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-decorative-svg svg {
  width: 100%;
  height: auto;
}

/* ===== Stats ===== */
.stats-section {
  padding: 60px 0; position: relative; z-index: 5;
  background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item {
  text-align: center; padding: 32px 16px;
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
  box-shadow: var(--shadow);
}
.stat-item:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 12px; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); margin-top: 4px; font-size: .95rem; font-weight: 500; }

/* ===== About ===== */
.about-section { padding: 100px 0; background: var(--bg-main); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(108,3,17,.08); color: var(--primary);
  font-size: .85rem; font-weight: 600; margin-bottom: 16px;
  border: 1px solid rgba(108,3,17,.15);
}
.section-badge.light {
  background: rgba(255,255,255,.15); color: var(--white);
  border-color: rgba(255,255,255,.2);
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800;
  margin-bottom: 20px; line-height: 1.4; color: var(--text-main);
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.about-text { color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; font-size: 1.05rem; }
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 24px 0 32px;
}
.about-features li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-main); font-size: .95rem; font-weight: 500;
}
.about-features i { color: var(--gold); font-size: 1rem; }
.about-visual { position: relative; }
.about-shape-bg {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-surface), #ffffff);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.about-info-cards {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; gap: 16px; padding: 30px;
}
.about-info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px);
  border: 1px solid var(--border); transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
}
.about-info-card:hover { border-color: var(--gold); transform: translateX(-4px); }
.about-info-card i { font-size: 1.5rem; color: var(--primary); }
.about-info-card strong { display: block; margin-bottom: 2px; font-size: 1.05rem; color: var(--text-main); }
.about-info-card p { color: var(--text-muted); font-size: .85rem; margin: 0; }

/* ===== Programs ===== */
.programs-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.program-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px 30px; border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.program-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.program-card.featured { border-color: var(--primary); border-width: 2px; }
.program-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 4px 14px; border-radius: 50px;
  background: var(--primary); color: var(--white);
  font-size: .75rem; font-weight: 700;
}
.program-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(108,3,17,.1), rgba(108,3,17,.03));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--primary); margin-bottom: 20px;
}
.program-card h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; color: var(--text-main); }
.program-card > p { color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-size: .95rem; }
.program-features { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.program-features li { display: flex; align-items: center; gap: 8px; color: var(--text-main); font-size: .9rem; font-weight: 500;}
.program-features i { color: var(--gold); font-size: .9rem; }

/* ===== Why Section ===== */
.why-section { padding: 100px 0; background: var(--bg-main); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  padding: 36px 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  text-align: center; transition: var(--transition); box-shadow: var(--shadow);
}
.why-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,160,63,.15), rgba(201,160,63,.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gold);
}
.why-card h4 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text-main); }
.why-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

/* ===== CTA / Newsletter ===== */
.cta-section {
  padding: 100px 0; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  overflow: hidden;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(201,160,63,.2), transparent 70%);
}
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 600px; margin: 0 auto; color: var(--white); }
.cta-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; color: var(--white); }
.highlight-light { color: var(--gold); }
.cta-content > p { color: rgba(255,255,255,.8); margin-bottom: 32px; line-height: 1.7; }
.cta-form {
  display: flex; flex-direction: column; gap: 14px;
}
.cta-form input {
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  color: var(--white); font-family: var(--font); font-size: 1rem;
  transition: var(--transition);
}
.cta-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.15); }
.cta-form input::placeholder { color: rgba(255,255,255,.6); }
.cta-privacy { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: 12px; }
.cta-privacy i { color: var(--gold); }
.cta-form .btn-primary { background: var(--gold); color: var(--primary-dark); }
.cta-form .btn-primary:hover { background: var(--white); color: var(--primary); box-shadow: 0 4px 15px rgba(255,255,255,.3); }

/* ===== Articles ===== */
.articles-section { padding: 100px 0; background: var(--bg-surface); border-top: 1px solid var(--border); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border); transition: var(--transition); box-shadow: var(--shadow);
}
.article-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.article-img { height: 200px; }
.article-body { padding: 24px; }
.article-cat {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  background: rgba(108,3,17,.08); color: var(--primary);
  font-size: .8rem; font-weight: 600; margin-bottom: 12px;
}
.article-body h4 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.5; color: var(--text-main); }
.article-body p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin-bottom: 14px; }
.article-link { color: var(--primary); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.article-link:hover { gap: 10px; color: var(--gold); }

/* ===== Contact ===== */
.contact-section { padding: 100px 0; background: var(--bg-main); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition); box-shadow: var(--shadow);
}
.contact-item:hover { border-color: var(--primary); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(108,3,17,.1), rgba(108,3,17,.03));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 2px; color: var(--text-main); font-size: 1.05rem; }
.contact-item p { color: var(--text-muted); font-size: .95rem; margin: 0; }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--bg-surface); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-main); font-family: var(--font); font-size: 1rem;
  transition: var(--transition); resize: none;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,3,17,.1); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #94a3b8; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: var(--white); }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.3rem; }
.footer-logo img { height: 35px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.7); line-height: 1.8; font-size: .95rem; margin-bottom: 20px; }
.footer-brand .social-link { background: rgba(255,255,255,.1); border-color: transparent; color: var(--white); }
.footer-brand .social-link:hover { background: var(--gold); color: var(--primary-dark); }
.footer-links-col h5 { color: var(--gold); margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; }
.footer-links-col li { margin-bottom: 12px; }
.footer-links-col a { color: rgba(255,255,255,.8); font-size: .95rem; transition: var(--transition); }
.footer-links-col a:hover { color: var(--gold); padding-inline-start: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  text-align: center; color: rgba(255,255,255,.6); font-size: .9rem;
}

/* ===== Scroll Top ===== */
.scroll-top {
  position: fixed; bottom: 30px; inset-inline-start: 30px; width: 48px; height: 48px;
  border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); border: none; cursor: pointer;
  font-size: 1.1rem; z-index: 900; opacity: 0; transform: translateY(20px);
  transition: var(--transition); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
/* Support both .visible and .show class for scroll-top */
.scroll-top.visible, .scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { box-shadow: 0 6px 24px rgba(108,3,17,.4); transform: translateY(-3px); }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 30px; right: 50%; transform: translateX(50%) translateY(100px);
  padding: 14px 28px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--primary-dark); font-weight: 700;
  font-family: var(--font); z-index: 9999; opacity: 0;
  transition: .4s ease; box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }

/* ===== Reveal Animations ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: .7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== Inner Pages Headers ===== */
.page-header {
  padding: 160px 24px 80px;
  background: linear-gradient(135deg, var(--bg-surface), #ffffff);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 800;
}
.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Auth (Login) Page ===== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4f6f9 100%);
  position: relative;
}
.auth-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(108,3,17,.05) 0%, transparent 40%);
  pointer-events: none;
}
.auth-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
}
.auth-card {
  background: var(--bg-card);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  text-align: center;
}
.auth-logo img {
  height: 60px;
  margin: 0 auto 24px;
}
.auth-card h2 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 10px;
}
.auth-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
}
.auth-form {
  text-align: right;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-group input {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(108,3,17,.1);
}
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}
.forgot-pwd {
  color: var(--primary);
  font-weight: 600;
}
.forgot-pwd:hover {
  color: var(--gold);
}
.auth-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.1rem;
}

/* ===== Verify Certificate Page ===== */
.verify-section {
  padding: 80px 0 120px;
  background: var(--bg-main);
}
.verify-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.verify-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(108,3,17,.08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}
.verify-card h2 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 30px;
}
.verify-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  text-align: right;
}
[dir="ltr"] .verify-form { text-align: left; }
.verify-form label { font-weight: 600; color: var(--text-dark); margin-bottom: -4px; }
.verify-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  transition: var(--transition);
}
.verify-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,3,17,.1);
}
.verify-result {
  margin-top: 30px;
  padding: 0;
  border-radius: var(--radius);
  text-align: right;
  transition: var(--transition);
  overflow: hidden;
}
.verify-result.hidden { display: none; }

/* Loading state */
.verify-loading {
  text-align: center; padding: 40px;
  color: var(--text-muted);
}
.verify-loading p { margin-top: 12px; }

/* Success state */
.verify-success {
  border: 1px solid rgba(34,197,94,.3);
  background: #f0fdf4;
}
.verify-result-header {
  text-align: center;
  padding: 30px 24px 20px;
  border-bottom: 1px solid rgba(34,197,94,.15);
}
.verify-check-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(34,197,94,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.8rem; color: #22c55e;
}
.verify-result-header h3 {
  font-size: 1.3rem; color: #166534; margin-bottom: 8px; font-weight: 700;
}
.verify-result-header p {
  color: #4ade80; font-size: 0.9rem; margin: 0;
}

/* Data grid */
.verify-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}
.verify-data-item {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(34,197,94,.1);
  border-left: 1px solid rgba(34,197,94,.1);
}
.verify-data-item:nth-child(odd) { border-left: none; }
.verify-data-label {
  display: block; font-size: 0.8rem; color: #6b7280;
  margin-bottom: 6px; font-weight: 500;
}
.verify-data-label i {
  margin-inline-start: 6px; color: var(--primary);
}
.verify-data-value {
  display: block; font-size: 1.05rem; color: var(--text-main);
  font-weight: 700;
}

/* Download */
.verify-download {
  padding: 20px 24px; text-align: center;
  background: rgba(34,197,94,.05);
}
.verify-download-btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.verify-download-btn i { font-size: 1.1rem; }

/* Error state */
.verify-error-result {
  border: 1px solid rgba(239,68,68,.3);
  background: #fef2f2;
}
.verify-error-result .verify-result-header {
  border-bottom: none;
}
.verify-error-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(239,68,68,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.8rem; color: #ef4444;
}
.verify-error-result .verify-result-header h3 {
  color: #991b1b;
}
.verify-error-result .verify-result-header p {
  color: #b91c1c;
}

@media (max-width: 600px) {
  .verify-data-grid { grid-template-columns: 1fr; }
  .verify-data-item { border-left: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
  .hero-image-side { display: none; }
  .hero-content { max-width: 100%; }
  .programs-grid, .why-grid, .articles-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .programs-grid, .why-grid, .articles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .hero { padding: 120px 20px 60px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 2rem; }
  
  /* Reduce excessive padding on mobile */
  .about-section, .programs-section, .why-section, .cta-section, .articles-section, .contact-section, .verify-section {
    padding: 60px 0;
  }
  .page-header { padding: 120px 20px 60px; }
  .admin-card, .verify-card, .contact-form, .auth-card { padding: 30px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .aura-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }
  .aura-title span {
    font-size: 3.8rem;
    margin-top: 10px;
  }
  .aura-desc {
    font-size: 1.15rem;
    padding: 0 10px;
    margin-bottom: 40px;
  }
  .aura-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
    gap: 15px;
  }
  .aura-actions .btn-primary,
  .aura-actions .btn-outline {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    justify-content: center;
  }
  .hero-aura {
    padding: 120px 0 60px;
  }
  .glass-badge {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* Specific scaling for Large/Pro Max Phones (Tall screens) */
@media (min-width: 400px) and (min-height: 800px) {
  .hero-aura {
    padding-top: 100px;
  }
  .aura-title {
    font-size: 3.8rem;
    margin-bottom: 25px;
  }
  .aura-title span {
    font-size: 4.5rem;
  }
  .aura-desc {
    font-size: 1.3rem;
    max-width: 85%;
    margin-bottom: 50px;
  }
  .aura-blob {
    filter: blur(100px);
    opacity: 0.7;
  }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .admin-card, .verify-card { margin: 0 15px; width: auto; padding: 25px 15px; }
  .cert-detail-item { flex-direction: column; text-align: right; gap: 5px; }
  [dir="ltr"] .cert-detail-item { text-align: left; }
}


/* --- Modals --- */
.nibras-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.nibras-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.nibras-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.nibras-modal.show .nibras-modal-content {
    transform: translateY(0);
}

.nibras-modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.nibras-modal-close:hover {
    color: var(--secondary-color);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px 30px;
    padding-left: 60px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--bg-surface);
    padding-bottom: 10px;
}

.modal-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.modal-list li {
    background: var(--bg-surface);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.modal-footer {
    padding: 20px 30px;
    background: var(--bg-surface);
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-footer .btn-primary {
    display: inline-block;
    padding: 12px 40px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .nibras-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    .modal-list {
        grid-template-columns: 1fr;
    }
    .modal-header {
        padding: 20px;
        padding-left: 50px;
    }
    .modal-body {
        padding: 20px;
    }
}

/* --- Shopping Cart --- */
.cart-badge {
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: top;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    inset-inline-end: -400px; /* Hidden by default */
    width: 350px;
    max-width: 90vw; /* Responsive width for mobile */
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 10001; /* Higher than mobile menu */
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
    transition: inset-inline-end 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    inset-inline-end: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(4px);
}

.cart-overlay.open {
    display: block;
}

.cart-header {
    background: var(--bg-surface);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.cart-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.cart-item-info p {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.remove-item {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    background: var(--bg-surface);
    border-top: 1px solid #ddd;
    flex-shrink: 0; /* Ensure footer doesn't shrink */
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--text-color);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}

.cart-overlay.open {
    display: block;
}

@media (max-width: 400px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* --- Floating Cart --- */
.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Left side for RTL */
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(201, 162, 39, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-cart:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(201, 162, 39, 0.6);
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

/* Adjust page-header if that's what user meant by banner */
.page-header {
    padding: 120px 0 60px 0 !important;
}

.page-header h1 {
    font-size: 2.8rem !important;
}

/* ===== Profile Page ===== */
.profile-section { padding: 120px 0 60px; background: var(--bg-surface); min-height: 80vh; }
.profile-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-hover); border: 1px solid var(--border);
  max-width: 800px; margin: 0 auto;
}
.profile-header {
  display: flex; align-items: center; gap: 24px;
  border-bottom: 2px solid var(--border); padding-bottom: 24px; margin-bottom: 32px;
}
.profile-avatar {
  width: 80px; height: 80px; min-width: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
}
.profile-info h2 { color: var(--text-main); margin-bottom: 6px; font-size: 1.5rem; }
.profile-info p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.profile-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.detail-item {
  background: var(--bg-surface); border: 1px solid var(--border);
  padding: 18px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.detail-item:hover { border-color: var(--primary); }
.detail-label {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 6px; display: block; font-weight: 500;
}
.detail-value { font-size: 1.1rem; color: var(--text-main); font-weight: 700; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 10px 20px rgba(90,2,14,0.2);
}
.logout-btn {
  background: #ffebee; color: #c62828; padding: 12px 28px;
  border-radius: var(--radius-sm); font-weight: 700; border: none;
  cursor: pointer; transition: var(--transition); font-family: var(--font);
  font-size: 1rem; display: inline-flex; align-items: center; gap: 8px;
}
.logout-btn:hover { background: #ffcdd2; transform: translateY(-2px); }

@media (max-width: 600px) {
  .profile-details { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-card { padding: 24px 16px; }
}

/* --- Dynamic Direction Support (RTL/LTR) --- */
html[dir="ltr"], html[dir="rtl"] {
    text-align: center;
}

/* logical properties for layout */
.hero-aura-content {
    text-align: center !important;
}

.section-header {
    text-align: center;
}

.aura-title span {
    display: block; /* Changed back to block for separate line */
    margin-top: 15px;
}

/* Adjust Cart for RTL to avoid overlap with mobile menu */
[dir="rtl"] .cart-sidebar {
    inset-inline-end: auto;
    inset-inline-start: -400px;
}
[dir="rtl"] .cart-sidebar.open {
    inset-inline-start: 0;
}
.admin-body {
    direction: rtl !important;
    text-align: right !important;
}
