/* ========================================
   YO'LDA TAXI — style.css
   iOS 26 Liquid Glass Header
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Brand */
  --accent:          #F5A623;
  --accent-dark:     #E09010;
  --accent-glow:     rgba(245, 166, 35, 0.35);

  /* Light theme */
  --bg:              #F8F6F2;
  --bg-card:         #FFFFFF;
  --bg-input:        #F4F2EE;
  --text-primary:    #1A1A1A;
  --text-secondary:  #6B6B6B;
  --text-muted:      #A0A0A0;
  --border:          rgba(0,0,0,0.08);
  --border-strong:   rgba(0,0,0,0.14);
  --shadow-sm:       0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:       0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg:       0 24px 64px rgba(0,0,0,0.14);

  /* Liquid Glass */
  --glass-bg:        rgba(255, 255, 255, 0.62);
  --glass-border:    rgba(255, 255, 255, 0.80);
  --glass-blur:      24px;
  --glass-shadow:    0 8px 40px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255,255,255,0.9) inset;

  --grid-line:       rgba(255, 255, 255, 0.08); /* Tun rejimi uchun ham to'qroq */

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 999px;

  /* Header */
  --header-h:  80px;
}

[data-theme="dark"] {
  --bg:              #0F0F0F;
  --bg-card:         #1A1A1A;
  --bg-input:        #252525;
  --text-primary:    #F0EDE8;
  --text-secondary:  #A8A29C;
  --text-muted:      #6B6561;
  --border:          rgba(255,255,255,0.08);
  --border-strong:   rgba(255,255,255,0.14);
  --shadow-sm:       0 2px 12px rgba(0,0,0,0.30);
  --shadow-md:       0 8px 40px rgba(0,0,0,0.40);
  --shadow-lg:       0 24px 64px rgba(0,0,0,0.50);

  --glass-bg:        rgba(20, 20, 20, 0.68);
  --glass-border:    rgba(255, 255, 255, 0.10);
  --glass-shadow:    0 8px 40px rgba(0,0,0,0.50), 0 1px 0 rgba(255,255,255,0.06) inset;

  --grid-line:       rgba(255, 255, 255, 0.02); /* Tun rejimi uchun ochlashdi */
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; scrollbar-gutter: stable; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
select, input { font-family: inherit; }

/* Smooth theme transition — endi faqat body'ga, butun sahifaga emas
   (barcha elementlarga transition qo'yish menyu ochilganda "qotib qolish"ga sabab bo'lgan) */
body {
  transition-property: background-color, color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}
.btn, .auth-btn, .search-btn, .settings-dropdown, .ctrl-btn,
.nav__link, .lang-btn, .settings-opt {
  transition-property: background-color, border-color, color, box-shadow, opacity, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* ========================================
   INTERACTIVE GRID CANVAS (fleeing cells)
   ======================================== */
.grid-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* ========================================
   HEADER — iOS 26 Liquid Glass
   ======================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              backdrop-filter 0.35s ease;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.header.hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.header__inner {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 1;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }

.logo__icon { display: flex; align-items: center; }

.logo__img {
  width: auto;
  max-width: 220px;
  height: 58px;
  object-fit: contain;
}

.logo__svg-fallback { display: none; }

/* --- Navigation --- */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav__link:hover {
  color: var(--text-primary);
  background: rgba(245, 166, 35, 0.08);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.12);
}
.nav__link.active {
  color: var(--accent);
  font-weight: 600;
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
}

/* --- Header Controls --- */
.header__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
}
.ctrl-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.theme-btn { position: relative; overflow: hidden; }
.theme-btn .ctrl-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.22s ease;
}
.icon-moon { opacity: 0; }
[data-theme="dark"] .icon-sun { opacity: 0; }
[data-theme="dark"] .icon-moon { opacity: 1; }

.auth-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 24px;
  background: var(--text-primary);
  color: var(--bg);
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 0;
}
.auth-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.auth-btn svg { flex-shrink: 0; }

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1005;
}
.burger-btn span {
  display: block;
  width: 21px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Locate button loading state (generic) ── */
.loading svg { animation: spin 1s linear infinite; }
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ========================================
   LANG PANEL & THEME PANEL
   ======================================== */
.lang-container,
.theme-container { position: relative; }

.lang-globe-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  width: auto;
  min-width: 44px;
}
.lang-current {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.lang-panel,
.theme-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  max-width: calc(100vw - 40px);
  border-radius: var(--r-lg);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform-origin: top right;
  transform: translateY(-10px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.3s;
  z-index: 1001;
}

/* Blur — alohida qatlam, hech qanday isolation yo'q, shunda orqadagi
   HAQIQIY sahifa (rasmlar, xarita) ko'rinib, blur bo'ladi */
.lang-panel::before,
.theme-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.9) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.9) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.lang-panel.open,
.theme-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}



