/* ==========================================================================
   THOATE.VN - MODERN DATING PLATFORM DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #0b0f19;
  --bg-surface: #131926;
  --bg-surface-elevated: #1a2235;
  --bg-card: rgba(22, 30, 48, 0.85);
  
  --primary-gradient: linear-gradient(135deg, #ff4370 0%, #a855f7 100%);
  --primary-color: #ff4370;
  --primary-hover: #ff2b5e;
  --primary-glow: rgba(255, 67, 112, 0.35);

  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-pink: #ec4899;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 67, 112, 0.3);

  --font-heading: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, sans-serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px var(--primary-glow);

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(255, 67, 112, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Glow */
body::before {
  content: '';
  position: fixed;
  top: -100px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 67, 112, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

body.light-theme .app-header {
  background: rgba(255, 255, 255, 0.9);
}

.header-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heart-pulse {
  font-size: 1.8rem;
  animation: pulseHeart 2s infinite ease-in-out;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-domain {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stats-pills {
  display: flex;
  gap: 8px;
}

.stats-pills .pill {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.stats-pills .pill.female strong { color: var(--primary-color); }
.stats-pills .pill.male strong { color: var(--accent-blue); }
.stats-pills .pill.unknown strong { color: #f59e0b; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 67, 112, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--border-highlight);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: var(--bg-surface);
  border-color: var(--border-highlight);
}

.mobile-filter-btn {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 48px 24px 36px;
  text-align: center;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 67, 112, 0.12);
  color: var(--primary-color);
  border: 1px solid rgba(255, 67, 112, 0.25);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  margin-bottom: 20px;
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 67, 112, 0.25);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 50%;
  transition: var(--transition-smooth);
  margin-right: 4px;
}

.search-clear-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.search-btn {
  border-radius: var(--radius-full);
  padding: 10px 24px;
}

/* Quick Chips */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip:hover, .chip.active {
  background: var(--bg-surface-elevated);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN LAYOUT & SIDEBAR
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 315px 1fr 310px;
  gap: 28px;
  padding-bottom: 60px;
  z-index: 1;
  flex: 1;
  align-items: start;
}

/* Filter Sidebar (Thiết kế thoáng đẹp, sang trọng, vừa vặn màn hình desktop) */
.filter-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-reset {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.btn-reset:hover {
  text-decoration: underline;
  background: rgba(255, 67, 112, 0.08);
}

.close-drawer-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Gender Segmented Control */
.gender-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seg-btn {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 60px;
  padding: 8px 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

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

.seg-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 67, 112, 0.25);
}

/* Form Controls */
.form-select, .form-input, .form-textarea {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 67, 112, 0.2);
}

/* Compact Filter Group cho Độ Tuổi & Năm Sinh */
.filter-group.compact {
  margin-bottom: 16px;
}

.filter-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.filter-header-inline .filter-label {
  margin-bottom: 0;
  line-height: 1;
}

.age-inputs-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}

.age-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Khung nhập tuổi & năm sinh rộng rãi, nhìn rõ ràng 4 chữ số */
.form-input-mini {
  padding: 5px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
  -moz-appearance: textfield;
}

.form-input-mini::-webkit-outer-spin-button,
.form-input-mini::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-input-mini.form-input-age {
  width: 64px;
}

.form-input-mini.form-input-year {
  width: 80px;
}

.form-input-mini:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px rgba(255, 67, 112, 0.35);
}

.compact-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.preset-pill {
  padding: 6px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.preset-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.preset-pill.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 67, 112, 0.3);
}

.checkbox-group {
  margin-top: 10px;
  margin-bottom: 4px;
}

/* Nút Áp Dụng Bộ Lọc */
.filter-apply-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-apply-filter {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-apply-filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 67, 112, 0.45);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   PROFILES SECTION & TOOLBAR
   ========================================================================== */
.profiles-section {
  display: flex;
  flex-direction: column;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.results-count span {
  font-weight: 700;
  color: var(--primary-color);
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sort-select {
  width: auto;
  padding: 6px 12px;
}

/* Profiles Grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ==========================================================================
   PROFILE CARD COMPONENT
   ========================================================================== */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  backdrop-filter: blur(12px);
}

.profile-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 67, 112, 0.15);
}

/* Image Container */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.8;
  overflow: hidden;
  background: #182234;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 67, 112, 0.18) 0%, rgba(99, 102, 241, 0.22) 100%);
  color: var(--text-main);
  text-align: center;
  padding: 20px;
}

