/* ===== Base Reset & Variables ===== */
:root {
  --bg-primary: #F7F3EA;
  --bg-card: #FFFAF0;
  --bg-accent: #EFE5D0;
  --bg-nav: rgba(247, 243, 234, 0.82);
  --bg-nav-pill: rgba(255, 250, 240, 0.7);
  --color-primary: #143D35;
  --color-accent: #E86F3D;
  --color-text: #1C1914;
  --color-muted: #756D61;
  --color-light: #FFF8E8;
  --border-color: rgba(43, 35, 23, 0.12);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --shadow-card: 0px 1px 2px -1px rgba(0,0,0,0.1), 0px 1px 3px 0px rgba(0,0,0,0.1);
  --shadow-hero: 0px 25px 50px -12px rgba(20,61,53,0.05);
  --shadow-btn: 0px 4px 6px -4px rgba(20,61,53,0.2), 0px 10px 15px -3px rgba(20,61,53,0.2);
  --shadow-accent: 0px 4px 6px -4px rgba(232,111,61,0.2), 0px 10px 15px -3px rgba(232,111,61,0.2);
  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ===== Decorative Blobs ===== */
.blob-orange {
  position: fixed; top: -160px; left: -224px;
  width: 384px; height: 384px;
  background: rgba(232,111,61,0.2);
  filter: blur(128px);
  border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.blob-green {
  position: fixed; top: 96px; right: -200px;
  width: 512px; height: 512px;
  background: rgba(20,61,53,0.15);
  filter: blur(128px);
  border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.blob-gold {
  position: fixed; bottom: 100px; left: 40%;
  width: 288px; height: 288px;
  background: rgba(216,173,85,0.2);
  filter: blur(128px);
  border-radius: 50%;
  pointer-events: none; z-index: 0;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo {
  width: 44px; height: 44px;
  background: var(--color-primary);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-btn);
  font-size: 20px; color: var(--color-light);
}
.nav-brand-text h1 {
  font-size: 18px; font-weight: 700; line-height: 28px; color: var(--color-text);
}
.nav-brand-text p {
  font-size: 12px; font-weight: 500; line-height: 16px; color: var(--color-muted);
}
.nav-pills {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-nav-pill);
  border: 1px solid var(--border-color);
  border-radius: 999px; padding: 4px;
}
.nav-pill {
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 20px;
  color: var(--color-muted);
  transition: all 0.2s;
}
.nav-pill:hover { color: var(--color-text); }
.nav-pill.active {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: var(--shadow-card);
}
.nav-actions {
  display: flex; align-items: center; gap: 8px;
}
.btn-login {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 14px; font-weight: 500; color: var(--color-text);
}
.btn-lang {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 14px; font-weight: 500; color: var(--color-text);
  text-decoration: none;
}
.btn-publish-nav {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--color-accent); color: var(--bg-card);
  font-size: 14px; font-weight: 500; text-decoration: none;
  box-shadow: var(--shadow-accent);
  transition: filter 0.2s;
}
.btn-publish-nav:hover { filter: brightness(1.1); }
.btn-publish-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--color-accent);
  color: var(--bg-card);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-accent);
}
.btn-publish-nav svg { width: 20px; height: 20px; }

/* ===== Main Layout ===== */
.main-content {
  max-width: 1280px; margin: 0 auto;
  padding: 40px 32px;
  position: relative; z-index: 1;
}

/* ===== Hero Section ===== */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}
.hero-top-row {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.hero-left { max-width: 672px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-accent);
  padding: 4px 12px; border-radius: 999px;
  font-size: 14px; color: var(--color-primary);
}
.hero-badge svg { width: 16px; height: 16px; }
.hero-title {
  font-size: 60px; font-weight: 700; line-height: 75px;
  color: var(--color-text);
  padding: 20px 0 0;
  letter-spacing: -0.025em;
}
.hero-desc {
  font-size: 18px; line-height: 32px; color: var(--color-muted);
  padding: 14px 0 0;
  max-width: 576px;
}
.hero-buttons {
  display: flex; gap: 12px; padding: 28px 0 0; flex-wrap: wrap;
}
.btn-primary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-light);
  font-size: 16px; font-weight: 500; white-space: nowrap;
  box-shadow: var(--shadow-btn);
}
.btn-primary svg { width: 20px; height: 20px; }
.btn-secondary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: rgba(247,243,234,0.7);
  border: 1px solid var(--border-color);
  color: var(--color-text);
  font-size: 16px; font-weight: 500; white-space: nowrap;
}
.hero-no-login {
  position: absolute; top: 24px; right: 24px;
  background: rgba(247,243,234,0.7);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px; color: var(--color-muted);
}