/* Kichikroq desktop/tablet kengliklarida panel ekrandan chiqib ketmasin */
@media (max-width: 1200px) {
  .lang-panel,
  .theme-panel {
    right: -8px;
    min-width: 200px;
  }
}

.panel-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 11px;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}
.lang-opt:hover { background: rgba(245,166,35,0.07); }
.lang-opt.active {
  background: rgba(245,166,35,0.10);
  border-color: var(--accent);
}
.lang-flag {
  font-size: 21px;
  line-height: 1;
  width: 26px;
  height: 19px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.lang-flag img,
.lang-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lang-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.lang-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.lang-opt.active .lang-code { color: var(--accent); }

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}
.theme-opt:hover {
  background: rgba(245,166,35,0.07);
  color: var(--text-primary);
}
.theme-opt.active {
  background: rgba(245,166,35,0.10);
  border-color: var(--accent);
  color: var(--accent);
}
.theme-opt svg { flex-shrink: 0; }

/* ========================================
   SETTINGS DROPDOWN
   ======================================== */
.settings-dropdown {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  right: 24px;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
}
.settings-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.settings-dropdown__inner { padding: 16px; }
.settings-section { display: flex; flex-direction: column; gap: 10px; }
.settings-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.settings-options { display: flex; gap: 6px; }
.settings-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}
.settings-opt:hover {
  background: rgba(245,166,35,0.07);
  color: var(--text-primary);
}
.settings-opt.active {
  border-color: var(--accent);
  background: rgba(245,166,35,0.10);
  color: var(--accent);
}

/* ========================================
   HERO — MARKAZLASHTIRILGAN
   ======================================== */
.hero {
  min-height: 88vh;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  position: relative;
}

.hero__content {
  width: 100%;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 7px 15px;
  border-radius: var(--r-full);
  margin-bottom: 26px;
  animation: fadeInUpGlobal 0.6s ease-out 0.1s both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUpGlobal 0.6s ease-out 0.2s both;
}
.hero__accent {
  color: var(--accent);
  display: inline-block;
}
.hero__typing::after {
  content: '|';
  display: inline-block;
  color: var(--accent);
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero__desc {
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUpGlobal 0.6s ease-out 0.3s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUpGlobal 0.6s ease-out 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.btn--primary > svg,
.btn--primary > span:not(.btn__drops) {
  position: relative;
  z-index: 2;
}
.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  font-size: 15.5px;
}
.btn--secondary:hover {
  background: var(--bg-input);
  box-shadow: var(--shadow-sm);
}

/* --- Golden button ambient droplet-flow animation --- */
.btn__drops {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.btn__drops .drop {
  position: absolute;
  bottom: -18px;
  width: var(--drop-size, 6px);
  height: var(--drop-size, 6px);
  left: var(--drop-x, 50%);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  filter: blur(0.3px);
  opacity: 0;
  animation: dropFlow var(--drop-dur, 3s) ease-in var(--drop-delay, 0s) infinite;
}
@keyframes dropFlow {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  12%  { opacity: 0.85; }
  70%  { opacity: 0.55; }
  100% { transform: translateY(-52px) scale(1.05); opacity: 0; }
}

.hero__features {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
  animation: fadeInUpGlobal 0.6s ease-out 0.5s both;
}

.feat {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 180px;
  max-width: 240px;
  text-align: left;
}
.feat svg {
  color: var(--accent);
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  margin-top: 2px;
}
.feat strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.25;
}
.feat span {
  display: block;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Fade in up (global) */
@keyframes fadeInUpGlobal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   POPULAR ROUTES (CAROUSEL)
   ======================================== */
.routes-section {
  padding: 10px 48px 24px;
  max-width: 1400px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.routes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.routes-header h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  color: var(--text-primary);
}
.routes-view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.routes-view-all:hover { color: var(--accent); }

.routes-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.routes-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
}
.routes-track:active { cursor: grabbing; }
.routes-track::-webkit-scrollbar { display: none; }

.route-card {
  flex: 0 0 268px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.route-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  pointer-events: none;
}
.route-info { padding: 17px; }
.route-info h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-meta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 9px;
}
.route-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.route-status .dot {
  width: 8px; height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
}

