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

:root {
  --pink: #D4537E;
  --pink-light: #fbeaf0;
  --pink-text: #7a2444;
  --text-primary: #1a1a18;
  --text-secondary: #5a5a55;
  --text-muted: #9a9a94;
  --surface-0: #f5f4f0;
  --surface-1: #eeede9;
  --surface-2: #ffffff;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--surface-0);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.hero h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.heart { color: var(--pink); }
.hero p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 6px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font);
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--pink);
}
.tab:hover:not(.active) { color: var(--text-secondary); }

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-light);
  color: var(--pink-text);
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 5px;
}

/* Panel */
.panel { display: none; }
.panel.active { display: block; }

/* Search */
.search-bar { margin-bottom: 1.25rem; }
.search-bar input { width: 100%; }

/* Form elements */
input[type="text"],
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(212,83,126,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { min-height: 90px; resize: vertical; }

/* Cards */
.cards { display: grid; gap: 12px; }
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-name { font-weight: 600; font-size: 16px; }
.card-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.overall { text-align: right; }
.overall-score { font-size: 24px; font-weight: 600; color: var(--pink); line-height: 1; }
.overall-label { font-size: 11px; color: var(--text-muted); }

/* Rating bars */
.bars { display: grid; gap: 7px; }
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.bar-label { color: var(--text-secondary); min-width: 135px; }
.bar-track {
  flex: 1;
  background: var(--surface-1);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--pink);
  transition: width 0.4s ease;
}
.bar-score {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 28px;
  text-align: right;
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  line-height: 1.65;
  font-style: italic;
}
.role-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.role-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.role-btn:hover { border-color: var(--pink); color: var(--pink); }
.role-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 9px;
  margin-top: 4px;
  margin-right: 4px;
}
.role-badge.role-top    { background: #e6f1fb; color: #0c447c; }
.role-badge.role-bottom { background: #fbeaf0; color: #72243e; }
.role-badge.role-switch { background: #e1f5ee; color: #085041; }
.role-badge.role-unknown { background: var(--surface-1); color: var(--text-muted); }

.role-badge.role-primary {
  font-size: 13px;
  padding: 4px 14px;
}

.role-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin-top: 3px;
  padding: 4px 0;
  list-style: none;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.autocomplete-list li {
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.autocomplete-list li:hover,
.autocomplete-list li.active {
  background: var(--surface-1);
}
.autocomplete-list .ac-count {
  font-size: 11px;
  color: var(--pink);
  background: var(--pink-light);
  border-radius: 20px;
  padding: 1px 8px;
  white-space: nowrap;
}

.reviews-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
  transition: background 0.15s;
}
.reviews-toggle:hover { background: var(--surface-0); }
.reviews-toggle .chevron { transition: transform 0.2s ease; flex-shrink: 0; }

.reviews-list { margin-top: 8px; }

.review-item {
  border-top: 1px solid var(--border);
  padding: 10px 0 6px;
}
.review-item:first-child { border-top: none; padding-top: 4px; }

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--pink); color: var(--pink); }
.filter-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.delete-btn {
  margin-left: auto;
  background: none;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.delete-btn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.review-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.review-score {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-light);
  border-radius: 20px;
  padding: 1px 9px;
}
.review-duration {
  font-size: 12px;
  color: var(--text-muted);
}
.review-quote {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-top: 2px;
}

.anon-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 10px;
}
.anon-tag svg { flex-shrink: 0; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.optional { color: var(--text-muted); font-weight: 400; }
.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Star ratings */
.cat-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}

.star-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 1.25rem;
}
.star-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.stars { display: flex; gap: 5px; }
.star {
  font-size: 22px;
  cursor: pointer;
  color: var(--border-strong);
  transition: color 0.1s, transform 0.1s;
  user-select: none;
  line-height: 1;
}
.star.lit { color: var(--pink); }
.star.active { color: var(--pink); }
.star:hover { transform: scale(1.15); }

/* Anonymous notice */
.anon-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--pink-light);
  color: var(--pink-text);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 1.5rem;
}

/* Submit */
.submit-caution {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}

.submit-btn {
  width: 100%;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.15s, transform 0.1s;
}
.submit-btn:hover { opacity: 0.88; }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Error */
.form-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 1rem;
}

