/* ==========================================================================
   SAHALPLUS — DESIGN SYSTEM & HOMEPAGE STYLES (PHASE 1 REVISION)
   Colors: Primary Green (#70FF0B), Primary Yellow (#FFD400)
   Default: Light Mode (Dark Mode via manual toggle)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --brand-green: #70FF0B;
  --brand-green-hover: #5ee305;
  --brand-green-glow: rgba(112, 255, 11, 0.4);
  --brand-green-subtle: rgba(112, 255, 11, 0.12);
  
  --brand-yellow: #FFD400;
  --brand-yellow-hover: #e6bf00;
  --brand-yellow-glow: rgba(255, 212, 0, 0.45);
  --brand-yellow-subtle: rgba(255, 212, 0, 0.14);

  /* Light Theme Variables (DEFAULT) */
  --bg-body: #FBFDFB;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-alt: #F4F7F4;
  --bg-surface-soft: #F8FAF8;
  --bg-dark-section: #0C121C;
  --bg-footer: #080D15;
  
  --text-main: #111827;
  --text-heading: #0B111A;
  --text-muted: #526071;
  --text-subtle: #8A99AD;
  --text-on-dark: #F8FAFC;
  --text-muted-on-dark: #94A3B8;

  --border-light: #E5EBE5;
  --border-subtle: #EEF2EE;
  --border-dark: #1E293B;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 24px -4px rgba(112, 255, 11, 0.35);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1240px;
}

/* Dark Theme Variables (Activated ONLY on manual toggle) */
[data-theme="dark"] {
  --bg-body: #070B11;
  --bg-surface: #0E1522;
  --bg-surface-elevated: #141E30;
  --bg-surface-alt: #101929;
  --bg-surface-soft: #0A101A;
  --bg-dark-section: #05080E;
  --bg-footer: #030508;

  --text-main: #E2E8F0;
  --text-heading: #FFFFFF;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  --border-light: #1A2639;
  --border-subtle: #131C2C;
  --border-dark: #1F2E45;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 8px 30px rgba(112, 255, 11, 0.4);
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.highlight-green {
  color: var(--brand-green);
}

.highlight-yellow {
  color: var(--brand-yellow);
}

/* Section Title Generic Component */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: var(--brand-green-subtle);
  border: 1px solid rgba(112, 255, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.80rem;
  font-weight: 600;
  color: #0E6B00;
  margin-bottom: 12px;
}

[data-theme="dark"] .section-badge {
  color: var(--brand-green);
  background: rgba(112, 255, 11, 0.1);
  border-color: rgba(112, 255, 11, 0.25);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.0rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.58;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BUTTONS & HOVER STATES (CORRECTION #3 & BRAND SYSTEM)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  user-select: none;
}

/* Primary Green Button -> Yellow (#FFD400) on Hover */
.btn-green {
  background-color: var(--brand-green);
  color: #091203;
  box-shadow: 0 4px 14px rgba(112, 255, 11, 0.35);
  border: 2px solid var(--brand-green);
}

.btn-green:hover {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 212, 0, 0.45);
}

.btn-green:active {
  transform: translateY(0);
}

.btn-dark {
  background-color: #121824;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-dark:hover {
  background-color: var(--brand-yellow);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 212, 0, 0.45);
  border-color: var(--brand-yellow);
}

.btn-dark:active {
  transform: translateY(0);
}

/* Circular Inset Arrow Element (Correction #17) */
.btn-inset-circle {
  width: 25px;
  height: 25px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn:hover .btn-inset-circle {
  transform: translateX(3px);
  background: rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .btn:hover .btn-inset-circle {
  transform: translateX(-3px);
}

.btn-outline,
.btn-secondary {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover,
.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--brand-green);
  color: var(--text-heading);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-outline,
[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF !important;
  font-weight: 700;
}

[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .btn-secondary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #080D15 !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Purge Under-Footer Modals */
#providerModal,
#requestModal,
.provider-modal,
.request-modal,
#modal-provider,
#modal-request {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   HEADER / NAVBAR (CORRECTION #2, #4, #19)
   ========================================================================== */
.header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(251, 253, 251, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .header-wrapper {
  background-color: rgba(7, 11, 17, 0.92);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.header-logo:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Navigation Active / Hover Underline — Curved Pill Style (Refinement #5) */
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 8px;
  transition: color var(--transition-fast);
}

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

/* Pill-shaped curved underline using a pseudo-element pill shape */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: var(--brand-green);
  border-radius: 20px;
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  width: 80%;
}

.nav-link.active {
  color: #0E7700;
  font-weight: 700;
}

[data-theme="dark"] .nav-link.active {
  color: var(--brand-green);
}

/* Header Action Controls & Clean Transparent Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon Buttons — Clean, transparent background, subtle hover feedback (no permanent circular border/background) */
.header-actions .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
  padding: 0;
}

.header-actions .icon-btn:hover {
  color: var(--text-heading);
  background: rgba(0, 0, 0, 0.05);
  border-color: transparent;
  transform: translateY(-1px);
}

[data-theme="dark"] .header-actions .icon-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

/* Guest Utilities (Desktop Language & Theme triggers) */
.header-guest-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-guest-group,
.auth-user-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-guest-group.hidden,
.auth-user-group.hidden,
.header-guest-utilities.hidden {
  display: none !important;
}

/* Login Button — Matching rectangular style with Sign Up */
.login-link {
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 7px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.login-link:hover {
  color: #0E7700;
  border-color: var(--brand-green);
  background: var(--brand-green-subtle);
  transform: translateY(-1px);
}

[data-theme="dark"] .login-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .login-link:hover {
  color: var(--brand-green);
  border-color: var(--brand-green);
  background: rgba(112, 255, 11, 0.1);
}

.signup-btn {
  padding: 7px 20px;
  font-size: 0.90rem;
  border-radius: var(--radius-sm);
}

/* User Notification Badge Dot */
.notif-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-yellow);
  border: 1.5px solid var(--bg-surface);
}

/* ===== USER PROFILE DROPDOWN WRAPPER & AVATAR (NOTICEABLY LARGER + CHEVRON) ===== */
.user-profile-dropdown-wrapper {
  position: relative;
}

.user-profile-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.user-profile-trigger-btn:hover {
  transform: translateY(-1px);
}

/* Noticeably larger Profile Avatar: 42x42px */
.user-avatar-ring {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), #32E678);
  padding: 2.5px;
  box-shadow: 0 0 0 0 rgba(112, 255, 11, 0.4);
  animation: avatarRingPulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes avatarRingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(112, 255, 11, 0.5); }
  60%  { box-shadow: 0 0 0 5px rgba(112, 255, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(112, 255, 11, 0); }
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1A2E0A 0%, #0B1E03 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid var(--bg-surface);
}

.user-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Online status indicator dot */
.user-avatar-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #32E678;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 4px rgba(50, 230, 120, 0.7);
}