/* ===== Category Filters ===== */
.category-bar {
  margin-top: 24px;
  background: rgba(255,250,240,0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-card);
}
.category-list {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.category-btn {
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--bg-accent);
  color: var(--color-muted);
  transition: all 0.2s;
}
.category-btn:hover { color: var(--color-text); }
.category-btn.active {
  background: var(--color-primary);
  color: var(--color-light);
}

/* ===== Content Layout ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 24px;
}

/* ===== Post Cards ===== */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.post-card-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.post-info { flex: 1; }
.post-tags {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.tag-category {
  padding: 4px 12px; border-radius: 999px;
  background: rgba(232,111,61,0.12);
  font-size: 12px; font-weight: 700; color: var(--color-accent);
}
.tag-hot {
  padding: 4px 12px; border-radius: 999px;
  background: var(--color-primary);
  font-size: 12px; color: var(--color-light);
}
.tag-anon {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--bg-accent);
  font-size: 12px; color: var(--color-muted);
}
.tag-anon svg { width: 12px; height: 12px; }
.post-title {
  font-size: 20px; font-weight: 700; line-height: 28px;
  color: var(--color-text); letter-spacing: -0.025em;
}
.post-meta {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px; font-size: 14px; color: var(--color-muted);
}
.post-meta-item {
  display: flex; align-items: center; gap: 4px;
}
.post-meta-item svg { width: 16px; height: 16px; }
.post-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.post-price {
  font-size: 20px; font-weight: 700; color: var(--color-primary);
}
.btn-view {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  font-size: 14px; font-weight: 500; color: var(--color-text);
}
.btn-view svg { width: 16px; height: 16px; }

