*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #FF2800;

  /* Bright accent used for buttons/badges */
  --color-accent: #F4D03F;

  /* Darker accent used for text/hover */
  --color-accent-strong: #C89C00;

  --color-bg: #050505;
  --color-text: #F5F5F5;

  --color-card: rgba(255, 255, 255, 0.06);
  --color-card-hover: rgba(255, 255, 255, 0.1);
  --color-input-bg: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.12);

  --radius: 10px;
  --radius-sm: 6px;
}

/* =========================================================
   MODE VARIABLES
   ========================================================= */

body.mode-dark {
  --color-text: #F5F5F5;
  --color-card: rgba(255, 255, 255, 0.06);
  --color-card-hover: rgba(255, 255, 255, 0.10);
  --color-input-bg: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.12);
  --page-bg-solid: #050505;
  --page-gradient-end: #000;
  --navbar-bg: rgba(0, 0, 0, 0.7);
  --dropdown-bg: rgba(10, 10, 10, 0.96);
  --badge-text: #111;
}

body.mode-light {
  --color-text: #171717;
  --color-card: rgba(255, 255, 255, 0.72);
  --color-card-hover: rgba(255, 255, 255, 0.92);
  --color-input-bg: rgba(255, 255, 255, 0.95);
  --color-border: rgba(0, 0, 0, 0.10);
  --page-bg-solid: #f7f6f2;
  --page-gradient-end: #efede7;
  --navbar-bg: rgba(255, 255, 255, 0.88);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --badge-text: #111;
}

/* =========================================================
   BASE / BODY / WATERMARK
   ========================================================= */

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.mode-dark {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 40%),
    linear-gradient(135deg, var(--color-bg), var(--page-gradient-end));
}

body.mode-light {
  background: var(--page-bg-solid);
}

/* Put ONE of these classes on <body> via base.html:
   <body class="theme-ferrari">, <body class="theme-gulf">, etc. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  filter: grayscale(1);
  transform:
    rotate(-12deg)
    translate3d(0, var(--wm-shift-y, 0px), 0)
    scale(var(--wm-scale, 1));
  transform-origin: center;
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: min(900px, 90vw);
  transition: transform 0.08s linear;
  will-change: transform;
  animation: watermarkFloat 20s ease-in-out infinite;
}

body.mode-light::before {
  opacity: 0.05;
  filter: none;
}

@keyframes watermarkFloat {
  0% {
    background-position: center 35%;
  }
  50% {
    background-position: center 38%;
  }
  100% {
    background-position: center 35%;
  }
}

/* Make sure app content sits above the watermark */
.navbar,
.container {
  position: relative;
  z-index: 1;
}

/* Theme-specific watermark images */
body.theme-ferrari::before {
  background-image: url("/static/img/watermarks/ferrari.png");
}

body.theme-lambo::before {
  background-image: url("/static/img/watermarks/lamborghini.png");
}

body.theme-gulf::before {
  background-image: url("/static/img/watermarks/gulf.png");
}

body.theme-porsche::before {
  background-image: url("/static/img/watermarks/porsche.png");
}

body.theme-chevy::before {
  background-image: url("/static/img/watermarks/chevy.png");
  background-position: 50% 50%;
}

body.theme-ford_gt::before {
  background-image: url("/static/img/watermarks/fordgt.png");
  background-position: 50% 50%;
}

body.theme-bmw::before {
  background-image: url("/static/img/watermarks/bmw.png");
  background-position: 50% 50%;
}

body.theme-lotus::before {
  background-image: url("/static/img/watermarks/lotus.png");
}

body.theme-mercedes::before {
  background-image: url("/static/img/watermarks/mercedes.png");
  background-position: 50% 50%;
}

body.theme-mclaren::before {
  background-image: url("/static/img/watermarks/mclaren.png");
  background-position: 50% 50%;
}

/* Light mode per-theme watermark tuning */
body.mode-light.theme-ford_gt::before,
body.mode-light.theme-chevy::before,
body.mode-light.theme-mercedes::before,
body.mode-light.theme-mclaren::before {
  opacity: 0.035;
}

body.mode-light.theme-lotus::before,
body.mode-light.theme-bmw::before {
  opacity: 0.06;
}

