@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,300..900;1,300..900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/**
 * styles.css — CSS Base Partilhado (Estilo Impeccable.style v4.0)
 * Estilos de alta fidelidade comuns a todos os dashboards de desvalorização.
 */

/* ============ CSS VARIABLES (IMPECCABLE DESIGN SYSTEM) ============ */
:root {
  --bg: #050608;
  --card-bg: rgba(18, 24, 36, 0.65);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-hover: rgba(48, 209, 88, 0.35);
  --text: #f5f6f8;
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent: #30d158;
  --accent-gold: #ffd60a;
  --accent-cyan: #32ade6;
  --accent-orange: #ff9f0a;
  --accent-red: #ff3b30;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Albert Sans', monospace;
}

/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at 50% 0%, rgba(48, 209, 88, 0.07) 0%, rgba(5, 6, 8, 1) 75%), var(--bg);
  background-attachment: fixed;
  font-family: var(--font-main);
  color: var(--text);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ TYPOGRAPHY ============ */
header {
  text-align: center;
}

h1 {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.sub {
  font-size: 11px;
  color: var(--text-muted);
}

footer {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

/* ============ EXECUTIVE HEADER NAVIGATION SYSTEM ============ */
.app-header-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

.app-header-container {
  width: 100%;
  max-width: 1350px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
  transition: opacity 0.2s ease;
}

.app-header-brand:hover {
  opacity: 0.9;
}

.app-header-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.2) 0%, rgba(50, 173, 230, 0.2) 100%);
  border: 1px solid rgba(48, 209, 88, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.3);
}

.app-header-badge-ev {
  font-size: 9px;
  font-weight: 900;
  color: #30d158;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.app-header-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-header-menu::-webkit-scrollbar {
  display: none;
}

.app-header-item {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1px solid transparent;
}

.app-header-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.app-header-item.active {
  color: #ffffff;
  font-weight: 700;
  background: rgba(48, 209, 88, 0.15);
  border-color: rgba(48, 209, 88, 0.35);
  box-shadow: 0 0 14px rgba(48, 209, 88, 0.2);
}

.app-header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
}

.app-header-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.app-header-backdrop {
  display: none;
}

.status-dot-green {
  width: 7px;
  height: 7px;
  background: #30d158;
  border-radius: 50%;
  box-shadow: 0 0 8px #30d158;
}

.floating-home-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #30d158 0%, #0e6224 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(48, 209, 88, 0.4);
  z-index: 99999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}

.floating-home-btn:hover {
  transform: scale(1.15) rotate(-8deg);
  opacity: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 25px rgba(48, 209, 88, 0.7);
}

.nav-links-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(48, 209, 88, 0.2);
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.3);
}

/* ============ BUTTONS ============ */
.btn-pill,
.filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-pill:hover,
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-pill.active,
.filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.3);
}

/* ============ CONTROLS PANEL ============ */
.controls-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 14px 18px;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-row,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.control-label,
.filter-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
  min-width: 130px;
}

/* ============ FORM ELEMENTS ============ */
select,
input[type="number"] {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
}

select:focus,
input[type="number"]:focus {
  border-color: var(--accent);
}

/* ============ CARDS ============ */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  overflow-x: auto;
}

/* ============ TABLE BASE ============ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

th {
  color: var(--text-muted);
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 9px;
  font-weight: 600;
}

th:first-child {
  text-align: left;
}

td {
  padding: 5px 3px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

/* ============ CELL STYLES ============ */
.cell-pill {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 9px;
  min-width: 38px;
}

.cell-na {
  color: rgba(255, 255, 255, 0.2);
  font-style: italic;
  font-size: 9px;
}

/* ============ BRAND INDICATOR BADGES ============ */
.model-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.ind-tesla {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff453a;
}

.ind-tesla_lr {
  background: rgba(255, 159, 10, 0.15);
  border: 1px solid rgba(255, 159, 10, 0.3);
  color: #ff9f0a;
}

.ind-ioniq {
  background: rgba(50, 173, 230, 0.15);
  border: 1px solid rgba(50, 173, 230, 0.3);
  color: #64d2ff;
}