.route-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  z-index: 10;
  transition: all 0.2s;
}
.route-nav:hover { background: var(--bg-input); color: var(--accent); }
.route-nav.prev { left: -22px; }
.route-nav.next { right: -22px; }

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
  padding: 84px 48px 64px;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}
.tst-container { width: 100%; }

.tst-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.tst-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(245,166,35,0.10);
  border: 1px solid rgba(245,166,35,0.28);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 19px;
}
.tst-badge svg { color: var(--accent); }
.tst-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.7vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.15;
}
.tst-desc {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tst-track-wrap {
  position: relative;
  overflow: hidden;
  padding: 16px 0 24px;
}
.tst-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.tst-track:active { cursor: grabbing; }

.tst-card {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 25px 24px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              border-color 0.3s, opacity 0.6s ease, transform 0.6s ease;
}
.tst-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.tst-card::before {
  content: '"';
  position: absolute;
  top: -8px; right: 20px;
  font-size: 100px;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  font-weight: 900;
}
.tst-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(245,166,35,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border-color: rgba(245,166,35,0.30);
}

.tst-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}
.tst-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tst-avatar span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.tst-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.tst-route {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}
.tst-stars {
  margin-left: auto;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.tst-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 17px;
  font-style: italic;
}
.tst-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(245,166,35,0.10);
  color: var(--accent-dark);
  border: 1px solid rgba(245,166,35,0.22);
}
.tst-tag--driver {
  background: rgba(59,130,246,0.10);
  color: #1d4ed8;
  border-color: rgba(59,130,246,0.22);
}
[data-theme="dark"] .tst-tag--driver {
  color: #93c5fd;
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.25);
}

.tst-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 42px;
}
.tst-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.tst-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.tst-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 42px;
  flex-wrap: wrap;
}
.tst-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.tst-stat strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #F5A623, #FFD100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.tst-stat span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.tst-stat-divider {
  width: 1px;
  height: 42px;
  background: var(--border-strong);
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer {
  position: relative;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 88px 48px 40px;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 64px;
  margin-bottom: 56px;
}

.footer__brand-col { min-width: 0; }
.footer-logo { margin-bottom: 20px; }
.footer__desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 28px;
}

.footer__social-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer__socials { display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}

/* Nozik tooltip — hover qilganda tarmoq nomi tepasida, kichik o'qcha bilan chiqadi */
.social-btn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  width: 0; height: 0;
  border: 5px solid transparent;
  border-top-color: var(--text-primary);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-btn:hover::after,
.social-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-btn:hover {
  transform: translateY(-4px);
  color: #fff;
  border-color: transparent;
}
.social-btn:active { transform: translateY(-1px) scale(0.96); }

/* Har bir tarmoq bosilganda o'z brend rangiga o'tadi — monoxromdan
   rangga o'tish effekti (2026-yilgi minimalist saytlarda keng tarqalgan) */
