:root {
  --bg-canvas: #070A12;
  --bg-surface: #0E1524;
  --bg-card: #131C30;
  --bg-card-hover: #19253F;
  --bg-input: #17223A;
  --bg-input-focus: #1B2946;
  
  --line-subtle: rgba(255, 255, 255, 0.08);
  --line-active: rgba(245, 158, 11, 0.4);
  --line-emerald: rgba(16, 185, 129, 0.4);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --amber: #F59E0B;
  --amber-light: #FCD34D;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --amber-soft: rgba(245, 158, 11, 0.12);
  
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --emerald-soft: rgba(16, 185, 129, 0.12);
  
  --blue: #3B82F6;
  --blue-soft: rgba(59, 130, 246, 0.12);
  
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --header-height: 70px;
  --nav-height: calc(66px + env(safe-area-inset-bottom, 0px));
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient glow in background */
.ambient-glow {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Base interactive elements */
a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.icon-inline {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* App Frame (Mobile-optimized max-width container) */
.app-frame {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-canvas);
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--nav-height) + 30px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  border-left: 1px solid var(--line-subtle);
  border-right: 1px solid var(--line-subtle);
}

/* Top Telemetry Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: grid;
  place-items: center;
  color: var(--amber);
  box-shadow: 0 0 15px var(--amber-glow);
}

.brand-symbol svg {
  width: 24px;
  height: 24px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-meta strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-meta small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-top: 2px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-soft);
  border: 1px solid var(--line-emerald);
  padding: 6px 12px;
  border-radius: 30px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.status-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 0.05em;
}

.status-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Screens */
.screen {
  padding: 16px 16px 20px;
}

/* Hero Visual Card */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  background: var(--bg-card);
  margin-bottom: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.2) 0%, rgba(7, 10, 18, 0.7) 60%, #131C30 100%);
}

.hero-content {
  padding: 0 18px 18px;
  position: relative;
  margin-top: -30px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--amber);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--line-active);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hero-title span {
  background: linear-gradient(90deg, #F59E0B, #FCD34D);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hide or collapse hero on steps 1 and 2 for optimal focus */
body[data-active-step="1"] .hero-card,
body[data-active-step="2"] .hero-card {
  display: none;
}

.hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
}

.badge-icon {
  font-size: 13px;
}

/* Stepper Header */
.stepper-header {
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.step-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--line-active);
  padding: 4px 8px;
  border-radius: 6px;
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-sup {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.step-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.stepper-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.track-bar {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #10B981);
  border-radius: 4px;
  transition: width 0.35s ease;
}

/* Route Builder Card */
.route-builder-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.route-line-accent {
  position: absolute;
  top: 45px;
  bottom: 55px;
  left: 31px;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald) 0%, var(--amber) 100%);
  opacity: 0.5;
  pointer-events: none;
}

.route-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.node-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 18px;
}

.from-node {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1.5px solid var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
}

.to-node {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1.5px solid var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
}

.node-input-wrap {
  flex: 1;
  min-width: 0;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.node-input-wrap input,
.field-box input,
.field-box select,
.field-box textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}

.node-input-wrap input:focus,
.field-box input:focus,
.field-box select:focus,
.field-box textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.node-input-wrap input::placeholder,
.field-box input::placeholder,
.field-box textarea::placeholder {
  color: var(--text-dim);
}

/* Quick city chips */
.city-chips, .date-chips, .stepper-chips, .quick-cargo-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  align-items: center;
}

.chip-label {
  font-size: 10px;
  color: var(--text-dim);
}

.quick-chip, .quick-date-chip, .chip-step, .tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.quick-chip:hover, .quick-date-chip:hover, .chip-step:hover, .tag-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-chip.active, .quick-date-chip.active, .chip-step.active, .tag-chip.active {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber);
}

/* Swap Action Row */
.swap-action {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 8px 0;
}

.swap-divider {
  position: absolute;
  left: 46px;
  right: 0;
  height: 1px;
  background: var(--line-subtle);
  z-index: 0;
}

.swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  display: grid;
  place-items: center;
  color: var(--amber);
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, border-color 0.2s;
}

.swap-btn svg {
  width: 18px;
  height: 18px;
}

.swap-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--amber);
  transform: rotate(180deg) scale(1.05);
}

/* Route Telemetry Banner */
.route-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--line-emerald);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.telemetry-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
}

.telemetry-divider {
  width: 1px;
  height: 24px;
  background: var(--line-subtle);
}

