/* Base Styles */
html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bp-bg);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content area should grow */
.main-content {
  flex: 1 0 auto;
}

/* Design tokens (home redesign) */
:root {
  --bp-bg: #f2f3f5;
  --bp-card: #ffffff;
  --bp-ink: #121417;
  --bp-muted: #5d6470;
  --bp-line: #e2e5e9;
  --bp-blue: #2f6fc4;
  --bp-live: #2fb56a;
  --bp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bp-header-h: 4rem;
  --bp-tabbar-h: 3.75rem;
}

/* Buttons */
.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  padding: 0.5625rem 1rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  border: 0.0625rem solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.bp-btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

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

.bp-btn-primary:hover {
  color: #fff;
}

.bp-btn-outline {
  background: var(--bp-card);
  color: var(--bp-ink);
  border-color: var(--bp-line);
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0; /* body is a flex column; without this the header squashes on long pages */
  height: var(--bp-header-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  background: var(--bp-card);
  border-bottom: 0.0625rem solid var(--bp-line);
  font-family: var(--bp-font);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--bp-ink);
}

.site-header-logo {
  display: flex;
  flex-shrink: 0;
}

.site-header-logo img {
  height: 1.625rem;
  width: auto;
  display: block;
}

.site-header-nav {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-header-nav a {
  color: var(--bp-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
}

.site-header-nav a:hover {
  color: var(--bp-ink);
  text-decoration: none;
}

.site-header-nav a.active {
  color: var(--bp-ink);
  background: var(--bp-bg);
}

.site-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header-link {
  color: var(--bp-ink);
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
}

.site-header-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.site-header-actions .site-header-upload {
  margin-right: 0.5rem;
  padding: 0.5625rem 1.125rem;
  font-weight: 700;
}

.site-header .site-header-icon {
  color: var(--bp-ink);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.site-header .site-header-icon:hover {
  background: var(--bp-bg);
}

.site-header .notif-badge {
  top: 0;
  right: 0;
  min-width: 1.125rem;
  height: 1.125rem;
  background: #d9534f;
  border: 0.125rem solid var(--bp-card);
  font-size: 0.6875rem;
}

/* Account menu */
.user-menu {
  position: relative;
  margin-left: 0.25rem;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  list-style: none;
  color: var(--bp-muted);
}

.user-menu-btn::-webkit-details-marker {
  display: none;
}

.user-menu-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
  border: 0.125rem solid var(--bp-line);
  background: var(--bp-bg);
  color: var(--bp-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-menu[open] .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  padding: 0.375rem;
  background: var(--bp-card);
  border: 0.0625rem solid var(--bp-line);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.user-menu-name {
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  border-bottom: 0.0625rem solid var(--bp-line);
  margin-bottom: 0.25rem;
}

.user-menu-panel a, .user-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  color: var(--bp-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.user-menu-panel a:hover, .user-menu-panel button:hover {
  background: var(--bp-bg);
  text-decoration: none;
}

.user-menu-panel form {
  margin: 0;
}

/* Mobile bottom tab bar (always on phones; on the home page whenever the rails are hidden) */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  box-sizing: content-box;
  height: var(--bp-tabbar-h);
  padding-bottom: env(safe-area-inset-bottom);
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: var(--bp-card);
  border-top: 0.0625rem solid var(--bp-line);
  font-family: var(--bp-font);
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
}

.tabbar a {
  color: var(--bp-muted);
}

.tabbar a:hover {
  text-decoration: none;
}

.tabbar a.active {
  color: var(--bp-blue);
}

.tabbar .tabbar-upload {
  justify-self: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: var(--bp-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 400;
}

@media (max-width: 767px) {
  .site-header {
    --bp-header-h: 3.5rem;
    padding: 0 0.75rem;
  }

  .site-header-logo img {
    height: 1.25rem;
  }

  .site-header-nav, .site-header-desktop {
    display: none;
  }

  .tabbar {
    display: grid;
  }

  .page {
    padding-bottom: calc(var(--bp-tabbar-h) + env(safe-area-inset-bottom) + 0.75rem);
  }
}

@media (max-width: 1099px) {
  .page-home ~ .tabbar {
    display: grid;
  }
}

/* Development Banner */
.profile-nudge {
  background-color: #eff6ff;
  border-bottom: 0.0625rem solid #bfdbfe;
  padding: 0.75rem 1.25rem;
  width: 100%;
}

.profile-nudge-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #1e40af;
}

.profile-nudge-content span {
  flex: 1;
}

.profile-nudge-btn {
  white-space: nowrap;
  background: #2563eb;
  color: #fff;
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

.profile-nudge-btn:hover {
  background: #1d4ed8;
}

.profile-nudge-close {
  background: none;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  line-height: 1;
}

.profile-nudge-close:hover {
  color: #1e40af;
}

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

.development-banner {
  position: relative;
  flex-shrink: 0;
  background-color: #ffedd5;
  border-bottom: 0.0625rem solid #fed7aa;
  padding: 0.75rem 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

.development-banner[hidden] {
  display: none;
}

.development-close {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

.development-close:hover {
  background: #fed7aa;
}

.development-message {
  margin: 0;
  text-align: center;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.4;
}

.development-message strong {
  font-weight: 600;
}

.development-message a {
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .development-banner {
    padding: 0.625rem 2.5rem 0.625rem 0.75rem;
  }

  .development-message {
    font-size: 0.75rem;
  }
}

/* Container Components */
.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content-box {
  background-color: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3 {
  margin-top: 0;
  color: #333;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.9375rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

p {
  line-height: 1.6;
  margin-bottom: 0.625rem;
}

/* Links */
a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin: 1.25rem 0;
  color: #007bff;
  text-decoration: none;
}

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

/* Text Utilities */
.text-muted {
  color: #666;
}

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

/* Spacing Utilities */
.mb-10 {
  margin-bottom: 0.625rem;
}

.mb-20 {
  margin-bottom: 1.25rem;
}

.mb-30 {
  margin-bottom: 1.875rem;
}

/* Page Specific Styles */

/* Base Page Styles */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  box-sizing: border-box;
}

/* Mobile responsive padding */
@media (max-width: 768px) {
  .page {
    padding: 0.75rem;
  }
}

/* Page containers */
.page .container {
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Special layout for picture pages */
.picture-detail .container {
  max-width: 50rem;
}

/* Home Page Components */

.photo-section {
  background-color: white;
  padding: 1.875rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-section h2 {
  margin-bottom: 1.25rem;
  color: #333;
  font-size: 1.5rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.625rem;
}

.photo-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.photo-card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
  display: block;
}

.photo-card .photo-info {
  padding: 0.9375rem;
}

.photo-card .photo-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.875rem;
}

.photo-card .photo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
}

.photo-card .likes {
  color: #e74c3c;
  font-weight: bold;
}

.photo-card .member a {
  color: #007bff;
  text-decoration: none;
}

.photo-card .member a:hover {
  text-decoration: underline;
}

.photo-meta-user {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.photo-card .photo-meta-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.photo-info {
  background-color: #f9f9f9;
  padding: 1.875rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1.875rem;
}

.photo-number {
  font-size: 2.25rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 0.625rem;
}

.view-photo-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.875rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.view-photo-btn:hover {
  background-color: #0056b3;
  text-decoration: none;
}

.error {
  color: #dc3545;
  font-size: 1.125rem;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.9375rem;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
  margin-top: 1.25rem;
}

/* Picture Page */
.photo-container {
  background-color: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 4px;
}

.photo-details {
  background-color: #f9f9f9;
  padding: 0.9375rem;
  border-radius: 4px;
  border-left: 4px solid #007bff;
}

.photo-below {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.photo-view-count {
  font-size: 0.8125rem;
  color: #888;
}

.delete-photo-btn {
  font-size: 0.8125rem;
  color: #dc2626;
  background: none;
  border: 1px solid #dc2626;
  border-radius: 0.25rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
}

.delete-photo-btn:hover {
  background: #dc2626;
  color: #fff;
}

.confirm-modal {
  border: none;
  border-radius: 0.5rem;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 28rem;
  width: 90%;
}

.confirm-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.confirm-modal-inner {
  padding: 1.5rem;
}

.confirm-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1f2937;
}

.confirm-modal-body {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
}

.confirm-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

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

/* Member page cover photo */
.member-page {
  padding-bottom: 3rem;
}

.member-cover {
  position: relative;
  width: 100%;
  height: 16rem;
  background-color: #1f2937;
  background-size: cover;
  background-position: center;
}

.cover-edit-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.cover-edit-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.cover-actions {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.photo-action-menu {
  position: relative;
}

.photo-action-dropdown {
  position: absolute;
  bottom: calc(100% + 0.375rem);
  right: 0;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
  min-width: 10rem;
  z-index: 10;
  overflow: hidden;
}

.photo-action-dropdown button {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  color: #1f2937;
}

.photo-action-dropdown button:hover {
  background: #f3f4f6;
}

.photo-action-dropdown button.danger {
  color: #dc2626;
}

.photo-action-dropdown button.danger:hover {
  background: #fef2f2;
}

/* Avatar + identity */
.member-identity {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-top: -3rem;
  margin-bottom: 1.25rem;
}

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

.member-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  border: 0.25rem solid #fff;
  object-fit: cover;
  display: block;
  background: #e9ecef;
}

.member-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4b5563;
  color: #fff;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 0.125rem solid #fff;
  background: #374151;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.avatar-edit-btn:hover {
  background: #1f2937;
}

.member-avatar-clickable {
  cursor: pointer;
}

.member-cover-clickable {
  cursor: pointer;
}

.image-lightbox {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.image-lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
}

.image-lightbox-round {
  border-radius: 50%;
  border: 0.25rem solid #fff;
}

.member-identity-info {
  padding-bottom: 0.5rem;
}

.member-username {
  margin: 0 0 0.125rem;
  font-size: 1.5rem;
}

.member-photo-count {
  color: #666;
  font-size: 0.9rem;
}

/* Member profile card */
.member-profile-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.member-profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.375rem;
}

.member-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.member-profile-meta:last-child {
  margin-bottom: 0;
}

.member-profile-meta a {
  color: #007bff;
  word-break: break-all;
}

.member-profile-bio {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.625rem;
  white-space: pre-wrap;
}

/* Crop modal */
.crop-modal {
  border: none;
  border-radius: 0.5rem;
  padding: 0;
  width: min(56rem, 95vw);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
}

.crop-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.crop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

.crop-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0 0.25rem;
}

.crop-hint {
  font-size: 0.8125rem;
  color: #666;
  padding: 0.5rem 1.25rem 0;
}

.crop-modal-body {
  overflow: auto;
}

.crop-container {
  max-height: 60vh;
  padding: 1rem 1.25rem;
}

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

.crop-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e9ecef;
}

.btn-primary {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0069d9;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-follow {
  background: #0077b6;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-follow:hover {
  background: #005f8e;
  color: #fff;
}

.btn-follow.following {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #dee2e6;
}

.btn-follow.following:hover {
  background: #fdecea;
  color: #c0392b;
  border-color: #c0392b;
}

/* Profile edit button */
.profile-edit-btn {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

/* Profile form inside modal */
.profile-form-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 65vh;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.form-hint {
  font-weight: 400;
  color: #888;
  font-size: 0.8rem;
  margin-left: 0.375rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.9375rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.1875rem rgba(0, 123, 255, 0.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-row-half {
  flex-direction: row;
  gap: 0.75rem;
}

.form-row-half > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.member-profile-empty {
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .form-row-half {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .member-cover {
    height: 10rem;
  }

  .member-identity {
    margin-top: -2rem;
  }

  .member-avatar {
    width: 5rem;
    height: 5rem;
  }

  .member-username {
    font-size: 1.25rem;
  }

  .member-body {
    grid-template-columns: 1fr;
  }

  .follow-widget {
    display: flex;
    gap: 1rem;
  }

  .follow-widget-section {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }
}

/* Member page bike groups */
.member-bike-section {
  margin-bottom: 2rem;
}

.member-bike-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.375rem;
}

.member-bike-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.member-bike-title a {
  color: #333;
  text-decoration: none;
}

.member-bike-title a:hover {
  color: #007bff;
}

.member-bike-see-all {
  font-size: 0.875rem;
  color: #007bff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.member-bike-see-all:hover {
  text-decoration: underline;
}

.member-bike-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.member-body {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

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

@media (min-width: 601px) {
  .member-body {
    grid-template-columns: 1fr 15rem;
    gap: 2rem;
  }

  .member-main {
    grid-column: 1;
    grid-row: 1;
  }

  .member-sidebar {
    position: sticky;
    top: 1rem;
    grid-column: 2;
    grid-row: 1;
  }
}

.follow-widget {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem;
}

.follow-widget-section {
  margin-bottom: 1.25rem;
}

.follow-widget-section:last-child {
  margin-bottom: 0;
}

.follow-widget-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.follow-widget-count {
  font-weight: 400;
  color: #666;
  font-size: 0.875rem;
}

.follow-user-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.follow-user-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: #333;
}

.follow-user-item:hover .follow-user-name {
  color: #007bff;
}

.follow-user-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.follow-user-avatar-placeholder {
  background: #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
}

.follow-user-name {
  font-size: 0.6875rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
}

.follow-widget-empty {
  font-size: 0.875rem;
  color: #999;
  margin: 0;
}

.member-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid #e5e7eb;
}

.profile-meta-garage {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.garage-meta-pill {
  position: relative;
  cursor: default;
}

.garage-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #1f2937;
  color: #f9fafb;
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  min-width: 14rem;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.garage-meta-pill:hover .garage-tooltip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.garage-tooltip-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.garage-tooltip-bike {
  font-size: 0.8rem;
  color: #f9fafb;
  line-height: 1.4;
}

.garage-toggle {
  display: flex;
  gap: 0.25rem;
}

.garage-btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.garage-btn:hover {
  border-color: #9ca3af;
  color: #374151;
}

.garage-btn.active {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 1px solid #ccc;
  border-radius: 2rem;
  padding: 0.375rem 0.875rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #555;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.like-button:hover {
  border-color: #e05;
  color: #e05;
}

.like-button.liked {
  border-color: #e05;
  color: #e05;
}

.like-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.like-heart {
  font-size: 1.125rem;
  line-height: 1;
}

.detail-item {
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
}

.detail-label {
  font-weight: bold;
  min-width: 7.5rem;
  color: #666;
}

.detail-value {
  color: #333;
}

/* Member Page */
.header {
  background-color: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.25rem;
}

.stats {
  color: #666;
  font-size: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.9375rem;
  margin-bottom: 1.875rem;
}

.photo-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.photo-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.photo-link img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.no-photos {
  text-align: center;
  padding: 3.75rem 1.25rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #666;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.875rem;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #333;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination a:hover {
  background-color: #007bff;
  color: white;
}

.pagination .current {
  background-color: #007bff;
  color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr));
    gap: 0.625rem;
  }

  .photo-section {
    padding: 1.25rem;
  }

  .container {
    padding: 0 0.625rem;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
    gap: 0.5rem;
  }

  .photo-section {
    padding: 0.9375rem;
  }

  .photo-card .photo-title {
    font-size: 0.75rem;
  }

  .photo-card .photo-meta {
    font-size: 0.625rem;
  }
}

/* Login Page */
.login-container {
  max-width: 25rem;
  margin: 3.125rem auto;
  background-color: white;
  padding: 1.875rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
  text-align: center;
  margin-bottom: 1.875rem;
  color: #333;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.3125rem;
  font-weight: bold;
  color: #666;
}

.form-group input {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.625rem;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
  margin-bottom: 1.25rem;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: #0056b3;
  color: white;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}

.form-hint-error {
  color: #c0392b;
}

.form-hint-success {
  color: #27ae60;
}

.input-error {
  border-color: #c0392b !important;
  outline-color: #c0392b;
}

.register-success {
  text-align: center;
  padding: 1rem 0;
}

.register-success h2 {
  margin-bottom: 1rem;
  color: #333;
}

.register-success p {
  color: #555;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.register-success-note {
  font-size: 0.875rem;
  color: #888;
}

.register-login-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #666;
}

/* Upload Page */
.upload-container {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.upload-stage {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
}

.upload-container .error-message {
  background: #fee;
  border: 0.0625rem solid #fcc;
  border-radius: 0.25rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #c53030;
  text-align: left;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.manufacturer-search-bar {
  margin: 1.5rem 0;
}

.manufacturer-search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 0.0625rem solid #d1d5db;
  border-radius: 0.5rem;
  box-sizing: border-box;
  outline: none;
}

.manufacturer-search-bar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.1875rem rgba(37, 99, 235, 0.15);
}

.manufacturer-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.manufacturer-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem 0.75rem;
  transition: all 0.2s;
}

.manufacturer-logo-card:hover {
  border-color: #2563eb;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.manufacturer-logo-placeholder {
  width: 5rem;
  height: 3rem;
  background-color: #f3f4f6;
  border-radius: 0.25rem;
  border: 0.0625rem dashed #d1d5db;
  margin-bottom: 0.625rem;
}

.manufacturer-logo-name {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: #333;
}

@media (max-width: 48rem) {
  .manufacturer-logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  }
}

.manufacturer-section,
.model-section {
  margin-bottom: 2rem;
}

.manufacturer-section:last-child,
.model-section:last-child {
  margin-bottom: 0;
}

.manufacturer-grid,
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.manufacturer-card,
.model-card {
  display: block;
  padding: 1.5rem;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.manufacturer-card:hover,
.model-card:hover {
  border-color: #2563eb;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
  transform: translateY(-0.0625rem);
}

.manufacturer-name,
.model-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.photo-count {
  color: #6b7280;
  font-size: 0.875rem;
}

.dropdown-form {
  margin-top: 1rem;
}

.dropdown-form select {
  width: 100%;
  padding: 0.75rem;
  border: 0.0625rem solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  background: white;
}

.upload-form {
  max-width: 24rem;
  margin-top: 1.5rem;
}

.upload-form .form-group {
  margin-bottom: 1.5rem;
}

.upload-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.upload-form .form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 0.0625rem solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.form-help {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.upload-button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-button:hover {
  background: #1d4ed8;
}

.upload-button:disabled {
  background: #93b4f4;
  cursor: not-allowed;
}

.upload-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 0.125rem solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: upload-spin 0.7s linear infinite;
}

.upload-button.is-uploading .upload-spinner {
  display: block;
}

.upload-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  min-height: 1.25rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .upload-spinner {
    animation-duration: 2s;
  }
}

@media (max-width: 48rem) {
  .manufacturer-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky Footer */
.site-footer {
  flex-shrink: 0;
  background-color: #f8f8f8;
  padding: 0.75rem 0;
  text-align: center;
  border-top: 0.0625rem solid #e0e0e0;
}

.copyright {
  font-size: 0.875rem;
  color: #999;
  margin: 0;
}

.footer-separator {
  margin: 0 0.5rem;
  color: #999;
}

.footer-link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #333;
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .site-footer {
    padding: 0.5rem 0;
  }

  .copyright {
    font-size: 0.75rem;
  }

  .footer-separator {
    margin: 0 0.25rem;
  }

  .footer-link {
    font-size: 0.75rem;
  }
}

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 3.75rem);
}