/* Loading / empty */
.loading, .empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 3rem 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-primary);
  color: var(--surface-2);
  font-size: 13px;
  font-family: var(--font);
  padding: 10px 22px;
  border-radius: 24px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 999;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .star-grid { grid-template-columns: 1fr; }
  .bar-label { min-width: 110px; }
}

/* ── Screens ── */
.screen { display: none; overflow: hidden; }
.screen.active { display: block; }
#screen-cover { position: fixed; inset: 0; z-index: 999; overflow-y: auto; }

/* ── Auth ── */
.auth-wrap {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font);
}
.auth-tab.active { color: var(--text-primary); border-bottom-color: var(--pink); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.form-success {
  background: #e1f5ee;
  color: #085041;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 1rem;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1rem;
}
.topbar-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.signout-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.signout-btn:hover { border-color: var(--pink); color: var(--pink); }

/* ── Auth Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-box {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.75rem;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--text-primary); }
.topbar-actions { display: flex; gap: 8px; }

/* ── Language toggle ── */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.lang-btn.active {
  background: var(--text-primary);
  color: var(--surface-2);
}
.lang-btn:not(.active):hover { color: var(--text-primary); }

/* ── Few reviews warning ── */
.few-reviews-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: default;
  margin-left: 5px;
  position: relative;
  vertical-align: middle;
  line-height: 1;
  flex-shrink: 0;
}
.few-reviews-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a18;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  text-align: center;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.few-reviews-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a18;
}
.few-reviews-icon:hover .few-reviews-tooltip,
.few-reviews-icon:focus .few-reviews-tooltip {
  display: block;
}

/* ── Own review delete button (softer than admin) ── */
.delete-btn-own {
  border-color: #d1d5db;
  color: var(--text-muted);
}
.delete-btn-own:hover {
  background: var(--surface-1);
  border-color: #dc2626;
  color: #dc2626;
}

/* ── Replies ── */
.reply-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.reply-toggle {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reply-toggle:hover { color: var(--pink); }
.reply-content { margin-top: 8px; }
.reply-bubble {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.reply-bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.reply-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}
.reply-form { display: flex; flex-direction: column; gap: 8px; }
.reply-input {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  resize: vertical;
  min-height: 60px;
  outline: none;
}
.reply-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,83,126,0.12); }
.reply-submit-btn {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.reply-submit-btn:hover { border-color: var(--pink); color: var(--pink); }
.reply-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.reply-delete-btn {
  background: none;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.reply-delete-btn:hover { background: #dc2626; color: #fff; }
.reply-login-prompt {
  font-size: 13px;
  color: var(--pink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Info icon ── */
.info-icon-wrap {
  position: relative;
}
.info-icon-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  padding: 0;
}
.info-icon-btn:hover { border-color: var(--pink); color: var(--pink); }
.info-tooltip {
  position: fixed;
  top: 56px;
  right: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: min(260px, calc(100vw - 24px));
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1000;
}
.info-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 10px;
  border: 6px solid transparent;
  border-bottom-color: var(--border-strong);
}
.info-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 11px;
  border: 5px solid transparent;
  border-bottom-color: var(--surface-2);
}
.info-tooltip a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
}
.info-tooltip a:hover { text-decoration: underline; }

/* ── Info icon ── */
.info-icon-wrap {
  position: relative;
}
.info-icon-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  padding: 0;
}
.info-icon-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.info-tooltip {
  position: fixed;
  top: 56px;
  right: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: min(260px, calc(100vw - 24px));
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1000;
}
.info-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 10px;
  border: 6px solid transparent;
  border-bottom-color: var(--border-strong);
}
.info-tooltip::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 1px);
  right: 11px;
  border: 5px solid transparent;
  border-bottom-color: var(--surface-2);
}
.info-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--pink);
  font-weight: 500;
  text-decoration: none;
}
.info-link:hover { text-decoration: underline; }

/* ── Thumbs up/down ── */
.review-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.thumbs-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}
.thumbs-btn {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.thumbs-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.thumbs-count { font-size: 12px; font-weight: 500; }
.thumbs-active-up {
  background: #e6f1fb;
  border-color: #3b82f6;
  color: #1d4ed8;
}
.thumbs-active-down {
  background: #fef2f2;
  border-color: #f87171;
  color: #dc2626;
}
.reply-section { margin-top: 0; padding-top: 0; border-top: none; }

/* ── Community Board ── */
.board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
}
.board-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.board-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}
.new-post-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.new-post-btn:hover { opacity: 0.88; }