.social-btn[data-brand="telegram"]:hover {
  background: #29A9EA;
  box-shadow: 0 10px 24px rgba(41,169,234,0.38);
}
.social-btn[data-brand="bot"]:hover {
  background: var(--accent);
  box-shadow: 0 10px 24px var(--accent-glow);
}
.social-btn[data-brand="instagram"]:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 10px 24px rgba(214,36,159,0.35);
}
.social-btn[data-brand="youtube"]:hover {
  background: #FF0000;
  box-shadow: 0 10px 24px rgba(255,0,0,0.32);
}
.social-btn[data-brand="support"]:hover {
  background: var(--text-primary);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

@media (max-width: 480px) {
  .social-btn::after,
  .social-btn::before { display: none; } /* mobilda barmoq bilan bosiladi, tooltip kerak emas */
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 32px;
}
.footer__col h4 {
  position: relative;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 22px;
  padding-bottom: 13px;
  letter-spacing: 0.5px;
}
.footer__col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 3px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__col a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-block;
  padding-left: 0;
  transition: color 0.2s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer__col a::before {
  content: '→';
  position: absolute;
  left: -14px;
  top: 0;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease, left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer__col a:hover {
  color: var(--accent);
  padding-left: 16px;
}
.footer__col a:hover::before {
  opacity: 1;
  left: 0;
}

/* --- "Yo'l chizig'i" — footer'ning imzo elementi ---
   Uzuq-uzuq yo'l chizig'i, boshi va oxirida to'xtash nuqtasi, orasida
   sekin harakatlanuvchi accent-rang nuqta — sayt mavzusini ("Yo'lda")
   footer bo'linuvchisida ham davom ettiradi, shunchaki bezak emas. */
.footer__route {
  position: relative;
  height: 2px;
  margin-bottom: 32px;
}
.footer__route-line {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--border-strong) 0 7px, transparent 7px 15px);
  background-size: 15px 2px;
  background-repeat: repeat-x;
}
.footer__route-dot {
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--bg-card);
}
.footer__route-dot--start { left: 0; }
.footer__route-dot--end { left: 100%; }
.footer__route-car {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--bg-card), 0 0 14px 2px var(--accent-glow);
  animation: footerRouteTravel 8s ease-in-out infinite;
}
@keyframes footerRouteTravel {
  0%, 6%    { left: 0%; }
  50%       { left: 100%; }
  94%, 100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__route-car { animation: none; left: 0; }
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__copyright {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.footer__legal { display: flex; align-items: center; gap: 16px; }
.footer__legal a {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--accent); }
.footer__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .header__inner { padding: 0 20px; gap: 10px; }

  /* Globus (til) tugmasini yuqoridan olib tashlaymiz — u endi burger ichida */
  .lang-container { display: none; }

  /* Tartib: logo | tun-tong | kirish | burger */
  .header__controls { gap: 6px; margin-left: auto; }
  .auth-btn { padding: 10px 16px; font-size: 13.5px; }
  .auth-btn span { display: none; } /* Mobilda faqat ikonka, matn joy tejaydi */

  .nav {
    position: fixed;
    top: 0;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    will-change: transform, opacity;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.15, 0.64, 1), visibility 0s linear 0.2s;
  }
  .nav.mobile-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.34, 1.15, 0.64, 1), visibility 0s linear 0s;
  }
  .nav__scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    padding: 92px 20px 40px;
    display: flex;
    flex-direction: column;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }
  .nav__link {
    display: block;
    width: 100%;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--r-md);
    background: var(--bg-input);
    border: 1.5px solid transparent;
    color: var(--text-secondary);
    box-sizing: border-box;
  }
  .nav__link:hover {
    background: rgba(245,166,35,0.08);
    color: var(--text-primary);
  }
  .nav__link.active::after { display: none; }
  .nav__link.active {
    background: rgba(245,166,35,0.10);
    border-color: var(--accent);
    color: var(--accent);
  }

  .nav__lang-mobile {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }
  .nav__lang-mobile .panel-label { margin-bottom: 12px; }
  .nav__lang-mobile .lang-options { gap: 6px; }

  .nav__theme-mobile {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .nav__theme-mobile .panel-label { margin-bottom: 12px; }
  .nav__theme-mobile .theme-options { display: flex; flex-direction: column; gap: 6px; }
  .nav__theme-mobile .theme-opt {
    background: var(--bg-input);
    border-color: var(--border);
  }

  .nav__auth-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    padding: 15px;
    background: var(--text-primary);
    color: var(--bg);
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-display);
    transition: opacity 0.2s;
  }
  .nav__auth-mobile:hover { opacity: 0.88; }

  .burger-btn { display: flex; }
  .hero { padding-left: 24px; padding-right: 24px; }
  .footer { padding: 64px 24px 30px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

@media (min-width: 1025px) {
  .nav__lang-mobile,
  .nav__theme-mobile,
  .nav__auth-mobile { display: none; } /* Desktopda kerak emas, u yerda globus va tema tugmalari bor */
}

/* Burger menyu ochiqda sahifa orqa fonini scroll qilmasin */
body.nav-open { overflow: hidden; }

/* Menyu ochiqda header'ning transform va backdrop-filter xossalari
   to'liq o'chiriladi — aks holda ular .nav uchun yangi "fixed
   positioning" chegarasini yaratib, menyuni butun ekran o'rniga
   faqat header balandligiga (yoki uning joriy scroll holatiga)
   siqib qo'yadi. Bu ayniqsa sahifa pastga scroll qilingan va
   header "yashiringan" (translateY bilan) holatda bo'lganda yuz beradi */
body.nav-open .header {
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 768px) {
  .hero__title { font-size: clamp(28px, 8vw, 42px); white-space: normal; }
  .tst-card { flex: 0 0 calc(50% - 10px); }
  .routes-section, .testimonials-section { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero__actions { flex-direction: column; width: 100%; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__features { flex-direction: column; align-items: center; }
  .feat { max-width: 280px; }
  .tst-card { flex: 0 0 calc(100% - 20px); }
  .tst-stats-row { gap: 24px; padding: 20px 24px; }
  .tst-stat strong { font-size: 24px; }
  .route-nav.prev { left: 4px; }
  .route-nav.next { right: 4px; }
  .footer__links { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; justify-content: center; }
  .footer__desc { max-width: none; }
}

/* ========================================
   JUDA KICHIK EKRANLAR (320px–380px telefonlar)
   ======================================== */
@media (max-width: 380px) {
  :root { --header-h: 68px; }
  .header__inner { padding: 0 14px; gap: 6px; }
  .logo__img { height: 42px; max-width: 150px; }
  .auth-btn { padding: 9px 12px; }
  .hero { padding-left: 16px; padding-right: 16px; padding-top: calc(var(--header-h) + 14px); }
  .hero__badge { font-size: 11px; padding: 6px 12px; }
  .hero__title { font-size: clamp(24px, 8vw, 32px); letter-spacing: -0.6px; }
  .hero__desc { font-size: 15px; }
  .btn { padding: 14px 20px; font-size: 14px; }
  .routes-section { padding-left: 14px; padding-right: 14px; }
  .footer { padding: 40px 16px 24px; }
  .route-card { flex: 0 0 230px; }
  .ai-chat__panel { border-radius: 0; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn__drops .drop { animation: none; opacity: 0; }
}

/* ========================================
   KATTA EKRANLAR (4K monitor, televizor, 1600px+)
   ======================================== */
@media (min-width: 1600px) {
  html { font-size: 19px; }
  .header__inner, .hero, .routes-section, .testimonials-section, .footer__inner {
    max-width: 1760px;
  }
  .hero__desc { font-size: 21px; max-width: 760px; }
  .route-card { flex: 0 0 320px; }
  .route-card img { height: 175px; }
}

@media (min-width: 2200px) {
  html { font-size: 22px; }
  .header__inner, .hero, .routes-section, .testimonials-section, .footer__inner {
    max-width: 2100px;
  }
}


/* ========================================
   REAL OSM MAP BACKGROUND
   ======================================== */
#bg-map {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  min-height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.35 !important;
}

.cursor-car-icon { z-index: 5 !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.cursor-car-rotor {
  width: 26px; height: 14px;
  transform-origin: 50% 50%;
  transition: transform 0.12s linear; /* burilish silliq bo'lishi uchun */
}

.leaflet-container {
  background: transparent !important;
}

/* Tun rejimida xarita biroz xiralashtiriladi (asosiy ish JS orqali dark tile bilan) */
[data-theme="dark"] #bg-map {
  opacity: 0.55 !important;
}

/* Saytdagi hamma ma'lumotlar xaritadan tepada turishi uchun z-index ko'tarildi */
/* DIQQAT: .header bu yerdan olib tashlandi — chunki u yuqorida allaqachon z-index: 1000 ga ega,
   va agar shu yerda qayta yozilsa, uning balandligi 2 ga tushib qolib, tugmalar bosilmay qolishiga sabab bo'ladi */
.hero, .routes-section, .testimonials-section, .footer {
  position: relative;
  z-index: 2; 
}


/* ========================================
   ROUTE MODAL
   ======================================== */
.route-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.route-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.route-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.route-modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.28s ease;
}
.route-modal.open .route-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.route-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #1A1A1A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: all 0.2s ease;
}
.route-modal__close:hover { background: #fff; transform: rotate(90deg); }

.route-modal__img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
}
.route-modal__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.route-modal__img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.route-modal__body { padding: 24px 26px 26px; }
.route-modal__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #10B981;
  margin-bottom: 10px;
}
.route-modal__status .dot {
  width: 8px; height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
}
.route-modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}
.route-modal__meta {
  font-size: 14.5px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 22px;
}
.route-modal__cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .route-modal__card { max-width: 100%; }
  .route-modal__img-wrap { height: 180px; }
}



