/* ==========================================================================
   دليل ميسان (Dalil Maysan / Maysan Guide) - Main Stylesheet
   Modern, Ultra-Responsive, RTL Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Swatches */
  --brand-teal: #17A398;
  --brand-teal-dark: #0f766e;
  --brand-teal-light: #2dd4bf;
  --brand-teal-glow: rgba(23, 163, 152, 0.35);
  --brand-teal-surface: rgba(23, 163, 152, 0.12);

  --accent-gold: #F59E0B;
  --accent-gold-light: #FBBF24;
  --accent-gold-glow: rgba(245, 158, 11, 0.3);

  --accent-emerald: #10B981;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-rose: #F43F5E;

  /* Dark Theme (Default) */
  --bg-primary: #07151D;
  --bg-secondary: #0D222E;
  --bg-tertiary: #132E3E;
  --surface-card: rgba(19, 46, 62, 0.7);
  --surface-card-hover: rgba(25, 59, 79, 0.85);
  --surface-glass: rgba(13, 34, 46, 0.85);
  --surface-input: #0B1D27;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(23, 163, 152, 0.45);
  --border-focus: rgba(23, 163, 152, 0.8);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: #07151D;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-teal: 0 12px 32px -4px var(--brand-teal-glow);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 74px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #F4F7F9;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #E8EEF2;
  --surface-card: rgba(255, 255, 255, 0.95);
  --surface-card-hover: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --surface-input: #EDF2F7;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-active: rgba(23, 163, 152, 0.35);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-teal: 0 12px 30px -4px rgba(23, 163, 152, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
  background: radial-gradient(circle at 80% 10%, rgba(23, 163, 152, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 10% 40%, rgba(13, 34, 46, 0.6) 0%, transparent 50%),
              var(--bg-primary);
  background-attachment: fixed;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* --------------------------------------------------------------------------
   2. Typography & Core Utilities
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--brand-teal-surface);
  border: 1px solid var(--border-active);
  color: var(--brand-teal-light);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 20px -5px var(--brand-teal-glow);
}

.section-tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--brand-teal-light) 70%, #99F6E4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0F172A 20%, var(--brand-teal) 70%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 66px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px var(--brand-teal-glow);
  border: 2px solid var(--brand-teal);
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.brand-logo:hover .logo-badge {
  transform: scale(1.05) rotate(-3deg);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--brand-teal-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-teal-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0.6rem;
  left: 0.6rem;
  height: 2px;
  background: var(--brand-teal);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--brand-teal-light);
  border-color: var(--border-active);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: block;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: #FFFFFF;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--brand-teal-glow);
  transition: all var(--transition-fast);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 163, 152, 0.45);
  color: #FFFFFF;
}

.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 105;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger-btn.open .line-1 {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open .line-2 {
  opacity: 0;
}

.hamburger-btn.open .line-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 102;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 5.5rem 1.5rem 2rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border-light);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.mobile-nav-link svg {
  width: 20px;
  height: 20px;
  fill: var(--brand-teal-light);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--brand-teal-surface);
  border-color: var(--border-active);
  color: var(--brand-teal-light);
}

.mobile-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(23, 163, 152, 0.15);
  border: 1px solid var(--border-active);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-teal-light);
  margin-bottom: 1.25rem;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px -2px rgba(23, 163, 152, 0.2); }
  100% { box-shadow: 0 0 22px 2px rgba(23, 163, 152, 0.45); }
}

.hero-pill-badge {
  background: var(--brand-teal);
  color: #FFFFFF;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-title {
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-tagline-quote {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 2.25rem;
}

.btn-store-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  min-width: 180px;
  justify-content: center;
}

[data-theme="light"] .btn-store-download {
  background: #0F172A;
  color: #FFFFFF;
}

.btn-store-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  border-color: var(--brand-teal-light);
  color: #FFFFFF;
}

.store-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.store-subtitle {
  font-size: 0.72rem;
  opacity: 0.8;
  line-height: 1;
}

.store-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-normal);
  justify-content: center;
}

.btn-whatsapp-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

.btn-whatsapp-hero svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--brand-teal-light);
}

