/* ===== WASHSYSTEM — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --c-primary: #1a73e8;
  --c-secondary: #34a853;
  --c-accent: #f59e0b;
  --c-danger: #ef4444;
  --c-success: #22c55e;
  --c-bg: #f0f4f8;
  --c-surface: #ffffff;
  --c-surface2: #f8fafc;
  --c-border: #e2e8f0;
  --c-text: #1e293b;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --font: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 72px;
  --topbar-h: 58px;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --c-bg: #0f172a; --c-surface: #1e293b; --c-surface2: #162032;
  --c-border: #334155; --c-text: #f1f5f9;
  --c-text-muted: #94a3b8; --c-text-light: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3); --shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--c-bg); color: var(--c-text); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: var(--c-primary); text-decoration: none; }
img { max-width: 100%; }
button { font-family: var(--font); }

/* ── Auth pages ── */
.auth-body {
  background: linear-gradient(135deg, #ff0606 0%, #850000 50%, #000000 100%);
  min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-wrapper { width: 100%; max-width: 420px; }
.auth-card {background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { font-size: 48px; line-height: 1; margin-bottom: 8px; }
.auth-logo-name { font-size: 28px; font-weight: 700; color: #000000; letter-spacing: -.5px; }
.auth-logo-sub { font-size: 14px; color: #000000; margin-top: 4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--c-text-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }
.auth-footer-text { text-align: center; font-size: 14px; color: #757579; margin-top: 20px; }
.auth-link { color: #0196ff}
.logo-upload-area { border: 2px dashed var(--c-border); border-radius: var(--radius); padding: 32px 16px; text-align: center; cursor: pointer; transition: border-color var(--transition); }
.logo-upload-area:hover { border-color: var(--c-primary); }
.upload-icon { font-size: 40px; margin-bottom: 8px; }
.upload-text { color: var(--c-text-muted); font-weight: 600; }
.upload-hint { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; }

.auth-form {color:#982a2a}

/* ── Topbar ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
  background: var(--c-surface); border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 100; box-shadow: var(--shadow-sm);
}
.topbar-logo { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; }
.topbar-title { font-weight: 700; font-size: 18px; color: var(--c-primary); }
.topbar-right { display: flex; gap: 6px; }
.icon-btn {
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--c-text); transition: background var(--transition);
}
.icon-btn:hover { background: var(--c-bg); }

/* ── Settings Slide-down Panel ── */
.settings-panel-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.settings-panel-backdrop.open { opacity: 1; pointer-events: all; }
.settings-panel {
  position: fixed; top: var(--topbar-h); right: 0; width: min(300px, 92vw);
  background: var(--c-surface); border-radius: 0 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: 200;
  transform: translateY(-20px); opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s;
  border-left: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
}
.settings-panel.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.sp-profile { display: flex; align-items: center; gap: 12px; padding: 18px 16px; }
.sp-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.sp-name { font-weight: 700; font-size: 15px; }
.sp-email { font-size: 12px; color: var(--c-text-muted); }
.sp-divider { height: 1px; background: var(--c-border); margin: 0; }
.sp-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: none; background: none; width: 100%; text-align: left;
  cursor: pointer; transition: background var(--transition); font-family: var(--font);
  font-size: 14px; color: var(--c-text); text-decoration: none;
}
.sp-row:hover { background: var(--c-bg); }
.sp-icon { font-size: 20px; color: var(--c-text-muted); }
.sp-label { flex: 1; font-weight: 500; }
.sp-caret { font-size: 14px; color: var(--c-text-light); }
.sp-disabled { opacity: .6; cursor: default; }
.sp-disabled:hover { background: none; }
.sp-badge-soon { font-size: 11px; background: var(--c-accent); color: #fff; padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.sp-danger { color: var(--c-danger); }
.sp-danger .sp-icon { color: var(--c-danger); }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 4px calc(env(safe-area-inset-bottom, 0px)); z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; padding: 8px 4px; border-radius: var(--radius-sm);
  color: var(--c-text-muted); transition: color var(--transition); text-decoration: none;
}
.nav-item.active { color: var(--c-primary); }
.nav-item.active .nav-icon { transform: scale(1.12); }
.nav-icon { font-size: 24px; transition: transform var(--transition); }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .3px; }
/* Center + button */
.nav-item-center {
  background: var(--c-primary); color: #fff !important;
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  box-shadow: 0 4px 20px rgba(26,115,232,.45);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; transition: transform var(--transition), box-shadow var(--transition);
}
.nav-item-center:hover { transform: scale(1.06); box-shadow: 0 6px 24px rgba(26,115,232,.55); }
.nav-icon-plus { font-size: 28px; color: #fff; }

/* ── Main content ── */
.main-content {
  padding: calc(var(--topbar-h) + 16px) 16px calc(var(--nav-h) + 16px);
  min-height: 100dvh;
}

/* ── Flash messages ── */
.flash-container { position: fixed; top: calc(var(--topbar-h) + 8px); left: 8px; right: 8px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; animation: slideDown .3s ease; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.flash-warning { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 16px; padding: 2px; opacity: .7; flex-shrink: 0; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }

/* ── Page header ── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.page-subtitle { font-size: 13px; color: var(--c-text-muted); margin-top: 2px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-sm); font-family: var(--font);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn i { font-size: 17px; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 4px 12px rgba(26,115,232,.3); }
.btn-secondary { background: var(--c-surface2); color: var(--c-text); border: 1px solid var(--c-border); }
.btn-secondary:hover { background: var(--c-border); }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { filter: brightness(1.06); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-accent { background: var(--c-accent); color: #1e293b; }
.btn-ghost { background: transparent; color: var(--c-text-muted); border: 1px solid var(--c-border); }
.btn-ghost:hover { background: var(--c-bg); color: var(--c-text); }
.btn-google { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-sm i { font-size: 15px; }
.btn-xs { padding: 4px 8px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Forms ── */
.auth-form, .form-card {
  display: flex; flex-direction: column; gap: 14px;
  background:#80808038; border-radius: var(--radius); padding: 18px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--c-text-muted); }
.form-input {
  padding: 11px 14px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--c-text); background: var(--c-bg);
  transition: border-color var(--transition), box-shadow var(--transition); width: 100%;
}
.form-input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(26,115,232,.15); }
textarea.form-input { resize: vertical; min-height: 72px; }
select.form-input { cursor: pointer; }
.form-section { background: var(--c-surface2); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 4px; }
.form-section-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.form-section-title i { font-size: 16px; color: var(--c-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-check-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.input-password-wrap { position: relative; }
.input-password-wrap .form-input { padding-right: 40px; }
.show-pass-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; opacity: .6; }

/* ── Time Drum Roll ── */
.time-drum-trigger {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-bg); color: var(--c-text); cursor: pointer;
  font-size: 15px; font-weight: 600; width: 100; text-align: left;
  transition: border-color var(--transition);
}
.time-drum-trigger:hover { border-color: var(--c-primary); }
.drum-roll-wrap {
  position: relative; height: 220px; overflow: hidden;
  margin: 8px 0;
}
.drum-roll-selector {
  position: absolute; top: 50%; left: 0; right: 0;
  height: 52px; transform: translateY(-50%);
  background: rgba(26,115,232,.12); border-top: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary); border-radius: 6px;
  pointer-events: none; z-index: 2;
}
.drum-roll-scroll {
  height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory;
  padding: calc(220px/2 - 26px) 0;
  -ms-overflow-style: none; scrollbar-width: none;
}
.drum-roll-scroll::-webkit-scrollbar { display: none; }
.drum-item {
  height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; font-family: var(--font-mono);
  scroll-snap-align: center; cursor: pointer; transition: color var(--transition), transform var(--transition);
  color: var(--c-text-muted);
}
.drum-item.selected { color: var(--c-primary); transform: scale(1.1); }

/* ── Appointment cards ── */
.cards-list { display: flex; flex-direction: column; gap: 12px; }
.appt-card {
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; border-left: 4px solid var(--c-border); transition: box-shadow var(--transition);
}
.appt-card--scheduled { border-left-color: var(--c-primary); }
.appt-card--in_progress { border-left-color: var(--c-accent); }
.appt-card--finished { border-left-color: var(--c-success); }
.appt-card:hover { box-shadow: var(--shadow); }
.appt-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 0; }
.appt-time { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--c-primary); display: flex; align-items: center; gap: 5px; }
.appt-time i { font-size: 16px; }
.appt-status-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.badge--scheduled { background: #dbeafe; color: #1d4ed8; }
.badge--in_progress { background: #fef9c3; color: #92400e; }
.badge--finished { background: #dcfce7; color: #166534; }
.badge--completed { background: #d1fae5; color: #065f46; }
.badge--cancelled { background: #fee2e2; color: #991b1b; }
.appt-card-body { padding: 8px 14px; }
.appt-client-name { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.appt-vehicle { font-size: 13px; color: var(--c-text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.appt-vehicle i { font-size: 15px; }
.plate-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; background: var(--c-bg); border: 1px solid var(--c-border); padding: 2px 6px; border-radius: 4px; letter-spacing: 1px; }
.appt-services { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.svc-chip { font-size: 12px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 6px; padding: 2px 8px; }
.appt-footer { display: flex; justify-content: space-between; align-items: center; }
.appt-value { font-weight: 700; color: var(--c-success); font-size: 17px; }
.appt-payment { color: var(--c-text-muted); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.appt-card-actions { display: flex; gap: 8px; padding: 10px 14px; background: var(--c-surface2); border-top: 1px solid var(--c-border); flex-wrap: wrap; }

/* ── Week history ── */
.week-history { background: var(--c-surface); border-radius: var(--radius); margin-top: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.week-history-toggle { display: flex; justify-content: space-between; padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; border-bottom: 1px solid var(--c-border); align-items: center; gap: 8px; }
.week-history-toggle i { color: var(--c-primary); }
.week-total { color: var(--c-text-muted); font-size: 13px; background: var(--c-bg); padding: 2px 10px; border-radius: 12px; font-weight: 600; }
.week-history-content { padding: 4px 0; }
.week-day-group { padding: 8px 16px; }
.week-day-label { font-size: 11px; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 6px; }
.week-appt-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.week-appt-row:last-child { border-bottom: none; }
.week-client { font-weight: 600; flex: 1; }
.week-vehicle { color: var(--c-text-muted); font-size: 13px; }
.week-value { font-weight: 700; color: var(--c-success); }

/* ── Search dropdown ── */
.search-input-wrap { display: flex; gap: 8px; position: relative; }
.search-input-wrap .form-input { flex: 1; }
.search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--c-surface); border: 1.5px solid var(--c-primary); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); z-index: 50; max-height: 260px; overflow-y: auto;
  display: none;
}
.search-dropdown.open { display: block; }
.search-result-item { padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.search-result-item:hover { background: var(--c-bg); }
.search-result-item:last-child { border-bottom: none; }

/* ── Service list ── */
.service-checkbox-list { display: flex; flex-direction: column; gap: 8px; }
#serviceList { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.service-check-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
}
.service-check-item:has(input:checked) { border-color: var(--c-primary); background: rgba(26,115,232,.06); }
.service-check-item input { width: 18px; height: 18px; accent-color: var(--c-primary); flex-shrink: 0; }
.service-check-icon { font-size: 20px; }
.service-check-name { flex: 1; font-weight: 500; font-size: 14px; }
.service-check-value { font-weight: 700; color: var(--c-success); font-family: var(--font-mono); font-size: 14px; }

/* ── Breakdown ── */
.breakdown-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.breakdown-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--c-border); }
.breakdown-row:last-child { border-bottom: none; }
.breakdown-discount { color: var(--c-danger); }

/* ── Execution page ── */
.execution-header { background: var(--c-surface); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.execution-client { font-size: 20px; font-weight: 700; }
.execution-vehicle { font-size: 14px; color: var(--c-text-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.execution-timer { margin-top: 10px; font-size: 26px; font-family: var(--font-mono); font-weight: 700; color: var(--c-accent); display: flex; align-items: center; gap: 6px; }
.progress-bar-wrap { background: var(--c-border); border-radius: 20px; height: 26px; position: relative; overflow: hidden; margin-bottom: 16px; }
.progress-bar-fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); transition: width .4s ease; border-radius: 20px; }
.progress-bar-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); white-space: nowrap; }
.checklist-item { background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px; transition: all var(--transition); }
.checklist-done { border-color: var(--c-success); background: rgba(34,197,94,.05); opacity: .85; }
.checklist-label { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 8px; }
.checklist-checkbox { width: 22px; height: 22px; accent-color: var(--c-success); flex-shrink: 0; }
.checklist-text { font-size: 14px; font-weight: 500; flex: 1; }
.checklist-done .checklist-text { text-decoration: line-through; color: var(--c-text-muted); }
.opt-badge { font-size: 10px; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; padding: 1px 6px; color: var(--c-text-muted); }
.checklist-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.checklist-photo-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--c-border); }
.add-photo-btn {
  width: 48px; height: 48px; border: 2px dashed var(--c-border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  cursor: pointer; transition: border-color var(--transition); color: var(--c-text-muted);
  background: var(--c-surface2);
}
.add-photo-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.photo-input-group { display: flex; gap: 10px; }
.photo-btn {
  flex: 1; padding: 12px 8px; border: 1.5px dashed var(--c-border); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--c-text-muted); transition: all var(--transition);
  font-family: var(--font);
}
.photo-btn i { font-size: 28px; }
.photo-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: rgba(26,115,232,.04); }

/* ── Receipt ── */
.receipt-card { background: var(--c-surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px; text-align: center; }
.receipt-logo { height: 60px; margin-bottom: 10px; }
.receipt-company { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.receipt-cnpj { font-size: 12px; color: var(--c-text-muted); }
.receipt-date { font-size: 13px; color: var(--c-text-muted); margin: 8px 0; }
.receipt-divider { border: none; border-top: 1px solid var(--c-border); margin: 10px 0; }
.receipt-client-row, .receipt-vehicle-row { font-size: 14px; margin-bottom: 4px; text-align: left; }
.receipt-svc-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.receipt-discount { color: var(--c-danger); }
.receipt-total { display: flex; justify-content: space-between; font-size: 18px; padding: 8px 0; }
.receipt-payment { font-size: 13px; color: var(--c-text-muted); margin-top: 4px; }
.receipt-bank { font-size: 12px; color: var(--c-text-muted); }
.receipt-thanks { margin-top: 16px; font-size: 14px; color: var(--c-primary); font-weight: 600; }
.receipt-actions { display: flex; flex-direction: column; gap: 8px; }
.receipt-preview-card { background: var(--c-surface); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.rp-client { font-size: 18px; font-weight: 700; }
.rp-vehicle { font-size: 13px; color: var(--c-text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.rp-service { font-size: 14px; padding: 4px 0; }

/* ── Feedback / Star picker ── */
.feedback-section { background: var(--c-surface2); border-radius: var(--radius-sm); padding: 14px; margin: 4px 0; }
.star-picker { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }
.star-btn { background: none; border: none; cursor: pointer; font-size: 36px; color: var(--c-border); transition: color var(--transition), transform var(--transition); padding: 4px; }
.star-btn i { font-size: 36px; }
.star-btn:hover { color: var(--c-accent); transform: scale(1.15); }
.star-active { color: var(--c-accent) !important; }
.star-active i { color: var(--c-accent); }

/* ── Client cards ── */
.clients-list { display: flex; flex-direction: column; gap: 8px; }
.client-row { background: var(--c-surface); border-radius: var(--radius-sm); padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--c-text); transition: box-shadow var(--transition); }
.client-row:hover { box-shadow: var(--shadow); }
.client-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; cursor: pointer; object-fit: cover; }
.client-info { flex: 1; }
.client-name { font-weight: 700; font-size: 15px; }
.client-phone { font-size: 13px; color: var(--c-text-muted); }
.client-ltv { font-weight: 700; color: var(--c-success); font-size: 14px; }
.client-count { font-size: 12px; color: var(--c-text-muted); }

/* ── Client detail history ── */
.history-card { background: var(--c-surface2); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--c-border); margin-bottom: 1px; }
.history-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.history-date { font-weight: 700; font-size: 14px; }
.history-time { font-size: 12px; color: var(--c-text-muted); margin-left: 8px; }
.history-vehicle { font-size: 13px; color: var(--c-text-muted); display: flex; align-items: center; gap: 5px; }
.history-feedback { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-border); }
.history-stars { display: flex; align-items: center; gap: 2px; }
.history-stars i { font-size: 16px; }
.history-comment { font-size: 13px; color: var(--c-text-muted); font-style: italic; margin-top: 4px; }
.badge-primary-vehicle { font-size: 11px; background: var(--c-primary); color: #fff; padding: 2px 9px; border-radius: 10px; font-weight: 600; }

/* ── Metrics grid ── */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.metric-card { background: var(--c-surface); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm); text-align: center; }
.metric-value { font-size: 22px; font-weight: 700; color: var(--c-primary); }
.metric-label { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.fin-positive { color: var(--c-success); }
.fin-negative { color: var(--c-danger); }

/* ── Service cards ── */
.service-card { background: var(--c-surface); border-radius: var(--radius-sm); padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.service-icon-big { font-size: 32px; width: 48px; text-align: center; }
.service-info { flex: 1; }
.service-name { font-weight: 700; font-size: 15px; }
.service-value { font-weight: 700; color: var(--c-success); font-family: var(--font-mono); }
.service-meta { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }

/* ── Icon picker ── */
.icon-picker-trigger {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-bg); cursor: pointer; width: 100%; font-size: 14px;
  font-weight: 600; color: var(--c-text); transition: border-color var(--transition); font-family: var(--font);
}
.icon-picker-trigger:hover { border-color: var(--c-primary); }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px 0; }
.icon-grid-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); background: var(--c-surface2); font-size: 11px; color: var(--c-text-muted); }
.icon-grid-item i { font-size: 26px; color: var(--c-text); }
.icon-grid-item:hover { border-color: var(--c-primary); background: rgba(26,115,232,.06); }
.icon-grid-item.selected { border-color: var(--c-primary); background: rgba(26,115,232,.1); }
.icon-grid-item.selected i { color: var(--c-primary); }

/* ── Category chips ── */
.cat-chip-label { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1.5px solid var(--c-border); border-radius: 20px; cursor: pointer; font-size: 13px; transition: all var(--transition); font-weight: 500; }
.cat-chip-label:has(input:checked) { border-color: var(--c-primary); background: rgba(26,115,232,.08); color: var(--c-primary); }
.cat-chip-label input { accent-color: var(--c-primary); }

/* ── Stock ── */
.stock-table { width: 100%; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.stock-table th { background: var(--c-surface2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--c-text-muted); padding: 10px 12px; text-align: left; }
.stock-table td { padding: 12px; border-top: 1px solid var(--c-border); font-size: 14px; }
.stock-level-bar { height: 6px; background: var(--c-border); border-radius: 3px; overflow: hidden; width: 80px; }
.stock-level-fill { height: 100%; border-radius: 3px; }
.level-ok { background: var(--c-success); }
.level-low { background: var(--c-accent); }
.level-out { background: var(--c-danger); }
.out-row { opacity: .65; }

/* ── Financial ── */
.fin-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.fin-card { background: var(--c-surface); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.fin-card-label { font-size: 11px; color: var(--c-text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.fin-card-value { font-size: 20px; font-weight: 700; margin-top: 4px; font-family: var(--font-mono); }
.goal-bar-wrap { background: var(--c-surface); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.goal-bar-bg { background: var(--c-border); height: 20px; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.goal-bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary)); transition: width .6s ease; }
.goal-reached-badge { background: var(--c-success); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; margin-top: 8px; display: inline-block; }
.dre-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dre-table th { background: var(--c-primary); color: #fff; padding: 8px 10px; text-align: left; font-size: 11px; }
.dre-table td { padding: 8px 10px; border-bottom: 1px solid var(--c-border); }
.dre-table tr:nth-child(even) td { background: var(--c-surface2); }
.dre-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ── Settings ── */
.settings-section { background: var(--c-surface); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.settings-section-header { padding: 14px 16px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--c-border); background: var(--c-surface2); display: flex; align-items: center; gap: 6px; }
.settings-section-header i { font-size: 17px; color: var(--c-primary); }
.settings-item { padding: 14px 16px; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.settings-item:last-child { border-bottom: none; }
.settings-label { font-size: 14px; font-weight: 500; }
.settings-sub { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; }
.toggle-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--c-border); border-radius: 26px; cursor: pointer; transition: background var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform var(--transition); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--c-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.perm-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.perm-row:last-child { border-bottom: none; }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--c-surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px; width: 100%;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-large .icon-grid { grid-template-columns: repeat(4, 1fr); }
.modal-compact { padding: 20px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.modal-title i { color: var(--c-primary); }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* ── Alerts ── */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.alert-warning { background: #fef9c3; border: 1px solid #fde68a; color: #92400e; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert i { font-size: 18px; flex-shrink: 0; }
.tax-info { background: var(--c-bg); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; color: var(--c-text-muted); margin-top: 8px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 48px 16px; }
.empty-icon-ph { font-size: 56px; display: block; margin-bottom: 12px; color: var(--c-text-light); }
.empty-state p { font-size: 15px; color: var(--c-text-muted); margin-bottom: 20px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

/* ── Print ── */
@media print { .topbar, .bottom-nav, .receipt-actions, .btn { display: none !important; } .main-content { padding: 0 !important; } body { background: #fff; } }

/* ── Photo preview grid ── */
.photo-preview-grid { display:flex;flex-wrap:wrap;gap:8px;margin-top:10px; }
.photo-preview-grid img { width:72px;height:72px;object-fit:cover;border-radius:8px;border:2px solid var(--c-border); }

/* ── Checklist confirm overlay ── */
.checklist-confirm-bar {
  display:none;flex-direction:column;gap:8px;padding:10px 0 0;
  border-top:1px dashed var(--c-border);margin-top:8px;
}
.checklist-confirm-bar.visible { display:flex; }

/* ── Star rating fix ── */
.star-btn { color:var(--c-border) !important; }
.star-btn.star-active i { color:var(--c-accent) !important; }
.star-btn i { color:inherit; font-size:36px; }

/* ── Service images in history ── */
.history-photos { display:flex;flex-wrap:wrap;gap:6px;margin-top:8px; }
.history-photos img { width:64px;height:64px;object-fit:cover;border-radius:6px;border:1px solid var(--c-border);cursor:pointer; }

/* ── Cost rows in financial ── */
.cost-row {
  display:flex; align-items:center; gap:8px; padding:10px 0;
  border-bottom:1px solid var(--c-border);
}
.cost-row:last-of-type { border-bottom:none; }
.cost-name { flex:1; font-size:14px; font-weight:500; }
.cost-value { font-family:var(--font-mono); font-size:14px; font-weight:700; color:var(--c-text); white-space:nowrap; }

/* ── Checklist cb ── */
.checklist-cb { display:flex; align-items:center; flex-shrink:0; cursor:pointer; }
.cb-done { }
