/* ============================================================
   ROUTERATE v3 — STYLESHEET
   ============================================================ */

:root {
  --bg:         #f0f2f7;
  --surface:    #ffffff;
  --surface2:   #f7f8fc;
  --surface3:   #eef0f7;
  --border:     #dde1ee;
  --border2:    #c8cedf;
  --accent:     #e8920a;
  --accent-dim: rgba(232,146,10,0.1);
  --accent-dk:  #c97d08;
  --green:      #1a9e5c;
  --green-dim:  rgba(26,158,92,0.1);
  --red:        #d63b2a;
  --red-dim:    rgba(214,59,42,0.1);
  --blue:       #2563eb;
  --text:       #1a1f35;
  --text2:      #3d4460;
  --muted:      #7b85a3;
  --label:      #525c7a;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
}

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

html, body {
  height: 100%;
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================ LOGO BOX */
.logo-box-sm {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #3a3a3a;
  margin-right: 10px;
}

.logo-box-auth {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #3a3a3a;
  margin-right: 14px;
}

/* Tarmac texture */
.logo-box-sm::before,
.logo-box-auth::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(255,255,255,0.01) 5px, rgba(255,255,255,0.01) 6px);
}

/* Amber kerb lines */
.logo-box-sm::after,
.logo-box-auth::after {
  content: '';
  position: absolute; inset: 0;
  border-left: 2px solid rgba(255,180,0,0.55);
  border-right: 2px solid rgba(255,180,0,0.55);
}

.logo-dash-sm {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 2px; height: 100%;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.7) 0px, rgba(255,255,255,0.7) 8px,
    transparent 8px, transparent 14px
  );
  z-index: 1;
}

.logo-rr-sm {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
  gap: 3px; padding-left: 2px;
}

.logo-rr-sm span { color: #e8920a; margin-left: 3px; }

.logo-box-auth .logo-rr-sm { font-size: 1.3rem; }

.header-brand { display: flex; align-items: center; gap: 0; flex-shrink: 0; }

.auth-logo-wrap {
  display: flex; align-items: center;
  justify-content: center;
}


.auth-overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  background: linear-gradient(135deg, #1a2040 0%, #0f1628 100%);
}

.auth-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-container { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 1.5rem; }

.auth-brand { text-align: center; margin-bottom: 2rem; }

.auth-logo-wrap { display: inline-flex; align-items: center; }

.auth-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 3.2rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff; line-height: 1;
}

.auth-tagline {
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; margin-top: 0.25rem;
}

.auth-card {
  background: #fff; border-radius: 12px;
  padding: 2rem; box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease;
}

.auth-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.4rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); margin-bottom: 1.25rem;
}

.auth-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }

.auth-note { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 0.75rem; line-height: 1.5; }

.auth-divider {
  text-align: center; position: relative;
  margin: 1rem 0; color: var(--muted); font-size: 0.78rem;
}

.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 42%; height: 1px; background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-switch { text-align: center; margin-top: 0.85rem; font-size: 0.82rem; color: var(--muted); }
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ============================================================ MESSAGES */
.msg-error {
  background: var(--red-dim); border: 1px solid rgba(214,59,42,0.25);
  color: var(--red); padding: 0.6rem 0.85rem;
  border-radius: var(--radius); font-size: 0.82rem;
  margin-bottom: 1rem; line-height: 1.5;
}

.msg-success {
  background: var(--green-dim); border: 1px solid rgba(26,158,92,0.25);
  color: var(--green); padding: 0.6rem 0.85rem;
  border-radius: var(--radius); font-size: 0.82rem; margin-bottom: 1rem;
}

.info-note {
  background: var(--accent-dim); border: 1px solid rgba(232,146,10,0.2);
  color: var(--accent-dk); padding: 0.5rem 0.75rem;
  border-radius: var(--radius); font-size: 0.78rem; margin-bottom: 1rem;
}

/* ============================================================ HEADER */
.app-header {
  height: 58px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.25rem; gap: 1.25rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}

.header-brand { display: flex; align-items: baseline; gap: 0.6rem; flex-shrink: 0; }

.app-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.5rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); line-height: 1;
}