/* ========================================
   COOKIE / CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(16px) scale(0.98);
  width: 100%;
  max-width: 360px;
  z-index: 1500;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  padding: 18px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0s linear 0.35s;
}
.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0s linear 0s;
}
.cookie-banner__inner { display: flex; align-items: center; gap: 12px; }
.cookie-banner__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(245,166,35,0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cookie-banner__icon svg { width: 18px; height: 18px; }
.cookie-banner__text { flex: 1; min-width: 0; }
.cookie-banner__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 500;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: column-reverse; /* Roziman tepada, Rad etish pastda */
  gap: 8px;
  margin-top: 14px;
}
.cookie-banner__btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
}
.cookie-banner__btn--ghost:hover { background: var(--bg-input); color: var(--text-primary); }
.cookie-banner__btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.cookie-banner__btn--primary:hover { background: var(--accent-dark); box-shadow: 0 8px 20px var(--accent-glow); }

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; transform: translateY(16px) scale(0.98); max-width: none; width: auto; padding: 16px; }
  .cookie-banner.show { transform: translateY(0) scale(1); }
}


/* ========================================
   FLOATING ACTIONS (Scroll-top + Yo'ldaAI)
   ======================================== */
.float-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.float-btn {
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

/* --- Scroll-to-top --- */
.float-btn--top {
  width: 46px;
  height: 46px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.3s,
              box-shadow 0.2s ease;
}
.float-btn--top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s,
              box-shadow 0.2s ease;
}
.float-btn--top:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: var(--shadow-lg);
  color: var(--accent);
}