.admin-nav {
  width: 12rem;
  flex-shrink: 0;
  background: #1f2937;
  padding: 1.25rem 0;
}

.admin-nav-title {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1rem 0.75rem;
}

.admin-nav-link {
  display: block;
  padding: 0.625rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #374151;
  color: #fff;
}

.admin-main {
  flex: 1;
  padding: 1.5rem;
  overflow-x: auto;
}

.admin-main h1 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #111;
}

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

.admin-stat-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #007bff;
}

.admin-stat-label {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.admin-search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-search-input {
  flex: 1;
  max-width: 24rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 0.875rem;
}

.admin-table th {
  background: #f3f4f6;
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table a {
  color: #007bff;
  text-decoration: none;
}

.admin-table a:hover {
  text-decoration: underline;
}

.admin-row-banned td {
  background: #fef2f2;
  color: #9ca3af;
}

.admin-email {
  font-size: 0.8125rem;
  color: #6b7280;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-actions {
  white-space: nowrap;
}

.admin-btn {
  display: inline-block;
  padding: 0.4375rem 0.875rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.admin-btn:hover {
  background: #0056b3;
  color: #fff;
}

.admin-btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
}

.admin-btn-secondary {
  background: #6b7280;
}

.admin-btn-secondary:hover {
  background: #4b5563;
}

.admin-btn-warning {
  background: #d97706;
}

.admin-btn-warning:hover {
  background: #b45309;
}

.admin-btn-danger {
  background: #dc2626;
}

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

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.admin-message {
  background: #d1fae5;
  color: #065f46;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.admin-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.admin-hygiene-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  vertical-align: middle;
}

.admin-hygiene-clean {
  background: #d1fae5;
  color: #065f46;
}

.admin-hygiene-dirty {
  background: #fee2e2;
  color: #991b1b;
}

.admin-hygiene-unknown {
  background: #f3f4f6;
  color: #6b7280;
}

.admin-hygiene-select {
  font-size: 0.75rem;
  padding: 0.125rem 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  vertical-align: middle;
}

.admin-dialog {
  border: none;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  min-width: 22rem;
}

.admin-dialog h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.admin-dialog::backdrop {
  background: rgba(0,0,0,0.4);
}

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

.admin-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #374151;
}

.admin-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  box-sizing: border-box;
}

