/* =========================================================
   RSBuild UI
   Conservative cleanup build
   - exact duplicate rules removed
   - media queries left intact unless identical duplicates existed
   - no intentional layout or visual changes
   ========================================================= */

/* =========================================================
   RSBuild UI
   Consolidated / deduplicated / responsive
   Includes former dm.css
   ========================================================= */

/* =========================================================
   01. Design tokens
   ========================================================= */
:root {
  --canvas: #e9edf2;
  --panel: #ffffff;
  --panel-h: #f3f5f8;
  --border: #cfd6df;
  --border2: #bfc8d4;
  --text: #2b3441;
  --muted: #6b7685;
  --blue: #2e5ea9;
  --blue1: #2e5ea9;
  --blue2: #3b78d8;
  --top1: #3b475b;
  --top2: #2a3342;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  --r: 8px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --topbar-h: 73px;
}

/* =========================================================
   02. Reset / base / utilities
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--topbar-h);
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.mt {
  margin-top: 14px;
}

.mt2 {
  margin-top: 12px;
}

.rs-main {
  flex: 1 0 auto;
  padding: 0 20px;
  margin-top: clamp(16px, 2vw, 28px);
}

@media (max-width: 640px) {
  .rs-page {
    padding: 0 14px;
  }
}

.rs-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px 50px;
}

.rs-page,
.dash,
.feedcard,
.box,
.auth-card,
.garage-profile-header,
.garage-card,
.pv-scope .pv-page,
.pv-scope .pv-left,
.pv-scope .pv-right,
.fhmain,
.cmt-body,
.pv-scope .pv-cbody,
.garage-profile-header__meta,
.account-shell,
.account-grid,
.account-sections,
.account-form {
  min-width: 0;
}

/* =========================================================
   03. Shared media / avatars / presence / tooltips
   ========================================================= */
.rs-avatar img,
.avatar img,
.cmt-avatar img,
.pv-avatar img,
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.presence-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.presence-dot {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  box-sizing: border-box;
}

.presence-dot.is-online {
  background: #22c55e;
}

.presence-dot.is-away {
  background: #f59e0b;
}

.presence-dot.is-offline {
  background: #9ca3af;
}

.presence-dot.hidden {
  display: none !important;
}

.nav-presence-dot {
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(42, 51, 66, 0.95);
}

.avatar-presence-dot,
.msg-presence-dot {
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
}

.dm-presence-sep {
  margin: 0 4px;
  opacity: 0.5;
}

.dm-presence-text {
  min-height: 14px;
  font-size: 12px;
  line-height: 1.2;
}

.rs-ico[data-tooltip],
.rs-user-btn[data-tooltip],
.garage-verified-badge[data-tooltip] {
  position: relative;
}

.rs-ico[data-tooltip]::after,
.rs-user-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 9999;
  display: inline-block;
  width: max-content;
  min-width: max-content;
  padding: 7px 10px;
  border-radius: 6px;
  background: #303131;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.rs-ico[data-tooltip]::before,
.rs-user-btn[data-tooltip]::before {
  content: "";
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 9998;
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent #303131 transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.rs-ico[data-tooltip]:hover::after,
.rs-ico[data-tooltip]:hover::before,
.rs-ico[data-tooltip]:focus-visible::after,
.rs-ico[data-tooltip]:focus-visible::before,
.rs-user-btn[data-tooltip]:hover::after,
.rs-user-btn[data-tooltip]:hover::before,
.rs-user-btn[data-tooltip]:focus-visible::after,
.rs-user-btn[data-tooltip]:focus-visible::before,
.garage-verified-badge[data-tooltip]:hover::after,
.garage-verified-badge[data-tooltip]:hover::before,
.garage-verified-badge[data-tooltip]:focus-visible::after,
.garage-verified-badge[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   04. Header / navigation / user dropdown
   ========================================================= */
.rs-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(var(--top1), var(--top2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25) inset;
}

.rs-top-inner {
  max-width: var(--maxw);
  min-height: 70px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rs-logo {
  color: #e9eef6;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.rs-logo span {
  font-weight: 800;
  opacity: 0.95;
}

.rs-brand {
  width: 230px;
  min-width: 0;
  height: 70px;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex: 0 0 230px;
  line-height: 0;
}

.rs-brand-logo {
  width: auto;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
  margin-top: 5px;
}

.rs-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.rs-nav-link {
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  color: rgba(233, 238, 246, 0.92);
  font-weight: 800;
  white-space: nowrap;
}

.rs-nav-link:hover {
  color: #fff;
}

.rs-nav-link.active {
  border-bottom-color: #e9eef6;
}

.caret {
  opacity: 0.8;
}

.rs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rs-ico {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  touch-action: manipulation;
}

.rs-ico:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rs-svg svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.92);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rs-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(42, 51, 66, 0.95);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

.rs-badge.pulse {
  animation: badgePulse 1.2s ease-in-out infinite;
}

.rs-avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#ffffff, #cfd7e6);
  color: #22314b;
  font-weight: 900;
}

/* user dropdown */
.rs-user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.rs-user-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.rs-user-dd {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 50;
  min-width: 180px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.rs-dd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 10px;
}

.rs-dd-head-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 42px;
  border: 1px solid rgba(207, 214, 223, 0.9);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#ffffff, #dbe3ef);
  color: #22314b;
  font-weight: 900;
}

.rs-dd-head-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-dd-head-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.rs-dd-head-name {
  color: #374151;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  word-break: break-word;
}

.rs-dd-head-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
}

.rs-dd-head-sep {
  height: 1px;
  margin: 0 4px 6px;
  background: #e5e7eb;
}

.rs-dd-item {
  display: block;
  padding: 10px 12px;
  color: #2b3441;
  font-weight: 900;
}

.rs-dd-item:hover {
  background: #f3f5f8;
}

.rs-dd-item.danger {
  color: #b42318;
}

.rs-dd-sep {
  height: 1px;
  background: var(--border);
}

/* guest auth buttons in header */
.rs-actions .auth-login,
.rs-actions .auth-signup {
  min-width: 96px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: none;
}

.rs-actions .auth-login {
  background: #ffffff;
  color: #2f66b8;
  border: 1px solid #d7dce5;
}

.rs-actions .auth-signup {
  background: linear-gradient(#3878d4, #2f66b8);
  border-color: #2f66b8;
  color: #fff;
}

/* =========================================================
   05. Footer
   ========================================================= */
.footer {
  flex-shrink: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f9fafb;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  font-size: 13px;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #111827;
}

/* =========================================================
   06. Layout / boxes / buttons / forms / flash
   ========================================================= */
.dash {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.dash--single {
  grid-template-columns: 1fr;
}

.dash-center--full {
  grid-column: 1 / -1;
}

.box {
  margin-top: 10px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.box-h {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(#f6f7f9, #eef1f5);
  border-bottom: 1px solid var(--border);
}

.box-h h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.box-b {
  padding: 12px;
}

.btn {
  padding: 10px 12px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#ffffff, #f2f4f7);
  color: #2b3441;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  touch-action: manipulation;
}

.btn:hover {
  background: linear-gradient(#ffffff, #e9edf3);
}

.btn.primary {
  background: linear-gradient(#3b78d8, #2e5ea9);
  border-color: #2b58a3;
  color: #fff;
}

.btn.small {
  padding: 8px 10px;
  font-size: 12px;
}

.btn.full {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 14px;
}

.btn.danger {
  background: linear-gradient(#ef4444, #b91c1c);
  border-color: #991b1b;
  color: #fff;
}

.btn.danger:hover {
  background: linear-gradient(#f05252, #c81e1e);
}

button.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.box-cta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

/* forms */
.box form {
  max-width: 100%;
}

.box label {
  display: block;
  margin: 10px 0 6px;
  color: #2b3441;
  font-weight: 900;
}

.box input[type="text"],
.box input[type="number"],
.box input[type="email"],
.box input[type="password"],
.box input[type="date"],
.box select,
.box textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
}

.box textarea {
  min-height: 110px;
  resize: vertical;
  font-weight: 600;
}

.box .form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.car-save-spacer {
  height: 12px;
}

/* flash */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.flash {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: var(--shadow);
  color: #fff;
}

.flash-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.flash-msg {
  line-height: 1.3;
  font-weight: 900;
}

.flash-ok {
  background: #198754;
  border-color: #157347;
}

.flash-err {
  background: #dc3545;
  border-color: #bb2d3b;
}

@keyframes flashDismissSmooth {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 120px;
    padding: 10px 12px;
  }

  70% {
    opacity: 1;
    transform: translateY(0);
    max-height: 120px;
    padding: 10px 12px;
  }

  100% {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    padding: 0 12px;
  }
}

.flash-auto {
  overflow: hidden;
  will-change: opacity, transform, max-height;
  animation: flashDismissSmooth 3.6s ease forwards;
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  margin-right: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: #2b3441;
  font-size: 12px;
  font-weight: 900;
}

.pill-ok {
  border-color: #b7d7ff;
  background: #eef6ff;
}

.pill-vis {
  opacity: 0.9;
}

/* =========================================================
   07. Shared lists / cards / groups / uploads
   ========================================================= */
.carlist,
.grouplist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carrow,
.grow {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}

.carrow {
  padding: 6px;
}

.grow {
  padding: 8px;
}

.carrow:hover,
.grow:hover {
  background: #f3f5f8;
}

.carthumb {
  width: 56px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f3f6;
  flex-shrink: 0; /* prevents shrinking in flex layouts */
}

.carthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* removes inline image spacing issues */
}

.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.carname,
.gname {
  font-weight: 900;
}

.carmeta,
.gmeta {
  color: var(--muted);
  font-size: 12px;
}

.carmeta {
  margin-top: 2px;
}

.gicon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edf7;
}

.gstar {
  margin-left: auto;
  color: #9aa4b2;
  font-size: 14px;
}

.trendbuild .trendimg {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f3f6;
}

.trendbuild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trendtitle {
  margin-top: 10px;
  font-weight: 900;
}

.trendmeta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* uploads */
.file-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-btn {
  white-space: nowrap;
}

.file-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-btn {
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.file-upload-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.file-upload-name {
  color: #6b7280;
  font-size: 13px;
}

/* =========================================================
   08. Composer / inline post / post create helpers
   ========================================================= */
.composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pen {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f9;
  color: #64748b;
}

.composer-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.composer-input:disabled {
  background: #fbfbfc;
  color: #9aa4b2;
}

.composer-form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-select {
  width: 100%;
  min-height: 44px;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.composer-select:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(59, 120, 216, 0.16);
}

#homePostControls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-inline {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.composer .box-b {
  padding: 10px 12px;
}

.mycars-hero {
  display: block;
  height: 98px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f3f6;
}

.mycars-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-post label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 900;
}

.inline-post input[type="date"],
.inline-post input[type="text"],
.inline-post input[type="number"],
.inline-post textarea,
.inline-post select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.inline-post textarea {
  min-height: 120px;
  resize: vertical;
  font-weight: 600;
}

.inline-post input[type="date"]:focus,
.inline-post input[type="text"]:focus,
.inline-post input[type="number"]:focus,
.inline-post textarea:focus,
.inline-post select:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(59, 120, 216, 0.16);
}

.inline-post input::placeholder,
.inline-post textarea::placeholder {
  color: var(--muted);
}

.inline-post input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
  position: relative;
}

.inline-post input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  cursor: pointer;
}

.inline-post input[type="date"]::-webkit-datetime-edit,
.inline-post input[type="date"]::-webkit-datetime-edit-text,
.inline-post input[type="date"]::-webkit-datetime-edit-month-field,
.inline-post input[type="date"]::-webkit-datetime-edit-day-field,
.inline-post input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text);
}

.inline-post input[type="file"] {
  width: 100%;
}

.inline-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 14px;
}

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

/* post new helpers */
.post-new-top {
  margin-bottom: 20px;
}

.post-new-top__actions {
  display: flex;
  align-items: flex-start;
}

.post-new-error {
  margin-bottom: 12px;
}

.post-new-section {
  margin-top: 18px;
}

.post-new-section__title {
  margin: 0;
  font-size: 16px;
}

.post-new-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.post-new-datewrap {
  position: relative;
}

