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

:root {
  --primary: #2d9f4e;
  --primary-dark: #1e7a34;
  --primary-light: #4caf50;
  --primary-rgb: 45, 159, 78;
  --gold: #c9a94e;
  --gold-light: #e8d48b;
  --gold-dark: #b8942e;
  --gold-rgb: 201, 169, 78;
  --dark: #1a1a2e;
  --darker: #0f0f23;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --gray-dark: #343a40;
  --light-bg: #f8f9fa;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --navbar-height: 64px;
  --font-primary: 'Tajawal', 'Cairo', sans-serif;
  --font-secondary: 'Cairo', 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

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

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes star-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ===== LANDING PAGE STYLES ===== */
.landing-page {
  position: relative;
}

/* ----- LANDING NAVBAR ----- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.landing-nav.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}

.landing-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-secondary);
}

.landing-nav .nav-logo img {
  height: 40px;
  width: auto;
}

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.landing-nav .nav-links a {
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.landing-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.landing-nav .nav-links a:hover::after,
.landing-nav .nav-links a.active::after {
  width: 100%;
}

.landing-nav .nav-links a:hover {
  color: var(--primary);
}

.landing-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.landing-nav .mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
  padding: 5px;
}

/* ----- HERO SECTION ----- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #16213e 100%);
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(45, 159, 78, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(201, 169, 78, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(45, 159, 78, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image:
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(60deg, var(--gold-rgb) 25%, transparent 25.5%, transparent 75%, var(--gold-rgb) 75%, var(--gold-rgb));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0;
}

.hero-floating {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-floating .float-item {
  position: absolute;
  opacity: 0.06;
}

.hero-floating .float-item:nth-child(1) {
  top: 15%;
  left: 10%;
  font-size: 60px;
  animation: float-slow 8s ease-in-out infinite;
  color: var(--gold);
}

.hero-floating .float-item:nth-child(2) {
  top: 60%;
  right: 8%;
  font-size: 80px;
  animation: float-slow 10s ease-in-out infinite 1s;
  color: var(--primary);
}

.hero-floating .float-item:nth-child(3) {
  bottom: 20%;
  left: 20%;
  font-size: 50px;
  animation: float-slow 7s ease-in-out infinite 0.5s;
  color: var(--gold);
}

.hero-floating .float-item:nth-child(4) {
  top: 25%;
  right: 25%;
  font-size: 40px;
  animation: float-slow 9s ease-in-out infinite 2s;
  color: var(--primary-light);
}

.hero-floating .float-item:nth-child(5) {
  bottom: 30%;
  right: 35%;
  font-size: 35px;
  animation: float-slow 11s ease-in-out infinite 1.5s;
  color: var(--gold);
}

.hero-floating .float-item:nth-child(6) {
  top: 40%;
  left: 40%;
  font-size: 25px;
  animation: float-slow 6s ease-in-out infinite 3s;
  color: var(--primary-light);
}

.hero-section .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 159, 78, 0.15);
  border: 1px solid rgba(45, 159, 78, 0.3);
  color: var(--primary-light);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge i {
  font-size: 12px;
}

.hero-section h1 {
  font-family: var(--font-secondary);
  font-size: 56px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-section h1 span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 3s ease infinite;
}

.hero-section .hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-actions .btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 32px rgba(45, 159, 78, 0.3);
}

.hero-actions .btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45, 159, 78, 0.4);
}

.hero-actions .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-actions .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  cursor: pointer;
}

/* ----- SECTION HEADERS ----- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-secondary);
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
}

.section-header .section-subtitle {
  font-size: 17px;
  color: var(--gray);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header .section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.section-header .section-decoration span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-header .section-decoration span:nth-child(1) { width: 30px; }
.section-header .section-decoration span:nth-child(2) { width: 60px; }
.section-header .section-decoration span:nth-child(3) { width: 30px; }

/* ----- FEATURES SECTION ----- */
.features-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(45, 159, 78, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(201, 169, 78, 0.03) 0%, transparent 50%);
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow);
  border-color: transparent;
}