[data-theme="dark"] .user-avatar-img {
  background: linear-gradient(145deg, #1A2E0A 0%, #0D2205 100%);
}

.profile-dropdown-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.user-profile-dropdown-wrapper.open .profile-dropdown-arrow {
  transform: rotate(180deg);
}

/* ===== PROFESSIONAL DESKTOP PROFILE DROPDOWN ===== */
.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1200;
  animation: fadeIn 0.18s ease;
}

[dir="rtl"] .user-profile-dropdown {
  right: auto;
  left: 0;
}

.user-profile-dropdown-wrapper.open .user-profile-dropdown {
  display: flex;
}

.profile-dd-header {
  padding: 8px 10px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-dd-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

.profile-dd-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-green-subtle);
  color: #0E7700;
}

[data-theme="dark"] .profile-dd-badge {
  background: rgba(112, 255, 11, 0.14);
  color: var(--brand-green);
}

.profile-dd-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

.profile-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

[dir="rtl"] .profile-dd-item {
  text-align: right;
}

.profile-dd-item:hover {
  background: var(--brand-green-subtle);
  color: #0E7700;
}

[data-theme="dark"] .profile-dd-item:hover {
  color: var(--brand-green);
  background: rgba(112, 255, 11, 0.08);
}

.profile-dd-section {
  padding: 6px 10px 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-dd-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.profile-dd-lang-options,
.profile-dd-theme-options {
  display: flex;
  gap: 5px;
}

.profile-lang-btn,
.profile-theme-btn {
  flex: 1;
  padding: 5px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.profile-lang-btn:hover,
.profile-theme-btn:hover {
  border-color: var(--brand-green);
  color: var(--text-heading);
}

.profile-lang-btn.active,
.profile-theme-btn.active {
  background: var(--brand-green-subtle);
  border-color: var(--brand-green);
  color: #0E7700;
  font-weight: 700;
}

[data-theme="dark"] .profile-lang-btn.active,
[data-theme="dark"] .profile-theme-btn.active {
  background: rgba(112, 255, 11, 0.14);
  color: var(--brand-green);
}

.profile-dd-logout {
  color: #EF4444 !important;
}

.profile-dd-logout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #DC2626 !important;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Language Dropdown Menu (Desktop) */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 145px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 1100;
  animation: fadeIn 0.2s ease;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.active {
  display: flex;
}

.lang-option {
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-xs);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover, .lang-option.selected {
  background: var(--brand-green-subtle);
  color: #0E7700;
  font-weight: 600;
}

[data-theme="dark"] .lang-option:hover, [data-theme="dark"] .lang-option.selected {
  color: var(--brand-green);
  background: rgba(112, 255, 11, 0.1);
}

/* ===== MOBILE NAVIGATION DRAWER & SETTINGS ===== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

[dir="rtl"] .mobile-nav-content {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border-light);
  transform: translateX(-100%);
}

.mobile-nav-drawer.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

/* Mobile User Info Banner inside drawer */
.mobile-user-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.mobile-user-banner.hidden {
  display: none !important;
}

.mobile-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}

.mobile-user-role-badge {
  font-size: 0.70rem;
  font-weight: 700;
  color: #0E7700;
  display: inline-block;
}

[data-theme="dark"] .mobile-user-role-badge {
  color: var(--brand-green);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-nav-link {
  padding: 10px 12px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-nav-link.hidden {
  display: none !important;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--brand-green-subtle);
  color: #0E7700;
}

[data-theme="dark"] .mobile-nav-link:hover, [data-theme="dark"] .mobile-nav-link.active {
  color: var(--brand-green);
  background: rgba(112, 255, 11, 0.1);
}

/* Settings (Language & Theme) inside Mobile Drawer */
.mobile-drawer-settings {
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-setting-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-lang-pills,
.mobile-theme-pills {
  display: flex;
  gap: 6px;
}

.mobile-lang-pill,
.mobile-theme-pill {
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-lang-pill:hover,
.mobile-theme-pill:hover {
  border-color: var(--brand-green);
}

.mobile-lang-pill.active,
.mobile-theme-pill.active {
  background: var(--brand-green-subtle);
  border-color: var(--brand-green);
  color: #0E7700;
  font-weight: 700;
}

[data-theme="dark"] .mobile-lang-pill.active,
[data-theme="dark"] .mobile-theme-pill.active {
  background: rgba(112, 255, 11, 0.14);
  color: var(--brand-green);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.mobile-nav-actions.hidden {
  display: none !important;
}

/* ==========================================================================
   SECTION 1: HERO SECTION (WITH DIGITAL SUPPLY CHAIN NODES & ELEVATED BOTTOM)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 44px 0 105px 0;
  background: radial-gradient(circle at 80% 20%, rgba(112, 255, 11, 0.08), transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(255, 212, 0, 0.06), transparent 40%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.05);
}

/* Subtle Animated Digital Supply Chain Nodes Canvas */
.hero-nodes-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-container-rel {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: #F2F8EE;
  border: 1px solid #D6E8CC;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: #2D4C1F;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.hero-tag-dot {
  color: #0E7700;
  font-weight: 800;
}

[data-theme="dark"] .hero-tag {
  background: rgba(112, 255, 11, 0.08);
  border-color: rgba(112, 255, 11, 0.2);
  color: #C2FF8A;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.15rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 530px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

/* Hero Button 1: "Get Service" */
.btn-hero-primary {
  background-color: var(--brand-green);
  color: #091203;
  border: 2px solid var(--brand-green);
  box-shadow: 0 4px 14px rgba(112, 255, 11, 0.35);
}

.btn-hero-primary .btn-inset-circle {
  background: #091203;
  color: var(--brand-green);
}

.btn-hero-primary:hover {
  background-color: transparent;
  border-color: var(--text-heading);
  color: var(--text-heading);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-hero-primary:hover .btn-inset-circle {
  background: var(--text-heading);
  color: var(--bg-body);
}

/* Hero Button 2: "Become a Provider" */
.btn-hero-secondary {
  background-color: transparent;
  border: 2px solid var(--text-heading);
  color: var(--text-heading);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-hero-secondary .btn-inset-circle {
  background: var(--text-heading);
  color: var(--bg-body);
}

.btn-hero-secondary:hover {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: #091203;
  box-shadow: 0 4px 14px rgba(112, 255, 11, 0.35);
}

.btn-hero-secondary:hover .btn-inset-circle {
  background: #091203;
  color: var(--brand-green);
}

/* Hero Trust Bar */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--brand-yellow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D49B00;
  flex-shrink: 0;
  border: 1px solid rgba(255, 212, 0, 0.3);
}

[data-theme="dark"] .trust-icon {
  color: var(--brand-yellow);
}

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

.trust-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

.trust-subtitle {
  font-size: 0.76rem;
  color: var(--text-subtle);
}

/* Hero Visual Banner */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.03);
}

/* Subtle Floating Badges on Hero Image */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 3;
  animation: float 4s ease-in-out infinite alternate;
}

[data-theme="dark"] .floating-badge {
  background: rgba(14, 21, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.floating-badge.badge-top-left {
  top: 20px;
  left: 20px;
}

.floating-badge.badge-bottom-right {
  bottom: 20px;
  right: 20px;
  animation-delay: 2s;
}

.badge-dot-yellow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 8px rgba(255, 212, 0, 0.7);
}

.badge-star-icon {
  font-size: 1.05rem;
  color: var(--brand-yellow);
}

.badge-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
}

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

/* ==========================================================================
   SECTION 2: FIVE SERVICE CARDS (FLOATING ROW + CORNER CUTOUT NOTCH)
   ========================================================================== */
.services-cards-section {
  position: relative;
  margin-top: -65px;
  z-index: 10;
  padding-bottom: 60px;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(112, 255, 11, 0.6);
}

.service-card:hover::before {
  background: var(--brand-green);
}

.service-card-icon-box {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-icon-box {
  transform: scale(1.06);
}

.service-card-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.service-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
}

/* Service Card Circular Inset Corner Cutout — True Inverted Notch (Refinement #1) */
/* The card uses overflow:hidden + a corner mask to create a genuine concave circular bite */
.service-card-cutout-wrap {
  align-self: flex-end;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
  position: relative;
  /* Negative margin to extend to the card edges */
  margin-left: -18px;
  margin-right: -18px;
  margin-bottom: 0;
  width: calc(100% + 36px);
  padding-bottom: 0;
}

/* The notch container creates the inverted circular cutout at bottom-right corner */
.service-card-cutout-notch {
  position: relative;
  width: 70px;
  height: 60px;
  /* Use radial-gradient mask to cut a circle from the top-left corner of this element */
  background: var(--bg-surface);
  -webkit-mask-image: radial-gradient(circle 30px at 0% 100%, transparent 29px, black 30px);
  mask-image: radial-gradient(circle 30px at 0% 100%, transparent 29px, black 30px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px 14px 14px 0;
  transition: all var(--transition-fast);
  /* Match border color on hover via outline trick */
  border-bottom-right-radius: var(--radius-lg);
}

/* The circular arrow button sits inside the notch */
.service-cutout-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--brand-green);
  color: #091203;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(112, 255, 11, 0.45);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.service-card:hover .service-cutout-btn {
  background: var(--brand-yellow);
  color: #000000;
  box-shadow: 0 5px 16px rgba(255, 212, 0, 0.6);
  transform: scale(1.12) rotate(45deg);
}

/* ==========================================================================
   SECTION 3: HOW SAHALPLUS WORKS
   ========================================================================== */
.how-it-works-section {
  padding: 80px 0;
  background: var(--bg-surface-soft);
  position: relative;
}

.how-header {
  text-align: center;
  margin-bottom: 56px;
}

.how-title-decorated {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.dashed-line {
  width: 60px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-green) 0, var(--brand-green) 6px, transparent 6px, transparent 12px);
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.how-steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #A8E685 0, #A8E685 6px, transparent 6px, transparent 12px);
  z-index: 1;
}

[data-theme="dark"] .how-steps-grid::before {
  background: repeating-linear-gradient(90deg, #2A5E1C 0, #2A5E1C 6px, transparent 6px, transparent 12px);
}

.how-step-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.step-icon-circle {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-full);
  background: var(--brand-green);
  color: #0B1E03;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(112, 255, 11, 0.4);
  transition: all var(--transition-normal);
}

.how-step-card:hover .step-icon-circle {
  background: var(--brand-yellow);
  color: #000000;
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 10px 28px rgba(255, 212, 0, 0.5);
}

.step-icon-circle svg {
  width: 28px;
  height: 28px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   SPECIAL INVERTED THEMED SECTIONS (CORRECTION #16)
   - In Light Mode: Website is Light; these two sections are DARK.
   - In Dark Mode: Website is Dark; these two sections are LIGHT / WHITE.
   ========================================================================== */

/* Special Section 1: Built to Make Choosing Easier (#trust-stats) */
.stats-section {
  padding: 84px 0;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

/* Light Mode Defaults for Special Sections (DARK APPEARANCE) */
html:not([data-theme="dark"]) .stats-section,
[data-theme="light"] .stats-section {
  background: linear-gradient(180deg, #090F19 0%, #0D1624 100%);
  color: #FFFFFF;
}

html:not([data-theme="dark"]) .stats-section .stats-title,
[data-theme="light"] .stats-section .stats-title {
  color: #FFFFFF;
}

html:not([data-theme="dark"]) .stats-section .stat-card,
[data-theme="light"] .stats-section .stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not([data-theme="dark"]) .stats-section .stat-number,
[data-theme="light"] .stats-section .stat-number {
  color: #FFFFFF;
}

html:not([data-theme="dark"]) .stats-section .stat-label,
[data-theme="light"] .stats-section .stat-label {
  color: #94A3B8;
}

/* Dark Mode Inversion for Special Sections (LIGHT / WHITE APPEARANCE) */
[data-theme="dark"] .stats-section {
  background: #FFFFFF !important;
  color: #0B111A !important;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

[data-theme="dark"] .stats-section .stats-title {
  color: #0B111A !important;
}

[data-theme="dark"] .stats-section .stat-card {
  background: #F4F7F4 !important;
  border: 1px solid #E2E8F0 !important;
}

[data-theme="dark"] .stats-section .stat-number {
  color: #0B111A !important;
}

[data-theme="dark"] .stats-section .stat-label {
  color: #526071 !important;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(112, 255, 11, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.stats-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.stats-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-yellow);
}

.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--brand-yellow);
}

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

.stat-card {
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(112, 255, 11, 0.5) !important;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-yellow-subtle);
  border: 1px solid rgba(255, 212, 0, 0.35);
  color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform var(--transition-fast);
}

.stat-card:hover .stat-icon {
  transform: scale(1.12);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==========================================================================
   SECTION 5: EXPLORE OUR SERVICES SECTION
   ========================================================================== */
.explore-services-section {
  padding: 90px 0;
  background: var(--bg-body);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.explore-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.explore-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(112, 255, 11, 0.5);
}

.explore-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.explore-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.explore-card:hover .explore-img-wrap img {
  transform: scale(1.08);
}

.explore-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.explore-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.explore-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.explore-btn {
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  transition: all var(--transition-fast);
}

.explore-card:hover .explore-btn {
  background: var(--brand-yellow);
  color: #000;
  border-color: var(--brand-yellow);
  transform: scale(1.1);
}

/* ==========================================================================
   SECTION 6: WHY CHOOSE US — Dynamic CSS/SVG City Skyline Background (Refinement #2)
   ========================================================================== */
.why-choose-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  background: #07101E;
}

/* Dynamic SVG city skyline vector background — no static jpg */
.why-choose-bg-banner {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* CSS-drawn city skyline elements via box-shadows and pseudo-elements */
.why-choose-bg-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Sky gradient */
    linear-gradient(180deg, #060D1A 0%, #0B1829 35%, #0E2140 70%, #122849 100%);
  z-index: 0;
}

/* Animated starfield in the why-choose background */
.why-choose-bg-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 15%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 12%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 6%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 78% 10%, rgba(112,255,11,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 33% 14%, rgba(112,255,11,0.4) 0%, transparent 100%);
  z-index: 1;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Inline SVG background city skyline */
.why-choose-svg-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75%;
  z-index: 2;
  pointer-events: none;
}

/* Green radial glow at the top center */
.why-choose-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(112,255,11,0.12) 0%, transparent 65%);
  z-index: 3;
  pointer-events: none;
}

.why-choose-overlay {
  display: none; /* replaced by inline SVG approach */
}

.why-choose-container-rel {
  position: relative;
  z-index: 4;
}

.why-section-title {
  color: #FFFFFF !important;
}

.why-section-subtitle {
  color: #CBD5E1 !important;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .why-card {
  background: rgba(14, 21, 34, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.25);
  border-color: var(--brand-yellow);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-yellow-subtle);
  color: #B38600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 212, 0, 0.35);
  transition: transform var(--transition-fast);
}

[data-theme="dark"] .why-icon {
  color: var(--brand-yellow);
}

.why-card:hover .why-icon {
  transform: scale(1.1);
}

.why-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.why-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 7: POWERFUL PLATFORM FEATURES
   ========================================================================== */
.platform-features-section {
  padding: 90px 0;
  background: var(--bg-body);
}

.features-box {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.features-content-col {
  display: flex;
  flex-direction: column;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-check-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--brand-yellow);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(255, 212, 0, 0.4);
}

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

.feature-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.feature-item-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Device Mockup Graphic */
.features-mockup-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.devices-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: center;
}