.ind-ioniq5_58 {
  background: rgba(90, 200, 250, 0.15);
  border: 1px solid rgba(90, 200, 250, 0.3);
  color: #5ac8fa;
}

.ind-megane {
  background: rgba(175, 82, 222, 0.15);
  border: 1px solid rgba(175, 82, 222, 0.3);
  color: #d070ff;
}

/* ============ BRAND DOTS (luminosos) ============ */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-tesla {
  background: #ff3b30;
  box-shadow: 0 0 6px #ff3b30;
}

.dot-tesla_lr {
  background: #ff9f0a;
  box-shadow: 0 0 6px #ff9f0a;
}

.dot-ioniq {
  background: #32ade6;
  box-shadow: 0 0 6px #32ade6;
}

.dot-ioniq5_58 {
  background: #5ac8fa;
  box-shadow: 0 0 6px #5ac8fa;
}

.dot-megane {
  background: #af52de;
  box-shadow: 0 0 6px #af52de;
}

/* ============ BRAND BADGE PILLS ============ */
.badge-car,
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.b-tesla {
  background: rgba(255, 69, 58, 0.25) !important;
  color: #ff453a !important;
  border: 1px solid rgba(255, 69, 58, 0.4) !important;
}

.b-tesla_lr {
  background: rgba(255, 159, 10, 0.25) !important;
  color: #ff9f0a !important;
  border: 1px solid rgba(255, 159, 10, 0.4) !important;
}

.b-ioniq,
.b-ioniq5 {
  background: rgba(100, 210, 255, 0.25) !important;
  color: #64d2ff !important;
  border: 1px solid rgba(100, 210, 255, 0.4) !important;
}

.b-ioniq5_58 {
  background: rgba(90, 200, 250, 0.25) !important;
  color: #5ac8fa !important;
  border: 1px solid rgba(90, 200, 250, 0.4) !important;
}