.feature-card .feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: var(--transition);
}

.feature-card:nth-child(1) .feature-icon { background: rgba(45, 159, 78, 0.1); color: var(--primary); }
.feature-card:nth-child(2) .feature-icon { background: rgba(201, 169, 78, 0.1); color: var(--gold); }
.feature-card:nth-child(3) .feature-icon { background: rgba(45, 159, 78, 0.1); color: var(--primary); }
.feature-card:nth-child(4) .feature-icon { background: rgba(201, 169, 78, 0.1); color: var(--gold); }
.feature-card:nth-child(5) .feature-icon { background: rgba(45, 159, 78, 0.1); color: var(--primary); }
.feature-card:nth-child(6) .feature-icon { background: rgba(201, 169, 78, 0.1); color: var(--gold); }

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  font-family: var(--font-secondary);
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ----- STATS SECTION ----- */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: var(--white);
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-item .stat-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover .stat-icon {
  transform: scale(1.15) rotate(8deg);
}

.stat-icon.color-blue { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.stat-icon.color-emerald { background: linear-gradient(135deg, #10b981, #064e3b); }
.stat-icon.color-violet { background: linear-gradient(135deg, #8b5cf6, #4c1d95); }
.stat-icon.color-amber { background: linear-gradient(135deg, #f59e0b, #78350f); }
.stat-icon.color-rose { background: linear-gradient(135deg, #f43f5e, #881337); }

.stat-item .stat-number {
  font-size: 42px;
  font-weight: 900;
  font-family: var(--font-secondary);
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item .stat-label {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ----- BENEFITS SECTION ----- */
.benefits-section {
  background: var(--light-bg);
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 35px;
  box-shadow: 0 5px 30px var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px var(--shadow);
}

.benefit-card .benefit-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.benefit-card .benefit-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.benefit-card:nth-child(1) .benefit-icon { background: rgba(45, 159, 78, 0.1); color: var(--primary); }
.benefit-card:nth-child(2) .benefit-icon { background: rgba(201, 169, 78, 0.1); color: var(--gold); }

.benefit-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-secondary);
}

.benefit-card .benefit-list {
  margin-top: 20px;
}

.benefit-card .benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--gray);
  font-size: 15px;
}

.benefit-card .benefit-list li i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ----- PRICING SECTION ----- */
.pricing-section {
  background: var(--white);
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 50px rgba(45, 159, 78, 0.15);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.popular::before {
  content: 'الأكثر طلباً';
  position: absolute;
  top: 20px;
  left: -35px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 40px;
  font-size: 13px;
  font-weight: 600;
  transform: rotate(-45deg);
}

.pricing-card .pricing-badge {
  display: inline-block;
  background: rgba(45, 159, 78, 0.1);
  color: var(--primary);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  font-family: var(--font-secondary);
}

.pricing-card .pricing-price {
  margin-bottom: 25px;
}

.pricing-card .pricing-price .price {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-secondary);
}

.pricing-card .pricing-price .period {
  font-size: 16px;
  color: var(--gray);
  font-weight: 500;
}

.pricing-card .pricing-features {
  text-align: right;
  margin-bottom: 30px;
  padding: 0;
}

.pricing-card .pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--gray);
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-card .pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .pricing-features li i {
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-card .pricing-features li i.fa-times {
  color: #dc3545;
  font-size: 12px;
}

.btn-pricing {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
}

.btn-pricing-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(45, 159, 78, 0.25);
}

.btn-pricing-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(45, 159, 78, 0.35);
  color: var(--white);
}

.btn-pricing-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-pricing-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-pricing-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201, 169, 78, 0.25);
}

.btn-pricing-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 169, 78, 0.35);
  color: var(--white);
}

/* ----- CTA SECTION ----- */
.cta-section {
  background: linear-gradient(135deg, var(--darker), var(--dark));
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(45, 159, 78, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(201, 169, 78, 0.06) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-secondary);
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 35px;
  line-height: 1.8;
}

.cta-content .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 8px 32px rgba(201, 169, 78, 0.3);
}