.laptop-mockup {
  width: 82%;
  background: #1E293B;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 0 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  border: 1px solid #334155;
}

.laptop-screen {
  background: #FFFFFF;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  position: relative;
  height: 220px;
}

.laptop-base {
  width: 100%;
  height: 12px;
  background: #334155;
  border-radius: 0 0 12px 12px;
  position: relative;
}

.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #64748B;
  border-radius: 0 0 4px 4px;
}

.laptop-screen-header {
  height: 28px;
  background: #0B111A;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.window-dots {
  display: flex;
  gap: 4px;
}

.window-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.laptop-screen-content {
  padding: 12px;
  height: 100%;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-banner {
  height: 80px;
  background: linear-gradient(135deg, #0B1626, #142844);
  border-radius: 6px;
  padding: 10px;
  color: #FFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mockup-card-mini {
  background: #FFF;
  border-radius: 4px;
  height: 46px;
  border: 1px solid #E2E8F0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phone-mockup {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 130px;
  height: 240px;
  background: #0B111A;
  border: 4px solid #334155;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  height: 14px;
  background: #0B111A;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-notch-bar {
  width: 34px;
  height: 4px;
  background: #1E293B;
  border-radius: var(--radius-full);
}

.phone-screen {
  flex: 1;
  background: #FFFFFF;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   SECTION 8: CUSTOMER TESTIMONIALS (CORRECTION #13)
   ========================================================================== */
.testimonials-section {
  padding: 84px 0;
  background: var(--bg-surface-soft);
}

.testimonials-carousel-wrapper {
  position: relative;
  margin-top: 48px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(112, 255, 11, 0.4);
}

.testimonial-stars {
  color: var(--brand-yellow);
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
  font-size: 1.1rem;
}

.testimonial-quote {
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--brand-green-subtle);
  border: 2px solid var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0E7700;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: var(--brand-yellow);
  color: #000;
  border-color: var(--brand-yellow);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-prev {
  left: -22px;
}

.carousel-nav-next {
  right: -22px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 28px;
  background: var(--brand-green);
}

/* ==========================================================================
   SECTION 9: FAQ SECTION — Dynamic CSS/SVG Travel Accessories Background (Refinement #2)
   ========================================================================== */
.faq-section {
  padding: 68px 0 80px 0;
  position: relative;
  overflow: hidden;
}

/* Dynamic travel accessories SVG background — no static jpg */
.faq-clean-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Warm sand/ivory travel mood base */
  background: linear-gradient(145deg, #FFF9EE 0%, #FFF5E0 30%, #FDEFD8 60%, #F9EDD0 100%);
}

/* Subtle pattern via CSS geometric shapes for travel accessories */
.faq-clean-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Passport-shape rectangles */
    linear-gradient(0deg, transparent 49%, rgba(200,160,80,0.06) 49%, rgba(200,160,80,0.06) 51%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(200,160,80,0.06) 49%, rgba(200,160,80,0.06) 51%, transparent 51%),
    /* Dot pattern - luggage tag dots */
    radial-gradient(circle 3px at 8% 20%, rgba(180,130,50,0.2) 0%, transparent 100%),
    radial-gradient(circle 2px at 18% 70%, rgba(180,130,50,0.15) 0%, transparent 100%),
    radial-gradient(circle 3px at 30% 40%, rgba(112,200,50,0.2) 0%, transparent 100%),
    radial-gradient(circle 4px at 45% 85%, rgba(180,130,50,0.12) 0%, transparent 100%),
    radial-gradient(circle 2px at 60% 15%, rgba(112,200,50,0.18) 0%, transparent 100%),
    radial-gradient(circle 3px at 72% 55%, rgba(180,130,50,0.15) 0%, transparent 100%),
    radial-gradient(circle 2px at 85% 30%, rgba(112,200,50,0.2) 0%, transparent 100%),
    radial-gradient(circle 4px at 92% 75%, rgba(180,130,50,0.12) 0%, transparent 100%);
  background-size: 80px 80px, 80px 80px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

/* Animated floating travel elements (circles = compass/coins, triangles = mountains via borders) */
.faq-clean-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Top left - large suitcase silhouette hint */
    radial-gradient(ellipse 120px 80px at 8% 30%, rgba(210,170,80,0.15) 0%, transparent 70%),
    /* Top right - airplane path glow */
    radial-gradient(ellipse 200px 60px at 92% 15%, rgba(112,180,50,0.12) 0%, transparent 70%),
    /* Bottom left - compass/globe glow */
    radial-gradient(ellipse 150px 150px at 5% 90%, rgba(210,160,60,0.18) 0%, transparent 70%),
    /* Bottom right - travel bag hint */
    radial-gradient(ellipse 180px 100px at 95% 85%, rgba(180,130,50,0.15) 0%, transparent 70%),
    /* Center accent */
    radial-gradient(ellipse 300px 200px at 50% 50%, rgba(255,240,200,0.4) 0%, transparent 70%);
  animation: faqBgPulse 8s ease-in-out infinite alternate;
}

@keyframes faqBgPulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.faq-container .section-title {
  color: #000000 !important;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(112, 255, 11, 0.5);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-heading);
  background: none;
  cursor: pointer;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--brand-green);
  color: #000000;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px 24px;
}

/* ==========================================================================
   SECTION 10: DOWNLOAD APP SECTION (FIX #3: MOBILE MOCKUP OVERLAP ADJUSTMENT)
   ========================================================================== */
.download-app-section {
  padding: 70px 0 80px 0;
  background: var(--bg-surface-soft);
  position: relative;
  z-index: 10;
  overflow: visible;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.app-content {
  display: flex;
  flex-direction: column;
}

.app-store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Standard Official Store Badges — Equal height 50px, official styling */
.store-badge-official {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  min-height: 50px;
  padding: 0 18px;
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.store-badge-official:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

.store-badge-official:active {
  transform: translateY(0);
}

.store-badge-official svg {
  flex-shrink: 0;
}

.store-badge-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

[dir="rtl"] .store-badge-text-wrap {
  text-align: right;
}

.store-badge-top-text {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.store-badge-main-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* Phone Mockup — Emerald Green Pulse Glow + -100px Overlap (Refinement #3) */
.app-phone-visual {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: -100px;
  z-index: 15;
}

/* Replaced yellow glow with emerald green pulse animation */
.app-yellow-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 230, 120, 0.45) 0%, rgba(50, 230, 80, 0.18) 45%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  filter: blur(8px);
  animation: emeraldPulse 3s ease-in-out infinite;
}

@keyframes emeraldPulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
  50%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
}

.app-phone-container {
  width: 270px;
  height: 520px;
  background: #0B111A;
  border: 8px solid #1E293B;
  border-radius: 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 60px rgba(50, 230, 100, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 2;
  animation: phoneLevitate 4s ease-in-out infinite;
}

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

.app-phone-screen {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-phone-header-bar {
  padding: 12px 14px;
  background: #0B111A;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-screen-inner {
  padding: 12px;
  background: #F8FAFC;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

/* ==========================================================================
   SPECIAL SECTION 2: FINAL CTA BANNER (THEME INVERSION — CORRECTION #16)
   ========================================================================== */
.final-cta-section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-normal);
}

/* Light Mode Defaults for Final CTA (DARK APPEARANCE) */
html:not([data-theme="dark"]) .final-cta-section,
[data-theme="light"] .final-cta-section {
  background: linear-gradient(135deg, #070D18 0%, #0B1626 50%, #0F2038 100%);
  color: #FFFFFF;
}

html:not([data-theme="dark"]) .final-cta-section .final-cta-title,
[data-theme="light"] .final-cta-section .final-cta-title {
  color: #FFFFFF;
}

html:not([data-theme="dark"]) .final-cta-section .final-cta-desc,
[data-theme="light"] .final-cta-section .final-cta-desc {
  color: #CBD5E1;
}

/* Dark Mode Inversion for Final CTA (LIGHT / WHITE APPEARANCE) */
[data-theme="dark"] .final-cta-section {
  background: #FFFFFF !important;
  color: #0B111A !important;
  border-top: 1px solid #E2E8F0;
}

[data-theme="dark"] .final-cta-section .final-cta-title {
  color: #0B111A !important;
}

[data-theme="dark"] .final-cta-section .final-cta-desc {
  color: #475569 !important;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(112, 255, 11, 0.15), transparent 70%);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.final-cta-desc {
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.final-cta-btn .btn-inset-circle {
  background: #091203;
  color: var(--brand-green);
}

.final-cta-btn:hover .btn-inset-circle {
  background: #000;
  color: var(--brand-yellow);
}

/* ==========================================================================
   SECTION 12: FOOTER (BRAND COLOR LOGO & 4 SOCIAL ICONS ONLY)
   ========================================================================== */
.footer-wrapper {
  background-color: var(--bg-footer);
  color: #94A3B8;
  padding: 72px 0 32px 0;
  border-top: 1px solid var(--border-dark);
  position: relative;
}

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 18px;
  display: inline-block;
}

.footer-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.social-icon-btn:hover {
  background: var(--brand-yellow);
  color: #000000;
  border-color: var(--brand-yellow);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.92rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-green);
  transform: translateX(3px);
}

[dir="rtl"] .footer-link:hover {
  transform: translateX(-3px);
}

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

/* ==========================================================================
   FLOATING CONTROLS: CHAT? WIDGET + SCROLL-TO-TOP (CORRECTION #20)
   ========================================================================== */

/* Floating "Chat?" Trigger Button */
.floating-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 950;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--brand-green);
  color: #091203;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(112, 255, 11, 0.4);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.floating-chat-trigger:hover {
  background: var(--brand-yellow);
  color: #000000;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(255, 212, 0, 0.5);
}

/* Scroll-to-Top Button (Above Chat Widget, Auto-hides when Chat is Open) */
.back-to-top-btn {
  position: fixed;
  bottom: 82px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--brand-yellow);
  color: #000000;
  border-color: var(--brand-yellow);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 212, 0, 0.4);
}