/* ===== Sidebar ===== */
.sidebar {
  display: flex; flex-direction: column; gap: 16px;
}
.sidebar-card {
  background: var(--color-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0px 25px 50px -12px rgba(20,61,53,0.2);
  color: var(--color-light);
}
.sidebar-card-title {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.sidebar-card-title h2 {
  font-size: 20px; font-weight: 700; line-height: 28px;
}
.sidebar-card-title svg { width: 20px; height: 20px; opacity: 0.7; }
.sidebar-card p {
  font-size: 14px; line-height: 28px; color: rgba(255,248,232,0.75);
}
.sidebar-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 20px;
}
.stat-box {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat-value {
  font-size: 24px; font-weight: 700; color: var(--color-light);
}
.stat-label {
  font-size: 12px; color: rgba(255,248,232,0.65);
  margin-top: 4px;
}
.sidebar-areas {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-areas h3 {
  font-size: 18px; font-weight: 700; color: var(--color-text);
  margin-bottom: 12px;
}
.area-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg-accent);
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.area-item:hover {
  background: var(--bg-hover, rgba(255,152,0,0.08));
  border-color: var(--color-primary, #ff9800);
  transform: translateX(2px);
}
.area-item.active {
  background: var(--bg-hover, rgba(255,152,0,0.12));
  border-color: var(--color-primary, #ff9800);
}
.area-item.active .area-name {
  font-weight: 700;
  color: var(--color-primary, #ff9800);
}
.area-name {
  font-size: 16px; color: var(--color-text);
}
.area-count {
  font-size: 14px; color: var(--color-muted);
}

/* ===== Publish Page ===== */
.publish-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.publish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-hero);
}
.publish-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.publish-header-left h3 {
  font-size: 14px; font-weight: 700; color: var(--color-accent);
}
.publish-header-left h1 {
  font-size: 48px; font-weight: 700; line-height: 48px;
  color: var(--color-text); margin-top: 8px;
}
.publish-header-left p {
  font-size: 16px; color: var(--color-muted); margin-top: 12px;
}
.publish-icon-box {
  padding: 16px; background: var(--bg-accent);
  border-radius: var(--radius-sm);
}
.publish-icon-box svg { width: 24px; height: 24px; color: var(--color-muted); }
.publish-form {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 16px; font-weight: 500; color: var(--color-text);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 16px; color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-primary);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(28,25,20,0.5);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-checkbox-group {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--bg-accent);
  border-radius: var(--radius-sm);
}
.form-checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--color-primary);
}
.form-checkbox-group label {
  font-size: 14px; color: var(--color-muted); cursor: pointer;
}
.form-submit {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--bg-card);
  font-size: 16px; font-weight: 500;
  box-shadow: var(--shadow-accent);
  margin-top: 8px;
}
.form-submit svg { width: 20px; height: 20px; }
.form-actions {
  grid-column: 1 / -1;
  display: flex; gap: 12px; margin-top: 8px;
}
.form-actions .form-submit { grid-column: auto; margin-top: 0; }
.btn-danger {
  background: #dc3545 !important;
  box-shadow: 0 2px 8px rgba(220,53,69,0.3) !important;
}
.btn-danger:hover { filter: brightness(1.1); }
.form-title {
  font-size: 22px; font-weight: 700; margin: 0 0 20px; color: var(--color-text);
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.modal-header h3 {
  font-size: 18px; font-weight: 700; margin: 0;
}
.modal-desc {
  font-size: 14px; color: var(--color-muted); margin: 0 0 20px; line-height: 1.6;
}
.modal-field { margin-bottom: 20px; }
.modal-error {
  color: #dc3545; font-size: 13px; margin: 8px 0 0; display: none;
}
.modal-actions {
  display: flex; justify-content: flex-end; gap: 12px;
}
.modal-actions .form-submit {
  grid-column: auto; margin-top: 0; padding: 10px 20px; font-size: 14px;
}
.btn-generate-code {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--color-text); cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.btn-generate-code:hover {
  background: var(--color-accent); color: white; border-color: var(--color-accent);
}
.form-success {
  grid-column: 1 / -1;
  padding: 16px; background: rgba(232,111,61,0.1);
  border-radius: var(--radius-sm);
  color: var(--color-accent); font-weight: 500;
  text-align: center;
}

/* Publish Sidebar Info Boxes */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.info-box + .info-box { margin-top: 16px; }
.info-box-icon {
  width: 44px; height: 44px;
  background: var(--bg-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.info-box-icon svg { width: 24px; height: 24px; color: var(--color-muted); }
.info-box h3 {
  font-size: 18px; font-weight: 700; color: var(--color-text);
  margin-bottom: 8px;
}
.info-box p {
  font-size: 14px; line-height: 28px; color: var(--color-muted);
}

/* ===== Admin Page ===== */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.admin-sidebar {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--color-light);
  height: fit-content;
}
.admin-sidebar-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.admin-sidebar-header svg { width: 24px; height: 24px; }
.admin-sidebar-header h2 {
  font-size: 20px; font-weight: 700;
}
.admin-nav-item {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 16px; color: rgba(255,248,232,0.65);
  cursor: pointer; transition: all 0.2s;
  margin-bottom: 4px;
}
.admin-nav-item:hover { color: var(--color-light); }
.admin-nav-item.active {
  background: var(--color-accent);
  color: var(--bg-card);
  font-weight: 500;
}
.admin-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.admin-stat-card .label {
  font-size: 14px; color: var(--color-muted);
}
.admin-stat-card .value {
  font-size: 32px; font-weight: 700; color: var(--color-text);
  margin-top: 4px;
}
.admin-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.admin-review-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.admin-review-header h1 {
  font-size: 24px; font-weight: 700; color: var(--color-text);
}
.admin-review-actions {
  display: flex; gap: 8px;
}
.btn-filter {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-color);
  font-size: 14px; font-weight: 500; color: var(--color-text);
}
.btn-filter svg { width: 16px; height: 16px; }
.admin-review-item {
  padding: 16px; background: var(--bg-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.admin-review-item:last-child { margin-bottom: 0; }
.admin-review-item-top {
  display: flex; justify-content: space-between; align-items: center;
}
.admin-review-meta {
  font-size: 12px; color: var(--color-muted);
}
.admin-review-title {
  font-size: 18px; font-weight: 700; color: var(--color-text);
  margin-top: 4px;
}
.admin-review-btns {
  display: flex; gap: 8px;
}
.btn-approve {
  padding: 8px 16px; border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-light); font-size: 14px; font-weight: 500;
}
.btn-reject {
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-text); font-size: 14px; font-weight: 500;
}
.admin-toggle-detail {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--color-text); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.admin-toggle-detail:hover { background: var(--color-primary); color: var(--color-light); border-color: var(--color-primary); }
.admin-review-detail { padding-top: 16px; border-top: 1px solid var(--border-color); margin-top: 12px; }
.admin-detail-grid { display: flex; flex-direction: column; gap: 12px; }
.admin-detail-row { display: flex; gap: 24px; }
.admin-detail-row .admin-detail-field { flex: 1; }
.admin-detail-field { }
.admin-detail-field label {
  display: block; font-size: 12px; font-weight: 500; color: var(--color-muted);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-detail-field p { font-size: 14px; color: var(--color-text); margin: 0; line-height: 1.6; }
.admin-empty { color: var(--color-muted); font-style: italic; }
.admin-manage-code {
  background: var(--color-primary); color: var(--color-light);
  padding: 2px 8px; border-radius: 4px; font-size: 13px;
  font-family: 'Courier New', monospace; letter-spacing: 1px;
}
.admin-status-pending {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #FFF3CD; color: #856404; font-size: 12px; font-weight: 600;
}
.admin-tag-anon {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: #E8F5E9; color: #2E7D32; font-size: 11px; font-weight: 600;
  margin-left: 6px; vertical-align: middle;
}
.admin-review-time { margin-left: 8px; }
.btn-view-detail {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--color-text);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.btn-admin-delete {
  padding: 8px 16px; border-radius: 999px;
  background: #DC3545; color: #fff;
  border: 1px solid #DC3545;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.15s;
}
.btn-admin-delete:hover { background: #C82333; border-color: #C82333; }

/* ===== Load More Button (Homepage) ===== */
.btn-load-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--color-primary); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-load-more:hover {
  background: var(--bg-accent); border-color: var(--color-primary);
  transform: translateY(-1px); box-shadow: var(--shadow-card);
}
.btn-load-more svg { width: 18px; height: 18px; }

/* ===== List Page Layout ===== */
.list-layout {
  display: flex; gap: 24px; padding: 0 32px; max-width: 1280px; margin: 0 auto;
}
.list-sidebar {
  width: 280px; flex-shrink: 0;
}
.list-sidebar .sidebar-card {
  background: var(--bg-card);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}
.list-sidebar .sidebar-card-title h2 {
  color: var(--color-text);
}
.list-sidebar .sidebar-card-title svg {
  color: var(--color-muted);
}
.list-sidebar .sidebar-card p {
  color: var(--color-muted);
}
.list-sidebar .sidebar-card h3 {
  color: var(--color-text);
}
.list-main {
  flex: 1; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero); overflow: hidden;
}

/* List Header */
.list-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 24px; background: rgba(239,229,208,0.5);
  border-bottom: 1px solid var(--border-color);
}
.list-header-left { flex: 1; }
.list-badge {
  font-size: 14px; font-weight: 700; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.list-title {
  font-size: 48px; font-weight: 700; color: var(--color-text);
  line-height: 1; letter-spacing: -1px; margin: 0 0 8px;
}
.list-desc {
  font-size: 16px; color: var(--color-muted); margin: 0;
}
.list-header-btn {
  flex-shrink: 0; white-space: nowrap;
}

/* List Toolbar (search + filters) */
.list-toolbar {
  padding: 16px 24px; border-bottom: 1px solid var(--border-color);
  background: rgba(239,229,208,0.3);
}
.list-search-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.list-search-box svg { flex-shrink: 0; color: var(--color-muted); }
.list-search-box input[type="text"] {
  flex: 1; min-width: 200px; padding: 12px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-color);
  background: var(--bg-card); font-size: 16px; color: var(--color-text);
  font-family: 'Noto Sans SC', sans-serif; outline: none;
}
.list-search-box input[type="text"]:focus { border-color: var(--color-primary); }
.list-search-btn {
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--color-primary); color: var(--color-light);
  border: none; font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif; transition: opacity 0.15s;
}
.list-search-btn:hover { opacity: 0.9; }
.list-filter-group {
  display: flex; gap: 8px;
}
.list-filter-select {
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color); background: var(--bg-card);
  font-size: 14px; font-weight: 500; color: var(--color-text);
  cursor: pointer; font-family: 'Noto Sans SC', sans-serif;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23756D61' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}

