/* =============================================
   QrDrive - Main CSS
   Material Design 3 inspired, modern dark theme
   ============================================= */

/* ── Design Tokens ── */
:root {
  /* ── Brand: Performance Orange ── */
  --color-primary: #E85D04;
  --color-primary-dark: #BF4E03;
  --color-primary-light: #FF7A1A;

  /* ── Brand: Midnight Navy ── */
  --color-secondary: #0D1B2A;
  --color-accent: #1A3A5C;

  /* ── Surfaces ── */
  --color-background: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-2: #F8F8F5;
  --color-surface-3: #EDEDEA;
  --color-border: rgba(13, 27, 42, 0.12);
  --color-border-light: rgba(0, 0, 0, 0.07);

  /* ── Text ── */
  --color-text: #0D1B2A;
  --color-text-secondary: #2C4A6B;
  --color-text-muted: #6B7A8D;

  /* ── Feedback ── */
  --color-success: #4ADE80;
  --color-success-bg: rgba(74, 222, 128, 0.12);
  --color-warning: #FBBF24;
  --color-warning-bg: rgba(251, 191, 36, 0.12);
  --color-error: #F87171;
  --color-error-bg: rgba(248, 113, 113, 0.12);
  --color-info: #60A5FA;
  --color-info-bg: rgba(96, 165, 250, 0.12);

  /* ── Radii ── */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 8px 24px rgba(232, 93, 4, 0.28);

  --transition: all 0.2s ease;
  --transition-slow: all 0.35s ease;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --navbar-height: 64px;
}

/* ── Typography Override ── */
h1,
h2,
h3,
h4,
h5,
h6,
.btn--primary,
.btn--secondary,
.auth-left__title,
.hero__title,
.section-title,
.font-heading {
  font-family: var(--font-heading) !important;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-family);
  border: none;
  background: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-3);
  border-radius: 3px;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Main Content ── */
.main-content {
  padding-top: calc(var(--navbar-height) + 1.5rem);
  min-height: calc(100vh - 200px);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-family);
}

.btn .material-icons-round {
  font-size: 18px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 93, 4, 0.45);
  color: #fff;
}

.btn--outlined {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: transparent;
}

.btn--outlined:hover {
  background: rgba(232, 93, 4, 0.1);
  color: var(--color-primary-light);
}

.btn--ghost {
  color: var(--color-text-secondary);
}

.btn--ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.btn--danger {
  background: var(--color-error);
  color: #fff;
}

.btn--danger:hover {
  background: #dc2626;
  color: #fff;
  transform: translateY(-1px);
}

.btn--warning {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.btn--warning:hover {
  background: var(--color-warning-bg);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}

.btn--whatsapp:hover {
  background: #128C7E;
  color: #fff;
  transform: translateY(-2px);
}

/* btn--sm keeps visual size but gets min touch height for mobile */
.btn--sm {
  padding: 0.55rem 0.875rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn--sm .material-icons-round {
  font-size: 16px;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Icon button — minimum 44×44px touch target (iOS HIG / Material) */
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}

.icon-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.icon-btn--danger:hover {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.icon-btn .material-icons-round {
  font-size: 18px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-icon {
  color: var(--color-primary);
  font-size: 28px;
}

.navbar__logo-text strong {
  color: var(--color-primary-light);
}

.navbar__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
}

.navbar__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.875rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease-out;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar__link:hover {
  color: var(--color-text);
}

.navbar__link:hover::after {
  width: calc(100% - 1.5rem);
}

.navbar__link--active {
  color: var(--color-primary);
}

.navbar__link--active::after {
  width: calc(100% - 1.5rem);
}

.navbar__link .material-icons-round {
  font-size: 18px;
}

.navbar__link--credits {
  color: var(--color-warning);
}

.navbar__link--credits:hover {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  position: relative;
}

.navbar__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  user-select: none;
}

.navbar__user:hover {
  background: var(--color-surface-2);
}

.navbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.navbar__username {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.navbar__chevron {
  font-size: 18px;
  color: var(--color-text-secondary);
  transition: transform 0.2s;
}

/* Dropdown */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1001;
  overflow: hidden;
}

.navbar__dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.navbar__dropdown--center {
  left: 10%;
  right: auto;
  transform: translateX(-50%) translateY(-8px);
}

.navbar__dropdown--center.open {
  transform: translateX(-50%) translateY(0);
}

.navbar__dropdown-header {
  padding: 1rem;
}

.navbar__dropdown-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.navbar__dropdown-email {
  font-size: 0.775rem;
  color: var(--color-text-secondary);
  margin-top: 0.125rem;
}

.navbar__dropdown-divider {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 0.25rem 0;
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  width: 100%;
  text-align: left;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
}

.navbar__dropdown-item:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.navbar__dropdown-item--danger:hover {
  color: var(--color-error);
  background: var(--color-error-bg);
}

.navbar__dropdown-item .material-icons-round {
  font-size: 18px;
}

/* Notifications */
.navbar__notify {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.navbar__notify:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.navbar__notify-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-error);
  border-radius: 50%;
  border: 2px solid #fff;
}

.navbar__dropdown--notify {
  width: 320px;
  max-width: calc(100vw - 2rem);
  right: 0;
}

.navbar__notify-list {
  max-height: 300px;
  overflow-y: auto;
}

.navbar__notify-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Mobile */
.navbar__hamburger {
  display: none;
  color: var(--color-text);
  padding: 0.25rem;
}

.navbar__mobile {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding: 0.5rem;
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}

.navbar__mobile.open {
  display: flex;
}

.navbar__mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-family);
  width: 100%;
  text-align: left;
}