/* Auto-hide Scroll-To-Top when chat modal is open */
body.chat-modal-open .back-to-top-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
}

/* Interactive Chat Support Modal */
.chat-modal-overlay {
  position: fixed;
  bottom: 84px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 120px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
}

.chat-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-modal-box {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-modal-header {
  padding: 14px 18px;
  background: #0B111A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #091203;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  border: 1.5px solid #0B111A;
}

.chat-close-btn {
  color: #94A3B8;
  font-size: 1.1rem;
}

.chat-close-btn:hover {
  color: #FFF;
}

.chat-modal-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface-alt);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.bot-msg .chat-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-bottom-left-radius: 3px;
}

.user-msg .chat-bubble {
  background: var(--brand-green);
  color: #091203;
  font-weight: 600;
  border-bottom-right-radius: 3px;
}

.chat-quick-replies {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  overflow-x: auto;
}

.chat-reply-chip {
  padding: 5px 10px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chat-reply-chip:hover {
  background: var(--brand-yellow);
  color: #000;
  border-color: var(--brand-yellow);
}

.chat-modal-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.chat-modal-input-bar input {
  flex: 1;
  font-size: 0.9rem;
  border: none;
  background: var(--bg-surface-alt);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  outline: none;
  color: var(--text-main);
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #091203;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.chat-send-btn:hover {
  background: var(--brand-yellow);
  color: #000;
}

/* ==========================================================================
   INTERACTIVE SEARCH MODAL
   ========================================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.search-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
}

.search-modal-overlay.open .search-modal-box {
  transform: translateY(0);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.search-input {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-heading);
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
}

.search-close-btn {
  color: var(--text-subtle);
  font-size: 1.2rem;
  padding: 4px;
}

.search-results-list {
  padding: 16px 20px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--brand-green-subtle);
  color: #0E7700;
}

[data-theme="dark"] .search-result-item:hover {
  color: var(--brand-green);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Laptop & Medium Screens (< 1200px) */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .services-row {
    grid-template-columns: repeat(5, 1fr);
  }
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Screens (< 992px) */
@media (max-width: 991px) {
  .nav-menu, .header-guest-utilities, .auth-guest-group {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  /* When user is logged in, profile avatar is shown in topbar and hamburger is hidden */
  .auth-user-group:not(.hidden) ~ .mobile-menu-toggle,
  .header-actions.user-logged-in .mobile-menu-toggle {
    display: none !important;
  }
  .auth-user-group {
    display: flex !important;
  }
  .auth-user-group.hidden {
    display: none !important;
  }
  .auth-user-group .user-notif-btn {
    display: none !important;
  }

  /* ── HERO: keep two-column layout at tablet ── */
  .hero-section {
    padding: 32px 0 85px 0;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 9px 16px;
    font-size: 0.86rem;
  }
  .hero-ctas {
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-trust-bar {
    gap: 16px;
    padding-top: 16px;
  }
  .hero-visual-card {
    max-width: 100%;
  }

  /* ── SERVICE CARDS: all 5 in one row, compact ── */
  .services-cards-section {
    margin-top: -42px;
  }
  .services-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .service-card {
    padding: 14px 12px 0 12px;
  }
  .service-card-icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }
  .service-card-title {
    font-size: 0.92rem;
  }
  .service-card-desc {
    font-size: 0.76rem;
  }

  /* ── HOW IT WORKS: keep 4 in one row ── */
  .how-it-works-section {
    padding: 60px 0;
  }
  .how-steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .how-steps-grid::before {
    display: none;
  }
  .step-icon-circle {
    width: 52px;
    height: 52px;
  }
  .step-title {
    font-size: 1rem;
  }
  .step-desc {
    font-size: 0.84rem;
  }

  /* ── STATS / BUILT TO MAKE CHOOSING EASIER: keep 4 in one row ── */
  .stats-section {
    padding: 60px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .stat-card {
    padding: 22px 14px;
  }
  .stat-number {
    font-size: 1.85rem;
  }

  /* ── EXPLORE SERVICES ── */
  .explore-services-section {
    padding: 60px 0;
  }
  .explore-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
  .explore-img-wrap {
    height: 120px;
  }
  .explore-content {
    padding: 14px;
  }

  /* ── WHY CHOOSE US: keep 4 in one row ── */
  .why-choose-section {
    padding: 60px 0;
  }
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 32px;
  }
  .why-card {
    padding: 18px 12px;
  }
  .why-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
  .why-title {
    font-size: 0.98rem;
  }
  .why-desc {
    font-size: 0.82rem;
  }

  /* ── PLATFORM FEATURES (Built to Make) ── */
  .platform-features-section {
    padding: 60px 0;
  }
  .features-box {
    grid-template-columns: 1fr 1fr;
    padding: 36px 28px;
    gap: 32px;
  }

  /* ── TESTIMONIALS: keep 3 in one row ── */
  .testimonials-section {
    padding: 60px 0;
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .testimonial-card {
    padding: 22px 16px;
  }

  /* ── FAQ ── */
  .faq-section {
    padding: 52px 0 60px 0;
  }

  /* ── DOWNLOAD APP: keep two-column, phone on right ── */
  .download-app-section {
    padding: 50px 0 60px 0;
  }
  .app-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    text-align: left;
  }
  .app-phone-visual {
    margin-top: -60px;
  }
  .app-phone-container {
    width: 210px;
    height: 400px;
  }
  .store-badge-official {
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    gap: 10px;
  }
  .store-badge-official svg {
    width: 24px;
    height: 24px;
  }
  .store-badge-main-text {
    font-size: 0.94rem;
  }
  .store-badge-top-text {
    font-size: 0.58rem;
  }
  .app-store-badges {
    justify-content: flex-start;
    gap: 10px;
  }

  /* ── FOOTER ── */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Tablet Narrow (< 800px): service cards and stats adjust */
@media (max-width: 799px) {
  .services-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
  }
  .service-card {
    padding: 12px 8px 0 8px;
  }
  .service-card-icon-box {
    width: 40px;
    height: 40px;
  }
  .service-card-title {
    font-size: 0.82rem;
  }
  .service-card-desc {
    font-size: 0.70rem;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .how-steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Screens (< 640px) */
@media (max-width: 639px) {
  /* ── HERO ── */
  .hero-section {
    padding: 28px 0 75px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-tag {
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-description {
    font-size: 0.90rem;
    margin-bottom: 18px;
  }
  /* Keep both CTAs side by side */
  .hero-ctas {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 8px 12px;
    font-size: 0.82rem;
    flex: 1;
  }
  /* Trust bar: keep all 3 in one row */
  .hero-trust-bar {
    gap: 10px;
    padding-top: 14px;
    flex-wrap: nowrap;
  }
  .trust-item {
    gap: 6px;
  }
  .trust-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  .trust-title {
    font-size: 0.78rem;
  }
  .trust-subtitle {
    font-size: 0.68rem;
  }
  .hero-visual-card {
    max-width: 100%;
    margin: 0 auto;
  }

  /* ── SERVICE CARDS: 3 top + 2 bottom centered ── */
  .services-cards-section {
    margin-top: -28px;
  }
  .services-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  /* First 3 cards: span 2 cols each = fills 6-col grid evenly */
  .services-row .service-card:nth-child(1),
  .services-row .service-card:nth-child(2),
  .services-row .service-card:nth-child(3) {
    grid-column: span 2;
  }
  /* Last 2 cards: span 3 cols each (centered in 6-col grid) */
  .services-row .service-card:nth-child(4),
  .services-row .service-card:nth-child(5) {
    grid-column: span 3;
  }
  .service-card {
    padding: 14px 12px 0 12px;
  }
  .service-card-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }
  .service-card-title {
    font-size: 0.86rem;
  }
  .service-card-desc {
    font-size: 0.74rem;
  }

  /* ── HOW IT WORKS: 2 top + 2 bottom ── */
  .how-it-works-section {
    padding: 48px 0;
  }
  .how-title-decorated {
    font-size: 1.65rem;
  }
  .how-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .step-icon-circle {
    width: 52px;
    height: 52px;
  }
  .step-title {
    font-size: 0.98rem;
  }

  /* ── STATS / BUILT TO MAKE CHOOSING EASIER: 2-col ── */
  .stats-section {
    padding: 48px 0;
  }
  .stats-title {
    font-size: 1.8rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 20px 12px;
  }
  .stat-number {
    font-size: 1.75rem;
  }

  /* ── EXPLORE SERVICES ── */
  .explore-services-section {
    padding: 48px 0;
  }
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ── WHY CHOOSE US: 2+2 ── */
  .why-choose-section {
    padding: 48px 0;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
  }

  /* ── PLATFORM FEATURES: single col ── */
  .platform-features-section {
    padding: 48px 0;
  }
  .features-box {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }

  /* ── SECTION TITLES ── */
  .section-title {
    font-size: 1.72rem;
  }

  /* ── TESTIMONIALS: single col ── */
  .testimonials-section {
    padding: 48px 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* ── FAQ ── */
  .faq-section {
    padding: 44px 0 52px 0;
  }

  /* ── DOWNLOAD APP: phone at top, content below, buttons side-by-side ── */
  .download-app-section {
    padding: 0 0 48px 0;
  }
  .app-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }
  .app-phone-visual {
    margin-top: 0;
    margin-bottom: 0;
  }
  .app-phone-container {
    width: 200px;
    height: 380px;
  }
  .app-store-badges {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
  }
  .store-badge-official {
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    gap: 9px;
    flex: 1 1 140px;
    max-width: 175px;
    justify-content: center;
  }
  .store-badge-official svg {
    width: 22px;
    height: 22px;
  }
  .store-badge-main-text {
    font-size: 0.90rem;
  }
  .store-badge-top-text {
    font-size: 0.56rem;
  }

  /* ── FINAL CTA ── */
  .final-cta-section {
    padding: 60px 0;
  }
  .final-cta-title {
    font-size: 2rem;
  }
  .final-cta-desc {
    font-size: 0.96rem;
    margin-bottom: 24px;
  }

  /* ── FOOTER ── */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .floating-chat-trigger {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.88rem;
  }
  .back-to-top-btn {
    bottom: 70px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .chat-modal-overlay {
    bottom: 72px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