.app-tagline { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

.accent { color: var(--accent); }

.header-nav { display: flex; gap: 0.25rem; flex: 1; justify-content: center; }

.nav-btn {
  background: none; border: 1px solid transparent;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s;
}

.nav-btn:hover { color: var(--text); background: var(--surface2); border-color: var(--border); }
.nav-btn.active { color: var(--accent); background: var(--accent-dim); border-color: rgba(232,146,10,0.25); }

.header-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* DISTANCE TOGGLE */
.dist-toggle { display: flex; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.dist-btn {
  background: none; border: none;
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; cursor: pointer;
  transition: all 0.15s;
}

.dist-btn.active { background: var(--accent); color: #fff; }

.user-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.28rem 0.75rem 0.28rem 0.35rem;
  border-radius: 100px; font-size: 0.8rem; color: var(--label);
}

.user-avatar {
  width: 26px; height: 26px;
  background: var(--accent); color: #fff;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 0.75rem;
}

.btn-signout {
  background: none; border: 1px solid var(--border2);
  color: var(--muted); font-family: 'Barlow', sans-serif;
  font-size: 0.78rem; padding: 0.35rem 0.75rem;
  border-radius: var(--radius); cursor: pointer; transition: all 0.15s;
}

.btn-signout:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }

/* ============================================================ LAYOUT */
.view-wrap { height: calc(100vh - 58px); }

.calc-layout { display: grid; grid-template-columns: 390px 1fr; height: 100%; }

.page-view { height: auto; min-height: calc(100vh - 58px); overflow-y: auto; padding: 2rem; }

/* ============================================================ SIDEBAR */
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 1.25rem;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.form-section { margin-bottom: 1.5rem; }

.sec-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.85rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}

/* ============================================================ CURRENCY */
.currency-bar { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }

.cur-btn {
  flex: 1; background: var(--surface2);
  border: 1px solid var(--border); color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.06em; padding: 0.38rem;
  border-radius: var(--radius); cursor: pointer; transition: all 0.15s;
}

.cur-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cur-btn:not(.active):hover { border-color: var(--border2); color: var(--text); }

/* ============================================================ FORM ELEMENTS */
.field { margin-bottom: 0.75rem; position: relative; }

label {
  display: block; font-size: 0.75rem;
  color: var(--label); font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: 0.3rem;
}

.label-sub { color: var(--muted); font-weight: 400; font-size: 0.72rem; }

.field-hint { font-size: 0.71rem; color: var(--muted); line-height: 1.5; margin-top: 0.3rem; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select, textarea {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); color: var(--text);
  padding: 0.5rem 0.7rem;
  font-family: 'Barlow', sans-serif; font-size: 0.88rem;
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: #fff;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237b85a3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}

textarea { resize: vertical; line-height: 1.5; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 3.5rem; }

.unit {
  position: absolute; right: 0.7rem; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem; color: var(--muted);
  pointer-events: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* ============================================================ ROUTE OPTIONS */
.route-options {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin: 0.6rem 0;
}

.route-options-label {
  font-size: 0.72rem; color: var(--muted);
  font-weight: 600; letter-spacing: 0.04em;
}

.chk-wrap {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: var(--label);
  cursor: pointer; font-weight: 500;
}

.chk-wrap input[type="checkbox"] {
  width: auto; accent-color: var(--accent); cursor: pointer;
}

/* ============================================================ MAP INPUT */
.map-field { position: relative; }
.map-field input { padding-right: 2.5rem; }
.map-field-icon { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; pointer-events: none; }

.ac-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--border2);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200; max-height: 240px; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.ac-item { padding: 0.6rem 0.75rem; font-size: 0.82rem; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--accent-dim); }
.ac-main { font-weight: 600; color: var(--text); }
.ac-sub  { font-size: 0.73rem; color: var(--muted); margin-top: 0.1rem; }

/* ============================================================ ROUTE BUTTON */
.btn-route {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border2); color: var(--label);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.65rem; border-radius: var(--radius);
  cursor: pointer; margin-top: 0.75rem;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

.btn-route:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-route:disabled { opacity: 0.6; cursor: not-allowed; }

/* SPINNER */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ALTERNATIVE ROUTES */
.alt-routes { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }

.alt-route-card {
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 0.65rem 0.85rem;
  cursor: pointer; transition: all 0.15s;
}