/* Custom searchable select */
.custom-select-wrap {
  position: relative;
  min-width: 140px;
}
.custom-select-trigger {
  padding: 12px 36px 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color); background: var(--bg-card);
  font-size: 14px; font-weight: 500; color: var(--color-text);
  cursor: pointer; font-family: 'Noto Sans SC', sans-serif;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.custom-select-trigger svg {
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}
.custom-select-wrap.open .custom-select-trigger {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(20,61,53,0.1);
}
.custom-select-wrap.open .custom-select-trigger svg {
  transform: rotate(180deg);
}
.custom-select-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100; display: none; overflow: hidden;
}
.custom-select-wrap.open .custom-select-dropdown {
  display: block;
}
.custom-select-search {
  width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--border-color);
  font-size: 13px; font-family: 'Noto Sans SC', sans-serif;
  outline: none; background: var(--bg-accent);
  color: var(--color-text);
}
.custom-select-search::placeholder {
  color: var(--color-muted);
}
.custom-select-list {
  max-height: 240px; overflow-y: auto; padding: 4px 0;
}
.custom-select-list::-webkit-scrollbar { width: 6px; }
.custom-select-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.custom-select-list::-webkit-scrollbar-track { background: transparent; }
.custom-select-option {
  padding: 9px 14px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--color-text); transition: background 0.15s;
}
.custom-select-option:hover {
  background: var(--bg-accent);
}
.custom-select-option.selected {
  color: var(--color-primary); font-weight: 600;
}
.custom-select-option.selected::before {
  content: '✓'; margin-right: 6px; font-size: 12px;
}
.custom-select-count {
  font-size: 12px; color: var(--color-muted); font-weight: 400;
  background: var(--bg-accent); padding: 1px 8px; border-radius: 10px;
}
.custom-select-option.selected .custom-select-count {
  background: rgba(20,61,53,0.1);
  color: var(--color-primary);
}
.custom-select-empty {
  padding: 12px 14px; color: var(--color-muted); font-size: 13px; text-align: center;
}