.admin-dialog-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ── Comments ────────────────────────────────────────────── */
.comments-section {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.comments-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid #007bff;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comment {
  background: #f9f9f9;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.comment-avatar-link {
  flex-shrink: 0;
}

.comment-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.comment-avatar-placeholder {
  background: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  font-size: 0.9375rem;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-date {
  font-size: 0.8125rem;
  color: #888;
}

.comment-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
}

.comment-delete:hover {
  text-decoration: underline;
}

.comment-body {
  font-size: 0.9375rem;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
}

.comment-input {
  width: 100%;
  min-height: 5rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.comment-input:focus {
  outline: none;
  border-color: #007bff;
}

.comment-submit {
  align-self: flex-start;
  padding: 0.5rem 1.25rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.comment-submit:hover {
  background: #0056b3;
}

.comment-reply-btn,
.comment-cancel-reply {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0;
}

.comment-reply-btn:hover,
.comment-cancel-reply:hover {
  color: #111;
}

.comment-reply {
  margin-left: 3rem;
}

.inline-reply-form {
  margin-top: 0.5rem;
}

.reply-input {
  font-size: 0.875rem;
  min-height: 3.5rem;
}

.reply-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.375rem;
}

.mention {
  color: #0070f3;
  font-weight: 600;
  text-decoration: none;
}

.mention:hover {
  text-decoration: underline;
}

/* ── Notification bell ───────────────────────────────────── */

.notif-bell-wrap {
  position: relative;
}

.notif-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  line-height: 1;
}

