/* ============================================================
   AUTOFORGE — Global Styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FF6B00;
  --orange-dark: #CC5500;
  --orange-glow: rgba(255,107,0,0.15);
  --bg: #0D0D0D;
  --bg2: #141414;
  --bg3: #1A1A1A;
  --card: #1E1E1E;
  --border: rgba(255,255,255,0.08);
  --text: #F0F0F0;
  --text-muted: #888;
  --font: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- LAYOUT ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-condensed);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
}
.logo-icon { color: var(--orange); margin-right: 2px; }
.logo-accent { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.btn-nav {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 5px;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--orange-dark) !important; }
.btn-admin { background: transparent !important; border: 1px solid var(--border) !important; color: var(--text-muted) !important; }
.btn-admin:hover { border-color: var(--orange) !important; color: var(--orange) !important; background: transparent !important; }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; border-top: 1px solid var(--border); background: var(--bg2); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 600; color: var(--text-muted); }
.mobile-menu a:hover { color: #fff; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 3rem;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
  pointer-events: none;
}
.hero-content { max-width: 1160px; margin: 0 auto; width: 100%; position: relative; }
.hero-tag {
  display: inline-block;
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-condensed);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.highlight { color: var(--orange); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  max-width: 1160px;
  margin: 4rem auto 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-condensed); font-size: 2rem; font-weight: 900; color: var(--orange); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- SECTIONS ---- */
