/* =============================================================
   AutoLog — style.css
   Estilos globais compartilhados por perfil.html e cadastrocarro.html
   ============================================================= */

/* ── RESET & VARIÁVEIS ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:      #0d0d0f;
  --surface: #141417;
  --card:    #1a1a1f;
  --border:  rgba(255, 255, 255, 0.07);
  --accent:  #e8354a;
  --accent2: #ff6b35;
  --text:    #f0eee8;
  --muted:   #6b6b72;
  --tag-bg:  rgba(232, 53, 74, 0.12);
  --error:   #ff4d6d;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2e2e36; border-radius: 3px; }


/* =============================================================
   COMPONENTES GLOBAIS
   ============================================================= */

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 18px;
  width: 300px;
  transition: border-color 0.2s;
}

.nav-search:focus-within { border-color: var(--accent); }

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  width: 100%;
}

.nav-search input::placeholder { color: #3a3a42; }
.nav-search svg { color: var(--muted); flex-shrink: 0; }

.btn-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 22px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }

/* Chip do usuário logado (substitui .btn-login) */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 6px 4px 4px;
  border-radius: 30px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-user:hover { border-color: rgba(232, 53, 74, 0.45); background: rgba(232, 53, 74, 0.06); }

.nav-user img {
  width: 28px; height: 28px;
  border-radius: 50%;
  outline: 2px solid var(--accent);
  background: var(--card);
  object-fit: cover;
}

.nav-user span {
  font-size: 0.82rem;
  color: var(--text);
  padding-right: 4px;
  letter-spacing: 0.3px;
}

.nav-user-logout,
.nav-user-edit {
  background: none;
  border: none;
  color: var(--muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-user-logout:hover,
.nav-user-edit:hover { color: var(--accent); background: rgba(232, 53, 74, 0.1); }

/* ── DROPDOWN DE BUSCA (sugestões @usuário) ───────────────── */
.nav-search { position: relative; }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  z-index: 200;
  max-height: 340px;
  overflow-y: auto;
  animation: ddIn 0.18s ease both;
}

@keyframes ddIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.search-item:hover { background: rgba(232, 53, 74, 0.08); }

.search-item img {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  flex-shrink: 0;
}

.search-item-info { flex: 1; min-width: 0; }

.search-item-name {
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-handle {
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.search-item-count {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface);
}

.search-empty {
  padding: 18px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 30px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-back:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }


/* =============================================================
   PÁGINA: PERFIL  (perfil.html)
   ============================================================= */

/* ── BANNER ─────────────────────────────────────────────────── */
.banner-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.5) saturate(1.2);
  transition: transform 8s ease;
}

.banner-wrap:hover .banner-img { transform: scale(1.04); }

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(13, 13, 15, 0.55) 70%,
    var(--bg) 100%
  );
}

.banner-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
}

/* ── PROFILE HEADER ─────────────────────────────────────────── */
.profile-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.profile-top {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  transform: translateY(-48px);
  margin-bottom: -48px;
}

.avatar-wrap { position: relative; flex-shrink: 0; }

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  outline: 3px solid var(--accent);
  object-fit: cover;
  display: block;
  box-shadow: 0 0 28px rgba(232, 53, 74, 0.35);
  background: var(--surface);
}

.avatar-status {
  position: absolute;
  bottom: 8px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--bg);
}

.profile-info { flex: 1; padding-bottom: 6px; }

.profile-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.profile-handle {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 5px 0 10px;
}

.profile-bio {
  font-size: 0.9rem;
  color: #b8b4b0;
  max-width: 500px;
  line-height: 1.6;
}

.profile-stats {
  display: flex;
  gap: 32px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── SEÇÃO DE AUTOMÓVEIS ────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 52px auto 0;
  padding: 0 40px 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(232, 53, 74, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 53, 74, 0.48);
}
.btn-add:active { transform: translateY(0); }

/* ── GRID DE CARROS ─────────────────────────────────────────── */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.car-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  animation: fadeUp 0.4s ease both;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 53, 74, 0.38);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.car-img-wrap {
  position: relative;
  height: 196px;
  overflow: hidden;
}

.car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  background: var(--surface);
}

.car-card:hover .car-img { transform: scale(1.07); }

.car-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.65) 100%);
}

.car-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.7rem;
  padding: 4px 12px;
  color: var(--text);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.car-km-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(232, 53, 74, 0.88);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  color: #fff;
}

.car-body { padding: 18px 20px 20px; }

.car-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 8px;
}

.car-desc {
  font-size: 0.83rem;
  color: #8e8c8a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.car-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  background: var(--tag-bg);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.tag.fuel { background: rgba(255, 107, 53, 0.12); color: var(--accent2); }

.car-date {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }

.empty-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #444;
}