/* =========================================================
   LINKS
   ========================================================= */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.mode-light .navbar {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  text-transform: uppercase;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-brand:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  text-transform: uppercase;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-brand span {
  color: var(--brand-secondary-dark);
}

body.mode-light .nav-brand span {
  color: var(--brand-secondary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

/* Active page indicator */

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(255, 40, 0, 0.06);
  border: 1px solid rgba(255, 40, 0, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 40, 0, 0.1) inset;
}

.nav-links a.active:hover {
  color: var(--color-primary);
  background: rgba(255, 40, 0, 0.1);
  border-color: rgba(255, 40, 0, 0.34);
}

.nav-links a::after {
  display: none;
}

.nav-search {
  display: flex;
  align-items: center;
}

.nav-search input {
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 180px;
  outline: none;
  transition: border-color 0.2s;
}

.nav-search input:focus {
  border-color: var(--color-primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Nav icon links */
.nav-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-icon-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.nav-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-icon-link .notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  margin-left: 0;
}

.nav-icon-link.active {
  color: var(--color-primary);
  border-color: rgba(255, 40, 0, 0.3);
  background: rgba(255, 40, 0, 0.07);
  box-shadow:
    0 0 0 2px rgba(255, 40, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

body.mode-light .nav-icon-link,
body.mode-light .nav-dropdown-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

body.mode-light .nav-icon-link:hover,
body.mode-light .nav-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

body.mode-light .nav-links a:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.nav-links a.nav-invite {
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.36rem 0.82rem;
  border: 1px solid transparent;

  background: var(--color-accent);
  color: #111;

  box-shadow: 0 6px 18px rgba(0,0,0,0.16);

  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-links a.nav-invite:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.nav-links a.nav-invite::after {
  display: none;
}

.nav-links a.nav-invite.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}


/* Light mode behavior */

body.mode-light .nav-links a.nav-invite {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

body.mode-light .nav-links a.nav-invite:hover {
  background: var(--color-accent);
  color: #111;
  border-color: var(--color-accent);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  flex-direction: column;
  min-width: 190px;
  padding: 0.4rem 0;
  margin: 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  width: auto;
  margin: 0 0.3rem;
  padding: 0.48rem 0.82rem;
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-btn.active {
  color: var(--color-primary);
  border-color: rgba(255, 40, 0, 0.3);
  background: rgba(255, 40, 0, 0.07);
  box-shadow:
    0 0 0 2px rgba(255, 40, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-dropdown-menu a.active {
  color: var(--color-primary);
  background: rgba(255, 40, 0, 0.07);
  border-color: rgba(255, 40, 0, 0.26);
  box-shadow: 0 0 0 1px rgba(255, 40, 0, 0.08) inset;
}
/* Nav badges */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  line-height: 18px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-accent);
  color: var(--badge-text);
}

.notif-badge-pulse {
  animation: notifPulse 1.15s ease-in-out infinite;
}

@keyframes notifPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-badge-pulse {
  animation: navPulse 1.25s ease-in-out infinite;
}

@keyframes navPulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.08); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

/* =========================================================
   LAYOUT / TITLES
   ========================================================= */

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

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--color-accent);
}

body.mode-light .page-title {
  color: #111;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.1);
}

.btn-accent {
  background: var(--color-accent);
  color: #111;
}

.btn-accent:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #111;
}

.btn-danger {
  background: #cc2222;
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

body.mode-light .btn-outline {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: #171717;
}

body.mode-light .btn-outline:hover {
  background: rgba(255, 255, 255, 1);
  color: #111;
  border-color: rgba(0, 0, 0, 0.16);
}

body.mode-light .btn-primary,
body.mode-light .btn-accent {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   FORMS / FILTERS
   ========================================================= */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select option {
  background: #1a1a1a;
  color: #f5f5f5;
}

body.mode-light .form-group select option {
  background: #ffffff;
  color: #171717;
}

.form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  padding: 0.4rem 0.7rem;
  background: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.85rem;
  outline: none;
}

body.mode-light .form-group input,
body.mode-light .form-group textarea,
body.mode-light .form-group select,
body.mode-light .filter-bar input,
body.mode-light .filter-bar select,
body.mode-light .nav-search input {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: #171717;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

body.mode-light .filter-bar,
body.mode-light .garage-stats,
body.mode-light .settings-section,
body.mode-light .form-card {
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.02);
}

/* =========================================================
   FLASH MESSAGES
   ========================================================= */

.flash-messages {
  max-width: 700px;
  margin: 0 auto 1rem;
}

.flash {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.flash-success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
}

.flash-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.flash-warning {
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid rgba(241, 196, 15, 0.3);
  color: #f1c40f;
}

.flash-info {
  background: rgba(52, 152, 219, 0.15);
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: #3498db;
}

/* =========================================================
   COMMENTS
   ========================================================= */

.comments-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.comments-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.comment-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--color-input-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
}

.comment-form textarea:focus {
  border-color: var(--color-primary);
}

.comment-form-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.comment-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.comment {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.comment-author {
  font-weight: 600;
  color: var(--color-accent);
}

.comment-time {
  opacity: 0.6;
}

.comment-body {
  font-size: 0.9rem;
}

.comment-delete-form {
  margin-top: 0.25rem;
}

body.mode-light .comment,
body.mode-light .notification-card,
body.mode-light .friends-column,
body.mode-light .settings-section,
body.mode-light .garage-actionbar,
body.mode-light .album-card {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.025);
}

/* =========================================================
   GARAGE ACTION BAR
   ========================================================= */

.garage-actions-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.garage-actions-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.garage-actionbar {
  margin: 0.75rem 0 1rem;
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.garage-actionbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.garage-actionbar-right {
  opacity: 0.75;
  font-size: 0.85rem;
  white-space: nowrap;
}

.garage-actionbar-meta {
  opacity: 0.85;
}

body.mode-light .garage-actionbar {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 0, 0, 0.08);
}

/* =========================================================
   MEDIA GRID / CARDS
   ========================================================= */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.media-card {
  background: var(--color-card);
  color: var(--color-text);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

.media-card,
.media-card:hover,
.media-card .card-title,
.media-card .card-meta,
.media-card .card-body,
.media-card .tag-pills {
  color: var(--color-text);
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--color-primary);
}

body.mode-light .media-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
}

body.mode-light .media-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.media-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.03);
}