/* Quick Filters */
.list-quick-filters {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--border-color);
}
.list-result-count {
  font-size: 14px; color: var(--color-muted);
}
.list-quick-btns {
  display: flex; gap: 8px;
}
.quick-filter-btn {
  padding: 6px 16px; border-radius: 999px;
  background: var(--bg-accent); border: none;
  font-size: 12px; font-weight: 500; color: var(--color-muted);
  cursor: pointer; transition: all 0.15s;
  font-family: 'Noto Sans SC', sans-serif;
}
.quick-filter-btn:hover { color: var(--color-text); }
.quick-filter-btn.active {
  background: var(--color-primary); color: var(--color-light);
}

/* List Posts */
.list-posts { padding: 0; }
.list-posts .post-card {
  border-radius: 0; border: none;
  border-bottom: 1px solid var(--border-color);
}
.list-posts .post-card:last-child { border-bottom: none; }
.list-posts .post-card-inner { padding: 20px 24px; }

/* Empty state */
.list-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px; color: var(--color-muted);
}
.list-empty svg { opacity: 0.3; margin-bottom: 16px; }
.list-empty p { font-size: 16px; }

/* Pagination */
.list-pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; border-top: 1px solid var(--border-color);
}
.page-btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--bg-accent); border: 1px solid var(--border-color);
  color: var(--color-text); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: all 0.15s;
}
.page-btn:hover { background: var(--color-primary); color: var(--color-light); }
.page-info { font-size: 14px; color: var(--color-muted); }

/* Sidebar Filter List */
.sidebar-filter-list {
  display: flex; flex-direction: column; gap: 0;
  padding-top: 16px;
}
.filter-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-accent); margin-bottom: 4px;
  color: var(--color-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: all 0.15s;
}
.filter-btn:hover { background: rgba(232,111,61,0.08); color: var(--color-text); }
.filter-btn.active {
  background: var(--color-primary); color: var(--color-light);
}