/* --------------------------------------------------------------------------
   6. Interactive Phone Mockup Component
   -------------------------------------------------------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

.phone-frame {
  width: 100%;
  background: #0A141A;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
              0 0 45px -5px var(--brand-teal-glow),
              inset 0 0 2px 2px rgba(255, 255, 255, 0.12);
  border: 4px solid #1A2E3B;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 110px;
  height: 22px;
  background: #0A141A;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.camera-lens {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #02070A;
  border: 1px solid #1E3A4A;
}

.phone-screen {
  background: #091A23;
  border-radius: 34px;
  overflow: hidden;
  height: 580px;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  position: relative;
}

/* App In-Screen Header */
.app-screen-header {
  background: var(--brand-teal);
  padding: 2.2rem 0.9rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-screen-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #FFFFFF;
  overflow: hidden;
}

.app-screen-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-screen-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.app-screen-btn-ad {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
}

/* In-Screen Body */
.app-screen-body {
  flex: 1;
  padding: 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: none;
}

.app-screen-body::-webkit-scrollbar {
  display: none;
}

.app-promo-banner {
  background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.app-promo-banner h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
}

.app-promo-banner p {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.9);
}

.app-search-bar {
  background: #112835;
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #7997A9;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-search-bar svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Quick Actions 3 Pills */
.app-quick-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.app-quick-card {
  background: #122C3B;
  border-radius: 10px;
  padding: 0.5rem 0.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.app-quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-teal);
}

.app-quick-card-icon {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.app-quick-card-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #D1E5EE;
  line-height: 1.1;
}

/* App Grid Inside Phone */
.app-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.app-grid-tile {
  background: #102633;
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.app-grid-tile-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(23, 163, 152, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.app-grid-tile-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* In-Screen Bottom Nav */
.app-screen-bottom-nav {
  background: #0A171F;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.app-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #6A8696;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.app-nav-tab.active {
  color: var(--brand-teal-light);
}

.app-nav-tab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* App Screen SVG Icons */
.app-quick-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--brand-teal-light);
  display: block;
  margin-inline: auto;
  margin-bottom: 0.2rem;
}

.app-grid-tile-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--brand-teal-light);
  display: block;
}

/* --------------------------------------------------------------------------
   7. Highlights & Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar-section {
  padding-block: 2.5rem;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-teal);
}

.stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.stat-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--brand-teal-light);
  display: block;
}

.stat-number {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--brand-teal-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. Core Pillars (أقسام التطبيق الرئيسية - Section 3.1)
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.pillar-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: all var(--transition-normal);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-teal-light), var(--brand-teal));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--brand-teal-surface);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--brand-teal-glow);
}

.pillar-icon-box svg {
  width: 30px;
  height: 30px;
  fill: var(--brand-teal-light);
  display: block;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.pillar-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.98rem;
}

.pillar-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.pillar-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pillar-features-list li svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-teal-light);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Categories Explorer & Interactive Filter (Section 3.2)
   -------------------------------------------------------------------------- */
.explorer-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.category-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-pill:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--brand-teal);
  color: #FFFFFF;
  border-color: var(--brand-teal);
  box-shadow: 0 4px 14px var(--brand-teal-glow);
}

.filter-pill .pill-count {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

/* Category Cards Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
}

.category-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 8px 24px rgba(23, 163, 152, 0.25);
  background: var(--surface-card-hover);
}

.category-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--brand-teal-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

.category-card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--brand-teal-light);
  display: block;
}

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

.category-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.category-card-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   10. Marketplace Section (سوق ميسان العام - Section 3.4)
   -------------------------------------------------------------------------- */
.market-section {
  background: linear-gradient(180deg, transparent 0%, rgba(23, 163, 152, 0.06) 50%, transparent 100%);
}

.market-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.market-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-normal);
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-teal);
}

.market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-teal-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--brand-teal-light);
  display: block;
}

.market-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--brand-teal-surface);
  color: var(--brand-teal-light);
  border: 1px solid var(--border-active);
}

.market-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
}

.market-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.market-subitems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.market-subitem-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Local Heritage & Tourism (Section 3.3)
   -------------------------------------------------------------------------- */
.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.heritage-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  height: 380px;
  display: flex;
  align-items: flex-end;
  transition: all var(--transition-normal);
}

.heritage-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
}

.heritage-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.heritage-card:hover .heritage-bg-img {
  transform: scale(1.08);
}

.heritage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 21, 29, 0.95) 0%, rgba(7, 21, 29, 0.5) 55%, transparent 100%);
  z-index: 1;
}

.heritage-info {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.heritage-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-teal);
  color: #FFFFFF;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
}