.alt-route-card:hover { border-color: var(--accent); }
.alt-route-card.selected { border-color: var(--accent); background: var(--accent-dim); }

.alt-route-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.2rem;
}

.alt-route-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--label);
}

.alt-route-badge {
  font-size: 0.65rem; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.15rem 0.45rem; border-radius: 3px;
  background: var(--accent-dim); color: var(--accent-dk);
}

.alt-route-badge.fastest { background: var(--green-dim); color: var(--green); }

.alt-route-details { font-size: 0.78rem; color: var(--text2); }
.alt-route-details span { margin-right: 0.75rem; }
.alt-route-warnings { font-size: 0.71rem; color: var(--muted); margin-top: 0.2rem; }

/* ROUTE INFO */
.route-info {
  background: var(--green-dim); border: 1px solid rgba(26,158,92,0.25);
  border-radius: var(--radius); padding: 0.75rem;
  margin-top: 0.6rem; animation: fadeUp 0.2s ease;
}

.route-info-row {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--label); padding: 0.15rem 0;
}

.route-info-row strong { color: var(--green); font-weight: 700; }

.route-alert {
  margin-top: 0.5rem; padding: 0.45rem 0.6rem;
  border-radius: 4px; font-size: 0.77rem; font-weight: 500;
  background: var(--accent-dim);
  border: 1px solid rgba(232,146,10,0.3);
  color: var(--accent-dk);
}

.route-alert.ferry  { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.25); color: var(--blue); }
.route-alert.tunnel { background: rgba(123,133,163,0.1); border-color: rgba(123,133,163,0.3); color: var(--label); }

/* COUNTRY WARNINGS */
.country-warnings {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cw-header {
  background: var(--surface2); padding: 0.5rem 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--label); border-bottom: 1px solid var(--border);
}

.cw-item {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.cw-item:last-child { border-bottom: none; }

.cw-section-note { font-size: 0.72rem; color: var(--muted); padding: 0.4rem 0.75rem 0.6rem; line-height: 1.5; background: var(--surface2); border-bottom: 1px solid var(--border); }
.cw-disclaimer { font-size: 0.72rem; color: var(--muted); padding: 0.5rem 0.75rem; background: var(--surface2); border-top: 1px solid var(--border); line-height: 1.5; font-style: italic; }
.cw-type-badge { font-size: 0.6rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.1rem 0.4rem; border-radius: 3px; background: var(--accent-dim); color: var(--accent-dk); border: 1px solid rgba(232,146,10,0.2); margin-left: 0.35rem; }
.cw-country {
  font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.2rem; font-size: 0.82rem;
}
.ar-warn { font-size: 0.62rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.1rem 0.35rem; border-radius: 3px; }
.ar-warn.toll   { background: var(--accent-dim); color: var(--accent-dk); }
.ar-warn.ferry  { background: rgba(37,99,235,0.1); color: var(--blue); }
.ar-warn.tunnel { background: rgba(45,52,82,0.1); color: var(--text2); }

.cw-desc { color: var(--muted); line-height: 1.5; }
.cw-rate { color: var(--accent-dk); font-weight: 600; }
.cw-note { font-size: 0.69rem; color: var(--muted); margin-top: 0.2rem; font-style: italic; }
.cw-weekend { background: rgba(214,59,42,0.07); border-left: 3px solid var(--red); padding-left: 0.5rem; }

/* WAYPOINTS */
.waypoint-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; }
.waypoint-row input { flex: 1; }

.btn-rm-wp {
  width: 30px; height: 30px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); border-radius: var(--radius);
  cursor: pointer; font-size: 1rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 0;
}

.btn-rm-wp:hover { background: var(--red-dim); border-color: var(--red); color: var(--red); }

.btn-addstop {
  width: 100%; background: none;
  border: 1px dashed var(--border2); color: var(--muted);
  font-family: 'Barlow', sans-serif; font-size: 0.78rem;
  padding: 0.35rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s;
}

.btn-addstop:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================ DEFAULTS BOX */
.defaults-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem; margin-bottom: 0.75rem;
}

.defaults-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.5rem;
}

.defaults-label { font-size: 0.78rem; font-weight: 600; color: var(--text2); }