.navbar__mobile-link:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.navbar__mobile-link--danger:hover {
  color: var(--color-error);
}

.navbar__mobile-link .material-icons-round {
  font-size: 20px;
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    position: fixed;
  }

  .navbar__container {
    height: var(--navbar-height);
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__username,
  .navbar__chevron {
    display: none;
  }

  .main-content {
    padding-top: calc(var(--navbar-height) + 1rem);
  }
}

/* =============================================
   FLASH MESSAGES (Premium Toast)
   ============================================= */
.flash {
  position: fixed;
  top: calc(var(--navbar-height) + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border-radius: var(--radius-lg);
  min-width: 320px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
  animation: slideDownToast 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  overflow: hidden;
  /* For progress bar */
}

@keyframes slideDownToast {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Automatic Icons via pseudo-element */
.flash::before {
  font-family: 'Material Icons Round';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.flash--success::before {
  content: "check_circle";
  color: #10B981;
}

.flash--error::before {
  content: "error";
  color: #EF4444;
}

.flash--warning::before {
  content: "warning";
  color: #F59E0B;
}

.flash--info::before {
  content: "info";
  color: #3B82F6;
}

/* Close Button */
.flash__close,
.flash button {
  margin-left: auto;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  cursor: pointer;
  padding: 0;
}

.flash__close:hover,
.flash button:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text);
}

.flash__close .material-icons-round,
.flash button .material-icons-round {
  font-size: 18px;
}

/* Progress Bar */
.flash__progress,
.flash::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--color-primary);
  opacity: 0.8;
  animation: flashProgress 5s linear forwards;
  width: 100%;
}

.flash--success::after {
  background: #10B981;
}

.flash--error::after {
  background: #EF4444;
}

.flash--warning::after {
  background: #F59E0B;
}

.flash--info::after {
  background: #3B82F6;
}

@keyframes flashProgress {
  0% {
    width: 100%;
  }

  100% {
    width: 0%;
  }
}



/* =============================================
   ALERTS (inline)
   ============================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.alert .material-icons-round {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert--error {
  background: #3B1010;
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #FCA5A5;
}

.alert--success {
  background: #0D3320;
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #86EFAC;
}

.alert--warning {
  background: #3B2500;
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #FDE68A;
}

.alert--info {
  background: #0D1F3B;
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #93C5FD;
}

.alert__link {
  color: currentColor;
  text-decoration: underline;
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  pointer-events: none;
  color: var(--color-text-muted);
  font-size: 20px;
}

.input-icon--right {
  left: auto;
  right: 0.875rem;
  pointer-events: all;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text-muted);
}

.input-icon--right:hover {
  color: var(--color-text);
}

.form-input {
  width: 100%;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.9rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
  background: var(--color-surface-3);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-select {
  padding-left: 2.75rem;
  appearance: none;
  cursor: pointer;
}

.form-textarea {
  padding-left: 1rem;
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Form section */
.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.form-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.form-section__title .material-icons-round {
  font-size: 20px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 2px;
}