.b-ioniq5_63 {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

.b-ev6_58 {
  background: rgba(48, 209, 88, 0.25) !important;
  color: #30d158 !important;
  border: 1px solid rgba(48, 209, 88, 0.4) !important;
}

.b-ev6_63 {
  background: rgba(52, 211, 153, 0.25) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
}

.b-ev6_lr {
  background: rgba(0, 199, 190, 0.25) !important;
  color: #00c7be !important;
  border: 1px solid rgba(0, 199, 190, 0.4) !important;
}

.b-bmw_i3 {
  background: rgba(0, 122, 255, 0.25) !important;
  color: #007aff !important;
  border: 1px solid rgba(0, 122, 255, 0.4) !important;
}

.b-bmw_i3s {
  background: rgba(88, 166, 255, 0.25) !important;
  color: #58a6ff !important;
  border: 1px solid rgba(88, 166, 255, 0.4) !important;
}

.b-polestar2_sr {
  background: rgba(255, 214, 10, 0.25) !important;
  color: #ffd60a !important;
  border: 1px solid rgba(255, 214, 10, 0.4) !important;
}

.b-polestar2_lr {
  background: rgba(255, 204, 0, 0.25) !important;
  color: #ffcc00 !important;
  border: 1px solid rgba(255, 204, 0, 0.4) !important;
}

.b-cupra_born_58 {
  background: rgba(255, 149, 0, 0.25) !important;
  color: #ff9500 !important;
  border: 1px solid rgba(255, 149, 0, 0.4) !important;
}

.b-cupra_born_eboost {
  background: rgba(255, 122, 0, 0.25) !important;
  color: #ff7a00 !important;
  border: 1px solid rgba(255, 122, 0, 0.4) !important;
}

.b-cupra_born_77 {
  background: rgba(229, 142, 38, 0.25) !important;
  color: #e58e26 !important;
  border: 1px solid rgba(229, 142, 38, 0.4) !important;
}

.b-megane {
  background: rgba(208, 112, 255, 0.25) !important;
  color: #d070ff !important;
  border: 1px solid rgba(208, 112, 255, 0.4) !important;
}

/* ============ BRAND BORDER TOP (for cards) ============ */
.border-tesla {
  border-top: 3px solid #ff3b30;
}

.border-tesla_lr {
  border-top: 3px solid #ff9f0a;
}

.border-ioniq,
.border-ioniq5 {
  border-top: 3px solid #32ade6;
}

.border-ioniq5_58 {
  border-top: 3px solid #5ac8fa;
}

.border-ioniq5_63 {
  border-top: 3px solid #38bdf8;
}

.border-ev6_58 {
  border-top: 3px solid #30d158;
}

.border-ev6_63 {
  border-top: 3px solid #34d399;
}

.border-ev6_lr {
  border-top: 3px solid #00c7be;
}

.border-bmw_i3 {
  border-top: 3px solid #007aff;
}

.border-bmw_i3s {
  border-top: 3px solid #58a6ff;
}

.border-polestar2_sr {
  border-top: 3px solid #ffd60a;
}

.border-polestar2_lr {
  border-top: 3px solid #ffcc00;
}

.border-cupra_born_58 {
  border-top: 3px solid #ff9500;
}

.border-cupra_born_eboost {
  border-top: 3px solid #ff7a00;
}

.border-cupra_born_77 {
  border-top: 3px solid #e58e26;
}

.border-megane {
  border-top: 3px solid #af52de;
}

/* ============ BRAND TEXT COLORS ============ */
.c-tesla {
  color: #ff453a;
}

.c-tesla_lr {
  color: #ff9f0a;
}

.c-ioniq,
.c-ioniq5 {
  color: #64d2ff;
}

.c-ioniq5_58 {
  color: #5ac8fa;
}

.c-ioniq5_63 {
  color: #38bdf8;
}

.c-ev6_58 {
  color: #30d158;
}

.c-ev6_63 {
  color: #34d399;
}

.c-ev6_lr {
  color: #00c7be;
}

.c-bmw_i3 {
  color: #007aff;
}

.c-bmw_i3s {
  color: #58a6ff;
}

.c-polestar2_sr {
  color: #ffd60a;
}

.c-polestar2_lr {
  color: #ffcc00;
}

.c-cupra_born_58 {
  color: #ff9500;
}

.c-cupra_born_eboost {
  color: #ff7a00;
}

.c-cupra_born_77 {
  color: #e58e26;
}

.c-megane {
  color: #d070ff;
}

/* ============ WARRANTY BADGES ============ */
.w-badge-pill {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.w-exp {
  color: #ff453a;
  background: rgba(255, 69, 58, 0.2);
  border: 1px solid rgba(255, 69, 58, 0.4);
}

.w-6m {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.18);
  border: 1px solid rgba(255, 59, 48, 0.35);
}

.w-12m {
  color: #ff9f0a;
  background: rgba(255, 159, 10, 0.18);
  border: 1px solid rgba(255, 159, 10, 0.35);
}

.w-18m {
  color: #ffd60a;
  background: rgba(255, 214, 10, 0.18);
  border: 1px solid rgba(255, 214, 10, 0.35);
}

.w-ok {
  color: #30d158;
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

/* ============ YEAR BADGE ============ */
.year-badge,
.tag {
  font-size: 9px;
  font-weight: 800;
  background: #ffd60a;
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============ LFP BADGE ============ */
.badge-lfp,
.lfp {
  font-size: 8px;
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}

/* ============ GARAGE UI & HIGHLIGHT ============ */
.garage-section {
  width: 100%;
  max-width: 1200px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.garage-form-card {
  background: linear-gradient(135deg, rgba(50, 173, 230, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid rgba(50, 173, 230, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.garage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}

.garage-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ============ GARAGE HERO BANNER (full-bleed, integrado ao card) ============ */
.garage-card-hero {
  position: relative;
  width: 100%;
  height: 185px;
  overflow: hidden;
  background-color: #0b0e14;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Sombra de "chão" sob o carro, para dar sensação de apoio/profundidade */
.garage-card-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 65%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 75%);
  transform: translateX(-50%);
  filter: blur(4px);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Fade-out gradient: a imagem "dissolve" para o fundo do card, eliminando a divisão rígida */
.garage-card-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(to right, #121824 0%, rgba(18, 24, 36, 0.85) 45%, rgba(18, 24, 36, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.garage-card-img {
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 90%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 2;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.85));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.garage-card:hover .garage-card-img {
  transform: scale(1.05) translateX(-6px);
}

.garage-card:hover .garage-card-hero::before {
  opacity: 0.7;
}

/* Badge de marca — estilo glass flutuante sobre a foto */
.garage-card-brand-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Overlay do nome do carro + ano, sobreposto na base da imagem (estilo "capa de revista") */
.garage-card-hero-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}

.garage-card-hero-title .version-badge {
  font-size: 10px;
}

/* Ações (editar/remover) sobrepostas no canto superior direito da foto */
.garage-card-hero-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.garage-card:hover .garage-card-hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.garage-card-hero-actions .btn-blue,
.garage-card-hero-actions .btn-remove {
  height: 26px;
  padding: 0 8px;
  font-size: 9px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


.garage-card-title {
  display: none;
}

.garage-card-details {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 16px 16px;
}

.garage-card-cost {
  font-size: 24px;
  font-weight: 900;
  color: #30d158;
  margin-top: 4px;
}

.btn-remove {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: rgba(255, 69, 58, 0.3);
}

.btn-blue {
  background: linear-gradient(135deg, #32ade6 0%, #007aff 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  height: 32px;
  display: flex;
  align-items: center;
}

/* CLASSE DE HIGHLIGHT MÚLTIPLO NA MEGA MATRIZ */
.cell-garage-highlight {
  position: relative;
  z-index: 90;
  border: 2px solid #32ade6 !important;
  box-shadow: 0 0 20px rgba(50, 173, 230, 0.8), inset 0 0 10px rgba(50, 173, 230, 0.5) !important;
  transform: scale(1.25) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  animation: pulseBlue 2s infinite ease-in-out;
}

@keyframes pulseBlue {
  0% {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(50, 173, 230, 0.6);
  }

  50% {
    transform: scale(1.35);
    box-shadow: 0 0 25px rgba(50, 173, 230, 0.9), 0 0 40px rgba(50, 173, 230, 0.4);
  }

  100% {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(50, 173, 230, 0.6);
  }
}

/* ============ IMPECCABLE PLINTH & CARD POLISH ============ */
.impeccable-plinth,
.glass-card,
.garage-card,
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.impeccable-plinth:hover,
.garage-card:hover,
.tool-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(48, 209, 88, 0.12);
}

/* ============ IMPECCABLE ANIMATION SYSTEM (/impeccable animate) ============ */
button,
.btn-blue,
.btn-pill,
.filter-btn,
.btn-hub-home,
.btn-remove {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    border-color 0.2s ease !important;
}

button:active,
.btn-blue:active,
.btn-pill:active,
.filter-btn:active,
.btn-hub-home:active,
.btn-remove:active {
  transform: scale(0.96) translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.btn-blue:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(50, 173, 230, 0.5), 0 0 12px rgba(50, 173, 230, 0.3);
}

.garage-card {
  animation: garageCardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}

@keyframes garageCardEnter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.garage-form-card {
  position: relative;
  overflow: hidden;
}

.garage-form-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(50, 173, 230, 0.08) 50%, transparent 55%);
  transform: rotate(30deg);
  animation: shimmerBorder 6s infinite linear;
  pointer-events: none;
}

@keyframes shimmerBorder {
  0% {
    transform: translateY(-30%) rotate(30deg);
  }

  100% {
    transform: translateY(30%) rotate(30deg);
  }
}

.w-badge-pill {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.w-badge-pill:hover {
  transform: scale(1.1);
}

/* ============ AMBIENT GLOW ORBS & ORGANIC ATMOSPHERE ============ */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.18;
  animation: floatOrb 20s infinite ease-in-out alternate;
}

body::before {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
}

body::after {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(50, 173, 230, 0.8) 0%, rgba(255, 214, 10, 0) 70%);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, 40px) scale(1.1);
  }

  100% {
    transform: translate(-40px, 80px) scale(0.95);
  }
}

/* ============ FLUID ORGANIC CARDS ============ */
.glass-card,
.garage-card,
.tool-card,
.controls-card,
.garage-form-card {
  border-radius: 22px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease !important;
}

.glass-card:hover,
.garage-card:hover,
.tool-card:hover,
.controls-card:hover {
  transform: translateY(-5px) scale(1.008) !important;
  border-color: rgba(48, 209, 88, 0.4) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(48, 209, 88, 0.18) !important;
}

/* ============ DYNAMIC TABLE ROW HOVERS ============ */
table tbody tr {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  transform: scale(1.006);
  z-index: 10;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============ PULSING HUB NAVIGATION BADGE ============ */
.nav-current-badge {
  animation: badgePulse 3s infinite ease-in-out;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 214, 10, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.6), 0 0 30px rgba(255, 214, 10, 0.3);
  }
}

