/* ==========================================================================
   Chorvoq AI — Professional Joytop.uz Design System (No Emojis, Pure SVG)
   Matches Joytop brand: Coral Orange (#ff7e47), Clean White, Crisp Typography
   ========================================================================== */

:root {
  --cai-primary: #ff7e47;
  --cai-primary-hover: #ff6426;
  --cai-primary-gradient: linear-gradient(135deg, #ff7e47 0%, #ea580c 100%);
  --cai-primary-subtle: #fff7ed;
  --cai-primary-border: #fed7aa;
  --cai-bg-white: #ffffff;
  --cai-bg-page: #f8fafc;
  --cai-text-heading: #0f172a;
  --cai-text-body: #334155;
  --cai-text-muted: #64748b;
  --cai-border: #e2e8f0;
  --cai-shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
  --cai-shadow-elevated: 0 20px 45px -10px rgba(255, 126, 71, 0.28), 0 10px 25px rgba(0, 0, 0, 0.08);
  --cai-radius-lg: 20px;
  --cai-radius-md: 12px;
  --cai-radius-pill: 9999px;
}

/* ─── 0. OBLITERATE LEGACY GREEN BUTTON (FORCE HIDE ON ALL DEVICES) ──── */
button[aria-label*="message form" i],
button[aria-label*="Toggle message form" i],
button.bg-\[\#61bd4f\],
.border-\[\#61bd4f\],
div.fixed.bottom-4.right-4:has(button.bg-\[\#61bd4f\]),
div.fixed.lg\:bottom-8.lg\:right-8:has(button.bg-\[\#61bd4f\]),
div.fixed.z-\[999\].w-\[320px\] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ─── 1. FLOATING LAUNCHER BUTTON ── */
#cai-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  background: var(--cai-primary-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--cai-radius-pill);
  box-shadow: 0 10px 25px -5px rgba(255, 126, 71, 0.55), 0 0 15px rgba(234, 88, 12, 0.3);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

#cai-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 32px -5px rgba(255, 126, 71, 0.65), 0 0 20px rgba(234, 88, 12, 0.4);
}

#cai-launcher:active {
  transform: translateY(0) scale(0.98);
}

/* Hide launcher when modal is open */
body.cai-open-state #cai-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.9);
}

.cai-launcher-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.cai-launcher-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cai-launcher-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cai-launcher-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.cai-online-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  display: inline-block;
  animation: cai-pulse 2s infinite;
}

@keyframes cai-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.cai-launcher-sub {
  font-size: 11px;
  opacity: 0.92;
  font-weight: 500;
}

/* ─── 2. CHAT MODAL WINDOW (LIGHT THEME MATCHING JOYTOP) ──────────────── */
#cai-window {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 64px);
  background: #ffffff;
  border: 1px solid var(--cai-border);
  border-radius: var(--cai-radius-lg);
  box-shadow: var(--cai-shadow-elevated);
  display: flex;
  flex-direction: column;
  z-index: 999999;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#cai-window.cai-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.cai-header {
  padding: 16px 18px;
  background: var(--cai-primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2);
}

.cai-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cai-meta h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.cai-meta h3 span {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.cai-meta p {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  opacity: 0.9;
  font-weight: 500;
}

.cai-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cai-lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cai-lang-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.cai-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background 0.2s;
}

.cai-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Body */
.cai-body {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cai-body::-webkit-scrollbar {
  width: 5px;
}

.cai-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.cai-msg {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  animation: cai-fadeIn 0.25s ease-out;
}

@keyframes cai-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

.cai-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.cai-msg-bot .cai-bubble {
  background: #ffffff;
  color: var(--cai-text-heading);
  border: 1px solid var(--cai-border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cai-msg-user .cai-bubble {
  background: var(--cai-primary-gradient);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(255, 126, 71, 0.25);
}

/* Chips in Chat */
.cai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--cai-text-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--cai-radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.cai-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s;
}

.cai-chip:hover {
  background: var(--cai-primary-subtle);
  border-color: var(--cai-primary-border);
  color: #ea580c;
  transform: translateY(-1px);
}

.cai-chip:hover .cai-chip-icon {
  color: #ea580c;
}

/* ─── 4. HORIZONTAL SWIPE CAROUSEL ──────────────────────────────────── */
.cai-msg-carousel-wrap {
  max-width: 100% !important;
  width: 100%;
}

.cai-bubble-compact {
  padding: 10px 14px;
}

.cai-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.cai-swipe-badge {
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 8px;
  border-radius: var(--cai-radius-pill);
  animation: cai-nudge 1.8s infinite;
  white-space: nowrap;
}

@keyframes cai-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.cai-carousel-wrap {
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cai-cards-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  width: 100%;
  box-sizing: border-box;
}

.cai-cards-carousel::-webkit-scrollbar {
  height: 5px;
}

.cai-cards-carousel::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.cai-cards-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.cai-cards-carousel::-webkit-scrollbar-thumb:hover {
  background: #ff7e47;
}

.cai-card {
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--cai-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.cai-card:hover {
  border-color: #fdba74;
  box-shadow: 0 8px 20px rgba(255, 126, 71, 0.16);
  transform: translateY(-2px);
}

.cai-card-img-wrap {
  position: relative;
  width: 100%;
  height: 135px;
  background: #e2e8f0;
  overflow: hidden;
}

.cai-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.cai-card:hover .cai-card-img {
  transform: scale(1.04);
}

.cai-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cai-card-index {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.cai-card-content {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cai-card-title {
  margin: 0 0 5px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cai-text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cai-card-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--cai-text-muted);
  margin-bottom: 8px;
}

.cai-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cai-card-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #ea580c;
  margin-top: auto;
  margin-bottom: 8px;
}

.cai-card-price span {
  font-size: 10.5px;
  color: var(--cai-text-muted);
  font-weight: 500;
}

.cai-card-btn {
  display: block;
  text-align: center;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.cai-card-btn:hover {
  background: var(--cai-primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 126, 71, 0.35);
}

/* Card More (Final item in carousel) */
.cai-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1.5px dashed #fed7aa;
}

.cai-card-more-inner {
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cai-card-more-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cai-card-more-inner h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.cai-card-more-inner p {
  margin: 0;
  font-size: 11.5px;
  color: #64748b;
}

.cai-card-btn-primary {
  background: var(--cai-primary-gradient);
  color: #ffffff;
  border: none;
  margin-top: 4px;
  padding: 8px 14px;
}

/* Carousel Controls & Indicators */
.cai-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.cai-carousel-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cai-carousel-btn:hover {
  background: #ff7e47;
  border-color: #ff7e47;
  color: #ffffff;
  transform: scale(1.08);
}

.cai-carousel-indicator {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

/* Typing Indicator */
.cai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--cai-border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.cai-dot {
  width: 6px;
  height: 6px;
  background: #ff7e47;
  border-radius: 50%;
  animation: cai-bounce 1.4s infinite ease-in-out;
}

.cai-dot:nth-child(1) { animation-delay: -0.32s; }
.cai-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes cai-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Footer */
.cai-footer {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid var(--cai-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cai-input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
  color: var(--cai-text-heading);
}

.cai-input:focus {
  border-color: #ff7e47;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 126, 71, 0.15);
}

.cai-send-btn {
  width: 40px;
  height: 40px;
  background: var(--cai-primary-gradient);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 126, 71, 0.35);
}

.cai-send-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ─── 3. HERO SMART SEARCH BAR (TEMPORARILY HIDDEN) ─────────────────────── */
.cai-hero-bar {
  display: none !important;
  max-width: 1200px;
  margin: 16px auto 24px auto;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.07), 0 0 1px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: all 0.3s ease;
}

.cai-hero-bar:hover {
  box-shadow: 0 14px 35px -8px rgba(255, 126, 71, 0.15), 0 0 1px rgba(0, 0, 0, 0.05);
  border-color: #fed7aa;
}

.cai-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  padding: 5px 14px;
  border-radius: var(--cai-radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.cai-hero-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff7e47;
}

.cai-hero-hint {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.cai-hero-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px 6px 4px 14px;
  transition: all 0.25s;
}

.cai-hero-input-wrap:focus-within {
  border-color: #ff7e47;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 126, 71, 0.2);
}

.cai-hero-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-size: 14.5px;
  padding: 10px 0;
  font-family: inherit;
}

.cai-hero-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.cai-hero-submit {
  background: var(--cai-primary-gradient);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255, 126, 71, 0.35);
}

.cai-hero-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 126, 71, 0.45);
}

.cai-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cai-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--cai-radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cai-hero-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s, transform 0.2s;
}

.cai-hero-chip:hover {
  background: #fff7ed;
  border-color: #ff7e47;
  color: #ea580c;
  transform: translateY(-1px);
}

.cai-hero-chip:hover .cai-hero-chip-icon {
  color: #ea580c;
  transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
  #cai-launcher {
    bottom: 20px;
    right: 16px;
    padding: 8px 14px 8px 10px;
  }
  .cai-launcher-title { font-size: 13px; }
  .cai-launcher-sub { display: none; }

  #cai-window {
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    height: calc(100vh - 32px);
    max-height: none;
    border-radius: 16px;
  }

  .cai-hero-bar {
    margin: 10px 12px 18px 12px;
    padding: 14px;
  }
  .cai-hero-hint { display: none; }
}

