/* ═══════════════════════════════════════════════════════════
   MedicalTechno — Premium SEO Landing Pages Style Sheet
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #060B12;
  --bg-secondary: #0D1623;
  --bg-dark: #03060B;
  --surface: #0E1A2B;
  --surface-hover: #16263F;
  --surface-glass: rgba(14, 26, 43, 0.75);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --accent: #1686E0;
  --accent-light: #60A5FA;
  --accent-dark: #0A5C9E;
  --accent-glow: rgba(22, 134, 224, 0.4);
  --accent-subtle: rgba(22, 134, 224, 0.12);
  
  --emerald: #00B4D8;
  --emerald-light: #48CAE4;
  --emerald-subtle: rgba(0, 180, 216, 0.12);
  
  --border: #1E293B;
  --border-light: #162040;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px var(--accent-glow);
  /* Premium Navigation System Variables */
  --header-h: 72px;
  --header-bg: rgba(14, 26, 43, 0.85);
  --duration: 0.25s;
  --duration-slow: 0.4s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background: radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.12) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
              radial-gradient(at 50% 100%, rgba(30, 64, 175, 0.08) 0px, transparent 50%),
              var(--bg-primary);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(14, 26, 43, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.header__logo-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  transition: var(--transition);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.header__nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.header__nav-link--active {
  color: var(--accent-light);
  background: var(--accent-subtle);
}

.header__btn {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: var(--transition);
}

.header__btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

/* Mobile Header Responsiveness */
@media (max-width: 768px) {
  .header {
    height: 60px; /* Compact header height on mobile */
  }
  
  .header__logo {
    font-size: 1.05rem; /* Downsized logo text on mobile */
    gap: 6px;
  }
  
  .header__logo-img {
    width: 26px;
    height: 26px;
  }
  
  .header__nav-link {
    display: none; /* Hide secondary navigation links to prevent squishing and overlap */
  }
  
  .header__btn {
    padding: 6px 14px;
    font-size: 12px; /* Compact, elegant button sizing */
  }
}

@media (max-width: 380px) {
  .header__logo {
    font-size: 0.95rem; /* Sized down further for extremely narrow screens (e.g. 320px) */
  }
  
  .header__btn {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Hero Section */
.hero {
  padding: 140px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(22, 134, 224, 0.1);
  border: 1px solid rgba(22, 134, 224, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-light), var(--emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 680px;
}

@media (max-width: 992px) {
  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero__actions {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

.hero__price-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero__price-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__price-title {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero__price-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.hero__price-sub {
  font-size: 12px;
  color: var(--emerald-light);
  font-weight: 600;
}

/* Key Benefits */
.benefits {
  padding: 40px 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .benefits__grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.benefit-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.benefit-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Main Content (H2 Sections) */
.content-sec {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-light), var(--emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}

.content-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.content-card__num {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--accent-light), var(--emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.content-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.content-card__body {
  font-size: 14px;
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-sec {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent-light);
  transition: var(--transition);
}

.faq-item[open] .faq-summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 24px 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid transparent;
  line-height: 1.6;
}

.faq-item[open] .faq-content {
  border-top-color: var(--border);
}

/* Keywords Block */
.keywords-box {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Section */
.cta-sec {
  padding: 80px 0;
  position: relative;
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, rgba(22, 134, 224, 0.08) 0%, rgba(0, 180, 216, 0.04) 100%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px auto;
  font-size: 15px;
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: auto;
}

.footer p {
  margin-bottom: 8px;
}


/* ==========================================================================
   PREMIUM HEADER, NAVIGATION, MOBILE MENU, AND SWITCHER STYLES (IMPORTED)
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

/* ── Theme Toggle Button ── */
.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  padding: 0;
  margin-left: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* Header Actions Wrap (Bell & Theme Toggle) */
.header__actions-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.header__nav-link--active {
  color: var(--accent-dark);
  background: var(--accent-subtle);
}

.header__nav-app-btn {
  background: var(--emerald-subtle);
  color: var(--emerald) !important;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-weight: 700 !important;
}

.header__nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 14px;
  transition: all var(--duration) var(--ease);
}

.header__nav-username-mobile {
  display: none;
}

/* ── Mobile Menu ── */
.header__mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1010;
  cursor: pointer;
  background: transparent;
  transition: background var(--duration) var(--ease);
}

.header__mobile-btn span {
  display: block;
  position: absolute;
  height: 2px;
  width: 20px;
  background: var(--text-primary);
  border-radius: 2px;
  opacity: 1;
  left: 10px;
  transform: rotate(0deg);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease), top var(--duration) var(--ease), left var(--duration) var(--ease);
}

.header__mobile-btn span:nth-child(1) {
  top: 14px;
}

.header__mobile-btn span:nth-child(2) {
  top: 19px;
}

.header__mobile-btn span:nth-child(3) {
  top: 24px;
}

/* Open state for animated hamburger button */
.header__mobile-btn--open span:nth-child(1) {
  top: 19px;
  transform: rotate(135deg);
}

.header__mobile-btn--open span:nth-child(2) {
  opacity: 0;
  left: -20px;
}

.header__mobile-btn--open span:nth-child(3) {
  top: 19px;
  transform: rotate(-135deg);
}

body.has-mode-bar .header {
  top: 40px;
}

.header__nav-logout {
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM MOBILE RESPONSIVENESS AND LAYOUT FIXES
   ═══════════════════════════════════════════════════════════ */

/* --- Logo Styling --- */
.header__logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
}

/* ── Notifications Center Styles ── */
.notifications-bell-wrapper {
  position: relative;
}

#notifications-bell-btn {
  position: relative !important;
}

.notifications-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--rose);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface);
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notifications-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.notifications-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .notifications-item:hover {
    background: var(--surface-hover);
  }
}

.notifications-item--unread {
  background: var(--accent-subtle);
  border-left: 3px solid var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .notifications-item--unread:hover {
    background: rgba(6, 182, 212, 0.12);
  }
}

.notifications-item__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.3;
}

.notifications-item__body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.notifications-item__time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.notifications-item__link {
  font-size: 11px;
  color: var(--accent-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  text-decoration: underline;
}

/* Scrollbar inside notifications list */
#notifications-list::-webkit-scrollbar {
  width: 6px;
}

#notifications-list::-webkit-scrollbar-track {
  background: transparent;
}