.defaults-note { font-size: 0.73rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.75rem; }

.toggle-wrap {
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer; font-size: 0.75rem;
  color: var(--label); font-weight: 600;
}

.toggle-wrap input[type="checkbox"] { width: auto; accent-color: var(--accent); cursor: pointer; }

/* ============================================================ RATE TOGGLE */
.toggle-row { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }

.rate-toggle {
  flex: 1; background: var(--surface2);
  border: 1px solid var(--border); color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.05em; padding: 0.4rem;
  border-radius: var(--radius); cursor: pointer; transition: all 0.15s;
}

.rate-toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================ BREAKS BOX */
.breaks-box {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem; margin-top: 0.75rem;
}

.breaks-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.5rem;
  font-size: 0.78rem; font-weight: 600; color: var(--text2);
}

.breaks-result {
  margin-top: 0.6rem; font-size: 0.78rem; color: var(--text2);
  line-height: 1.6; background: #fff;
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.6rem 0.75rem;
}

.br-warn { color: var(--red); font-weight: 600; }

/* ============================================================ BUTTONS */
.btn-primary {
  width: 100%; background: var(--accent); color: #fff; border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.75rem; border-radius: var(--radius);
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover { background: var(--accent-dk); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: none; border: 1px solid var(--border2);
  color: var(--label);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.6rem 1.25rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s;
}

.btn-outline:hover { border-color: var(--text); color: var(--text); }

.btn-google {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border2); color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 0.88rem;
  font-weight: 500; padding: 0.65rem; border-radius: var(--radius);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 0.6rem; transition: all 0.15s;
}

.btn-google:hover { border-color: var(--blue); background: rgba(37,99,235,0.05); }

/* ============================================================ MAIN PANEL */
.main-panel {
  overflow-y: auto; padding: 1.25rem;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 1rem;
}

.main-panel::-webkit-scrollbar { width: 4px; }
.main-panel::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ============================================================ MAP */
.map-wrap {
  height: 380px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--border);
  position: relative; flex-shrink: 0; box-shadow: var(--shadow);
}

.map-placeholder {
  position: absolute; inset: 0;
  background: #e8ecf5;
  display: flex; align-items: center; justify-content: center;
}

.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 36px 36px;
}

.map-placeholder-inner { position: relative; z-index: 1; text-align: center; }
.map-ph-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; opacity: 0.25; }
.map-placeholder-inner strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--label); margin-bottom: 0.25rem; }
.map-placeholder-inner p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ROUTE OVERLAY */
.route-overlay {
  position: absolute; bottom: 0.75rem; left: 0.75rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem 0.85rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-lg); z-index: 10;
  animation: fadeUp 0.2s ease;
}

.ro-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.ro-icon { font-size: 0.9rem; }
.ro-divider { width: 1px; height: 20px; background: var(--border); }

/* MAP CONTROLS */
.map-controls {
  position: absolute; top: 0.75rem; right: 0.75rem;
  display: flex; flex-direction: column; gap: 0.35rem; z-index: 10;
}

.map-ctrl-btn {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border2);
  border-radius: var(--radius); cursor: pointer;
  font-size: 0.72rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--label);
  padding: 0.35rem 0.6rem;
  box-shadow: var(--shadow); transition: all 0.15s;
  display: flex; align-items: center; gap: 0.3rem;
  white-space: nowrap;
}

.map-ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.map-ctrl-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================ INFO PANEL */
.info-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 2.5rem; text-align: center;
  box-shadow: var(--shadow);
}

.info-panel-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.3; }
.info-panel strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text2); margin-bottom: 0.4rem; }
.info-panel p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ============================================================ SUMMARY */
.summary-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; animation: fadeUp 0.25s ease; }

.sum-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.9rem 1rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}

.sum-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--border);
}

.sum-card.accent-t::after { background: var(--accent); }
.sum-card.green-t::after  { background: var(--green); }

.sum-label { font-size: 0.65rem; color: var(--muted); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; margin-bottom: 0.35rem; }

.sum-val { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--text); }
.sum-val.accent { color: var(--accent); }
.sum-val.green  { color: var(--green); }
.sum-sub { font-size: 0.68rem; color: var(--muted); margin-top: 0.3rem; }