.post-form-wrap {
  margin-bottom: 1.25rem;
}
.post-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.post-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.post-type-btn {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  text-align: center;
}
.post-type-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.post-form-actions { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.post-form-actions .submit-btn { width: auto; padding: 10px 28px; }

.board-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.posts-list { display: grid; gap: 12px; }
.post-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 10px;
}
.post-badge-looking { background: #e6f1fb; color: #0c447c; }
.post-badge-event   { background: #f0fdf4; color: #166534; }
.post-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.post-date {
  font-size: 12px;
  color: var(--text-muted);
}
.post-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-wrap;
}
.post-contact {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.post-contact-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.post-location {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ── Pinned posts ── */
.post-card-pinned {
  border-color: #f59e0b;
  background: linear-gradient(to bottom, rgba(245,158,11,0.04), var(--surface-2));
}
.pinned-badge {
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  border-radius: 20px;
  padding: 2px 9px;
}
.post-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pin-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  white-space: nowrap;
}
.pin-btn:hover { border-color: #f59e0b; color: #92400e; }
.pin-btn-active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.board-caution {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fef9ec;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

}

/* ── Resources ── */
.resources-list { display: grid; gap: 12px; }
.resource-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.resource-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.resource-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.resource-title {
  display: block;
  font-size: 13px;
  color: var(--pink);
  text-decoration: none;
  word-break: break-all;
  margin-bottom: 2px;
  font-weight: 500;
}
.resource-title:hover { text-decoration: underline; }
.resource-domain {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.resource-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 6px;
}
.resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.res-like-btn {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.res-like-btn:hover { border-color: #3b82f6; color: #1d4ed8; }
.res-like-active {
  background: #e6f1fb;
  border-color: #3b82f6;
  color: #1d4ed8;
}
.res-visit-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--pink);
  text-decoration: none;
}
.res-visit-btn:hover { text-decoration: underline; }

.post-badge-wisdom { background: #f5f3ff; color: #5b21b6; }

.browse-caution {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--pink-light);
  color: var(--pink-text);
  border: 1px solid rgba(212,83,126,0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* ── Post Comments ── */
.post-comments-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.post-comments-content { margin-top: 8px; }
.post-comments-list { display: grid; gap: 8px; margin-bottom: 10px; }
.post-comment-item {
  background: var(--surface-1);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.post-comment-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.post-comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.post-comment-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.post-comment-delete {
  margin-left: auto;
  background: none;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.post-comment-delete:hover { background: #dc2626; color: #fff; }
.post-comment-empty {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}
.post-comment-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.post-comment-name-input {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 7px 10px;
  outline: none;
}
.post-comment-name-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,83,126,0.12); }
.post-comment-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 7px 10px;
  resize: vertical;
  min-height: 60px;
  outline: none;
}
.post-comment-textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,83,126,0.12); }
.post-comment-form .reply-submit-btn { align-self: flex-end; }

/* ── Translate button ── */
.translate-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  margin-top: 3px;
  transition: color 0.15s;
}
.translate-btn:hover { color: var(--pink); }
.translate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Played together ── */
.played-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.played-btn {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  text-align: center;
}
.played-btn:hover { border-color: var(--pink); color: var(--pink); }
.played-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* ── Verified badge ── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: default;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 2px;
}
.verified-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a18;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  text-align: center;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: normal;
}
.verified-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a18;
}
/* tooltip shown via JS onclick */

