/* ==========================================================================
   SEEYOUSOON SUPER-APP — C-TAXI-UI STYLESHEET
   Comprehensive Golden Template for Taxi Customer (C1-C9, T3)
   and Driver (CF1-CF8) flows.
   Strictly Section 8 compliant: Zero inline styles, < 500 lines.
   ========================================================================== */

.tx-flow-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  color: var(--text, #f8fafc);
}

/* Header & Brand Row */
.tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.tx-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-brand-title {
  margin: 0;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tx-brand-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.tx-badge-zero {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.18);
  color: var(--ok, #10b981);
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

/* Mode Switcher: Taxi vs Express Bud */
.tx-mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(20, 26, 41, 0.7);
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tx-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 12.5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  color: #94a3b8;
}

.tx-mode-btn.is-active {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.tx-mode-btn--delivery.is-active { background: linear-gradient(135deg, #10B981 0%, #059669 100%); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }

/* Address Route Card */
.tx-route-card {
  position: relative;
  background: rgba(20, 26, 41, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-route-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tx-route-dot--pickup { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }

.tx-route-dot--dest { background: #a855f7; box-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }

.tx-route-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-route-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
}

.tx-route-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  width: 100%;
  outline: none;
}

.tx-route-input::placeholder {  }

.tx-route-connector {
  position: absolute;
  left: 18px;
  top: 28px;
  width: 2px;
  height: 24px;
  background: dashed 1px rgba(255, 255, 255, 0.2);
}

/* Quick Address Preset Chips */
.tx-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tx-chips-scroll::-webkit-scrollbar {  }

.tx-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(20, 26, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbc3d7;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tx-chip-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(168, 85, 247, 0.3); }

/* Vehicle & Pricing Tiers (C2) */
.tx-tier-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-tier-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 26, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tx-tier-card:hover {  }

.tx-tier-card.is-selected {
  background: rgba(139, 92, 246, 0.14);
  border: 2px solid var(--purple, #a855f7);
  box-shadow: 0 0 20px -2px rgba(139, 92, 246, 0.3);
}

.tx-tier-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-tier-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--purple, #d0bcff);
}

.tx-tier-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.tx-tier-name {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.tx-tier-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.tx-tier-price-box {  }

.tx-tier-price {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.tx-tier-eta {
  font-size: 10.5px;
  color: #34d399;
  font-weight: 600;
}

/* Prisbrev Accordion & Trust (T3) */
.tx-prisbrev-wrap {
  background: rgba(14, 18, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
}

.tx-prisbrev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-prisbrev-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #d0bcff;
}

.tx-prisbrev-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: #94a3b8;
}

.tx-prisbrev-row { display: flex; justify-content: space-between; }

/* Matching Radar Animation (C3) */
.tx-radar-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.tx-radar-pulse-box {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  animation: radarPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.tx-radar-ring:nth-child(2) {  }

.tx-radar-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.6);
  z-index: 2;
}

/* Driver Status Card (C4, C5, CF3, CF4) */
.tx-driver-card {
  background: rgba(20, 26, 41, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(24px);
}

.tx-driver-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-driver-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  border: 2px solid var(--purple, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 16px;
}

.tx-driver-details {  }

.tx-driver-name {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px;
}

.tx-driver-plate-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
}

.tx-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 13px;
  font-weight: 800;
}

/* Taxameter & Meter Display (CF4) */
.tx-taxameter-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  font-family: var(--mono, monospace);
}

.tx-taxameter-val {
  font-size: 38px;
  font-weight: 900;
  color: #10b981;
  letter-spacing: -0.02em;
}

.tx-taxameter-sub {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
}

/* Buttons */
.tx-btn-confirm {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease;
}

.tx-btn-confirm:active {  }

.tx-btn-cancel {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
