/* ==========================================================================
   10. PHASE 3 — LUXURY UI STYLES (i18n RTL, AI Matrix, B2B & Live Tracking)
   ========================================================================== */

/* RTL Typography & Alignment */
html[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  text-align: right;
}
html[dir="rtl"] .sidebar-drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
}
html[dir="rtl"] .sidebar-drawer.open {
  transform: translateX(0);
}
html[dir="rtl"] .arrow-dir {
  transform: scaleX(-1);
  display: inline-block;
}

/* Live Tracking Radar Pulse */
@keyframes radarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(6, 182, 212, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    transform: scale(0.95);
  }
}

.vehicle-radar-pulse {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFF;
  border: 2px solid #FFF;
  animation: radarPulse 2s infinite ease-out;
  cursor: pointer;
}

/* Live Tracking ETA Progress Bar */
.tracking-progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.tracking-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--cyan), var(--kr-green));
  transition: width 1s linear;
}

/* AI Concierge Comparison Matrix */
.ai-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.ai-compare-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.ai-compare-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.ai-compare-card.highlight {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}
.ai-compare-badge {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  display: inline-block;
  align-self: center;
}

/* B2B Corporate Tab System */
.b2b-nav-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.b2b-nav-chips::-webkit-scrollbar { display: none; }
.b2b-tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.b2b-tab-btn.active {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px var(--purple-glow);
}

/* ==========================================================================
   STITCH OBSIDIAN DESIGN SYSTEM — HOME BENTO & LUXURY CARDS
   ========================================================================== */

/* 1. Ambient Light Leaks */
.light-leak-blue {
  background-image: radial-gradient(circle at 85% 15%, rgba(128, 131, 255, 0.22) 0%, transparent 60%);
}
.light-leak-amber {
  background-image: radial-gradient(circle at 85% 15%, rgba(247, 190, 29, 0.22) 0%, transparent 60%);
}
.light-leak-purple {
  background-image: radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.22) 0%, transparent 60%);
}
.light-leak-emerald {
  background-image: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.22) 0%, transparent 60%);
}

/* 2. Hero Taxi Bento Card */
.stitch-hero-taxi {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 24, 44, 0.85) 0%, rgba(10, 13, 26, 0.95) 100%);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.12), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stitch-hero-taxi:active {
  transform: scale(0.985);
}
.stitch-hero-taxi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F59E0B, #8083FF, transparent);
  pointer-events: none;
}

/* 3. Interactive Route Input inside Taxi Hero */
.hero-route-box {
  background: rgba(6, 9, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 14px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.hero-route-line {
  position: absolute;
  left: 21px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, #10B981 0%, #F59E0B 100%);
  border-radius: 1px;
}
.hero-route-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  z-index: 2;
}
.hero-route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-route-dot.pickup {
  background: rgba(16, 185, 129, 0.25);
  border: 2px solid #10B981;
}
.hero-route-dot.pickup::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10B981;
}
.hero-route-dot.dropoff {
  background: rgba(245, 158, 11, 0.25);
  border: 2px solid #F59E0B;
}
.hero-route-dot.dropoff::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F59E0B;
}

/* 4. Bento Grid (2x2) */
.stitch-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-bottom: 16px;
}
.stitch-bento-card {
  position: relative;
  background: linear-gradient(145deg, rgba(22, 27, 48, 0.7) 0%, rgba(12, 16, 32, 0.85) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.stitch-bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
.stitch-bento-card:active {
  transform: scale(0.975);
}

/* 5. Horizontal Extended Shelf */
.stitch-shelf {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stitch-shelf::-webkit-scrollbar { display: none; }
.stitch-shelf-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 21, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.stitch-shelf-item:hover {
  background: rgba(25, 33, 62, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.stitch-shelf-item:active {
  transform: scale(0.96);
}

/* 6. Glowing City Pulse Bar */
.stitch-pulse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(10, 14, 30, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* 7. Google Stitch Obsidian Promo Banner */
.stitch-promo-banner {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(28, 31, 40, 0.95) 0%, rgba(11, 14, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.stitch-promo-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 190, 29, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(247, 190, 29, 0.15);
}
.stitch-promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at top right, rgba(247, 190, 29, 0.25) 0%, rgba(128, 131, 255, 0.15) 45%, transparent 70%);
  pointer-events: none;
}
.stitch-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(247, 190, 29, 0.18);
  border: 1px solid rgba(247, 190, 29, 0.45);
  border-radius: 999px;
  color: #F7BE1D;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ==========================================================================
   DRIVER TAXAMETER & FLEET COCKPIT
   ========================================================================== */
.driver-taxameter-box {
  background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.12) 0%, rgba(10, 14, 28, 0.95) 75%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15);
}
.taxameter-ticker {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 900;
  color: #F59E0B;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  letter-spacing: -1px;
}
.pulse-online {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 12px #10B981;
  animation: pulseLed 1.6s infinite ease-in-out;
}
@keyframes pulseLed {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 18px #10B981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   PARTNER & KITCHEN ORDER STREAM
   ========================================================================== */
.merchant-order-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}
.merchant-order-card.new-order {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}
