/* ==========================================================================
   DVIZ - Luxury Financial & Legal Media Landing Page Style System
   Theme: Dark Minimal Luxury / Neon Emerald (#00C16A, #18E27C, #090909)
   Fonts: Tajawal & IBM Plex Sans Arabic (RTL)
   ========================================================================== */

:root {
  --bg-dark: #090909;
  --bg-dark-alt: #0e1210;
  --bg-glass: rgba(18, 24, 21, 0.55);
  --bg-glass-hover: rgba(24, 34, 29, 0.75);
  
  --primary: #00C16A;
  --primary-hover: #00da77;
  --primary-glow: rgba(0, 193, 106, 0.35);
  
  --secondary: #18E27C;
  --secondary-glow: rgba(24, 226, 124, 0.25);
  
  --text-white: #FFFFFF;
  --text-gray: #A0A0A0;
  --text-muted: #6e7773;
  
  --border-glass: rgba(0, 193, 106, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 193, 106, 0.45);
  
  --font-arabic-heading: 'Tajawal', sans-serif;
  --font-arabic-body: 'IBM Plex Sans Arabic', sans-serif;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-arabic-body);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  background-color: var(--bg-dark);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden !important;
}

::selection {
  background-color: var(--primary);
  color: var(--bg-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

button, input, select, textarea {
  font-family: var(--font-arabic-body);
  outline: none;
  border: none;
}

/* CUSTOM CURSOR */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  box-shadow: 0 0 10px var(--primary);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 193, 106, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-hover .cursor-dot {
  width: 14px;
  height: 14px;
  background-color: var(--secondary);
}

.cursor-hover .cursor-follower {
  width: 54px;
  height: 54px;
  border-color: var(--secondary);
  background-color: rgba(24, 226, 124, 0.08);
}

/* LOADING SCREEN */
.loader-screen {
  position: fixed;
  inset: 0;
  background-color: #050706;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo-container {
  position: relative;
  margin-bottom: 2rem;
}

.loader-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulseGlow 2s infinite ease-in-out;
}

.loader-logo-text {
  font-family: var(--font-arabic-heading);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-logo-sub {
  font-size: 1.1rem;
  color: var(--text-gray);
  letter-spacing: 2px;
}

.loader-currencies {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.curr-tag {
  font-size: 0.85rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-gray);
  animation: floatMini 3s ease-in-out infinite alternate;
}

.curr-tag:nth-child(2) { animation-delay: 0.3s; }
.curr-tag:nth-child(3) { animation-delay: 0.6s; }
.curr-tag:nth-child(4) { animation-delay: 0.9s; }
.curr-tag:nth-child(5) { animation-delay: 1.2s; }

.loader-progress-box {
  width: 280px;
  margin-bottom: 1rem;
}

.loader-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px var(--primary);
  transition: width 0.1s linear;
}

.loader-counter {
  margin-top: 0.5rem;
  font-family: var(--font-arabic-heading);
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

.loader-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.small-container {
  max-width: 860px;
}

.section-padding {
  padding: 7rem 0;
  position: relative;
}

.dark-bg-alt {
  background-color: var(--bg-dark-alt);
}

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

/* TYPOGRAPHY & BADGES */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic-heading);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 193, 106, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

/* GLASSMORPHISM CARDS & PANELS */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s, background-color 0.4s;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass);
  background-color: var(--bg-glass-hover);
  box-shadow: 0 20px 40px rgba(0, 193, 106, 0.12);
}