/* Purge legacy green contact button if cached */
button[aria-label*="message form" i],
button.bg-\[\#61bd4f\],
button.border-\[\#61bd4f\],
div.fixed.bottom-4.right-4:has(button.bg-\[\#61bd4f\]),
div.fixed.bottom-6.right-6:has(button.bg-\[\#61bd4f\]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



/* ─── 5. MULTI-LANGUAGE ONBOARDING & 6 CATEGORIES GRID ─────────────── */
.cai-messages, .cai-body {
  flex: 1;
  padding: 16px 14px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cai-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cai-btn-icon:hover {
  background: rgba(255, 255, 255, 0.35);
}

.cai-lang-prompt {
  font-weight: 600;
  margin-bottom: 8px;
}

.cai-lang-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.cai-lang-btn {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cai-lang-btn:hover {
  border-color: #ff7e47;
  background: #fff7ed;
  color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 126, 71, 0.15);
}

.cai-lang-flag {
  font-size: 20px;
  line-height: 1;
}

.cai-lang-name {
  flex: 1;
  text-align: left;
}

.cai-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.cai-cat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.cai-cat-card:hover {
  border-color: #ff7e47;
  background: #fff7ed;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 126, 71, 0.18);
}

.cai-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.cai-cat-card:hover .cai-cat-icon {
  background: #ff7e47;
  color: #ffffff;
}

.cai-cat-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.cai-cat-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cai-cat-desc {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
}

.cai-cat-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cai-primary-gradient);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 126, 71, 0.35);
  transition: all 0.2s;
}

.cai-cat-direct-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}


/* ===================================================
   TODAY HOT LISTINGS (BUGUN BO'SH DACHALAR) STYLES
   =================================================== */
.cai-today-hot-wrapper {
  background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
  border: 1.5px solid #ffedd5;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 16px 0 24px 0;
  box-shadow: 0 8px 30px -4px rgba(255, 126, 71, 0.08);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.cai-today-hot-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff7e47, #ff5722, #f59e0b);
}

.cai-hot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cai-hot-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cai-hot-fire-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #ff5722;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cai-hot-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.cai-hot-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.cai-hot-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: caiPulse 1.8s infinite;
}

@keyframes caiPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cai-hot-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 4px 0 0 0;
}

.cai-hot-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff7e47, #ff5722);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 126, 71, 0.28);
  transition: all 0.2s ease;
}