/* ============ STAGGERED PAGE ENTRANCE REVEAL ============ */
.hero,
.garage-section,
.tools-grid,
.top-bar,
.controls-card,
.table-card {
  animation: pageFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ WEB MOBILE RESPONSIVE SYSTEM (iOS & ANDROID) ============ */
@media (max-width: 768px) {
  body {
    padding: 12px 10px;
    gap: 14px;
  }

  body.menu-open-lock {
    overflow: hidden;
  }

  h1 {
    font-size: 22px !important;
  }

  .hero {
    padding: 10px 0;
  }

  .hero-sub {
    font-size: 11px;
  }

  .stats-row {
    gap: 8px;
  }

  .stat-chip {
    padding: 6px 12px !important;
    font-size: 10px !important;
  }

  /* Header Mobile Hamburger System */
  .app-header-container {
    position: relative;
    justify-content: space-between;
    padding: 0 14px;
  }

  .app-header-toggle {
    display: flex;
    z-index: 10002;
  }

  .app-header-toggle.is-active {
    background: rgba(48, 209, 88, 0.2);
    border-color: rgba(48, 209, 88, 0.5);
    color: #30d158;
  }

  .app-header-status {
    display: none;
  }

  .app-header-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10000;
  }

  .app-header-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .app-header-menu {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    background: rgba(18, 24, 38, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .app-header-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .app-header-item {
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    white-space: normal;
  }

  .app-header-item.active {
    background: rgba(48, 209, 88, 0.18);
    border-color: rgba(48, 209, 88, 0.4);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(48, 209, 88, 0.2);
  }

  /* Responsive Top Hub Navigation Bar & Top Bar */
  .top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-links-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 14px !important;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-nav-bar {
    padding: 10px 14px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hub-home {
    justify-content: center;
    width: 100%;
    font-size: 12px;
    padding: 10px 16px;
    min-height: 44px;
  }

  .nav-hub-controls {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .nav-tools-selector {
    width: 100%;
    font-size: 12px;
    min-height: 44px;
  }

  /* Tools & Garage Grids */
  .tools-grid,
  .garage-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .garage-form-card {
    padding: 16px !important;
    gap: 12px !important;
    flex-direction: column;
    align-items: stretch;
  }

  .garage-form-card select,
  .garage-form-card input,
  .garage-form-card button,
  .garage-form-card a.btn-blue {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 12px !important;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
  }

  .btn-blue {
    min-height: 44px !important;
    padding: 10px 16px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Tables & Matrix horizontal scrolling touch optimization */
  .glass-card,
  .table-card,
  .mega-table-card,
  .granular-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 12px 10px !important;
  }

  table {
    font-size: 9px;
  }

  table td,
  table th {
    padding: 6px 4px !important;
  }

  /* Eliminate floating home button overlap on mobile (sticky nav bar handles home navigation) */
  .floating-home-btn {
    display: none !important;
  }

  /* Sem hover em touch: manter ações do card da garagem sempre visíveis */
  .garage-card-hero-actions {
    opacity: 1 !important;
    transform: none !important;
  }

  .garage-card-hero {
    height: 150px;
  }
}


@media (max-width: 480px) {
  h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  .brand-legend {
    gap: 8px;
    font-size: 10px;
  }

  .brand-dot {
    width: 7px;
    height: 7px;
  }
}