* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #0d0d0d; min-height: 100vh; }

/* HEADER */
.header {
  background: #000000;
  color: white; padding: 20px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.header-top { display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 22px; }
.header .subtitle { opacity: 0.9; font-size: 13px; margin-top: 4px; }
.header-actions { display: flex; gap: 10px; }
.header-btn { background: rgba(255,255,255,0.2); border: none; color: white; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.header-btn:hover { background: rgba(255,255,255,0.3); }

/* NAV TABS */
.nav-tabs { display: flex; background: #000000; border-bottom: 2px solid rgba(212,168,67,0.15); position: sticky; top: 68px; z-index: 99; }
.nav-tab { flex: 1; padding: 12px 8px; text-align: center; border: none; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.70); border-bottom: 3px solid transparent; transition: all 0.2s; }
.nav-tab.active { color: #d4a843; border-bottom-color: #d4a843; background: rgba(212,168,67,0.08); }
.nav-tab:hover { color: #d4a843; }

/* CONTAINER */
.container { max-width: 600px; margin: 0 auto; padding: 15px; }
.page { display: none; }
.page.active { display: block; }

/* CARDS */
.card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 15px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.card h2 { color: #d4a843; margin-bottom: 15px; font-size: 18px; }

/* FORMS */
.form-group { margin-bottom: 15px; position: relative; }
.form-group label { display: block; color: rgba(255,255,255,0.90); margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px; border: 2px solid rgba(255,255,255,0.1); border-radius: 10px; font-size: 16px; transition: border-color 0.2s;
  background: rgba(255,255,255,0.06); color: white;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.50); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #d4a843; background: rgba(255,255,255,0.1); }
.form-group input[readonly] { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.5); }
.form-group .hint { font-size: 12px; color: rgba(255,255,255,0.70); margin-top: 4px; }
.form-group select option { background: #1a1a2e; color: white; }

/* MIC BUTTON */
.mic-button {
  position: absolute; right: 8px; top: 32px; background: #d4a843; border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5;
}
.mic-button:hover { background: #5568d3; }
.mic-button.recording { background: #f44336; animation: pulse 1s infinite; }
.mic-button svg { width: 18px; height: 18px; fill: white; }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.1);} }

/* BUTTONS */
.btn { width: 100%; padding: 15px; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #d4a843 0%, #e8c96a 100%); color: #1a1a2e; }
.btn-success { background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%); color: white; }
.btn-warning { background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%); color: white; }
.btn-danger { background: #c62828; color: white; }
.btn-outline { background: transparent; color: #d4a843; border: 2px solid rgba(212,168,67,0.4); }
.btn-small { padding: 10px 16px; font-size: 14px; width: auto; display: inline-block; }
.btn-half { width: 48%; display: inline-block; }

/* INFO BOXES */
.info-box { padding: 12px; border-radius: 8px; font-size: 13px; margin: 10px 0; line-height: 1.5; }
.info-blue { background: rgba(33,150,243,0.1); border-left: 4px solid #2196f3; color: #90caf9; }
.info-yellow { background: rgba(212,168,67,0.1); border-left: 4px solid #d4a843; color: #e8c96a; }
.info-green { background: rgba(76,175,80,0.1); border-left: 4px solid #4caf50; color: #81c784; }
.info-red { background: rgba(244,67,54,0.1); border-left: 4px solid #f44336; color: #ef9a9a; }

/* ESTIMATE RESULT */
.estimate-result { display: none; }
.estimate-result.show { display: block; }
.price-big { font-size: 36px; font-weight: 800; color: #d4a843; text-align: center; padding: 20px; background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.2); border-radius: 12px; margin: 15px 0; }
.breakdown { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; margin: 10px 0; }
.breakdown-item { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14px; color: rgba(255,255,255,0.92); }
.breakdown-item:last-child { border-bottom: none; font-weight: 700; color: #d4a843; }

/* STATUS BADGE */
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pending { background: rgba(255,152,0,0.15); color: #e65100; }
.status-accepted { background: rgba(76,175,80,0.15); color: #2e7d32; }
.status-confirmed { background: rgba(123,31,162,0.15); color: #7b1fa2; }
.status-in_progress { background: rgba(255,152,0,0.15); color: #f57c00; }
.status-completed { background: rgba(0,105,92,0.15); color: #00695c; }
.status-cancelled { background: rgba(198,40,40,0.15); color: #c62828; }
.status-paid_cash { background: rgba(76,175,80,0.15); color: #1b5e20; }
.status-paid_card { background: rgba(33,150,243,0.15); color: #0d47a1; }

/* RIDE CARD */
.ride-card { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 15px; margin-bottom: 12px; border-left: 4px solid #d4a843; cursor: pointer; transition: background 0.2s; }
.ride-card:hover { background: rgba(255,255,255,0.07); }
.ride-card .time { font-size: 16px; font-weight: 700; color: white; margin-bottom: 8px; }
.ride-card .route { color: rgba(255,255,255,0.90); font-size: 14px; margin-bottom: 4px; }
.ride-card .price { font-size: 18px; font-weight: 700; color: #d4a843; margin-top: 8px; }
.ride-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* ACTIVE RIDE PANEL */
.active-ride-panel {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white; border-radius: 15px; padding: 20px; margin-bottom: 15px;
  animation: glowPulse 2s infinite;
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 10px rgba(255,152,0,0.3); }
  50% { box-shadow: 0 0 25px rgba(255,152,0,0.5); }
}
.active-ride-panel h3 { font-size: 18px; margin-bottom: 12px; }
.active-ride-panel .detail { opacity: 0.9; font-size: 14px; margin-bottom: 6px; }
.active-ride-panel .status-line { font-size: 16px; font-weight: 700; margin-top: 12px; padding: 10px; background: rgba(255,255,255,0.2); border-radius: 8px; text-align: center; }

/* LOADING SPINNER */
.loading { text-align: center; padding: 30px; color: #d4a843; display: none; }
.loading.show { display: block; }
.spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid #ddd; border-top: 3px solid #d4a843; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* MODAL */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: #111111; border-radius: 15px; padding: 25px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; border: 1px solid rgba(212,168,67,0.2); }
.modal-content h2 { color: #d4a843; margin-bottom: 15px; }

/* PAYMENT BUTTONS */
.payment-options { display: flex; gap: 12px; margin: 15px 0; }
.payment-btn {
  flex: 1; padding: 20px; border: 3px solid rgba(255,255,255,0.1); border-radius: 15px; background: rgba(255,255,255,0.04);
  cursor: pointer; text-align: center; transition: all 0.2s; font-size: 16px;
}
.payment-btn:hover { border-color: #d4a843; background: rgba(212,168,67,0.08); }
.payment-btn.selected { border-color: #d4a843; background: rgba(212,168,67,0.12); }
.payment-btn .icon { font-size: 36px; margin-bottom: 8px; }
.driver-map-container { border-radius: 12px; overflow: hidden; margin: 12px 0; border: 2px solid rgba(255,255,255,0.15); }
.driver-map { width: 100%; height: 220px; background: #1a1a2e; }
.map-label { font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; padding: 6px; background: rgba(0,0,0,0.3); }
.tariff-chip { padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); transition: all 0.2s; white-space: nowrap; }
.tariff-chip:hover { border-color: rgba(212,168,67,0.4); color: rgba(255,255,255,0.8); }
.tariff-chip.selected { background: rgba(212,168,67,0.15); border-color: #d4a843; color: #d4a843; }
.payment-btn .label { font-weight: 700; color: white; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.70); }
.empty-state .icon { font-size: 48px; margin-bottom: 10px; }

/* PAC - Google autocomplete */
.pac-container { z-index: 10000 !important; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); border: none; margin-top: 5px; }
.pac-item { padding: 10px 15px; cursor: pointer; font-size: 14px; }
.pac-item:hover { background: rgba(212,168,67,0.1); }

/* PHONE BOX */
.phone-box { background: rgba(212,168,67,0.08); border-left: 4px solid #d4a843; padding: 15px; border-radius: 8px; text-align: center; margin: 15px 0; color: rgba(255,255,255,0.6); }
.phone-box a { font-size: 22px; color: #d4a843; text-decoration: none; font-weight: 700; display: block; margin-top: 5px; }

/* DISCLAIMER */
.disclaimer { font-size: 11px; color: rgba(255,255,255,0.35); text-align: center; margin-top: 10px; line-height: 1.4; }

/* SESSION TOAST */
#sessionToast {
  display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: #c62828; color: white; padding: 14px 22px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  white-space: nowrap; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity:0; transform: translateX(-50%) translateY(20px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

/* CLOCK PICKER */
.tp-btn { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:10px; color:rgba(255,255,255,0.85); padding:10px 4px; font-size:13px; font-weight:600; cursor:pointer; transition:all 0.15s; text-align:center; }
.tp-btn:hover:not(.tp-disabled) { background:rgba(212,168,67,0.2); border-color:rgba(212,168,67,0.5); color:#d4a843; }
.tp-btn.tp-active { background:#d4a843; border-color:#d4a843; color:#1a1a2e; font-weight:800; }
.tp-btn.tp-disabled { opacity:0.2; cursor:not-allowed; pointer-events:none; }

/* CALENDAR PICKER */
.cal-day { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); border-radius:10px; color:rgba(255,255,255,0.85); padding:9px 2px; font-size:13px; font-weight:600; cursor:pointer; transition:all 0.15s; text-align:center; }
.cal-day:hover:not(.cal-disabled) { background:rgba(212,168,67,0.2); border-color:rgba(212,168,67,0.5); color:#d4a843; }
.cal-day.cal-active { background:#d4a843; border-color:#d4a843; color:#1a1a2e; font-weight:800; }
.cal-day.cal-today { border-color:rgba(212,168,67,0.5); color:#d4a843; }
.cal-day.cal-disabled { opacity:0.2; cursor:not-allowed; pointer-events:none; }
.cal-day.cal-empty { background:transparent; border:none; pointer-events:none; }
.cal-day.cal-sunday { color:#d4a843; }
.cal-day.cal-sunday.cal-active { background:#d4a843; color:#1a1a2e; }

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.55);
}