/* ── Tags ── */
.tags-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tags-loading { font-size: 13px; color: var(--text-muted); }
.tag-option {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-secondary);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-option:hover { border-color: var(--pink); color: var(--pink); }
.tag-option.tag-selected {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.tag-delete-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}
.tag-delete-btn:hover { opacity: 1; }
.admin-add-tag {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.admin-add-tag input { flex: 1; font-size: 13px; }

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.group-tags { margin-bottom: 4px; }
.review-tag {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.tag-option.tag-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-style: dashed;
}

/* ── Tag reorder (admin) ── */
.tag-reorder-list { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.tag-reorder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 2px 4px;
}
.tag-arrow-group { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.tag-arrow-btn {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 22px;
  height: 18px;
  font-size: 9px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.1s;
  line-height: 1;
}
.tag-arrow-btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.tag-arrow-disabled { opacity: 0.25; cursor: not-allowed; }

.post-badge-feedback { background: #fef2f2; color: #991b1b; }

/* ── Cover page ── */
.cover-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5dde6 0%, #fdf0f4 40%, #fdf5ef 70%, #f5e8df 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.cover-heart {
  font-size: 52px;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.cover-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.cover-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.cover-lang {
  display: flex;
  gap: 6px;
  margin-bottom: 1.75rem;
}
.cover-lang-btn {
  background: var(--surface-2);
  border: 1px solid rgba(212,83,126,0.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pink);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.cover-lang-btn.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.cover-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(212,83,126,0.15);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  max-width: 460px;
  width: 100%;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

}
.cover-msg {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: left;
  margin: 0;
}
.cover-enter-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.cover-enter-btn:hover { opacity: 0.88; }
.cover-enter-btn:active { transform: scale(0.97); }

/* ── Cover heart ── */
.cover-heart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}
.cover-heart-btn {
  background: none;
  border: none;
  font-size: 56px;
  color: var(--pink);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.15s, color 0.15s;
  user-select: none;
}
.cover-heart-btn:hover { transform: scale(1.12); }
.cover-heart-btn.cover-heart-liked { color: #c0305a; }
.cover-heart-btn.cover-heart-pop {
  animation: heart-pop 0.4s ease;
}
@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.cover-heart-count {
  font-size: 13px;
  color: var(--pink);
  font-weight: 500;
  min-height: 18px;
  transition: opacity 0.2s;
}

/* ── Resource location ── */
.resource-location-filter {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.25rem;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.resource-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.resource-loc-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.res-edit-loc-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
  line-height: 1;
}
.res-edit-loc-btn:hover { color: var(--pink); }

/* ── Resource edit form ── */
.res-edit-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.res-edit-btn:hover { border-color: var(--pink); color: var(--pink); }
.res-edit-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res-edit-input {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 7px 10px;
  outline: none;
}
.res-edit-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,83,126,0.12); }
.res-edit-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 7px 10px;
  min-height: 70px;
  resize: vertical;
  outline: none;
}
.res-edit-textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,83,126,0.12); }
.res-edit-actions { display: flex; gap: 8px; align-items: center; }

/* ── Past reviews chips ── */
.past-reviews-wrap {
  margin-bottom: 1.25rem;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.past-reviews-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.past-reviews-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.past-review-chip {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.past-review-chip:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-light);
}

.past-review-toggle {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--pink);
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.past-review-toggle:hover { opacity: 0.8; }

/* ── Flag reviews ── */
.review-item-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.flag-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: all 0.15s;
  line-height: 1;
}
.flag-btn:hover { opacity: 1; color: #dc2626; }
.flagged-indicator {
  font-size: 11px;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 20px;
  padding: 2px 8px;
  cursor: pointer;
  font-weight: 500;
}
.flag-reason-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Hidden reviews ── */
.review-item-hidden {
  opacity: 0.7;
}
.review-item-hidden-admin {
  border-left: 3px solid #f59e0b;
  padding-left: 10px;
}
.hidden-placeholder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #fef9ec;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  font-size: 13px;
  color: #92400e;
}

}
.hidden-icon { font-size: 14px; }
.hidden-note {
  font-size: 12px;
  color: #78350f;
  border-top: 1px solid #fcd34d;
  padding-top: 6px;
  margin-top: 2px;
  font-style: italic;
}
.hidden-admin-badge {
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  border-radius: 20px;
  padding: 2px 9px;
  margin-right: 4px;
}
.hide-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  margin-right: 4px;
}
.hide-btn:hover { border-color: #f59e0b; color: #92400e; }
.hide-btn-active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

/* ── Flag button inline ── */
.flag-btn-inline {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.4;
  padding: 0 2px;
  transition: all 0.15s;
  line-height: 1;
  flex-shrink: 0;
}
.flag-btn-inline:hover { opacity: 1; color: #dc2626; }
.review-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.review-item-top-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.review-item-top-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Verified popup (global) ── */
.verified-popup {
  position: absolute;
  background: #1a1a18;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: none;
}
.verified-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a18;
}

/* ── Cover tagline ── */
.cover-divider {
  width: 40px;
  height: 1px;
  background: rgba(212,83,126,0.3);
  margin: 12px auto;
}
.cover-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 0.25rem;
}
.cover-tagline-en {
  font-size: 13px;
  color: #5a3a44;
  font-style: italic;
}
.cover-tagline-zh {
  font-size: 12px;
  color: #8a6070;
}