/* BUTTONS & MICRO-INTERACTIONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #04120a;
  font-weight: 700;
  box-shadow: 0 0 25px var(--primary-glow);
}

.btn-primary-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 193, 106, 0.6);
  color: #000;
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  backdrop-filter: blur(10px);
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass);
  transform: translateY(-3px);
  color: var(--secondary);
}

.w-full { width: 100%; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-arabic-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-white);
}

.logo-symbol {
  color: var(--primary);
  font-size: 1.4rem;
  text-shadow: 0 0 10px var(--primary);
}

.logo-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(0, 193, 106, 0.15);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease-out-expo);
  border-radius: 2px;
}

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

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

.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.98);
  backdrop-filter: blur(25px);
  z-index: 2000;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-close {
  align-self: flex-end;
  background: transparent;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.m-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-gray);
}

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

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 193, 106, 0.18) 0%, transparent 70%);
  top: 10%;
  right: 5%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(24, 226, 124, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 10%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 18px;
  background: rgba(0, 193, 106, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary);
  animation: pulseDot 1.5s infinite;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.play-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 193, 106, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-left: -10px;
}

.proof-info {
  display: flex;
  flex-direction: column;
}

.proof-number {
  font-family: var(--font-arabic-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* HERO DASHBOARD CARD */
.dashboard-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  perspective: 1000px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.pulse {
  animation: pulseDot 2s infinite;
}

.dash-live-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gf-link-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.3);
  color: #60a5fa;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.gf-link-badge:hover {
  background: rgba(66, 133, 244, 0.25);
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}

.gf-g {
  font-weight: 900;
  color: #4285F4;
}