/* Responsive */
@media (max-width: 900px) {
  .list-layout { flex-direction: column; }
  .list-sidebar { width: 100%; }
  .list-title { font-size: 32px; }
}

/* ===== Login Page ===== */
.login-container {
  max-width: 920px;
  margin: 0 auto;
}
.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
.login-left {
  background: var(--color-primary);
  padding: 48px 40px;
  color: var(--color-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-left h1 {
  font-size: 40px; font-weight: 700; line-height: 48px;
  margin-bottom: 16px;
}
.login-left p {
  font-size: 16px; line-height: 28px;
  color: rgba(255,248,232,0.75);
  margin-bottom: 32px;
}
.btn-skip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  color: var(--color-light); font-size: 14px; font-weight: 500;
  transition: background 0.2s;
}
.btn-skip:hover { background: rgba(255,255,255,0.2); }
.btn-skip svg { width: 18px; height: 18px; }
.login-right {
  padding: 48px 40px;
  display: flex; flex-direction: column;
}
.login-tabs {
  display: flex; gap: 0;
  background: var(--bg-accent);
  border-radius: 20px;
  padding: 4px;
  margin-bottom: 32px;
}
.login-tab {
  flex: 1; padding: 10px 24px;
  border-radius: 16px;
  font-size: 16px; font-weight: 500;
  color: var(--color-muted);
  background: transparent;
  transition: all 0.2s;
  text-align: center;
}
.login-tab.active {
  background: var(--bg-card);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}
.login-form {
  display: flex; flex-direction: column; gap: 20px;
  flex: 1;
}
.login-form .form-group { margin-bottom: 0; }
.btn-login-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--bg-card);
  font-size: 16px; font-weight: 500;
  box-shadow: var(--shadow-accent);
  margin-top: auto;
}
.btn-login-submit svg { width: 20px; height: 20px; }
.forgot-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
.forgot-link:hover {
  color: #c2410c;
  text-decoration: underline;
}
.form-error {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(220,38,38,0.08);
  color: #dc2626; font-size: 14px;
  text-align: center;
}
/* Logged-in user dropdown */
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-accent);
  font-size: 14px; font-weight: 500; color: var(--color-text);
  cursor: pointer; position: relative;
}
.nav-user-avatar {
  width: 32px; height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.nav-user-menu {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hero);
  min-width: 160px;
  display: none; z-index: 200;
  overflow: hidden;
}
.nav-user:hover .nav-user-menu,
.nav-user-menu:hover { display: block; }
.nav-user-menu a {
  display: block; padding: 10px 16px;
  font-size: 14px; color: var(--color-text);
  transition: background 0.15s;
}
.nav-user-menu a:hover { background: var(--bg-accent); }
.nav-user-menu a.danger { color: #dc2626; }
.nav-admin-badge {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border-radius: 999px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}
.btn-logout {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
}
.btn-logout svg { width: 20px; height: 20px; }
.btn-logout:hover { background: rgba(220,38,38,0.1); color: #dc2626; }

/* ===== Verification Code ===== */
.code-input-group {
  display: flex; gap: 8px;
}
.code-input {
  flex: 1; min-width: 0;
}
.btn-send-code {
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-light);
  font-size: 14px; font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-send-code:hover:not(:disabled) {
  background: #1a4d42;
}
.btn-send-code:disabled {
  background: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.dev-code-hint {
  font-size: 12px;
  color: #16a34a;
  margin-top: 4px;
  animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Category Input Group ===== */
.category-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-input-group .form-select {
  flex: 1;
}
#customCategoryInput {
  border: 2px dashed var(--color-accent) !important;
  background: rgba(232, 111, 61, 0.04);
}

/* ===== Detail Page (Figma: node 9:2 - DetailPage) ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-card {
  background: var(--bg-card);
  border: 0.8px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}

.detail-card-header {
  background: rgba(239, 229, 208, 0.6);
  border-bottom: 0.8px solid var(--border-color);
  padding: 24px 32px;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--bg-card);
  border: 0.8px solid var(--border-color);
  border-radius: 999px;
  transition: all 0.2s;
}
.detail-back-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.detail-body {
  padding: 32px;
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag-anon-detail {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--bg-accent);
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-muted);
}

.detail-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
}
.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-muted);
}
.detail-meta-item svg {
  flex-shrink: 0;
}

/* Info Cards Row (Price / Identity / Status) */
.detail-info-row {
  display: flex;
  gap: 16px;
  padding-top: 32px;
  flex-wrap: wrap;
}
.detail-info-card {
  flex: 1;
  min-width: 200px;
  padding: 16px;
  background: var(--bg-accent);
  border-radius: var(--radius-sm);
}
.detail-info-label {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.detail-info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.detail-info-value.detail-price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}
.detail-info-value.detail-status-value {
  color: var(--color-primary);
}

/* Content Section */
.detail-content-card {
  margin-top: 32px;
  padding: 24px;
  background: rgba(247, 243, 234, 0.6);
  border: 0.8px solid var(--border-color);
  border-radius: 24px;
}
.detail-content-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--color-text);
  margin-bottom: 16px;
}
.detail-content-text {
  font-size: 16px;
  line-height: 32px;
  color: var(--color-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Contact Section */
.detail-contact-section {
  margin-top: 32px;
}
.detail-contact-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-accent);
  padding: 10px 16px;
  background: rgba(232, 111, 61, 0.06);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.detail-contact-toggle:hover {
  background: rgba(232, 111, 61, 0.12);
}
.contact-arrow {
  margin-left: auto;
  transition: transform 0.3s;
}
.detail-contact-value {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-accent);
  border-radius: var(--radius-sm);
}
.contact-text {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}
.btn-copy {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-accent);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-copy:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Action Buttons */
.detail-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  align-items: stretch;
}
.detail-btn-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--bg-card);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-accent);
  flex: 1;
}
.detail-btn-contact:hover {
  filter: brightness(1.1);
}
.detail-btn-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--bg-primary);
  border: 0.8px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.detail-btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.detail-btn-report {
  color: var(--color-muted);
}
.detail-btn-report:hover {
  color: #dc3545;
  border-color: #dc3545;
}

