:root {
  --bg: #f4f2ec;
  --surface: #fcfaf5;
  --surface-alt: #f0ece2;
  --surface-strong: #e7dfd0;
  --surface-glass: rgba(252, 250, 245, 0.82);
  --border: #d8cfbe;
  --border-strong: #b9ab8f;

  --text-main: #1f2933;
  --text-muted: #6b7280;
  --text-soft: #8a8376;

  --primary: #2f8a53;
  --primary-strong: #256d42;
  --accent: #256d42;
  --warning: #d97706;
  --danger: #c2410c;

  --font-d: 'Sora', sans-serif;
  --font-b: 'Work Sans', sans-serif;
  --font-data: 'IBM Plex Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 41, 51, 0.12);
}

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

body {
  background:
    radial-gradient(circle at top left, rgba(47, 138, 83, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.08), transparent 22%),
    linear-gradient(180deg, #f8f4eb 0%, var(--bg) 28%, #f2eee4 100%);
  color: var(--text-main);
  font-family: var(--font-b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Ambient Effects - Light Mode */
/* Removed AI ambient glowing orbs for a strictly corporate look */

/* Ticker */
.ticker { position: fixed; top: 0; width: 100%; height: 36px; background: linear-gradient(90deg, #2b7a49 0%, #2f8a53 52%, #32795a 100%); display: flex; align-items: center; z-index: 200; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #fff; padding: 0 24px; }
.ticker-track i { color: var(--accent); }
.sep { width: 1px; height: 14px; background: rgba(255,255,255,0.2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Navbar */
.navbar { position: fixed; top: 36px; width: 100%; background: rgba(252, 250, 245, 0.9); border-bottom: 1px solid rgba(185, 171, 143, 0.5); z-index: 100; transition: all 0.3s; backdrop-filter: blur(18px); }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: #ffffff; border: 1px solid var(--border); color: var(--primary); padding: 10px 20px; border-radius: 8px; font-weight: 600; font-family: var(--font-b); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-nav:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* Hero */
.hero { padding: 180px 24px 100px; display: flex; justify-content: center; text-align: center; background: var(--bg); }
.hero-inner { max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid var(--border); color: var(--primary); padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.hero h1 { font-family: var(--font-d); font-size: 56px; font-weight: 800; color: var(--text-main); line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 24px; }
.grad { color: var(--primary); }
.hero-sub { font-size: 18px; color: var(--text-muted); line-height: 1.6; max-width: 700px; margin-bottom: 48px; }

/* Widget */
.widget { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; width: 100%; max-width: 840px; box-shadow: var(--shadow-md); }
.widget-tabs { display: flex; gap: 8px; margin-bottom: 16px; padding: 0 8px; }
.wt { background: transparent; border: none; font-size: 14px; font-weight: 600; color: var(--text-muted); padding: 10px 16px; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-family: var(--font-b); }
.wt.active { background: var(--bg); color: var(--primary); border: 1px solid var(--border); }
.widget-body { display: flex; gap: 12px; background: #ffffff; padding: 16px; border-radius: 8px; border: 1px solid var(--border); }
.field { flex: 1; display: flex; align-items: center; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 16px; transition: all 0.2s; position: relative; }
.field:focus-within { border-color: var(--primary); background: #ffffff; }
.field i { color: var(--text-muted); font-size: 16px; }
.field input { width: 100%; border: none; outline: none; background: transparent; padding: 16px 12px; font-size: 15px; font-family: var(--font-b); font-weight: 600; color: var(--text-main); }
.field input::placeholder { color: #94a3b8; font-weight: 400; }
.btn-go { background: var(--primary); color: #fff; border: none; padding: 0 32px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font-b); display: flex; align-items: center; gap: 10px; transition: all 0.2s; }
.btn-go:hover { background: #1a5ca6; }

.crlv-drop { width: 100%; border: 2px dashed #cbd5e1; border-radius: 8px; padding: 40px; text-align: center; background: #f8fafc; cursor: pointer; transition: all 0.2s; }
.crlv-drop:hover, .crlv-drop.dragover { border-color: var(--primary); background: #eff6ff; }
.crlv-drop i { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.crlv-drop span { display: block; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.crlv-drop small { color: var(--text-muted); font-size: 12px; }

.trust-bar { margin-top: 32px; display: flex; justify-content: center; gap: 24px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.trust-bar i { color: var(--accent); }

/* BUTTONS */
button { cursor: pointer; font-family: var(--font-b); transition: all 0.2s; border: none; outline: none; }

.btn-primary { background: var(--primary); color: #fff; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 24px rgba(47, 138, 83, 0.14); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(47, 138, 83, 0.18); }
.btn-primary:active { transform: translateY(0); }

.btn-outline { background: rgba(252, 250, 245, 0.9); color: var(--primary); border: 1px solid var(--border); padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-outline:hover { background: var(--surface-alt); border-color: var(--border-strong); }

.btn-sm-primary { padding: 8px 16px; font-size: 12px; border-radius: 6px; background: var(--primary); color: #fff; font-weight: 700; }
.btn-sm-primary:hover { background: var(--primary-strong); }

.btn-sm-outline { padding: 8px 16px; font-size: 12px; border-radius: 6px; background: #fff; color: var(--text-muted); border: 1px solid var(--border); font-weight: 600; }
.btn-sm-outline:hover { background: #f8fafc; color: var(--primary); border-color: var(--primary); }

.btn-text { background: transparent; color: var(--primary); font-size: 13px; font-weight: 700; padding: 8px; border-radius: 6px; }
.btn-text:hover { background: rgba(38, 70, 83, 0.08); }

/* VIDEOS SECTION */
.videos-section { padding: 100px 0; background: #fff; }
.videos-header { text-align: center; margin-bottom: 48px; }
.label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 12px; }
.videos-header h2, section h2 { font-family: var(--font-d); font-size: 40px; font-weight: 800; color: var(--text-main); margin-bottom: 16px; letter-spacing: -1px; }
.sec-sub { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1000px; margin: 0 auto; }
.video-card { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow-sm); }
.video-card:hover { box-shadow: var(--shadow-md); }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; background: #e2e8f0; overflow: hidden; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.video-thumb-logo { object-fit: contain; padding: 28px; background: linear-gradient(180deg, #f7f4ec 0%, #ebe4d7 100%); }
.video-overlay { position: absolute; inset: 0; background: rgba(15, 59, 115, 0.4); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: background 0.3s; z-index: 2; }
.video-overlay i { font-size: 48px; color: #fff; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); transition: transform 0.3s; }
.video-card:hover .video-overlay { background: rgba(15, 59, 115, 0.2); }
.video-card:hover .video-overlay i { transform: scale(1.1); }
.video-card:hover .video-thumb { transform: scale(1.05); }

.video-info { padding: 24px; }
.v-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; background: rgba(15,59,115,0.1); color: var(--primary); padding: 4px 12px; border-radius: 12px; margin-bottom: 12px; }
.tag-accent { background: rgba(47,138,83,0.10); color: #2f8a53; }
.video-info h3 { font-family: var(--font-d); font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.video-info p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* STATS VIZ */
.stats-section { padding: 80px 0; background: #f1f5f9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-viz-grid { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 24px; margin-top: 48px; }
.stat-viz-card { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-sm); }
.stat-viz-card h3 { font-family: var(--font-d); font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.pie-container { display: flex; align-items: center; gap: 24px; }
.pie-chart { width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--accent) 0% 25%, var(--primary) 25% 60%, #f59e0b 60% 85%, #ef4444 85% 100%); transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; box-shadow: inset 0 0 0 10px #fff; }
.pie-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.leg-item { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.leg-item .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.leg-item span:last-child { font-weight: 700; color: var(--text-main); }

.counters-column { background: transparent; border: none; box-shadow: none; padding: 0; justify-content: space-between; }
.mini-counter { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm); }
.mc-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mc-val { font-family: var(--font-d); font-size: 24px; font-weight: 800; color: var(--primary); }

/* LOADING & OVERLAYS */
#loadingOverlay { position: fixed; inset: 0; background: rgba(31, 41, 51, 0.42); z-index: 10000; display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(10px); }
#loadingOverlay.active { display: flex !important; }
.ac-loading-shell { width: min(680px, 100%); }
.ac-loading-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(252, 250, 245, 0.98), rgba(244, 242, 236, 0.96));
  border: 1px solid rgba(185, 171, 143, 0.38);
  box-shadow: 0 30px 80px rgba(31, 41, 51, 0.18);
}
.ac-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 138, 83, 0.12);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ac-loading-spinner-wrap { display: flex; justify-content: center; padding-top: 4px; }
.spinner-corporate { width: 64px; height: 64px; border: 4px solid rgba(185, 171, 143, 0.24); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.9s linear infinite; }
.ac-loading-panel h3 { font-family: var(--font-d); font-size: 28px; line-height: 1.1; color: var(--text-main); }
.ac-loading-panel p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.ac-loading-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-loading-context-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(252, 250, 245, 0.84);
  border: 1px solid rgba(185, 171, 143, 0.28);
}
.ac-loading-context-item span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.ac-loading-context-item strong { display: block; font-size: 16px; color: var(--text-main); }
.ac-loading-progress { display: flex; flex-direction: column; gap: 10px; }
.ac-loading-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; color: var(--text-muted); }
.ac-loading-progress-track { width: 100%; height: 12px; overflow: hidden; border-radius: 999px; background: rgba(185, 171, 143, 0.24); }
.ac-loading-progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f8a53, #256d42); transition: width 0.35s ease; box-shadow: 0 8px 18px rgba(47, 138, 83, 0.18); }
.ac-loading-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-loading-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(252, 250, 245, 0.84);
  border: 1px solid rgba(185, 171, 143, 0.28);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
}
.ac-loading-step i { color: var(--primary-strong); }
.ac-loading-extended { display: none; }
.ac-loading-extended.active { display: flex; }
.ac-loading-extended-hero {
  position: relative;
  height: 120px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(47, 138, 83, 0.10), rgba(252, 250, 245, 0.74));
  overflow: hidden;
}
.ac-loading-road { position: absolute; left: 28px; right: 28px; bottom: 26px; height: 12px; border-radius: 999px; background: repeating-linear-gradient(90deg, rgba(31, 41, 51, 0.18) 0 28px, transparent 28px 44px); }
.ac-loading-car { position: absolute; left: 18px; bottom: 34px; font-size: 42px; color: var(--primary-strong); animation: svDrive 2.4s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes svShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes svDrive { from { transform: translateX(0); } to { transform: translateX(calc(100% - 120px)); } }

/* NAVBAR & USER */
.nav-user { display: flex; align-items: center; gap: 12px; }
.user-info { text-align: right; }
.user-info span { display: block; font-size: 14px; font-weight: 700; color: var(--text-main); }
.user-info small { font-size: 11px; color: var(--text-muted); }
#navUserPhoto { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.btn-logout { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; font-size: 18px; }
.btn-logout:hover { color: var(--danger); }

/* DASHBOARD COMPONENTS */
.ac-empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.ac-empty-state p { font-size: 14px; margin-bottom: 16px; }

.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-item i { margin-top: 3px; font-size: 16px; }
.activity-item strong { display: block; font-size: 14px; color: var(--text-main); }
.activity-item span { font-size: 12px; color: var(--text-muted); }

.badge-status { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-status.success { background: #daf3ec; color: #10695f; }
.badge-status.danger { background: #fde6d8; color: #9a3412; }
.badge-status.warning { background: #f8edc9; color: #9a6700; }
.badge-status.info { background: #dcebf0; color: #184e63; }

/* TABLES */
.ac-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.ac-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--border); font-size: 13px; color: var(--text-muted); text-transform: uppercase; }
.ac-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-main); }
.ac-thumb-config {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(252, 250, 245, 0.72);
  border: 1px solid rgba(185, 171, 143, 0.32);
}
.ac-thumb-config small { max-width: 360px; color: var(--text-muted); font-size: 12px; line-height: 1.4; text-align: right; }
.ac-thumb-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--text-main); }
.ac-thumb-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.vehicle-media { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vehicle-media img { width: 112%; height: 112%; object-fit: contain; transform: scale(1.06); transition: opacity 0.35s ease; }
.vehicle-media .vehicle-wiki-placeholder { position: absolute; }
.vehicle-media-fallback { color: var(--text-soft); font-size: 22px; }
.vehicle-media .fa-motorcycle { font-size: 20px; color: var(--primary); opacity: 0.7; }
.ac-history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ac-history-header strong { display: block; margin-bottom: 4px; font-size: 15px; }
.ac-history-header p { font-size: 13px; color: var(--text-muted); }
.ac-history-table td { vertical-align: middle; }
.ac-history-vehicle { display: flex; align-items: center; gap: 10px; }
.ac-history-thumb { width: 72px; height: 52px; border-radius: 12px; background: rgba(252, 250, 245, 0.92); border: 1px solid rgba(185, 171, 143, 0.28); overflow: hidden; flex-shrink: 0; }
.ac-history-thumb .vehicle-media { font-size: 16px; }
.ac-history-main { flex: 1; min-width: 0; }
.ac-history-main strong { display: block; font-size: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-history-main span { display: block; font-size: 12px; color: var(--text-muted); }
.ac-history-count { flex-shrink: 0; align-self: center; }
.ac-history-result { display: flex; flex-direction: column; gap: 4px; }
.ac-history-result strong { font-size: 13px; color: var(--text-main); font-weight: 600; }
.ac-history-result span { font-size: 12px; color: var(--text-muted); }
.is-clickable-vehicle { cursor: pointer; }
.is-clickable-vehicle:hover { outline: 1px solid rgba(47, 138, 83, 0.22); }

/* MONITORING & RESOURCES */
.monit-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pulse-active { font-size: 11px; font-weight: 700; color: #10b981; display: flex; align-items: center; gap: 6px; }
.pulse-active::before { content: ""; width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

.resource-card { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; box-shadow: var(--shadow-sm); }
.rc-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.rc-id { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.rc-progress { height: 8px; background: #f1f5f9; border-radius: 4px; margin: 16px 0 24px; overflow: hidden; }
.rc-bar { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.5s; }
.resource-card-compact { padding: 16px; box-shadow: none; }
.resource-card-compact + .resource-card-compact { margin-top: 10px; }

.resource-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.resource-group + .resource-group { margin-top: 12px; }
.resource-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(249, 250, 251, 0.9);
  border-bottom: 1px solid transparent;
}
.resource-group[open] summary { border-bottom-color: var(--border); }
.resource-group summary::-webkit-details-marker { display: none; }
.resource-group-head { min-width: 0; }
.resource-group-head strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resource-group-head span { display: block; font-size: 12px; color: var(--text-muted); }
.resource-group-body { padding: 14px; background: #fff; }

.monit-source-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.74);
  padding: 12px;
  margin-bottom: 14px;
}
.monit-source-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.monit-source-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.monit-source-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.monit-source-option input { display: none; }
.monit-source-option.active {
  color: #2f8a53;
  border-color: rgba(47, 138, 83, 0.26);
  background: rgba(47, 138, 83, 0.08);
}

/* ORDERS & PLANS */
.order-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.order-info strong { display: block; font-size: 15px; }
.order-info span { font-size: 12px; color: var(--text-muted); }
.order-price { font-weight: 700; color: var(--text-main); }

.plan-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.plan-info strong { display: block; font-size: 18px; color: var(--primary); }
.plan-price { font-size: 20px; font-weight: 800; color: var(--text-main); }
.plan-features { display: flex; flex-direction: column; gap: 12px; }
.feat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.feat i { color: #10b981; }

.card-display { background: #f8fafc; padding: 20px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.card-display i { font-size: 24px; color: #1a1f71; }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; backdrop-filter: blur(2px); }
.modal-card { background: #ffffff; border-radius: 8px; width: 100%; max-width: 600px; max-height: 90vh; box-shadow: var(--shadow-lg); overflow: hidden; animation: modalUp 0.3s ease-out; display: flex; flex-direction: column; }
@keyframes modalUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #f8fafc; flex-shrink: 0; }
.vh-info h2 { font-family: var(--font-d); font-size: 20px; font-weight: 800; color: var(--text-main); }
.vh-info span { font-size: 14px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.btn-close { background: none; border: none; font-size: 28px; color: var(--text-muted); cursor: pointer; }

.modal-body { padding: 32px; overflow-y: auto; flex: 1; }
.vh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.v-stat { background: #f1f5f9; padding: 16px; border-radius: 8px; text-align: center; border: 1px solid var(--border); }
.v-stat span { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.v-stat strong { font-family: var(--font-d); font-size: 18px; color: var(--text-main); }

.vh-section h4 { font-family: var(--font-d); font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.modal-footer { padding: 20px 24px; background: #f8fafc; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; flex-shrink: 0; }

/* =============================================
   SELECTION BAR
   ============================================= */
.fines-selection-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  flex-wrap: wrap;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.fines-selection-bar.stuck {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  border-color: rgba(47,138,83,0.22);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sel-bar-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.fine-select-all-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
}
.fine-select-all-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.fines-selected-count { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.sel-bar-totals { display: flex; align-items: center; gap: 16px; }
.sel-bar-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.sel-bar-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.sel-bar-value { font-size: 13px; font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; }
.sel-bar-stat-recursos {
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47,138,83,0.07), rgba(37,109,66,0.09));
  border: 1px solid rgba(47,138,83,0.18);
}
.sel-bar-val-recursos { font-size: 15px !important; font-weight: 800 !important; color: #2f8a53 !important; }
.sel-bar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-gerar-cobranca {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-gerar-cobranca:hover:not(:disabled) { background: #e2e8f0; border-color: #cbd5e1; }
.btn-gerar-cobranca:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-seguir-pagamento {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary, #2f8a53), #256d42);
  color: #fff;
  font-size: 12px; font-weight: 700;
  border: none; border-radius: 8px; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(47,138,83,0.18);
}
.btn-seguir-pagamento:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-seguir-pagamento:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; }

/* =============================================
   FINE CARDS — REDESIGN
   ============================================= */
.fine-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  gap: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.fine-item:hover { border-color: var(--primary, #22c55e); box-shadow: 0 4px 16px rgba(0,0,0,0.09); transform: translateY(-1px); }

/* Left status accent strip */
.fine-item::before {
  content: '';
  display: block;
  width: 4px;
  flex-shrink: 0;
  border-radius: 14px 0 0 14px;
  background: #e2e8f0;
}
.fine-item.actionable::before { background: #10b981; }
.fine-item.suspended::before { background: #0ea5e9; }
.fine-item.expired::before { background: #cbd5e1; }
.fine-item.inapta::before { background: #f59e0b; }

.fi-selection {
  display: flex;
  align-items: flex-start;
  padding: 20px 0 20px 16px;
  flex-shrink: 0;
}
.fi-checkbox {
  width: 18px; height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #22c55e);
  margin-top: 2px;
}

/* Disabled checkbox state */
.fine-checkbox-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.fine-item.suspended .fi-selection { opacity: 0.45; }

.fi-content-wrap { flex: 1; display: flex; flex-direction: column; gap: 0; padding: 16px 20px 16px 12px; }

.fi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}
.fi-badge-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fi-date { font-size: 11px; font-weight: 600; color: #94a3b8; letter-spacing: 0.2px; flex-shrink: 0; }

.fi-main-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.fi-info-block { flex: 1; min-width: 0; }
.fi-info-block strong { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.55; display: block; margin-bottom: 5px; }
.fi-info-block p { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 5px; margin: 0; }
.fi-info-block p i { color: #94a3b8; font-size: 11px; }

.fi-price-block {
  text-align: right;
  min-width: 130px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.fi-price-new { font-size: 20px; font-weight: 900; color: #0f172a; font-family: var(--font-d, inherit); display: block; line-height: 1.2; }
.fi-price-old { font-size: 11px; color: #94a3b8; text-decoration: line-through; display: block; margin-bottom: 2px; }
.fi-recurso-val {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  font-size: 11px; font-weight: 600; color: #64748b;
  margin-top: 5px;
}
.fi-recurso-val i { font-size: 10px; }

.fi-technical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  margin-bottom: 12px;
}
.fi-param {
  padding: 10px 14px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.fi-param:nth-child(even) { border-right: none; }
.fi-param:nth-last-child(-n+2) { border-bottom: none; }
.fi-param span { display: block; font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 3px; font-weight: 700; }
.fi-param strong { font-size: 12px; color: #0f172a; font-weight: 700; }

.fi-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
}

/* Status card variants */
.fine-item.actionable { background: #fff; border-color: rgba(16,185,129,0.25); }
.fine-item.actionable:hover { border-color: #10b981; }
.fine-item.actionable .fi-price-block { background: rgba(240,253,244,0.6); border-color: rgba(16,185,129,0.15); }
.fine-item.actionable .fi-price-new { color: #065f46; }

.fine-item.suspended {
  background: #fafcff;
  border-color: rgba(14, 165, 233, 0.25);
  cursor: default;
}
.fine-item.suspended:hover { border-color: rgba(14, 165, 233, 0.4); box-shadow: 0 2px 8px rgba(14,165,233,0.08); transform: none; }
.fine-item.suspended .fi-header { border-bottom-color: rgba(14,165,233,0.12); }
.fine-item.suspended .fi-technical-grid { background: rgba(240,249,255,0.6); border-color: rgba(14,165,233,0.12); }
.fine-item.suspended .fi-technical-grid .fi-param { border-color: rgba(14,165,233,0.1); }
.fine-item.suspended .fi-price-block { background: rgba(240,249,255,0.7); border-color: rgba(14,165,233,0.15); }
.fine-item.suspended .fi-price-new { color: #0369a1; }
.fine-item.suspended .fi-footer .btn-sm-outline {
  border-color: rgba(14, 165, 233, 0.4); color: #0369a1; font-weight: 700;
}
.fine-item.suspended .fi-footer .btn-sm-outline:hover { border-color: #0284c7; color: #075985; background: #f0f9ff; }

.fine-item.expired { opacity: 0.72; background: #fafafa; border-color: #e2e8f0; }
.fine-item.expired:hover { transform: none; box-shadow: none; border-color: #cbd5e1; }

.fine-item.inapta {
  background: #fffdf7;
  border-color: rgba(245, 158, 11, 0.24);
  cursor: default;
}
.fine-item.inapta:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(245, 158, 11, 0.36);
}
.fine-item.inapta .fi-header { border-bottom-color: rgba(245, 158, 11, 0.14); }
.fine-item.inapta .fi-technical-grid {
  background: rgba(255, 251, 235, 0.75);
  border-color: rgba(245, 158, 11, 0.14);
}
.fine-item.inapta .fi-technical-grid .fi-param { border-color: rgba(245, 158, 11, 0.12); }
.fine-item.inapta .fi-price-block {
  background: rgba(255, 251, 235, 0.9);
  border-color: rgba(245, 158, 11, 0.16);
}
.fine-item.inapta .fi-price-new { color: #92400e; }

/* Gravity badges */
.badge-gravidade { padding: 3px 9px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.grav-leve { background: #f0fdf4; color: #166534; }
.grav-media { background: #fffbeb; color: #92400e; }
.grav-grave { background: #fff7ed; color: #9a3412; }
.grav-gravissima { background: #fef2f2; color: #991b1b; }

/* Recurso em andamento (multa já recorrida) */
.recurso-feedback {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 10px;
}

.recurso-feedback-header {
  font-size: 11px;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.recurso-feedback-header i { font-size: 12px; }

.recurso-feedback-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 4px;
}

.recurso-feedback-label {
  color: #475569;
  font-weight: 700;
  min-width: 72px;
}

.recurso-proto-num {
  font-family: 'IBM Plex Mono', 'Fira Code', monospace;
  font-weight: 700;
  color: #0f172a;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.recurso-proto-pendente {
  font-size: 12px;
  font-style: italic;
  color: #64748b;
}

.recurso-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.recurso-status-protocolado {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
}

.recurso-status-aguardando-geracao,
.recurso-status-gerando,
.recurso-status-aguardando-protocolo,
.recurso-status-protocolando {
  background: rgba(99, 102, 241, 0.14);
  color: #4338ca;
}

.recurso-status-gerado,
.recurso-status-aguardando-impressao,
.recurso-status-impresso,
.recurso-status-fisico {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.recurso-status-deferido {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.recurso-status-indeferido,
.recurso-status-erro {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}
.ac-back-btn { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-main); cursor: pointer; transition: background 0.15s; }
.ac-back-btn:hover { background: var(--surface-alt, #f1f5f9); }
.ac-support-badge { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; margin-left: 6px; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }

.ac-preco-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ac-preco-table th, .ac-preco-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12px; text-align: left; }
.ac-preco-table th { background: #f8fafc; color: var(--text-muted); font-weight: 800; text-transform: uppercase; }
.ac-preco-cell-parceiro { color: #166534; font-weight: 800; }
.ac-preco-cell-simples { color: var(--text-main); font-weight: 700; }
.ac-preco-cell-economia { color: #0f766e; font-weight: 800; margin-left: 6px; }
.ac-toggle-chevron { transition: transform 0.2s; }
.ac-toggle-chevron.open { transform: rotate(180deg); }

/* =============================================
   CARD FOOTER BUTTONS
   ============================================= */
.btn-sm-detail {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px; font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
  white-space: nowrap;
}
.btn-sm-detail:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
.btn-sm-detail i { font-size: 11px; }

/* =============================================
   FINE DETAIL DRAWER
   ============================================= */
.fd-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.fd-overlay.fd-open {
  opacity: 1;
  pointer-events: auto;
}
.fd-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 40px rgba(0,0,0,0.14);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0, 0.2, 1);
  overflow: hidden;
}
.fd-drawer.fd-drawer-open { transform: translateX(0); }
.fd-drawer-inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

/* Stripe */
.fd-stripe { height: 4px; flex-shrink: 0; }

/* Header */
.fd-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.fd-header-main { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.fd-header-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fd-close {
  width: 32px; height: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #64748b;
  flex-shrink: 0; margin-left: 12px;
  transition: background 0.14s;
}
.fd-close:hover { background: #f1f5f9; color: #0f172a; }
.fd-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 8px;
}
.fd-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.fd-meta-row i { color: #94a3b8; font-size: 11px; }
.fd-meta-sep { color: #cbd5e1; }

/* Status pills */
.fd-status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.fd-status-recorrivel { background: #edf6ef; color: #2f8a53; border: 1px solid rgba(47,138,83,0.18); }
.fd-status-recurso { background: #eff6ff; color: #2563eb; border: 1px solid rgba(37,99,235,0.2); }
.fd-status-suspensa { background: #f0f9ff; color: #0369a1; border: 1px solid rgba(14,165,233,0.2); }
.fd-status-expirada { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.fd-status-inapta { background: #fffbeb; color: #b45309; border: 1px solid rgba(245,158,11,0.3); }

/* Body scroll area */
.fd-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Finance hero */
.fd-finance-hero {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.fd-finance-cell {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fd-finance-cell-recurso { background: rgba(240,253,244,0.5); }
.fd-finance-cell-eco { background: rgba(240,253,244,0.8); }
.fd-finance-divider { width: 1px; background: #e2e8f0; }
.fd-finance-label { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.fd-finance-value { font-size: 17px; font-weight: 900; color: #0f172a; font-variant-numeric: tabular-nums; }
.fd-finance-value-recurso { color: #0369a1; }
.fd-finance-value-eco { color: #16a34a; }

/* Sections */
.fd-section {
  padding: 18px 24px;
  border-bottom: 1px solid #f8fafc;
}
.fd-section:last-of-type { border-bottom: none; }
.fd-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.fd-section-title i { color: #cbd5e1; }

/* Mini grid */
.fd-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}
.fd-mini-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.fd-mini-item {
  padding: 10px 14px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fd-mini-item:nth-child(even) { border-right: none; }
.fd-mini-grid-3 .fd-mini-item:nth-child(3n) { border-right: none; }
.fd-mini-grid-3 .fd-mini-item:nth-child(even) { border-right: 1px solid #f1f5f9; }
.fd-mini-item-full { grid-column: 1 / -1; border-right: none !important; }
.fd-mini-item span { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; }
.fd-mini-item strong { font-size: 13px; color: #0f172a; font-weight: 700; }

/* Mono values */
.fd-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; letter-spacing: 0.3px; }

/* CTB badge */
.fd-ctb-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Recurso card */
.fd-section-recurso { background: #fafcff; }
.fd-recurso-card {
  background: rgba(14,165,233,0.06);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: 10px;
  padding: 14px;
}
.fd-recurso-status-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fd-recurso-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.18);
  animation: fd-pulse 2s infinite;
}
@keyframes fd-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(14,165,233,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(14,165,233,0.08); }
}

/* Alert banners */
.fd-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
}
.fd-alert i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.fd-alert strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.fd-alert p { font-size: 12px; margin: 0; line-height: 1.5; color: inherit; opacity: 0.8; }
.fd-alert-recorrivel { background: #edf6ef; border: 1px solid rgba(47,138,83,0.18); color: #214d34; }
.fd-alert-recorrivel i { color: #2f8a53; }
.fd-alert-suspended { background: #f0f9ff; border: 1px solid rgba(14,165,233,0.2); color: #0c4a6e; }
.fd-alert-suspended i { color: #0284c7; }
.fd-alert-expired { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; }
.fd-alert-expired i { color: #94a3b8; }
.fd-alert-inapta { background: #fffbeb; border: 1px solid rgba(245,158,11,0.3); color: #78350f; }
.fd-alert-inapta i { color: #d97706; }

/* Mandatória */
.fd-mandatoria-banner {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  padding: 14px;
}

/* Footer CTA */
.fd-footer {
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  position: sticky;
  bottom: 0;
}
.fd-cta-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.fd-cta-primary {
  background: linear-gradient(135deg, #2f8a53, #256d42);
  color: #fff;
  box-shadow: 0 2px 8px rgba(47,138,83,0.18);
}
.fd-cta-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.fd-cta-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0 !important;
}
.fd-cta-secondary:hover { background: #e2e8f0; color: #0f172a; }

@media (max-width: 540px) {
  .fd-drawer { width: 100vw; }
  .fd-mini-grid { grid-template-columns: 1fr; }
  .fd-mini-item:nth-child(even) { border-right: none; }
  .fd-finance-hero { flex-direction: column; }
  .fd-finance-divider { width: auto; height: 1px; }
}

.ac-chart-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; min-height: 260px; position: relative; overflow: hidden; }
.ac-chart-card h4 { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.ac-chart-card canvas { width: 100% !important; height: 210px !important; max-height: 210px; display: block; }

.sup-chat-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.46); z-index: 12000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sup-chat-card { width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.sup-chat-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.sup-chat-header p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sup-chat-messages { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.sup-msg { max-width: 82%; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.sup-msg.cliente { margin-left: auto; background: #e4f1e7; border: 1px solid #bfd8c7; }
.sup-msg.admin { margin-right: auto; background: #eff6ff; border: 1px solid #bfdbfe; }

/* ==========================================
   WALLY HELPDESK - Floating WhatsApp
   ========================================== */
.sv-helpdesk-fab {
  position: fixed;
  right: max(18px, calc(env(safe-area-inset-right) + 18px));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px));
  z-index: 9500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(15,23,42,0.50);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(15,23,42,0.22), 0 8px 20px rgba(47,138,83,0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sv-helpdesk-fab.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sv-helpdesk-fab:hover,
.sv-helpdesk-fab:focus-visible {
  color: #fff;
  background: rgba(9,32,24,0.58);
  box-shadow: 0 22px 52px rgba(15,23,42,0.28), 0 10px 26px rgba(47,138,83,0.18);
  transform: translateY(-2px) scale(1.01);
}

.sv-helpdesk-fab:focus-visible {
  outline: 3px solid rgba(47,138,83,0.24);
  outline-offset: 4px;
}

.sv-helpdesk-fab__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.sv-helpdesk-fab__eyebrow {
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sv-helpdesk-fab__label {
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.sv-helpdesk-fab__button {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f8a53, #256d42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.sv-helpdesk-fab__button::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(34,197,94,0.34);
  border-radius: inherit;
  animation: sv-helpdesk-ring 2.4s ease-out infinite;
}

.sv-helpdesk-fab__button::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #86efac;
}

.sv-helpdesk-fab__button i {
  position: relative;
  z-index: 1;
  font-size: 25px;
}

@keyframes sv-helpdesk-ring {
  0% {
    opacity: 0.6;
    transform: scale(0.86);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@media (max-width: 720px) {
  .sv-helpdesk-fab {
    right: max(12px, calc(env(safe-area-inset-right) + 12px));
    left: max(12px, calc(env(safe-area-inset-left) + 12px));
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 12px));
    justify-content: space-between;
    max-width: none;
  }
  .sv-helpdesk-fab__label {
    font-size: 13px;
    white-space: normal;
  }
}
.sup-msg-time { margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.sup-chat-input-row { border-top: 1px solid var(--border); padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sup-chat-input-row textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: var(--font-b); resize: vertical; }

.sup-reply-toast { position: fixed; right: 20px; bottom: 20px; z-index: 13000; display: flex; align-items: center; gap: 10px; min-width: 320px; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; }
.sup-reply-toast-icon { width: 34px; height: 34px; border-radius: 999px; background: rgba(47, 138, 83, 0.12); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.sup-reply-toast-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sup-reply-toast-body strong { font-size: 12px; }
.sup-reply-toast-body span { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-reply-toast-action, .sup-reply-toast-close { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--text-main); }
.sup-reply-toast-action:hover, .sup-reply-toast-close:hover { border-color: var(--primary); color: var(--primary); }

/* JOURNEY */
.journey-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.journey-badge { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.journey-track { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.j-step { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 2; }
.j-icon { width: 44px; height: 44px; background: #fff; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-muted); transition: all 0.3s; }
.j-step span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.j-step small { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.j-line { flex: 1; height: 3px; background: var(--border); margin: 0 -10px 32px; position: relative; z-index: 1; }

.j-step.completed .j-icon { border-color: #10b981; color: #10b981; }
.j-step.completed span { color: #10b981; }
.j-step.completed small { color: #10b981; }
.j-line.completed { background: #10b981; }
.j-step.active .j-icon { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.j-step.active span { color: var(--primary); font-weight: 700; }
.j-step.active small { color: var(--primary); font-weight: 500; }

.search-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.st-btn { padding: 8px 16px; border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 6px; }
.st-btn.active { background: #f1f5f9; color: var(--primary); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control.error { border-color: var(--danger, #ef4444); box-shadow: 0 0 0 3px rgba(239,68,68,0.08); }

.ac-feedback { margin-top: 20px; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.ac-feedback.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ac-feedback.success { background: #edf6ef; color: #2f8a53; border: 1px solid #bfd8c7; }
.ac-feedback.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ac-feedback.warning { background: #fff7ed; color: #b45309; border: 1px solid #fdba74; }

.ac-consulta-result { margin-top: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.ac-consulta-result > #vehicleInfo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 22px;
  align-items: start;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(185, 171, 143, 0.34);
  background: linear-gradient(180deg, rgba(252, 250, 245, 0.98), rgba(240, 236, 226, 0.86));
  box-shadow: var(--shadow-sm);
}
.vehicle-plate { display: flex; align-items: center; }
.plate-badge {
  min-width: 128px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1f2933, #111827);
  color: #f8fafc;
  font-family: var(--font-data);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  box-shadow: 0 14px 28px rgba(31, 41, 51, 0.18);
}
.ac-consulta-result > #vehicleInfo .vehicle-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.ac-consulta-result > #vehicleInfo .vehicle-detail {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(252, 250, 245, 0.84);
  border: 1px solid rgba(185, 171, 143, 0.28);
}
.ac-consulta-result > #vehicleInfo .vehicle-detail-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.ac-consulta-result > #vehicleInfo .vehicle-detail-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.ac-consulta-result > #vehicleInfo .vehicle-situacao.ok { color: #15803d; }
.ac-consulta-result > #vehicleInfo .vehicle-situacao.alerta { color: #b45309; }
.ac-consulta-result #summaryCards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .ac-consulta-result #summaryCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ac-consulta-result #summaryCards { grid-template-columns: 1fr; }
}
.vehicle-consulta-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.consulta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 138, 83, 0.12);
  color: #256d42;
  font-size: 12px;
  font-weight: 800;
}
.consulta-badge.cached {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.btn-reconsultar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(185, 171, 143, 0.44);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}
.btn-reconsultar:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.sv-hidden { display: none !important; }
.sv-skeleton-text {
  display: inline-block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(185, 171, 143, 0.22), rgba(185, 171, 143, 0.44), rgba(185, 171, 143, 0.22));
  background-size: 200% 100%;
  animation: svShimmer 1.4s linear infinite;
}
.sv-vehicle-loading-hint {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
  font-size: 13px;
  font-weight: 700;
}
.sv-vehicle-retry-banner { grid-column: 1 / -1; }
.summary-card {
  --sc-accent: #6b7280;
  --sc-accent-strong: #374151;
  --sc-accent-soft: rgba(107, 114, 128, 0.10);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 96px;
  padding: 14px 16px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.summary-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sc-accent);
  opacity: 0.85;
}
.summary-card::after { content: none; }
.summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.10);
}
.summary-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sc-accent-soft);
  color: var(--sc-accent-strong);
  font-size: 14px;
}
.summary-card-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  color: #111827;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.summary-card-label {
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  line-height: 1.3;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* — Identity per card — */
.summary-card.total {
  --sc-accent: #475569;
  --sc-accent-strong: #1e293b;
  --sc-accent-soft: rgba(71, 85, 105, 0.10);
}
.summary-card.recorrivel {
  --sc-accent: #059669;
  --sc-accent-strong: #047857;
  --sc-accent-soft: rgba(5, 150, 105, 0.12);
}
.summary-card.não-recorrivel {
  --sc-accent: #94a3b8;
  --sc-accent-strong: #475569;
  --sc-accent-soft: rgba(148, 163, 184, 0.16);
}
.summary-card.ja-recorrida-card {
  --sc-accent: #6366f1;
  --sc-accent-strong: #4338ca;
  --sc-accent-soft: rgba(99, 102, 241, 0.12);
}
.summary-card.valor-real {
  --sc-accent: #b45309;
  --sc-accent-strong: #92400e;
  --sc-accent-soft: rgba(180, 83, 9, 0.10);
}
.summary-card.valor-recursos {
  --sc-accent: #e11d48;
  --sc-accent-strong: #be123c;
  --sc-accent-soft: rgba(225, 29, 72, 0.10);
}
.summary-card.economia-card {
  --sc-accent: #0d9488;
  --sc-accent-strong: #0f766e;
  --sc-accent-soft: rgba(13, 148, 136, 0.12);
}
.summary-card.mandatoria-card {
  --sc-accent: #dc2626;
  --sc-accent-strong: #b91c1c;
  --sc-accent-soft: rgba(220, 38, 38, 0.10);
}
.summary-card.alertas-card {
  --sc-accent: #ea580c;
  --sc-accent-strong: #c2410c;
  --sc-accent-soft: rgba(234, 88, 12, 0.10);
}

/* Estado "aguardando seleção" — usado em Valor dos Recursos / Economia */
.summary-card.awaits-selection .summary-card-value {
  color: #cbd5e1;
}
.summary-card-hint {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
}
.summary-card-hint i { font-size: 9.5px; opacity: 0.8; }
.summary-card:not(.awaits-selection) .summary-card-hint { display: none; }
.summary-tipo-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.summary-tipo-badge.simples { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.summary-tipo-badge.parceiro { background: rgba(168, 85, 247, 0.14); color: #7c3aed; }
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}
.filter-tab {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(252, 250, 245, 0.92);
  border: 1px solid rgba(185, 171, 143, 0.35);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.filter-tab.active,
.filter-tab:hover {
  background: rgba(47, 138, 83, 0.12);
  border-color: rgba(47, 138, 83, 0.22);
  color: var(--primary-strong);
}
.result-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.result-kicker { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }
.result-topline strong { font-size: 18px; color: var(--text-main); }
.result-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.result-summary div { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.result-summary span { display: block; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.result-summary strong { font-size: 15px; color: var(--text-main); }

.nav-toggle { width: 40px; height: 40px; border-radius: 8px; background: #f8fafc; color: var(--primary); border: 1px solid var(--border); align-items: center; justify-content: center; }
.sidebar-backdrop { display: none; position: fixed; inset: 72px 0 0; background: rgba(15,23,42,0.28); z-index: 90; }
.sidebar-backdrop.open { display: block; }

/* FAQ */
.faq-section { padding: 100px 0; background: #ffffff; text-align: center; border-top: 1px solid var(--border); }
.faq-grid { max-width: 800px; margin: 48px auto 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all 0.2s; }
.faq-item summary { padding: 20px 24px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; color: var(--text-main); }
.faq-item summary i { font-size: 12px; color: var(--text-muted); transition: transform 0.3s; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.faq-item:hover { border-color: #cbd5e1; }

/* Steps */
.steps-section { padding: 100px 0; text-align: center; background: #f1f5f9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step-card { background: #ffffff; padding: 40px 32px; border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-align: left; }
.step-icon { width: 48px; height: 48px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); margin-bottom: 24px; }
.si-blue { color: var(--primary); }
.si-green { color: var(--primary); }
.step-card h3 { font-family: var(--font-d); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Info */
.info-section { padding: 100px 0; background: #ffffff; text-align: center; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 48px auto 0; text-align: left; }
.info-card { padding: 32px; border: 1px solid var(--border); border-radius: 8px; background: #ffffff; box-shadow: var(--shadow-sm); display: flex; gap: 20px; }
.ic-icon { width: 48px; height: 48px; background: #f8fafc; border: 1px solid var(--border); color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ic-amber { color: var(--primary); }
.info-card h3 { font-family: var(--font-d); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* CTA */
.cta { padding: 80px 0; background: #f8fafc; border-top: 1px solid var(--border); }
.cta-inner { background: var(--primary); border-radius: 8px; padding: 56px 48px; display: flex; justify-content: space-between; align-items: center; }
.cta-inner h2 { color: #fff; font-size: 28px; margin-bottom: 12px; font-weight: 700; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 16px; }
.cta-inner .btn-go { background: #ffffff; color: var(--primary); }
.cta-inner .btn-go:hover { background: #f1f5f9; color: var(--primary); }

/* Footer */
.footer { background: #fff; padding: 60px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-d); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text-main); }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.footer-bottom p { margin: 0; }

.soma-signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.soma-signature:hover {
  color: var(--text-main);
}

.soma-signature img {
  height: 22px;
  width: auto;
  display: block;
}

.soma-signature strong {
  color: var(--text-main);
  font-weight: 700;
}

/* Auth & Loading */
.auth-overlay, .loading-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 24px; }
.auth-card { background: #fff; border-radius: 8px; width: 100%; max-width: 440px; padding: 40px; position: relative; box-shadow: var(--shadow-md); text-align: center; border: 1px solid var(--border); }
.auth-close-btn { position: absolute; top: 20px; right: 24px; background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
.auth-logo { margin-bottom: 24px; }
.auth-title { font-family: var(--font-d); font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
.auth-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }
.auth-input-group { position: relative; margin-bottom: 16px; }
.auth-input-group i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.auth-input-group input { width: 100%; padding: 14px 14px 14px 44px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: var(--font-b); outline: none; }
.auth-input-group input:focus { border-color: var(--primary); }
.auth-email-btn { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; }
.auth-footer { margin-top: 32px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); text-decoration: none; }

.loading-content { text-align: center; background: #ffffff; padding: 40px; border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.spinner { width: 48px; height: 48px; border: 3px solid #e2e8f0; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: var(--font-d); font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.loading-subtext { color: var(--text-muted); font-size: 14px; }

/* Responsive */
@media(max-width:900px){
  .hero h1 { font-size: 42px; }
  .widget-body { flex-direction: column; }
  .btn-go { padding: 16px; justify-content: center; }
  .videos-grid, .steps-grid, .info-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex !important; }
  .ac-header-row, .rc-header, .plan-header, .journey-header { flex-direction: column; align-items: flex-start !important; gap: 16px; }
  .ac-header-row .btn-primary { width: 100%; }
  .ac-grid, .stat-row, .result-summary, .fi-technical-grid, .vh-stats { grid-template-columns: 1fr !important; }
  .journey-track { padding: 0; align-items: flex-start; }
  .j-line { margin-bottom: 32px; }
  .vehicle-item, .order-item, .fi-main-row, .fi-header, .modal-footer { flex-direction: column; align-items: stretch; }
  .vehicle-info { align-items: flex-start; }
  .fi-price-block { text-align: left; }
  .modal-card { max-height: calc(100vh - 24px); }
  .modal-body { padding: 20px; }
  .search-tabs { flex-wrap: wrap; }
  .st-btn { flex: 1; min-width: 160px; }
  .ac-table-container, .dashboard-card { overflow-x: auto; }
}

@media(max-width:640px){
  .nav-inner { padding: 12px 16px; }
  .nav-user { gap: 8px; }
  .user-info { display: none; }
  #navUserPhoto { width: 36px; height: 36px; }
  .ac-main-content { padding: 20px 16px !important; }
  .dashboard-card, .resource-card { padding: 18px; }
  .journey-track { flex-direction: column; gap: 12px; }
  .j-line { width: 3px; height: 28px; flex: 0 0 28px; margin: -8px 0 -4px 20px; }
  .j-step { flex-direction: row; align-items: center; }
  .j-step small { margin-top: 0; }
  .ac-consulta-result {
    padding: 16px 14px;
    border-radius: 20px;
  }
  .ac-consulta-result > #vehicleInfo {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 20px;
  }
  .vehicle-plate {
    width: 100%;
    justify-content: center;
  }
  .plate-badge {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 18px;
    letter-spacing: 1.6px;
  }
  .ac-consulta-result > #vehicleInfo .vehicle-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ac-consulta-result > #vehicleInfo .vehicle-detail {
    padding: 14px;
    border-radius: 14px;
  }
  .ac-consulta-result > #vehicleInfo .vehicle-detail-label {
    font-size: 10px;
  }
  .ac-consulta-result > #vehicleInfo .vehicle-detail-value {
    font-size: 15px;
    line-height: 1.45;
  }
  .vehicle-consulta-info {
    order: 3;
    align-items: flex-start;
    gap: 8px;
  }
  .consulta-badge {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .ac-consulta-result #summaryCards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }
  .fine-item {
    border-radius: 18px;
    margin-bottom: 14px;
  }
  .fi-selection {
    padding: 14px 0 0 14px;
    align-items: flex-start;
  }
  .fi-content-wrap {
    padding: 0 14px 14px 10px;
  }
  .fi-header {
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .fi-badge-group {
    gap: 8px;
  }
  .fi-date {
    font-size: 12px;
  }
  .fi-main-row {
    gap: 12px;
    margin-bottom: 12px;
  }
  .fi-info-block strong {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .fi-info-block p {
    align-items: flex-start;
    line-height: 1.5;
  }
  .fi-price-block {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }
  .fi-price-new {
    font-size: 18px;
  }
  .fi-param {
    padding: 10px 12px;
  }
  .fi-param strong {
    font-size: 13px;
    line-height: 1.45;
  }
  .fi-footer {
    justify-content: stretch;
    padding-top: 8px;
  }
  .fi-footer .btn-sm-primary,
  .fi-footer .btn-sm-outline {
    width: 100%;
    justify-content: center;
  }
  .fi-footer .text-muted-sm {
    display: block;
    line-height: 1.55;
  }
  .recurso-feedback-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .recurso-feedback-label { min-width: 0; }
  .crlv-drop { padding: 28px 16px; }
  .soma-signature { width: 100%; justify-content: flex-start; }
  .vehicle-consulta-info {
    width: 100%;
    align-items: flex-start;
  }
  .ac-thumb-config { flex-direction: column; align-items: flex-start; }
  .ac-thumb-config small { text-align: left; }
  .ac-history-header { flex-direction: column; }
  .ac-loading-context,
  .ac-loading-steps { grid-template-columns: 1fr; }
}

@media(max-width:520px){
  .ac-main-content { padding: 18px 12px !important; }
  .ac-consulta-result {
    padding: 14px 12px;
  }
  .ac-consulta-result > #vehicleInfo {
    padding: 16px 14px;
  }
  .plate-badge {
    font-size: 17px;
    letter-spacing: 1.2px;
  }
  .consulta-badge {
    width: 100%;
    justify-content: center;
  }
  .fi-selection {
    padding-left: 12px;
  }
  .fi-content-wrap {
    padding: 0 12px 12px 8px;
  }
  .fi-info-block strong {
    font-size: 14px;
  }
  .fi-price-block {
    padding: 9px 11px;
  }
  .fi-price-new {
    font-size: 17px;
  }
}