/* ============================================================ BREAKDOWN */
.breakdown {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); animation: fadeUp 0.3s ease;
}

.breakdown-head {
  display: grid; grid-template-columns: 1fr 65px 95px; gap: 0.5rem;
  padding: 0.6rem 1.25rem; background: var(--surface2);
  border-bottom: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}

.breakdown-head span:not(:first-child) { text-align: right; }

.br-row {
  display: grid; grid-template-columns: 1fr 65px 95px; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border);
  align-items: center; transition: background 0.1s;
}

.br-row:last-child { border-bottom: none; }
.br-row:hover { background: var(--surface2); }

.br-name   { font-size: 0.85rem; color: var(--text); font-weight: 500; }
.br-detail { font-size: 0.71rem; color: var(--muted); margin-top: 0.1rem; }

.br-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 0.35rem; overflow: hidden; }
.br-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.5s ease; }
.br-bar-fill.green { background: var(--green); }
.br-bar-fill.red   { background: var(--red); }

.br-pct  { font-size: 0.75rem; color: var(--muted); text-align: right; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; }
.br-cost { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; text-align: right; color: var(--text); }

.breakdown-total {
  display: grid; grid-template-columns: 1fr 65px 95px; gap: 0.5rem;
  padding: 0.85rem 1.25rem; background: var(--surface2);
  border-top: 2px solid var(--border2); align-items: center;
}

.bt-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.bt-val   { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.35rem; text-align: right; }

/* ============================================================ PRICING PANEL */
.pricing-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); animation: fadeUp 0.35s ease;
}

.pricing-tabs { display: flex; border-bottom: 1px solid var(--border); }

.pricing-tab {
  flex: 1; background: var(--surface2);
  border: none; border-right: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.75rem; cursor: pointer; transition: all 0.15s;
}

.pricing-tab:last-child { border-right: none; }
.pricing-tab:hover { color: var(--text); background: var(--surface3); }
.pricing-tab.active { background: var(--surface); color: var(--accent); border-bottom: 2px solid var(--accent); }

.pricing-mode { padding: 1.25rem 1.5rem; }

/* MARGIN MODE */
.margin-layout { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 1.5rem; align-items: center; }

.mp-label { font-size: 0.65rem; color: var(--muted); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; margin-bottom: 0.4rem; }

.mp-val { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.9rem; line-height: 1; }
.mp-val.accent { color: var(--accent); }
.mp-val.green  { color: var(--green); }
.mp-sub { font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }

.mp-pct { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--accent); margin-bottom: 0.5rem; line-height: 1; }

input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 5px;
  background: var(--border2); border-radius: 3px;
  outline: none; padding: 0; border: none; cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  background: var(--accent); border-radius: 50%;
  cursor: pointer; box-shadow: 0 2px 6px rgba(232,146,10,0.4);
  border: 2px solid #fff;
}

.slider-ends { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--muted); margin-top: 0.3rem; }

.suggested-rate { font-size: 0.78rem; color: var(--muted); margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--border); text-align: center; }
.suggested-rate strong { color: var(--accent); font-size: 0.9rem; }

/* RATE MODE */
.rate-layout { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.rate-input-block { flex-shrink: 0; }

.rate-result {
  flex: 1; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.85rem 1rem; min-width: 200px;
}

.rr-row {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--label);
  padding: 0.2rem 0; border-bottom: 1px solid var(--border);
}

.rr-row:last-of-type { border-bottom: none; }
.rr-row strong { font-weight: 700; color: var(--text); }
.rr-row strong.green { color: var(--green); }
.rr-row strong.red   { color: var(--red); }

.rr-verdict {
  margin-top: 0.6rem; font-weight: 700; font-size: 0.85rem;
  padding: 0.4rem 0.6rem; border-radius: 4px;
  text-align: center;
}

.rr-verdict.good { background: var(--green-dim); color: var(--green); }
.rr-verdict.bad  { background: var(--red-dim); color: var(--red); }

.rr-breakeven { font-size: 0.72rem; color: var(--muted); margin-top: 0.4rem; text-align: center; }

/* ============================================================ ACTION BAR */
.action-bar { display: flex; gap: 0.75rem; animation: fadeUp 0.4s ease; }

.act-btn {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border2); color: var(--label);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.75rem; border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}