.checkbox-label input:checked+.checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-label input:checked+.checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.checkbox-label--feature {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
}

.checkbox-label--feature:hover {
  border-color: var(--color-primary);
  background: rgba(232, 93, 4, 0.08);
}

.features-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

/* Consent box */
.consent-box {
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.5rem 0;
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-body {
  background: radial-gradient(ellipse at 60% 20%, rgba(232, 93, 4, 0.12) 0%, transparent 60%), var(--color-background);
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-surface);
  /* border: 1px solid var(--color-border); */
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-card--wide {
  max-width: 680px;
}

.auth-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.75rem;
  text-decoration: none;
}

.auth-card__brand-icon {
  color: var(--color-primary);
  font-size: 32px;
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-card__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.auth-card__footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.auth-card__link {
  color: var(--color-primary-light);
  font-weight: 600;
}

.auth-card__link--muted {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* =============================================
   HOME PAGE
   ============================================= */
.home-body {
  overflow-x: hidden;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--navbar-height);
}

.hero__content {
  flex: 1;
  max-width: 580px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.3);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: 1.5rem;
}

.hero__badge .material-icons-round {
  font-size: 16px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero__disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (max-width: 400px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone-mockup {
  width: 300px;
  height: 520px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 36px;
  padding: 1.5rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.hero__phone-screen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__mock-card {
  text-align: center;
}

.hero__mock-qr {
  margin-bottom: 1rem;
}

.hero__mock-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.hero__mock-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-light);
  margin-bottom: 0.75rem;
}

.hero__mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 6rem 1.5rem;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 1rem;
  }
}

.section--dark {
  background: var(--color-surface);
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* Steps */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 200px;
}

.step__number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 auto 1rem;
  color: #fff;
}

.step__icon {
  font-size: 32px;
  color: var(--color-primary-light);
  margin-bottom: 0.75rem;
  display: block;
}

.step__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.step__desc {
  font-size: 0.825rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step__arrow {
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.step__arrow .material-icons-round {
  font-size: 24px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition-slow);
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
}

.feature-card__icon {
  font-size: 40px;
  color: var(--color-primary-light);
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: var(--transition-slow);
}

.pricing-card--highlighted {
  border-color: var(--color-primary);
  background: linear-gradient(to bottom, rgba(232, 93, 4, 0.06), var(--color-surface));
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-primary);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
}

.pricing-card__name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.pricing-card__price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary-light);
}

.pricing-card__credits {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0.25rem 0 1.25rem;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pricing-card__features .material-icons-round {
  font-size: 16px;
  color: var(--color-success);
}

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard {
  padding-bottom: 4rem;
}

.dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.dashboard__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.dashboard__title .material-icons-round {
  font-size: 28px;
  color: var(--color-primary);
}

.dashboard__subtitle {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .dashboard__title {
    font-size: 1.35rem;
  }

  .dashboard__title .material-icons-round {
    font-size: 22px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.stat-card__icon {
  font-size: 36px;
  flex-shrink: 0;
}

.stat-card__icon--primary {
  color: var(--color-primary-light);
}

.stat-card__icon--success {
  color: var(--color-success);
}

.stat-card__icon--info {
  color: var(--color-info);
}

.stat-card__icon--warning {
  color: var(--color-warning);
}

.stat-card__info {
  display: flex;
  flex-direction: column;
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.stat-card__label {
  font-size: 0.775rem;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

/* Vehicles Grid */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vehicle-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  /* removed overflow: hidden so tooltips don't get clipped */
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.vehicle-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1rem 0;
}

.vehicle-card__title {
  font-weight: 700;
  font-size: 0.9rem;
}

.vehicle-card__year {
  font-size: 0.775rem;
  color: var(--color-text-secondary);
}

.vehicle-card__actions {
  display: flex;
  gap: 0.25rem;
}

.vehicle-card__body {
  display: flex;
  gap: 5rem;
  padding: 1rem;
  flex: 1;
}

.vehicle-card__qr {
  flex-shrink: 0;
}

.vehicle-card__qr-img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  display: block;
}

.vehicle-card__qr-placeholder {
  width: 96px;
  height: 96px;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.vehicle-card__qr-placeholder .material-icons-round {
  font-size: 38px;
  z-index: 2;
  /* ensure icon is above wave if needed, wait the wave is z-index 10, so wave will cover it. This is intended since the wave fills it up. */
}

.vehicle-card__details {
  flex: 1;
  min-width: 0;
}

.vehicle-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #535353;
  margin-bottom: 0.5rem;
}

.vehicle-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.775rem;
  color: var(--color-text-secondary);
}

.vehicle-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vehicle-card__meta .material-icons-round {
  font-size: 14px;
}

.vehicle-card__stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  justify-content: flex-start;
}

.vehicle-card__stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vehicle-card__stats .material-icons-round {
  font-size: 13px;
}

.vehicle-card__footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border-light);
}

