/* ==========================================================================
   GERMAN ARTIFICIAL EYE CENTER - LUXURY DESIGN SYSTEM
   مركز العيون الصناعية الألمانية - تصميم فاخر متكامل ورسبونسف
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Local Font Faces (Guaranteed Instant & Offline Loading) */
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto_kufi_arabic.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/noto_kufi_arabic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/lato_latin_400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/lato_latin_700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #2599cd;
  --primary-light: #38bdf8;
  --primary-dark: #0284c7;
  --primary-glow: rgba(37, 153, 205, 0.35);
  
  --bg-main: #070d1e;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(11, 19, 41, 0.7);
  --bg-surface: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(37, 153, 205, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-gold: #f59e0b;
  
  --font-ar: 'Noto Kufi Arabic', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 153, 205, 0.15);
  --shadow-glow: 0 0 30px rgba(37, 153, 205, 0.4);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Direction-aware typography & global font inheritance */
html, body, button, input, select, textarea, optgroup {
  font-family: var(--font-ar);
}
[dir="rtl"], [dir="rtl"] body, body[dir="rtl"] {
  font-family: var(--font-ar);
}
[dir="ltr"], [dir="ltr"] body, body[dir="ltr"],
[dir="ltr"] button, [dir="ltr"] input, [dir="ltr"] select, [dir="ltr"] textarea {
  font-family: var(--font-en);
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 153, 205, 0.18) 0%, rgba(7, 13, 30, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(7, 13, 30, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Animated Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.preloader-eye {
  width: 130px;
  height: 80px;
  filter: drop-shadow(0 0 25px var(--primary-glow));
}
.preloader-text {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.5px;
  animation: pulse 1.8s infinite ease-in-out;
}

/* SVG Eye Logo & Animations */
.eye-svg {
  width: 72px;
  height: 46px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 12px rgba(37, 153, 205, 0.55));
}
#eye {
  transform-origin: center;
  animation: scall 5s linear infinite;
}
@keyframes scall {
  0%, 24%, 28%, 90%, 94%, 100% { transform: scaleY(1); }
  26%, 92%, 98% { transform: scaleY(0.12); }
}
#nany {
  transform-origin: center;
  animation: move 10s ease-in-out infinite;
  perspective: 10em;
}
@keyframes move {
  0% { transform: scaleY(1) translate(0,0) rotateY(0); }
  12% { transform: scaleY(1); }
  13% { transform: scaleY(0.3); }
  14% { transform: scaleY(1); }
  20% { transform: translate(0,-15%) rotateX(50deg); }
  35% { transform: translate(0,15%) rotateX(-50deg); }
  45% { transform: scaleY(1); }
  46% { transform: scaleY(0.3); }
  47% { transform: scaleY(1); }
  48% { transform: scaleY(0.3); }
  50% { transform: scaleY(1) translate(0,0) rotateY(0); }
  62% { transform: scaleY(1); }
  63% { transform: scaleY(0.3); }
  64% { transform: scaleY(1); }
  70% { transform: translate(11%,0) rotateY(50deg); }
  85% { transform: translate(-7%,0) rotateY(-50deg); }
  95% { transform: scaleY(1); }
  96% { transform: scaleY(0.3); }
  97% { transform: scaleY(1); }
  98% { transform: scaleY(0.3); }
  100% { transform: scaleY(1) translate(0,0) rotateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
}

/* Top Banner / Announcement */
.top-bar {
  background: linear-gradient(90deg, #0b1329 0%, #152243 50%, #0b1329 100%);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 8px 0;
  color: var(--text-muted);
  position: relative;
  z-index: 1002;
}
.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.top-contact-items {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
}
.top-contact-item:hover {
  color: var(--primary-light);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  transition: padding 0.3s ease, background-color 0.3s ease;
}
.navbar.scrolled {
  padding: 8px 0;
  background: rgba(7, 13, 30, 0.96);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-logo .eye-svg {
  width: 72px;
  height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 12px rgba(37, 153, 205, 0.55));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.brand-logo:hover .eye-svg {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 16px rgba(37, 153, 205, 0.75));
}
.brand-name {
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.2;
  display: block;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.65rem;
  color: var(--primary-light);
  display: block;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(37, 153, 205, 0.15);
}
.nav-link i:first-child {
  display: none;
}
.nav-link .link-chevron {
  display: none;
}
.mobile-drawer-header,
.mobile-drawer-footer,
.drawer-user-card,
.drawer-guest-box,
.drawer-section-title,
.drawer-lang-accordion,
.drawer-only,
.nav-menu-divider,
.nav-menu-section-title,
.nav-menu-auth-group,
.nav-menu-user-card,
.nav-menu-user-links,
.nav-menu-contact-row,
.nav-backdrop {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Dropdown (No-Gap Hover & Click-To-Open) */
.lang-dropdown {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 7px 12px;
  border-radius: 20px;
  color: #f8fafc;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.lang-btn:hover, .lang-dropdown.active .lang-btn {
  background: rgba(37, 153, 205, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(37, 153, 205, 0.3);
}
.lang-chevron {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  opacity: 0.75;
}
.lang-dropdown.active .lang-chevron {
  transform: rotate(180deg);
}
.flag-icon {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  background: rgba(11, 19, 41, 0.98);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  min-width: 145px;
  display: none;
  flex-direction: column;
  z-index: 1050;
  padding: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
/* Invisible hover bridge to eliminate gap */
.lang-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}
[dir="rtl"] .lang-menu {
  left: 0;
  right: auto;
}
[dir="ltr"] .lang-menu {
  right: 0;
  left: auto;
}
.lang-dropdown.active .lang-menu {
  display: flex;
  animation: langFadeIn 0.2s ease forwards;
}
@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.lang-item:hover, .lang-item.active {
  background: rgba(37, 153, 205, 0.2);
  color: #fff;
}

/* User Profile Dropdown in Navbar */
.user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(37, 153, 205, 0.22) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid var(--primary-light);
  color: #fff;
  border-radius: 50px;
  padding: 3px 6px 3px 3px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
}
[dir="rtl"] .user-avatar-btn {
  padding: 3px 3px 3px 6px;
}
.user-avatar-btn:hover,
.user-dropdown.active .user-avatar-btn {
  border-color: #fff;
  background: rgba(37, 153, 205, 0.38);
  box-shadow: 0 0 16px rgba(37, 153, 205, 0.55);
  transform: translateY(-1px);
}
.user-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 153, 205, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: #fff;
  flex-shrink: 0;
}
.user-chevron {
  font-size: 0.62rem;
  color: var(--primary-light);
  transition: transform 0.25s ease;
  opacity: 0.85;
}
.user-dropdown.active .user-chevron {
  transform: rotate(180deg);
}
.user-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b1329;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.85);
  z-index: 10;
  animation: badgePulse 2.5s infinite ease-in-out;
}
[dir="rtl"] .user-badge-count {
  right: auto;
  left: -4px;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.7); }
  50% { transform: scale(1.06); box-shadow: 0 0 14px rgba(239, 68, 68, 0.9); }
}
@media (min-width: 1121px) {
  .mobile-only-badge {
    display: none !important;
  }
}
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  background: rgba(11, 19, 41, 0.98);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  min-width: 280px;
  max-width: 330px;
  max-height: 82vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 153, 205, 0.4) rgba(15, 23, 42, 0.6);
  display: none;
  flex-direction: column;
  z-index: 1050;
  padding: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.user-menu::-webkit-scrollbar {
  width: 5px;
}
.user-menu::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
}
.user-menu::-webkit-scrollbar-thumb {
  background: rgba(37, 153, 205, 0.4);
  border-radius: 10px;
}
.user-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
.user-menu-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-light);
  padding: 8px 10px 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
  letter-spacing: 0.3px;
}
.user-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
[dir="rtl"] .user-menu {
  left: 0;
  right: auto;
}
[dir="ltr"] .user-menu {
  right: 0;
  left: auto;
}
.user-dropdown.active .user-menu {
  display: flex;
  animation: userFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes userFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 6px;
}
.user-menu-avatar-big {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(37, 153, 205, 0.25);
  border: 1.5px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.user-menu-info {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.user-menu-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 5px 0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.user-menu-item:hover {
  background: rgba(37, 153, 205, 0.18);
  color: #fff;
  transform: translateX(-2px);
}
[dir="ltr"] .user-menu-item:hover {
  transform: translateX(2px);
}
.user-menu-item.logout-item {
  color: #f87171;
}
.user-menu-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Nav Action Buttons */
.nav-login-btn {
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}
.nav-book-btn {
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 700;
}
.nav-action-btn {
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s ease;
}
.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background: linear-gradient(135deg, #2599cd 0%, #0284c7 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 153, 205, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 153, 205, 0.6);
}
.btn-secondary {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-secondary:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2bf075 0%, #128c7e 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff !important;
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff !important;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-glass:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

/* Section Headings */
.section {
  padding: 80px 0;
  position: relative;
}
.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(37, 153, 205, 0.12);
  border: 1px solid rgba(37, 153, 205, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
  line-height: 1.3;
  text-align: inherit;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
  text-align: inherit;
}
.text-center {
  text-align: center !important;
}
.text-center .section-badge,
[style*="text-align: center"] .section-badge,
[style*="text-align:center"] .section-badge {
  margin-left: auto;
  margin-right: auto;
}
.text-center .section-subtitle,
.text-center .section-title,
[style*="text-align: center"] .section-subtitle,
[style*="text-align:center"] .section-subtitle,
[style*="text-align: center"] .section-title,
[style*="text-align:center"] .section-title {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Hero Slider */
.hero-slider-section {
  position: relative;
  min-height: 600px;
  height: calc(88vh - 80px);
  overflow: hidden;
  background: #060b17;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 13, 30, 0.95) 0%, rgba(7, 13, 30, 0.75) 50%, rgba(7, 13, 30, 0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-inline-start: 85px;
}
.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-content .btn-secondary {
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.hero-content .btn-secondary:hover {
  background: #1e293b;
  border-color: var(--primary-light);
  box-shadow: 0 8px 25px rgba(37, 153, 205, 0.45);
  transform: translateY(-2px);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0b1329;
  border: 2px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 15px rgba(37, 153, 205, 0.25);
  font-size: 1.1rem;
}
.slider-arrow:hover {
  background: linear-gradient(135deg, #2599cd 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 153, 205, 0.6), 0 0 20px rgba(56, 189, 248, 0.5);
}
.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #0b1329;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  z-index: 15;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-dot:hover {
  background: #64748b;
  transform: scale(1.2);
}
.slider-dot.active {
  width: 34px;
  background: linear-gradient(135deg, #2599cd 0%, #38bdf8 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 14px var(--primary-glow);
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}
.feature-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(37, 153, 205, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Interactive Before & After Slider (Locked Motionless Images & Stationary Badges) */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-glow);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  aspect-ratio: 2 / 1;
  background: #000000;
  cursor: ew-resize;
}
.ba-container.is-dragging {
  cursor: grabbing;
}
.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  max-width: none !important;
  min-width: 100% !important;
  transition: none !important;
}
.ba-before {
  z-index: 1;
}
.ba-after {
  z-index: 2;
  clip-path: polygon(0 0, var(--ba-pos, 50%) 0, var(--ba-pos, 50%) 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, var(--ba-pos, 50%) 0, var(--ba-pos, 50%) 100%, 0 100%);
}
.ba-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(37, 153, 205, 0.9), 0 0 6px rgba(255, 255, 255, 0.8);
  z-index: 10;
  pointer-events: none;
  transform: translateX(-50%);
}
.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: var(--ba-pos, 50%);
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2599cd, #0284c7);
  border: 3px solid #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(37, 153, 205, 0.7);
  z-index: 12;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  transition: transform 0.1s ease;
}
.ba-container.is-dragging .ba-slider-handle {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.1);
}
.ba-badge {
  position: absolute;
  bottom: 20px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 800;
  z-index: 15;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  letter-spacing: 0.2px;
}
.ba-badge-before {
  right: 20px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.ba-badge-after {
  left: 20px;
  background: rgba(5, 150, 105, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Active Case Spotlight Header */
.active-case-banner {
  max-width: 920px;
  margin: 0 auto 24px auto;
  background: rgba(14, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 153, 205, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  text-align: start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.35s ease;
}
.active-case-content {
  width: 100%;
}
.active-case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.active-case-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(37, 153, 205, 0.15);
  border: 1px solid rgba(37, 153, 205, 0.4);
  padding: 3px 12px;
  border-radius: 20px;
}
.active-case-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.active-case-counter strong {
  color: #fff;
  font-weight: 700;
}
.active-case-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: opacity 0.25s ease;
}
.active-case-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
  transition: opacity 0.25s ease;
}
.active-case-hint-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(37, 153, 205, 0.08);
  border: 1px dashed rgba(37, 153, 205, 0.35);
  border-radius: 30px;
  padding: 8px 24px;
  margin: 4px auto 0 auto;
  align-self: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.active-case-hint-box .hint-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 153, 205, 0.22);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.active-case-hint-box .hint-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.active-case-hint-box .hint-text strong {
  font-size: 0.86rem;
  color: #fff;
  font-weight: 700;
}
.active-case-hint-box .hint-text span {
  font-size: 0.76rem;
  color: var(--primary-light);
  font-weight: 500;
}
@media (max-width: 768px) {
  .active-case-banner {
    padding: 16px 18px;
    gap: 14px;
  }
  .active-case-hint-box {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 8px 12px;
  }
}

/* Image Switching Transition on Comparison Slider */
.ba-container.is-switching .ba-image {
  opacity: 0.3 !important;
  transform: scale(0.985);
  transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* Cases Carousel Section */
.cases-carousel-section {
  margin-top: 50px;
  text-align: start;
  width: 100%;
}
.cases-carousel-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.carousel-title-group {
  text-align: start;
}
.carousel-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.carousel-count-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(37, 153, 205, 0.16);
  border: 1px solid rgba(37, 153, 205, 0.4);
  padding: 2px 10px;
  border-radius: 14px;
}
.carousel-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.carousel-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.carousel-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.carousel-arrow-btn:hover {
  background: linear-gradient(135deg, #2599cd 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 18px var(--primary-glow);
}
.carousel-arrow-btn:active {
  transform: scale(0.95);
}

/* Track and items */
.cases-carousel-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.cases-carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 6px 24px 6px;
  margin: 0 -6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 153, 205, 0.4) transparent;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.cases-carousel-track::-webkit-scrollbar {
  height: 6px;
}
.cases-carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.cases-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(37, 153, 205, 0.4);
  border-radius: 10px;
}
.cases-carousel-track::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Case Thumbnail Card */
.case-thumb-item {
  flex: 0 0 310px;
  min-width: 310px;
  background: rgba(14, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-align: start;
  position: relative;
}
.case-thumb-item:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 153, 205, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(37, 153, 205, 0.2);
}
.case-thumb-item.active {
  border: 2px solid var(--primary-light);
  background: rgba(15, 30, 60, 0.85);
  box-shadow: 0 0 24px rgba(37, 153, 205, 0.35), 0 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

/* Case Thumbnail Preview */
.case-thumb-preview {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #020617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.thumb-half {
  width: 100%;
  height: 125px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.thumb-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.case-thumb-item:hover .thumb-half img {
  transform: scale(1.05);
}
.thumb-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 153, 205, 0.2), rgba(37, 153, 205, 0.8), rgba(37, 153, 205, 0.2));
  box-shadow: 0 0 8px rgba(37, 153, 205, 0.6);
  z-index: 5;
}
.thumb-tag {
  position: absolute;
  bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.thumb-tag-before {
  inset-inline-end: 8px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.thumb-tag-after {
  inset-inline-end: 8px;
  background: rgba(5, 150, 105, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.case-active-indicator {
  display: none;
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: pulseSoft 2s infinite ease-in-out;
}
.case-thumb-item.active .case-active-indicator {
  display: inline-flex;
}

/* Case Body */
.case-thumb-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-thumb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.case-thumb-num {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-light);
}
.case-thumb-cat {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}
.case-thumb-title {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}
.case-thumb-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
}
.case-thumb-action {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  transition: color 0.2s ease;
}
.case-thumb-item:hover .case-thumb-action {
  color: #38bdf8;
}
.case-thumb-item.active .case-thumb-action {
  color: #34d399;
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.9; }
}

/* Interactive Camera Iris Matching */
.iris-match-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.iris-palette {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.iris-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.iris-chip:hover, .iris-chip.active {
  background: rgba(37, 153, 205, 0.2);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.iris-color-dot {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Doctor Profile Section */
.doctor-card {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}
.doctor-photo-wrapper {
  position: relative;
  width: 280px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-info {
  flex: 1;
  min-width: 280px;
}
.doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.doctor-contact-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Articles Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.article-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-img {
  transform: scale(1.05);
}
.article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.4;
}
.article-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Reviews Carousel / Cards */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  text-align: start;
}
.review-stars {
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.review-comment {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.review-author {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile App Section */
.app-section-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  box-shadow: var(--shadow-lg);
}
.app-features-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.app-feature-item i {
  color: var(--primary-light);
  margin-top: 4px;
  font-size: 1.1rem;
}
.phone-mockup {
  width: 280px;
  height: 520px;
  background: #090e1a;
  border: 10px solid #1e293b;
  border-radius: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-glow);
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.phone-screen {
  background: #0f172a;
  border-radius: 24px;
  height: 100%;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone-notif {
  background: rgba(37, 153, 205, 0.15);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.78rem;
  animation: pulse 2.5s infinite;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question:hover {
  background: rgba(37, 153, 205, 0.08);
}
.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Contact Section & Map */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.map-frame {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Footer */
.footer {
  background: #040813;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: #fff;
  max-width: 100%;
}
.footer-brand .eye-svg {
  width: 58px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(37, 153, 205, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-brand:hover .eye-svg {
  transform: scale(1.06);
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.footer-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: normal;
  word-break: break-word;
}
.footer-brand-sub {
  font-size: 0.72rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-top: 3px;
  opacity: 0.85;
}
.footer-heading {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary-light);
  padding-right: 4px;
}
.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
}
.social-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 12px var(--primary-glow);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Impersonation Alert Banner */
.impersonation-banner {
  background: linear-gradient(90deg, #d97706, #b45309);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

/* Flash Messages / Floating Bottom-Center Toasts */
.flash-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(92vw, 560px);
  pointer-events: none;
}
.alert {
  pointer-events: auto;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: toastBottomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.alert-success { background: rgba(16, 185, 129, 0.94); border-color: rgba(52, 211, 153, 0.4); }
.alert-danger { background: rgba(225, 29, 72, 0.94); border-color: rgba(251, 113, 133, 0.4); }
.alert-warning { background: rgba(217, 119, 6, 0.94); border-color: rgba(251, 191, 36, 0.4); }
.alert-info { background: rgba(14, 165, 233, 0.94); border-color: rgba(56, 189, 248, 0.4); }

.alert.toast-fade-out {
  opacity: 0 !important;
  transform: translateY(20px) scale(0.94) !important;
  pointer-events: none;
}

@keyframes toastBottomIn {
  from {
    transform: translateY(30px) scale(0.92);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Top and Footer Language Dropdown Variations */
.top-lang-dropdown .lang-btn {
  padding: 4px 10px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #e2e8f0;
}
.top-lang-dropdown .lang-btn:hover {
  background: rgba(37, 153, 205, 0.25);
  border-color: var(--primary);
  color: #fff;
}
.footer-lang-container {
  display: inline-flex;
  align-items: center;
}
.footer-lang-dropdown .lang-btn {
  padding: 5px 14px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: #cbd5e1;
}
.footer-lang-dropdown .lang-btn:hover {
  background: rgba(37, 153, 205, 0.22);
  border-color: var(--primary);
  color: #fff;
}
.footer-lang-dropdown .lang-menu {
  bottom: calc(100% + 8px);
  top: auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}
.footer-lang-dropdown .lang-menu::before {
  top: auto;
  bottom: -10px;
}

/* Jasoom Credits Link */
.jasoom-link {
  color: #38bdf8;
  font-weight: 800;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(37, 153, 205, 0.14);
  border: 1px solid rgba(37, 153, 205, 0.35);
  letter-spacing: 0.5px;
  display: inline-block;
  transition: all 0.25s ease;
}
.jasoom-link:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(37, 153, 205, 0.6);
  transform: translateY(-1px);
}

/* Fixed Floating Chat Widget */
.fixed-chat-widget {
  position: fixed;
  bottom: 90px;
  z-index: 995;
  display: flex;
  align-items: center;
  transition: bottom 0.25s ease;
}
[dir="rtl"] .fixed-chat-widget {
  left: 26px;
}
[dir="ltr"] .fixed-chat-widget {
  right: 26px;
}
.floating-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(37, 153, 205, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  position: relative;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-chat-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 34px rgba(37, 153, 205, 0.7);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.floating-chat-btn i {
  font-size: 1.25rem;
}
.chat-pulse-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: chatPulse 2s infinite;
}
.chat-badge-count {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  border-radius: 20px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.9);
  animation: badgeAttention 1.5s infinite;
}
.floating-chat-btn.has-unread {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  animation: chatWiggle 3.5s ease-in-out infinite;
}
@keyframes badgeAttention {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); box-shadow: 0 0 20px rgba(239, 68, 68, 1); }
  100% { transform: scale(1); }
}
@keyframes chatWiggle {
  0%, 100% { transform: translateY(0); }
  10%, 30% { transform: translateY(-4px) rotate(-2deg); }
  20%, 40% { transform: translateY(-4px) rotate(2deg); }
  50% { transform: translateY(0); }
}
@keyframes chatPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (max-width: 768px) {
  .fixed-chat-widget {
    bottom: 95px;
  }
}
@media (max-width: 576px) {
  .fixed-chat-widget {
    bottom: 105px;
  }
  [dir="rtl"] .fixed-chat-widget {
    left: 18px;
  }
  [dir="ltr"] .fixed-chat-widget {
    right: 18px;
  }
  .floating-chat-btn {
    padding: 14px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .floating-chat-label {
    display: none;
  }
}

/* Responsive Media Queries */
/* Responsive Media Queries */
@media (max-width: 1120px) {
  /* Mobile Phone Navbar: Hide separate quick icons and streamline into user dropdown */
  .nav-icon-chat,
  .nav-icon-notif {
    display: none !important;
  }
  /* Mobile: Hide cramped top-bar dropdown (drawer language selector is used instead) */
  .top-lang-dropdown,
  .d-none-mobile {
    display: none !important;
  }
  .user-menu {
    max-width: min(320px, calc(100vw - 20px));
  }

  /* Body Lock when Drawer is open */
  body.nav-locked {
    overflow: hidden !important;
    touch-action: none;
  }

  /* Navbar z-index to isolate drawer and backdrop above page content */
  .navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
  }
  .nav-wrapper {
    position: static !important;
  }

  /* Full Viewport Dark Frosted Backdrop (Sits behind the drawer) */
  .nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  }
  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* ========================================================
     Jasoom / Elites Signature Mobile Top-Down Dropdown Menu
     ======================================================== */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 65px);
    max-height: calc(100dvh - 65px);
    background: rgba(7, 13, 30, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 2px solid var(--border-glow);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 20px 24px 20px;
    margin: 0;
    gap: 0;
    z-index: 10002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Centered, Clean Navigation Links (Jasoom / Elites style) */
  .nav-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
  }
  .nav-menu-links li {
    width: 100%;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-menu-links .nav-link {
    width: 100%;
    max-width: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    background: transparent;
    border: none;
  }
  .nav-menu-links .nav-link i:first-child,
  .nav-menu-links .nav-link .link-chevron {
    display: none !important;
  }
  .nav-menu-links .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  .nav-menu-links .nav-link.active {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37, 153, 205, 0.45);
  }

  /* Thin Minimalist Dividers */
  .nav-menu-divider {
    display: block !important;
    width: 85%;
    max-width: 340px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 14px auto;
    border: none;
  }

  /* Section Titles (Centered) */
  .nav-menu-section-title {
    display: block !important;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 8px;
  }

  /* Centered Scalable Language Accordion in Mobile Drawer */
  .drawer-lang-accordion {
    display: block !important;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
  }
  .drawer-lang-accordion.open {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(11, 19, 41, 0.95);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);
  }
  .drawer-lang-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #f8fafc;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease;
  }
  .drawer-lang-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  .drawer-lang-toggle-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .drawer-lang-toggle-info .flag-icon {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }
  .drawer-lang-chevron {
    font-size: 0.75rem;
    color: #38bdf8;
    transition: transform 0.25s ease;
  }
  .drawer-lang-accordion.open .drawer-lang-chevron {
    transform: rotate(180deg);
  }
  .drawer-lang-dropdown-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), padding 0.2s ease;
    display: flex !important;
    flex-direction: column;
    border-top: 1px solid transparent;
    background: rgba(6, 11, 24, 0.9);
    padding: 0 6px;
    gap: 4px;
  }
  .drawer-lang-accordion.open .drawer-lang-dropdown-list {
    max-height: 240px;
    padding: 6px;
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .drawer-lang-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.18s ease;
  }
  .drawer-lang-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .drawer-lang-item-name .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
  }
  .drawer-lang-item:hover {
    background: rgba(37, 153, 205, 0.15);
    color: #fff;
  }
  .drawer-lang-item.active {
    background: rgba(37, 153, 205, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #fff;
    font-weight: 700;
  }
  .drawer-lang-check {
    font-size: 0.85rem;
    color: #38bdf8;
  }

  /* Auth / User Rows (Jasoom Style) */
  .nav-menu-auth-group,
  .nav-menu-user-links {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
  }
  .nav-menu-auth-row {
    flex-direction: row !important;
    gap: 10px !important;
  }
  .nav-menu-auth-row .nav-menu-auth-item {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.86rem;
  }
  .nav-menu-auth-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 0.94rem;
    font-weight: 600;
    color: #e2e8f0;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-menu-auth-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .nav-menu-auth-item i {
    font-size: 0.9rem;
    color: var(--primary-light);
  }
  .nav-menu-auth-item.logout {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    margin-top: 4px;
  }
  .nav-menu-auth-item.logout i {
    color: #f87171;
  }
  .nav-menu-auth-item.logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fff;
  }

  /* Logged-in User Header Card inside Menu */
  .nav-menu-user-card {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 14px;
    margin: 0 auto 8px auto;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(135deg, rgba(37, 153, 205, 0.15) 0%, rgba(11, 19, 41, 0.85) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
  }
  .nav-menu-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 153, 205, 0.25);
    border: 1.5px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
  }
  .nav-menu-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .nav-menu-user-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
  }
  .nav-menu-user-role {
    font-size: 0.65rem;
    color: var(--primary-light);
    font-weight: 600;
  }

  /* Compact Contact Row at Bottom */
  .nav-menu-contact-row {
    display: flex !important;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .nav-menu-contact-row .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
  }

  .mobile-nav-toggle {
    display: block;
  }
  .nav-login-btn {
    display: none !important;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-slider-section {
    min-height: 520px;
  }
}

