:root {
  --bg-main: #0B0E14;
  --bg-card: #121722;
  --bg-card-hover: #171E2C;
  --bg-subtle: #19202E;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: #F59E0B;
  --border-focus: #EA580C;
  
  --accent-amber: #F59E0B;
  --accent-orange: #EA580C;
  --accent-cyan: #06B6D4;
  --accent-green: #10B981;
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-subtle: #6B7280;
  
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(245, 158, 11, 0.25);
  
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(90px + var(--safe-bottom));
}

/* App Shell container */
.app-shell {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-main);
  min-height: 100vh;
}

/* PWA Install Banner */
.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #1E1B18 0%, #291E11 100%);
  border-bottom: 1px solid var(--accent-amber);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.install-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.install-icon {
  font-size: 20px;
}
.install-title {
  font-weight: 700;
  font-size: 13px;
  color: #FFF;
}
.install-subtitle {
  font-size: 11px;
  color: var(--accent-amber);
}
.btn-install {
  background: var(--accent-amber);
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn-install-close {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* Header */
.app-header {
  padding: 18px 18px 12px 18px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1.2;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.header-actions {
  display: flex;
  gap: 8px;
}
.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent-amber);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.header-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-amber);
  transform: scale(1.05);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}
.guide-step {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  line-height: 1.4;
}
.guide-step strong {
  color: var(--accent-amber);
  font-size: 13px;
}
.guide-step span {
  color: #D1D5DB;
}
.guide-step b {
  color: #FFFFFF;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.brand-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-amber);
}

/* Hero Section */
.hero-section {
  padding: 0 18px 16px 18px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 180px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.2) 0%, rgba(11, 14, 20, 0.88) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}
.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
  line-height: 1.3;
}
.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.perk-item {
  font-size: 11px;
  color: #E5E7EB;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}

/* Booking Flow & Cards */
.booking-flow {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.step-title-wrap {
  flex: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.control-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Radius Chips */
.radius-selector-wrap {
  margin-bottom: 18px;
}
.radius-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.radius-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.radius-chip:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.4);
}
.radius-chip.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.25) 100%);
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}
.radius-chip-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
}
.radius-chip-addon {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}
.radius-chip.active .radius-chip-addon {
  color: var(--accent-amber);
  font-weight: 600;
}

/* Car Types Grid */
.car-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.car-type-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.car-type-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}
.car-type-card.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
}
.car-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}
.car-name {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}
.car-addon {
  font-size: 10px;
  color: var(--accent-amber);
  margin-top: 3px;
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-item {
  display: flex;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.service-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.service-item.selected {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--accent-amber);
}
.service-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.service-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}
.service-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.18);
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.service-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}
.service-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-amber);
}
.service-duration {
  font-size: 11px;
  color: var(--text-subtle);
}
.service-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.service-item.selected .service-checkbox {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  color: #000;
}

/* Date Selector */
.date-selector {
  margin-bottom: 14px;
}
.date-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.date-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.date-chip.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
}
.date-chip-day {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.date-chip-date {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
  display: block;
}
.date-chip.active .date-chip-date {
  color: var(--accent-amber);
}

/* Time Grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.time-slot {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.time-slot:hover {
  border-color: rgba(245, 158, 11, 0.4);
}
.time-slot.active {
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  color: #000;
  font-weight: 700;
}
.time-slot.active .time-text {
  color: #000;
}
.time-text {
  font-family: var(--font-display);
  font-size: 12px;
  color: #FFFFFF;
}

/* Form Inputs */
.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.input-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.app-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.app-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}
.app-input::placeholder {
  color: var(--text-subtle);
  font-size: 13px;
}

/* Guarantee / Perks */
.guarantee-section {
  padding: 8px 4px 16px 4px;
}
.guarantee-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.guarantee-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guarantee-item {
  display: flex;
  gap: 12px;
  background: rgba(18, 23, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px;
}
.guarantee-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.guarantee-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.guarantee-text strong {
  font-size: 13px;
  color: #FFFFFF;
}
.guarantee-text span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Sticky Bottom Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding: 12px 18px calc(12px + var(--safe-bottom)) 18px;
  z-index: 90;
}
.bottom-bar-content {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.price-summary {
  display: flex;
  flex-direction: column;
}
.price-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}
.price-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--accent-amber);
}
.time-estimate {
  font-size: 11px;
  color: var(--text-muted);
}
.btn-book-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-book-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
}
.btn-book-primary:active {
  transform: scale(0.98);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.modal-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.modal-icon {
  font-size: 24px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ticket-box {
  background: var(--bg-subtle);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 12px;
  color: #E5E7EB;
  margin-bottom: 16px;
  white-space: pre-line;
  line-height: 1.45;
}
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-dispatch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-wa {
  background: #25D366;
  color: #FFFFFF;
}
.btn-wa:hover {
  background: #22BF5B;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.btn-tg {
  background: #0088CC;
  color: #FFFFFF;
}
.btn-tg:hover {
  background: #0077B5;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
}
.btn-phone {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn-phone:hover {
  background: var(--bg-card-hover);
}