.telemetry-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Card Grid for fields */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.field-box {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.field-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
}

/* Fleet Selection Cards */
.fleet-section {
  margin-bottom: 18px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.subheading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.subtext {
  font-size: 11px;
  color: var(--text-muted);
}

.link-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  padding: 4px;
}

.fleet-selector-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fleet-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
}

.fleet-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--bg-card-hover);
}

.fleet-card.selected {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 20px var(--amber-glow);
}

.fleet-card-img-wrap {
  width: 130px;
  min-height: 120px;
  position: relative;
  flex-shrink: 0;
  background: #000;
}

.fleet-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid var(--line-active);
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.fleet-card-content {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fleet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.fleet-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.fleet-card-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
  white-space: nowrap;
}

.fleet-card-body {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.fleet-specs-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.spec-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.fleet-card-btn {
  margin-top: auto;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.fleet-card.selected .fleet-card-btn {
  background: var(--amber);
  color: #070A11;
  border-color: var(--amber);
  font-weight: 800;
}

/* Toggle Card (Loaders) */
.toggle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.toggle-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.toggle-card input[type="checkbox"] {
  display: none;
}

.toggle-control {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toggle-control::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-card input:checked + .toggle-control {
  background: var(--emerald);
}

.toggle-card input:checked + .toggle-control::after {
  transform: translateX(20px);
}

.toggle-content strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-content small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Live Estimate Banner */
.estimate-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
  border: 1.5px solid var(--line-active);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.estimate-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.estimate-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0;
}

.estimate-note {
  font-size: 11px;
  color: var(--text-muted);
}

.estimate-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.estimate-icon svg {
  width: 20px;
  height: 20px;
}

/* Cyber Waybill Ticket (Step 2 Preview) */
.waybill-ticket {
  background: #0B101D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.waybill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.waybill-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.barcode-graphic {
  font-family: monospace;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: -1px;
}

.waybill-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
}

.waybill-body {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.waybill-route {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.waybill-route-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.waybill-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 10px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.05em;
}

.direct-dispatch-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid var(--line-active);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
}

.dispatch-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  display: block;
}

.dispatch-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Floating Actions Bar */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-primary {
  flex: 1;
  min-height: 52px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #070A11;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px var(--amber-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-back {
  min-height: 52px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-back:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

/* PWA Pitch Card (The 3000 RUB Offer) */
.pwa-pitch-card {
  margin-top: 28px;
  background: linear-gradient(180deg, #10192C 0%, #0A101D 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.pwa-pitch-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  pointer-events: none;
}

.pitch-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.pwa-pitch-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-main);
}

.pwa-pitch-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.btn-outline {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Vehicle Full List (Screen 2) */
.screen-header {
  margin-bottom: 20px;
}

.header-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 4px;
}

.screen-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.screen-title span {
  color: var(--amber);
}

.screen-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.vehicle-full-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicle-full-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vehicle-full-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.vehicle-full-content {
  padding: 16px;
}

.vehicle-full-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.vehicle-full-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.vehicle-full-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--amber);
}

.vehicle-full-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 14px;
  line-height: 1.5;
}

/* Contacts Screen */
.contacts-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
}

.contact-header-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--amber-soft);
  border: 1px solid var(--line-active);
  display: grid;
  place-items: center;
  color: var(--amber);
  flex-shrink: 0;
}

.contact-avatar svg {
  width: 26px;
  height: 26px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-address {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s ease;
}

.contact-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.working-hours-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.hours-row strong {
  color: var(--text-main);
  text-align: right;
}

.text-emerald {
  color: var(--emerald) !important;
}

/* Bottom Tab Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 100%);
  height: var(--nav-height);
  background: rgba(14, 21, 36, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line-subtle);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--amber);
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--amber-glow));
}

/* Dialog Styles */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text-main);
  max-width: 520px;
  width: calc(100% - 32px);
  margin: auto;
}

dialog::backdrop {
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(10px);
}

.dialog-card {
  background: #0E1626;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.dialog-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}

.dialog-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: grid;
  place-items: center;
}

.dialog-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.draft-preview {
  background: #070A12;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #CBD5E1;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.dispatch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp {
  min-height: 48px;
  background: #25D366;
  color: #052A14;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-telegram {
  min-height: 48px;
  background: #0088cc;
  color: white;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-copy {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Install steps in dialog */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.install-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  color: #070A11;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.install-step strong {
  display: block;
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.install-step p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form validation error */
.field-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-top: 10px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
