@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* =========================================================
   RSBuild UI
   Typography-softened production build
   Source: uploaded app-v2.css
   Changes: broad reduction of heavy 800/900 weights
   Layout, spacing, colours and breakpoints preserved
   ========================================================= */

/* =========================================================
   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: "Inter", "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: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.rs-logo span {
  font-weight: 600;
  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: 600;
  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: 700;
}

@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: 700;
}

/* 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: 700;
}

.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: 700;
  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: 700;
}

.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: 700;
}

.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: 700;
  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: 700;
}

.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: 700;
}

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

.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: 700;
}

.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;
}

.carrow > div:not(.carthumb) {
  min-width: 0;
  flex: 1 1 auto;
}

.carthumb {
  width: 56px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f1f3f6;
  flex-shrink: 0;
  transform: translateY(-7px);
}

.carthumb img {
  width: 100%;
  height: calc(100% + 1px);
  object-fit: cover;
  display: block;
}

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

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

.carmeta {
  margin-top: 2px;
  padding: 2px;
  white-space: nowrap;
}

.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: 700;
}

.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: 600;
}

.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: 700;
}

.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: 700;
}

.fhmain {
  flex: 1;
}

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

.uname {
  font-weight: 700;
}

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

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

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

.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: 600;
  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: 700;
}

/* 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: 700;
}

.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: 600;
  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: 700;
}

.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: 700;
}

.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: 700;
}

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

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

/* 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: 700;
}

.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: 700;
}

.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;
  margin-top: 15px;
}

.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 var(--border);
  background: #f8fafc;
  color: #475467;

  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: 600;
  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: 600;
  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: 700;
}

.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: 600;
  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: 600;
}

.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: 600;
}

.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: 700;
}

.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: 700;
}

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

.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: 700;
}

.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: 700;
}

.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: 700;
}

.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: 700;
}

.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: 600;
  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: 600;
  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: 600;
  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: 700;
}

.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: 600;
}

.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: var(--blue);
  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: 600;
  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: 600;
  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: 600;
  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: 700;
  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: 600;
  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: 600;
}

.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: 600;
  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: 600;
}

.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: 600;
}

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: 700;
}

/* Timeline */
.timeline-month-label {
  margin: 18px 0 8px;
  padding: 0 4px;
  color: #6b7685;
  font-size: 12px;
  font-weight: 600;
  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: 600;
}

.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: 700;
}

.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: 600;
}

.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: 700;
}

.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: 700;
  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: 600;
}

.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;
  }
}

@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: 600;
  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: 600;
}

.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;
  color: #222;
}

/* 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: 600;
}

.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: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Main page title */
.privacy-page__title {
  margin: 0;
  color: #243041;
  font-size: 28px;
  font-weight: 600;
  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: 600;
}

/* 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: 600;
  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: 600;
}

.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: 600;
}

.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;
  margin-top: 20px;
}

.contact-page__intro {
  padding: 10px 4px 0;
}

.contact-page__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #2d5db3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-page__title {
  margin: 0;
  color: #1d2a3b;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 600;
  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: 600;
}

.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: 600;
}

.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: 600;
}

.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: 600;
}

.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: 600;
}

.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: 600;
  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: 600;
}

/* 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: 600;
  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: 600;
}

.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: 600;
  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: 600;
  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: 600;
  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: 600;
  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__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: 600;
  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: 600;
  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: 700;
  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: 600;
  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: 700;
  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: 600;
}

.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-feature__content h2 {
    font-size: 32px;
  }
}

@media (max-width: 1020px) {

  .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-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-feature__content {
    max-width: 100%;
    padding: 30px 20px 22px;
  }
}

@media (max-width: 480px) {
  .guest-feature {
    min-height: 210px;
    border-radius: 12px;
  }
}


/* =========================================================
   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-ico,
  .rs-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .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;
  transform: translateY(-10px) !important;
}

.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) {/* =========================================================
   Post new page
   ========================================================= */

.post-new-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-new-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.post-new-top__intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.post-new-top__actions {
  flex: 0 0 auto;
}

.post-new-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #d8e0ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.post-new-title-icon svg {
  width: 20px;
  height: 20px;
  fill: #3b4a5c;
}

.post-new-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: #111827;
}

.post-new-sub {
  margin: 8px 0 0;
  color: #667085;
  line-height: 1.6;
  max-width: 760px;
}

.post-new-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.post-new-main,
.post-new-side,
.post-new-onboarding,
.post-new-upload,
.post-new-section {
  margin-top: 0;
}

.post-new-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-new-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-new-form__grid .post-new-field--wide {
  grid-column: span 2;
}

.post-new-form__grid--timeline-top {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: end;
  gap: 18px;
}

.post-new-form__grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-new-form__grid--utility {
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.post-new-field {
  min-width: 0;
}

.post-new-field label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
}

.post-new-field__ghost-label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.post-new-field input[type="text"],
.post-new-field input[type="number"],
.post-new-field input[type="date"],
.post-new-field select,
.post-new-field textarea {
  width: 100%;
}

.post-new-field input[type="text"],
.post-new-field input[type="number"],
.post-new-field input[type="date"],
.post-new-field select {
  min-height: 44px;
}

.post-new-field textarea {
  min-height: 180px;
  resize: vertical;
}

.post-new-field--timeline-check {
  display: flex;
  align-items: end;
}

.post-new-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}

.post-new-check input[type="checkbox"] {
  margin-top: 2px;
  flex: 0 0 auto;
}

.post-new-check--card {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.post-new-form__grid--utility .post-new-field {
  display: flex;
  flex-direction: column;
}

.post-new-onboarding .box-h,
.post-new-onboarding__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-new-onboarding__sub {
  margin-top: 6px;
  color: #667085;
  line-height: 1.55;
}

.post-new-onboarding__badge {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #cfd8e3;
  background: linear-gradient(#ffffff, #f3f6fa);
  color: #1f2937;
  font-weight: 700;
  text-align: center;
}

.post-new-onboarding__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-new-onboarding__progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e7edf4;
  overflow: hidden;
  border: 1px solid #d8e0ea;
}

.post-new-onboarding__progress-bar {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b78d8, #2e5ea9);
}

.post-new-onboarding__tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.post-new-onboarding__tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  min-width: 0;
}

.post-new-onboarding__tip-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  flex: 0 0 auto;
}

.post-new-section--timeline {
  overflow: hidden;
}

.post-new-section__head {
  padding-top: 16px;
  padding-bottom: 16px;
}

.post-new-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.post-new-section__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #d8e0ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.post-new-section__icon svg {
  width: 19px;
  height: 19px;
  fill: #3b4a5c;
}

.post-new-section__title {
  margin: 0;
}

.post-new-section__sub {
  margin-top: 4px;
  line-height: 1.5;
  max-width: 760px;
}

.post-new-section__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-new-section__group + .post-new-section__group {
  padding-top: 2px;
}

.post-new-upload__intro {
  margin-bottom: 12px;
  color: #667085;
  line-height: 1.55;
}

.post-new-preview {
  margin-top: 14px;
}

.post-new-preview.hidden {
  display: none;
}

.post-new-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.post-new-preview__grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.post-new-tiplist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .post-new-grid {
    grid-template-columns: 1fr;
  }

  .post-new-side {
    order: 2;
  }

  .post-new-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-new-form__grid .post-new-field--wide {
    grid-column: span 2;
  }

  .post-new-onboarding__tips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .post-new-form__grid--timeline-top,
  .post-new-form__grid--triple,
  .post-new-form__grid--utility {
    grid-template-columns: 1fr;
  }

  .post-new-field--timeline-check {
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  .post-new-top {
    flex-direction: column;
    align-items: stretch;
  }

  .post-new-top__intro {
    gap: 12px;
  }

  .post-new-title {
    font-size: 24px;
  }

  .post-new-form__grid {
    grid-template-columns: 1fr;
  }

  .post-new-form__grid .post-new-field--wide {
    grid-column: span 1;
  }

  .post-new-onboarding .box-h,
  .post-new-onboarding__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-new-onboarding__badge {
    align-self: flex-start;
  }

  .post-new-section__head {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .post-new-section__heading {
    gap: 10px;
  }

  .post-new-section__icon,
  .post-new-title-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .box-cta {
    flex-direction: column;
  }

  .box-cta .btn {
    width: 100%;
  }
}
  :root {
    --topbar-h: 74px;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-h: 74px;
  }
}




/* =========================================================
   99. Post view iPad landscape fix
   ========================================================= */
@media (max-width: 1024px) {
  .dash-center.dash-center--full {
    max-width: none !important;
    width: 100% !important;
  }

  .dash-center.dash-center--full .pv-page {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    gap: 12px !important;
  }

  .dash-center.dash-center--full .pv-left,
  .dash-center.dash-center--full .pv-right,
  .dash-center.dash-center--full .pv-scope,
  .dash-center.dash-center--full .pv-right-card {
    width: 100% !important;
    max-width: none !important;
  }

  .dash-center.dash-center--full .pv-right-comments {
    max-height: none !important;
    overflow: visible !important;
  }
}


/* =====================================================
   RSBUILD – TABLET / IPAD LANDSCAPE FIXES (FINAL)
   Place at VERY BOTTOM of app.css
   ===================================================== */


/* =========================
   1. FIX GLOBAL WIDTH BUG
   ========================= */
@media (max-width: 1024px) {

  /* Stop dash-center being capped globally */
  .dash-center.dash-center--full {
    max-width: none !important;
    width: 100%;
  }

}


/* =========================
   2. POST VIEW FIX (your first issue)
   ========================= */