.media-card .card-body {
  padding: 0.8rem 1rem;
}

.media-card .card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card .card-meta {
  font-size: 0.8rem;
  opacity: 0.78;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.mode-light .media-card .card-meta {
  opacity: 0.72;
}

/* Tags */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.tag-pill {
  background: var(--color-accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* =========================================================
   GARAGE HEADER / PROFILE
   ========================================================= */

.garage-header {
  position: relative;
  margin-bottom: 2rem;
}

.garage-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.garage-cover {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.garage-cover-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius);
  opacity: 0.4;
}

.garage-profile {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-top: -3.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.garage-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg);
  background: var(--color-card);
  flex-shrink: 0;
}

.garage-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  border: 4px solid var(--color-bg);
  flex-shrink: 0;
}

.garage-info h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.garage-info .username {
  opacity: 0.6;
  font-size: 0.9rem;
}

.garage-info .bio {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.garage-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.follow-form {
  margin-top: 0.75rem;
}

/* =========================================================
   GARAGE STATS
   ========================================================= */

.garage-stats {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-item {
  text-align: center;
  min-width: 0;
}

.stat-value {
  font-size: clamp(1rem, 3.8vw, 1.4rem);
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* =========================================================
   GARAGE LAYOUT / CARDS / SHOWS / BUILDS / BADGES
   ========================================================= */

.garage-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.garage-card {
  background: var(--color-card);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

body.mode-light .garage-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 2px 10px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(14px);
}

.garage-muted {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.garage-section-title {
  font-size: 1rem;
  margin: 0;
  color: var(--color-accent);
}

body.mode-light .garage-section-title {
  color: #111;
}


.garage-builds {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.garage-builds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.garage-builds-header h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.garage-show-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.garage-show-item {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.garage-show-name {
  font-weight: 600;
}

.garage-show-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

.garage-show-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.show-friends {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

.show-friends-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.show-friends-avatars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.friend-chip {
  text-decoration: none;
}

.friend-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.friend-avatar.placeholder {
  background: rgba(255, 255, 255, 0.1);
}

.friend-more {
  font-size: 0.75rem;
  opacity: 0.8;
}

.show-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.show-pill-going {
  background: rgba(0, 180, 0, 0.25);
}

.show-pill-maybe {
  background: rgba(255, 200, 0, 0.25);
}

.show-pill-not {
  background: rgba(255, 0, 0, 0.25);
}

.show-pill-empty {
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.85;
}

.show-status-select {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.show-status-select option {
  color: #000;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.build-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.build-cover-wrap {
  flex: 0 0 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

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

.build-cover-placeholder {
  flex: 0 0 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0.6;
}

.build-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.build-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.build-sub {
  font-size: 0.85rem;
  opacity: 0.75;
}

.build-spec-line {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.build-actions {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.4rem;
}

.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  white-space: nowrap;
}

.badge-pill-label {
  opacity: 0.9;
}

.garage-badges {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.garage-badges h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.35), transparent 50%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.6);
}

.badge-main {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-desc {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* =========================================================
   GARAGE COVER FRAME
   ========================================================= */

.garage-cover-frame {
  position: relative;
  border-radius: var(--radius);
  padding: 3px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent),
    var(--color-primary)
  );
  background-size: 200% 200%;
  animation: garageBorder 6s linear infinite;
}

.garage-cover-frame .garage-cover {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
  display: block;
}

@keyframes garageBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =========================================================
   ALBUMS
   ========================================================= */

.garage-albums {
  margin-bottom: 1.75rem;
}

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

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

body.mode-light .section-header h2 {
  color: #111;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.album-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.album-card,
.album-card:hover,
.album-card-body h3,
.album-card-body p {
  color: var(--color-text);
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  border-color: var(--color-accent);
}

.album-thumb {
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.album-thumb-badge {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
}

.album-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.album-card-body p {
  font-size: 0.8rem;
  opacity: 0.8;
}

body.mode-light .album-card-body p {
  opacity: 0.72;
}

/* =========================================================
   MEDIA DETAIL / LIKES
   ========================================================= */

.media-viewer {
  max-width: 900px;
  margin: 0 auto;
}

.media-viewer img,
.media-viewer video {
  width: 100%;
  border-radius: var(--radius);
  max-height: 600px;
  object-fit: contain;
  background: #000;
}

.media-viewer .yt-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.media-viewer .yt-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.media-info {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.media-info h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.media-info .car-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.like-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.like-btn {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.like-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.like-btn.liked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* =========================================================
   SETTINGS
   ========================================================= */

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: flex-start;
}

.settings-section {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.settings-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.avatar-preview,
.cover-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.cover-preview {
  width: 100%;
  height: 100px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   EXPLORE
   ========================================================= */

.explore-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.explore-tabs {
  display: inline-flex;
  background: var(--color-card);
  border-radius: 999px;
  padding: 0.15rem;
  border: 1px solid var(--color-border);
}

.explore-tab {
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--color-text);
  opacity: 0.7;
}

.explore-tab.active {
  background: var(--color-primary);
  color: #fff;
  opacity: 1;
}

.explore-hint {
  font-size: 0.85rem;
  opacity: 0.65;
}

body.mode-light .explore-hint {
  opacity: 0.72;
}

.explore-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.explore-main,
.explore-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.explore-section {
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
}

.explore-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.explore-section-header h2 {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.explore-empty {
  opacity: 0.6;
  font-size: 0.9rem;
}

.compact-grid .media-card {
  margin-bottom: 0;
}

/* =========================================================
   SEARCH / USERS
   ========================================================= */

.search-results-section {
  margin-bottom: 2rem;
}

.search-results-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.user-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.user-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.15s, border-color 0.15s;
}

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

.user-card .mini-avatar,
.user-card .mini-avatar-letter {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

/* =========================================================
   IMPORT GRID / EMPTY STATE / THUMB PLACEHOLDER
   ========================================================= */

.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.import-item {
  position: relative;
}

.import-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.import-item input[type="checkbox"] {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.import-item input[type="checkbox"]:checked + img {
  border-color: var(--color-primary);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  opacity: 0.2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* =========================================================
   FRIENDS
   ========================================================= */

.friends-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.friends-column {
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
}

.friends-column h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--color-accent);
}

.friends-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.friends-list li a {
  font-size: 0.9rem;
}

/* =========================================================
   NOTIFICATIONS
   ========================================================= */

.notifications-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-item {
  background: var(--color-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.notification-message {
  flex: 1;
}

.notification-time {
  opacity: 0.6;
  font-size: 0.8rem;
  white-space: nowrap;
}

.notification-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.notification-icon {
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.notification-body {
  flex: 1;
}

.notification-text {
  font-size: 0.9rem;
}

.notification-text a {
  color: var(--color-accent);
  font-weight: 600;
}

.notification-meta {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.2rem;
}

body.mode-light .notification-meta {
  opacity: 0.72;
}

/* =========================================================
   TAGS / CHIPS
   ========================================================= */

.tag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
}

.tag-chip:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.tag-chip-count {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* =========================================================
   DEBATES
   ========================================================= */

.debate-section {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.debate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.debate-header h2 {
  font-size: 1.2rem;
}

.debate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.debate-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1rem 1.1rem;
}

.debate-title {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.debate-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.debate-option {
  display: block;
  padding: 0.4rem 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
}

.debate-option:hover {
  border-color: var(--color-accent);
}

.debate-option input[type="radio"] {
  margin-right: 0.4rem;
}

.debate-option-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.debate-option-text {
  font-weight: 500;
}

.debate-option-pct {
  font-size: 0.8rem;
  opacity: 0.75;
}

.debate-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.debate-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width 0.25s ease-out;
}

.debate-footer {
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.75;
}

.debate-login-note {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 900px) {
  .garage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
    gap: 1.5rem;
  }
}

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

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-dropdown-btn,
  .nav-icon-link {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a,
  .nav-dropdown-btn {
    padding: 0.42rem 0.72rem;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.35rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .nav-search {
    width: 100%;
    order: 3;
  }

  .nav-search input {
    width: 100%;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .garage-cover,
  .garage-cover-placeholder {
    height: 180px;
  }

  .garage-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -2.5rem;
  }

  .garage-stats {
    justify-content: center;
  }

  .garage-car-identity {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .garage-car-line span {
    font-weight: 600;
    margin-right: 0.25rem;
  }

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

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    padding: 1rem;
  }

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

  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .garage-stats {
    padding: 0.85rem 1rem;
  }

  .stat-row {
    gap: 0.5rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.3px;
  }
}