.gf-icon {
  margin-right: auto;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.gf-icon i {
  width: 12px;
  height: 12px;
}

.ticker-item:hover .gf-icon {
  opacity: 1;
  color: var(--secondary);
}

.dash-live-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.ticker-flash-pos {
  animation: flashGreen 0.8s ease-out;
}

.ticker-flash-neg {
  animation: flashRed 0.8s ease-out;
}

@keyframes flashGreen {
  0% { background: rgba(0, 193, 106, 0.3); border-color: var(--primary); }
  100% { background: rgba(255, 255, 255, 0.03); }
}

@keyframes flashRed {
  0% { background: rgba(239, 68, 68, 0.3); border-color: #ef4444; }
  100% { background: rgba(255, 255, 255, 0.03); }
}

.dash-tickers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ticker-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
}

.ticker-item:hover {
  border-color: var(--border-glass);
  background: rgba(0, 193, 106, 0.05);
  transform: translateY(-2px);
}

.ticker-pair {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 0.3rem;
}

.ticker-val {
  font-family: var(--font-arabic-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.ticker-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ticker-change.pos { color: var(--secondary); }
.ticker-change.neg { color: #f87171; }

/* CANVAS CHART */
.dash-chart-container {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.chart-title {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.chart-tabs {
  display: flex;
  gap: 4px;
}

.chart-tab {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.chart-tab.active, .chart-tab:hover {
  background: rgba(0, 193, 106, 0.15);
  color: var(--secondary);
}

.chart-canvas-wrapper {
  height: 140px;
  position: relative;
}

#live-chart-canvas {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  padding: 4px 8px;
  background: var(--bg-dark);
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  transform: translate(-50%, -120%);
}

/* FLOATING LEGAL DOCUMENTS */
.dash-floating-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.float-doc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  animation: floatMini 4s ease-in-out infinite alternate;
}

.float-doc i {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.float-doc:hover {
  background: rgba(0, 193, 106, 0.15);
  border-color: var(--primary);
  transform: scale(1.05);
}

.doc-title { font-weight: 600; line-height: 1; }
.doc-sub { font-size: 0.65rem; color: var(--text-muted); }

.doc-1 { animation-delay: 0s; }
.doc-2 { animation-delay: 0.8s; }
.doc-3 { animation-delay: 1.6s; }
.doc-4 { animation-delay: 2.4s; }
.doc-5 { animation-delay: 3.2s; }

/* MARQUEE TICKER BAR */
.ticker-marquee-section {
  background: rgba(0, 193, 106, 0.04);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.9rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-content span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-gray);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

/* SECTION 1: WHO WE ARE */
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 193, 106, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.glass-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.glass-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* SECTION 2: SERVICES */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  cursor: pointer;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(24, 226, 124, 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.service-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-footer {
  margin-top: auto;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.service-card:hover .service-more i {
  transform: translateX(-4px);
  transition: transform 0.3s;
}

/* CALCULATOR SECTION */
.calc-wrapper {
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.calc-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.calc-desc {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.calc-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-feat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-white);
  font-size: 0.95rem;
}

.calc-feat-item i {
  color: var(--secondary);
}

.calc-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}

.calc-tabs-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.calc-tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.calc-tab-btn.active {
  background: var(--primary);
  color: #04120a;
}

.calc-tab-content {
  display: none;
}

.calc-tab-content.active {
  display: block;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.form-select, .form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.form-select option {
  background: var(--bg-dark);
  color: var(--text-white);
}

.calc-result-card {
  margin-top: 1.5rem;
  background: rgba(0, 193, 106, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.result-label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0.3rem;
}

.result-val {
  font-family: var(--font-arabic-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.result-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* SECTION 3: VIDEOS */
.video-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: #151a17;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 2;
}

.video-category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  background: rgba(0, 193, 106, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--secondary);
  z-index: 2;
}

.play-btn-pulse {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #04120a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.video-card:hover .play-btn-pulse {
  transform: scale(1.15);
  background: var(--secondary);
}

.video-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.video-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* SECTION 4: STATISTICS */
.stats-glass-box {
  padding: 3rem 2rem;
}

.stat-card {
  padding: 1rem;
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.stat-number {
  font-family: var(--font-arabic-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.3rem;
}

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

/* SECTION 5: TIMELINE */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
  z-index: 1;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.timeline-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  box-shadow: 0 0 15px var(--primary-glow);
  flex-shrink: 0;
}

.timeline-content {
  flex-grow: 1;
}

/* SECTION 6: FAQ ACCORDION */
.faq-search-box {
  position: relative;
  margin-bottom: 2rem;
}

.faq-search-box i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.faq-input {
  width: 100%;
  padding: 1rem 3.2rem 1rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: 1rem;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  padding: 0;
}

.accordion-header {
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: transparent;
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.acc-icon {
  color: var(--primary);
  transition: transform 0.3s var(--ease-out-expo);
}

.accordion-item.active .acc-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.4s;
  padding: 0 1.8rem;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  max-height: 250px;
  padding-bottom: 1.4rem;
}

/* SECTION 7: NEWSLETTER */
.newsletter-box {
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.nl-glow-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 193, 106, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.nl-title {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.nl-subtitle {
  color: var(--text-gray);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.nl-form {
  max-width: 580px;
  margin: 0 auto;
}

.nl-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nl-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
}

.nl-mail-icon {
  position: absolute;
  right: 20px;
  color: var(--text-muted);
}

.nl-input {
  flex-grow: 1;
  background: transparent;
  padding: 0.8rem 3.2rem 0.8rem 1rem;
  color: var(--text-white);
  font-size: 1rem;
}

.nl-success {
  margin-top: 1.5rem;
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hidden { display: none !important; }

/* FOOTER */
.footer {
  background: #050706;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
}

.social-link:hover {
  background: var(--primary);
  color: #04120a;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-white);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-col a {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-links-col a:hover {
  color: var(--secondary);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.contact-item i { color: var(--primary); }

.mt-3 { margin-top: 1rem; }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.back-to-top:hover {
  background: var(--primary);
  color: #04120a;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 650px;
  padding: 2.5rem;
  position: relative;
}

.video-modal-card {
  max-width: 850px;
  padding: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
}

.video-player-container {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fake-video-player {
  text-align: center;
  padding: 2rem;
}

.video-big-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.video-bar-sim {
  width: 80%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1.5rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.video-progress-sim {
  width: 45%;
  height: 100%;
  background: var(--primary);
  animation: pulseBar 3s infinite alternate;
}

/* ANIMATIONS & KEYFRAMES */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes floatMini {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@keyframes pulseBar {
  0% { width: 10%; }
  100% { width: 85%; }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline-line { right: 20px; }
  .timeline-num { width: 44px; height: 44px; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .dash-tickers { grid-template-columns: 1fr; }
}