.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 22rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;
}

.notif-dropdown-header {
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.notif-list {
  max-height: 24rem;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.notif-item:hover {
  background: #f9fafb;
}

.notif-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

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

.notif-body {
  font-size: 0.875rem;
  line-height: 1.4;
}

.notif-time {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.notif-empty {
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.notif-view-all {
  display: block;
  text-align: center;
  padding: 0.625rem;
  font-size: 0.875rem;
  color: #0070f3;
  text-decoration: none;
  border-top: 1px solid #e5e7eb;
}

.notif-view-all:hover {
  background: #f9fafb;
}

.comment-login-prompt {
  font-size: 0.9375rem;
  color: #666;
  margin-top: 1rem;
}

/* Social Links */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: color 0.15s;
}

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

.social-link--instagram { color: #c13584; }
.social-link--facebook  { color: #1877f2; }
.social-link--youtube   { color: #ff0000; }
.social-link--tiktok    { color: #333; }
.social-link--snapchat  { color: #f7b731; }

/* Profile form social section */
.form-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.form-row-social label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---- Home page ---- */

.page-home {
  padding: 0;
  background: var(--bp-bg);
}

.home {
  display: grid;
  grid-template-columns: 11.875rem minmax(0, 36.25rem) 20rem;
  justify-content: center;
  align-items: start;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--bp-font);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--bp-ink);
}

.home a {
  color: inherit;
}

.home a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.home h1, .home h2 {
  margin: 0;
  color: inherit;
}

.home p {
  margin: 0;
  line-height: 1.4;
}

.bp-card {
  background: var(--bp-card);
  border: 0.0625rem solid var(--bp-line);
  border-radius: 1rem;
}

.bp-card-head {
  display: flex;
  align-items: baseline;
}

.bp-card-head h2 {
  font-size: 0.875rem;
  font-weight: 700;
}

.bp-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bp-avatar {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bp-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* Side rails: sticky, and scroll on their own when taller than the viewport */
.home-rail {
  position: sticky;
  top: calc(var(--bp-header-h) + 1.25rem);
  max-height: calc(100vh - var(--bp-header-h) - 1.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  box-sizing: border-box;
  padding-bottom: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.home-rail::-webkit-scrollbar {
  display: none;
}

.home-rail-left {
  gap: 1.375rem;
}

.home-rail-right {
  gap: 1rem;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.home .rail-nav a {
  padding: 0.625rem 0.75rem;
  color: var(--bp-muted);
  border: 0.0625rem solid transparent;
  border-radius: 0.625rem;
}

.home .rail-nav a.active {
  color: var(--bp-ink);
  background: var(--bp-card);
  border-color: var(--bp-line);
}

.home .rail-upload {
  color: #fff;
  font-weight: 700;
  padding: 0.6875rem 0.75rem;
}

.rail-makes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
}

.home .rail-makes-all {
  color: var(--bp-blue);
  font-weight: 600;
}

/* Centre column */
.home-feed {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.home-cards {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.home-voted {
  padding: 0.875rem 0.875rem 0.625rem;
}

.home-voted .bp-card-head {
  margin-bottom: 0.625rem;
}

.voted-strip {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 0.125rem;
}

.voted-strip::-webkit-scrollbar {
  display: none;
}

.voted-item {
  flex: none;
  width: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3125rem;
  text-align: center;
}

.voted-thumb {
  position: relative;
  display: block;
}

.voted-thumb img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bp-line);
  box-shadow: 0 0 0 0.125rem var(--bp-card), 0 0 0 0.25rem var(--bp-blue);
}

.voted-badge {
  position: absolute;
  bottom: -0.375rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bp-blue);
  color: #fff;
  border-radius: 999rem;
  padding: 0 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  border: 0.125rem solid var(--bp-card);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.voted-title {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-latest-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.125rem 0;
}

.home-latest-head h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  color: var(--bp-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.live-dot::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--bp-live);
}

/* Segmented control (Most liked: All time / This month) */
.bp-seg {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 0.0625rem solid var(--bp-line);
  border-radius: 0.5625rem;
  background: var(--bp-card);
  font-size: 0.8125rem;
  font-weight: 600;
}

.home .bp-seg a {
  padding: 0.25rem 0.625rem;
  border-radius: 0.4375rem;
  color: var(--bp-muted);
}

.home .bp-seg a.active {
  background: var(--bp-blue);
  color: #fff;
}

/* Latest ⇄ Most liked switch, only when the left rail is hidden */
.home .home-view-switch {
  display: none;
  margin-left: auto;
  color: var(--bp-blue);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* About */
.home-about {
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.625rem;
}

.home-about h1 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.home-about p {
  padding-top: 0.625rem;
  border-top: 0.0625rem solid var(--bp-line);
  color: var(--bp-muted);
}

.home-about strong {
  color: var(--bp-ink);
}

/* Photo of the Day */
.home-potd {
  overflow: hidden;
}

.potd-head {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.875rem;
}

.potd-eyebrow {
  color: var(--bp-blue);
  letter-spacing: 0.05em;
}

.potd-date {
  margin-left: auto;
  color: var(--bp-muted);
  font-size: 0.75rem;
}

.potd-img {
  display: block;
  background: var(--bp-line);
}

.potd-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.potd-body {
  padding: 0.75rem 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.home .potd-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.05;
}

.potd-meta {
  color: var(--bp-muted);
}

.home .potd-meta a {
  color: var(--bp-blue);
  font-weight: 600;
}

/* Top members (desktop list) */
.home-members {
  padding: 0.875rem;
}

.home-members .bp-card-head {
  margin-bottom: 0.375rem;
}

.members-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.3125rem 0;
}

.members-rank {
  width: 1rem;
  flex: none;
  color: var(--bp-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.members-row .bp-avatar {
  width: 1.875rem;
  height: 1.875rem;
}

.members-name {
  font-weight: 500;
  letter-spacing: 0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members-count {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  color: var(--bp-muted);
  font-size: 0.75rem;
}

.home-footer {
  color: var(--bp-muted);
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

/* Top members band (mobile, after the 3rd feed card) */
.members-band {
  display: none;
  padding: 0.875rem;
}

.members-band h2 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.members-band-strip {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.members-band-strip::-webkit-scrollbar {
  display: none;
}

.members-band-item {
  flex: none;
  width: 4.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.members-band-item .bp-avatar {
  width: 3.25rem;
  height: 3.25rem;
}

.members-band-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members-band-count {
  font-size: 0.6875rem;
  color: var(--bp-muted);
}

/* Single column below 1100px: the rails dissolve into the feed column and
   About + Photo of the Day slot in between Most voted and Latest uploads. */
@media (max-width: 1099px) {
  .home {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* the desktop grid's "start" would size cards to their content */
    gap: 0.5rem;
    max-width: 36.25rem;
    margin: 0 auto;
    padding: 0.75rem 0.75rem calc(var(--bp-tabbar-h) + env(safe-area-inset-bottom) + 0.5rem);
  }

  .home-rail-left, .home-members, .home-footer {
    display: none;
  }

  .home-feed, .home-rail-right {
    display: contents;
  }

  /* Flex items default to min-width: auto, which lets a carousel's row of slides widen the page. */
  .home-feed > *, .home-rail-right > *, .home-cards > * {
    min-width: 0;
  }

  .home .home-view-switch {
    display: inline;
  }

  .home-voted { order: 1; }
  .home-about { order: 2; }
  .home-potd { order: 3; }
  .home-latest-head { order: 4; padding: 0.625rem 0.875rem 0; }
  .home-cards { order: 5; gap: 0.5rem; }
  .feed-status { order: 6; }

  .members-band {
    display: block;
  }

  .home-potd {
    border-top: 0.1875rem solid var(--bp-blue);
  }

  .potd-head {
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
  }

  .home .potd-title {
    font-size: 1.5rem;
  }
}

/* Phones: cards go full-bleed with no border or radius */
@media (max-width: 639px) {
  .home {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
  }

  .home .bp-card, .home .post-card {
    border: 0;
    border-radius: 0;
  }

  .home .home-potd {
    border-top: 0.1875rem solid var(--bp-blue);
  }
}

/* ---- Feed page ---- */

.feed-page {
  display: flex;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Sidebar */
.feed-sidebar {
  width: 14rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem;
  position: sticky;
  top: 5rem;
}

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

.feed-sidebar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.feed-sidebar-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1;
  padding: 0.25rem;
}

.feed-filter-group {
  margin-bottom: 1rem;
}

.feed-filter-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.feed-filter-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #fff;
}

.feed-filter-apply {
  width: 100%;
  padding: 0.5rem;
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0.625rem;
}

.feed-filter-apply:hover {
  background: #374151;
}

.feed-filter-clear {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
  text-decoration: none;
}

.feed-filter-clear:hover {
  color: #374151;
}

/* Mobile filter toggle */
.feed-filter-toggle {
  display: none;
}

/* Sidebar overlay (mobile) */
.feed-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.feed-sidebar-overlay.open {
  display: block;
}

.feed-filter-badge {
  color: #ef4444;
  margin-left: 0.25rem;
  line-height: 1;
}

/* Main cards area */
.feed-main {
  flex: 1;
  min-width: 0;
}

/* Post card (feed + home) */
.post-card {
  background: var(--bp-card);
  border: 0.0625rem solid var(--bp-line);
  border-radius: 1rem;
  overflow: hidden;
  font-family: var(--bp-font);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--bp-ink);
}

.post-card a {
  color: inherit;
}

.post-card a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.post-card-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
}

.post-avatar {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bp-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
}

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

.post-card-who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.post-card-rider {
  font-weight: 700;
}

.post-card-bike {
  color: var(--bp-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-time {
  margin-left: auto;
  flex: none;
  color: var(--bp-muted);
  font-size: 0.75rem;
}

.post-card .feed-carousel-track {
  background: var(--bp-line);
}

.post-card-foot {
  padding: 0.625rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.post-card-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 600;
}

.post-card-views {
  margin-left: auto;
  color: var(--bp-muted);
  font-weight: 500;
  font-size: 0.8125rem;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 700;
}

.post-card-title span {
  color: var(--bp-muted);
  font-weight: 500;
}

.feed-cards {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* Carousel */
.feed-carousel {
  position: relative;
}

.feed-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-carousel-track::-webkit-scrollbar {
  display: none;
}

.feed-carousel-slide {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
  display: block;
}

.feed-slide-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.feed-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 0;
}

.feed-carousel:hover .feed-carousel-btn {
  opacity: 1;
}

.feed-carousel-prev {
  left: 0.5rem;
}

.feed-carousel-next {
  right: 0.5rem;
}

.feed-carousel-btn[hidden] {
  display: none;
}

@media (hover: none) {
  .feed-carousel-btn {
    display: none;
  }
}

.feed-carousel-count {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 999rem;
  padding: 0.1875rem 0.5625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  pointer-events: none;
}

.feed-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding-top: 0.5625rem;
}

.feed-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--bp-line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}

.feed-dot.active {
  background: var(--bp-blue);
}

/* Infinite scroll status */
.feed-status {
  text-align: center;
  padding: 0.625rem 0 1.875rem;
  color: var(--bp-muted);
  font-weight: 500;
  margin: 0;
}

/* Mobile */
@media (max-width: 700px) {
  .feed-page {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .feed-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
  }

  .feed-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 16rem;
    height: 100%;
    z-index: 1000;
    border-radius: 0;
    transition: left 0.25s ease;
    overflow-y: auto;
  }

  .feed-sidebar.open {
    left: 0;
  }

  .feed-sidebar-close {
    display: block;
  }

}
