/* ============================================================
   بُنْيَان Academy - Custom Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #1B4332;
  --color-primary-light: #2D6A4F;
  --color-primary-lighter: #40916C;
  --color-primary-dark: #0B2B1E;
  --color-accent: #D4A84B;
  --color-accent-light: #E9C46A;
  --color-accent-dark: #B8922E;
  --color-bg: #FAF8F5;
  --color-bg-alt: #F5F0EB;
  --color-bg-card: #FFFFFF;
  --color-text: #2D2A24;
  --color-text-light: #6B6560;
  --color-text-lighter: #9C968F;
  --color-border: #E8E3DD;
  --color-border-light: #F0ECE7;
  --color-success: #2D6A4F;
  --color-warning: #D4A84B;
  --color-error: #C0392B;
  --color-info: #2980B9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ============================================================
   BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

[dir="rtl"] {
  font-family: 'Cairo', 'Noto Sans Arabic', var(--font-body);
}

/* ============================================================
   TEXT GRADIENT
   ============================================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 50%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   GEOMETRIC / ISLAMIC PATTERNS
   ============================================================ */
.bg-geometric {
  position: relative;
}

.bg-geometric::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 168, 75, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(27, 67, 50, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(212, 168, 75, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Islamic 8-pointed star pattern */
.islamic-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.04;
}

.islamic-pattern svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(27, 67, 50, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(212, 168, 75, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(45, 106, 79, 0.05) 0%, transparent 45%);
}

.hero-geometric {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-geometric-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 75, 0.08);
}

.hero-geometric-circle:nth-child(1) {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
}

.hero-geometric-circle:nth-child(2) {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  border-color: rgba(27, 67, 50, 0.06);
}

.hero-geometric-circle:nth-child(3) {
  width: 200px; height: 200px;
  top: 20%; left: 10%;
  border-color: rgba(212, 168, 75, 0.05);
}

/* Floating geometric shapes */
.floating-shape {
  position: absolute;
  opacity: 0.06;
  animation: float 20s ease-in-out infinite;
}

.floating-shape:nth-child(4) {
  top: 15%; right: 20%;
  width: 80px; height: 80px;
  border: 2px solid var(--color-accent);
  transform: rotate(45deg);
  animation-delay: 0s;
}

.floating-shape:nth-child(5) {
  top: 60%; left: 15%;
  width: 60px; height: 60px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  animation-delay: -5s;
}

.floating-shape:nth-child(6) {
  bottom: 20%; right: 30%;
  width: 40px; height: 40px;
  background: var(--color-accent);
  transform: rotate(45deg);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   CARD — Premium Minimalist (steps, features)
   ============================================================ */
.card {
  background: rgba(250, 248, 245, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 75, 0.12);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 75, 0.25);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.06);
}

.card-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 168, 75, 0.03), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.card-glow:hover::after {
  opacity: 1;
}

/* Step number with gold gradient */
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(212,168,75,0.15) 0%, rgba(212,168,75,0.05) 100%);
  border: 1px solid rgba(212, 168, 75, 0.12);
}

.step-number span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS — Modern Premium Minimalist
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background 0.4s ease, color 0.4s ease;
  will-change: transform;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 67, 50, 0.25);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(212, 168, 75, 0.15);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 168, 75, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(27, 67, 50, 0.05);
  transform: translateY(-1px);
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-ripple:hover::after {
  opacity: 1;
}

/* WhatsApp CTA — brand-muted style */
.btn-whatsapp {
  background: rgba(27, 67, 50, 0.9);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.12);
}

.btn-whatsapp:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 67, 50, 0.2);
}

/* Ghost light for footer/CTA dark backgrounds */
.btn-ghost-light {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}

.btn-ghost-light:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   COURSE CARD — Premium Dark/Gold Minimalist
   ============================================================ */
.course-card {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a3a2e, #1e4235);
  border: 1px solid rgba(212, 168, 75, 0.12);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.course-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,168,75,0.15), transparent 40%, rgba(212,168,75,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.course-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(212, 168, 75, 0.25);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.3), 0 0 0 1px rgba(212,168,75,0.08);
}