.section { padding: 6rem 0; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title { font-family: var(--font-condensed); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.section-sub { color: var(--text-muted); margin-top: 0.8rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ---- TRACK BANNER ---- */
.track-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.track-banner-text p { color: var(--text-muted); max-width: 460px; }
.track-banner-text .section-title { text-align: left; }

.phone-mockup {
  width: 240px;
  height: 420px;
  margin: 0 auto;
  background: #111;
  border: 3px solid rgba(255,107,0,0.4);
  border-radius: 28px;
  padding: 20px 16px;
  box-shadow: 0 0 60px rgba(255,107,0,0.15), 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 5px;
  background: #2a2a2a;
  border-radius: 99px;
}
.phone-screen { margin-top: 18px; }
.mock-header { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.mock-plate {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.mock-steps { display: flex; flex-direction: column; gap: 10px; }
.mock-step {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  padding: 8px 10px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}
.mock-step.done { color: #4ade80; border-color: rgba(74,222,128,0.2); background: rgba(74,222,128,0.05); }
.mock-step.active { color: var(--orange); border-color: rgba(255,107,0,0.3); background: rgba(255,107,0,0.08); font-weight: 700; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-box {
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-img-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,107,0,0.1), transparent 70%);
}
.about-img-inner { text-align: center; }
.big-icon { font-size: 8rem; opacity: 0.15; display: block; }
.about-text .section-title { text-align: left; }
.about-text p { color: var(--text-muted); }
.about-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.badge {
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.25);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
}
.contact-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.contact-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ---- FOOTER ---- */
.footer {
  background: #090909;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ============================================================
   SHARED FORM / CARD STYLES
   ============================================================ */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
}
.page-content { flex: 1; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.form-card h2 { font-family: var(--font-condensed); font-size: 1.8rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.4rem; }
.form-card p.sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select option { background: #1a1a1a; }

.btn-full { width: 100%; padding: 0.85rem; font-size: 1rem; }

.alert {
  padding: 0.8rem 1.1rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.alert-success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.alert-info { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); color: #818cf8; }

/* Status badges */
.badge-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-aguardando  { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #fbbf24; }
.badge-diagnostico { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); color: #818cf8; }
.badge-servico     { background: rgba(255,107,0,0.1);  border: 1px solid rgba(255,107,0,0.3);  color: var(--orange); }
.badge-pronto      { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.badge-entregue    { background: rgba(107,114,128,0.1);border: 1px solid rgba(107,114,128,0.3);color: #9ca3af; }

/* ============================================================
   RASTREAR PAGE
   ============================================================ */
.track-page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.track-page-hero h1 { font-family: var(--font-condensed); font-size: 2.5rem; font-weight: 900; text-transform: uppercase; }
.track-page-hero p { color: var(--text-muted); margin-top: 0.5rem; }

.track-section { padding: 3rem 1.5rem; }

.vehicle-result {
  max-width: 640px;
  margin: 2rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: none;
}
.vehicle-result.show { display: block; }
.result-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.result-plate {
  font-family: var(--font-condensed);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.1em;
}
.result-body { padding: 2rem; }
.result-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.result-row:last-child { border-bottom: none; }
.result-row span:first-child { color: var(--text-muted); }
.result-row span:last-child { font-weight: 600; text-align: right; }

.progress-track { padding: 1.5rem 2rem; border-top: 1px solid var(--border); }
.progress-track h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.2rem; }
.steps { display: flex; flex-direction: column; gap: 0.6rem; }
.step-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
}
.step-item.done   { color: #4ade80; }
.step-item.active { color: var(--orange); }
.step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.step-item.done   .step-dot { background: rgba(74,222,128,0.15); }
.step-item.active .step-dot { background: rgba(255,107,0,0.15); animation: pulse 1.5s ease-in-out infinite; }

@keyframes pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(255,107,0,0.3); } 50%{ box-shadow:0 0 0 6px rgba(255,107,0,0); } }

.obs-box {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 2rem 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.obs-box strong { color: var(--text); }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px);
}
.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}
.admin-sidebar .logo { display: block; margin-bottom: 2rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-link:hover { background: var(--bg3); color: #fff; }
.sidebar-link.active { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(255,107,0,0.2); }
.sidebar-icon { font-size: 1rem; width: 18px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 0.8rem 0; }
.sidebar-section-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #444; padding: 0.3rem 0.9rem; }

.admin-main { padding: 2.5rem; overflow-y: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.panel-title { font-family: var(--font-condensed); font-size: 1.8rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.3rem; }
.panel-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 2rem; }

/* --- Login Screen --- */
.admin-login-screen {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* --- Dashboard Cards --- */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.dash-card-num { font-family: var(--font-condensed); font-size: 2.2rem; font-weight: 900; color: var(--orange); line-height: 1; }
.dash-card-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }

/* --- Table --- */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th {
  background: var(--bg3);
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.table-card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.table-card-header h3 { font-size: 1rem; font-weight: 700; }
.search-input {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 220px;
}
.search-input:focus { border-color: var(--orange); }

.action-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 5px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.action-btn:hover { border-color: var(--orange); color: var(--orange); }
.action-btn.danger:hover { border-color: #f87171; color: #f87171; }

/* --- Form grid --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-family: var(--font-condensed); font-size: 1.4rem; font-weight: 900; text-transform: uppercase; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #fff; }

/* Senha temporaria display */
.temp-password-box {
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}
.temp-password-box p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.temp-password-val { font-family: var(--font-condensed); font-size: 2.5rem; font-weight: 900; color: var(--orange); letter-spacing: 0.15em; }

/* ============================================================
   CMS — Conteudo do Site
   ============================================================ */
.cms-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.4rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  width: fit-content;
}
.cms-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cms-tab:hover { background: var(--bg3); color: #fff; }
.cms-tab.active { background: var(--orange); color: #fff; }

.cms-section { display: none; }
.cms-section.active { display: block; }

.cms-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.cms-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

/* Badge list editor */
.badge-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.25);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}
.badge-remove {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.6;
  padding: 0;
}
.badge-remove:hover { opacity: 1; }

.badge-add-row { display: flex; gap: 0.6rem; }
.badge-add-row input { flex: 1; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 240px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: slideIn 0.25s ease;
}
.toast.success { border-color: rgba(74,222,128,0.4); color: #4ade80; }
.toast.error   { border-color: rgba(239,68,68,0.4);  color: #f87171; }
@keyframes slideIn { from{ transform: translateX(30px); opacity:0; } to{ transform:translateX(0); opacity:1; } }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .hero-stats { flex-wrap: wrap; width: 100%; }
  .track-banner { grid-template-columns: 1fr; text-align: center; }
  .track-banner-text .section-title { text-align: center; }
  .track-banner-text p { margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; height: auto; position: static; }
  .admin-sidebar.show { display: block; }
}

@media (max-width: 600px) {
  .hero { padding: 7rem 1rem 2rem; }
  .hero-stats { gap: 1rem; padding: 1rem 1.2rem; }
  .form-card { padding: 1.5rem; }
  .admin-main { padding: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   SESSION 3 — DASHBOARD CHARTS
   ============================================================ */
.dash-charts-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-top: 2rem;
}
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}
.chart-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.chart-container { position: relative; }
.chart-container canvas { max-width: 100%; }
@media (max-width: 900px) { .dash-charts-row { grid-template-columns: 1fr; } }

.dash-fin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-fin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--orange);
}
.dash-fin-num { font-family: var(--font-condensed); font-size: 1.6rem; font-weight: 900; color: var(--orange); }
.dash-fin-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
@media (max-width: 700px) { .dash-fin-cards { grid-template-columns: 1fr; } }

/* ============================================================
   SESSION 3 — VEHICLE FILTERS + PAGINATION
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: flex-end;
}
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }
.filter-bar label { font-size: 0.72rem; }
.filter-bar input,
.filter-bar select { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
.filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.8rem;
}
.page-btns { display: flex; gap: 0.3rem; }
.page-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 5px;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 32px;
  text-align: center;
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* ============================================================
   SESSION 3 — FINANCIAL FIELDS
   ============================================================ */
.finance-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.total-display {
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}
.total-display label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.total-value { font-family: var(--font-condensed); font-size: 1.4rem; font-weight: 900; color: var(--orange); }
@media (max-width: 600px) { .finance-row { grid-template-columns: 1fr; } }

/* ============================================================
   SESSION 3 — VEHICLE HISTORY TIMELINE
   ============================================================ */
.history-timeline { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.history-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 3px solid var(--orange);
}
.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.history-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.history-senha { font-family: var(--font-condensed); font-size: 1rem; font-weight: 900; color: var(--orange); letter-spacing: 0.1em; }
.history-service { font-size: 0.95rem; color: var(--text); margin-bottom: 0.6rem; }
.history-obs { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }
.history-total { font-size: 0.9rem; font-weight: 700; color: #4ade80; margin-top: 0.5rem; }
.no-history { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.no-history .icon { font-size: 3rem; opacity: 0.3; display: block; }
.history-search-bar { display: flex; gap: 0.8rem; align-items: flex-end; margin-bottom: 0.5rem; }
.history-search-bar input { flex: 1; }

/* ============================================================
   SESSION 3 — PHOTO GALLERY
   ============================================================ */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.foto-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #111;
}
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.foto-thumb:hover img { transform: scale(1.05); }
.foto-thumb-del {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(0,0,0,0.75);
  border: none;
  color: #f87171;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.foto-thumb:hover .foto-thumb-del { opacity: 1; }
.foto-empty { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.88rem; }
.foto-limit-bar { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.foto-upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.foto-upload-area:hover { border-color: var(--orange); }
.foto-upload-area input[type="file"] { display: none; }
.foto-upload-label { font-size: 0.85rem; color: var(--text-muted); cursor: pointer; }
.foto-upload-label span { color: var(--orange); font-weight: 700; }
.foto-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.foto-lightbox.show { display: flex; }
.foto-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.foto-lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
}

/* ============================================================
   SESSION 3 — PRINT OS
   ============================================================ */
#printRoot { display: none; }
.print-os-area {
  background: #fff;
  color: #111;
  padding: 2rem;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  border: 1px solid #ddd;
  max-width: 640px;
}
.print-os-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #111; }
.print-os-logo { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.05em; }
.print-os-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #666; }
.print-os-num { font-size: 1rem; font-weight: 700; }
.print-os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.5rem; margin-bottom: 1rem; }
.print-os-field label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #666; }
.print-os-field span { font-size: 0.88rem; font-weight: 600; color: #111; }
.print-os-service { background: #f5f5f5; border-radius: 6px; padding: 0.8rem; margin-bottom: 1rem; }
.print-os-service label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: #666; display: block; margin-bottom: 0.3rem; }
.print-os-financeiro { border-top: 1px solid #ddd; padding-top: 0.8rem; margin-bottom: 1rem; }
.print-os-fin-row { display: flex; justify-content: space-between; padding: 0.2rem 0; font-size: 0.85rem; }
.print-os-total { font-weight: 900; font-size: 1rem; border-top: 2px solid #111; padding-top: 0.5rem; margin-top: 0.3rem; }
.print-os-senha { background: #ff6b00; color: #fff; text-align: center; padding: 0.8rem; border-radius: 6px; margin-bottom: 1rem; }
.print-os-senha p { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.print-os-senha strong { font-size: 1.6rem; font-weight: 900; letter-spacing: 0.15em; display: block; }
.print-os-assinatura { border-top: 1px dashed #999; margin-top: 2rem; padding-top: 0.5rem; text-align: center; font-size: 0.75rem; color: #666; }

@media print {
  body > *:not(#printRoot) { display: none !important; }
  #printRoot { display: block !important; }
}

/* ============================================================
   SESSION 3 — STORAGE GAUGE
   ============================================================ */
.storage-gauge-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}
.storage-gauge-label { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 0.6rem; }
.storage-gauge-label span:first-child { color: var(--text-muted); font-weight: 600; }
.storage-gauge-label strong { color: var(--text); }
.storage-gauge-track { background: #111; border-radius: 99px; height: 8px; overflow: hidden; margin-bottom: 0.5rem; }
.storage-gauge-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), #ff9500); transition: width 0.6s ease; }
.storage-gauge-fill.warn { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.storage-gauge-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   SESSION 3 — ADMINS PANEL
   ============================================================ */
.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.admin-user-row:last-child { border-bottom: none; }
.admin-user-info { display: flex; flex-direction: column; gap: 0.1rem; }
.admin-user-name { font-weight: 700; font-size: 0.95rem; }
.admin-user-date { font-size: 0.75rem; color: var(--text-muted); }
.admin-you-badge {
  font-size: 0.7rem; font-weight: 700;
  background: var(--orange-glow);
  border: 1px solid rgba(255,107,0,0.2);
  color: var(--orange);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* ============================================================
   SIDEBAR SUBMENU — Personalizar Site colapsável
   ============================================================ */
.sidebar-parent {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-parent-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.02em;
  width: 100%;
}
.sidebar-parent-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-parent-btn .sb-icon { font-size: 1rem; }
.sidebar-parent-btn .sb-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s;
  margin-left: auto;
  opacity: 0.5;
}
.sidebar-parent-btn.open .sb-arrow { transform: rotate(90deg); }
.sidebar-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.sidebar-submenu.open { max-height: 200px; }
.sidebar-sublink {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  padding: 0.5rem 1.2rem 0.5rem 2.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  width: 100%;
}
.sidebar-sublink:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-sublink.active { color: var(--orange); background: var(--orange-glow); font-weight: 700; }

/* ============================================================
   MODAL VIEW VEICULO — visualização completa somente leitura
   ============================================================ */
.view-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.view-field:last-child { border-bottom: none; }
.view-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.view-field-value { font-size: 0.9rem; color: var(--text); }
.view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.view-fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}
.view-fin-total {
  font-weight: 900;
  font-size: 1rem;
  color: #4ade80;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.3rem;
}

/* ============================================================
   STATUS CONFIG PANEL
   ============================================================ */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.status-edit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.status-edit-row:last-child { border-bottom: none; }
.status-color-input {
  width: 36px;
  height: 36px;
  padding: 2px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
