/* Oldtimer Fahrtenbuch — elegant classic style */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg: #0f1014;
  --bg-elev: #17181d;
  --bg-card: #1e2026;
  --bg-input: #252730;
  --border: #2e3038;
  --border-soft: #252730;
  --border-gold: rgba(184, 150, 90, 0.25);
  --text: #e8e3da;
  --text-dim: #a09890;
  --text-muted: #6e6860;
  --cream: #e4dace;
  --gold: #b8965a;
  --gold-light: #c9a767;
  --gold-dim: #8a6f42;
  --gold-glow: rgba(184, 150, 90, 0.12);
  --danger: #c85c4f;
  --success: #7ea86a;
  --warning: #d4a047;
  --serif: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  /* accent aliases */
  --accent: var(--gold);
  --accent-hover: var(--gold-light);
  --accent-dim: var(--gold-dim);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { min-height: 100vh; min-height: 100dvh; }

.hidden { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

/* =====================================================
   LOADING OVERLAY
===================================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.loading-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   LOGIN
===================================================== */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  background: var(--bg);
  overflow: hidden;
}

.login-bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(184, 150, 90, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(184, 150, 90, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.login-box {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.login-brand {
  text-align: center;
  margin-bottom: 44px;
}

.login-emblem {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: radial-gradient(circle at 50% 30%, rgba(184, 150, 90, 0.08), transparent 70%);
  box-shadow: 0 0 0 8px rgba(184, 150, 90, 0.04), inset 0 0 20px rgba(184, 150, 90, 0.05);
  position: relative;
}
.login-emblem::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(184, 150, 90, 0.1);
  border-radius: 50%;
}

.login-brand h1 {
  font-size: 30px;
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.login-sub {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  margin-top: 8px;
  font-family: var(--serif);
  line-height: 1.6;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
}

.login-field input {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  font-family: var(--sans);
  transition: border-color 0.2s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.08);
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #12130f;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s, transform 0.1s;
  font-family: var(--sans);
}
.login-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-error {
  color: var(--danger);
  font-size: 14px;
  min-height: 18px;
  text-align: center;
}

.login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.03em;
}

/* =====================================================
   MIGRATION BANNER
===================================================== */
.migration-banner {
  position: fixed;
  bottom: 90px;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0 12px;
  pointer-events: none;
}

.migration-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  pointer-events: all;
}

.migration-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.migration-text {
  flex: 1;
  min-width: 0;
}

.migration-text strong {
  display: block;
  color: var(--cream);
  font-size: 14px;
  margin-bottom: 3px;
}

.migration-text span {
  font-size: 12px;
  color: var(--text-dim);
}

.migration-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.mig-btn {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: var(--sans);
}

.mig-primary {
  background: var(--gold);
  color: #12130f;
}

.mig-dismiss {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border) !important;
}

/* =====================================================
   APP SHELL
===================================================== */
.app {
  padding-bottom: 90px;
  max-width: 720px;
  margin: 0 auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 16, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

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

.brand-emblem {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--gold-glow);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--serif);
  margin-top: 1px;
}

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

.user-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #12130f;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); background: var(--bg-card); }

.main-view {
  padding: 20px 18px;
}

/* =====================================================
   BOTTOM NAV
===================================================== */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 16, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-around;
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: color 0.15s;
  font-family: var(--sans);
}

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

.nav-btn.active {
  color: var(--gold);
}

.nav-btn:active { background: var(--bg-card); }

/* =====================================================
   COMMON UI
===================================================== */
.page-title {
  font-size: 30px;
  color: var(--cream);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.page-sub {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  font-family: var(--serif);
  margin-bottom: 22px;
}

.section { margin-bottom: 28px; }

.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--sans);
  font-weight: 700;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.card-highlight {
  background: linear-gradient(135deg, rgba(184, 150, 90, 0.06), rgba(184, 150, 90, 0.02));
  border-color: var(--border-gold);
}

.card-warning {
  background: rgba(212, 160, 71, 0.06);
  border-color: rgba(212, 160, 71, 0.25);
}

.card-icon-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  background: linear-gradient(145deg, #22242b, #1a1c22);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-gold); }

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  font-weight: 700;
}

.stat-value {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--cream);
  margin-top: 4px;
  line-height: 1.1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: 15px;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
}

/* =====================================================
   FORMS
===================================================== */
.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  font-family: var(--sans);
  transition: border-color 0.2s;
}

textarea { min-height: 88px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.07);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.checkbox-row:hover { border-color: var(--border-gold); }

.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
  margin: 0;
  flex-shrink: 0;
}