.cta-content .btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201, 169, 78, 0.4);
}

/* ----- CONTACT SECTION ----- */
.contact-section {
  background: var(--light-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
  font-family: var(--font-secondary);
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-info .contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info .contact-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info .contact-detail-item .detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(45, 159, 78, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info .contact-detail-item .detail-text {
  font-size: 15px;
  color: var(--dark);
  font-weight: 500;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 30px var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 14px;
}

.contact-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition);
  background: var(--light-bg);
  color: var(--dark);
  direction: rtl;
}

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(45, 159, 78, 0.1);
}

.contact-form textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.contact-form .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(45, 159, 78, 0.25);
  width: 100%;
  justify-content: center;
}

.contact-form .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(45, 159, 78, 0.35);
}

/* ----- FOOTER ----- */
.landing-footer {
  background: var(--darker);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  position: relative;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-secondary);
  margin-bottom: 15px;
}

.footer-col .footer-logo img {
  height: 36px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-secondary);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-right: 5px;
}

.footer-col .social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-col .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.footer-col .social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-hearts {
  color: #ff4757;
  display: inline-block;
  animation: pulse 1.5s ease infinite;
}

/* ----- WHATSAPP BUTTON ----- */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

/* ----- BACK TO TOP ----- */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(45, 159, 78, 0.3);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: var(--white);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 5px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 159, 78, 0.3);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-danger {
  background: #dc3545;
  color: var(--white);
}

.btn-danger:hover {
  background: #c82333;
  color: var(--white);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
}

/* ===== BADGE STYLES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
}

.badge-primary {
  background: rgba(45, 159, 78, 0.1);
  color: var(--primary);
}

.badge-gold {
  background: rgba(201, 169, 78, 0.1);
  color: var(--gold-dark);
}

.badge-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.badge-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #d39e00;
}

.badge-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.badge-info {
  background: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--white);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1001;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px var(--shadow);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: var(--navbar-height);
}

.sidebar .sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-secondary);
}

.sidebar .sidebar-header .logo img {
  height: 32px;
}

.sidebar .sidebar-header .toggle-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray);
  cursor: pointer;
  padding: 5px;
  transition: var(--transition);
}

.sidebar .sidebar-header .toggle-btn:hover {
  color: var(--primary);
}

.sidebar .sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.sidebar .sidebar-menu .menu-label {
  padding: 10px 20px 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar .sidebar-menu .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--gray-dark);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  border-right: 3px solid transparent;
  margin: 2px 8px;
  border-radius: var(--radius-sm);
}

.sidebar .sidebar-menu .nav-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar .sidebar-menu .nav-item:hover {
  background: rgba(45, 159, 78, 0.05);
  color: var(--primary);
  border-right-color: var(--primary);
}

.sidebar .sidebar-menu .nav-item.active {
  background: rgba(45, 159, 78, 0.1);
  color: var(--primary);
  border-right-color: var(--primary);
  font-weight: 700;
}

.sidebar.collapsed .sidebar-menu .nav-item span,
.sidebar.collapsed .sidebar-menu .menu-label,
.sidebar.collapsed .sidebar-header .logo span {
  display: none;
}

.sidebar.collapsed .sidebar-menu .nav-item {
  justify-content: center;
  padding: 12px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

/* ===== TOP NAVBAR ===== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: var(--sidebar-width);
  height: var(--navbar-height);
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  transition: var(--transition);
}

.sidebar.collapsed ~ .top-navbar,
.top-navbar.expanded {
  right: var(--sidebar-collapsed);
}

.top-navbar .navbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light-bg);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  width: 300px;
}

.top-navbar .navbar-search input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--dark);
  width: 100%;
  direction: rtl;
}

.top-navbar .navbar-search i {
  color: var(--gray);
}

.top-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-navbar .navbar-actions .action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.top-navbar .navbar-actions .action-btn:hover {
  background: rgba(45, 159, 78, 0.1);
  color: var(--primary);
}

.top-navbar .navbar-actions .action-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
  border: 2px solid var(--white);
}

/* ----- NOTIFICATION DROPDOWN ----- */
.notification-dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1002;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.notification-dropdown.show {
  display: block;
}