.act-btn.save:hover  { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.act-btn.pdf:hover   { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.act-btn.reset:hover { border-color: var(--border2); color: var(--text); background: var(--surface2); }

/* ============================================================ PAGE VIEWS */
.page-header { margin-bottom: 1.5rem; }
.page-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.page-sub { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }

/* ============================================================ HISTORY */
.history-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem; margin-bottom: 0.75rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  align-items: center; box-shadow: var(--shadow);
  transition: border-color 0.15s; animation: fadeUp 0.2s ease;
}

.history-card:hover { border-color: var(--border2); }

.h-ref { font-weight: 600; font-size: 0.95rem; color: var(--text); margin-bottom: 0.3rem; }

.h-status {
  display: inline-block; font-size: 0.65rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.15rem 0.5rem;
  border-radius: 3px; margin-left: 0.5rem;
}

.h-status.draft    { background: var(--surface3); color: var(--muted); }
.h-status.sent     { background: rgba(37,99,235,0.1); color: var(--blue); }
.h-status.accepted { background: var(--green-dim); color: var(--green); }
.h-status.declined { background: var(--red-dim); color: var(--red); }

.h-num { font-size: 0.72rem; color: var(--muted); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; }

.h-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.5rem; }
.h-tag  { font-size: 0.72rem; color: var(--muted); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.04em; }
.h-tag span { color: var(--label); }

.h-actions { display: flex; gap: 0.4rem; }

.h-btn {
  background: none; border: 1px solid var(--border);
  color: var(--muted); font-size: 0.72rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.25rem 0.6rem;
  border-radius: 4px; cursor: pointer; transition: all 0.15s;
}

.h-btn:hover     { border-color: var(--accent); color: var(--accent); }
.h-btn.del:hover { border-color: var(--red); color: var(--red); }
.h-btn.dup:hover { border-color: var(--blue); color: var(--blue); }

.h-amounts { text-align: right; }
.h-num-badge { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.15rem; }
.h-cost   { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.1rem; }
.h-charge { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--green); line-height: 1; }
.h-margin { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

/* ============================================================ FLEET */
.fleet-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow); animation: fadeUp 0.2s ease;
}

.fleet-form-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); margin-bottom: 1rem; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.fleet-form-actions { display: flex; gap: 0.75rem; margin-top: 1rem; align-items: center; }
.fleet-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.75rem; }

.fleet-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; box-shadow: var(--shadow); animation: fadeUp 0.2s ease; transition: border-color 0.15s; }
.fleet-card:hover { border-color: var(--border2); }

.fc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.85rem; }
.fc-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.fc-type { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.fc-badge { background: var(--accent-dim); color: var(--accent-dk); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 3px; border: 1px solid rgba(232,146,10,0.2); }

.fc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin-bottom: 0.85rem; }
.fc-spec { font-size: 0.75rem; color: var(--muted); }
.fc-spec span { color: var(--text2); font-weight: 500; }

.fc-actions { display: flex; gap: 0.5rem; }

.fc-use { flex: 1; background: var(--accent-dim); border: 1px solid rgba(232,146,10,0.25); color: var(--accent-dk); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem; border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.fc-use:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.fc-edit { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 0.78rem; padding: 0.4rem 0.6rem; border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.fc-edit:hover { border-color: var(--blue); color: var(--blue); background: rgba(37,99,235,0.06); }

.fc-del { background: none; border: 1px solid var(--border); color: var(--muted); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; padding: 0.4rem 0.6rem; border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.fc-del:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }

/* ============================================================ TOAST */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--text); color: #fff; padding: 0.75rem 1.25rem; border-radius: 8px; font-size: 0.85rem; font-family: 'Barlow', sans-serif; box-shadow: var(--shadow-lg); z-index: 9999; animation: fadeUp 0.2s ease; pointer-events: none; transition: opacity 0.3s; }

/* ============================================================ UTILITIES */
.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1200px) {
  .summary-row { grid-template-columns: repeat(3, 1fr); }
  .margin-layout { grid-template-columns: 1fr 1.4fr 1fr; }
}

@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 340px 1fr; }
}