#notifications-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

@media (hover: hover) and (pointer: fine) {
  #notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
  }
}

/* Dark mode notifications dropdown */
.dark-mode .notifications-dropdown {
  background: rgba(13, 27, 46, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(58, 175, 255, 0.08);
}

/* tactile active feedback for clickable elements */
.btn:active,
.theme-toggle-btn:active,
.header__mobile-btn:active,
.mode-bar__btn:active,
.tabs__btn:active,
.mobile-bottom-nav__item:active,
.referral-panel__code-copy:active,
.apk-modal__download-btn:active,
.apk-modal__close-btn:active,
.scroll-to-top:active,
.social-link:active,
.modal__close-btn:active {
  transform: scale(0.96) !important;
  opacity: 0.85 !important;
}

/* Expanded touch target for Mobile Hamburger Button */
.header__mobile-btn::after {
  content: '' !important;
  position: absolute !important;
  inset: -6px !important;
  border-radius: inherit !important;
}

/* ==========================================================================
   UPGRADED PREMIUM DESIGN SYSTEM (Features 2, 4, & 5)
   ========================================================================== */

/* === PREMIUM LANGUAGE SWITCHER === */
.lang-switcher {
  position: relative !important;
  display: inline-block !important;
}

.lang-switcher__btn {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  padding: 6px 14px !important;
  border-radius: 30px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: var(--shadow-sm) !important;
  height: 38px !important;
  outline: none !important;
}

.lang-switcher__btn:hover {
  border-color: var(--accent) !important;
  background: var(--surface-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(10, 92, 158, 0.15) !important;
}

.lang-switcher__arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lang-switcher__dropdown {
  position: absolute !important;
  top: 46px !important;
  right: 0 !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 15px 35px -5px rgba(10, 92, 158, 0.2) !important;
  z-index: 1000 !important;
  width: 140px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 6px 0 !important;
  transform-origin: top right !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lang-switcher__dropdown.hidden {
  display: none !important;
}

.lang-switcher__option {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  transition: all 0.2s ease !important;
}

.lang-switcher__option:hover {
  background: var(--bg-secondary) !important;
  color: var(--accent-light) !important;
  padding-left: 22px !important;
}

/* ==========================================================================
   PREMIUM MOBILE RESPONSIVE MEDIA QUERIES (IMPORTED)
   ========================================================================== */

@media (max-width: 1250px){
  .header__actions-wrap {
    margin-top: auto !important;
    margin-bottom: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    justify-content: center;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px !important;
  }
  
  .theme-toggle-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-full) !important;
    margin: 0 !important;
    background: var(--surface) !important;
  }
  
  .dark-mode .theme-toggle-btn {
    background: var(--bg-primary) !important;
  }
  
  .notifications-dropdown {
    position: absolute !important;
    top: 46px !important;
    right: -4px !important;
    left: auto !important;
    bottom: auto !important;
    width: 290px !important;
    max-width: none !important;
    max-height: 380px !important;
    transform: none !important;
    border-radius: var(--radius-md) !important;
    z-index: 10005 !important;
    box-shadow: var(--shadow-xl) !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .header__nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}
}

@media (hover: hover) and (pointer: fine) {
  .header__nav-app-btn:hover {
  background: var(--emerald);
  color: white !important;
  border-color: var(--emerald);
}
}

@media (hover: hover) and (pointer: fine) {
  .header__nav-user:hover .header__nav-avatar {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}
}

@media (min-width: 1251px) and (max-width: 1360px) {.header__nav{
    gap: 6px;
  }.header__nav-link{
    padding: 6px 10px;
    font-size: 13px;
  }
}

@media (min-width: 1361px) and (max-width: 1450px) {.header__nav{
    gap: 8px;
  }.header__nav-link{
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .header__mobile-btn:hover {
  background: var(--accent-subtle);
}
}

@media (max-width: 1250px) {.header__nav{
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    padding: 32px 24px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
    pointer-events: none; /* Avoid blocking clicks when menu is closed */
  }.header__nav--open{
    transform: translateX(0);
    pointer-events: auto; /* Allow clicks when menu is open */
  }.header__nav-link{
    width: 100%;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--duration) var(--ease);
  }
@media (hover: hover) and (pointer: fine) {
  .header__nav-link:hover, .header__nav-link--active {
    background: var(--accent-subtle);
    border-color: rgba(6, 182, 212, 0.15);
    color: var(--accent-dark);
    transform: translateX(4px);
  }
}.header__mobile-btn{
    display: flex;
  }.header__nav-user{
    order: -1 !important; /* Push user profile to the top on mobile! */
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    margin-left: 0 !important;
    padding: 12px 0 20px 0;
    border-bottom: 1px solid var(--border);
    border-top: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100%;
  }.header__nav-username-mobile{
    display: inline !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
  }.header__nav-username{
    display: none !important;
  }.header__nav-logout{
    display: none !important;
  }
}

@media (max-width: 1250px) {body.has-mode-bar .header__nav{
    top: calc(var(--header-h) + 40px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .header__nav-logout:hover {
  background: var(--rose) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}
}

@media print{
  .header, .mode-bar, .footer, .btn, .tabs { display: none !important; }
  body { background: white; font-size: 12pt; }
  .page { display: block !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

@media (max-width: 1250px) {/* 1. Mobile Menu Viewport Containing Block Fix */
  .header.header--open{
    height: 100vh !important;
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow-y: hidden !important;
  }.header.header--open .header__inner{
    height: var(--header-h) !important;
    border-bottom: 1px solid var(--border) !important;
  }/* Ensure the open navigation stretches full viewport height below header */
  .header.header--open .header__nav{
    top: var(--header-h) !important;
    height: calc(100vh - var(--header-h)) !important;
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: translateX(0) !important;
    opacity: 1 !important;
    display: flex !important;
    box-shadow: none !important;
    pointer-events: auto !important; /* Allow clicks when menu is open */
  }/* Offset mobile nav when mode bar is active */
  body.has-mode-bar .header.header--open{
    height: calc(100vh - 40px) !important;
  }body.has-mode-bar .header.header--open .header__nav{
    top: calc(var(--header-h) + 40px) !important;
    height: calc(100vh - var(--header-h) - 40px) !important;
  }/* Custom scrollbar hiding for horizontal tab bars */
  .tabs{
    scrollbar-width: none; /* Firefox */
  }.tabs::-webkit-scrollbar{
    display: none; /* Chrome/Safari */
  }/* 2. Client Dashboard - Stacking layout to avoid overflows */
  .order-item{
    flex-wrap: wrap !important;
    padding: 16px !important;
    gap: 12px !important;
  }.order-item__icon{
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }.order-item__info{
    flex: 1 !important;
    min-width: 180px !important;
  }.order-item__status{
    width: 100% !important;
    margin-top: 8px !important;
    border-top: 1px dashed var(--border) !important;
    padding-top: 10px !important;
    display: flex !important;
    justify-content: flex-end !important;
  }/* Responsive Grids Stack on Mobile */
  .contacts-grid{
    grid-template-columns: 1fr !important;
  }.premium-grid{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {.ai-chat-grid{
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 16px;
    padding: 16px;
  }.ai-chat-sidebar{
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 16px;
  }/* Mobile performance overrides */
  .header{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
  }.mobile-bottom-nav{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
  }.mode-bar{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
  }.card--glass{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--surface) !important;
  }.ticker img{
    filter: none !important;
    opacity: 0.6 !important;
  }
  /* Disable resource-heavy and buggy mobile backdrop-filters on modals and overlays */
  .modal-overlay,
  .apk-modal,
  .apk-modal__backdrop,
  .notifications-dropdown,
  .hero__badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .modal-overlay,
  .apk-modal__backdrop {
    background: rgba(15, 23, 42, 0.85) !important;
  }
  .hero__badge {
    background: rgba(255, 255, 255, 0.12) !important;
  }
}

@media (max-width: 768px){
  .btn {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .header__nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .mobile-bottom-nav__item {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* Input va Select elementlari mobilda yirikroq bo'ladi */
  .input, .select {
    min-height: 48px;
    font-size: 16px !important; /* iOS auto-zoom oldini oladi */
    padding: 12px 14px !important;
  }
  
  textarea.input {
    min-height: 80px !important;
  }
}

@media (max-width: 1250px){
  .dark-mode .header__nav {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.hidden {
  display: none !important;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
.dark-mode .theme-toggle-icon--moon {
  display: none !important;
}
html:not(.dark-mode) .theme-toggle-icon--sun {
  display: none !important;
}

/* Mobile Image Visibility Optimization */
@media (max-width: 768px) {
  .product-card__img-box {
    height: 190px !important;
    padding: 6px !important;
  }
  .product-card__img-box img,
  .lightbox-card__img-box img {
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
  }
}