.notification-dropdown .dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 700;
  color: var(--dark);
}

.notification-dropdown .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  transition: var(--transition);
  cursor: pointer;
}

.notification-dropdown .dropdown-item:hover {
  background: var(--light-bg);
}

.notification-dropdown .dropdown-item .notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.notification-dropdown .dropdown-item .notif-text {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.5;
}

.notification-dropdown .dropdown-item .notif-time {
  font-size: 11px;
  color: var(--gray);
  margin-top: 3px;
}

/* ===== CARD STYLES ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px var(--shadow);
}

.card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
}

.card .card-body {
  padding: 22px;
}

.card .card-footer {
  padding: 15px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* ===== DASHBOARD STAT CARDS ===== */
.stat-card {
  padding: 25px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow);
}

.stat-card .stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 15px;
}

.stat-card .stat-card-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--dark);
  font-family: var(--font-secondary);
  margin-bottom: 5px;
}

.stat-card .stat-card-label {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
}

.stat-card .stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

.stat-card .stat-card-change.positive { color: var(--primary); }
.stat-card .stat-card-change.negative { color: #dc3545; }

.stat-card-green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.stat-card-gold { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.stat-card-blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.stat-card-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }

/* ===== TABLE STYLES ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table thead th {
  background: var(--light-bg);
  padding: 14px 16px;
  font-weight: 700;
  color: var(--gray-dark);
  text-align: right;
  border-bottom: 2px solid var(--gray-light);
  white-space: nowrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--gray-dark);
  vertical-align: middle;
}

table tbody tr {
  transition: var(--transition);
}

table tbody tr:hover {
  background: rgba(45, 159, 78, 0.03);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 159, 78, 0.1);
}

.form-control.error {
  border-color: #dc3545;
}

.form-control.success {
  border-color: var(--primary);
}

.form-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
}

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

/* ===== MODAL STYLES ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}

.modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.modal .modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.modal .modal-header .close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray);
  cursor: pointer;
  padding: 5px;
  transition: var(--transition);
}

.modal .modal-header .close-btn:hover {
  color: #dc3545;
}

.modal .modal-body {
  padding: 22px;
}

.modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* ===== PROFILE SECTION ===== */
.profile-card {
  text-align: center;
  padding: 30px;
}

.profile-card .profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  margin: 0 auto 15px;
  font-family: var(--font-secondary);
}

.profile-card .profile-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.profile-card .profile-role {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 15px;
}

/* ===== PROGRESS BARS ===== */
.progress {
  height: 8px;
  background: var(--gray-light);
  border-radius: 50px;
  overflow: hidden;
}

.progress .progress-bar {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.6s ease;
}

.progress .progress-bar.gold {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
}

/* ===== CHARTS CONTAINER ===== */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.chart-container-sm {
  height: 200px;
}

/* ===== STUDENT PROFILE CARDS ===== */
.student-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  cursor: pointer;
}

.student-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: transparent;
}

.student-card .student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  font-family: var(--font-secondary);
}

.student-card .student-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.student-card .student-info p {
  font-size: 13px;
  color: var(--gray);
}