.vehicle-card__footer .btn {
  flex: 1;
  justify-content: center;
  min-height: 40px;
}

/* =============================================
   VEHICLE SHOW (public)
   ============================================= */
.vehicle-show {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .vehicle-show {
    grid-template-columns: 1fr;
  }
}

.vehicle-show__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.vehicle-show__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.vehicle-show__price {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary-light);
  margin-bottom: 1.5rem;
}

.vehicle-show__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 0.875rem;
}

.spec-item__icon {
  font-size: 24px;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.spec-item__label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  display: block;
}

.spec-item__value {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
}

.vehicle-show__section {
  margin-bottom: 2rem;
}

.vehicle-show__section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.vehicle-show__desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.vehicle-show__contact {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.vehicle-show__seller-name {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.vehicle-show__seller-name .material-icons-round {
  font-size: 16px;
}

/* QR Panel */
.qr-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.1), var(--shadow);
}

.qr-panel__image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: .875rem;
}

.qr-panel__image {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-sm);
  display: block;
}

/* In single-column mobile layout, QR panel is no longer sticky and QR grows */
@media (max-width: 900px) {
  .qr-panel {
    position: static;
  }

  .qr-panel__image {
    width: min(300px, 80vw);
    height: min(300px, 80vw);
  }
}

.qr-panel__hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.qr-panel__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* =============================================
   CREDITS PAGE
   ============================================= */
.balance-banner {
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.15), rgba(3, 218, 198, 0.08));
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-primary);
}

.balance-banner__icon {
  font-size: 48px;
  color: var(--color-primary-light);
}

.balance-banner__info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 1;
}

.balance-banner__label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-right: 0.5rem;
}

.balance-banner__value {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-primary-light);
  line-height: 1;
}

.balance-banner__unit {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.balance-banner__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.credits-section {
  margin-bottom: 3rem;
}

.credits-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.credits-safe-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  justify-content: center;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.package-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
}

.package-card--highlighted {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-primary);
}

.package-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.package-card__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.package-card__price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary-light);
}

.package-card__credits {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0.375rem 0 0.25rem;
}

.package-card__credits .material-icons-round {
  font-size: 18px;
  color: var(--color-warning);
}

.package-card__per {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.package-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.package-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.package-card__features .material-icons-round {
  font-size: 15px;
  color: var(--color-success);
}

/* Transactions */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  transition: var(--transition);
}

.transaction-item:hover {
  border-color: var(--color-border);
}