.post-new-date {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: inherit;
  line-height: 1.2;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.post-new-date:hover {
  border-color: #bcc5cf;
}

.post-new-date:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.post-new-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

.post-new-tip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-new-tip + .post-new-tip {
  margin-top: 16px;
}

.post-new-tip__title {
  font-weight: 600;
  line-height: 1.25;
}

.post-new-tip__text {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

/* Post edit helpers */
.post-edit-flash {
  margin-bottom: 12px;
}

.post-edit-spacer {
  height: 16px;
}

.post-edit-section {
  margin-top: 18px;
}

.post-edit-section-title {
  margin: 0;
  font-size: 16px;
}

.post-edit-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-edit-check-label-offset {
  margin-top: 28px;
}

.post-edit-grid-help {
  margin-top: 10px;
}

.post-edit-upload-block {
  margin-top: 18px;
}

.post-edit-upload-title {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2a37;
}

.post-edit-upload-note {
  margin: 0 0 12px;
}

.post-edit-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-edit-file-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.post-edit-file-row .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.post-edit-file-name {
  font-size: 14px;
  line-height: 1.2;
  color: #374151;
}

/* Post image grid */
.pe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pe-tile {
  position: relative;
  width: 126px;
  height: 106px;
  overflow: hidden;
  border: 1px solid #d7dce3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
  cursor: grab;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, opacity 0.12s ease;
}

.pe-tile:hover {
  border-color: #b9c5d6;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
}

.pe-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pe-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.pe-tile.dragging {
  opacity: 0.6;
  transform: scale(0.98);
  cursor: grabbing;
}

.pe-tile.drop-target {
  border-color: #2f6fdb;
  box-shadow: 0 0 0 3px rgba(47, 111, 219, 0.18);
}

@media (max-width: 640px) {
  .pe-tile {
    width: 108px;
    height: 92px;
  }

  .post-edit-file-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   09. Feed / cards / post menus / comments / likes
   ========================================================= */
.feedcard {
  position: relative;
  z-index: 0;
  margin-top: 12px;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feedcard.is-hidden-post {
  opacity: 0.65;
}

.car-hero + .feedcard {
  z-index: 20;
}

.feed-h {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#fff, #dbe3ef);
  font-weight: 900;
}

.fhmain {
  flex: 1;
}

.fhrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.uname {
  font-weight: 900;
}

.ago {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fhs {
  margin-top: 2px;
  font-size: 13px;
}

.chev {
  color: #9aa4b2;
  font-weight: 900;
}

.feed-txt {
  padding: 0 12px 12px;
  color: #2b3441;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* post menu */
.post-menu-wrap {
  position: relative;
  z-index: 30;
  margin-left: auto;
  flex: 0 0 auto;
}

.post-menu-trigger {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  color: #9aa4b2;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.post-menu-trigger:hover {
  background: #eef1f5;
  color: var(--text);
}

.post-menu-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 120, 216, 0.16);
}

.post-menu-trigger span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  display: block;
  background: currentColor;
}

.post-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 160px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.post-menu-item {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.post-menu-item:hover {
  background: #f3f5f8;
}

.post-menu-item--danger {
  color: #b42318;
}

.post-menu-item--danger:hover {
  background: #fff1f2;
}

/* feed photos */
.photos {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
}

.pbig {
  grid-row: 1 / span 2;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f3f6;
}

.pbig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.psmall {
  position: relative;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f3f6;
}

.psmall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcount {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

/* stats / comments preview */
.feed-stats {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  background: linear-gradient(#f7f8fa, #eef1f5);
  font-weight: 900;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat.right {
  margin-left: auto;
  color: #6b7685;
}

.stat-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-ico svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-ico.eye {
  color: #6b7685;
}

.stat-ico.heart {
  color: #d33b3b;
}

.stat-ico.heart svg {
  fill: none;
  stroke: #d33b3b;
}

button.like-btn.liked svg {
  fill: #d33b3b;
  stroke: #d33b3b;
}

.comment-preview {
  border-top: 1px solid var(--border);
  background: #f6f7f9;
}

.cmt {
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid rgba(207, 214, 223, 0.65);
}

.cmt:first-child {
  border-top: 0;
}

.cmt-avatar {
  width: 28px;
  height: 28px;
  overflow: hidden;
  flex: 0 0 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.cmt-body {
  flex: 1 1 auto;
}

.cmt-head {
  margin-bottom: 3px;
  line-height: 1.15;
}

.cuser {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.cmt-line {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.ctext {
  color: var(--text);
}

.cago {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* likes */
.like-btn {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  color: var(--muted);
}

button.like-btn[data-loading="1"] {
  opacity: 0.55;
  cursor: wait;
}

.like-btn:hover {
  filter: brightness(0.95);
}

.like-popover {
  position: fixed;
  z-index: 9999;
  min-width: 180px;
  max-width: 240px;
  padding: 10px 10px 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -100%);
}

.like-popover .muted {
  color: var(--muted);
}

.like-popover-title {
  margin: 0 0 8px;
  font-weight: 900;
}

.like-popover-users {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.like-popover-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.like-avatar {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f6;
  color: #2b3441;
  font-weight: 900;
}

.like-username {
  font-weight: 800;
}

.like-popover-more {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

/* follow */
.fhside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.follow-btn.is-following {
  background: linear-gradient(#111, #000);
  border-color: #000;
  color: #fff;
}

.follow-btn[data-loading="1"] {
  opacity: 0.7;
  pointer-events: none;
}

/* =========================================================
   10. Build cards / right rail
   ========================================================= */
.buildgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.buildcard,
.modcard {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.buildcard {
  box-shadow: var(--shadow);
}

.buildimg {
  height: 90px;
  border-bottom: 1px solid var(--border);
  background: #f1f3f6;
}

.buildimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buildname {
  padding: 8px 10px 0;
  font-weight: 900;
}

.buildmeta,
.buildlikes,
.modmeta {
  color: var(--muted);
  font-size: 12px;
}

.buildmeta {
  padding: 0 10px;
}

.buildlikes {
  padding: 6px 10px 10px;
}

.modimg {
  height: 110px;
  border-bottom: 1px solid var(--border);
  background: #f1f3f6;
}

.modrow {
  padding: 10px 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modbrand,
.price {
  font-weight: 900;
}

.modmeta {
  padding: 6px 10px 10px;
}

.perks {
  margin: 0;
  padding-left: 18px;
  color: #2b3441;
}

.perks li {
  margin: 6px 0;
}

/* =========================================================
   11. Onboarding
   ========================================================= */
.onboarding-card,
.garage-onboarding,
.car-onboarding {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.onboarding-card--welcome,
.garage-onboarding--welcome,
.car-onboarding--welcome {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.onboarding-card__head,
.garage-onboarding__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.onboarding-card__sub,
.garage-onboarding__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.onboarding-card__badge,
.garage-onboarding__badge {
  min-width: 56px;
  height: 36px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.onboarding-card__body,
.garage-onboarding__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onboarding-progress,
.garage-onboarding__progress,
.car-onboarding-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
}

.onboarding-progress,
.garage-onboarding__progress {
  background: rgba(0, 0, 0, 0.08);
}

.car-onboarding-progress {
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-progress span,
.garage-onboarding__progress span,
.car-onboarding-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #111;
}

.onboarding-steps,
.garage-onboarding__steps,
.car-onboarding-steps {
  display: grid;
  gap: 10px;
}

.onboarding-step,
.garage-onboarding__step,
.car-onboarding-step {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.onboarding-step,
.garage-onboarding__step {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.car-onboarding-step {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.onboarding-step:hover,
.garage-onboarding__step:hover,
.car-onboarding-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.onboarding-step:hover,
.garage-onboarding__step:hover {
  border-color: rgba(0, 0, 0, 0.14);
}

.car-onboarding-step:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.onboarding-step.is-done,
.garage-onboarding__step.is-done {
  background: #fafafa;
}

.car-onboarding-step.is-done {
  opacity: 0.88;
}

.onboarding-step__icon,
.garage-onboarding__icon,
.car-onboarding-step__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.onboarding-step__label,
.garage-onboarding__label,
.car-onboarding-step__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.onboarding-card__actions,
.garage-onboarding__actions,
.car-onboarding-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.car-owner-prompt {
  margin-top: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.car-owner-prompt__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.car-owner-prompt__text {
  max-width: 680px;
  color: #a6adb6;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   12. Garage / profile / verified
   ========================================================= */
.garage-page {
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}

.garage-head {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.garage-head__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.garage-head__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef2ff;
  border: 1px solid #d9e2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  flex: 0 0 54px;
}

.garage-head__icon svg {
  width: 24px;
  height: 24px;
}

.garage-head__text {
  min-width: 0;
}

.garage-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: #16202c;
}

.garage-sub {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.5;
}

.garage-head__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.garage-empty__inner {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.garage-empty__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #16202c;
}

.garage-empty__text {
  margin: 0;
  max-width: 520px;
  color: #6b7280;
  line-height: 1.6;
}

.garage-grid,
.garage-profile-grid {
  display: grid;
}

.garage-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.garage-profile-grid {
  margin-top: 14px;
  margin-left: 30px;
  margin-right: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.garage-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: auto;
  min-height: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.garage-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
  overflow: hidden;
  flex: 0 0 auto;
}

.garage-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.garage-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 700;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.garage-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}

.garage-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.garage-card__titlewrap {
  min-width: 0;
  flex: 1 1 auto;
}

.garage-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #16202c;
}

.garage-card__title a {
  color: inherit;
  text-decoration: none;
}

.garage-card__title a:hover {
  text-decoration: underline;
}

.garage-card__meta {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.garage-badge {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.garage-badge--private {
  background: #111;
  border-color: #111;
  color: #fff;
}

.garage-badge--public {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #027a48;
}

.garage-badge--followers {
  background: #eff8ff;
  border-color: #b2ddff;
  color: #175cd3;
}

.garage-badge--unlisted {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.garage-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}

.garage-card__actions .btn {
  flex: 0 0 auto;
}

.garage-profile-car-card {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 0;
}

.feedcard.garage-profile-car-card {
  overflow: hidden;
}

.garage-profile-car-card__media-link {
  display: block;
  width: 100%;
  flex: 0 0 auto;
}

.garage-profile-car-card__media,
.car-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef2f7;
}

.garage-profile-car-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #6b7280;
  font-weight: 700;
}

.garage-profile-car-card__body {
  padding: 12px 14px 14px;
  box-sizing: border-box;
}

.garage-profile-car-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.garage-profile-car-card__meta > div:first-child {
  min-width: 0;
}

.garage-profile-car-card__meta .btn {
  flex-shrink: 0;
}

.garage-profile-car-card__title {
  font-weight: 700;
  line-height: 1.2;
  color: #16202c;
}

.garage-profile-car-card__sub {
  margin-top: 4px;
  color: #6b7685;
  line-height: 1.45;
}

.garage-profile-empty-card {
  margin-left: 30px;
  margin-right: 30px;
}

.garage-profile-header {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.garage-profile-header__cover {
  height: 118px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 35%, #374151 100%);
}

.garage-profile-header__body {
  position: relative;
  margin-top: -18px;
  padding: 0 22px 22px;
  box-sizing: border-box;
}

.garage-profile-header__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.garage-profile-header__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  background: #e5e7eb;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.garage-profile-header__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.garage-profile-header__meta {
  flex: 1 1 320px;
  padding-top: 25px;
  min-width: 0;
}

.garage-profile-header__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.garage-profile-header__title {
  margin: 0;
  color: #16202c;
  font-size: 28px;
  line-height: 1.1;
}

.garage-profile-header__sub {
  margin-top: 7px;
  color: #6b7685;
  line-height: 1.5;
}

.garage-profile-header__dot {
  display: inline-block;
  margin: 0 6px;
  opacity: 0.45;
}

.garage-profile-header__actions {
  margin-left: auto;
  padding-bottom: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.garage-profile-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.garage-profile-stat {
  padding: 14px 14px 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.garage-profile-stat__value {
  color: #16202c;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.garage-profile-stat__label {
  margin-top: 6px;
  color: #6b7685;
  font-size: 13px;
  line-height: 1.4;
}

.garage-profile-section-head {
  margin-top: 18px;
  margin-left: 30px;
  margin-right: 30px;
}

.garage-profile-section-head__title {
  margin: 0;
  color: #16202c;
  font-size: 24px;
  line-height: 1.2;
}

.garage-profile-section-head__sub {
  margin-top: 6px;
  color: #6b7685;
  line-height: 1.5;
}

.garage-page > h2,
.garage-page > p {
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}

/* verified badge */
.garage-verified-badge {
  position: relative;
  z-index: 30;
  min-height: 32px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  box-sizing: border-box;
  overflow: visible;
}

.garage-verified-badge__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.garage-verified-badge__label {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.garage-verified-badge--small {
  position: relative;
  z-index: 40;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  overflow: visible;
}

.garage-verified-badge--small:hover {
  background: rgba(255, 255, 255, 0.12);
}

.garage-verified-badge--small .garage-verified-badge__icon {
  width: 18px;
  height: 18px;
}

.garage-verified-badge--small .garage-verified-badge__label {
  display: none !important;
}

.garage-verified-badge[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -10px);
  margin-bottom: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.15s ease, transform 0.15s ease;
  background: #111827;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.garage-verified-badge[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* car_view layering fix for verified tooltip */
.feedcard.car-view-main-card,
.feedcard.car-view-main-card--with-hero,
.car-view-main-card,
.car-view-main-card--with-hero {
  position: relative;
  overflow: visible;
  z-index: 50;
}

.car-head-h,
.car-view-owner-row,
.owner-inline,
.fhmain,
.feed-h {
  position: relative;
  overflow: visible;
}

.car-view-owner-row,
.owner-inline {
  z-index: 30;
}

.passport-card,
.car-tab-bar,
.car-photos-card,
.car-empty-state-card,
.timeline-card {
  position: relative;
  z-index: 1;
}

/* tablet */
@media (max-width: 1024px) {
  .garage-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* mobile / smaller tablet */
@media (max-width: 768px) {
  .onboarding-card__head,
  .garage-onboarding__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .garage-head__main {
    align-items: flex-start;
  }

  .garage-title {
    font-size: 24px;
  }

  .garage-card__top {
    flex-direction: column;
  }

  .garage-profile-header__body {
    margin-top: -10px;
    padding: 0 16px 16px;
  }

  .garage-profile-header__avatar {
    width: 82px;
    height: 82px;
  }

  .garage-profile-header__title {
    font-size: 24px;
  }

  .garage-profile-header__meta {
    padding-top: 8px;
  }

  .garage-profile-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .garage-profile-section-head,
  .garage-profile-grid,
  .garage-profile-empty-card,
  .garage-page > h2,
  .garage-page > p {
    margin-left: 0;
    margin-right: 0;
  }

  .garage-profile-grid {
    padding-left: 6px;
    padding-right: 6px;
  }

  .garage-profile-section-head__title {
    font-size: 21px;
  }

  .garage-page {
    padding-left: 6px;
    padding-right: 6px;
  }

  .garage-head {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* narrow mobile */
@media (max-width: 640px) {
  .garage-grid {
    grid-template-columns: 1fr;
  }

  .garage-head__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-basis: 48px;
  }

  .garage-head__icon svg {
    width: 21px;
    height: 21px;
  }

  .garage-card__actions {
    flex-direction: column;
  }

  .garage-card__actions .btn {
    width: 100%;
  }

  .garage-profile-header__identity {
    align-items: flex-start;
  }

  .garage-profile-header__actions {
    width: 100%;
    margin-left: 0;
  }

  .garage-profile-stats {
    grid-template-columns: 1fr;
  }

  .garage-verified-badge {
    width: 100%;
    justify-content: center;
  }

  .rs-user-btn[data-tooltip]::before,
  .rs-user-btn[data-tooltip]::after,
  .garage-verified-badge[data-tooltip]::before {
    display: none !important;
  }

  .garage-verified-badge--small {
    width: 24px;
    height: 24px;
  }
}

/* =========================================================
   13. Car view / gallery / passport
   ========================================================= */
.car-hero {
  height: 220px;
  margin: 1px 0 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0 !important;
  background: #f1f3f6;
  box-shadow: var(--shadow);
}

.car-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-head-h {
  align-items: flex-start;
}

.car-actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.car-actions-right .btn {
  min-width: 92px;
  justify-content: center;
}

.car-actions .btn {
  min-width: 90px;
  text-align: center;
}

.owner-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.owner-row .mileage {
  white-space: nowrap;
}

.car-view-vis {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
}

.car-view-vis--private {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* gallery extras */
.car-img-actions {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-img-actions form {
  flex: 1 1 0;
  min-width: 0;
}

.car-img-actions .btn {
  width: 100%;
}

.car-img-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(42, 51, 66, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.car-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.car-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-thumb.is-locked > img {
  opacity: 0.55;
  filter: grayscale(0.15);
  transform: scale(1.02);
}

.car-thumb.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}

.car-thumb__lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  pointer-events: none;
}

.car-thumb__lock svg {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.car-thumb__lock-text {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* hidden banner */
.post-hidden-banner {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.12);
  color: #111827;
  font-size: 13px;
  line-height: 1.4;
}

.post-hidden-banner__reason {
  margin-top: 4px;
  color: #111827;
  font-weight: 600;
}

/* passport */
.car-passport {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #2c323c;
  border-radius: 8px;
  background: #0e1116;
}

.passport-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.passport-latest {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #2c323c;
  font-size: 14px;
}

/* =========================================================
   14. Notifications
   ========================================================= */
.notifications-page {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 22px;
}

.notifications-topbar {
  margin-bottom: 20px;
}

.notifications-header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.notifications-header-action {
  flex-shrink: 0;
}

.notif-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  margin: 0;
  background: #f5f7fb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.notif-tab {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.notif-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}

.notif-tab.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notif-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.notif-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border-color: #d1d5db;
}

.notif-card.is-unread {
  border-color: rgba(0, 0, 0, 0.12);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.015), rgba(0, 0, 0, 0)) #fff;
}

.notif-card.is-read {
  opacity: 0.92;
}

.notif-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.notif-status {
  width: 14px;
  flex: 0 0 14px;
  padding-top: 7px;
}

.dot {
  width: 14px;
  height: 14px;
  border: 2px solid #fee2e2;
  border-radius: 999px;
  display: block;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.notif-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: visible;
}

.notif-type-badge svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.notif-type-badge.icon-like svg {
  transform: translateY(0.5px);
}

.notif-type-badge.icon-like {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.notif-type-badge.icon-comment {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.notif-type-badge.icon-follow {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.notif-type-badge.icon-photo {
  background: #ecfeff;
  color: #0f766e;
  border-color: #a5f3fc;
}

.notif-type-badge.icon-milestone {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.notif-type-badge.icon-activity {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.notif-body {
  min-width: 0;
  flex: 1;
}

.notif-title {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.notif-title a:hover {
  text-decoration: underline;
}

.notif-title strong {
  font-weight: 800;
}

.notif-count {
  color: #6b7280;
  font-weight: 700;
}

.notif-snippet {
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.93rem;
  line-height: 1.5;
  word-break: break-word;
}

.notif-meta {
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

.notif-action {
  flex-shrink: 0;
}

.notifications-empty {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 18px;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    color: var(--text-muted, #6b7280);
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.notifications-empty h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.btn-ghost {
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
}

.btn-ghost:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.notif-pagination {
  margin-top: 22px;
  padding-top: 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.notif-pagination-side {
  display: flex;
  align-items: center;
}

.notif-pagination-left {
  justify-content: flex-start;
}

.notif-pagination-right {
  justify-content: flex-end;
}

.notif-pagination-center {
  display: flex;
  justify-content: center;
}

.notif-pagination-page {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 0.88rem;
  font-weight: 700;
}

.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* =========================================================
   15. Post view
   ========================================================= */
.pv-scope .pv-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 16px;
  align-items: start;
}

.pv-scope .pv-right-card {
  border-radius: 8px;
}

.pv-scope .pv-right-comments {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding: 0;
}

.pv-scope .pv-right-comments .pv-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pv-scope .pv-right-comments .pv-compose {
  margin: 0 0 10px;
  padding: 12px 12px 0;
}

.pv-scope .pv-photos {
  margin: 14px 0 10px;
}

.pv-scope .pv-hero {
  overflow: hidden;
  background: #fff;
}

.pv-scope .pv-hero-page {
  position: relative;
}

.pv-scope .pv-hero-img {
  width: 100%;
  max-height: min(80vh, 760px);
  height: auto;
  object-fit: contain;
  background: #0b0b0b;
}

.pv-scope .pv-hero-img.is-loading {
  opacity: 0.75;
  filter: blur(1px);
}

.pv-scope .pv-thumbs {
  margin-top: 8px;
  padding: 10px 2px 2px;
  display: flex;
  gap: 8px;
  overflow: auto;
}

.pv-scope .pv-thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.pv-scope .pv-thumb.is-active {
  border-color: #000;
}

.pv-scope .pv-thumb img {
  width: 92px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.pv-scope .pv-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pv-scope .pv-comment {
  padding: 12px;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(207, 214, 223, 0.65);
}

.pv-scope .pv-comment:first-child {
  border-top: 0;
}

.pv-scope .pv-comment.is-deleted .pv-ctext {
  color: var(--muted);
  font-style: italic;
}

.pv-scope .pv-comment.is-reply {
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  opacity: 0.98;
}

.pv-scope .pv-avatar {
  width: 32px;
  height: 32px;
  overflow: hidden;
  flex: 0 0 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6ebf2;
  color: #2b3441;
  font-weight: 900;
}

.pv-scope .pv-cmeta {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pv-scope .pv-cmeta-spacer {
  flex: 1;
}

.pv-scope .pv-cuser {
  font-size: 13px;
  font-weight: 900;
}

.pv-scope .pv-cago {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pv-scope .pv-ctext {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.pv-scope .pv-like-form,
.pv-scope .pv-like-static {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pv-scope .pv-like-static {
  color: var(--muted);
  font-weight: 700;
}

.pv-scope .pv-compose {
  margin-top: 12px;
  margin-bottom: 26px;
}

.pv-scope .pv-login-hint {
  padding: 10px 2px;
  color: var(--muted);
  font-size: 13px;
}

.pv-scope .pv-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pv-scope .pv-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.pv-scope .pv-form textarea,
.pv-reply-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
}

.pv-scope .pv-form textarea {
  font-weight: 700;
  resize: vertical;
}

.pv-scope .pv-textarea-wrap {
  position: relative;
}

.pv-scope .pv-textarea-wrap textarea {
  padding-right: 44px;
}

.pv-scope .emoji-inside-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.pv-scope .emoji-inside-btn:hover {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f3f5f8;
}

.pv-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pv-reply-link {
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.pv-reply-link:hover,
.pv-reply-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pv-reply-form {
  margin-top: 10px;
  margin-left: 0;
}

.pv-reply-form textarea {
  min-height: 84px;
  resize: vertical;
  border-radius: 12px;
}

.pv-reply-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.pv-replies {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

/* fullscreen */
html.modal-open,
html.modal-open body {
  overflow: hidden;
}

.pv-scope .pv-fs-btn {
  position: absolute;
  top: 10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.pv-scope .pv-fs-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.pv-scope .pv-fs-btn svg {
  width: 20px;
  height: 20px;
}

.pv-scope .pv-fs-enter {
  right: 10px;
}

.pv-scope .pv-fs-exit {
  left: 23px;
  display: none;
  font-size: 24px;
  line-height: 1;
}

.pv-scope .pv-fs-nav {
  position: absolute;
  top: 48%;
  z-index: 5;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transform: translateY(-50%);
}

.pv-scope .pv-fs-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.pv-scope .pv-fs-prev {
  left: 20px;
}

.pv-scope .pv-fs-next {
  right: 20px;
}

.pv-scope .pv-page.pv-fs-active {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 16px;
  background: #000;
}

.pv-scope .pv-page.pv-fs-active .pv-left .feedcard {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pv-scope .pv-page.pv-fs-active .pv-hide-on-fs {
  display: none !important;
}

.pv-scope .pv-page.pv-fs-active .pv-hero {
  border: 0;
  background: transparent;
}

.pv-scope .pv-page.pv-fs-active .pv-hero-img {
  max-height: calc(100vh - 32px);
  background: #000;
}

.pv-scope .pv-page.pv-fs-active .pv-fs-exit {
  display: flex;
}

.pv-scope .pv-page.pv-fs-active .pv-fs-enter {
  display: none;
}

.pv-scope .pv-page.pv-fs-active .pv-fs-nav {
  display: flex;
}

/* =========================================================
   16. Report modal
   ========================================================= */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-modal.hidden {
  display: none !important;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
}

.report-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.report-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.report-modal__close:hover {
  background: #f3f5f8;
  color: var(--text);
}

.report-modal__head {
  margin-bottom: 16px;
  padding-right: 42px;
}

.report-modal__head h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.report-modal__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.report-modal__note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.report-modal__note strong {
  color: var(--text);
  font-weight: 900;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.report-form__group label {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.report-form__group select,
.report-form__group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-form__group textarea {
  min-height: 120px;
  resize: vertical;
}

.report-form__group select:focus,
.report-form__group textarea:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(59, 120, 216, 0.16);
}

.report-form__status {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.report-form__status.hidden {
  display: none !important;
}

.report-form__status.is-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.report-form__status.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.report-form__actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* =========================================================
   17. Direct messages
   ========================================================= */
.dm-head {
  position: sticky;
  top: 74px; /* or 0 if no fixed site header */
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.dm-head-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-title {
  margin: 0;
}

.dm-inbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid #d7dde6;
  border-radius: 16px;
  color: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dm-row:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  border-color: #c3cfdf;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dm-row.dm-row-unread,
.dm-row[data-has-unread="1"] {
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f6 100%);
  border-color: rgba(225, 29, 72, 0.22);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.08);
}

.dm-row.dm-row-unread:hover,
.dm-row[data-has-unread="1"]:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fce7ef 100%);
  border-color: rgba(225, 29, 72, 0.3);
}

.dm-left {
  flex: 0 0 auto;
}

.dm-left .avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border: 1px solid #d0d7e2;
  border-radius: 999px;
  background: linear-gradient(#ffffff, #dbe3ef);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.dm-left .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-mid {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dm-top {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dm-user {
  min-width: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-time {
  flex: 0 0 auto;
  color: #8a94a6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dm-preview {
  color: #4b5563;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-row.dm-row-unread .dm-preview,
.dm-row[data-has-unread="1"] .dm-preview {
  color: #111827;
  font-weight: 700;
}

.dm-right {
  min-width: 22px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dm-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}

.dm-row-move {
  animation: dmRowMove 0.22s ease;
}

@keyframes dmRowMove {
  from {
    opacity: 0.72;
    transform: translateY(-6px);
  }

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

.dm-thread {
  max-height: 62vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  will-change: transform;
}

/* separators */
.dm-day-sep,
.dm-unread-sep {
  width: 100%;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-day-sep span,
.dm-unread-sep span {
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.dm-day-sep span {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.05);
  color: #4b5563;
}

.dm-unread-sep span {
  border: 1px solid rgba(31, 111, 235, 0.18);
  background: rgba(31, 111, 235, 0.1);
  color: #1f6feb;
  font-weight: 600;
}

/* message bubbles */
.dm-msg {
  width: 100%;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  will-change: transform;
}

.dm-msg.me {
  align-items: flex-end;
}

.dm-msg.them {
  align-items: flex-start;
}

.dm-msg-row {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.dm-msg.me .dm-msg-row {
  justify-content: flex-end;
}

.dm-msg-avatar {
  width: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dm-msg-avatar.is-spacer {
  visibility: hidden;
}

.dm-msg-avatar-inner {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  border-radius: 999px;
}

.dm-msg-time {
  width: 100%;
  margin: 0 0 6px;
  display: block;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.dm-bubble {
  position: relative;
  max-width: min(78%, 640px);
  margin-left: 8px;
  margin-right: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.dm-msg.them .dm-bubble {
  margin-left: 0;
}

.dm-msg.me .dm-bubble {
  margin-right: 0;
  background: #1f6feb;
  border-color: transparent;
  color: #fff;
}

.dm-msg.them .dm-bubble::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom-left-radius: 2px;
  background: #fff;
  transform: translateX(-7px) rotate(45deg);
}

.dm-msg.me .dm-bubble::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  border-bottom-right-radius: 2px;
  background: #1f6feb;
  transform: translateX(7px) rotate(45deg);
}

.dm-body {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dm-body:empty {
  display: none;
}

.dm-meta {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
  white-space: nowrap;
}

.dm-msg.me .dm-meta {
  opacity: 0.92;
}

.dm-seen {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.85;
  text-align: right;
}

.dm-msg.me .dm-seen {
  color: rgba(255, 255, 255, 0.9);
}

.dm-msg.them .dm-seen {
  display: none;
}

.dm-msg.new {
  animation: dmIn 160ms ease-out both;
}

@keyframes dmIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* typing */
.dm-typing-bubble {
  min-width: 56px;
  padding: 10px 14px;
}

.dm-typing-text {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
}

.dm-typing-dots {
  min-height: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dm-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(17, 24, 39, 0.62);
  animation: dmTypingBounce 1.05s infinite ease-in-out;
}

.dm-typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dm-typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dmTypingBounce {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.92);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
  }
}

/* image messages */
.dm-image-wrap {
  margin: 0;
}

.dm-image-link {
  margin: 0;
  display: block;
  color: inherit;
}

.dm-image {
  max-width: min(320px, 100%);
  width: auto;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background-color: #f3f4f6;
  object-fit: cover;
}

.dm-msg.me .dm-image {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.dm-bubble .dm-image-wrap + .dm-body {
  margin-top: 8px;
}

/* composer */
.dm-compose {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
}

.dm-compose-editor {
  position: relative;
  width: 100%;
}

.dm-compose textarea {
  width: 100%;
  min-height: 44px;
  max-height: 160px;
  resize: none;
  overflow: hidden;
  padding-right: 42px;
}

.dm-compose-tools {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.dm-file-input {
  display: none;
}

.dm-emoji-inline {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.dm-emoji-inline:hover {
  background: transparent;
  color: #111827;
}

.dm-emoji-inline:focus {
  outline: none;
  box-shadow: none;
}

.dm-attach-btn {
  min-width: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.dm-attach-preview {
  display: none;
  width: 100%;
  margin-top: 4px;
}

.dm-attach-preview.is-active {
  display: block;
}

.dm-attach-preview-row {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.dm-attach-thumb {
  display: none;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
}

.dm-attach-thumb.is-active {
  display: block;
}

.dm-attach-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.dm-attach-name {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-attach-help {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.dm-attach-clear {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* emoji picker */
.dm-emoji-pop {
  position: fixed;
  z-index: 9999;
  width: min(360px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 140px));
  overflow: auto;
  padding: 10px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.dm-emoji-head {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dm-emoji-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.dm-emoji-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}

.dm-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.dm-emoji-btn {
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.dm-emoji-btn:hover {
  background: #f3f5f8;
}

/* =========================================================
   18. Auth
   ========================================================= */
.auth-page {
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.04), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.auth-shell {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  margin-bottom: 18px;
  text-align: center;
}

.auth-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.auth-header h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-header p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

.auth-card {
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-link {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.form-link:hover {
  text-decoration: underline;
}

.field-note {
  color: #6b7280;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:hover {
  border-color: #9ca3af;
}

.form-group input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.password-toggle:hover {
  background: #f3f4f6;
  color: #111827;
}

.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.password-toggle .eye {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-closed {
  display: block;
}

/* checkbox row */
.form-group-checkbox {
  gap: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid #c7ced8;
  border-radius: 4px;
  box-shadow: none;
  accent-color: #000;
  flex: 0 0 18px;
}

.checkbox-label input[type="checkbox"]:focus {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.checkbox-label span {
  display: block;
}

.checkbox-label a {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-label a:hover {
  color: #000;
}

.btn-auth {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-auth:hover {
  opacity: 0.96;
  border: 1px solid #000;
  color: #000;
}

.btn-auth:active {
  transform: translateY(1px);
}

.btn-auth:focus-visible {
  outline: none;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    0 0 0 4px rgba(0, 0, 0, 0.08);
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.auth-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.auth-footer a {
  color: #111827;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   19. Account
   ========================================================= */

.account-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* NEW: header with SVG (matches other pages) */
.account-page-head {
  margin-bottom: 4px;
}

.account-page-head__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.account-page-head__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef2ff;
  border: 1px solid #d9e2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  flex: 0 0 54px;
}

.account-page-head__icon svg {
  width: 24px;
  height: 24px;
}

.account-page-head__text {
  min-width: 0;
}

.account-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.account-sub {
  margin: 6px 0 14px;
  color: #6b7280;
  font-size: 14px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.account-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-form {
  max-width: 520px;
  display: grid;
  gap: 12px;
}

.account-section-title {
  margin: 0;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.account-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.account-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.08);
}

.account-presence-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.account-presence-toggle input {
  margin-top: 3px;
}

/* shared section box */
.account-section-box {
  border: 1px solid #d8dee6;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-section-box .muted {
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

/* data export section */
.account-data-box {
  border: 1px solid #d8dee6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.account-data-box .btn {
  background: #111;
  color: #fff;
  border: 1px solid #111;
  font-weight: 600;
}

.account-data-box .btn:hover {
  background: #222;
  border-color: #222;
}

.account-data-box .btn.primary,
.account-data-box .btn-black {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.account-data-box .btn.primary:hover,
.account-data-box .btn-black:hover {
  background: #222222;
  border-color: #222222;
}

/* delete section */
.account-danger-title {
  color: #7f1d1d;
}

.account-danger-box {
  border: 1px solid #e5c7c7;
  border-left: 4px solid #b91c1c;
  background: linear-gradient(180deg, #ffffff 0%, #fdf7f7 100%);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.account-danger-box .muted {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.btn-danger {
  background: #991b1b;
  border-color: #991b1b;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* optional input polish for delete confirm */
.account-form .input,
.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.account-form .input:focus,
.account-form input[type="text"]:focus,
.account-form input[type="email"]:focus,
.account-form input[type="password"]:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

/* responsive */
@media (max-width: 640px) {
  .account-page-head__main {
    align-items: flex-start;
  }

  .account-page-head__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-basis: 48px;
  }

  .account-page-head__icon svg {
    width: 21px;
    height: 21px;
  }
}
/* =========================================================
   20. Guest home
   ========================================================= */
.guest-hero {
  position: relative;
  width: 100%;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

.guest-hero__media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/hero-rsbuild-clean.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 14%;
}

.guest-hero__overlay {
  position: relative;
  min-height: 430px;
  padding: 40px 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(25, 32, 42, 0.4), rgba(25, 32, 42, 0.18) 22%, rgba(25, 32, 42, 0.3) 58%, rgba(25, 32, 42, 0.45));
}

.guest-hero__content {
  max-width: 920px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.guest-hero__content h1 {
  margin: 0;
  color: #fff;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.guest-hero__content p {
  margin: 14px 0 0;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.guest-hero__cta {
  margin-top: 28px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

.guest-home-wrap {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 16px 40px;
}

.guest-feature {
  position: relative;
  min-height: 200px;
  height: 200px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
  display: flex;
  align-items: stretch;
}

.guest-feature__media {
  position: absolute;
  inset: 0;
}

.guest-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 67%;
}

.guest-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 12, 22, 0.82) 0%, rgba(7, 12, 22, 0.58) 36%, rgba(7, 12, 22, 0.2) 100%);
}

.guest-feature__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 28px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guest-feature__content h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guest-feature__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.5;
}

.guest-feature__btn {
  margin-top: 16px;
  align-self: flex-start;
}

.guest-home .dash {
  height: auto;
  align-items: start;
}

.guest-home .dash > * {
  height: auto;
  overflow: visible;
}

.guest-home .box {
  overflow: hidden;
}

.guest-home main.container {
  height: auto !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

.guest-home .footer {
  display: block !important;
}

/* desktop-only home layout
   Real desktop only: mouse/trackpad devices
*/
@media (min-width: 1021px) and (hover: hover) and (pointer: fine) {
  body.route-home {
    height: 100vh;
    overflow: hidden;
  }

  body.route-home .rs-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
  }

  body.route-home main.container {
    height: calc(100vh - var(--topbar-h));
    margin-top: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.route-home .footer {
    display: none;
  }

  body.route-home .rs-page {
    height: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    box-sizing: border-box;
  }

  body.route-home .dash {
    height: 100%;
    align-items: stretch;
    min-height: 0;
  }

  body.route-home .dash > * {
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-sizing: border-box;
  }

  body.route-home .dash > *:hover {
    overflow-y: auto;
  }

  body.route-home .dash > *::-webkit-scrollbar {
    width: 10px;
  }

  body.route-home .dash > *::-webkit-scrollbar-thumb {
    background: rgba(107, 118, 133, 0.45);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
  }

  body.route-home .dash > *::-webkit-scrollbar-track {
    background: transparent;
  }

  body.route-home.guest-home {
    height: auto;
    overflow: auto;
  }
}

/* tablet / iPad home layout
   Keep page fixed and make the middle feed column the scroller.
*/
@media (hover: none) and (pointer: coarse) and (min-width: 768px) {
  body.route-home {
    height: 100vh;
    overflow: hidden;
  }

  body.route-home .rs-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
  }

  body.route-home main.container {
    height: calc(100vh - var(--topbar-h));
    margin-top: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.route-home .footer {
    display: none;
  }

  body.route-home .rs-page {
    height: 100%;
    padding-top: 14px;
    padding-bottom: 14px;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.route-home .dash {
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  body.route-home .dash-left,
  body.route-home .dash-right,
  body.route-home .dash-center {
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
  }

  /* side columns stay fixed */
  body.route-home .dash-left,
  body.route-home .dash-right {
    overflow: hidden;
  }

  /* middle column is the only scroller */
  body.route-home .dash-center {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;

    /* this is the important bit for the clipped bottom */
    padding-bottom: 32px;
  }

  /* stop last card from being clipped by momentum / safe-area */
  body.route-home .dash-center > :last-child {
    margin-bottom: 24px;
  }

  body.route-home .dash-center::-webkit-scrollbar {
    width: 8px;
  }

  body.route-home .dash-center::-webkit-scrollbar-thumb {
    background: rgba(107, 118, 133, 0.35);
    border-radius: 999px;
  }

  body.route-home .dash-center::-webkit-scrollbar-track {
    background: transparent;
  }

  body.route-home.guest-home {
    height: auto;
    overflow: auto;
  }
}

/* iPad / tablet portrait home layout */
@media (hover: none) and (pointer: coarse) and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body.route-home {
    height: auto;
    overflow: auto;
  }

  body.route-home .rs-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
  }

  body.route-home main.container {
    height: auto;
    overflow: visible;
    box-sizing: border-box;
  }

  body.route-home .footer {
    display: block;
  }

  body.route-home .rs-page {
    height: auto;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 14px;
  }

  body.route-home .dash {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 14px;
    align-items: stretch;
  }

  body.route-home .dash-left,
  body.route-home .dash-center,
  body.route-home .dash-right {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  /* feed first */
  body.route-home .dash-center {
    order: 1;
  }

  /* garage / left rail second */
  body.route-home .dash-left {
    order: 2;
  }

  /* right rail last */
  body.route-home .dash-right {
    order: 3;
  }

  body.route-home .home-feed-shell,
  body.route-home .home-feed-list {
    overflow: visible;
  }

  body.route-home .feedcard,
  body.route-home .composer,
  body.route-home .box {
    width: 100%;
  }

  /* extra safety so first card never tucks under the nav */
  body.route-home .dash-center > :first-child {
    margin-top: 6px;
  }

  body.route-home .photos {
    min-height: 260px;
  }
}

/* =========================================================
   Home feed pull-to-refresh (tablet / iPad)
   ========================================================= */

html.rsbuild-tablet-pull-refresh,
body.rsbuild-tablet-pull-refresh {
  overscroll-behavior-y: contain;
}

.home-feed-shell {
  position: relative;
  overflow: hidden;
}

.home-feed-pull-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  height: 54px;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;

  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    color 0.2s ease;
}

.home-feed-pull-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-feed-pull-indicator.is-ready {
  color: #111827;
}

.home-feed-pull-indicator.is-refreshing {
  color: #111827;
}

.home-feed-pull-indicator__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(156, 163, 175, 0.25);
  border-top-color: #6b7280;
  border-radius: 999px;
  animation: rsbuildPullSpin 0.8s linear infinite;
  flex: 0 0 22px;
}

.home-feed-list {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
  will-change: transform;
}

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

@media (hover: none) and (pointer: coarse) and (min-width: 768px) {
  .home-feed-shell {
    touch-action: pan-x pan-y;
  }
}

/* =========================================================
   21. Responsive
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .rs-badge.pulse {
    animation: none;
  }
}

@media (max-width: 1200px) {
  .dash {
    grid-template-columns: 240px minmax(0, 1fr) 280px;
  }
}

@media (max-width: 1100px) {
  .rs-top-inner {
    padding: 12px 18px;
    row-gap: 10px;
  }

  .rs-brand {
    width: 200px;
    height: 60px;
    flex: 0 0 200px;
  }

  .rs-brand-logo {
    height: 36px;
    margin-top: 0;
  }

  .rs-nav {
    gap: 18px;
  }
}

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

  .dash-right,
  .dash-left {
    order: 2;
  }

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

  .guest-hero,
  .guest-hero__overlay {
    min-height: 360px;
  }

  .guest-hero__content h1 {
    font-size: 42px;
  }

  .guest-hero__content p {
    font-size: 20px;
  }
}

@media (max-width: 980px) {
  .pv-scope .pv-page,
  .appeal-grid {
    grid-template-columns: 1fr;
  }

  .pv-scope .pv-right-comments {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .pv-scope .pv-page.pv-fs-active {
    grid-template-columns: 1fr;
  }

  .garage-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-head-h {
    flex-wrap: wrap;
  }

  .car-actions-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .rs-top-inner {
    align-items: center;
  }

  .rs-brand {
    width: 100%;
    height: auto;
    flex: 0 0 100%;
    justify-content: center;
  }

  .rs-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 14px 18px;
    flex: 1 1 100%;
  }

  .rs-actions {
    margin-left: auto;
  }
}

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

@media (max-width: 768px) {
  body.admin-appeals-alt-page {
    padding: 18px;
  }

  .auth-header h1 {
    font-size: 26px;
  }

  .post-edit-check-label-offset {
    margin-top: 0;
  }

  .pe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pe-tile img {
    height: 120px;
  }
}

@media (max-width: 720px) {
  .rs-actions .auth-login,
  .rs-actions .auth-signup {
    min-width: auto;
    padding: 8px 14px;
    font-size: 14px;
  }

  .guest-home-wrap {
    padding: 0 12px 32px;
  }

  .guest-feature {
    min-height: 180px;
    height: 180px;
  }

  .guest-feature__content {
    max-width: 100%;
    padding: 22px 20px;
  }

  .guest-feature__content h2 {
    font-size: 24px;
  }

  .guest-feature__content p {
    font-size: 14px;
  }

  .guest-hero,
  .guest-hero__overlay {
    min-height: 320px;
  }

  .guest-hero__media {
    background-position: center 18%;
  }

  .guest-hero__content h1 {
    font-size: 34px;
  }

  .guest-hero__content p {
    font-size: 18px;
  }

  .guest-hero__cta {
    padding: 12px 18px;
    font-size: 15px;
  }

  .garage-profile-header__identity {
    align-items: flex-start;
  }

  .garage-profile-header__actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .notifications-page {
    padding-top: 16px;
  }

  .notifications-header {
    flex-direction: column;
    align-items: stretch;
  }

  .notifications-header-action,
  .notifications-header-action .btn,
  .notif-action,
  .notif-action .btn {
    width: 100%;
  }

  .notif-card {
    flex-direction: column;
    align-items: stretch;
  }

  .notif-main {
    gap: 12px;
  }

  .notif-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .notif-pagination-center {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 4px;
  }

  .notif-pagination-left .btn,
  .notif-pagination-right .btn,
  .notif-pagination-left .is-disabled,
  .notif-pagination-right .is-disabled {
    width: 100%;
    justify-content: center;
  }

  .car-owner-prompt {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .pv-scope .pv-hero-img {
    max-height: 520px;
  }

  .pv-scope .pv-thumb img {
    width: 84px;
    height: 64px;
  }

  .pv-scope .pv-page {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-h: 96px;
  }

  body {
    padding-top: var(--topbar-h);
  }

  .rs-page {
    padding: 12px 12px 32px;
  }

  .rs-top-inner {
    padding: 12px 14px;
    gap: 10px;
  }

  .rs-brand {
    justify-content: flex-start;
  }

  .rs-brand-logo {
    height: 32px;
  }

  .rs-nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .rs-nav-link {
    font-size: 14px;
    padding: 6px 0;
  }

  .auth-page {
    padding: 24px 14px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .onboarding-card__head,
  .garage-onboarding__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .garage-title {
    font-size: 24px;
  }

  .garage-card__top {
    flex-direction: column;
  }

  .garage-profile-header__body {
    margin-top: -10px;
    padding: 0 16px 16px;
  }

  .garage-profile-header__avatar {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    font-size: 24px;
  }

  .garage-profile-header__title {
    font-size: 24px;
  }

  .garage-profile-header__meta {
    padding-top: 8px;
  }

  .garage-profile-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .garage-profile-section-head,
  .garage-profile-grid,
  .garage-profile-empty-card,
  .garage-page > h2,
  .garage-page > p {
    margin-left: 0;
    margin-right: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .garage-profile-grid {
    padding-left: 6px;
    padding-right: 6px;
  }

  .garage-profile-section-head__title {
    font-size: 21px;
  }

  .garage-page {
    padding-left: 6px;
    padding-right: 6px;
  }

  .garage-head {
    padding-left: 6px;
    padding-right: 6px;
  }

  .feed-h {
    padding: 10px;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .feed-txt {
    padding: 0 10px 10px;
    font-size: 14px;
  }

  .feed-stats {
    padding: 10px;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .stat.right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .photos {
    padding: 0 10px 10px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
  }

  .pbig {
    grid-row: auto;
    height: 220px;
  }

  .psmall {
    height: 140px;
  }

  .car-hero {
    height: 180px;
    margin: 1px 0 14px;
  }

  .owner-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .car-img-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .car-img-actions form {
    width: 100%;
  }

  .box .form-actions,
  .inline-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .box .form-actions .btn,
  .inline-actions .btn {
    flex: 1 1 100%;
  }

  .dm-row {
    padding: 12px 13px;
    gap: 12px;
    border-radius: 14px;
  }

  .dm-left .avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .dm-user {
    font-size: 14px;
  }

  .dm-preview {
    font-size: 12px;
  }

  .dm-bubble {
    max-width: calc(100% - 24px);
  }

  .dm-image {
    max-width: min(260px, 100%);
  }

  .dm-attach-preview-row {
    align-items: flex-start;
  }

  .dm-attach-clear {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dm-emoji-inline {
    right: 9px;
    bottom: 9px;
  }

  .pv-scope .pv-comment {
    padding: 10px;
  }

  .pv-scope .pv-right-comments .pv-compose {
    padding: 10px 10px 0;
  }

  .pv-scope .pv-form textarea,
  .pv-reply-form textarea {
    font-size: 16px;
  }

  .pv-comment-actions,
  .pv-reply-actions {
    flex-wrap: wrap;
  }

  .pv-reply-actions .btn,
  .report-form__actions .btn {
    flex: 1 1 100%;
  }

  .post-menu-wrap {
    align-self: flex-start;
  }

  .report-modal {
    padding: 14px;
  }

  .report-modal__dialog {
    padding: 18px;
    border-radius: 16px;
  }
}

@media (max-width: 520px) {
  .post-edit-section-title {
    font-size: 15px;
  }

  .pe-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pe-tile {
    border-radius: 10px;
  }

  .pe-tile img {
    height: 100px;
  }

  .pe-handle {
    right: 6px;
    bottom: 6px;
    padding: 3px 7px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  :root {
    --topbar-h: 110px;
  }

  .rs-top-inner {
    padding: 10px 12px;
  }

  .rs-logo {
    font-size: 22px;
  }

  .rs-actions {
    gap: 8px;
  }

  .rs-avatar {
    width: 40px;
    height: 40px;
  }

  .rs-badge {
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-width: 1.5px;
    font-size: 11px;
  }

  .rs-nav {
    gap: 8px 12px;
  }

  .rs-brand-logo {
    height: 28px;
  }

  .guest-feature {
    min-height: 160px;
    height: auto;
  }

  .guest-feature__content {
    padding: 18px 16px;
  }

  .guest-hero__content h1 {
    font-size: 28px;
  }

  .guest-hero__content p {
    font-size: 16px;
  }

  .pbig {
    height: 200px;
  }

  .psmall {
    height: 120px;
  }
}

@media (max-width: 420px) {
  .dm-emoji-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .garage-profile-stats {
    grid-template-columns: 1fr;
  }

  .garage-verified-badge {
    width: 100%;
    justify-content: center;
  }
}

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

  .pe-tile img {
    height: 180px;
  }
}

@media (max-width: 360px) {
  .dm-emoji-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (hover: none), (pointer: coarse) {
  .rs-ico[data-tooltip]::before,
  .rs-ico[data-tooltip]::after,
  .rs-user-btn[data-tooltip]::before,
  .rs-user-btn[data-tooltip]::after,
  .garage-verified-badge[data-tooltip]::before,
  .garage-verified-badge[data-tooltip]::after {
    display: none !important;
  }

  .btn,
  .btn.small,
  .btn-sm,
  .follow-btn,
  .password-toggle,
  .dm-attach-btn {
    min-height: 44px;
  }

  .rs-ico {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
  }

  .garage-verified-badge--small {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
}

/* =========================================================
   22. Direct messages / DM helpers
   ========================================================= */
.dm-empty-tip {
  margin-top: 8px;
}

.dm-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.dm-list-row__avatar {
  flex: 0 0 auto;
}

.dm-list-row__body {
  min-width: 0;
  flex: 1 1 auto;
}

.dm-list-row__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-list-row__name,
.dm-list-row__preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-list-row__badge {
  position: static;
}

.dm-head-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-head-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.dm-head-presence {
  font-size: 13px;
}

/* =========================================================
   23. Auth helpers / forms
   ========================================================= */
.auth-help-text {
  margin: 12px 0 18px;
  padding: 0 2px;
  font-size: 14px;
  color: #5f6b7a;
}

.auth-help-link {
  font-weight: 600;
  margin-left: 4px;
}

.auth-footer-spaced {
  margin-top: 8px;
}

.auth-footer--no-divider {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* =========================================================
   24. Following / social header
   ========================================================= */
.following-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.following-header__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.following-header__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef2ff;
  border: 1px solid #d9e2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  flex: 0 0 54px;
}

.following-header__icon svg {
  width: 24px;
  height: 24px;
}

.following-header__text {
  min-width: 0;
}

.following-header__title {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.following-subtext {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: #667085;
}

.following-header__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.following-stat {
  min-width: 118px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-align: right;
}

.following-stat__label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: #6b7280;
}

.following-stat__value {
  margin-top: 4px;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
  color: #1f2937;
}

.following-tip {
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .box {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 900px) {
  .following-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .following-header__stats {
    width: 100%;
    justify-content: flex-start;
  }

  .following-stat {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .box {
    margin-left: 12px;
    margin-right: 12px;
  }

  .following-header {
    gap: 14px;
  }

  .following-header__main {
    align-items: flex-start;
  }

  .following-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-basis: 48px;
  }

  .following-header__icon svg {
    width: 21px;
    height: 21px;
  }

  .following-header__title {
    font-size: 1.9rem;
  }

  .following-subtext {
    font-size: 14px;
  }

  .following-stat {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   25. Garage grid / cards / overlays
   ========================================================= */
.garage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.garage-card {
  border-radius: 16px;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.garage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
  border-color: rgba(0,0,0,.12);
}

.garage-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  overflow: hidden;
}

.garage-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.garage-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 12px;
  background: linear-gradient(to top, rgba(15,23,42,.78), rgba(15,23,42,.28), transparent);
}

.garage-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(225,29,72,.95);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(225,29,72,.25);
}

.garage-card__body {
  padding: 14px 16px 16px;
}

.garage-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.garage-card__title {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #16202c;
  text-decoration: none;
  word-break: break-word;
}

.garage-card__subtitle {
  margin-top: 5px;
  font-size: 13px;
}

.garage-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.garage-card__owner {
  display: flex;
  align-items: center;
  gap: 9px;
}

.garage-card__owner-meta {
  min-width: 0;
}

.garage-card__owner-name {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  color: #2b3441;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* Avatar size helper */
.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
  flex: 0 0 28px;
}

/* =========================================================
   26. Inline / home post helpers
   ========================================================= */
.composer-empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.composer-empty-state__action {
  margin-left: auto;
}

.home-post-inline-checkrow {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-post-inline-checklabel {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.home-post-inline-checklabel input[type="checkbox"] {
  cursor: pointer;
}

.home-post-inline-timeline-fields {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-build-log-badge {
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #d1fae5;
  font-size: 11px;
  font-weight: 700;
}

/* =========================================================
   27. Post / car edit helpers
   ========================================================= */

.car-edit-card {
  margin-top: 0;
}

.car-edit-flash {
  margin-bottom: 12px;
}

.car-edit-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.car-edit-help {
  margin-top: 6px;
  line-height: 1.35;
}

.car-edit-vis-label {
  margin-top: 14px;
}

.car-edit-actions {
  justify-content: flex-end;
}

.car-edit-note {
  margin-top: 10px;
}

/* =========================================================
   28. Post view / hidden state / appeals
   ========================================================= */

.post-view-card {
  margin-top: 0;
}

.post-view-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.post-view-hidden-box {
  margin: 0 16px 12px;
  padding: 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  color: #111827;
}

.post-view-hidden-title {
  font-size: 13px;
  font-weight: 800;
}

.post-view-hidden-text {
  margin-top: 6px;
  color: #334155;
  font-size: 13px;
}

.post-view-hidden-status {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.post-view-hidden-status--success {
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.post-view-hidden-status--error {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.post-view-appeal-form {
  margin-top: 10px;
}

.post-view-appeal-label {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.post-view-appeal-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  resize: vertical;
}

.post-view-appeal-actions {
  margin-top: 8px;
}

/* =========================================================
   29. Car view / passport / tabs / posts / timeline / photos
   ========================================================= */

/* Main cards */
.car-view-main-card,
.passport-card,
.car-photos-card,
.car-empty-state-card,
.timeline-card {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 16px;
}

.car-view-main-card {
  margin-top: 0;
}

.car-view-main-card--with-hero {
  margin-top: 14px;
}

/* Hero */
.car-hero {
  height: 260px;
  margin: 1px 0 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f1f3f6;
  box-shadow: var(--shadow);
}



/* Header / owner row / actions */


.car-view-owner-row {
  margin-top: 8px;
}



.owner-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.car-view-vis {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.car-view-vis--private {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.car-view-vis--followers {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.car-view-vis--public {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.car-actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.car-actions-right .btn {
  min-width: 110px;
  justify-content: center;
}

.car-inline-form {
  margin: 0;
}

/* Owner prompts / empty states */
.car-owner-prompt {
  margin: 0 12px 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.car-owner-prompt__copy {
  min-width: 0;
  flex: 1 1 360px;
}

.car-owner-prompt__title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.car-owner-prompt__text {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.car-empty-state-head,
.car-photos-head,
.passport-head {
  align-items: flex-start;
}

.car-empty-state-action {
  margin-left: auto;
}

/* Tabs */
.car-tab-bar {
  margin-top: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-radius: 16px;
}

.car-tab-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.car-tab-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Posts */
.car-post-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

img {
  max-width: 100%;
  height: auto;
}

.car-post-title,
.passport-identity-value,
.car-post-hidden-text,
.post-view-hidden-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.car-post-title-link {
  color: inherit;
  text-decoration: none;
}

.car-post-title-link:hover {
  text-decoration: underline;
}

.car-post-owner-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.car-post-owner-actions .btn {
  min-width: 92px;
}

.car-post-hidden-box {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
}

.car-post-hidden-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.car-post-hidden-text {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  flex: 1 1 220px;
}

.car-post-hidden-text--timeline {
  color: #92400e;
}

.post-appeal-btn {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #d6c7a7;
  background: #fffaf0;
  color: #3f3322;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.post-appeal-btn:hover:not(:disabled) {
  background: #fff3d9;
  border-color: #c9b184;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
  transform: translateY(-1px);
}

.post-appeal-btn:focus-visible {
  outline: none;
  border-color: #111827;
  box-shadow:
    0 0 0 3px rgba(17, 24, 39, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.10);
}

.post-appeal-btn:disabled,
.post-appeal-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 1;
  transform: none;
  box-shadow: none;
}

/* Default */
.post-appeal-btn--default {
  background: #fffaf0;
  border-color: #d8c39b;
  color: #5b4522;
}

.post-appeal-btn--default:hover:not(:disabled) {
  background: #fff0cf;
  border-color: #caa76a;
  color: #3f2f16;
}

/* Pending */
.post-appeal-btn--pending {
  background: #fff7e8;
  border-color: #e7c98a;
  color: #8a5a00;
}

.post-appeal-btn--pending:hover:not(:disabled) {
  background: #ffefcf;
  border-color: #dcae55;
}

/* Approved */
.post-appeal-btn--approved {
  background: #eefaf1;
  border-color: #b8dec0;
  color: #256c3d;
}

/* Rejected */
.post-appeal-btn--rejected {
  background: #fff1f1;
  border-color: #e2b7b7;
  color: #9b2c2c;
}

/* Post gallery */
.post-gallery {
  padding: 0 12px 12px;
}

.pg-single,
.pg-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f3f6;
}

.pg-single img,
.pg-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pg-single {
  max-height: 520px;
  border: 1px solid var(--border);
}

.pg-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "a b"
    "a c"
    "a d";
  gap: 8px;
}

.pg-a { grid-area: a; min-height: 320px; }
.pg-b { grid-area: b; min-height: 101px; }
.pg-c { grid-area: c; min-height: 101px; }
.pg-d { grid-area: d; min-height: 101px; }

.pg-a,
.pg-b,
.pg-c,
.pg-d {
  border: 1px solid var(--border);
}

.pg-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

/* Timeline */
.timeline-month-label {
  margin: 18px 0 8px;
  padding: 0 4px;
  color: #6b7685;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-card-head {
  align-items: flex-start;
  gap: 12px;
}

.timeline-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-card-meta {
  margin-top: 6px;
}

.timeline-card-action {
  margin-left: auto;
}

/* Car onboarding */
.car-onboarding-head {
  align-items: flex-start;
}

.car-onboarding-body {
  padding-top: 2px;
}

.car-onboarding-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
}

/* Passport */
.passport-card .feed-h {
  padding-bottom: 0;
}

.passport-head {
  gap: 18px;
  flex-wrap: wrap;
}

.passport-head-main {
  min-width: 260px;
  flex: 1 1 100%;
}

.passport-head-row {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.passport-subtitle {
  margin-top: 6px;
  color: #6b7280;
}

.passport-identity-grid {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.passport-identity-card {
  flex: 1 1 160px;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.passport-identity-card--build {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(220, 38, 38, 0.18);
}

.passport-identity-card--authenticity {
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(245, 158, 11, 0.18);
}

.passport-identity-card--oem {
  border: 1px solid rgba(52, 211, 153, 0.36);
  background: rgba(16, 185, 129, 0.16);
}

.passport-identity-card--timeline {
  border: 1px solid rgba(96, 165, 250, 0.36);
  background: rgba(59, 130, 246, 0.16);
}

.passport-identity-card--photos {
  border: 1px solid rgba(192, 132, 252, 0.36);
  background: rgba(168, 85, 247, 0.16);
}

.passport-identity-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.passport-identity-value {
  margin-top: 6px;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.passport-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.passport-stat-card {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.passport-stat-value {
  margin-top: 4px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.passport-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.car-stat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.passport-footer {
  margin-top: 14px;
  padding-top: 14px;
  padding-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.passport-footer-title {
  margin-top: 4px;
  color: #111827;
  font-weight: 800;
}

.passport-footer-date {
  margin-top: 4px;
  color: #6b7280;
}

.passport-total-cost {
  margin-left: auto;
  text-align: right;
}

.passport-total-cost-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #111827;
  font-weight: 900;
}

.passport-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.passport-total-cost-hidden {
  color: #94a3b8;
}

/* Photos */
.car-photos-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.car-upload-label {
  cursor: pointer;
}

.car-photos-empty,
.car-photos-grid-wrap {
  margin-top: 10px;
}

.car-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.car-photo-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.car-photo-link {
  display: block;
  text-decoration: none;
}

.car-photo-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f1f3f6;
}

.car-img-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(42, 51, 66, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.car-photo-overlay-actions {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.58);
  backdrop-filter: blur(4px);
  transform: translateX(-50%);
}

.car-photo-overlay-actions form {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}

.car-photo-action-btn {
  min-width: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.car-photo-action-btn--cover {
  border: 1px solid var(--border2);
  background: linear-gradient(#ffffff, #f2f4f7);
  color: #2b3441;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.car-photo-action-btn--cover:hover {
  background: linear-gradient(#ffffff, #e9edf3);
}

.car-photo-action-btn--delete {
  border: 1px solid #991b1b;
  background: linear-gradient(#ef4444, #b91c1c);
  color: #fff;
}

.car-photo-action-btn--delete:hover {
  background: linear-gradient(#f05252, #c81e1e);
}

/* =========================================================
   30. People page
   ========================================================= */

.people-page {
  gap: 18px;
}

/* Header with icon (matches Messages / Following style) */
.people-head__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.people-head__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef2ff;
  border: 1px solid #d9e2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  flex: 0 0 54px;
}

.people-head__icon svg {
  width: 24px;
  height: 24px;
}

.people-head__text {
  min-width: 0;
}

/* Search */
.people-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.people-search-input {
  width: 100%;
  max-width: 360px;
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.people-search-input::placeholder {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.people-search-help {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.people-search-form .btn {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .people-head__main {
    align-items: flex-start;
  }

  .people-head__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-basis: 48px;
  }

  .people-head__icon svg {
    width: 21px;
    height: 21px;
  }
}

/* =========================================================
   31. Lightbox
   ========================================================= */

.lb[hidden] {
  display: none !important;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
}

.lb-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-body {
  position: relative;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
}

.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lb-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.lb-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.lb-prev,
.lb-next {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 34px;
  transform: translateY(-50%);
}

.lb-prev {
  left: 22px;
}

.lb-next {
  right: 22px;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* =========================================================
   32. Responsive helpers
   ========================================================= */

@media (max-width: 900px) {
  .passport-total-cost,
  .timeline-card-action {
    margin-left: 0;
    text-align: left;
  }

  .car-actions-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .car-head-h {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .people-search-form {
    gap: 8px;
  }

  .people-search-input {
    min-width: 140px;
  }

  .people-search-form .btn,
  .car-photos-actions .btn,
  .car-tab-links .btn,
  .car-post-owner-actions .btn,
  .car-empty-state-action .btn {
    width: 100%;
  }

  .car-hero {
    height: 190px;
    border-radius: 14px;
  }

  .car-tab-bar {
    align-items: stretch;
    padding: 14px 12px;
  }

  .car-tab-links,
  .car-tab-stats,
  .car-post-owner-actions,
  .car-photos-actions {
    width: 100%;
  }

  .car-post-hidden-row {
    align-items: stretch;
  }

  .timeline-card-action {
    width: 100%;
    margin-left: 0;
  }

  .timeline-card-action .btn {
    width: 100%;
  }

  .passport-identity-grid {
    gap: 8px;
  }

  .passport-stat-grid,
  .car-photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-photo-image {
    height: 145px;
  }

  .pg-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d";
  }

  .pg-a,
  .pg-b,
  .pg-c,
  .pg-d {
    min-height: 180px;
  }

  .lb-dialog {
    padding: 18px;
  }

  .lb-prev,
  .lb-next {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .lb-prev {
    left: 12px;
  }

  .lb-next {
    right: 12px;
  }

  .lb-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 420px) {
  .passport-stat-grid,
  .car-photos-grid {
    grid-template-columns: 1fr;
  }

  .car-photo-image {
    height: 180px;
  }

  .passport-total-cost {
    width: 100%;
  }
}

/* =========================================================
   33. Maintenance banner
   ========================================================= */

    .rs-maintenance-banner{
      position:relative;
      z-index:60;
      background:linear-gradient(90deg,#7c2d12 0%, #9a3412 50%, #7c2d12 100%);
      color:#fff7ed;
      border-bottom:1px solid rgba(255,255,255,.12);
      box-shadow:0 8px 24px rgba(0,0,0,.18);
    }
    .rs-maintenance-banner-inner{
      max-width:1200px;
      margin:0 auto;
      padding:10px 16px;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      text-align:center;
      font-size:14px;
      line-height:1.45;
      font-weight:600;
    }
    .rs-maintenance-banner-dot{
      width:10px;
      height:10px;
      border-radius:999px;
      background:#fdba74;
      box-shadow:0 0 0 6px rgba(253,186,116,.16);
      flex:0 0 auto;
    }
    @media (max-width: 640px){
      .rs-maintenance-banner-inner{
        padding:10px 12px;
        font-size:13px;
        gap:8px;
      }
    }

/* =========================================================
   34. Cookie banner / preferences
   ========================================================= */

.rs-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1198;
  background: rgba(23, 31, 43, 0.52);
  backdrop-filter: blur(2px);
}

.rs-cookie-banner,
.rs-cookie-prefs {
  font-family: var(--font);
}

.rs-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 1120px;
  margin: 0 auto;
  pointer-events: none;
}

.rs-cookie-banner__inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px 20px;
  border: 1px solid rgba(185, 196, 210, 0.95);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 20px 40px rgba(20, 29, 43, 0.18);
}

.rs-cookie-banner__content {
  min-width: 0;
}

.rs-cookie-banner__eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--blue1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-cookie-banner__title,
.rs-cookie-prefs__title {
  margin: 0;
  color: #243041;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 800;
}

.rs-cookie-banner__text,
.rs-cookie-prefs__text {
  margin: 10px 0 0;
  max-width: 760px;
  color: #546173;
  font-size: 14px;
  line-height: 1.6;
}

.rs-cookie-banner__links {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.rs-cookie-banner__links a,
.rs-cookie-policy-link {
  color: var(--blue1);
  font-weight: 700;
  text-decoration: none;
}

.rs-cookie-banner__links a:hover,
.rs-cookie-policy-link:hover {
  text-decoration: underline;
}

.rs-cookie-banner__actions,
.rs-cookie-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.rs-cookie-banner__actions .btn,
.rs-cookie-prefs__actions .btn {
  min-height: 42px;
  min-width: 132px;
  border-radius: 10px;
}

/* footer trigger as clean text link */
.footer-cookie-link {
  display: inline-block;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0 0 0 6px;
  color: #5f6b7b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: #243041;
  outline: none;
}

.rs-cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 1201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.rs-cookie-prefs__card {
  width: 100%;
  max-width: 760px;
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid rgba(185, 196, 210, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.26);
}

.rs-cookie-prefs__head,
.rs-cookie-prefs__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.rs-cookie-prefs__head {
  border-bottom: 1px solid #dbe2ea;
}

.rs-cookie-prefs__foot {
  border-top: 1px solid #dbe2ea;
}

.rs-cookie-prefs__body {
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}

.rs-cookie-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #ced7e2;
  border-radius: 11px;
  background: #ffffff;
  color: #4f5c6e;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.rs-cookie-close:hover,
.rs-cookie-close:focus-visible {
  border-color: #b9c5d3;
  background: #f5f8fb;
  color: #243041;
  transform: translateY(-1px);
  outline: none;
}

.rs-cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  background: #ffffff;
}

.rs-cookie-pref-row.is-locked {
  background: linear-gradient(180deg, #f8fafc 0%, #f2f5f9 100%);
}

.rs-cookie-pref-row__copy {
  min-width: 0;
}

.rs-cookie-pref-row__copy h3 {
  margin: 0 0 6px;
  color: #243041;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.rs-cookie-pref-row__copy p {
  margin: 0;
  color: #5d6978;
  font-size: 14px;
  line-height: 1.55;
}

.rs-cookie-pref-row__control {
  flex: 0 0 auto;
}

.rs-cookie-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c9d4e0;
  border-radius: 999px;
  background: #eef3f8;
  color: #435266;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.rs-cookie-chip.is-active {
  border-color: rgba(46, 94, 169, 0.2);
  background: rgba(46, 94, 169, 0.1);
  color: var(--blue1);
}

.rs-cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.rs-cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rs-cookie-switch__slider {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: #c5d0dc;
  box-shadow: inset 0 0 0 1px rgba(27, 39, 53, 0.08);
  transition: background-color 0.18s ease;
}

.rs-cookie-switch__slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(25, 34, 46, 0.16);
  transition: transform 0.18s ease;
}

.rs-cookie-switch input:checked + .rs-cookie-switch__slider {
  background: linear-gradient(180deg, var(--blue2) 0%, var(--blue1) 100%);
}

.rs-cookie-switch input:checked + .rs-cookie-switch__slider::after {
  transform: translateX(22px);
}

.rs-cookie-switch input:focus-visible + .rs-cookie-switch__slider {
  outline: 3px solid rgba(59, 120, 216, 0.22);
  outline-offset: 2px;
}

.rs-cookie-switch__label {
  color: #425165;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.rs-cookie-pref-empty {
  padding: 16px 18px;
  border: 1px dashed #cfd8e3;
  border-radius: 14px;
  background: #f8fafc;
  color: #607082;
  font-size: 14px;
  line-height: 1.5;
}

body.rs-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .rs-cookie-banner__inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .rs-cookie-banner__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .rs-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .rs-cookie-banner__inner {
    padding: 16px;
    gap: 14px;
    border-radius: 12px;
  }

  .rs-cookie-banner__title,
  .rs-cookie-prefs__title {
    font-size: 22px;
  }

  .rs-cookie-banner__text,
  .rs-cookie-prefs__text,
  .rs-cookie-pref-row__copy p,
  .rs-cookie-switch__label {
    font-size: 13px;
  }

  .rs-cookie-banner__actions,
  .rs-cookie-prefs__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rs-cookie-banner__actions .btn,
  .rs-cookie-prefs__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .rs-cookie-prefs {
    align-items: flex-end;
    padding: 10px;
  }

  .rs-cookie-prefs__card {
    max-height: 92vh;
    border-radius: 16px;
  }

  .rs-cookie-prefs__head,
  .rs-cookie-prefs__body,
  .rs-cookie-prefs__foot {
    padding: 16px;
  }

  .rs-cookie-prefs__head,
  .rs-cookie-prefs__foot,
  .rs-cookie-pref-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rs-cookie-pref-row__control {
    width: 100%;
  }

  .rs-cookie-switch {
    justify-content: space-between;
    width: 100%;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-cookie-link {
    display: inline;
    margin-left: 0;
    font-size: 12px;
  }
}

/* =========================================================
   35. Privacy / cookie policy page
   ========================================================= */

/* Main wrapper inside your existing .card */
.privacy-page {
  max-width: 880px;
  margin: 0 auto;
}

/* Header section (title + intro) */
.privacy-page__header {
  margin-bottom: 22px;
}

/* Small uppercase label above title */
.privacy-page__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Main page title */
.privacy-page__title {
  margin: 0;
  color: #243041;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

/* Intro paragraph under title */
.privacy-page__lead {
  margin: 10px 0 0;
  color: #5d6978;
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}

/* Each content section */
.privacy-page__section {
  margin-top: 26px;
}

/* Section headings (1–12) */
.privacy-page__section h2 {
  margin: 0 0 10px;
  color: #243041;
  font-size: 18px;
  font-weight: 800;
}

/* Paragraph text */
.privacy-page__section p {
  margin: 0 0 10px;
  color: #5d6978;
  font-size: 14px;
  line-height: 1.6;
}

/* Bullet lists */
.privacy-page__list {
  margin: 8px 0 0 18px;
  padding: 0;
  color: #5d6978;
  font-size: 14px;
  line-height: 1.6;
}

.privacy-page__list li {
  margin-bottom: 6px;
}

/* --- Cookie tables --- */

/* Wrapper so tables scroll nicely on small screens */
.privacy-cookie-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

/* Table base */
.privacy-cookie-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  font-size: 14px;
}

/* Table header */
.privacy-cookie-table thead {
  background: #f4f7fb;
}

.privacy-cookie-table th {
  text-align: left;
  padding: 12px 14px;
  color: #243041;
  font-weight: 700;
  border-bottom: 1px solid #d7e0ea;
}

/* Table body cells */
.privacy-cookie-table td {
  padding: 12px 14px;
  color: #5d6978;
  border-bottom: 1px solid #e3e9f1;
  vertical-align: top;
}

/* Remove last row border */
.privacy-cookie-table tr:last-child td {
  border-bottom: none;
}

/* Code inline (like /privacy path) */
.privacy-page code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

/* --- Mobile tweaks --- */
@media (max-width: 640px) {

  .privacy-page {
    padding: 0 2px;
  }

  .privacy-page__title {
    font-size: 24px;
  }

  .privacy-page__lead,
  .privacy-page__section p,
  .privacy-page__list {
    font-size: 13px;
  }

  .privacy-cookie-table th,
  .privacy-cookie-table td {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* =========================================================
   36. Terms
   ========================================================= */

.terms-page {
  max-width: 980px;
  margin: 0 auto;
}

.terms-page .card-body {
  padding: 32px 40px;
}

.terms-page__meta {
  margin: 12px 0 0;
  color: #596579;
  font-size: 14px;
  line-height: 1.6;
}

.terms-page__header {
  margin-bottom: 32px;
}

.terms-page__eyebrow {
  margin-bottom: 8px;
  color: #2d5db3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-page__title {
  margin: 0 0 14px;
  color: #1d2a3b;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.terms-page__lead {
  margin: 0;
  max-width: 760px;
  color: #596579;
  font-size: 16px;
  line-height: 1.7;
}

.terms-page__section + .terms-page__section {
  margin-top: 28px;
}

.terms-page__section h2 {
  margin: 0 0 12px;
  color: #1d2a3b;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.terms-page__section p {
  margin: 0 0 14px;
  color: #596579;
  font-size: 16px;
  line-height: 1.75;
}

.terms-page__list {
  margin: 0 0 16px 20px;
  padding: 0;
}

.terms-page__list li {
  margin: 0 0 8px;
  color: #596579;
  font-size: 16px;
  line-height: 1.75;
}

.terms-page__section a {
  color: #2d5db3;
  text-decoration: none;
  font-weight: 700;
}

.terms-page__section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .terms-page .card-body {
    padding: 24px 20px;
  }

  .terms-page__title {
    font-size: 24px;
  }

  .terms-page__section h2 {
    font-size: 17px;
  }

  .terms-page__section p,
  .terms-page__list li,
  .terms-page__lead {
    font-size: 15px;
  }
}

/* =========================================================
   37. Contact page
   ========================================================= */
.contact-page {
  max-width: 1120px;
  margin: 0 auto;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 28px;
  align-items: start;
}

.contact-page__intro {
  padding: 10px 4px 0;
}

.contact-page__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #2d5db3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-page__title {
  margin: 0;
  color: #1d2a3b;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  max-width: 720px;
}

.contact-page__lead {
  margin: 16px 0 0;
  max-width: 720px;
  color: #596579;
  font-size: 16px;
  line-height: 1.75;
}

.contact-page__info {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-page__info-card {
  padding: 22px 24px;
  border: 1px solid #dbe3ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.contact-page__info-card h2 {
  margin: 0 0 10px;
  color: #1d2a3b;
  font-size: 18px;
  font-weight: 800;
}

.contact-page__info-card p {
  margin: 0;
  color: #596579;
  font-size: 15px;
  line-height: 1.7;
}

.contact-page__list {
  margin: 0 0 0 18px;
  padding: 0;
}

.contact-page__list li {
  margin-bottom: 8px;
  color: #596579;
  font-size: 15px;
  line-height: 1.65;
}

.contact-card {
  padding: 28px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form select {
  height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #9ca3af;
}

.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.contact-form__hint {
  margin-top: -4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .contact-page__grid {
    grid-template-columns: 1fr;
  }

  .contact-page__title {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .contact-card {
    padding: 22px 18px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-page__title {
    font-size: 26px;
  }

  .contact-page__lead,
  .contact-page__info-card p,
  .contact-page__list li {
    font-size: 14px;
  }
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   38. About page
   ========================================================= */

.about-premium-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.about-premium-page img {
    display: block;
    width: 100%;
    height: auto;
}

.about-premium-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
    padding: 28px 0 64px;
}

.about-premium-hero__content h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 760px;
}

.about-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7a7a7a;
}

.about-lead,
.section-heading p,
.about-split-section__content p,
.about-premium-cta__content p,
.featured-build-card__body p,
.about-timeline__item p,
.hero-visual-main__body p,
.ownership-point span {
    color: #5f5f5f;
    line-height: 1.75;
    font-size: 16px;
}

.about-lead {
    max-width: 700px;
    font-size: 18px;
}

.about-hero-actions,
.about-premium-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-black,
.btn-ghost,
.text-link {
    transition: all 0.2s ease;
}

.btn-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.btn-black:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.btn-ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.22);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,248,248,0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.about-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
    max-width: 720px;
}

.about-stat-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.about-stat-card strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-card span {
    color: #686868;
    font-size: 14px;
}

.about-premium-hero__visual {
    position: relative;
}

.hero-visual-main {
    overflow: hidden;
}

.hero-visual-main__image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-top: -25px;
}

.hero-visual-main__body {
    padding: 24px;
}

.hero-visual-main__body h2 {
    margin: 10px 0 12px;
    font-size: 1.7rem;
    line-height: 1.15;
}

.hero-pill,
.build-owner,
.timeline-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-pill,
.timeline-step {
    color: #111;
}

.hero-visual-inline {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-visual-inline__label {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a7a7a;
}

.hero-visual-inline__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-visual-inline__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.hero-visual-inline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #111;
    flex: 0 0 34px;
}

.hero-visual-inline__icon svg {
    width: 18px;
    height: 18px;
}

.about-premium-section {
    padding: 36px 0;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading.centered {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 28px;
}

.section-heading h2,
.about-split-section__content h2,
.about-premium-cta__content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-feature-card {
    padding: 24px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 18px;
    background: #f4f4f4;
    color: #111;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.about-feature-card h3,
.featured-build-card__body h3,
.about-timeline__item h3,
.ownership-point strong {
    margin: 0 0 10px;
}

.about-split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 34px;
    align-items: center;
}

.about-image-stack {
    position: relative;
    min-height: 520px;
}

.about-image-stack__main,
.about-image-stack__small {
    overflow: hidden;
}

.about-image-stack__main img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-image-stack__small {
    position: absolute;
    right: -10px;
    bottom: 26px;
    width: 48%;
}

.about-image-stack__small img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-top: -15px;
}

.ownership-points {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.ownership-point {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ownership-point strong {
    display: block;
    font-size: 1rem;
}

.featured-build-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.featured-build-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-build-card__image-link {
    display: block;
}

.featured-build-card__image-link img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.featured-build-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.featured-build-card__body h3 {
    margin: 0;
}

.featured-build-card__body p {
    margin: 0;
}

.featured-build-card__body p + p {
    margin-top: 8px;
}

.build-owner {
    color: #6a6a6a;
    margin-bottom: 2px;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    opacity: 0.7;
}

.text-link--button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    margin-top: auto;
    padding: 0 16px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}

.text-link--button:hover {
    opacity: 0.92;
}

.about-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.about-timeline__item {
    padding: 22px;
}

.timeline-step {
    margin-bottom: 14px;
}

.about-quote-band {
    padding: 34px 28px;
    margin: 12px 0 24px;
}

.quote-band__inner {
    position: relative;
    max-width: 920px;
}

.quote-mark {
    margin: 0 0 6px;
    font-size: 4rem;
    line-height: 1;
    color: #d2d2d2;
}

.about-quote-band blockquote {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.55;
    color: #202020;
    font-weight: 600;
}

.about-premium-cta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 32px;
    margin-top: 8px;
}

.about-premium-cta__content {
    max-width: 720px;
}

@media (max-width: 1100px) {
    .about-premium-hero,
    .about-split-section,
    .about-premium-cta {
        grid-template-columns: 1fr;
        display: grid;
    }

    .about-feature-grid,
    .featured-build-grid,
    .about-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-image-stack {
        min-height: unset;
    }

    .about-image-stack__small {
        width: 42%;
    }
}

@media (max-width: 760px) {
    .about-premium-page {
        padding: 24px 16px 60px;
    }

    .about-stat-row,
    .about-feature-grid,
    .featured-build-grid,
    .about-timeline,
    .hero-visual-inline__grid {
        grid-template-columns: 1fr;
    }

    .about-premium-hero {
        gap: 24px;
        padding-bottom: 42px;
    }

    .about-premium-section {
        padding: 26px 0;
    }

    .about-premium-cta {
        padding: 24px;
    }

    .about-image-stack__small {
        position: static;
        width: 100%;
        margin-top: 14px;
    }
}

/* =========================================================
   39. Explore page
   ========================================================= */

/* Header (matches People / Following / Messages) */
.explore-head__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.explore-head__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eef2ff;
  border: 1px solid #d9e2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  flex: 0 0 54px;
}

.explore-head__icon svg {
  width: 24px;
  height: 24px;
}

.explore-head__text {
  min-width: 0;
}

/* Existing pagination */
.explore-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.explore-pagination__side--left {
  justify-self: start;
}

.explore-pagination__side--right {
  justify-self: end;
}

.explore-pagination__label {
  text-align: center;
  white-space: nowrap;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .explore-head__main {
    align-items: flex-start;
  }

  .explore-head__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-basis: 48px;
  }

  .explore-head__icon svg {
    width: 21px;
    height: 21px;
  }
}

/* =========================================================
   40. Car Follow requests page
   ========================================================= */

.fr-page {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 22px;
}

.fr-page__header {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.fr-page__header-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.fr-page__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f3ff;
  color: #6d28d9;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.fr-page__icon svg {
  width: 24px;
  height: 24px;
}

.fr-page__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fr-stat-card {
  min-width: 138px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  text-align: right;
}

.fr-stat-card__label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.fr-stat-card__value {
  margin-top: 4px;
  color: #111827;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 800;
}

.fr-grid {
  display: grid;
  gap: 16px;
}

.fr-section-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.fr-section-card__head {
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.fr-section-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fr-section-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fr-section-card__icon svg {
  width: 18px;
  height: 18px;
}

.fr-section-card__icon--pending {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.fr-section-card__icon--approved {
  background: #ecfdf3;
  border-color: #b7ebc6;
  color: #15803d;
}

.fr-section-card__title {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
}

.fr-section-card__sub {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.92rem;
}

.fr-empty-state {
  padding: 42px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fr-empty-state .empty-state-icon {
  color: #6b7280;
}

.fr-empty-state h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
}

.fr-empty-state p {
  margin: 0;
}

.fr-list,
.fr-groups {
  display: flex;
  flex-direction: column;
}

.fr-item,
.fr-approved-item {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fr-item + .fr-item,
.fr-group + .fr-group {
  border-top: 1px solid #eef2f7;
}

.fr-item__main,
.fr-approved-item__main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fr-item__avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.fr-item__content,
.fr-approved-item__content {
  min-width: 0;
  flex: 1;
}

.fr-item__topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.fr-user-link {
  color: #111827;
  font-weight: 800;
}

.fr-user-link:hover {
  text-decoration: underline;
}

.fr-dot,
.fr-item__meta-label,
.fr-item__meta,
.fr-group__count {
  color: #6b7280;
}

.fr-item__title {
  color: #111827;
  line-height: 1.45;
}

.fr-item__meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}

.fr-item__actions,
.fr-approved-item__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fr-action-form {
  margin: 0;
}

.fr-btn {
  gap: 7px;
}

.fr-btn__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fr-btn__icon svg {
  width: 14px;
  height: 14px;
}

.fr-group {
  padding: 0;
}

.fr-group__head {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fr-group__head-main {
  min-width: 0;
}

.fr-group__car-title {
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

.fr-group__count {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.fr-group__list {
  border-top: 1px solid #eef2f7;
}

.fr-approved-item--bordered {
  border-top: 1px solid #eef2f7;
}

@media (max-width: 900px) {
  .fr-page__header {
    flex-direction: column;
  }

  .fr-page__stats {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .fr-item,
  .fr-approved-item,
  .fr-group__head {
    padding: 14px 14px;
  }

  .fr-item,
  .fr-approved-item,
  .fr-group__head {
    flex-direction: column;
    align-items: stretch;
  }

  .fr-item__actions,
  .fr-approved-item__actions {
    justify-content: flex-start;
  }

  .fr-action-form {
    width: 100%;
  }

  .fr-action-form .btn {
    width: 100%;
  }

  .fr-stat-card {
    min-width: 0;
    flex: 1 1 160px;
    text-align: left;
  }
}

/* =========================
   41. Messages page
   ========================= */

.dm-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

.dm-page__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dm-page__header-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dm-page__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4338ca;
}

.dm-page__icon svg {
  width: 22px;
  height: 22px;
}

.dm-page__stats {
  display: flex;
  gap: 12px;
}

.dm-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 120px;
  text-align: right;
}

.dm-stat-card__label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.dm-stat-card__value {
  font-size: 1.3rem;
  font-weight: 800;
}

/* Card */
.dm-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
}

/* List */
.dm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}

.dm-item:first-child {
  border-top: none;
}

.dm-item:hover {
  background: #fafafa;
}

.dm-item.is-unread {
  background: #f8fafc;
}

.dm-avatar {
  width: 48px;
  height: 48px;
}

.dm-item__main {
  flex: 1;
  min-width: 0;
}

.dm-item__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dm-item__user {
  font-weight: 800;
  color: #111827;
}

.dm-item__time {
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.dm-item__preview {
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* unread badge */
.dm-unread {
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
}

/* empty */
.dm-empty {
  padding: 48px 24px;
  text-align: center;
}

.dm-empty__icon {
  margin-bottom: 10px;
  color: #6b7280;
  display: inline-block;
}

.dm-empty__icon svg {
    width: 32px;
    height: 32px;
}

/* =========================================================
   39. Header hardening / tablet portrait cleanup
   Safe overrides appended after existing responsive rules
   ========================================================= */

.rs-ico,
.rs-avatar,
.rs-dd-head-avatar {
  box-sizing: border-box;
  flex-shrink: 0;
}

.rs-avatar img,
.rs-dd-head-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* iPad / tablet touch: keep header action icons perfectly circular */
@media (hover: none), (pointer: coarse) {
  .rs-ico {
    display: flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    aspect-ratio: 1 / 1;
    flex: 0 0 44px;
    border-radius: 50%;
  }

  .rs-svg svg {
    width: 20px;
    height: 20px;
  }
}

/* tablet portrait: make header layout deliberate instead of wrapped/stacked */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {

  .rs-top-inner {
    position: relative;
    min-height: auto;
    padding: 10px 16px 8px;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "nav";

    gap: 6px;
  }

  /* TOP ROW CONTAINER */
  .rs-top-inner::before {
    content: "";
    grid-area: top;
  }

  /* CENTERED LOGO (true center of header) */
  .rs-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;

    width: auto;
    height: auto;
    flex: none;
    z-index: 1;
  }

  .rs-brand-logo {
    height: 34px;
  }

  /* ACTIONS ON RIGHT */
  .rs-actions {
    grid-area: top;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  /* NAV BELOW */
  .rs-nav {
    grid-area: nav;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    width: 100%;
  }

  .rs-nav-link {
    padding: 6px 0;
    font-size: 13px;
  }

  .dm-head {
  position: sticky;
  top: 2px; /* or 0 if no fixed site header */
}
}

/* =========================================================
   PATCH: Tooltip spacing + visual polish
   ========================================================= */

/* =========================================================
   PATCH: Garage verified tooltip closer to badge
   ========================================================= */

.garage-verified-badge[data-tooltip]::before {
  bottom: 100%;
  margin-bottom: 2px;
  transform: translate(-50%, -2px);
}

.garage-verified-badge[data-tooltip]::after {
  bottom: 100%;
  margin-bottom: -4px;
  transform: translateX(-50%);
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

 .dm-head {
  position: sticky;
  top: 120px; /* or 0 if no fixed site header */
}

}


.session-expired-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.session-expired-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.session-expired-modal__card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

/* HERO */
.session-expired-modal__hero {
  position: relative;
  min-height: 188px;
  background: linear-gradient(135deg, #62b9d6 0%, #75b8f0 100%);
  overflow: hidden;

  /* ✅ FIX: proper vertical centering */
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-expired-modal__hero::before,
.session-expired-modal__hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.session-expired-modal__hero::before {
  width: 430px;
  height: 430px;
  right: -120px;
  top: 18px;
  background: rgba(255, 255, 255, 0.14); /* slightly reduced */
}

.session-expired-modal__hero::after {
  width: 320px;
  height: 320px;
  right: 80px;
  top: 68px;
  background: rgba(255, 255, 255, 0.10); /* reduced more */
}

/* LOCK */
.session-expired-modal__hero-lock {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 120px;
  margin: 0; /* handled by flex now */
  border-radius: 26px;
  background: linear-gradient(180deg, #2f5dff 0%, #2139c6 100%);
  box-shadow: inset 0 10px 20px rgba(255,255,255,0.12);
}

.session-expired-modal__hero-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 82px;
  height: 64px;
  transform: translateX(-50%);
  border: 14px solid #2139c6;
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
  box-sizing: border-box;
}

.session-expired-modal__hero-lock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36px;
  width: 22px;
  height: 38px;
  transform: translateX(-50%);
  border: 3px solid rgba(255,255,255,0.7);
  border-radius: 6px;
}

/* BODY */
.session-expired-modal__body {
  position: relative;
  z-index: 3;
  padding: 26px 28px 24px;
  background: #ffffff;
}

.session-expired-modal__body h2 {
  margin: 0 0 14px;
  color: #2d3748;
  font-size: 22px;
  line-height: 1.2;
}

.session-expired-modal__body p {
  position: relative;
  z-index: 3;
  margin: 0 0 12px;
  color: #5f6f84;
  font-size: 16px;
  line-height: 1.4;
}

/* ACTIONS */
.session-expired-modal__actions {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.session-expired-modal__actions .btn,
.session-expired-modal__actions button {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #5f8ed7;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.session-expired-modal__actions .btn:hover,
.session-expired-modal__actions button:hover {
  filter: brightness(0.97);
}

.session-expired-modal__actions .btn:focus-visible,
.session-expired-modal__actions button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

/* MOBILE */
@media (max-width: 640px) {
  .session-expired-modal {
    padding: 14px;
  }

  .session-expired-modal__body {
    padding: 22px 18px 20px;
  }

  .session-expired-modal__actions {
    justify-content: stretch;
  }

  .session-expired-modal__actions .btn,
  .session-expired-modal__actions button {
    width: 100%;
  }

  /* optional: slightly smaller lock on mobile */
  .session-expired-modal__hero-lock {
    transform: scale(0.9);
  }
}

.gicon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #d9e2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  flex: 0 0 40px;
}

.gicon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* =========================================================
   Car edit page
   ========================================================= */

.car-edit-page {
  gap: 18px;
}

.car-edit-page-head {
  margin-bottom: 0;
}

.car-edit-box__head {
  align-items: flex-start;
}

.car-edit-box__sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.car-edit-box__body {
  padding-top: 18px;
}

.car-edit-form {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.car-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.car-edit-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.car-edit-field label,
.car-edit-vis-label {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}

.car-edit-form input[type="text"],
.car-edit-form input[type="number"],
.car-edit-form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
  box-sizing: border-box;
}

.car-edit-form input[type="text"]:focus,
.car-edit-form input[type="number"]:focus,
.car-edit-form select:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.car-edit-card-section {
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.car-edit-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
}

.car-edit-check input {
  margin-top: 3px;
}

.car-edit-help {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.car-edit-help--stack > div + div {
  margin-top: 4px;
}

.car-edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.car-edit-note {
  margin-top: 14px;
}

.car-edit-flash {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .car-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .car-edit-actions {
    flex-direction: column;
  }

  .car-edit-actions .btn {
    width: 100%;
  }
}

.car-save-spacer {
  display: none;
}

.garage-head__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.garage-head__icon {
  transform: translateY(-2px); /* ← key fix */
}


/* =========================================================
   FINAL HOMEPAGE PATCH V2
   - full-width top hero with no radius
   - stronger "Why RSBuild exists" banner styling
   - properly styled CTA buttons over hero image
   - cleaner spacing in smaller homepage cards
   ========================================================= */

/* ---------- Top hero ---------- */
.guest-hero {
  width: 100vw;
  max-width: 100vw;
  min-height: 500px;
  margin: 0 0 18px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.guest-hero--rsbuild,
.guest-hero__media,
.guest-hero__overlay {
  border-radius: 0 !important;
}

.guest-hero__media {
  background-position: center 18%;
}

.guest-hero__overlay {
  min-height: 500px;
  padding: 54px 38px 56px;
  background:
    linear-gradient(90deg, rgba(8, 13, 22, 0.84) 0%, rgba(8, 13, 22, 0.68) 34%, rgba(8, 13, 22, 0.28) 62%, rgba(8, 13, 22, 0.10) 100%),
    linear-gradient(180deg, rgba(8, 13, 22, 0.16) 0%, rgba(8, 13, 22, 0.05) 28%, rgba(8, 13, 22, 0.44) 100%);
}

.guest-hero__content {
  max-width: 700px;
  text-align: left;
}

.guest-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.guest-hero__content h1 {
  margin: 16px 0 0;
  max-width: 760px;
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.guest-hero__lead,
.guest-hero__content p {
  max-width: 660px;
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.guest-hero__actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.guest-hero__cta,
.guest-hero__secondary {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.guest-hero__cta {
  background: linear-gradient(180deg, #4d89e6 0%, #2e5ea9 100%);
  border: 1px solid #2b58a3;
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.22);
}

.guest-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.26);
}

.guest-hero__secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
  color: #1f2937;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.guest-hero__secondary:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.guest-hero__points {
  margin-top: 18px;
  gap: 8px;
}

.guest-hero__points span {
  min-height: 30px;
  padding: 0 12px;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

/* ---------- Secondary feature banner ---------- */
.guest-home-wrap {
  margin-top: 0;
}

.guest-feature {
  margin-top: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  margin-bottom: 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.38);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- Better spacing in small cards ---------- */
.guest-core-benefits .box-b,
.guest-social-proof .box-b,
.dash-left .box-b,
.dash-right .box-b {
  padding-top: 18px;
  padding-bottom: 18px;
}

.box-h {
  padding: 14px 14px 13px;
}

.box-h h2 {
  line-height: 1.2;
}

.box-b {
  padding: 16px 14px;
}

.grow {
  padding: 12px;
  align-items: flex-start;
}

.gname {
  margin-bottom: 6px;
  line-height: 1.25;
}

.gmeta {
  line-height: 1.55;
}

.guest-core-benefit {
  padding: 20px;
}

.guest-core-benefit h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.guest-core-benefit p {
  margin: 0;
  line-height: 1.65;
}

.buildcard {
  padding: 16px;
}

.buildname {
  padding: 10px 0 0;
  margin: 0 0 8px;
  line-height: 1.3;
}

.buildmeta {
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.buildlikes {
  padding: 8px 0 0;
  margin: 0;
  line-height: 1.5;
}

.modcard {
  padding: 16px;
}

.modrow {
  padding: 0;
}

.modbrand {
  line-height: 1.3;
}

.modmeta {
  padding: 8px 0 0;
  margin: 0;
  line-height: 1.6;
}

.trendtitle {
  margin-top: 12px;
  line-height: 1.3;
}

.trendmeta {
  margin-top: 6px;
  line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .guest-hero__content h1 {
    font-size: 50px;
  }
}

@media (max-width: 1020px) {
  .guest-hero,
  .guest-hero__overlay {
    min-height: 430px;
  }

  .guest-hero__overlay {
    padding: 40px 24px 40px;
  }

  .guest-hero__content {
    max-width: 100%;
  }

  .guest-hero__content h1 {
    font-size: 42px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .guest-hero,
  .guest-hero__overlay {
    min-height: 360px;
  }

  .guest-hero__overlay {
    padding: 30px 18px 28px;
  }

  .guest-hero__content h1 {
    font-size: 36px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 17px;
    line-height: 1.45;
  }

  .guest-hero__actions {
    width: 100%;
    align-items: stretch;
  }

  .guest-hero__actions .btn {
    width: 100%;
  }

  .guest-core-benefit,
  .buildcard,
  .modcard {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .guest-hero,
  .guest-hero__overlay {
    min-height: 330px;
  }

  .guest-hero__overlay {
    padding: 26px 14px 22px;
  }

  .guest-hero__content h1 {
    font-size: 30px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 15px;
  }
}




/* =========================================================
   HERO POLISH PATCH
   - slightly stronger support pills
   - cleaner spacing between CTA row and pill row
   ========================================================= */

.guest-hero__actions {
  margin-top: 30px;
  margin-bottom: 0;
  gap: 14px;
}

.guest-hero__points {
  margin-top: 16px;
  gap: 10px;
}

.guest-hero__points span {
  min-height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .guest-hero__actions {
    margin-top: 24px;
    gap: 12px;
  }

  .guest-hero__points {
    margin-top: 14px;
    gap: 8px;
  }

  .guest-hero__points span {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .guest-hero__points {
    margin-top: 12px;
  }

  .guest-hero__points span {
    min-height: 28px;
    padding: 0 11px;
    font-size: 11.5px;
  }
}



/* =========================================================
   HERO ALIGNMENT PATCH
   - align CTA buttons perfectly
   - increase support pill size/weight
   ========================================================= */

.guest-hero__actions {
  align-items: stretch;
}

.guest-hero__cta,
.guest-hero__secondary {
  min-height: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  line-height: 1;
}

.guest-hero__secondary {
  min-width: 110px;
}

.guest-hero__points {
  margin-top: 18px;
  gap: 10px;
}

.guest-hero__points span {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  border-width: 1px;
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .guest-hero__cta,
  .guest-hero__secondary {
    min-height: 52px;
    height: 52px;
    padding: 0 18px;
  }

  .guest-hero__points span {
    min-height: 32px;
    padding: 0 13px;
    font-size: 12px;
  }
}



/* =========================================================
   HARD CTA BUTTON NORMALISER
   Fixes Login button sitting higher than primary CTA
   ========================================================= */

.guest-hero__actions {
  display: flex !important;
  align-items: flex-end !important;
  gap: 14px !important;
}

.guest-hero__actions > .btn,
.guest-hero__cta,
.guest-hero__secondary {
  margin: 0 !important;
  box-sizing: border-box !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  line-height: 1 !important;
  font-size: 15px !important;
  font-weight: 800 !important;

  height: 56px !important;
  min-height: 56px !important;
  padding: 0 24px !important;

  border-radius: 14px !important;
}

/* Optional but recommended for consistency */
.guest-hero__cta {
  min-width: 238px;
}

.guest-hero__secondary {
  min-width: 120px;
}

/* =========================================================
   RSBuild homepage refinement
   Load AFTER main app.css
   ========================================================= */

/* Full-width hero */
.guest-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 500px;
  margin: 0 0 18px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  border-radius: 0 !important;
  background: #0f172a;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}



.guest-hero__media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/hero-rsbuild-clean.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 18%;
}

.guest-hero__overlay {
  position: relative;
  min-height: 500px;
  padding: 54px 38px 56px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(8, 13, 22, 0.84) 0%, rgba(8, 13, 22, 0.68) 34%, rgba(8, 13, 22, 0.28) 62%, rgba(8, 13, 22, 0.10) 100%),
    linear-gradient(180deg, rgba(8, 13, 22, 0.16) 0%, rgba(8, 13, 22, 0.05) 28%, rgba(8, 13, 22, 0.44) 100%);
}

.guest-hero__content {
  max-width: 700px;
  color: #fff;
  text-align: left;
}



.guest-hero__content h1 {
  margin: 16px 0 0;
  max-width: 760px;
  color: #fff;
  font-size: 56px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.guest-hero__lead,
.guest-hero__content p {
  max-width: 660px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

/* Hero CTA row */
.guest-hero__actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap;
  margin-top: 28px;
}

.guest-hero__actions > .btn,
.guest-hero__cta,
.guest-hero__secondary {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 24px !important;
  border-radius: 14px !important;
  text-decoration: none;
}

.guest-hero__cta {
  min-width: 238px !important;
  background: linear-gradient(180deg, #4d89e6 0%, #2e5ea9 100%) !important;
  border: 1px solid #2b58a3 !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.22) !important;
}

.guest-hero__secondary {
  min-width: 120px !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%) !important;
  border: 1px solid #d7dce5 !important;
  color: #1f2937 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16) !important;
}

/* Hero pills */
.guest-hero__points {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guest-hero__points span {
  min-height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Secondary banner */
.guest-home-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 40px;
}

.guest-feature {
  position: relative;
  min-height: 250px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
  display: flex;
  align-items: stretch;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}



.guest-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.guest-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 12, 22, 0.9) 0%, rgba(7, 12, 22, 0.72) 34%, rgba(7, 12, 22, 0.3) 62%, rgba(7, 12, 22, 0.08) 100%);
}

.guest-feature__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 48px 34px 34px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



.guest-feature__content h2 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.guest-feature__content p {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.65;
}

.guest-feature__btn {
  margin-top: 20px;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 11px;
}

/* Breathing room in cards */






.guest-core-benefits .box-b,
.dash-left .box-b,
.dash-right .box-b {
  padding-top: 18px;
  padding-bottom: 18px;
}

.guest-intro-card__lead {
  margin: 0;
  color: #546173;
  font-size: 15px;
  line-height: 1.7;
}

.guest-core-benefits__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guest-core-benefit {
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.guest-core-benefit h3 {
  margin: 0 0 10px;
  color: #16202c;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.guest-core-benefit p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.guest-intro-card__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}



























/* Responsive */
@media (max-width: 1180px) {
  .guest-hero__content h1 {
    font-size: 50px;
  }

  .guest-feature__content h2 {
    font-size: 32px;
  }
}

@media (max-width: 1020px) {
  .guest-hero,
  .guest-hero__overlay {
    min-height: 430px;
  }

  .guest-hero__overlay {
    padding: 40px 24px 40px;
  }

  .guest-hero__content {
    max-width: 100%;
  }

  .guest-hero__content h1 {
    font-size: 42px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 18px;
  }

  .guest-feature__content {
    padding: 34px 24px 26px;
  }

  .guest-feature__content h2 {
    font-size: 30px;
  }

  .guest-core-benefits__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .guest-home-wrap {
    padding: 0 12px 32px;
  }

  .guest-hero,
  .guest-hero__overlay {
    min-height: 360px;
  }

  .guest-hero__overlay {
    padding: 30px 18px 28px;
  }

  .guest-hero__content h1 {
    font-size: 36px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 17px;
    line-height: 1.45;
  }

  .guest-hero__actions {
    align-items: stretch !important;
    margin-top: 24px;
  }

  .guest-hero__actions > .btn,
  .guest-hero__cta,
  .guest-hero__secondary {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
  }

  .guest-hero__points {
    margin-top: 14px;
    gap: 8px;
  }

  .guest-hero__points span {
    min-height: 32px;
    padding: 0 13px;
    font-size: 12px;
  }

  .guest-feature__content {
    max-width: 100%;
    padding: 30px 20px 22px;
  }

  .guest-feature__content h2 {
    font-size: 24px;
  }

  .guest-feature__content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .guest-feature {
    min-height: 210px;
    border-radius: 12px;
  }

  .guest-hero,
  .guest-hero__overlay {
    min-height: 330px;
  }

  .guest-hero__overlay {
    padding: 26px 14px 22px;
  }

  .guest-hero__content h1 {
    font-size: 30px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 15px;
  }

  .guest-hero__points span {
    min-height: 28px;
    padding: 0 11px;
    font-size: 11.5px;
  }
}


/* =========================================================
   19A. Production Device Refinements
   Popular-device polish for laptop, tablet and mobile.
   Keeps cards readable, prevents text overflow, and improves
   homepage balance on iPad / tablets / smaller phones.
   ========================================================= */

/* Shared safety for card content */
.box,
.box-h,
.box-b,
.buildcard,
.modcard,
.grow,
.guest-core-benefit,
.trendbuild,
.carinfo,
.ginfo,
.fhmain,
.cmt-body {
  min-width: 0;
}

.buildname,
.buildmeta,
.buildlikes,
.modbrand,
.modmeta,
.gname,
.gmeta,
.guest-core-benefit h3,
.guest-core-benefit p,
.trendtitle,
.trendmeta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Large tablets / small laptops */
@media (max-width: 1180px) {
  .dash {
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    gap: 14px;
  }

  .guest-home-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .guest-feature__content--compact {
    padding: 42px 32px 60px;
    min-height: 300px;
  }
}

/* Tablet landscape and compact desktop */
@media (max-width: 1100px) {
  .dash {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 14px;
    padding: 0;
  }

  .dash-left {
    order: 1;
  }

  .dash-center {
    order: 2;
  }

  .dash-right {
    order: 3;
    grid-column: 1 / -1;
  }

  .box {
    padding: 0;
  }

  .box-h {
    padding: 13px 14px 12px;
  }

  .box-b {
    padding: 14px;
  }

  .guest-core-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .buildgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .guest-core-benefit,
  .buildcard,
  .modcard,
  .grow {
    padding: 14px;
  }

  .guest-core-benefit p,
  .buildmeta,
  .modmeta,
  .gmeta {
    font-size: 13px;
    line-height: 1.55;
  }

  .guest-hero {
    min-height: 460px;
  }

  .guest-hero__overlay {
    min-height: 460px;
    padding: 42px 26px 44px;
  }

  .guest-hero__content h1 {
    font-size: 44px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 17px;
    max-width: 620px;
  }

  .guest-feature {
    min-height: 220px;
    height: auto;
  }

  .guest-feature__content {
    max-width: 500px;
    padding: 34px 24px 54px;
  }

  .guest-feature__content h2 {
    font-size: 30px;
  }

  .guest-feature__content--compact {
    gap: 16px;
    padding: 34px 24px 54px;
    min-height: 260px;
  }
}

/* iPad Air / iPad portrait and similar tablets */
@media (max-width: 900px) {
  .dash {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dash-left,
  .dash-center,
  .dash-right {
    grid-column: auto;
    order: initial;
    width: 100%;
  }

  .dash-center {
    order: 1;
  }

  .dash-left {
    order: 2;
  }

  .dash-right {
    order: 3;
  }

  .garage-profile-stats,
  .passport-grid,
  .contact-page__grid,
  .pv-scope .pv-page {
    grid-template-columns: 1fr;
  }

  .passport-grid {
    gap: 12px;
  }

  .guest-hero {
    min-height: 420px;
  }

  .guest-hero__overlay {
    min-height: 420px;
    padding: 34px 22px 38px;
    align-items: flex-end;
  }

  .guest-hero__content {
    max-width: 100%;
  }

  .guest-hero__content h1 {
    font-size: 40px;
  }

  .guest-hero__actions {
    gap: 12px !important;
  }

  .guest-hero__cta,
  .guest-hero__secondary,
  .guest-hero__actions > .btn {
    min-width: 0 !important;
  }

  .guest-hero__points {
    gap: 8px;
  }

  .guest-hero__points span {
    padding: 0 14px;
    min-height: 34px;
    font-size: 12px;
  }

  .guest-feature {
    min-height: 220px;
  }

  .guest-feature__content,
  .guest-feature__content--compact {
    max-width: 100%;
    padding: 28px 20px 52px;
    min-height: 220px;
  }

  .guest-feature__content h2 {
    font-size: 28px;
  }

  .guest-core-benefits__grid,
  .buildgrid {
    grid-template-columns: 1fr;
  }

  .dm-head {
    top: 0;
  }
}

/* Large phones / small tablets */
@media (max-width: 767px) {
  :root {
    --topbar-h: 64px;
  }

  body {
    padding-top: var(--topbar-h);
  }

  .rs-main {
    padding: 0 12px;
  }

  .rs-page {
    padding: 12px 0 34px;
  }

  .rs-top-inner {
    min-height: 64px;
    padding: 8px 12px;
    gap: 10px;
  }

  .rs-brand {
    width: 160px;
    height: 48px;
    flex: 0 0 160px;
  }

  .rs-brand-logo {
    height: 28px;
    margin-top: 0;
  }

  .rs-nav {
    gap: 14px;
    font-size: 13px;
  }

  .dash {
    gap: 12px;
  }

  .box-h {
    padding: 12px 12px 11px;
  }

  .box-h h2 {
    font-size: 17px;
  }

  .box-b {
    padding: 12px;
  }

  .guest-home-wrap {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 28px;
  }

  .guest-hero {
    min-height: 380px;
    margin-bottom: 14px;
  }

  .guest-hero__overlay {
    min-height: 380px;
    padding: 26px 16px 30px;
  }

  .guest-hero__eyebrow {
    min-height: 28px;
    padding: 0 11px;
    font-size: 10px;
  }

  .guest-hero__content h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 16px;
    line-height: 1.45;
    margin-top: 14px;
  }

  .guest-hero__actions {
    margin-top: 22px;
    flex-direction: column;
    align-items: stretch !important;
  }

  .guest-hero__cta,
  .guest-hero__secondary,
  .guest-hero__actions > .btn {
    width: 100%;
    min-width: 0 !important;
  }

  .guest-hero__points {
    margin-top: 14px;
  }

  .guest-feature {
    min-height: 210px;
    border-radius: 12px;
  }

  .guest-feature__content,
  .guest-feature__content--compact {
    padding: 24px 16px 44px;
    gap: 14px;
  }

  .guest-feature__content h2 {
    font-size: 24px;
  }

  .section-kicker {
    margin-bottom: 12px;
  }

  .inline-grid,
  .contact-form__row,
  .car-edit-grid {
    grid-template-columns: 1fr;
  }

  .photos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .pbig {
    grid-row: auto;
    height: 220px;
  }

  .psmall {
    height: 120px;
  }

  .feed-stats {
    gap: 12px;
    flex-wrap: wrap;
  }

  .stat.right {
    margin-left: 0;
  }
}

/* Smaller phones */
@media (max-width: 640px) {
  .guest-hero {
    min-height: 350px;
  }

  .guest-hero__overlay {
    min-height: 350px;
  }

  .guest-hero__content h1 {
    font-size: 30px;
  }

  .guest-feature__content h2 {
    font-size: 22px;
  }

  .guest-core-benefit,
  .buildcard,
  .modcard,
  .grow {
    padding: 12px;
  }

  .carrow {
    align-items: flex-start;
  }

  .garage-profile-header__body,
  .garage-profile-grid,
  .garage-profile-section-head,
  .garage-profile-empty-card,
  .garage-page,
  .garage-page > h2,
  .garage-page > p {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Very small devices */
@media (max-width: 480px) {
  .rs-top-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .rs-actions {
    gap: 8px;
  }

  .rs-ico,
  .rs-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .guest-hero__content h1 {
    font-size: 28px;
  }

  .guest-hero__lead,
  .guest-hero__content p {
    font-size: 15px;
  }

  .guest-hero__points span {
    width: 100%;
    justify-content: center;
  }

  .guest-feature__content,
  .guest-feature__content--compact {
    padding-bottom: 40px;
  }

  .feed-h,
  .cmt,
  .feed-stats {
    padding-left: 10px;
    padding-right: 10px;
  }

  .photos {
    padding: 0 10px 10px;
    gap: 6px;
  }
}


/* =========================================================
   RSBuild Home – Feature Banner Alignment Fix
   Purpose:
   - correct feature banner image focal point
   - lift/correct RS logo crop
   - give CTA proper breathing room
   - improve content vertical alignment
   - add safer mobile behavior
   ========================================================= */

/* Feature banner image positioning */
.guest-feature__media img {
  object-fit: cover;
  object-position: center 82%;
}

/* Feature banner overlay balance */
.guest-feature::before {
  background: linear-gradient(
    90deg,
    rgba(7, 12, 22, 0.92) 0%,
    rgba(7, 12, 22, 0.78) 32%,
    rgba(7, 12, 22, 0.38) 60%,
    rgba(7, 12, 22, 0.12) 100%
  );
}

/* Main content block alignment */
.guest-feature__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 42px 34px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Compact variant retains stronger top space */
.guest-feature__content--compact {
  max-width: 520px;
  padding-top: 44px;
  padding-bottom: 54px;
}

/* CTA spacing */
.guest-feature__btn {
  margin-top: 12px;
  margin-bottom: 47px;
  align-self: flex-start;
}

/* Slightly safer copy rhythm */
.guest-feature__content h2 {
  margin: 0 0 12px;
}

.guest-feature__content p {
  margin: 0;
  max-width: 500px;
}

/* Tablet tightening */
@media (max-width: 1020px) {
  .guest-feature__media img {
    object-position: center 40%;
  }

  .guest-feature__content {
    padding: 34px 24px 38px;
  }

  .guest-feature__content--compact {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .guest-feature__btn {
    margin-top: 22px;
  }
}

/* Mobile stack behavior */
@media (max-width: 720px) {
  .guest-feature__media img {
    object-position: center 42%;
  }

  .guest-feature__content {
    max-width: 100%;
    padding: 28px 20px 34px;
    justify-content: flex-start;
  }

  .guest-feature__content--compact {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .guest-feature__btn {
    margin-top: 20px;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .guest-feature__content {
    padding: 24px 16px 30px;
  }

  .guest-feature__content--compact {
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .guest-feature__media img {
    object-position: center 44%;
  }
}

.dash-left .buildgrid,
.dash-right .buildgrid {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) and (max-width: 1100px) {
  .dash-left .buildgrid {
    grid-template-columns: repeat(1, minmax(180px, 1fr));
  }
}

@media (max-width: 1024px) {

  .dash-center {
    max-width: 760px;
  }

  .box {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================================
   RSBuild hero overlay - lighter
   Paste at very end of app.css
   ================================ */

.guest-hero.guest-hero--rsbuild {
  position: relative;
}

.guest-hero.guest-hero--rsbuild .guest-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 10, 14, 0.32) 0%,
    rgba(8, 10, 14, 0.40) 55%,
    rgba(8, 10, 14, 0.48) 100%
  ) !important;
}

.guest-hero.guest-hero--rsbuild .guest-hero__content {
  position: relative;
  z-index: 2;
}

/* =========================================================
   Top stacked banners + fixed header
   ========================================================= */

:root {
  --maintenance-banner-h: 40px;
  --registration-banner-h: 44px;
}

/* Base maintenance banner */
.rs-maintenance-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1102;
  min-height: var(--maintenance-banner-h);
}

.rs-maintenance-banner .rs-maintenance-banner-inner {
  min-height: var(--maintenance-banner-h);
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Maintenance banner at very top */
.rs-maintenance-banner:not(.rs-registration-banner) {
  top: 0;
}

/* Registration banner sits below maintenance banner by default if both exist */
.rs-registration-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--maintenance-banner-h);
  z-index: 1101;
  min-height: var(--registration-banner-h);
}

.rs-registration-banner .rs-maintenance-banner-inner {
  min-height: var(--registration-banner-h);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Only registration banner visible, no maintenance banner */
body.has-registration-banner .rs-registration-banner {
  top: 0;
}

/* When registration banner exists, move header + page down */
body.has-registration-banner {
  padding-top: calc(var(--topbar-h) + var(--registration-banner-h));
}

body.has-registration-banner .rs-top {
  top: var(--registration-banner-h);
}

/* When both banners exist */
body.has-maintenance-banner.has-registration-banner {
  padding-top: calc(var(--topbar-h) + var(--maintenance-banner-h) + var(--registration-banner-h));
}

body.has-maintenance-banner.has-registration-banner .rs-registration-banner {
  top: var(--maintenance-banner-h);
}

body.has-maintenance-banner.has-registration-banner .rs-top {
  top: calc(var(--maintenance-banner-h) + var(--registration-banner-h));
}

/* Maintenance only */
body.has-maintenance-banner {
  padding-top: calc(var(--topbar-h) + var(--maintenance-banner-h));
}

body.has-maintenance-banner .rs-top {
  top: var(--maintenance-banner-h);
}

/* Header height adjustments for wrap points */
@media (max-width: 1100px) {
  :root {
    --topbar-h: 92px;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-h: 132px;
  }
}

@media (max-width: 640px) {
  :root {
    --maintenance-banner-h: 44px;
    --registration-banner-h: 48px;
  }
}

@media (max-width: 1100px) {
  :root {
    --topbar-h: 74px;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-h: 74px;
  }
}