@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; height: auto; }
  .view-wrap { height: auto; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .margin-layout { grid-template-columns: 1fr; }
  .summary-row { grid-template-columns: 1fr 1fr; }
  .header-nav { display: none; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .app-tagline { display: none; }
  .map-wrap { height: 280px; }
}

@media (max-width: 560px) {
  .summary-row { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .action-bar { flex-direction: column; }
  .rate-layout { flex-direction: column; }
}

/* ============================================================
   TOS CHECKBOXES
   ============================================================ */
.tos-checks {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tos-check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  cursor: pointer; font-size: 0.82rem; color: var(--text2);
  line-height: 1.4;
}

.tos-check input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0;
  margin-top: 1px; cursor: pointer;
  accent-color: var(--accent);
}

.tos-check a { color: var(--accent); text-decoration: none; font-weight: 600; }
.tos-check a:hover { text-decoration: underline; }

/* ============================================================
   ONBOARDING MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,14,30,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.onboarding-box {
  background: var(--surface);
  border-radius: 16px;
  width: 100%; max-width: 520px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onboarding-header {
  background: linear-gradient(135deg, var(--navy-mid, #1a2040) 0%, var(--navy-deep, #0f1628) 100%);
  padding: 1.75rem 1.75rem 1.25rem;
  position: relative; overflow: hidden;
}

.onboarding-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.onboarding-logo {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 1.25rem; position: relative; z-index: 1;
}

.onboarding-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.6rem;
  color: #fff; text-transform: uppercase;
  letter-spacing: 0.02em; margin-bottom: 0.4rem;
  position: relative; z-index: 1;
}

.onboarding-sub {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  line-height: 1.5; position: relative; z-index: 1;
}

.onboarding-steps {
  padding: 1.25rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.ob-step {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.ob-step:hover { border-color: rgba(232,146,10,0.3); }

.ob-icon {
  font-size: 1.3rem; flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.ob-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  color: var(--text); text-transform: uppercase;
  letter-spacing: 0.03em; margin-bottom: 0.2rem;
}

.ob-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

.onboarding-disclaimer {
  margin: 0 1.75rem;
  font-size: 0.68rem; color: var(--muted);
  line-height: 1.55; font-style: italic;
  padding: 0.6rem 0.75rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; border-left: 3px solid var(--accent);
}

.onboarding-box .btn-primary {
  margin: 0.75rem 1.75rem 1.75rem;
  width: calc(100% - 3.5rem) !important;
}

/* ============================================================
   USAGE COUNTER
   ============================================================ */
.usage-counter {
  display: flex; align-items: center; gap: 0.2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.25rem 0.75rem;
  cursor: default;
}

#usageUsed { font-weight: 700; color: var(--text); }
.usage-sep { color: var(--border2); margin: 0 0.1rem; }
.usage-label { font-size: 0.72rem; color: var(--muted); margin-left: 0.2rem; }

.usage-counter.warning #usageUsed { color: var(--accent); }
.usage-counter.critical #usageUsed { color: var(--red); }

/* ============================================================
   CHARGE DISCLAIMER
   ============================================================ */
.charge-disclaimer {
  font-size: 0.68rem; color: var(--muted);
  line-height: 1.5; margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-left: 2px solid var(--accent);
  font-style: italic;
  opacity: 0.85;
}

/* ============================================================
   FLEET DRIVER SECTION
   ============================================================ */
.fleet-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 1.25rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   MOBILE IMPROVEMENTS
   ============================================================ */
@media (max-width: 860px) {
  .usage-counter { display: none; }
  .header-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex !important;
    justify-content: space-around;
    padding: 0.5rem 0.25rem;
    z-index: 200;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }
  .nav-btn {
    flex: 1; border-radius: 8px;
    font-size: 0.65rem; padding: 0.5rem 0.25rem;
    flex-direction: column; display: flex;
    align-items: center; gap: 0.2rem;
  }
  .main-content { padding-bottom: 70px; }
  .view-wrap { padding-bottom: 70px; }
  .app-header { height: 52px; padding: 0 0.75rem; }
  .header-right .btn-signout span { display: none; }
}

@media (max-width: 560px) {
  .auth-container { padding: 1rem; }
  .two-col { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .page-header { padding: 1rem; }
  .summary-row { grid-template-columns: 1fr 1fr; }
}