.transaction-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transaction-item__icon--positive {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.transaction-item__icon--negative {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.transaction-item__icon .material-icons-round {
  font-size: 18px;
}

.transaction-item__info {
  flex: 1;
  min-width: 0;
}

.transaction-item__desc {
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-item__date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.transaction-item__amount {
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.transaction-item__amount--positive {
  color: var(--color-success);
}

.transaction-item__amount--negative {
  color: var(--color-error);
}

.transaction-item__status {
  flex-shrink: 0;
}

/* =============================================
   BADGES / CHIPS
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.badge--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge--error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.badge--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge--info {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
}

.chip--primary {
  background: rgba(232, 93, 4, 0.12);
  border-color: rgba(232, 93, 4, 0.25);
  color: var(--color-primary-light);
}

.features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
  margin-bottom: 2rem;
}

.page-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.page-header__title .material-icons-round {
  color: var(--color-primary);
}

.page-header__subtitle {
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state--sm {
  padding: 2rem;
}

.empty-state__icon {
  font-size: 64px;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  display: block;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state__desc {
  color: var(--color-text-secondary);
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
  text-decoration: none;
}

.pagination__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

.pagination__btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* =============================================
   PRIVACY / LGPD
   ============================================= */
.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.privacy-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 0.75rem;
}

.privacy-section p,
.privacy-section li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.privacy-section ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.privacy-section ul li {
  list-style: disc;
}

.privacy-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.privacy-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.privacy-card--danger {
  border-color: rgba(248, 113, 113, 0.3);
}

.privacy-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-card__icon--blue {
  background: var(--color-info-bg);
  color: var(--color-info);
}

.privacy-card__icon--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.privacy-card__icon--danger {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.privacy-card__icon .material-icons-round {
  font-size: 24px;
}

.privacy-card__content {
  flex: 1;
  min-width: 200px;
}

.privacy-card__content h3 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.privacy-card__content p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* =============================================
   VEHICLE FORM
   ============================================= */
.vehicle-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 3rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer__brand {
  flex: 1;
  min-width: 200px;
}

.footer__icon {
  color: var(--color-primary);
  font-size: 28px;
}

.footer__name {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-primary-light);
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__lgpd-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: calc(var(--navbar-height) + 1rem);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .dashboard__header {
    flex-direction: column;
  }

  .vehicles-grid {
    grid-template-columns: 1fr;
  }

  /* Keep 2-col stats on medium mobile (≥481px), go 1-col on small */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .footer__container {
    flex-direction: column;
    gap: 2rem;
  }

  .balance-banner {
    flex-direction: column;
    text-align: center;
  }

  .vehicle-show__specs {
    grid-template-columns: 1fr 1fr;
  }

  /* Stat cards: stack label below icon for better readability */
  .stat-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-card__value {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .features-checkboxes {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  /* Vehicle card footer: ensure buttons are easy to tap */
  .vehicle-card__footer {
    padding: 0.875rem 1rem;
    gap: 0.625rem;
  }

  .vehicle-card__footer .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }

  /* Reduce balance banner value size on very small screens */
  .balance-banner__value {
    font-size: 2.5rem;
  }

  /* Pagination easier to tap */
  .pagination__btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* =============================================
   CREDITS SUCCESS
   ============================================= */
.success-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  font-size: 80px;
  color: var(--color-success);
  margin-bottom: 1rem;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.success-subtitle {
  color: var(--color-text-secondary);
  max-width: 400px;
  margin-bottom: 2rem;
}

/* =============================================
   SKELETON LOADING
   ============================================= */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface-3) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite linear;
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
  border: none !important;
}

.skeleton * {
  visibility: hidden !important;
}

.skeleton-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface-3) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite linear;
  color: transparent !important;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  text-decoration: none !important;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* =============================================
   COOKIE BANNER (LGPD)
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner__text strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.cookie-banner__text p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner__link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* =============================================
   PREMIUM UI ENHANCEMENTS
   ============================================= */

/* Glass Cards & Noise */
.card-glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, 0.8));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Brand Logo Wrapper */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
  padding: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.brand-logo-wrap svg,
.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mini Mercosul Plate (for Dashboard) */
.mercosul-plate-mini {
  display: inline-flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #111;
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: max-content;
  min-width: 80px;
}

.mercosul-plate-mini__header {
  background-color: #003399;
  /* Blue Mercosul */
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 0;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 4px;
}

.mercosul-plate-mini__body {
  font-size: 11px;
  font-weight: 800;
  color: #111;
  padding: 2px 4px;
  letter-spacing: 0.05em;
}

/* Wallet Row (for Transactions) */
.wallet-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  background: #fff;
  gap: 1.5rem;
}

.wallet-row:hover {
  background: rgba(0, 0, 0, 0.01);
  transform: scale(1.002);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border-bottom-color: transparent;
}