.empty-sub { font-size: 0.88rem; margin-top: 6px; color: #444; }

/* ── TOAST ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  background: var(--card);
  border: 1px solid rgba(232, 53, 74, 0.4);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 320px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon { font-size: 1.3rem; }
.toast-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.toast-sub { font-size: 0.78rem; color: var(--muted); }


/* =============================================================
   PÁGINA: CADASTRO DE CARRO  (cadastrocarro.html)
   ============================================================= */

/* ── BARRA DE PROGRESSO ─────────────────────────────────────── */
.progress-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0;
  transition: width 0.4s ease;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.page-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* ── SEÇÕES DO FORMULÁRIO ───────────────────────────────────── */
.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 20px;
}

.form-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 16px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── UPLOAD DE MÍDIA ────────────────────────────────────────── */
.media-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.upload-box {
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.upload-box:hover {
  border-color: var(--accent);
  background: rgba(232, 53, 74, 0.04);
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-cover  { height: 160px; }
.upload-gallery { min-height: 160px; }
.upload-icon { font-size: 2rem; margin-bottom: 8px; }

.upload-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 0 12px;
  line-height: 1.4;
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.gallery-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  width: 100%;
  align-items: center;
}

/* ── Wrapper de cada thumb (imagem + botão remover) ── */
.thumb-wrap {
  position: relative;
  width: 88px;
  height: 70px;
  border-radius: 8px;
  overflow: visible;
  flex-shrink: 0;
}

.gallery-thumb {
  width: 88px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.thumb-wrap .gallery-thumb { width: 100%; height: 100%; }

/* Botão "×" para remover individual */
.thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--card);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  transition: transform 0.15s, background 0.15s;
}
.thumb-remove:hover { transform: scale(1.15); background: var(--accent2); }

/* Botão de remover para foto de capa/avatar/banner (canto da foto) */
.cover-remove {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  z-index: 4;
}

/* Indicador visual de que o upload está "ocupado" */
.upload-box.has-preview {
  border-style: solid;
  border-color: rgba(232, 53, 74, 0.5);
}
.upload-box.has-preview .upload-icon,
.upload-box.has-preview .upload-label {
  display: none;
}

/* Botão "+ Adicionar mais" ao lado das thumbs */
.thumb-add {
  width: 88px;
  height: 70px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.7rem;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  flex-shrink: 0;
}
.thumb-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 53, 74, 0.04);
}
.thumb-add-icon {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
}
.thumb-add small {
  font-size: 0.65rem;
  letter-spacing: 0.3px;
}

/* Contador final quando atinge o limite */
.thumb-counter {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0 10px;
  align-self: center;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
}

/* ── CAMPOS ─────────────────────────────────────────────────── */
.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.field-row.single { grid-template-columns: 1fr; }
.field-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.field label .req { color: var(--accent); margin-left: 2px; }

.field input,
.field textarea,
.field select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  border-radius: 10px;
  outline: none;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: #3a3a42; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 53, 74, 0.12);
}

.field input.invalid,
.field textarea.invalid,
.field select.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

.field-hint { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.field-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 2px;
  display: none;
}

.field input.invalid  ~ .field-error,
.field textarea.invalid ~ .field-error,
.field select.invalid ~ .field-error { display: block; }

/* ── BADGE PÚBLICO ──────────────────────────────────────────── */
.public-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 53, 74, 0.1);
  border: 1px solid rgba(232, 53, 74, 0.25);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── BOTÕES DE AÇÃO ─────────────────────────────────────────── */
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.btn-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 13px 28px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cancel:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }

.btn-submit {
  flex: 1;
  max-width: 360px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(232, 53, 74, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 53, 74, 0.5);
}

.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto;
}

.btn-submit.loading span   { display: none; }
.btn-submit.loading .spinner { display: block; }


/* =============================================================
   MODAL DE AUTENTICAÇÃO (Login / Registro)
   ============================================================= */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal.show { display: flex; animation: authOverlayIn 0.25s ease both; }

@keyframes authOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(232, 53, 74, 0.08) inset;
  animation: authCardIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Faixa decorativa no topo do card */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  border-radius: 2px;
}

.auth-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.auth-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.auth-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-align: center;
}

.auth-sub {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-field label .req { color: var(--accent); margin-left: 2px; }

.auth-field input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.auth-field input::placeholder { color: #3a3a42; }
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 53, 74, 0.12);
}

/* Input com prefixo @ */
.handle-input {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.handle-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 53, 74, 0.12);
}
.handle-input > span {
  display: inline-flex;
  align-items: center;
  padding: 0 10px 0 14px;
  color: var(--accent);
  font-weight: 700;
}
.handle-input > input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 11px 14px 11px 2px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
}