.course-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(212,168,75,0.06) 0%, rgba(27,67,50,0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card-image svg {
  width: 64px;
  height: 64px;
  stroke: rgba(212, 168, 75, 0.5);
  fill: none;
  transition: all 0.5s ease;
}

.course-card:hover .course-card-image svg {
  stroke: rgba(212, 168, 75, 0.8);
  transform: scale(1.08);
}

.course-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(212, 168, 75, 0.15);
  backdrop-filter: blur(12px);
  color: var(--color-accent-light);
  border: 1px solid rgba(212, 168, 75, 0.15);
}

.course-card-body {
  padding: 28px 24px 24px;
}

.course-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(212, 168, 75, 0.6);
  font-weight: 500;
  margin-bottom: 6px;
}

.course-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.course-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.course-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.course-card-badges .badge {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.course-card-badges .badge-green {
  background: rgba(45, 106, 79, 0.2);
  color: rgba(233, 196, 106, 0.8);
}

.course-card-badges .badge-gold {
  background: rgba(212, 168, 75, 0.12);
  color: rgba(212, 168, 75, 0.7);
}

.course-card-badges .badge-blue {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 168, 75, 0.08);
}

.course-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.course-card-price .current {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: -0.01em;
}

.course-card-price .original {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-decoration: line-through;
  font-weight: 400;
}

/* ============================================================
   TESTIMONIAL CARD — Premium Minimalist
   ============================================================ */
.testimonial-card {
  background: linear-gradient(145deg, #fff, #fdfcf9);
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid rgba(212, 168, 75, 0.08);
  position: relative;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -12px rgba(0,0,0,0.06);
  border-color: rgba(212, 168, 75, 0.15);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 28px;
  font-family: var(--font-heading);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.06;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  fill: var(--color-accent);
}

.testimonial-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 168, 75, 0.06);
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-alt);
  border: 2px solid rgba(212, 168, 75, 0.1);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary-dark);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-lighter);
  font-weight: 400;
}

/* ============================================================
   STATS
   ============================================================ */
.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 40%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 227, 221, 0.5);
  padding: 10px 0;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}

.navbar-logo span {
  color: var(--color-accent);
}

.nav-link {
  position: relative;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  transition: all var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light), var(--color-accent));
}

.footer-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color var(--transition);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 0.8125rem;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   SOCIAL BUTTONS
   ============================================================ */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
}

.cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-lighter);
}

.breadcrumb a {
  color: var(--color-primary-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  transition: all var(--transition);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: var(--font-body);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-lighter);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  margin-top: 4px;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 280px;
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 24px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: all var(--transition);
}

.dashboard-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  background: var(--color-bg);
}

.dashboard-header {
  padding: 24px 40px;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-content {
  padding: 40px;
}

.dashboard-sidebar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 40px;
  display: block;
  text-decoration: none;
}

.dashboard-sidebar-logo span { color: var(--color-accent); }

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.dashboard-nav-item.active {
  background: rgba(212, 168, 75, 0.15);
  color: var(--color-accent-light);
}

.dashboard-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.stat-card-label {
  font-size: 0.8125rem;
  color: var(--color-text-lighter);
  margin-top: 4px;
}

/* ============================================================
   TABLE
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-lighter);
  border-bottom: 2px solid var(--color-border);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border-light);
}

.data-table tr:hover td {
  background: var(--color-bg-alt);
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: rgba(45, 106, 79, 0.1); color: var(--color-success); }
.badge-gold { background: rgba(212, 168, 75, 0.1); color: var(--color-accent-dark); }
.badge-red { background: rgba(192, 57, 43, 0.1); color: var(--color-error); }
.badge-blue { background: rgba(41, 128, 185, 0.1); color: var(--color-info); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }
  .dashboard-sidebar.open {
    transform: translateX(0);
  }
  .dashboard-main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero-section { min-height: 80vh; }
  .stat-number { font-size: 2.25rem; }
  .dashboard-content { padding: 24px; }
  .dashboard-header { padding: 16px 24px; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .hero-section { min-height: 70vh; }
  .btn { padding: 12px 24px; font-size: 0.875rem; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--color-error);
}

.toast.success {
  background: var(--color-success);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   PRICE CARD (pricing)
   ============================================================ */
.pricing-card {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-lg);
}

.pricing-card.featured::before {
  content: 'الأكثر طلباً';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.pricing-card .price .currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-lighter);
}

.pricing-card .price .period {
  font-size: 0.875rem;
  color: var(--color-text-lighter);
  font-weight: 400;
}