.wallet-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.wallet-icon-box svg {
  width: 32px;
  height: 32px;
}

.wallet-info__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.2rem;
}

.wallet-info__meta {
  font-size: 0.75rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-amount {
  text-align: right;
}

.wallet-amount__val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
}

.wallet-amount__status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: flex;
  justify-content: flex-end;
}

/* Dashboard Premium Footer */
.vehicle-card__footer-premium {
  display: flex;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vehicle-card__footer-premium .btn {
  flex: 1;
  justify-content: center;
  min-height: 48px;
  border-radius: 0;
  color: #333333;
  font-weight: 600;
  background: transparent;
  font-size: 0.85rem;
}

.vehicle-card__footer-premium .btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #111111;
}

.vehicle-card__footer-premium .btn:first-child {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   LANDING PAGE (WEBMOTORS STYLE) ENHANCEMENTS
   ========================================================================== */

/* Quick Search */
.quick-search {
  max-width: 900px;
  margin: -3rem auto 3rem;
  position: relative;
  z-index: 10;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 0.5rem;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  gap: 0.5rem;
}

.quick-search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
  color: var(--color-text);
}

.quick-search__btn {
  background: var(--color-primary);
  color: var(--color-background);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-search__btn:hover {
  background: var(--color-primary-dark);
}

/* Brands Grid */
.brands-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brands-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.brand-box {
  width: 90px;
  height: 90px;
  background: var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.02);
  cursor: pointer;
  text-decoration: none;
}

.brand-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.brand-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Buyer block (secondary audience, placed after pricing) */
.buyer-section {
  padding: 5rem 1.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.buyer-section .quick-search {
  margin: 0 auto 3rem;
}

@media (max-width: 560px) {
  .buyer-section .quick-search {
    flex-direction: column;
  }
}

/* Car Carousel */
.car-carousel-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.car-carousel-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.car-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.car-carousel::-webkit-scrollbar {
  display: none;
}

.car-carousel .vehicle-card {
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: start;
}

/* Promo Banners Grid */
.promo-banners-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  grid-template-rows: repeat(2, 200px);
}