/* ===== EVALUATION BADGES ===== */
.eval-mumtaz { background: rgba(45, 159, 78, 0.1); color: var(--primary); }
.eval-jayyid { background: rgba(0, 150, 136, 0.1); color: #009688; }
.eval-muqbil { background: rgba(255, 193, 7, 0.1); color: #d39e00; }
.eval-dhaif { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.eval-ghayr_mustamir { background: rgba(108, 117, 125, 0.1); color: var(--gray); }

/* ===== ATTENDANCE CALENDAR ===== */
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.attendance-grid .day-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  padding: 8px 0;
}

.attendance-grid .day-cell {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attendance-grid .day-cell:hover {
  background: var(--gray-light);
}

.attendance-grid .day-cell.present {
  background: rgba(45, 159, 78, 0.15);
  color: var(--primary);
}

.attendance-grid .day-cell.absent {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.attendance-grid .day-cell.excused {
  background: rgba(255, 193, 7, 0.1);
  color: #d39e00;
}

/* ===== LOGIN/REGISTER PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--darker), var(--dark));
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(45, 159, 78, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201, 169, 78, 0.04) 0%, transparent 40%);
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-card .auth-logo img {
  height: 50px;
}

.auth-card .auth-logo h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 10px;
  font-family: var(--font-secondary);
}

.auth-card .auth-title {
  text-align: center;
  margin-bottom: 25px;
}

.auth-card .auth-title h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.auth-card .auth-title p {
  font-size: 14px;
  color: var(--gray);
  margin-top: 5px;
}

.auth-card .auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  color: var(--gray);
  font-size: 13px;
}

.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}

/* ===== DARK MODE ===== */
body.dark-mode {
  background: var(--darker);
  color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .card,
body.dark-mode .sidebar,
body.dark-mode .top-navbar,
body.dark-mode .modal,
body.dark-mode .auth-card,
body.dark-mode .contact-form,
body.dark-mode .benefit-card,
body.dark-mode .feature-card {
  background: #1e1e3a;
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .form-control {
  background: #16163a;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .form-control:focus {
  border-color: var(--primary);
  background: #1e1e3a;
}

body.dark-mode table thead th {
  background: #16163a;
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode table tbody td {
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .stat-card-value {
  color: var(--white);
}

body.dark-mode .landing-nav {
  background: rgba(15, 15, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .landing-nav .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .features-section,
body.dark-mode .pricing-section {
  background: #16163a;
}

body.dark-mode .benefits-section,
body.dark-mode .contact-section {
  background: #1e1e3a;
}

body.dark-mode .section-header h2 {
  color: var(--white);
}

body.dark-mode .feature-card h3,
body.dark-mode .benefit-card h3,
body.dark-mode .pricing-card h3 {
  color: var(--white);
}

body.dark-mode .pricing-card {
  background: #1e1e3a;
}

body.dark-mode .loading-overlay {
  background: rgba(15, 15, 35, 0.9);
}

/* ===== TOAST / FLASH MESSAGES ===== */
.flash-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInDown 0.3s ease;
  max-width: 90%;
  direction: rtl;
}

.flash-message.success { background: #d4edda; color: #155724; border-right: 4px solid var(--primary); }
.flash-message.error { background: #f8d7da; color: #721c24; border-right: 4px solid #dc3545; }
.flash-message.warning { background: #fff3cd; color: #856404; border-right: 4px solid #ffc107; }
.flash-message.info { background: #d1ecf1; color: #0c5460; border-right: 4px solid #17a2b8; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section h1 { font-size: 40px; }
  .sidebar { right: -280px; }
  .sidebar.mobile-open { right: 0; }
  .sidebar-overlay.show { display: block; }
  .top-navbar { right: 0; }
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 32px; }
  .hero-section .hero-subtitle { font-size: 17px; }
  .hero-actions .btn-hero { padding: 14px 28px; font-size: 16px; }
  .section-header h2 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .stat-item .stat-number { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col h4::after { right: 50%; transform: translateX(50%); }
  .footer-col .social-links { justify-content: center; }
  .contact-form { padding: 25px; }
  .auth-card { padding: 30px 25px; }
  .cta-content h2 { font-size: 30px; }
  .pricing-card { padding: 30px 20px; }

  .landing-nav .nav-links,
  .landing-nav .nav-actions .btn-nav { display: none; }
  .landing-nav .mobile-toggle { display: block; }
  .landing-nav .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    gap: 5px;
  }
  body.dark-mode .landing-nav .nav-links.mobile-open {
    background: #1e1e3a;
  }
  .landing-nav .nav-links.mobile-open a {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
  }
  .landing-nav .nav-links.mobile-open a:hover {
    background: rgba(45, 159, 78, 0.05);
  }
}

@media (max-width: 576px) {
  .section-padding { padding: 50px 0; }
  .hero-section { padding: 100px 15px 60px; }
  .hero-section h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .stat-item .stat-number { font-size: 28px; }
  .container { padding: 0 15px; }
  .whatsapp-btn { width: 48px; height: 48px; font-size: 22px; bottom: 15px; left: 15px; }
  .back-to-top { width: 38px; height: 38px; font-size: 15px; bottom: 15px; right: 15px; }
}

/* ===== PREMIUM LANDING PAGE UPGRADES ===== */

/* --- HERO SPLIT GRID --- */
.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-grid-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-content.text-start {
  text-align: right;
}

.hero-mockup-wrapper {
  position: relative;
  z-index: 5;
}

.mockup-frame {
  position: relative;
  height: 440px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* --- GLASSMORPHISM CARDS --- */
.mockup-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: var(--white);
  transition: all 0.3s ease;
}

.mockup-card:hover {
  border-color: rgba(45, 159, 78, 0.3);
  box-shadow: 0 25px 60px rgba(45, 159, 78, 0.15);
}

.progress-card {
  top: 10px;
  right: 0;
  width: 330px;
  z-index: 3;
}

.activity-card {
  bottom: 10px;
  left: 0;
  width: 320px;
  z-index: 2;
}

.quick-stats-card {
  top: 160px;
  left: -20px;
  width: 190px;
  z-index: 4;
  padding: 15px;
}

/* Card Elements Styling */
.mockup-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.mockup-card-header .user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(45, 159, 78, 0.2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mockup-card-header .user-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.mockup-card-header .user-info span {
  font-size: 11px;
  opacity: 0.7;
  display: block;
}

.mockup-card-header .level-badge {
  margin-right: auto;
  background: rgba(45, 159, 78, 0.25);
  color: var(--primary-light);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 700;
}

.mockup-card-body .progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.mockup-card-body .progress-info strong {
  color: var(--gold-light);
}

.progress-bar-mock {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar-mock .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
}

.metrics-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.metrics-row .metric {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.metrics-row .metric i {
  color: var(--gold);
}

/* Activity Card elements */
.activity-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

.activity-header h5 {
  font-size: 14px;
  font-weight: 700;
}

.activity-list-mock li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.activity-list-mock li:last-child {
  margin-bottom: 0;
}

.activity-list-mock li i {
  font-size: 15px;
  margin-top: 3px;
}

.activity-list-mock .icon-success i { color: var(--primary-light); }
.activity-list-mock .icon-primary i { color: var(--gold-light); }

.activity-text p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.activity-text span {
  font-size: 10px;
  opacity: 0.6;
  display: block;
  margin-top: 2px;
}

/* Quick Stats widget */
.quick-stat-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-stat-inner .quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 169, 78, 0.2);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.quick-stat-inner .quick-text h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.quick-stat-inner .quick-text span {
  font-size: 10px;
  opacity: 0.7;
}

/* Card Floating Animations */
.animate-float {
  animation: float-y 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-y-delayed 6s ease-in-out infinite 1s;
}

.animate-float-slow {
  animation: float-y-slow 8s ease-in-out infinite 0.5s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-y-delayed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes float-y-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -10px); }
}



/* --- RESPONSIVE OVERRIDES --- */
@media (max-width: 992px) {
  .hero-grid-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .hero-content.text-start {
    text-align: center;
  }
  
  .hero-mockup-wrapper {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .mockup-frame {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
  }
  
  .mockup-card {
    padding: 15px;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    animation: none !important;
    width: 100% !important;
    max-width: 320px;
  }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  padding-bottom: env(safe-area-inset-bottom, 10px);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-bottom-nav .nav-item i {
  font-size: 20px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
  color: var(--primary);
}

body.dark-mode .mobile-bottom-nav {
  background: rgba(15, 15, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  .whatsapp-btn {
    bottom: 80px;
  }
  .back-to-top {
    bottom: 80px;
  }
  .landing-footer {
    padding-bottom: 70px;
  }
}