.cai-hot-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 126, 71, 0.35);
}

.cai-hot-status-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* Track & Carousel */
.cai-hot-track-wrapper {
  position: relative;
  margin: 0 -6px;
}

.cai-hot-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 6px;
  scrollbar-width: thin;
  scrollbar-color: #fed7aa transparent;
}

.cai-hot-track::-webkit-scrollbar {
  height: 6px;
}
.cai-hot-track::-webkit-scrollbar-thumb {
  background: #fed7aa;
  border-radius: 10px;
}

.cai-hot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.cai-hot-nav.prev { left: -14px; }
.cai-hot-nav.next { right: -14px; }
.cai-hot-nav:hover {
  background: #ff7e47;
  color: #fff;
  border-color: #ff7e47;
}

/* Card item */
.cai-hot-card {
  flex: 0 0 270px;
  width: 270px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cai-hot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 126, 71, 0.12);
}

.cai-hot-card-thumb {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
  background: #f1f5f9;
}

.cai-hot-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cai-hot-card:hover .cai-hot-card-thumb img {
  transform: scale(1.04);
}

.cai-hot-badge-fire {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff7e47, #ff5722);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cai-hot-badge-loc {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cai-hot-card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cai-hot-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cai-hot-card-specs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.cai-hot-tag {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #475569;
}