.avatar-letter-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #ec4899);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(255, 67, 112, 0.4);
}

.no-image-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
  text-align: center;
  margin-bottom: 16px;
}

.detail-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.detail-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.detail-thumb:hover, .detail-thumb.active {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.profile-card:hover .card-img {
  transform: scale(1.05);
}

/* Badges on Image */
.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tag.gender-nu {
  background: rgba(255, 67, 112, 0.88);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 67, 112, 0.4);
}

.badge-tag.gender-nam {
  background: rgba(59, 130, 246, 0.88);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.badge-tag.gender-lgbt {
  background: rgba(168, 85, 247, 0.88);
  color: #ffffff;
}

.badge-tag.unknown {
  background: rgba(100, 116, 139, 0.88);
  color: #ffffff;
}

.btn-like {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-like:hover, .btn-like.liked {
  background: rgba(255, 67, 112, 0.85);
  border-color: transparent;
  transform: scale(1.08);
}

.card-badges-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-meta {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

/* Card Body */
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-author-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-author-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-headline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.card-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.info-pill {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.info-pill.marital {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.25);
}

.info-pill.goal {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.info-pill.income {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

.info-pill.height-weight {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.card-partner-income-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.04));
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.3;
}

.card-partner-income-notice strong {
  color: var(--accent-amber);
}

/* Card Actions */
.card-footer {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.card-footer .btn-detail {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.card-footer .btn-fb {
  padding: 8px 12px;
  font-size: 0.88rem;
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
  border: 1px solid rgba(24, 119, 242, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.card-footer .btn-fb:hover {
  background: #1877f2;
  color: #ffffff;
}

/* ==========================================================================
   MODAL COMPONENT (<dialog>)
   ========================================================================== */
.app-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.app-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow-y: auto;
  max-height: 88vh;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: transparent;
}

/* Profile Detail Modal Content */
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.verified-icon {
  font-size: 1.1rem;
  color: #3b82f6;
}

.detail-headline-box {
  background: rgba(255, 67, 112, 0.08);
  border-left: 4px solid var(--primary-color);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-main);
  font-size: 0.98rem;
}

/* Fields Table */
.fields-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-surface-elevated);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.field-item {
  display: flex;
  flex-direction: column;
}

.field-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.field-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.field-val.unknown {
  color: var(--text-muted);
  font-style: italic;
}

/* Tóm Tắt Bản Thân Người Đăng (2-3 câu súc tích, ấn tượng) */
.detail-bio-summary-box {
  background: linear-gradient(135deg, rgba(255, 67, 112, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
  border: 1px solid rgba(255, 67, 112, 0.22);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-summary-header h4 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.bio-summary-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
}

/* Section Box */
.section-box {
  background: var(--bg-surface-elevated);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.section-box h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.partner-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.partner-criteria-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: var(--transition-smooth);
}

.partner-criteria-item.full-width {
  grid-column: 1 / -1;
}

.partner-field-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.partner-field-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.partner-field-value.is-none {
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}

.partner-field-value.has-info {
  color: var(--primary-color);
  font-weight: 700;
}

.partner-field-value.has-info.income-val {
  color: #10b981;
}

.partner-field-value.has-info.danger-val {
  color: #f87171;
}

/* Raw Facebook Box */
.fb-raw-box {
  background: rgba(24, 119, 242, 0.06);
  border: 1px solid rgba(24, 119, 242, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
}

.fb-raw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.fb-raw-header strong {
  color: #1877f2;
  font-size: 0.9rem;
}

.fb-raw-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: pre-line;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Comments Section */
.comments-section {
  margin-top: 10px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.comment-bubble {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comment-meta strong {
  color: var(--primary-color);
}

.comment-text {
  font-size: 0.88rem;
  color: var(--text-main);
}

.comment-form {
  display: flex;
  gap: 8px;
}

.comment-form input {
  flex: 1;
}

/* Ingest Modal */
.ingest-modal {
  max-width: 600px;
}

.ingest-header {
  text-align: center;
  margin-bottom: 20px;
}

.sparkle-icon {
  font-size: 2rem;
}

.ingest-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-top: 6px;
}

.ingest-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ingest-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   LOADING & EMPTY STATES
   ========================================================================== */
.loading-state, .empty-state {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 67, 112, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-btn.active, .page-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: transparent;
}

/* Footer */
.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.footer-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.85rem;
}

/* ==========================================================================
   GROUPS SIDEBAR (RIGHT COLUMN)
   ========================================================================== */
.groups-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.groups-sidebar-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.groups-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.groups-title-row h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.group-live-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.groups-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.groups-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-card-loading {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

.group-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition-smooth);
}

.group-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.group-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.group-title-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.group-uid-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.72rem;
  width: fit-content;
}

.uid-tag {
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.uid-code {
  color: #93c5fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.group-fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.group-fb-badge:hover {
  background: #1877f2;
  color: #ffffff;
}

.group-meta-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.group-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-meta-item span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   RESPONSIVE DESIGN (3-COLUMN BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1280px) {
  .main-layout {
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }
  .groups-sidebar {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 900px) {
  .mobile-filter-btn {
    display: inline-flex;
  }
  .stats-pills {
    display: none;
  }
  .main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Slide-in Mobile Drawer for Filters */
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    border-radius: 0;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

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

  .close-drawer-btn {
    display: block;
  }

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

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

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

/* ==========================================================================
   TOP NAVIGATION TABS (Hồ Sơ Hẹn Hò | Góc Tâm Sự | Góc Cảnh Báo)
   ========================================================================== */
.main-top-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

body.light-theme .main-top-tabs {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.top-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  position: relative;
}

.top-nav-tab .tab-icon {
  font-size: 1.05rem;
  transition: transform 0.25s ease;
}

.top-nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

body.light-theme .top-nav-tab:hover {
  background: rgba(0, 0, 0, 0.06);
}

.top-nav-tab:hover .tab-icon {
  transform: scale(1.15);
}

/* Hiển thị Tab Đang Chọn Cực Kỳ Nổi Bật & Rõ Ràng */
.top-nav-tab.active {
  color: #ffffff !important;
  font-weight: 700;
  transform: translateY(-1px);
}

/* Tab 1: Hồ Sơ Hẹn Hò (Gradient Hồng Nữ Tính / Tình Yêu) */
.top-nav-tab[data-category="dating"].active,
.top-nav-tab#tabDating.active {
  background: linear-gradient(135deg, #ff4370 0%, #e11d48 100%);
  box-shadow: 0 4px 18px rgba(255, 67, 112, 0.5);
}

/* Tab 2: Góc Tâm Sự (Gradient Tím Mộng Mơ / Trầm Ấm) */
.top-nav-tab[data-category="confession"].active,
.top-nav-tab#tabConfession.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.5);
}

/* Tab 3: Góc Cảnh Báo (Gradient Đỏ Cảnh Giác / Shield) */
.top-nav-tab[data-category="blacklist"].active,
.top-nav-tab#tabBlacklist.active,
.top-nav-tab.alert-tab.active {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.55);
}

.top-nav-tab.active .tab-icon {
  transform: scale(1.12);
}

/* ==========================================================================
   DETAIL GALLERY: 1 Ảnh Lớn + Cột Ảnh Nhỏ Bên Cạnh Phải
   ========================================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
}

.detail-gallery-container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.detail-main-img-box {
  flex: 1;
  position: relative;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000000;
}

.detail-main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.detail-main-img-box:hover .detail-main-img {
  transform: scale(1.03);
}

.zoom-hint-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.detail-thumbs-vertical {
  width: 76px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 2px;
}

.detail-thumb-item {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  opacity: 0.7;
}

.detail-thumb-item:hover, .detail-thumb-item.active {
  border-color: var(--primary-color);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 67, 112, 0.4);
}

/* Action buttons */
.btn-disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(80%);
}

.btn-fb-post {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  width: 100%;
}

.btn-fb-post:hover {
  background: #0284c7;
  color: #ffffff;
}

/* ==========================================================================
   LIGHTBOX MODAL (Xem ảnh kích thước thật)
   ========================================================================== */
.lightbox-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
  box-shadow: none;
}

.lightbox-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.lightbox-dialog-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-image-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: block;
}

.lightbox-close-btn {
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   LOGS MODAL (Nhật ký quét)
   ========================================================================== */
.logs-modal .modal-dialog-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.logs-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.logs-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-main);
  margin: 0;
}

.logs-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.logs-table-wrap {
  max-height: 55vh;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.logs-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 2;
}

.logs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.logs-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.log-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.log-status-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.log-status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.log-status-badge.skipped {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.log-cat-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

/* Category Card Badges */
.card-badges-top .badge-cat {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-cat.confession {
  background: rgba(168, 85, 247, 0.9);
  color: #ffffff;
}

.badge-cat.blacklist {
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  animation: pulseHeart 2s infinite ease-in-out;
}

.blacklist-notice-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fca5a5;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