/* ── Directory (placeholder profiles) ── */
.directory-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-top: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
}
.directory-toggle:hover { background: var(--surface-0); }
.dir-toggle-icon { font-size: 10px; color: var(--text-muted); }
.directory-cards { margin-top: 8px; }
.profile-cards { display: grid; gap: 10px; }
.profile-card {
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  opacity: 0.85;
}
.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.profile-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-no-reviews {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.nudge-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nudge-btn:hover { border-color: var(--pink); color: var(--pink); }
.nudge-count {
  font-size: 11px;
  font-weight: 600;
  background: var(--pink-light);
  color: var(--pink-text);
  border-radius: 20px;
  padding: 1px 7px;
}
.add-to-dir-form {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.add-to-dir-form input { flex: 1; min-width: 150px; }

/* ── Admin flags button badge ── */
.flags-btn-active {
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}
.flags-btn-active:hover {
  background: #fee2e2 !important;
}
.flags-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 6px;
  margin-left: 4px;
  line-height: 1.4;
}

/* ── Flag done ── */
.flag-done-btn {
  background: none;
  border: 1px solid #86efac;
  color: #16a34a;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  white-space: nowrap;
}
.flag-done-btn:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.flag-done-badge {
  font-size: 11px;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 2px 8px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Unified flag action buttons ── */
.flag-action-btn {
  font-size: 11px !important;
  padding: 4px 10px !important;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

/* ── Site footer ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3rem;
  padding: 14px 0 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.site-footer-text {
  font-size: 13px;
  color: var(--text-muted);
}
.bmc-footer-btn {
  background: #FFDD00;
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  display: inline-block;
}
.bmc-footer-btn:hover { opacity: 0.85; }

/* ── Cover coffee icon ── */
.cover-coffee-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.45;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
  z-index: 10;
}
.cover-coffee-btn:hover { opacity: 0.9; }
.cover-coffee-popover {
  position: absolute;
  top: 36px;
  right: 10px;
  background: #fff;
  border: 1px solid rgba(212,83,126,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #3a1a28;
  line-height: 1.6;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  max-width: 220px;
  z-index: 20;
  text-align: left;
}
.cover-coffee-link {
  display: block;
  margin-top: 6px;
  color: #D4537E;
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
}
.cover-coffee-link:hover { text-decoration: underline; }
.cover-page { position: relative; }

/* ── Cover feedback icon ── */
.cover-feedback-btn {
  position: absolute;
  top: 14px;
  right: 38px;
  font-size: 14px;
  opacity: 0.45;
  line-height: 1;
  transition: opacity 0.15s;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.cover-feedback-btn:hover { opacity: 0.9; }

/* ── Tag filter ── */
.review-tag-clickable {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.review-tag-clickable:hover {
  background: var(--pink-light);
  color: var(--pink-text);
  border-color: rgba(212,83,126,0.3);
}
.tag-filter-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--pink-light);
  border: 1px solid rgba(212,83,126,0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--pink-text);
  margin-bottom: 10px;
}
.tag-filter-clear {
  background: none;
  border: 1px solid rgba(212,83,126,0.3);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--pink-text);
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: all 0.15s;
}
.tag-filter-clear:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ── Hidden profile card ── */
.hidden-profile-card {
  opacity: 0.6;
}

/* ── Community guidelines link ── */
.cover-guidelines-link {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.7;
  padding: 0;
  margin-bottom: 12px;
  transition: opacity 0.15s;
}
.cover-guidelines-link:hover { opacity: 1; }

/* ── Rate Me ── */
.opt-in-profile-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 14px;
}
.opt-in-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.opt-in-bio {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}
.opt-in-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.opt-in-review-item {
  background: var(--surface-1);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.opt-in-response {
  background: var(--pink-light);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 8px 10px;
  margin-top: 8px;
  font-size: 13px;
}
.my-profile-card {
  background: var(--pink-light);
  border: 1px solid rgba(212,83,126,0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 16px;
}
.my-profile-empty {
  background: var(--surface-1);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 16px;
  text-align: center;
}
.rate-others-disabled {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}
.rate-others-disabled p { margin: 4px 0; }

/* ── Tabs on mobile ── */
@media (max-width: 480px) {
  .tab { font-size: 12px; }
}
@media (max-width: 360px) {
  .tab { font-size: 11px; }
}