.promo-banner {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  color: white;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.promo-banner:hover {
  transform: scale(1.02);
}

.promo-banner--large {
  grid-row: span 2;
  background-color: #0F172A;
  background-image: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.promo-banner--small-1 {
  background-color: var(--color-primary);
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.promo-banner--small-2 {
  background-color: #333;
  background-image: linear-gradient(135deg, #334155 0%, #0F172A 100%);
}

.promo-banner__content {
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.promo-banner__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.promo-banner--small-1 .promo-banner__title,
.promo-banner--small-2 .promo-banner__title {
  font-size: 1.2rem;
}

.promo-banner__subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .promo-banner {
    min-height: 200px;
  }

  .quick-search {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .quick-search__btn {
    border-radius: var(--radius-sm);
  }
}

/* -- CATALOG VCARD (Shared) -- */
:root {
  --cat-surface: #FFFFFF;
  --cat-border: rgba(0, 0, 0, 0.1);
  --gold: #F5C842;
  --gold-border: rgba(245, 200, 66, 0.40);
}

.vcard {
  background: var(--cat-surface);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--cat-border);
  pointer-events: none;
  transition: border-color 0.2s;
  z-index: 10;
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.vcard:hover::after {
  border-color: rgba(0, 0, 0, 0.15);
}

.vcard--featured {
  background: linear-gradient(160deg, var(--color-surface-2) 0%, var(--cat-surface) 60%);
}

.vcard--featured::after {
  border-color: rgba(0, 0, 0, 0.12);
}

.vcard--featured:hover::after {
  border-color: rgba(0, 0, 0, 0.35);
}

/* Card image */
.vcard__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: #f4f5f7;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transform: translateZ(0);
}

.vcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vcard:hover .vcard__img {
  transform: scale(1.04);
}

.vcard__img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcard__img-fallback svg {
  width: 50%;
  opacity: 0.4;
}

/* Badges */
.vcard__badge-wrap {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.vcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.vcard__badge--featured {
  background: rgba(245, 200, 66, 0.92);
  color: #1A1200;
}

.vcard__badge--featured .material-icons-round {
  font-size: 11px;
}

.vcard__badge--cond {
  background: rgba(0, 0, 0, 0.7);
  color: #D0D0D0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Make logo overlay */
.vcard__make-logo {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
  opacity: 0.7;
}

/* Card body */
.vcard__body {
  padding: 0.9rem 1rem 1rem;
}

.vcard__make-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.vcard__make {
  font-size: 0.7rem;
  font-weight: 700;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vcard__year {
  font-size: 0.7rem;
  color: #777777;
  font-weight: 600;
}

.vcard__model {
  font-size: 1rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #535353;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.vcard--featured .vcard__price {
  color: #535353;
}

.vcard__meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vcard__meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #606060;
  font-weight: 500;
}

.vcard__meta-item .material-icons-round {
  font-size: 13px;
}

.vcard__location {
  font-size: 0.68rem;
  color: #505050;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.vcard__location .material-icons-round {
  font-size: 12px;
}

/* Carousel Controls & Indicators */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  color: #333;
}

.carousel-control:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.carousel-control--prev {
  left: -22px;
}

.carousel-control--next {
  right: -22px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-indicator.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .carousel-control {
    display: none;
  }
}

/* ── FAQ ── */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item__icon {
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item__inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ── VCARD CAROUSEL ── */
.vcard__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.vcard__nav--prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 0.5rem;
}

.vcard__nav--next {
  right: 0;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.vcard__nav::after {
  content: '';
  font-family: 'Material Icons Round';
  color: white;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 4px;
}

.vcard__nav--prev::after {
  content: 'chevron_left';
}

.vcard__nav--next::after {
  content: 'chevron_right';
}

.vcard__img-wrap:hover .vcard__nav {
  opacity: 1;
}

.vcard__indicators {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}

.vcard__dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.2s;
}

.vcard__dot.active {
  background: white;
  width: 16px;
  border-radius: 4px;
}

.vcard__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: vcard-spin 1s linear infinite;
  z-index: 11;
}

@keyframes vcard-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ── DROPDOWN HOVER MENU (Carros & Vender) ── */
#carros-nav-item:hover>#carros-dropdown,
#info-nav-item:hover>#info-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: none;
}

#carros-dropdown,
#info-dropdown {
  top: 100%;
  transform: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

/* ── QR DOWNLOAD ANIMATION (PULSE & CHECK) ── */
.vehicle-card__qr-placeholder .qr-icon-default,
.vehicle-card__qr-placeholder .qr-spinner,
.vehicle-card__qr-placeholder .qr-icon-success {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vehicle-card__qr-placeholder .qr-icon-default {
  opacity: 1;
  transform: scale(1);
}

.vehicle-card__qr-placeholder .qr-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(232, 89, 3, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
}

.vehicle-card__qr-placeholder .qr-icon-success {
  font-size: 42px;
  color: #e85d04;
  opacity: 0;
  transform: scale(0.8);
}

/* Loading State */
.vehicle-card__qr-placeholder.state-loading .qr-icon-default {
  opacity: 0;
  transform: scale(0.8);
}

.vehicle-card__qr-placeholder.state-loading .qr-spinner {
  opacity: 1;
  transform: scale(1);
  animation: qr-spin 1s linear infinite;
}

/* Success State */
.vehicle-card__qr-placeholder.state-success .qr-icon-default,
.vehicle-card__qr-placeholder.state-success .qr-spinner {
  opacity: 0;
  transform: scale(0.8);
  animation: none;
}

.vehicle-card__qr-placeholder.state-success .qr-icon-success {
  opacity: 1;
  transform: scale(1);
}

@keyframes qr-spin {
  0% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .navbar__brand-text {
    display: none !important;
  }
}

/* Custom Tooltip Styles */
[data-tooltip] {
  position: relative;
}

/* Elevate the container itself on hover to escape sibling stacking context */
[data-tooltip]:hover {
  z-index: 99999;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: #0F172A;
  /* Dark navy */
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
}

[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.story-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff8803, #F44336, #F44336);
  padding: 2px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-ring:hover {
  transform: translateY(-2px);
  z-index: 10 !important;
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-surface);
}