.auth-hint {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  margin: -4px 0 14px;
}

.auth-error {
  color: var(--error);
  font-size: 0.82rem;
  min-height: 1.2em;
  margin: 4px 0 12px;
}

.auth-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(232, 53, 74, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 53, 74, 0.5);
}
.auth-submit:active { transform: translateY(0); }

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 18px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.2s;
}
.auth-switch a:hover { color: var(--accent2); text-decoration: underline; }


/* =============================================================
   PÁGINA DE REGISTRO (registro.html)
   ============================================================= */

/* Linha de identidade: avatar à esquerda + campos à direita */
.reg-identity-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.upload-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  flex-shrink: 0;
}

.upload-avatar.has-preview {
  border-style: solid;
  border-color: var(--accent);
}

.upload-avatar .preview-thumb {
  border-radius: 50%;
}

.upload-banner {
  width: 100%;
  height: 140px;
  border-radius: 12px;
}

.upload-banner .preview-thumb {
  border-radius: 10px;
}

.reg-identity-fields { min-width: 0; }


/* =============================================================
   PÁGINA: CARRO (carro.html)
   ============================================================= */

/* ── CARROSSEL ── */
.car-carousel {
  position: relative;
  width: 100%;
  height: 480px;
  background: #050507;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background: var(--surface) center/cover no-repeat;
  position: relative;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 7, 0.85) 100%);
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 13, 15, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}
.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: translateY(-50%);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ── CHIP DO DONO sobreposto ao carrossel ── */
.owner-chip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  background: rgba(20, 20, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 500px;
  min-width: 280px;
  text-decoration: none;
  color: var(--text);
  z-index: 4;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, border-color 0.2s;
}
.owner-chip:hover {
  transform: translateX(-50%) translateY(-3px);
  border-color: var(--accent);
}

.owner-chip-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  outline: 2px solid var(--accent);
  flex-shrink: 0;
  background: var(--surface);
  object-fit: cover;
}

.owner-chip-info { flex: 1; min-width: 0; }

.owner-chip-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.owner-chip-handle {
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.owner-chip-bio {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── FICHA TÉCNICA + DESCRIÇÃO ── */
.car-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.car-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.car-spec-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
  position: relative;
  padding-bottom: 12px;
}

.car-spec-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

.spec-list {
  list-style: none;
  margin-top: 22px;
  padding: 0;
}

.spec-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--text);
}

.spec-list li strong {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 2px;
}