/* Patient Dashboard Grid & Responsive Stacking */
.patient-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width: 992px) {
  .hero-content {
    margin-inline-start: 0;
    max-width: 100%;
    padding-inline: 10px;
    text-align: center;
  }
  .hero-content > div[style*="display: flex"] {
    justify-content: center;
  }
  .slider-arrow {
    top: auto;
    bottom: 80px;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .slider-prev {
    left: calc(50% - 120px);
    right: auto;
  }
  .slider-next {
    right: calc(50% - 120px);
    left: auto;
  }
  .slider-arrow:hover {
    transform: scale(1.1);
  }
  .patient-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}
@media (max-width: 576px) {
  .patient-dashboard-grid {
    gap: 18px;
  }
  .patient-dashboard-main .card-glass,
  .patient-dashboard-side .card-glass {
    padding: 20px 16px !important;
  }
}

@media (max-width: 768px) {
  .brand-tag {
    display: none;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .nav-book-btn span,
  .nav-login-btn span {
    display: none;
  }
  .nav-book-btn,
  .nav-login-btn {
    padding: 7px 10px;
  }
  .lang-current-name {
    display: none;
  }
  .lang-btn {
    padding: 7px 9px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .btn-lg {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  .top-bar {
    display: none;
  }
  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .ba-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    bottom: 12px;
  }
  .ba-badge-after { left: 10px; }
  .ba-badge-before { right: 10px; }
  .ba-slider-handle {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   PREMIUM FULL-VIEWPORT CENTERED MODAL DIALOG
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay[style*="display:none"],
.modal-overlay[style*="display: none"] {
  display: none !important;
}

.modal-overlay.active,
.modal-overlay.show {
  display: flex !important;
  animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid var(--border-glow) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(37, 153, 205, 0.3) !important;
  width: 100% !important;
  max-width: 560px !important;
  padding: 28px 30px !important;
  position: relative !important;
  margin: auto !important;
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(25px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

/* ==========================================================================
   Author Bio Card (Articles Detail & Mobile Optimization)
   ========================================================================== */
.author-bio-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 48px;
  background: rgba(11, 19, 41, 0.75);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
}
.author-bio-card .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(37, 153, 205, 0.3);
}
.author-bio-card .author-info {
  flex: 1;
  min-width: 0;
}
.author-bio-card .author-info h4 {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.author-bio-card .author-info .author-title {
  color: var(--primary-light);
  font-size: 0.88rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.author-bio-card .author-info .author-bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.author-bio-card .author-contact-btn {
  margin-inline-start: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .author-bio-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 22px 16px;
    margin-bottom: 36px;
  }
  .author-bio-card .author-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto;
  }
  .author-bio-card .author-info {
    width: 100%;
  }
  .author-bio-card .author-contact-btn {
    margin-inline-start: 0;
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
  }
}

/* ==========================================================================
   Authentication Screens Mobile Polish (.auth-card, .auth-container)
   ========================================================================== */
.auth-section {
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.auth-card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
}
.phone-input-group {
  display: flex;
  direction: ltr;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}
.phone-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 153, 205, 0.25);
}
.phone-input-group .phone-prefix-badge {
  padding: 10px 14px;
  background: rgba(37, 153, 205, 0.15);
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.9rem;
  border-right: 1px solid var(--border-glow);
  flex-shrink: 0;
  user-select: none;
}
.phone-input-group input.phone-control {
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  padding: 10px 14px !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  box-shadow: none !important;
  outline: none !important;
}

@media (max-width: 576px) {
  .auth-section {
    padding-top: 24px;
    padding-bottom: 24px;
    min-height: auto;
  }
  .auth-card {
    padding: 24px 18px;
  }
  .auth-card .eye-svg {
    width: 56px !important;
    height: 36px !important;
    margin-bottom: 6px !important;
  }
  .auth-card h2 {
    font-size: 1.35rem !important;
  }
}

/* ==========================================================================
   Global Print Styles
   Ensures developer impersonation banners, floating widgets, navigation,
   and controls are NEVER displayed or printed on paper / PDF exports.
   ========================================================================== */
@media print {
  .impersonation-banner,
  .fixed-chat-widget,
  .floating-chat-btn,
  .navbar,
  .top-bar,
  .footer,
  #preloader,
  .flash-container,
  .admin-sidebar,
  .admin-header,
  .admin-topbar,
  .print-btn-bar,
  .no-print,
  [data-no-print],
  [class*="impersonat"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Universal print safeguard: Freeze all animations and transforms permanently */
  *, *::before, *::after {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
  }

  #eye, #nany, [id*="eye"], [id*="nany"], .eye-svg, .rx-logo-static * {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