.heritage-info h3 {
  font-size: 1.45rem;
  color: #FFFFFF;
}

.heritage-info p {
  color: #CBD5E1;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. Why Choose Dalil Maysan (المميزات التنافسية)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-box {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-teal);
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-teal-surface);
  border: 1px solid var(--border-active);
  color: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-circle svg {
  width: 26px;
  height: 26px;
  fill: var(--brand-teal-light);
  display: block;
}

.feature-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Business / "اعلن معنا" Banner Section
   -------------------------------------------------------------------------- */
.advertise-banner {
  background: linear-gradient(135deg, #0A2633 0%, #103B4E 60%, #155069 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.advertise-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.advertise-content h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.advertise-content p {
  color: #D1E5EE;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.advertise-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.ad-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #E2F1F8;
  font-size: 0.95rem;
  font-weight: 600;
}

.ad-benefit-item svg {
  width: 18px;
  height: 18px;
  fill: var(--brand-teal-light);
  flex-shrink: 0;
}

.advertise-card-box {
  background: rgba(7, 21, 29, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ad-card-badge {
  background: var(--brand-teal);
  color: #FFFFFF;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.ad-phone-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFFFFF;
  direction: ltr;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   14. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--border-active);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  fill: var(--brand-teal-light);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-inline: 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   15. Download CTA Section & QR Code
   -------------------------------------------------------------------------- */
.download-section {
  background: radial-gradient(circle at 50% 50%, rgba(23, 163, 152, 0.15) 0%, transparent 60%);
}

.download-box {
  background: var(--surface-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.download-box-content {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.qr-code-wrapper {
  background: #FFFFFF;
  padding: 0.85rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: inline-block;
  margin-block: 0.5rem;
}

.qr-code-wrapper svg, .qr-code-wrapper canvas {
  display: block;
}

.qr-scan-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. Footer & Social Hub
   -------------------------------------------------------------------------- */
.site-footer {
  background: #040D12;
  border-top: 1px solid var(--border-light);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  color: #94A3B8;
}

[data-theme="light"] .site-footer {
  background: #0B1922;
  color: #94A3B8;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-brand .brand-logo {
  gap: 0.85rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 380px;
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  transform: translateY(-3px);
  color: #FFFFFF;
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-links-col h4 {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: 0.92rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   17. Floating Mobile Quick Action Bar (Below 768px)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  animation: slide-up-bar 0.3s ease;
}

@keyframes slide-up-bar {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-mobile-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.btn-mobile-download {
  background: var(--brand-teal);
  color: #FFFFFF;
}

.btn-mobile-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.btn-mobile-quick svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Back to Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 80px;
  left: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--border-active);
  color: var(--brand-teal-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  transform: translateY(-3px);
  background: var(--brand-teal);
  color: #FFFFFF;
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Toast Notification */
.site-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brand-teal-dark);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   18. Strict Responsive Queries (Small, Medium, Large Phones & Tablets)
   -------------------------------------------------------------------------- */
/* Tablets and Below (< 992px) */
@media (max-width: 992px) {
  .nav-links, .btn-header-cta {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin-inline: auto;
  }

  .heritage-grid {
    grid-template-columns: 1fr;
  }

  .advertise-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .advertise-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .advertise-benefits {
    align-items: center;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* Standard Mobile & Phablets (< 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .mobile-bottom-bar {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .floating-badge {
    display: none; /* Hide floating badges to avoid screen crowding on mobile */
  }

  .phone-mockup-container {
    max-width: 290px;
  }

  .phone-screen {
    height: 520px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .category-card {
    padding: 1rem 0.65rem;
  }

  .category-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .category-card-title {
    font-size: 0.88rem;
  }

  .btn-store-download {
    width: 100%;
    min-width: unset;
  }

  .btn-whatsapp-hero {
    width: 100%;
  }

  .back-to-top-btn {
    bottom: 90px;
    left: 1rem;
  }
}

/* Small Phones (< 400px - iPhone SE, Android Compact) */
@media (max-width: 400px) {
  .phone-mockup-container {
    max-width: 260px;
  }

  .phone-frame {
    border-radius: 36px;
    padding: 8px;
    border-width: 3px;
  }

  .phone-screen {
    height: 470px;
    border-radius: 28px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .stat-card {
    padding: 1rem 0.6rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .filter-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* Super Small Screens (< 340px) */
@media (max-width: 340px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1.1rem;
  }
}