@media (max-width: 1024px) {

  .pv-scope .pv-page {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .pv-scope .pv-left,
  .pv-scope .pv-right,
  .pv-scope .pv-page,
  .pv-scope .pv-right-card {
    width: 100%;
    max-width: none;
  }

  .pv-scope .pv-right-comments {
    max-height: none;
    overflow: visible;
  }

}


/* =========================
   3. HOME PAGE FIX (your second screenshot)
   ========================= */
@media (max-width: 1024px) {

  body.route-home .dash {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

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

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

  body.route-home .dash-left {
    order: 2;
  }

  body.route-home .dash-right {
    order: 3;
  }

  /* remove forced full-height scrolling layout */
  body.route-home,
  body.route-home main.container,
  body.route-home .rs-page {
    height: auto;
    overflow: visible;
  }

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

}


/* =========================
   4. OPTIONAL CLEANUP (safe)
   ========================= */

/* Prevent awkward half-tablet state */
@media (max-width: 1100px) {

  /* Let dash breathe a bit more */
  .dash {
    gap: 12px;
  }

}

/* iPad landscape: fixed header is taller than default 73px */
@media (hover: none) and (pointer: coarse) and (min-width: 768px) and (orientation: landscape) {
  :root {
    --topbar-h: 88px;
  }
}

/* iPad portrait: fixed header is taller than default 73px */
@media (hover: none) and (pointer: coarse) and (min-width: 768px) and (orientation: portrait) {
  :root {
    --topbar-h: 110px;
  }
}

@media (max-width: 1024px) {

  body.route-home .dash-left,
  body.route-home .dash-center,
  body.route-home .dash-right {
    grid-column: auto !important;
    width: 100%;
  }

  .carthumb {
    margin-top: 5px;
  }
}

@media (max-width: 1024px) {

  body.route-home .dash-left,
  body.route-home .dash-center,
  body.route-home .dash-right {
    grid-column: auto !important;
    width: 100%;
    max-width: none !important;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  /* this is the missing piece */
  body.route-home .dash-center,
  body.route-home .feedcard,
  body.route-home .composer,
  body.route-home .box {
    max-width: none !important;
  }

  /* neutralize the later generic centering rule for home */
  body.route-home .box {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 1021px) and (hover: hover) and (pointer: fine) {
  body.route-home .dash-left,
  body.route-home .dash-right {
    overflow-y: auto;
    padding-bottom: 32px;
  }

  body.route-home .dash-left > :last-child,
  body.route-home .dash-right > :last-child {
    margin-bottom: 24px;
  }
}

@media (min-width: 1021px) and (hover: hover) and (pointer: fine) {

  body.route-home .dash > * {
    overflow-y: auto; /* always scrollable */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  body.route-home .dash > *::-webkit-scrollbar {
    display: none;
  }

}

@media (min-width: 1021px) {

  /* All dashboard columns */
  body.route-home .dash > * {
    overflow-y: auto;
    padding-bottom: 32px;

    /* hide scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  body.route-home .dash > *::-webkit-scrollbar {
    display: none;
  }

  /* ensure last item isn't clipped */
  body.route-home .dash > * > :last-child {
    margin-bottom: 24px;
  }

}

.post-new-top__intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

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

.post-new-title-icon svg {
  width: 24px;
  height: 24px;
}

.post-new-section__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #111827;
  line-height: 0;
}

.post-new-section__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.post-new-preview {
  margin-top: 14px;
}

.post-new-preview__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 12px !important;
}

.post-new-preview__grid img,
.post-new-preview__grid .post-new-preview__img,
#postNewPreviewGrid img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 120px !important;
  object-fit: cover !important;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

@media (max-width: 640px) {
  .post-new-title-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 14px;
  }

  .post-new-title-icon svg {
    width: 21px;
    height: 21px;
  }
}

.pv-mention {
  color: var(--blue);
  line-height: 1.25;
  font-weight: 600;
}

.pv-mention:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rs-push-banner.hidden { display:none; }

  .rs-push-banner{
    margin:16px auto 0;
    max-width:1120px;
    padding:0 16px;
  }

  .rs-push-banner__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    border:1px solid #e5e7eb;
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
  }

  .rs-push-banner__copy{
    min-width:0;
    flex:1;
  }

  .rs-push-banner__eyebrow{
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#6b7280;
    margin:0 0 6px;
  }

  .rs-push-banner__title{
    margin:0 0 4px;
    font-size:18px;
    font-weight:700;
    color:#111827;
  }

  .rs-push-banner__text{
    margin:0;
    font-size:14px;
    line-height:1.5;
    color:#4b5563;
  }

  .rs-push-banner__actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
  }

  .rs-push-banner__dismiss{
    border:0;
    background:transparent;
    color:#6b7280;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    padding:8px 10px;
  }

  .rs-push-banner__dismiss:hover{
    color:#111827;
  }

  .rs-push-banner__status{
    margin-top:8px;
    font-size:13px;
    color:#6b7280;
  }

  .rs-push-banner__status.is-error{ color:#b91c1c; }
  .rs-push-banner__status.is-success{ color:#166534; }

  /* Tablet */
  @media (max-width: 760px){
    .rs-push-banner{
      margin:24px auto 0; /* pushes below nav */
      padding:0 12px;
    }

    .rs-push-banner__inner{
      flex-direction:column;
      align-items:flex-start;
    }

    .rs-push-banner__actions{
      width:100%;
      justify-content:flex-start;
      flex-wrap:wrap;
    }
  }

  /* Landscape phones (short height = nav overlap risk) */
@media (max-height: 500px) and (orientation: landscape){
  .rs-push-banner{
    margin:60px auto 0; /* enough to clear nav without huge gap */
  }
}

  /* Mobile portrait fix (this is the important one) */
  @media (max-width: 480px){
  .rs-push-banner{
    margin:160px auto 0; /* sane default */
    padding:0 10px;
  }
}

    .rs-push-banner__inner{
      padding:12px;
      border-radius:12px;
    }

    .rs-push-banner__actions{
      width:100%;
      flex-direction:column;
      align-items:stretch;
      gap:8px;
    }

    .rs-push-banner__actions .btn,
    .rs-push-banner__dismiss{
      width:100%;
      text-align:center;
    }

/* =========================================================
   100. Mobile compact header override
   - Keeps logo/actions on one row
   - Makes nav a horizontal scroll row
   - Prevents the fixed header from covering home composer
   ========================================================= */
@media (max-width: 640px) {
  :root {
    --topbar-h: 116px;
  }

  body {
    padding-top: var(--topbar-h);
  }

  .rs-top-inner {
    min-height: auto;
    padding: 8px 12px 10px;
    gap: 6px 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .rs-brand {
    width: auto;
    height: 42px;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

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

  .rs-actions {
    gap: 6px;
    margin-left: auto;
  }

  .rs-ico,
  .rs-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-basis: 36px;
  }

  .rs-svg svg {
    width: 17px;
    height: 17px;
  }

  .rs-nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rs-nav::-webkit-scrollbar {
    display: none;
  }

  .rs-nav-link {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.1;
    padding: 7px 0 8px;
  }

  body.route-home .rs-page {
    padding-top: 8px;
  }
}

@media (max-width: 480px) {
  :root {
    --topbar-h: 108px;
  }

  .rs-top-inner {
    padding: 7px 10px 8px;
  }

  .rs-brand {
    height: 38px;
  }

  .rs-brand-logo {
    height: 25px;
  }

  .rs-nav {
    gap: 14px;
  }

  .rs-nav-link {
    font-size: 12px;
  }
}

/* =========================================================
   101. Mobile polish pass
   - Guest hero image lifted to hide baked-in RSBuild text
   - Feed stats kept on one row where possible
   - Push/notification banner gap reduced
   ========================================================= */

/* Move the guest hero background upward so the baked-in RSBuild.io text
   does not sit under the foreground "Built for RS owners" badge. */
.guest-hero__media {
  background-position: center 28%;
}

@media (max-width: 720px) {
  .guest-hero__media {
    background-position: center 34%;
  }
}

@media (max-width: 480px) {
  .guest-hero__media {
    background-position: center 40%;
  }
}

/* Keep views on the right of the feed stat bar instead of wrapping below
   likes/comments on mobile. */
@media (max-width: 640px) {
  .feed-stats {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 10px;
  }

  .feed-stats .stat {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .feed-stats .stat.right {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }
}

/* The fixed header already reserves vertical space through --topbar-h, so
   the push notification prompt should not add another huge mobile offset. */
.rs-push-banner {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .rs-push-banner {
    margin: 10px auto 0;
  }
}

@media (max-width: 480px) {
  .rs-push-banner {
    margin: 8px auto 0;
    padding: 0 10px;
  }
}

/* =========================================================
   102. Mobile homepage correction pass V2
   ========================================================= */

/* Stronger lift for the baked-in hero artwork/logo on mobile.
   The previous background-position was too subtle and was being visually
   lost against the foreground eyebrow. */
.guest-hero__media {
  background-position: center 1% !important;
}

.guest-hero__media img {
  object-position: center 78% !important;
}

@media (max-width: 720px) {
  .guest-hero__media {
    background-position: center 86% !important;
  }

  .guest-hero__media img {
    object-position: center 86% !important;
  }
}

@media (max-width: 480px) {
  .guest-hero__media {
    background-position: center 94% !important;
  }

  .guest-hero__media img {
    object-position: center 94% !important;
  }
}

/* Extra cover behind the hero eyebrow in case the uploaded/background image
   contains baked-in logo text exactly where the badge sits. */
.guest-hero__eyebrow {
  position: relative;
  z-index: 2;
  background: rgba(8, 13, 22, 0.82) !important;
  backdrop-filter: blur(3px);
}

/* Keep feed stats on one line on mobile: likes/comments left, views right. */
@media (max-width: 640px) {
  .feed-stats {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .feed-stats .stat {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .feed-stats .stat.right {
    width: auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }
}

/* Pull the enable-notifications prompt closer to the fixed header. */
.rs-push-banner,
.push-banner,
.notification-enable,
.enable-notifications,
.notifications-enable,
.notifications-permission-box {
  margin-top: 8px !important;
}

/* =========================================================
   Mobile/header final overrides
   ========================================================= */

/* Hero image position */
@media (max-width: 640px) {
  :root {
    --topbar-h: 48px;
  }

  body {
    padding-top: var(--topbar-h);
  }

  .rs-main {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

  .rs-page {
    padding-top: 8px !important;
  }

  .guest-hero__media {
    transform: translateY(-40px) !important;
  }
}

@media (max-width: 480px) {
  .guest-hero__media {
    transform: translateY(-70px) !important;
  }
}

/* Mobile portrait header */
@media (max-width: 640px) {
  .rs-top-inner {
    min-height: 48px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rs-brand {
    width: auto !important;
    height: 42px;
    min-width: 0;
    flex: 1 1 auto !important;
    justify-content: flex-start;
  }

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

  .rs-actions {
    width: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    order: 2;
  }

  .rs-ico,
  .rs-avatar,
  .rs-menu-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
  }

  .rs-user-menu {
    margin-right: 6px;
  }

  .rs-menu-toggle {
    position: static;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    margin-left: 0;
  }

  .rs-menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .rs-nav {
    display: none !important;
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    padding: 8px 0 4px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .rs-top.is-menu-open .rs-nav {
    display: flex !important;
  }

  .rs-nav-link {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    text-align: center;
    border-bottom: 0;
    border-radius: 8px;
  }

  .rs-nav-link.active {
    background: rgba(255,255,255,.12);
  }

  .rs-push-banner {
    margin: 10px auto 10px !important;
    padding: 0 10px !important;
  }

  .rs-push-banner__inner {
    padding: 12px 10px !important;
  }
}

/* Extra small portrait */
@media (max-width: 380px) and (orientation: portrait) {
  .rs-top-inner {
    padding: 6px 8px;
    gap: 6px;
  }

  .rs-brand-logo {
    height: 22px;
  }

  .rs-actions {
    gap: 4px;
  }

  .rs-ico,
  .rs-avatar,
  .rs-menu-toggle {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    flex-basis: 30px;
  }

  .rs-menu-toggle span {
    width: 14px;
  }

  .rs-badge {
    transform: scale(.85);
    top: -2px;
    right: -2px;
  }

  .rs-user-menu {
    margin-right: 8px;
  }
}

/* Landscape: logo/actions top row, nav centered below */
@media (max-width: 900px) and (orientation: landscape) {
  .rs-top-inner {
    min-height: auto;
    padding: 8px 12px 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap !important;
    gap: 6px 12px;
  }

  .rs-brand {
    order: 1;
    width: auto !important;
    height: 38px;
    flex: 1 1 auto !important;
  }

  .rs-brand-logo {
    height: 26px;
  }

  .rs-actions {
    order: 2;
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rs-user-menu {
    margin-right: 10px;
  }

  .rs-menu-toggle {
    display: none !important;
  }

  .rs-nav {
    order: 3;
    display: flex !important;
    width: 100%;
    flex: 0 0 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 22px;
    padding: 2px 0 0;
  }

  .rs-nav-link {
    width: auto;
    max-width: none;
    padding: 6px 0;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
  }

  .stat.right {
    margin-left: auto !important;
  }
}

/* ===== SMALL PHONE LANDSCAPE ONLY ===== */
@media (max-width: 740px) and (max-height: 430px) and (orientation: landscape) and (pointer: coarse) {
  :root {
    --topbar-h: 82px;
  }

  body {
    padding-top: var(--topbar-h) !important;
  }

  .rs-top-inner {
    padding: 6px 10px 7px !important;
    gap: 4px 10px !important;
  }

  .rs-brand {
    height: 30px !important;
  }

  .rs-brand-logo {
    height: 22px !important;
  }

  .rs-ico,
  .rs-avatar {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    flex-basis: 30px !important;
  }

  .rs-nav {
    padding: 0 !important;
    gap: 16px !important;
  }

  .rs-nav-link {
    font-size: 12px !important;
    padding: 4px 0 !important;
  }

  .rs-push-banner {
    margin: 6px auto 6px !important;
    padding: 0 10px !important;
    width: 100%;
  }

  .rs-push-banner__inner {
    padding: 8px 12px !important;
  }

  .rs-push-banner__eyebrow,
  .rs-push-banner__text {
    display: none !important;
  }

  .rs-push-banner__title {
    font-size: 15px !important;
    margin: 0 0 6px !important;
  }

  .rs-push-banner__actions {
    margin-top: 6px !important;
  }

  .rs-push-banner .btn {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .rs-push-banner__dismiss {
    padding: 4px 8px !important;
    font-size: 12px !important;
  }

  .rs-main {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }

  .rs-page {
    padding-top: 4px !important;
  }
}

/* ===== RESET PUSH BANNER OUTSIDE SMALL PHONE LANDSCAPE ===== */
@media (min-width: 741px) {
  .rs-push-banner {
    width: min(100%, 980px) !important;
    margin: 16px auto 16px !important;
    padding: 0 16px !important;
  }

  .rs-push-banner__inner {
    width: 100% !important;
    padding: 18px 22px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .rs-push-banner__copy {
    width: auto !important;
    max-width: none !important;
  }

  .rs-push-banner__eyebrow {
    display: block !important;
  }

  .rs-push-banner__title {
    font-size: 18px !important;
    margin: 0 0 6px !important;
  }

  .rs-push-banner__text {
    display: block !important;
    margin: 0 !important;
    max-width: 680px !important;
  }

  .rs-push-banner__actions {
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 220px !important;
  }

  .rs-push-banner .btn {
    width: 100% !important;
    min-height: 42px !important;
  }
}

@media (min-width: 741px) {
  .rs-push-banner {
    display: none !important;
  }
}

/* ===== DESKTOP: REMOVE HAMBURGER ===== */
@media (min-width: 741px) {
  .rs-menu-toggle {
    display: none !important;
  }
}

/* ===== RESTORE DESKTOP PAGE OFFSET ===== */
@media (min-width: 741px) {
  :root {
    --topbar-h: 73px;
  }

  body {
    padding-top: var(--topbar-h) !important;
  }

  
  .rs-main {
    margin-top: clamp(16px, 2vw, 28px) !important;
    padding-top: 0 !important;
  }

  .rs-menu-toggle {
    display: none !important;
  }

  .rs-push-banner {
    display: none !important;
  }
}

/* =========================================================
   DM thread fixed header layout
   ========================================================= */

.dm-thread-card {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h) - 24px);
  min-height: 0;
  overflow: hidden;
}

.dm-thread-card .dm-head {
  position: sticky;
  top: 0;
  z-index: 30;
  flex: 0 0 auto;
  background: linear-gradient(#f6f7f9, #eef1f5);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.dm-thread-card .box-b {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dm-thread-card .dm-thread {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  -webkit-overflow-scrolling: touch;
}

.dm-thread-card .dm-compose {
  flex: 0 0 auto;
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

@media (max-width: 640px) {
  .dm-thread-card {
    height: calc(
      100vh
      - var(--mobile-topbar-h, var(--topbar-h))
      - var(--mobile-bottom-nav-h, 0px)
      - env(safe-area-inset-bottom)
    );
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .dm-thread-card .dm-head {
    top: 0;
    padding: 10px 12px;
  }

  .dm-thread-card .dm-thread {
    padding: 12px;
  }

  .dm-thread-card .dm-compose {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* Lock page scroll on DM thread pages */
body.route-message_thread,
body.route-dm_thread {
  height: 100vh;
  overflow: hidden;
}

body.route-message_thread .rs-main,
body.route-dm_thread .rs-main {
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

body.route-message_thread .dm-thread-card,
body.route-dm_thread .dm-thread-card {
  height: 100%;
  max-height: 100%;
}

body.route-message_thread .footer,
body.route-dm_thread .footer {
  display: none;
}

@media (max-width: 640px) {
  body.route-message_thread,
  body.route-dm_thread {
    height: 100dvh;
    overflow: hidden;
  }

  body.route-message_thread .rs-main,
  body.route-dm_thread .rs-main {
    height: calc(
      100dvh
      - var(--mobile-topbar-h, var(--topbar-h))
      - var(--mobile-bottom-nav-h, 0px)
      - env(safe-area-inset-bottom)
    );
    overflow: hidden;
  }
}

/* DM thread mobile compose above bottom nav */
@media (max-width: 768px) {
  body.route-message_thread .dm-thread-card,
  body.route-dm_thread .dm-thread-card {
    height: calc(
      100dvh
      - var(--mobile-topbar-h, 54px)
      - var(--mobile-bottom-nav-h, 68px)
      - env(safe-area-inset-bottom)
    ) !important;
  }

  body.route-message_thread .dm-compose,
  body.route-dm_thread .dm-compose {
    padding-bottom: 14px !important;
  }
}

/* =========================================================
   DM thread mobile: keep compose above bottom nav
   ========================================================= */

@media (max-width: 768px) {
  body.route-message_thread,
  body.route-dm_thread {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body.route-message_thread .rs-main,
  body.route-dm_thread .rs-main {
    position: fixed !important;
    top: var(--mobile-topbar-h, 54px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--mobile-bottom-nav-h, 68px) + env(safe-area-inset-bottom)) !important;

    width: 100% !important;
    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    z-index: 1;
  }

  body.route-message_thread .dm-thread-card,
  body.route-dm_thread .dm-thread-card {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    border-radius: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body.route-message_thread .dm-thread-card .dm-head,
  body.route-dm_thread .dm-thread-card .dm-head {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    z-index: 5 !important;
  }

  body.route-message_thread .dm-thread-card .box-b,
  body.route-dm_thread .dm-thread-card .box-b {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 0 !important;
    overflow: hidden !important;
  }

  body.route-message_thread .dm-thread,
  body.route-dm_thread .dm-thread {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 12px 12px 16px !important;
    -webkit-overflow-scrolling: touch;
  }

  body.route-message_thread .dm-compose,
  body.route-dm_thread .dm-compose {
    flex: 0 0 auto !important;
    position: relative !important;
    bottom: auto !important;

    margin: 0 !important;
    padding: 10px 12px 12px !important;

    background: #fff !important;
    border-top: 1px solid var(--border);
    z-index: 6 !important;
  }

  body.route-message_thread .footer,
  body.route-dm_thread .footer {
    display: none !important;
  }
}

/* =========================================================
   DM thread mobile landscape: FINAL clean layout
   ========================================================= */

@media (max-width: 900px) and (orientation: landscape) {

  /* ---- base ---- */
  body.route-message_thread,
  body.route-dm_thread {
    height: 100dvh !important;
    overflow: hidden !important;
    --mobile-topbar-h: 50px;
  }

  /* ---- hide mobile nav completely ---- */
  .rs-mobile-bottom-nav,
  .rs-mobile-menu {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  /* ---- top bar ---- */
  body.route-message_thread .rs-top-inner,
  body.route-dm_thread .rs-top-inner {
    min-height: 50px !important;
    padding: 6px 10px !important;
  }

  body.route-message_thread .rs-brand-logo,
  body.route-dm_thread .rs-brand-logo {
    height: 26px !important;
  }

  /* ---- main container ---- */
  body.route-message_thread .rs-main,
  body.route-dm_thread .rs-main {
    position: fixed !important;
    top: var(--mobile-topbar-h) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 6px 8px !important;

    overflow: hidden !important;
    z-index: 1;
  }

  /* ---- card ---- */
  body.route-message_thread .dm-thread-card,
  body.route-dm_thread .dm-thread-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    border-radius: 10px !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* ---- header ---- */
  body.route-message_thread .dm-head,
  body.route-dm_thread .dm-head {
    flex: 0 0 42px !important;
    min-height: 42px !important;
    padding: 5px 10px !important;
    z-index: 5 !important;
  }

  body.route-message_thread .dm-head-user,
  body.route-dm_thread .dm-head-user {
    gap: 8px !important;
  }

  body.route-message_thread .dm-head-avatar,
  body.route-dm_thread .dm-head-avatar {
    width: 30px !important;
    height: 30px !important;
  }

  body.route-message_thread .dm-title,
  body.route-dm_thread .dm-title {
    font-size: 14px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  /* remove presence text for space */
  body.route-message_thread .dm-head-presence,
  body.route-dm_thread .dm-head-presence {
    display: none !important;
  }

  body.route-message_thread .dm-head .btn,
  body.route-dm_thread .dm-head .btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
    min-height: 32px !important;
  }

  /* ---- body wrapper ---- */
  body.route-message_thread .dm-thread-card .box-b,
  body.route-dm_thread .dm-thread-card .box-b {
    flex: 1 1 auto !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 0 !important;
    overflow: hidden !important;
  }

  /* ---- message thread ---- */
  body.route-message_thread .dm-thread,
  body.route-dm_thread .dm-thread {
    flex: 1 1 auto !important;
    min-height: 60px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding: 6px 10px !important;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- composer (side-by-side layout) ---- */
  body.route-message_thread .dm-compose,
  body.route-dm_thread .dm-compose {
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 6px 10px !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    background: #fff !important;
    border-top: 1px solid var(--border);
    z-index: 6 !important;
  }

  body.route-message_thread .dm-compose-editor,
  body.route-dm_thread .dm-compose-editor {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body.route-message_thread .dm-compose-editor textarea,
  body.route-dm_thread .dm-compose-editor textarea {
    min-height: 38px !important;
    height: 38px !important;
    max-height: 58px !important;

    padding: 9px 40px 9px 12px !important;
    font-size: 14px !important;
    resize: none !important;
  }

  body.route-message_thread .dm-compose-tools,
  body.route-dm_thread .dm-compose-tools {
    flex: 0 0 auto !important;

    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  body.route-message_thread .dm-compose .btn,
  body.route-dm_thread .dm-compose .btn {
    min-height: 38px !important;
    height: 38px !important;

    padding: 7px 11px !important;
    font-size: 13px !important;
  }

  /* hide attachment preview in landscape */
  body.route-message_thread .dm-attach-preview,
  body.route-dm_thread .dm-attach-preview {
    display: none !important;
  }

  /* remove footer */
  body.route-message_thread .footer,
  body.route-dm_thread .footer {
    display: none !important;
  }
}

/* Desktop DM thread: stop composer sitting on page bottom */
@media (min-width: 769px) {
  body.route-message_thread .dm-compose,
  body.route-dm_thread .dm-compose {
    margin-bottom: 18px !important;
  }

  body.route-message_thread .dm-thread-card .box-b,
  body.route-dm_thread .dm-thread-card .box-b {
    padding-bottom: 18px !important;
  }
}

/* =========================================================
   Explore discoverable followers-only previews
   Fully responsive
   ========================================================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.inline-form {
  display: inline;
  margin: 0;
}

.explore-search-box {
  margin-bottom: 16px;
}

.explore-search {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.explore-search__input {
  flex: 1 1 320px;
  min-width: 220px;
  min-height: 44px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.explore-search__input::placeholder {
  color: #9aa3af;
  font-weight: 600;
}

.explore-search__input:hover {
  border-color: #cbd5e1;
}

.explore-search__input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
  background: #fff;
}

.explore-search__input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.7;
}

.explore-search .btn {
  min-height: 44px;
  white-space: nowrap;
}

.explore-search__hint {
  margin-top: 10px;
  line-height: 1.45;
}

.explore-card__media {
  position: relative;
}

.explore-card--locked .explore-card__media img {
  filter: grayscale(0.2);
  opacity: 0.78;
}

.explore-card__lock-overlay {
  position: absolute;
  inset: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.66));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.explore-card__lock-icon {
  font-size: 24px;
  line-height: 1;
}

.explore-card__title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.explore-card__car-link {
  color: inherit;
  font-weight: 600;
}

.explore-card__car-link:hover {
  text-decoration: underline;
}

.explore-card__excerpt {
  min-height: 42px;
}

.explore-card__meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.explore-pagination-box {
  margin-top: 18px;
}

.explore-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.explore-pagination__side {
  display: flex;
}

.explore-pagination__side--left {
  justify-content: flex-start;
}

.explore-pagination__side--right {
  justify-content: flex-end;
}

.explore-pagination__label {
  text-align: center;
}

@media (max-width: 900px) {
  .explore-search__input {
    flex-basis: 100%;
    min-width: 0;
    width: 100%;
  }

  .explore-search .btn {
    flex: 1 1 auto;
  }

  .explore-card__excerpt {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .explore-head {
    align-items: stretch;
  }

  .explore-head__main {
    width: 100%;
    align-items: flex-start;
  }

  .explore-head__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .explore-head__actions .btn {
    width: 100%;
  }

  .explore-search-box {
    margin-left: 0;
    margin-right: 0;
  }

  .explore-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .explore-search__input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    font-size: 16px;
  }

  .explore-search .btn {
    width: 100%;
    min-height: 46px;
  }

  .explore-search__hint {
    font-size: 13px;
  }

  .explore-card__lock-overlay {
    font-size: 12px;
  }

  .explore-pagination {
    grid-template-columns: 1fr;
  }

  .explore-pagination__side,
  .explore-pagination__side--left,
  .explore-pagination__side--right {
    justify-content: stretch;
  }

  .explore-pagination .btn {
    width: 100%;
  }
}

.explore-page--guest {
  padding-top: 34px;
}

.explore-card__lock-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.explore-card__lock-icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .explore-page--guest {
    padding-top: 18px;
  }
}

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

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

.dm-msg.them .dm-msg-row{
    justify-content:flex-start;
}

.dm-msg-content{
    display:flex;
    flex-direction:column;
    max-width:75%;
    min-width:0;
    flex:0 1 auto;
}

.dm-msg.me .dm-msg-content{
    align-items:flex-end;
    margin-left:auto;
}

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

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

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

.dm-bubble{
    width:auto;
    max-width:100%;
    white-space:normal;
    overflow-wrap:break-word;
    word-break:normal;
}

.dm-msg-name{
    font-size:12px;
    font-weight:600;
    color:#6b7280;
    margin:0 0 4px 5px;
}

.community-activity-card .box-b {
  display: grid;
  gap: 14px;
}

.activity-online-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.activity-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.activity-avatar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom:4px;
}

.activity-avatar-link {
  text-decoration: none;
  margin-left:-8px;
}

.activity-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(#fff, #dbe3ef);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.activity-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.activity-avatar-more {
  background: #111827;
  color: #fff;
  border-color: #111827;
  font-size: 12px;
}

.activity-lines {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.activity-line {
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.activity-line span {
  color: var(--muted);
  font-weight: 600;
}

.activity-line a,
.activity-line strong {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.activity-line a:hover {
  text-decoration: underline;
}

.activity-avatar-link:first-child{
    margin-left:0;
}

.activity-empty {
  font-size: 13px;
}



.online-drawer {
  position: fixed;
  right: 18px;
  bottom: 0;
  z-index: 80;
  height: 43px;

  width: min(220px, calc(100vw - 28px));

  font-family: inherit;
}

/* bottom tab */
.online-drawer-toggle {
  position: relative;
  z-index: 3;

  appearance: none;

  width: 100%;
  height: 46px;

  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  border: 1px solid rgba(17,24,39,.14);
  border-bottom: 0;

  background: linear-gradient(var(--top1), var(--top2));
  color: #fff;

  border-radius: 18px 18px 0 0;

  font-size: 13px;
  font-weight: 950;

  cursor: pointer;

  box-shadow:
    0 -8px 26px rgba(15,23,42,.22);

  transition:
    opacity .16s ease,
    transform .2s ease,
    visibility .16s ease;
}

.online-drawer-toggle:hover {
  transform: translateY(-2px);
}

.online-drawer.is-open .online-drawer-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(46px);
}

.online-drawer-toggle-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.22);
}

.online-drawer-label {
  font-weight: 950;
}

.online-drawer-count {
  margin-left: auto;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 850;
}

/* panel */
.online-drawer-panel {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 100%;
  max-height: min(500px, calc(100vh - 90px));

  background: linear-gradient(var(--top1), var(--top2));
  backdrop-filter: blur(12px);
  color: #fff;

  border: 1px solid rgba(255,255,255,.08);
  border-bottom: 0;

  border-radius: 20px 20px 0 0;

  overflow: hidden;

  opacity: 0;
  visibility: hidden;

  transform: translateY(100%);

  transition:
    opacity .18s ease,
    transform .24s ease,
    visibility .24s ease;

  pointer-events: none;

  box-shadow: 0 -18px 55px rgba(15,23,42,.28);
}

.online-drawer.is-open .online-drawer-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* header */
.online-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;

  padding: 15px 15px 12px;

  border-bottom: 1px solid rgba(255,255,255,.1);
}

.online-drawer-head h2 {
  margin: 0;

  color: #fff;

  font-size: 16px;
  line-height: 1.15;
  font-weight: 950;
}

.online-drawer-head p {
  margin: 4px 0 0;

  color: rgba(255,255,255,.68);

  font-size: 12px;
  font-weight: 600;
}

.online-drawer-close {
  appearance: none;

  width: 32px;
  height: 32px;

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;

  background: rgba(255,255,255,.08);
  color: #fff;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.online-drawer-close:hover {
  background: rgba(255,255,255,.14);
}

/* scroll area */
.online-drawer-list {
  max-height: 410px;
  overflow: auto;

  padding: 8px;
}

/* groups */
.online-group-label {
  padding: 10px 12px 6px;

  color: rgba(255,255,255,.58);

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .08em;
}

/* members */
.online-member-row {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 9px;

  border-radius: 16px;

  text-decoration: none;
  color: #fff;

  transition:
    background .18s ease,
    transform .18s ease;
}

.online-member-row:hover {
  background: rgba(255,255,255,.075);
  transform: translateX(3px);
}

.online-member-avatar {
  position: relative;

  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.14);

  background: linear-gradient(#fff,#dbe3ef);

  color: #111827;

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

  overflow: visible;

  font-weight: 950;
  font-size: 14px;
}

.online-member-avatar img {
  width: 100%;
  height: 100%;

  border-radius: inherit;

  object-fit: cover;
}

.online-member-main {
  min-width: 0;

  display: grid;

  gap: 2px;
}

.online-member-name {
  color: #fff;

  font-size: 13px;
  font-weight: 950;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-member-status {
  color: rgba(255,255,255,.7);

  font-size: 12px;
  font-weight: 600;
}

.online-member-last {
  color: rgba(255,255,255,.6);

  font-size: 11px;
  font-weight: 750;
}

.online-drawer-state {
  padding: 18px 12px;

  color: rgba(255,255,255,.65);

  font-size: 13px;
  font-weight: 600;

  text-align: center;
}

.online-drawer:not(.has-online-members) .online-drawer-toggle-dot {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148,163,184,.22);
}

.online-presence-toast {
  position: fixed;
  right: 18px;
  bottom: 58px;
  z-index: 90;

  width: min(250px, calc(100vw - 28px));

  background: linear-gradient(var(--top1), var(--top2));
  color: #fff;

  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;

  box-shadow: 0 16px 40px rgba(15,23,42,.28);

  padding: 10px 12px;

  display: flex;
  align-items: center;
  gap: 9px;

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

.online-presence-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.online-presence-toast__dot {
  width: 9px;
  height: 9px;

  border-radius: 999px;

  background: #22c55e;

  box-shadow: 0 0 0 3px rgba(34,197,94,.22);

  flex: 0 0 9px;
}

.online-presence-toast__body {
  min-width: 0;
}

.online-presence-toast__title {
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
}

@media (max-width:720px) {
  .online-presence-toast {
    right: 14px;
    bottom: 124px;
    width: min(290px, calc(100vw - 28px));
  }
}

@media (max-width:720px) and (orientation: landscape) {
  .online-presence-toast {
    bottom: 70px;
  }
}

/* =========================================================
   RSBuild DNA premium card
   ========================================================= */

@media (max-width: 640px) {
  }

/* =========================================================
   RSBuild DNA feedback
   ========================================================= */

.rsbuild-dna-feedback{
    position:relative;
    z-index:20;

    margin-top:24px;
    padding-top:20px;

    border-top:1px solid rgba(
        255,
        255,
        255,
        .08
    );
}

.rsbuild-dna-feedback-label{

    margin-bottom:12px;

    color:#e5e7eb;

    font-size:15px;

    font-weight: 600;

}

.rsbuild-dna-feedback-actions{

    display:flex;

    gap:12px;

    align-items:center;

    flex-wrap:wrap;

    position:relative;

    z-index:25;

}

/* buttons */

.dna-btn{

    min-height:42px;

    padding:0 18px;

    border:1px solid rgba(
        147,
        197,
        253,
        .22
    );

    border-radius:999px;

    display:inline-flex;

    align-items:center;

    gap:8px;

    background:rgba(
        96,
        165,
        250,
        .08
    );

    color:#dbeafe;

    font-weight: 600;

    cursor:pointer;

    transition:
        background .2s,
        border-color .2s,
        transform .15s;

}

.dna-btn:hover{

    background:rgba(
        96,
        165,
        250,
        .16
    );

    border-color:rgba(
        147,
        197,
        253,
        .38
    );

}

.dna-btn:active{

    transform:translateY(1px);

}

.dna-btn svg{

    width:18px;

    height:18px;

    fill:none;

    stroke:currentColor;

    stroke-width:2.5;

    stroke-linecap:round;

    stroke-linejoin:round;

}

.dna-btn-good{

    color:#bfdbfe;

}

.dna-btn-bad{

    color:#cbd5e1;

    opacity:.9;

}

/* wrong dropdown */

.dna-wrong-form{

    position:relative;

}

.dna-wrong-picker{

    display:none;

    position:absolute;

    top:calc(100% + 10px);

    left:0;

    width:280px;

    padding:14px;

    border:1px solid rgba(
        147,
        197,
        253,
        .18
    );

    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            #101827,
            #0f172a
        );

    box-shadow:
        0 20px 50px rgba(
            0,
            0,
            0,
            .35
        );

    z-index:9999;
}

.dna-wrong-form.is-open .dna-wrong-picker{

    display:grid;

    gap:8px;

}

.dna-wrong-picker-title{

    padding:4px;

    color:#94a3b8;

    font-size:12px;

    font-weight: 600;

    text-transform:uppercase;

    letter-spacing:.08em;

}

.dna-choice{

    width:100%;

    min-height:40px;

    padding:0 14px;

    border:1px solid rgba(
        147,
        197,
        253,
        .12
    );

    border-radius:12px;

    background:rgba(
        96,
        165,
        250,
        .08
    );

    color:#dbeafe;

    text-align:left;

    font-weight: 600;

    cursor:pointer;

    transition:
        background .2s,
        border-color .2s;

}

.dna-choice:hover{

    background:rgba(
        96,
        165,
        250,
        .16
    );

    border-color:rgba(
        147,
        197,
        253,
        .28
    );

}

/* critical fix */

/* fix stacking order */

.rsbuild-dna-feedback{
    position:relative;
    z-index:200;
}

.rsbuild-dna-feedback-actions{
    position:relative;
    z-index:250;
}

.dna-wrong-form{
    position:relative;
    z-index:300;
}

.dna-wrong-picker{

    display:none;

    position:absolute;

    top:calc(100% + 10px);

    left:0;

    width:280px;

    padding:14px;

    border-radius:18px;

    border:1px solid rgba(
        147,
        197,
        253,
        .18
    );

    background:
        linear-gradient(
            135deg,
            #101827,
            #0f172a
        );

    box-shadow:
        0 20px 50px rgba(
            0,
            0,
            0,
            .45
        );

    z-index:99999;
}

.dna-wrong-form.is-open .dna-wrong-picker{
    display:grid;
    gap:8px;
}

/* force lower layer */

.feed-h{
  border-bottom: 1px solid #f0f0f0;
}

.feed-post-title{
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;

  background: linear-gradient(
    to bottom,
    #fafafa 0%,
    #f8f8f8 60%,
    rgba(255,255,255,0) 100%
  );
}

.feed-post-title a{
  color: #1f2937;
  text-decoration: none;
  transition: opacity .15s ease;
}

.feed-post-title a:hover{
  opacity: .75;
}

.fhs{
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

@media (max-width: 640px){

  .feed-post-title{
    font-size: 15px;
    line-height: 1.3;
    padding: 10px 12px;
  }

}


/* =========================================================
   38. RSBuild.io 2026 Visual Refresh
   Added as a non-destructive polish layer.
   Focus: softer surfaces, cleaner borders, premium cards,
   modern buttons, better depth, richer automotive identity.
   ========================================================= */

:root {
  --canvas: #eef3f8;
  --panel: #ffffff;
  --panel-h: #f8fafc;
  --border: rgba(32, 45, 63, 0.11);
  --border2: rgba(32, 45, 63, 0.18);
  --text: #1f2937;
  --muted: #667085;

  --blue: #2563eb;
  --blue1: #245fc7;
  --blue2: #3b82f6;

  --top1: #344256;
  --top2: #202b3a;

  --shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.035), 0 12px 30px rgba(15, 23, 42, 0.055);
  --shadow-hover: 0 16px 42px rgba(15, 23, 42, 0.12);
  --ring-blue: 0 0 0 4px rgba(59, 130, 246, 0.16);

  --r: 14px;
}

/* Page atmosphere */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.075), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(15, 23, 42, 0.055), transparent 26rem),
    linear-gradient(180deg, #f4f7fb 0%, var(--canvas) 42%, #e8eef5 100%);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.rs-page {
  padding-top: clamp(14px, 1.8vw, 24px);
}

/* Top navigation: richer, cleaner, less forum-like */
.rs-top {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--top1), var(--top2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.rs-top-inner {
  min-height: 68px;
}

.rs-brand-logo {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}

.rs-nav-link {
  position: relative;
  border-bottom: 0;
  color: rgba(241, 245, 249, 0.84);
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: color 0.16s ease, transform 0.16s ease;
}

.rs-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0);
  transform: scaleX(0.55);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.rs-nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.rs-nav-link:hover::after,
.rs-nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.9);
}

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

.rs-ico {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.rs-ico:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.rs-avatar,
.avatar,
.rs-dd-head-avatar,
.dm-left .avatar,
.pv-scope .pv-avatar,
.account-avatar {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Core surfaces */
.box,
.feedcard,
.auth-card,
.garage-card,
.account-section-box,
.account-danger-box,
.notif-card,
.rs-cookie-banner__inner,
.rs-cookie-prefs__card,
.contact-page__info-card,
.buildcard,
.modcard,
.passport-card,
.car-photos-card,
.car-empty-state-card,
.timeline-card,
.car-tab-bar,
.car-view-main-card {
  border-color: var(--border);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.box {
  margin-top: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.box-h {
  padding: 14px 15px;
  background:
    linear-gradient(180deg, rgba(248,250,252,0.94), rgba(241,245,249,0.84));
  border-bottom: 1px solid var(--border);
}

.box-h h2 {
  color: #1f2937;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* Softer right/left rail cards */
.dash-left .box,
.dash-right .box {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035), 0 10px 24px rgba(15, 23, 42, 0.045);
}

.dash-right .box-b .box,
.onboarding-step,
.garage-onboarding__step {
  border-color: rgba(32, 45, 63, 0.1);
}

/* Feed: stronger social-product feel */
.feedcard {
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feedcard:hover {
  border-color: rgba(32, 45, 63, 0.16);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.feed-h {
  padding: 14px 15px 12px;
}

.uname,
.carname,
.gname,
.box-h h2,
.garage-card__title,
.car-post-title {
  color: #1d2939;
}

.fhs,
.carmeta,
.gmeta,
.ago,
.muted,
.trendmeta,
.buildmeta,
.buildlikes,
.modmeta {
  color: var(--muted);
}

.feed-txt {
  padding: 0 15px 14px;
  color: #273548;
  line-height: 1.5;
}

.photos,
.post-gallery {
  padding-left: 15px;
  padding-right: 15px;
}

.pbig,
.psmall,
.pg-single,
.pg-tile,
.mycars-hero,
.trendbuild .trendimg,
.carthumb,
.car-photo-card,
.car-hero {
  border-color: rgba(32, 45, 63, 0.12);
  border-radius: 14px;
  background: #edf2f7;
}

.pbig,
.psmall,
.pg-tile,
.pg-single,
.car-photo-card,
.garage-card__media,
.garage-card__image {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.feed-stats {
  padding: 11px 15px;
  border-top: 1px solid rgba(32, 45, 63, 0.09);
  background: linear-gradient(180deg, rgba(248,250,252,0.82), rgba(241,245,249,0.72));
}

.comment-preview {
  border-top: 1px solid rgba(32, 45, 63, 0.09);
  background: #f8fafc;
}

.cmt {
  border-top-color: rgba(32, 45, 63, 0.08);
}

/* Composer */
.composer-select,
.composer-input,
.inline-post input[type="date"],
.inline-post input[type="text"],
.inline-post input[type="number"],
.inline-post textarea,
.inline-post select,
.box input[type="text"],
.box input[type="number"],
.box input[type="email"],
.box input[type="password"],
.box input[type="date"],
.box select,
.box textarea,
.people-search-input,
.pv-scope .pv-form textarea,
.pv-reply-form textarea {
  border-color: rgba(32, 45, 63, 0.15);
  border-radius: 13px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.035);
}

.composer-select:hover,
.composer-input:hover,
.inline-post input:hover,
.inline-post textarea:hover,
.inline-post select:hover,
.box input:hover,
.box select:hover,
.box textarea:hover,
.people-search-input:hover {
  border-color: rgba(32, 45, 63, 0.24);
}

.composer-select:focus,
.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,
.box input:focus,
.box select:focus,
.box textarea:focus,
.people-search-input:focus,
.pv-scope .pv-form textarea:focus,
.pv-reply-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: var(--ring-blue), inset 0 1px 2px rgba(15, 23, 42, 0.025);
}

/* Buttons: less bevel, more premium */
.btn {
  border: 1px solid rgba(32, 45, 63, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: #263244;
  font-weight: 850;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.btn:hover {
  background: #f8fafc;
  border-color: rgba(32, 45, 63, 0.22);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn.primary,
.rs-actions .auth-signup {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0)),
    linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.btn.primary:hover,
.rs-actions .auth-signup:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0)),
    linear-gradient(180deg, #4b8df7 0%, #245ee8 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.3);
}

.btn.danger,
.btn-danger {
  border-color: transparent;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.btn-ghost {
  background: #fff;
  color: #263244;
}

/* My RS Cars card polish */
.mycars-hero {
  height: 104px;
}

.carrow {
  border-radius: 12px;
  transition: background-color 0.16s ease;
}

.carrow:hover {
  background: #f8fafc;
}

.carthumb {
  border-radius: 10px;
  transform: none;
}

.carname {
  line-height: 1.12;
}

/* Onboarding / right rail cards */
.onboarding-step,
.garage-onboarding__step,
.car-onboarding-step {
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.onboarding-step:hover,
.garage-onboarding__step:hover,
.car-onboarding-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.onboarding-step__icon,
.garage-onboarding__icon,
.car-onboarding-step__icon {
  background: linear-gradient(180deg, #344256, #202b3a);
}

/* Garage / build cards */
.garage-card,
.buildcard,
.modcard {
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.garage-card:hover,
.buildcard:hover,
.modcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.garage-card__media,
.garage-card__image,
.buildimg,
.modimg {
  background: #edf2f7;
}

/* Pills / badges */
.pill,
.garage-badge,
.car-stat-pill,
.car-view-vis,
.notif-pagination-page {
  border-color: rgba(32, 45, 63, 0.11);
  background: #f8fafc;
  color: #475467;
}

/* Dropdowns / popovers */
.rs-user-dd,
.post-menu-dropdown,
.like-popover,
.dm-emoji-pop,
.report-modal__dialog {
  border-color: rgba(32, 45, 63, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

/* Direct messages */
.dm-row {
  border-color: rgba(32, 45, 63, 0.1);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.dm-row:hover {
  border-color: rgba(32, 45, 63, 0.16);
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.dm-bubble {
  border-color: rgba(32, 45, 63, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
}

.dm-msg.me .dm-bubble {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

/* Auth pages retain black identity but get smoother polish */
.btn-auth {
  background: linear-gradient(180deg, #111827, #030712);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.btn-auth:hover {
  background: #fff;
  opacity: 1;
}

/* Better scrollbars */
body.route-home .dash > *::-webkit-scrollbar-thumb,
body.route-home .dash-center::-webkit-scrollbar-thumb {
  background: rgba(71, 84, 103, 0.28);
  border-radius: 999px;
}

body.route-home .dash > *::-webkit-scrollbar-thumb:hover,
body.route-home .dash-center::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 84, 103, 0.42);
}

/* Online widget */
.whos-online,
[class*="online"],
[class*="Online"] {
  /*border-radius: 14px;*/
}

/* Mobile polish */
@media (max-width: 1024px) {
  .box {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --r: 14px;
  }

  .rs-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .feedcard,
  .box {
    border-radius: 15px;
  }

  .feedcard:hover,
  .garage-card:hover,
  .buildcard:hover,
  .modcard:hover {
    transform: none;
  }

  .photos,
  .post-gallery,
  .feed-txt,
  .feed-h,
  .feed-stats {
    padding-left: 12px;
    padding-right: 12px;
  }

  .rs-ico:hover,
  .rs-nav-link:hover,
  .btn:hover {
    transform: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   2026 Typography + Icon Polish Layer
   Add this after the main RSBuild styles.
   - Modern font system using Inter with strong fallbacks
   - Cleaner heading rhythm and tracking
   - Lucide/Phosphor-style icon treatment for existing inline SVGs
   - More refined nav, badges, buttons, form controls and metadata
   ========================================================= */


:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: #1f2937;
  --muted: #667085;
  --muted-2: #8a94a6;
  --heading: #182230;
  --canvas: #eef2f6;
  --panel: #ffffff;
  --panel-h: #f8fafc;
  --border: #d9e1eb;
  --border2: #c7d2df;
  --blue: #2563eb;
  --blue1: #2563eb;
  --blue2: #3b82f6;
  --top1: #344155;
  --top2: #202938;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.06);
  --r: 14px;
}

html {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  color: var(--text);
  letter-spacing: -0.011em;
}

h1,
h2,
h3,
.page-title,
.garage-title,
.account-title,
.following-header__title,
.people-head__title,
.contact-page__title,
.terms-page__title,
.privacy-page__title,
.box-h h2 {
  font-family: var(--font-display);
  color: var(--heading);
  letter-spacing: -0.035em;
  font-weight: 850;
}

p,
.muted,
.carmeta,
.gmeta,
.trendmeta,
.ago,
.cago,
.fhs,
.notif-meta,
.notif-snippet,
.account-sub,
.page-subtitle {
  letter-spacing: -0.006em;
}

/* Header/nav refinement */
.rs-top {
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(180deg, var(--top1), var(--top2));
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.rs-nav {
  gap: clamp(16px, 2vw, 25px);
}

.rs-nav-link {
  position: relative;
  border-bottom: 0;
  color: rgba(248, 250, 252, 0.82);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.018em;
  transition: color 0.18s ease, transform 0.18s ease;
}

.rs-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.rs-nav-link:hover::after,
.rs-nav-link.active::after {
  opacity: 0.92;
  transform: scaleX(1);
}

/* Modern icon containers */
.rs-actions {
  gap: 10px;
}

.rs-ico,
.post-menu-trigger,
.password-toggle,
.report-modal__close,
.lb-close,
.lb-prev,
.lb-next,
.dm-emoji-inline,
.emoji-inside-btn {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rs-ico {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.rs-ico:hover,
.rs-ico:focus-visible {
  background: rgba(255, 255, 255, 0.145);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.rs-svg svg,
.rs-ico svg,
.stat-ico svg,
.notif-type-badge svg,
.account-page-head__icon svg,
.following-header__icon svg,
.people-head__icon svg,
.garage-head__icon svg {
  stroke-width: 1.85;
  vector-effect: non-scaling-stroke;
}

.rs-svg svg,
.rs-ico svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.88);
}

.rs-badge,
.dm-unread {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #f43f5e, #e11d48);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16), 0 8px 16px rgba(225, 29, 72, 0.24);
}

/* Avatar polish */
.avatar,
.rs-avatar,
.cmt-avatar,
.pv-avatar,
.account-avatar,
.rs-dd-head-avatar,
.dm-left .avatar {
  border: 1px solid #d0d7e2;
  background: linear-gradient(#ffffff, #dbe3ef);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 12px rgba(15, 23, 42, 0.07);
  font-weight: 600;
  color: #222;
}

/* Cards: softer, more current */
.box,
.feedcard,
.auth-card,
.garage-card,
.modcard,
.buildcard,
.notif-card,
.account-section-box,
.account-danger-box,
.rs-cookie-banner__inner,
.rs-cookie-prefs__card {
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.feedcard,
.box {
  background: rgba(255, 255, 255, 0.92);
}

.feedcard:hover,
.box:hover,
.garage-card:hover,
.buildcard:hover,
.notif-card:hover {
  box-shadow: var(--shadow-hover);
}

.box-h,
.feed-stats {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
  border-color: rgba(148, 163, 184, 0.24);
}

.box-h h2 {
  font-size: 18px;
}

/* Buttons */
.btn {
  border-radius: 12px;
  color: #ffffff;
  font-weight: 760;
  letter-spacing: -0.018em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.btn.primary,
.rs-actions .auth-signup {
  border-color: transparent;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn.primary:hover,
.rs-actions .auth-signup:hover {
  background: linear-gradient(180deg, #4f8df7 0%, #2563eb 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.btn.danger,
.btn-danger {
  border-color: transparent;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
}

/* Forms */
.box input[type="text"],
.box input[type="number"],
.box input[type="email"],
.box input[type="password"],
.box input[type="date"],
.box select,
.box textarea,
.inline-post input[type="date"],
.inline-post input[type="text"],
.inline-post input[type="number"],
.inline-post textarea,
.inline-post select,
.composer-select,
.people-search-input,
.form-group input,
.account-form .input,
.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"] {
  border-color: rgba(148, 163, 184, 0.34);
  border-radius: 13px;
  color: #182230;
  font-weight: 620;
  letter-spacing: -0.012em;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.035);
}

.box input:focus,
.box select:focus,
.box textarea:focus,
.inline-post input:focus,
.inline-post select:focus,
.inline-post textarea:focus,
.composer-select:focus,
.people-search-input:focus,
.form-group input:focus,
.account-form .input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13), inset 0 1px 2px rgba(15, 23, 42, 0.035);
}

/* Feed typography */
.uname,
.carname,
.gname,
.trendtitle,
.buildname,
.modbrand,
.price,
.cuser,
.pv-scope .pv-cuser,
.garage-card__title,
.garage-profile-car-card__title,
.car-post-title {
  color: var(--heading);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.feed-txt,
.cmt-line,
.pv-scope .pv-ctext,
.dm-body {
  line-height: 1.48;
}

.ago,
.cago,
.carmeta,
.gmeta,
.fhs,
.muted {
  color: var(--muted);
  font-weight: 560;
}

/* Photo grids look more premium */
.pbig,
.psmall,
.pg-single,
.pg-tile,
.mycars-hero,
.trendbuild .trendimg,
.carthumb,
.car-photo-card,
.car-hero {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.pbig,
.psmall,
.pg-single,
.pg-tile {
  border-radius: 14px;
}

/* Icon page-header tiles */
.account-page-head__icon,
.following-header__icon,
.people-head__icon,
.garage-head__icon,
.notif-type-badge {
  background: linear-gradient(180deg, #eef6ff, #e8efff);
  border-color: rgba(37, 99, 235, 0.13);
  color: #2563eb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 18px rgba(37, 99, 235, 0.08);
}

/* Presence / online */
.presence-dot.is-online {
  background: #17c964;
  box-shadow: 0 0 0 3px rgba(23, 201, 100, 0.16);
}

/* Dropdowns/popovers */
.rs-user-dd,
.post-menu-dropdown,
.like-popover,
.dm-emoji-pop,
.report-modal__dialog {
  border-color: rgba(148, 163, 184, 0.30);
  border-radius: 16px;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.16), 0 2px 4px rgba(15, 23, 42, 0.06);
}

.rs-dd-item,
.post-menu-item {
  font-weight: 720;
  letter-spacing: -0.014em;
}

/* Direct messages */
.dm-row {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.dm-user {
  font-weight: 780;
  letter-spacing: -0.022em;
}

.dm-bubble {
  border-color: rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.dm-msg.me .dm-bubble,
.dm-msg.me .dm-bubble::after {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

/* Mobile keeps touch sizes */
@media (hover: none), (pointer: coarse) {
  .rs-ico {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

/* =========================================================
   99. RSBuild Typography Softening Patch
   Source-safe: typography only, no layout changes
   ========================================================= */

/* Main dashboard/card headers */
.box-h h2,
.sidebar-title,
.widget-title,
.composer h2,
.composer h3,
.following-header__title,
.garage-title,
.account-title,
.page-title,
.contact-page__title,
.terms-page__title,
.privacy-page__title {
  font-weight: 600 !important;
  letter-spacing: -0.015em;
}

/* Feed/card titles */
.carname,
.gname,
.trendtitle,
.buildname,
.garage-card__title,
.car-post-title,
.post-view-title,
.passport-identity-value,
.passport-stat-value,
.passport-total-cost-value {
  font-weight: 600 !important;
  letter-spacing: -0.012em;
}

/* Navigation */
.rs-nav-link {
  font-weight: 600 !important;
}

.rs-nav-link.active {
  font-weight: 700 !important;
}

/* Usernames and metadata */
.uname,
.cuser,
.pv-scope .pv-cuser,
.dm-user,
.garage-card__owner-name {
  font-weight: 600 !important;
}

.ago,
.cago,
.pv-scope .pv-cago,
.carmeta,
.gmeta,
.trendmeta,
.buildmeta,
.buildlikes,
.modmeta,
.fhs,
.muted {
  font-weight: 500 !important;
}

/* Buttons remain confident but less chunky */
.btn,
.btn.primary,
.file-upload-btn,
.people-search-form .btn {
  font-weight: 600 !important;
  color: #222;
}

.wanted-view-btn {
  color: #222;
}

/*.explore-head__actions a.btn {
  color: #222;
}*/


/* Form labels */
.box label,
.inline-post label,
.report-form__group label,
.pv-scope .pv-label {
  font-weight: 600 !important;
}

/* =========================================================
   100. Final RSBuild Visual Polish Pass
   Small targeted changes only
   - Slightly smaller card headers
   - Better feed title/image spacing
   - Softer post image corners
   - No layout or breakpoint changes
   ========================================================= */

/* Card headers: slightly less dominant */
.box-h h2 {
  font-size: 17px;
  font-weight: 600 !important;
  letter-spacing: -0.012em;
}

/* Feed post title spacing */
.feed-txt strong,
.car-post-title,
.post-view-title {
  display: inline-block;
  margin-bottom: 4px;
}

/* Feed image corner balance */
.pbig,
.psmall,
.pg-single,
.pg-tile {
  border-radius: 12px;
}

.pbig img,
.psmall img,
.pg-single img,
.pg-tile img {
  border-radius: 12px;
}

/* Sidebar/right rail cards: keep premium but not oversized */
.box-h {
  min-height: 48px;
}

/* Navigation: keep readable, slightly refined */
.rs-nav-link {
  font-weight: 600 !important;
  letter-spacing: -0.008em;
}

/* Main car title in left card: refined but still confident */
.carname {
  line-height: 1.12;
}

/* Composer select: slightly cleaner text weight */
.composer-select {
  font-weight: 600 !important;
}

/* Post title above galleries: cleaner hierarchy */
.feed-txt {
  line-height: 1.42;
}

/* Keep buttons confident without heavy chunky type */
.btn.primary,
.btn.full,
button.btn.primary {
  font-weight: 600 !important;
  color: #ffffff;
}



/* =========================================================
   RSBuild DNA Card — Original Colours Restored
   ========================================================= */

.rsbuild-dna-card {
  position: relative;
  overflow: hidden !important;
  isolation: isolate;

  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 22px;

  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.28), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(168, 85, 247, 0.24), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(59,130,246,.16), transparent 58%),
    linear-gradient(135deg, #080f1d 0%, #101827 48%, #0b1020 100%);

  color: #f8fafc;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.rsbuild-dna-head,
.rsbuild-dna-body {
  position: relative;
  z-index: 1;
}

.rsbuild-dna-head {
  position: relative;
  z-index: 1;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rsbuild-dna-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.12);
}

.rsbuild-dna-titlewrap {
  min-width: 0;
  flex: 1;
}

.rsbuild-dna-kicker {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsbuild-dna-titlewrap h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rsbuild-dna-score-badge {
  min-width:72px;
  height:56px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size:24px;
  font-weight: 900;
  box-shadow:
        0 0 0 1px rgba(255,255,255,.08),
        0 0 30px rgba(168,85,247,.18);
}

.rsbuild-dna-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width:860px;
}

.rsbuild-dna-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #e5e7eb;
  font-size: 16px;
  font-weight: 800;
}

.rsbuild-dna-row strong {
  color: #fff;
  font-size: 22px;
}

.rsbuild-dna-bar {
  max-width:720px;
  height: 14px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.rsbuild-dna-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #a855f7);
}

.rsbuild-dna-traits {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rsbuild-dna-traits span {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(96, 165, 250, 0.12);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

.rsbuild-dna-next {
  background:rgba(255,255,255,.04);
   padding:18px;
   border-radius:16px;
  margin-top: 24px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rsbuild-dna-next > span {
  color: #a855f7;
  font-size: 34px;
  font-weight: 900;
}

.rsbuild-dna-next small {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.rsbuild-dna-next strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.rsbuild-dna-card::before {
  content: "";
  position: absolute;

  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;

  pointer-events: none;
  z-index: -1;

  border-radius: inherit;

  background:
    radial-gradient(
      circle,
      rgba(59,130,246,.18) 0%,
      transparent 60%
    );

  animation: dnaPulse 8s linear infinite;

  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes dnaPulse{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

@media (max-width: 640px) {
  .rsbuild-dna-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }

  .rsbuild-dna-score-badge {
    width: 100%;
    height: 52px;
  }

  .rsbuild-dna-body {
    padding: 18px;
  }
}

.rsbuild-dna-helix {
  width: 40px;
  height: 40px;
}

.rsbuild-dna-helix path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dna-history{
    margin-top:18px;
    padding:20px;
}

.dna-history h3{
    margin-bottom:16px;
}

.dna-history-item{
    padding:14px 0;
    border-bottom:1px solid rgba(
        255,
        255,
        255,
        .08
    );
}

.dna-history-item small{
    opacity:.6;
    display:block;
    margin-top:4px;
}


/* fix stacking order - 2026 final: keep animation clipped inside the card */
.rsbuild-dna-card{
    position:relative;
    z-index:1;
    overflow:hidden !important;
    isolation:isolate;
    contain:paint;
    clip-path:inset(0 round 22px);
}

.rsbuild-dna-feedback{
    position:relative;
    z-index:200;
}

.rsbuild-dna-feedback-actions{
    position:relative;
    z-index:250;
}

.dna-wrong-form{
    position:relative;
    z-index:300;
}

.dna-wrong-picker{

    display:none;

    position:absolute;

    top:calc(100% + 10px);

    left:0;

    width:280px;

    padding:14px;

    border-radius:18px;

    border:1px solid rgba(
        147,
        197,
        253,
        .18
    );

    background:
        linear-gradient(
            135deg,
            #101827,
            #0f172a
        );

    box-shadow:
        0 20px 50px rgba(
            0,
            0,
            0,
            .45
        );

    z-index:99999;
}

.dna-wrong-form.is-open .dna-wrong-picker{
    display:grid;
    gap:8px;
}

.dm-compose-tools {
    margin-bottom: 33px;
}

/* =========================================================
   101. RSBuild 2026 Final Polish Pass
   Source: app-v9.css
   Purpose: subtle 2026 visual polish without changing layout
   ========================================================= */

:root{
  --motion-2026: .22s cubic-bezier(.22,.61,.36,1);
  --rs-dark-1: #0f172a;
  --rs-dark-2: #111827;
  --rs-dark-3: #131c2f;
  --rs-glow-blue: rgba(59,130,246,.14);
  --rs-glow-purple: rgba(168,85,247,.13);
}

html,
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* SVG icon refinement: thinner, cleaner and more current */
.rs-svg svg,
.stat-ico svg,
.garage-head__icon svg,
.following-header__icon svg,
.people-head__icon svg,
.account-page-head__icon svg,
.notif-type-badge svg,
.password-toggle .eye,
.empty-state-icon svg{
  stroke-width: 1.85;
  vector-effect: non-scaling-stroke;
}

/* Softer, more modern movement */
.btn,
.rs-ico,
.file-upload-btn,
.post-menu-trigger,
.garage-card,
.notif-card,
.dm-row,
.onboarding-step,
.garage-onboarding__step,
.car-onboarding-step,
.car-photo-action-btn,
.post-appeal-btn{
  transition:
    transform var(--motion-2026),
    box-shadow var(--motion-2026),
    border-color var(--motion-2026),
    background-color var(--motion-2026),
    color var(--motion-2026),
    opacity var(--motion-2026);
}

.garage-card:hover,
.notif-card:hover,
.dm-row:hover,
.feedcard:hover{
  transform: translateY(-1px);
}

/* Slightly softer glow language */
.auth-card,
.notif-card,
.garage-card,
.account-section-box,
.contact-page__info-card,
.rs-cookie-prefs__card,
.rs-cookie-banner__inner{
  box-shadow: 0 14px 34px rgba(15,23,42,.075);
}

/* Glass only where it belongs: floating surfaces and menus */
.rs-user-dd,
.post-menu-dropdown,
.like-popover,
.dm-emoji-pop,
.lb-close,
.lb-prev,
.lb-next,
.car-photo-overlay-actions,
.report-modal__dialog,
.rs-cookie-prefs__card,
.rs-cookie-banner__inner{
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rs-user-dd,
.post-menu-dropdown,
.like-popover,
.dm-emoji-pop{
  background: rgba(255,255,255,.94);
}

/* Refined darks: less pure black, more premium navy */
.auth-badge,
.follow-btn.is-following,
.garage-badge--private,
.car-view-vis--private,
.btn-auth{
  background: linear-gradient(180deg, var(--rs-dark-2), #0b1220);
  border-color: rgba(15,23,42,.92);
}

/* DNA card: original energy, clipped animation, 2026 lifted darks */
.rsbuild-dna-card{
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important;
  isolation: isolate;
  contain: paint;
  clip-path: inset(0 round 22px);
  border: 1px solid rgba(96,165,250,.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(59,130,246,.24), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(168,85,247,.20), transparent 32%),
    linear-gradient(135deg, var(--rs-dark-1) 0%, var(--rs-dark-2) 48%, var(--rs-dark-3) 100%);
  box-shadow:
    0 16px 38px rgba(15,23,42,.24),
    inset 0 1px 0 rgba(255,255,255,.045);
}

.rsbuild-dna-card::before{
  content: "" !important;
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(59,130,246,.16), transparent 56%),
    radial-gradient(circle at 38% 62%, rgba(168,85,247,.12), transparent 48%);
  animation: dnaPulse 10s linear infinite;
  transform-origin: center;
  will-change: transform;
}

.rsbuild-dna-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.18) .6px, transparent .6px);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
}

.rsbuild-dna-head,
.rsbuild-dna-body,
.rsbuild-dna-feedback,
.rsbuild-dna-feedback-actions,
.dna-history{
  position: relative;
  z-index: 2;
}

.rsbuild-dna-icon,
.rsbuild-dna-bar span{
  box-shadow: 0 0 0 5px rgba(96,165,250,.10);
}

.rsbuild-dna-score-badge{
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 24px rgba(168,85,247,.15);
}

.rsbuild-dna-titlewrap h2{
  letter-spacing: -0.035em;
}

@keyframes dnaPulse{
  from{ transform: rotate(0deg) scale(1); }
  50%{ transform: rotate(180deg) scale(1.03); }
  to{ transform: rotate(360deg) scale(1); }
}

/* Keep the wrong-picker usable without making the DNA card overflow */
.dna-wrong-picker{
  z-index: 20;
  box-shadow: 0 18px 44px rgba(0,0,0,.38);
}

/* Feed media polish: balanced with card radius */
.pbig,
.psmall,
.pg-single,
.pg-tile,
.car-photo-card,
.car-photo-image{
  border-radius: 12px;
}

.feed-txt strong,
.car-post-title,
.post-view-title{
  margin-bottom: 4px;
}

/* Slightly lifted, cleaner focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,.16);
}

/* Mobile motion/performance safety */
@media (prefers-reduced-motion: reduce){
  .rsbuild-dna-card::before,
  .rs-badge.pulse,
  .home-feed-pull-indicator__spinner{
    animation: none !important;
  }

  *,
  *::before,
  *::after{
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

/* =========================================================
   102. DNA Dropdown + Animation Fix
   Keeps the animated DNA glow inside the card
   Allows the "Wrong" dropdown to open outside the card
   ========================================================= */

/* Do NOT clip the whole DNA card, because the wrong-picker is absolutely
   positioned and needs to escape the card body. */
.rsbuild-dna-card{
  position: relative !important;
  z-index: 5 !important;
  overflow: visible !important;
  isolation: isolate;
  contain: none !important;
  clip-path: none !important;
}

/* Keep only the animated glow bounded to the card size.
   No rotating oversized layer, so nothing can bleed over nearby images. */
.rsbuild-dna-card::before{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border-radius: 22px;
  overflow: hidden;

  background:
    radial-gradient(circle at 16% 8%, rgba(59,130,246,.24), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(168,85,247,.20), transparent 32%),
    radial-gradient(circle at 48% 52%, rgba(59,130,246,.14), transparent 58%);

  background-size:
    120% 120%,
    130% 130%,
    140% 140%;

  animation: dnaGlowDrift 9s cubic-bezier(.22,.61,.36,1) infinite alternate;
  transform: none !important;
  will-change: background-position, opacity;
}

/* Fine grain remains inside the card only */
.rsbuild-dna-card::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 22px;
  opacity: .14;
  background-image: radial-gradient(rgba(255,255,255,.16) .6px, transparent .6px);
  background-size: 18px 18px;
}

/* Card content above the animated glow */
.rsbuild-dna-head,
.rsbuild-dna-body,
.rsbuild-dna-feedback,
.rsbuild-dna-feedback-actions,
.dna-history{
  position: relative;
  z-index: 2;
}

/* The dropdown must sit above the DNA card and surrounding content */
.dna-wrong-form{
  position: relative;
  z-index: 300;
}

.dna-wrong-form.is-open{
  z-index: 1000;
}

.dna-wrong-picker{
  z-index: 99999 !important;
}

/* Replacement animation: movement without physical overflow */
@keyframes dnaGlowDrift{
  0%{
    background-position:
      0% 0%,
      100% 10%,
      50% 50%;
    opacity: .88;
  }

  50%{
    background-position:
      12% 8%,
      88% 22%,
      44% 58%;
    opacity: 1;
  }

  100%{
    background-position:
      4% 14%,
      94% 4%,
      54% 46%;
    opacity: .92;
  }
}


.wanted-panel-actions button {
  color: #222;
}

.footer-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-left{
  justify-self: start;
}

.footer-links{
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 640px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .footer-left,
  .footer-links{
    justify-self: center;
  }

  .footer-links{
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

.box-cta .car-edit-actions a.btn,
.garage-card__actions .btn,
.dm-head .btn {
  color: #0f172a;
}

.btn-auth {
  color: #ffffff;
}

.btn-ghost:hover {
  color: var(--muted);
}