/* --- Yo'ldaAI button --- */
.float-btn--ai {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, var(--accent), #FFC157);
  color: #fff;
  box-shadow: 0 10px 30px var(--accent-glow), 0 4px 14px rgba(0,0,0,0.16);
}
.float-btn--ai:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 38px var(--accent-glow), 0 6px 18px rgba(0,0,0,0.2);
}
.float-btn--ai:active { transform: scale(0.94); }
.float-btn--ai svg { transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; z-index: 1; }
.float-btn--ai.active svg { transform: rotate(90deg) scale(0.9); }

.float-btn__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.55;
  animation: aiPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes aiPulse {
  0%   { transform: scale(0.85); opacity: 0.55; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .float-btn__pulse { animation: none; opacity: 0; }
}

@media (max-width: 640px) {
  .float-actions { right: 16px; bottom: 16px; gap: 12px; }
  .float-btn--top { width: 42px; height: 42px; }
  .float-btn--ai { width: 56px; height: 56px; }
}

/* ========================================
   YO'LDA AI — CHAT WIDGET (Liquid Glass)
   ======================================== */
.ai-chat {
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
}
.ai-chat__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0);
  transition: background 0.32s ease;
  pointer-events: none;
}
.ai-chat.open .ai-chat__overlay {
  background: rgba(15, 15, 15, 0.28);
  pointer-events: auto;
}

.ai-chat__panel {
  position: absolute;
  right: 24px;
  bottom: 100px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform-origin: bottom right;
  transform: translateY(28px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.44s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.3s;
}
/* Blur — alohida qatlamda, opacity/transform bilan hech qachon birga ishlamaydi */
.ai-chat__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.9) brightness(1.05);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.9) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.ai-chat.open .ai-chat__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

.ai-chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-chat__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #FFC157);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.ai-chat__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 1px;
}
.ai-chat__status {
  font-size: 12px;
  color: #10B981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ai-chat__status .dot {
  width: 6px; height: 6px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
}
.ai-chat__close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.ai-chat__close:hover {
  background: var(--bg-input);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.ai-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-chat__body::-webkit-scrollbar { width: 5px; }
.ai-chat__body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

.ai-msg {
  display: flex;
  max-width: 82%;
  animation: aiMsgIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-msg--bot { align-self: flex-start; }
.ai-msg--user { align-self: flex-end; }
.ai-msg__bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-wrap: break-word;
}
.ai-msg--bot .ai-msg__bubble {
  background: var(--bg-input);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.ai-msg--user .ai-msg__bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-typing-cursor {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

.ai-typing-dots { display: flex; gap: 4px; padding: 4px 2px; }
.ai-typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: aiDotBounce 1.2s ease-in-out infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-chat__input-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}
.ai-chat__input-row input::placeholder { color: var(--text-muted); }
.ai-chat__input-row input:focus { outline: none; border-color: var(--accent); }

.ai-chat__send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-chat__send:hover { background: var(--accent-dark); transform: scale(1.07); }
.ai-chat__send:active { transform: scale(0.9); }
.ai-chat__send.sending svg { transform: translate(3px, -3px) rotate(15deg); }
.ai-chat__send svg { transition: transform 0.22s ease; }

@media (max-width: 640px) {
  .ai-chat__panel {
    right: 0; left: 0; bottom: 0;
    width: 100%; max-width: 100%;
    height: 82vh; max-height: 86vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform-origin: bottom center;
    transform: translateY(100%);
  }
  .ai-chat.open .ai-chat__panel { transform: translateY(0); }
}