.checkbox-row label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  cursor: pointer;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--gold), #a07c45);
  color: #12130f;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
  font-family: var(--sans);
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { opacity: 0.88; transform: scale(0.99); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.btn-wa {
  background: #25D366;
  color: #fff;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.btn-row .btn { flex: 1; }

/* =====================================================
   VEHICLE PICKER DROPDOWN
===================================================== */
.vehicle-picker { position: relative; }

.vehicle-picker-btn {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
}
.vehicle-picker-btn.placeholder { color: var(--text-muted); }

.vehicle-picker-list {
  display: none;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  max-height: 320px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.vehicle-picker.open .vehicle-picker-list { display: block; }

.vehicle-picker-search {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: var(--bg-elev);
}
.vehicle-picker-search input {
  background: var(--bg-input);
  padding: 10px 12px;
  font-size: 15px;
}

.vehicle-picker-option {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.15s;
}
.vehicle-picker-option:last-child { border-bottom: none; }
.vehicle-picker-option:active { background: var(--bg-input); }
.vehicle-picker-option .vo-name { color: var(--cream); font-weight: 500; }
.vehicle-picker-option .vo-meta { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* =====================================================
   LISTS / ITEMS
===================================================== */
.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.list-item:active { background: var(--bg-input); }
.list-item:hover { border-color: var(--border-gold); }

.li-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--cream);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.li-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.li-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  font-style: italic;
  font-family: var(--serif);
  line-height: 1.5;
}

/* =====================================================
   BADGES
===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  flex-shrink: 0;
}
.badge-accent { background: rgba(184, 150, 90, 0.12); color: var(--gold); border: 1px solid rgba(184, 150, 90, 0.25); }
.badge-warning { background: rgba(212, 160, 71, 0.12); color: var(--warning); border: 1px solid rgba(212, 160, 71, 0.25); }
.badge-success { background: rgba(126, 168, 106, 0.12); color: var(--success); border: 1px solid rgba(126, 168, 106, 0.25); }
.badge-danger { background: rgba(200, 92, 79, 0.12); color: var(--danger); border: 1px solid rgba(200, 92, 79, 0.25); }
.badge-muted { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }

/* =====================================================
   FILTER PILLS
===================================================== */
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }

.pill {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pill.active {
  color: #12130f;
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 600;
}

/* =====================================================
   MODAL
===================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  background: var(--bg-elev);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.6);
}

/* Handle bar */
.modal-box::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 18px;
  padding-right: 40px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--bg-input); }

/* =====================================================
   TOAST
===================================================== */
.toast {
  position: fixed;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev);
  border: 1px solid var(--border-gold);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 14px;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
  box-shadow: var(--shadow);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   DETAIL VIEW
===================================================== */
.detail-header { margin-bottom: 20px; }

.detail-title {
  font-size: 28px;
  color: var(--cream);
  line-height: 1.15;
  font-family: var(--serif);
  letter-spacing: 0.01em;
}

.detail-sub {
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--serif);
  font-style: italic;
  margin-top: 4px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--gold);
  padding: 0 0 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-k { color: var(--text-muted); }
.kv-row .kv-v { color: var(--text); text-align: right; max-width: 60%; }

/* =====================================================
   SETTINGS
===================================================== */
.settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-dim);
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 14px;
  font-family: var(--sans);
  transition: border-color 0.15s, color 0.15s;
}
.settings-link:hover { color: var(--gold); border-color: var(--border-gold); }

.user-display {
  color: var(--gold);
  font-weight: 600;
}

/* =====================================================
   DASHBOARD HERO
===================================================== */
.hero {
  background: linear-gradient(155deg, #23262f 0%, #17181e 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}

/* Decorative arcs */
.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(184, 150, 90, 0.15);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  top: -25px;
  right: -25px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(184, 150, 90, 0.08);
  border-radius: 50%;
}

.hero-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 700;
  opacity: 0.85;
}

.hero-title {
  font-size: 28px;
  color: var(--cream);
  font-family: var(--serif);
  margin-top: 4px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 5px;
  font-style: italic;
  font-family: var(--serif);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-stat {
  flex: 1;
  text-align: center;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-soft);
  flex-shrink: 0;
}

.hero-stats .sv {
  font-size: 22px;
  font-family: var(--serif);
  color: var(--cream);
  line-height: 1;
}

.hero-stats .sl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 600;
}

/* Alert card for idle vehicles */
.alert-card {
  background: rgba(212, 160, 71, 0.05);
  border: 1px solid rgba(212, 160, 71, 0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.alert-card:active { background: rgba(212, 160, 71, 0.1); }
.alert-card-name { color: var(--cream); font-family: var(--serif); font-size: 16px; }
.alert-card .days { color: var(--warning); font-weight: 700; font-size: 12px; }

/* =====================================================
   REPORT / CHARTS
===================================================== */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 0 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 12px 8px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.4s ease;
}

.bar-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.progress-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* =====================================================
   DATE RANGE PICKER
===================================================== */
.date-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-range-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.date-range-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 700;
}

.date-range-sep {
  color: var(--text-muted);
  font-size: 18px;
  padding-top: 20px;
  flex-shrink: 0;
}

.date-range-hint {
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =====================================================
   SMALL HELPERS
===================================================== */
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* =====================================================
   PRINT
===================================================== */
@media print {
  body { background: #fff; color: #000; }
  .app-header, .bottom-nav, .modal, .toast, .btn, .back-btn, .no-print { display: none !important; }
  .app { padding: 0; max-width: none; }
  .main-view { padding: 0; }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (min-width: 600px) {
  .login-form { padding: 36px; }
  .hero-title { font-size: 32px; }
  .hero-stats .sv { font-size: 26px; }
}