/* ===== Detail Sidebar ===== */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-sidebar-card {
  border: 0.8px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* Safety Card (dark theme, per Figma) */
.sidebar-safety-card {
  background: var(--color-primary);
  border-color: rgba(43, 35, 23, 0.12);
  color: var(--color-light);
}
.sidebar-safety-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 16px;
}
.sidebar-safety-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-safety-item {
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 248, 232, 0.75);
  padding: 12px 0 0;
}
.sidebar-safety-item:first-child {
  padding-top: 0;
}

/* Related Posts Card */
.sidebar-related-card {
  background: var(--bg-card);
}
.sidebar-related-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  color: var(--color-text);
  margin-bottom: 16px;
}
.sidebar-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-related-item {
  display: block;
  padding: 16px;
  background: var(--bg-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  transition: all 0.2s;
}
.sidebar-related-item + .sidebar-related-item {
  margin-top: 8px;
}
.sidebar-related-item:hover {
  background: rgba(232, 111, 61, 0.1);
}
.sidebar-related-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.sidebar-related-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .content-layout, .publish-layout, .admin-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .hero-title { font-size: 40px; line-height: 50px; }
  .navbar-inner { padding: 12px 16px; }
  .main-content { padding: 24px 16px; }
  .detail-title { font-size: 32px; line-height: 42px; }
  .detail-info-row { flex-direction: column; }
}
@media (max-width: 640px) {
  .detail-body { padding: 20px; }
  .detail-card-header { padding: 16px 20px; }
  .detail-title { font-size: 24px; line-height: 32px; }
  .detail-meta { gap: 10px; }
  .detail-actions { flex-direction: column; }
}

/* ===== Friend Links / 友情链接 ===== */
.friend-links-section {
  margin-top: 40px;
  padding: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.friend-links-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}
.friend-links-title svg { color: var(--color-accent); }
.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.friend-link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.friend-link-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.friend-link-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
}
.friend-link-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.friend-link-fallback {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Site Footer ===== */
.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
}
.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--color-accent); }
.footer-links { display: flex; justify-content: center; gap: 16px; }

@media (max-width: 640px) {
  .friend-links-section { padding: 16px; margin-top: 24px; }
  .friend-link-item { padding: 6px 12px; font-size: 12px; }
}