/* Ações do proprietário na página do carro */
.car-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.btn-edit-car {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.btn-edit-car:hover {
  border-color: var(--accent);
  background: rgba(232, 53, 74, 0.06);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Botão de excluir mais compacto (para ficar lado a lado com o editar) */
.btn-danger-sm {
  padding: 9px 18px !important;
  font-size: 0.85rem !important;
}

.car-description {
  background: var(--accent);
  background: linear-gradient(135deg, rgba(232, 53, 74, 0.85), rgba(255, 107, 53, 0.75));
  border-radius: 18px;
  padding: 28px 30px;
  color: #fff;
  box-shadow: 0 12px 40px rgba(232, 53, 74, 0.2);
}

.car-description-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.car-description-body {
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.page-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0 36px;
}


/* ── POSTS ── */
.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 14px;
}

.posts-title { margin: 0; }

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 30px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.filter-chip:hover {
  border-color: rgba(232, 53, 74, 0.45);
}
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-chip.active .filter-chip-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.filter-chip-count {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
}

/* Dots de cor por tipo */
.filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.filter-dot[data-dot="preventiva"]    { background: #10b981; }
.filter-dot[data-dot="corretiva"]     { background: #f59e0b; }
.filter-dot[data-dot="estetica"]      { background: #a855f7; }
.filter-dot[data-dot="upgrade"]       { background: var(--accent); }
.filter-dot[data-dot="documentacao"]  { background: #3b82f6; }

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── POST CARD ── */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.post-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  outline: 2px solid var(--accent);
  background: var(--surface);
  object-fit: cover;
  flex-shrink: 0;
}

.post-author { flex: 1; min-width: 0; }

.post-author-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.post-author-handle {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.post-tipo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid;
  white-space: nowrap;
}

.post-tipo-badge[data-tipo="preventiva"]   { color: #10b981; border-color: #10b98144; background: #10b98112; }
.post-tipo-badge[data-tipo="corretiva"]    { color: #f59e0b; border-color: #f59e0b44; background: #f59e0b12; }
.post-tipo-badge[data-tipo="estetica"]     { color: #a855f7; border-color: #a855f744; background: #a855f712; }
.post-tipo-badge[data-tipo="upgrade"]      { color: var(--accent); border-color: rgba(232,53,74,0.3); background: rgba(232,53,74,0.08); }
.post-tipo-badge[data-tipo="documentacao"] { color: #3b82f6; border-color: #3b82f644; background: #3b82f612; }

.post-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.post-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-style: italic;
}

.post-body ul {
  margin: 0;
  padding-left: 22px;
  list-style: disc;
}

.post-body ul li {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
}

.post-body ul li strong {
  font-weight: 600;
  color: var(--text);
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.post-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s;
}
.post-images img:hover { transform: scale(1.03); }

.post-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.post-share-btn {
  background: none;
  border: none;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.post-share-btn:hover { color: var(--accent); background: rgba(232, 53, 74, 0.08); }


/* ── MODAL DE NOVO POST: chips de tipo ── */
.tipo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tipo-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}
.tipo-pick:hover {
  border-color: rgba(232, 53, 74, 0.5);
}
.tipo-pick.selected {
  border-color: var(--accent);
  background: rgba(232, 53, 74, 0.1);
}

/* Override do .post-card original (estilo do PDF) quando usado dentro do modal */
.auth-card.post-card {
  max-width: 540px;
  padding: 32px 30px 26px;
  border: 1px solid var(--border);
}


/* =============================================================
   PÁGINA DE EDIÇÃO + EXCLUSÃO DE CONTA
   ============================================================= */

/* Ícone de cadeado nos labels de campos bloqueados */
.lock-badge {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  opacity: 0.7;
  cursor: help;
}

/* Inputs / wrappers bloqueados */
.handle-input.locked {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.02);
  cursor: not-allowed;
}
.handle-input.locked input { cursor: not-allowed; }

input[readonly][disabled],
textarea[readonly][disabled],
select[readonly][disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

/* === ZONA DE PERIGO === */
.danger-zone {
  margin-top: 56px;
  padding: 24px 26px;
  border: 1px solid rgba(232, 53, 74, 0.35);
  background: linear-gradient(180deg,
              rgba(232, 53, 74, 0.06) 0%,
              rgba(232, 53, 74, 0.02) 100%);
  border-radius: 14px;
}

.danger-zone-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.danger-zone-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Botão vermelho */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 30px;
  border: 1px solid var(--accent);
  background: rgba(232, 53, 74, 0.1);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.btn-danger:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn-danger:active { transform: translateY(0); }
.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* === MODAL DE EXCLUSÃO === */
.auth-card.delete-card {
  max-width: 480px;
  padding: 32px 30px 26px;
}

.delete-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 8px;
}

.delete-list {
  margin: 0 0 22px;
  padding-left: 22px;
  list-style: disc;
}

.delete-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 6px;
}

.delete-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: var(--text);
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}


/* =============================================================
   RESPONSIVO
   ============================================================= */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-search { width: 180px; }
  .nav-user span { display: none; }     /* só avatar+logout em telas pequenas */

  /* perfil */
  .profile-header { padding: 0 20px; }
  .profile-top {
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-36px);
    margin-bottom: -36px;
    gap: 12px;
  }
  .profile-name  { font-size: 2rem; }
  .section { padding: 0 20px 60px; }
  .cars-grid { grid-template-columns: 1fr; }

  /* cadastro */
  .page { padding: 32px 20px 60px; }
  .media-row { grid-template-columns: 1fr; }
  .field-row,
  .field-row.triple { grid-template-columns: 1fr; }
  .submit-row { flex-direction: column; }
  .btn-submit { max-width: 100%; }

  /* modal */
  .auth-card { padding: 28px 22px 24px; border-radius: 18px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-title { font-size: 1.7rem; }

  /* registro */
  .reg-identity-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .upload-avatar { width: 150px; height: 150px; }

  /* página do carro */
  .car-carousel { height: 360px; }
  .car-page { padding: 32px 20px 60px; }
  .car-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .owner-chip {
    max-width: calc(100% - 32px);
    min-width: 0;
    width: calc(100% - 32px);
    padding: 10px 14px 10px 10px;
    bottom: 16px;
  }
  .owner-chip-name { font-size: 1.2rem; }
  .owner-chip-bio  { -webkit-line-clamp: 1; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }

  /* posts */
  .posts-header { flex-wrap: wrap; }
  .filter-row { gap: 6px; }
  .filter-chip { padding: 6px 12px; font-size: 0.78rem; }
  .tipo-grid { grid-template-columns: 1fr; }
  .post-images { grid-template-columns: 1fr 1fr; }

  /* edição: danger zone + modal */
  .danger-zone { padding: 18px 18px; }
  .delete-actions { flex-direction: column-reverse; }
  .delete-actions .btn-cancel,
  .delete-actions .btn-danger { width: 100%; }
}