.cai-hot-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}

.cai-hot-price-val {
  font-size: 17px;
  font-weight: 800;
  color: #ff7e47;
}

.cai-hot-price-label {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 3px;
}

.cai-hot-price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Contacts: Locked & Unlocked */
.cai-hot-locked-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.cai-hot-masked-num {
  flex: 1;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cai-hot-card-unlock-btn {
  background: #ff7e47;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
  white-space: nowrap;
}

.cai-hot-card-unlock-btn:hover {
  background: #ff6420;
}

.cai-hot-unlocked-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.cai-hot-call-action {
  flex: 1;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.cai-hot-call-action:hover {
  background: #d1fae5;
}

.cai-hot-tg-action {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}

.cai-hot-tg-action:hover {
  background: #bae6fd;
}

/* Modal */
.cai-hot-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cai-hot-modal-overlay.active {
  display: flex;
  animation: caiFadeIn 0.2s ease;
}

.cai-hot-modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
  text-align: center;
}

.cai-hot-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.cai-hot-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cai-hot-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #ff5722;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.cai-hot-modal-icon svg {
  width: 28px;
  height: 28px;
}

.cai-hot-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.cai-hot-modal-sub {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.cai-hot-modal-price-box {
  background: #fff7ed;
  border: 1px dashed #fed7aa;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cai-hot-modal-price-label {
  font-size: 13px;
  color: #7c2d12;
  font-weight: 600;
}

.cai-hot-modal-price-sum {
  font-size: 20px;
  font-weight: 800;
  color: #ff5722;
}

.cai-hot-perks {
  text-align: left;
  margin-bottom: 20px;
}

.cai-hot-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
}

.cai-hot-perk-item svg {
  color: #10b981;
  flex-shrink: 0;
}

.cai-hot-modal-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff7e47, #ff5722);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 126, 71, 0.35);
  transition: all 0.2s;
}

.cai-hot-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 126, 71, 0.45);
}

.cai-hot-poll-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #64748b;
}

.cai-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fed7aa;
  border-top-color: #ff7e47;
  border-radius: 50%;
  animation: caiSpin 0.8s linear infinite;
}

@keyframes caiSpin {
  to { transform: rotate(360deg); }
}

@keyframes caiFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .cai-today-hot-wrapper {
    padding: 16px;
    margin: 12px 0 18px 0;
  }
  .cai-hot-title {
    font-size: 18px;
  }
  .cai-hot-nav {
    display: none;
  }
}

/* Booking from the chat carousel */
button.cai-card-btn { border: none; width: 100%; cursor: pointer; font-family: inherit; }
.cai-card-link { display: block; text-align: center; margin-top: 6px; font-size: 12px; color: #8a8a8a; text-decoration: none; }
.cai-card-link:hover { text-decoration: underline; }
.cai-booking-done { font-weight: 600; color: #10b981; }

/* One dacha with a swipeable photo gallery (chat dialog) */
.cai-photo-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; height: 100%; scrollbar-width: none; }
.cai-photo-strip::-webkit-scrollbar { display: none; }
.cai-photo-strip .cai-card-img { flex: 0 0 100%; scroll-snap-align: start; object-fit: cover; }
.cai-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 2px 0;
  transition: background 0.2s, opacity 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cai-photo-nav:hover { background: rgba(15, 23, 42, 0.78); }
.cai-photo-prev { left: 6px; }
.cai-photo-next { right: 6px; }
.cai-photo-nav-hidden { display: none !important; }
.cai-card-amenities { font-size: 12px; color: #4b5563; margin: 4px 0 8px; line-height: 1.35; }

/* Hot listings: real discount badge + "book via Joytop" */
.cai-hot-badge-discount { position: absolute; top: 10px; right: 10px; background: #ef4444; color: #fff; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.cai-hot-book-btn { margin-top: 8px; width: 100%; border: 1.5px solid #f97316; background: #fff7ed; color: #ea580c; font-weight: 600; font-family: inherit; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.cai-hot-book-btn:hover { background: #ffedd5; }
