/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0821;
  --surface: #1a1230;
  --surface2: #231847;
  --border: #2e2050;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dim: #4c1d95;
  --pink: #ec4899;
  --pink-light: #f9a8d4;
  --text: #f1f0ff;
  --text-muted: #9b8ec4;
  --text-dim: #6b5fa6;
  --success: #10b981;
  --error: #ef4444;
  --warn: #f59e0b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
}

html { font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== STARS BACKGROUND ===== */
.stars-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at top, #1a0a3e 0%, #0d0821 60%);
  overflow: hidden;
}
.stars-bg::before, .stars-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255,255,255,0.6) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
.stars-bg::after { animation-delay: 2s; animation-duration: 6s; opacity: 0.6; }

@keyframes twinkle {
  from { opacity: 0.7; } to { opacity: 1; }
}

/* ===== NAV ===== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,8,33,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  height: 58px;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem; color: var(--text);
  text-decoration: none;
}
.logo-text { background: linear-gradient(90deg, var(--purple-light), var(--pink-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-star { animation: float 3s ease-in-out infinite; display: inline-block; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem; margin-left: auto;
}

.nav-link {
  padding: 0.4rem 0.75rem; border-radius: var(--radius);
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); text-decoration: none; }

.nav-notif { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 4px;
  background: var(--pink); color: white;
  font-size: 0.65rem; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.nav-user {
  position: relative; display: flex; align-items: center;
  border-radius: var(--radius);
}

.nav-dropdown-toggle {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 0.8rem; padding: 0.25rem 0.4rem; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s; line-height: 1;
}
.nav-dropdown-toggle:hover, .nav-user.open .nav-dropdown-toggle {
  color: var(--text); background: var(--surface);
}

.nav-avatar-link {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--purple);
}
.nav-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-dim); color: white; font-weight: 700; font-size: 0.85rem;
}
.nav-username { font-size: 0.85rem; font-weight: 700; color: var(--text); }

.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem;
  min-width: 160px; box-shadow: var(--shadow);
  flex-direction: column; gap: 0.25rem;
}
.nav-user.open .nav-dropdown { display: flex; }
.nav-dropdown a, .dropdown-logout {
  display: block; padding: 0.5rem 0.75rem; border-radius: 8px;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: color 0.15s, background 0.15s;
  background: none; border: none; cursor: pointer; font-family: inherit; width: 100%; text-align: left;
}
.nav-dropdown a:hover, .dropdown-logout:hover { color: var(--text); background: var(--surface2); }

.nav-hamburger {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.3rem; cursor: pointer; padding: 0.4rem; margin-left: auto;
}

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-logout {
  padding: 0.75rem 1rem; border-radius: var(--radius); color: var(--text-muted);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit;
  text-align: left; transition: color 0.15s, background 0.15s;
}
.mobile-menu a:hover, .mobile-logout:hover { color: var(--text); background: var(--surface2); }

@media (max-width: 640px) {
  .nav-links, .nav-user { display: none; }
  .nav-hamburger { display: block; }
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem;
}

/* ===== FLASH MESSAGES ===== */
.flash {
  padding: 0.875rem 1rem; border-radius: var(--radius); margin-bottom: 1rem;
  font-weight: 700; font-size: 0.95rem;
}
.flash-error { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.flash-success { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.25rem; border-radius: var(--radius);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.15s; text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white; box-shadow: 0 2px 12px rgba(124,58,237,0.4);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(124,58,237,0.6); }

.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--purple); }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-group label, .form-label { font-weight: 700; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select,
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.6rem 0.875rem;
  color: var(--text); font-family: 'Nunito', sans-serif; font-size: 0.95rem;
  transition: border-color 0.15s; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b8ec4' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }

.form-error { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.form-success { background: rgba(16,185,129,0.1); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.form-hint { font-size: 0.8rem; color: var(--text-dim); }
.form-hint-inline { font-size: 0.8rem; color: var(--text-dim); font-weight: 400; }
.required { color: var(--pink); }

.checkbox-label {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-bottom: 1rem;
}
.checkbox-label input { width: auto; min-width: 16px; margin-top: 3px; accent-color: var(--purple); }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: calc(100vh - 58px); display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; position: relative; z-index: 1;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  width: 100%; max-width: 420px; box-shadow: var(--shadow);
}
.auth-logo { font-family: 'Fredoka One', cursive; font-size: 1.4rem; text-align: center; margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--purple-light), var(--pink-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-title { font-family: 'Fredoka One', cursive; font-size: 1.8rem; text-align: center; margin-bottom: 0.25rem; }
.auth-sub { text-align: center; color: var(--text-muted); margin-bottom: 1.75rem; font-size: 0.95rem; }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-switch { text-align: center; margin-top: 1.25rem; color: var(--text-muted); font-size: 0.9rem; }

/* ===== ONBOARDING ===== */
.onboarding-page {
  min-height: calc(100vh - 58px); display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; position: relative; z-index: 1;
}
.onboarding-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  width: 100%; max-width: 480px; box-shadow: var(--shadow);
}
.onboarding-wide { max-width: 720px; }
.onboarding-emoji { font-size: 3rem; text-align: center; margin-bottom: 0.5rem; }
.onboarding-title { font-family: 'Fredoka One', cursive; font-size: 1.9rem; text-align: center; margin-bottom: 0.5rem; }
.onboarding-lead { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }
.onboarding-step { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }

.promise-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.promise-list li { padding: 0.75rem 1rem; background: var(--surface2); border-radius: var(--radius); font-weight: 600; }
.promise-rules { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.promise-rules h2 { font-size: 1rem; margin-bottom: 0.35rem; }
.promise-rules p { font-size: 0.9rem; color: var(--text-muted); }

.interest-grid { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.interest-cat-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); margin-bottom: 0.5rem; }
.interest-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest-pill { display: flex; cursor: pointer; }
.interest-pill input { display: none; }
.interest-pill span {
  padding: 0.4rem 0.875rem; border-radius: 999px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.875rem; font-weight: 700;
  transition: all 0.15s;
}
.interest-pill:hover span { border-color: var(--purple); color: var(--text); }
.interest-pill.selected span { background: rgba(124,58,237,0.2); border-color: var(--purple); color: var(--purple-light); }

.intent-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.intent-option { display: flex; cursor: pointer; }
.intent-option input { display: none; }
.intent-option span {
  flex: 1; padding: 0.6rem 0.75rem; border-radius: var(--radius);
  background: var(--surface2); border: 1px solid var(--border);
  font-weight: 700; font-size: 0.875rem; text-align: center;
  transition: all 0.15s;
}
.intent-option input:checked + span { background: rgba(124,58,237,0.2); border-color: var(--purple); color: var(--purple-light); }

.group-suggestion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.group-suggestion-card { display: flex; cursor: pointer; position: relative; }
.group-check { display: none; }
.group-sug-inner {
  flex: 1; padding: 0.875rem; border-radius: var(--radius);
  background: var(--surface2); border: 2px solid var(--border);
  transition: all 0.15s;
}
.group-check:checked ~ .group-sug-inner { border-color: var(--purple); background: rgba(124,58,237,0.15); }
.group-sug-name { font-weight: 800; margin-bottom: 0.3rem; }
.group-sug-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.group-sug-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-dim); }
.match-badge { background: rgba(124,58,237,0.2); color: var(--purple-light); padding: 0.15rem 0.5rem; border-radius: 999px; font-weight: 700; }
.group-sug-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  background: var(--purple); color: white; border-radius: 50%;
  display: none; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
}
.group-check:checked ~ .group-sug-check { display: flex; }
/* ===== FEED LAYOUT ===== */
.feed-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
.feed-greeting h1 { font-family: 'Fredoka One', cursive; font-size: 1.6rem; margin-bottom: 1rem; }

.post-feed { display: flex; flex-direction: column; gap: 1rem; }

.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--purple-dim); }

.post-header {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.875rem;
}
.post-author { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.post-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); flex-shrink: 0;
}
.post-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-dim); color: white; font-weight: 700; font-size: 0.9rem;
}
.post-display-name { font-weight: 800; color: var(--text); font-size: 0.95rem; display: block; }
.post-username { font-size: 0.8rem; color: var(--text-muted); display: block; }
.post-group-badge {
  margin-left: auto; background: rgba(124,58,237,0.15); color: var(--purple-light);
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  text-decoration: none;
}
.post-group-badge:hover { background: rgba(124,58,237,0.3); }
.post-time { font-size: 0.78rem; color: var(--text-dim); margin-left: auto; }
.post-body { color: var(--text); line-height: 1.65; white-space: pre-wrap; word-break: break-word; margin-bottom: 0.875rem; }
.post-actions { display: flex; gap: 0.5rem; }
.post-action-btn {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-dim); font-size: 0.8rem; font-weight: 700; cursor: pointer;
  padding: 0.3rem 0.6rem; font-family: inherit; transition: all 0.15s;
}
.post-action-btn:hover { color: var(--text-muted); border-color: var(--text-muted); }
.delete-btn:hover { color: #fca5a5; border-color: rgba(239,68,68,0.5); }

/* ===== SIDEBAR ===== */
.feed-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 74px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.sidebar-card h3 { font-family: 'Fredoka One', cursive; font-size: 1rem; margin-bottom: 0.875rem; }
.sidebar-profile-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }
.sidebar-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; }
.sidebar-display { font-weight: 800; }
.sidebar-username { font-size: 0.8rem; color: var(--text-muted); }

/* ===== GROUPS ===== */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.page-header h1 { font-family: 'Fredoka One', cursive; font-size: 1.6rem; }

.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-input { flex: 1; }
.search-select { width: auto; flex-shrink: 0; }

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.group-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; text-decoration: none; transition: border-color 0.15s, transform 0.15s;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.group-card:hover { border-color: var(--purple); transform: translateY(-2px); text-decoration: none; }
.group-card-name { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.group-card-desc { font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.group-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; font-size: 0.8rem; color: var(--text-dim); }

.group-category-badge {
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize;
}
.group-cat-littlespace { background: rgba(124,58,237,0.2); color: var(--purple-light); }
.group-cat-ageplay { background: rgba(236,72,153,0.2); color: var(--pink-light); }
.group-cat-lifestyle { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.group-cat-creative { background: rgba(245,158,11,0.2); color: #fcd34d; }
.group-cat-social { background: rgba(59,130,246,0.2); color: #93c5fd; }
.group-cat-support { background: rgba(20,184,166,0.2); color: #5eead4; }
.group-cat-general { background: var(--surface2); color: var(--text-muted); }

/* ===== GROUP PAGE ===== */
.group-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
.group-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.group-title { font-family: 'Fredoka One', cursive; font-size: 1.7rem; margin-bottom: 0.5rem; }
.group-desc { color: var(--text-muted); margin: 0.5rem 0; }
.group-meta-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.875rem; font-size: 0.9rem; color: var(--text-muted); }
.member-badge { background: rgba(16,185,129,0.15); color: #6ee7b7; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }

.group-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 74px; }
.group-rules-text { font-size: 0.875rem; color: var(--text-muted); white-space: pre-wrap; }

.post-compose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; }
.compose-textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; color: var(--text); font-family: 'Nunito', sans-serif; font-size: 0.95rem; resize: none; }
.compose-textarea:focus { outline: none; border-color: var(--purple); }
.compose-footer { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.compose-audience { width: auto; flex-shrink: 0; font-size: 0.85rem; }
.compose-counter { margin-left: auto; font-size: 0.8rem; color: var(--text-dim); }

.member-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.member-item {}
.member-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; padding: 0.3rem; border-radius: 8px; transition: background 0.15s; }
.member-link:hover { background: var(--surface2); }
.member-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.member-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 0.75rem; }
.member-display { font-size: 0.875rem; font-weight: 700; }
.member-role { font-size: 0.72rem; font-weight: 700; text-transform: capitalize; margin-top: 1px; }
.member-role-owner { color: #fcd34d; }
.member-role-moderator { color: var(--purple-light); }
.member-more { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.5rem; }

/* ===== PROFILE ===== */
.profile-layout { max-width: 700px; margin: 0 auto; }
.profile-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--purple); flex-shrink: 0; }
.profile-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 1.75rem; }
.profile-info { flex: 1; min-width: 180px; }
.profile-display { font-family: 'Fredoka One', cursive; font-size: 1.5rem; margin-bottom: 0.2rem; }
.profile-username { color: var(--text-muted); margin-bottom: 0.5rem; }
.profile-bio { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.profile-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-dim); }
.profile-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-left: auto; }
.btn-inline-link { background: none; border: none; color: var(--purple-light); cursor: pointer; font-family: inherit; font-size: inherit; font-weight: 700; padding: 0; text-decoration: underline; }
.btn-inline-link:hover { color: var(--text); }

.blocked-notice { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; color: #fca5a5; font-weight: 600; }

/* ===== SETTINGS ===== */
.form-page { max-width: 600px; margin: 0 auto; }
.form-page h1 { font-family: 'Fredoka One', cursive; font-size: 1.6rem; margin-bottom: 1.5rem; }
.settings-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.settings-section h2 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-muted); }
.avatar-upload-area { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.settings-avatar-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }
.settings-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 1.4rem; }

/* ===== SAFETY ===== */
.user-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.user-list-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: var(--radius); background: var(--surface2); }
.user-list-link { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; flex: 1; }
.user-list-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.user-list-avatar-ph { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 0.85rem; }
.user-list-display { font-weight: 700; font-size: 0.9rem; }
.user-list-username { font-size: 0.78rem; color: var(--text-muted); }
.empty-text { color: var(--text-dim); font-style: italic; }

/* ===== NOTIFICATIONS ===== */
.notif-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.notif-item { display: flex; align-items: flex-start; gap: 0.875rem; padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.notif-unread { border-color: var(--purple-dim); background: rgba(124,58,237,0.08); }
.notif-icon { font-size: 1.25rem; flex-shrink: 0; }
.notif-body { flex: 1; }
.notif-text { font-weight: 600; margin-bottom: 0.25rem; }
.notif-time { font-size: 0.78rem; color: var(--text-dim); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); flex-shrink: 0; margin-top: 6px; }

/* ===== MOD QUEUE ===== */
.mod-layout { max-width: 900px; }
.mod-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.mod-header h1 { font-family: 'Fredoka One', cursive; font-size: 1.6rem; }
.open-badge { background: var(--warn); color: #000; padding: 0.2rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 800; }
.mod-filters { margin-bottom: 1.25rem; }
.filter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-form select { width: auto; }

.report-list { display: flex; flex-direction: column; gap: 0.5rem; }
.report-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text); transition: border-color 0.15s;
}
.report-row:hover { border-color: var(--purple); text-decoration: none; }

.report-row-sev { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; text-transform: capitalize; width: 80px; flex-shrink: 0; }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sev-dot-critical { background: #ef4444; }
.sev-dot-high { background: #f97316; }
.sev-dot-standard { background: #f59e0b; }
.sev-dot-low { background: #10b981; }

.report-row-main { flex: 1; }
.report-row-cat { font-weight: 800; text-transform: capitalize; }
.report-row-target { font-size: 0.85rem; color: var(--text-muted); }
.report-row-reporter { font-size: 0.78rem; color: var(--text-dim); }
.report-row-time { font-size: 0.8rem; color: var(--text-dim); }
.report-row-arrow { color: var(--text-dim); }

/* ===== MOD CASE ===== */
.mod-case-header { margin-bottom: 1.25rem; }
.mod-case-header h1 { font-family: 'Fredoka One', cursive; font-size: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.sev-badge { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize; }
.sev-badge-critical { background: rgba(239,68,68,0.2); color: #fca5a5; }
.sev-badge-high { background: rgba(249,115,22,0.2); color: #fdba74; }
.sev-badge-standard { background: rgba(245,158,11,0.2); color: #fcd34d; }
.sev-badge-low { background: rgba(16,185,129,0.2); color: #6ee7b7; }

.case-status { font-size: 0.8rem; font-weight: 700; text-transform: capitalize; }
.case-status-open { color: #fcd34d; }
.case-status-resolved { color: #6ee7b7; }
.case-status-dismissed { color: var(--text-dim); }

.case-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.25rem; align-items: start; }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem; }
.case-card h2 { font-size: 1rem; font-weight: 800; margin-bottom: 0.875rem; }
.case-sidebar { display: flex; flex-direction: column; gap: 0; position: sticky; top: 74px; }
.snapshot-note { font-size: 0.75rem; color: var(--text-dim); font-weight: 400; }

.case-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.9rem; }
.case-dl dt { color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.case-dl dd { color: var(--text); }
.case-details { white-space: pre-wrap; font-style: italic; color: var(--text-muted); }

.evidence-content { background: var(--surface2); border-radius: var(--radius); padding: 0.875rem; margin-bottom: 0.75rem; white-space: pre-wrap; font-size: 0.9rem; }
.evidence-meta { font-size: 0.85rem; color: var(--text-muted); }

.action-log { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.action-item { padding: 0.875rem; border-radius: var(--radius); background: var(--surface2); border-left: 3px solid var(--border); }
.action-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; font-size: 0.875rem; }
.action-type { background: var(--purple-dim); color: var(--purple-light); padding: 0.15rem 0.5rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; text-transform: capitalize; }
.action-time { margin-left: auto; font-size: 0.78rem; color: var(--text-dim); }
.action-note { font-size: 0.875rem; color: var(--text-muted); font-style: italic; margin-top: 0.25rem; }
.action-ref { font-size: 0.78rem; color: var(--purple-light); text-decoration: none; margin-left: 0.25rem; }
.action-ref:hover { text-decoration: underline; }
.action-form { display: flex; flex-direction: column; gap: 0; }

/* ===== SAFETY PANEL (group sidebar) ===== */
.safety-panel { background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.25); border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 1rem; }
.safety-panel-title { font-weight: 800; font-size: 0.875rem; color: var(--purple-light); margin-bottom: 0.75rem; }
.safety-action { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.875rem; font-weight: 600; padding: 0.4rem 0; text-decoration: none; cursor: pointer; transition: color 0.15s; border: none; background: none; width: 100%; text-align: left; }
.safety-action:hover { color: var(--text); text-decoration: none; }
.safety-icon { font-size: 1rem; }
.mod-escalation-note { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
.mod-escalation-note .report-btn.link-style { display: inline; background: none; border: none; padding: 0; color: var(--purple-light); font-size: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.mod-escalation-note .report-btn.link-style:hover { color: var(--text); }

/* ===== AUDIT NOTE (mod case) ===== */
.actions-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 0.75rem; flex-wrap: wrap; }
.actions-top h2 { margin-bottom: 0 !important; }
.audit-note { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-dim); font-weight: 600; }
.audit-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 6px #ef4444; animation: pulse-dot 1.4s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.audit-line { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-dim); margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }

/* ===== REPORT MODAL ===== */
.report-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13,8,33,0.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.report-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0;
  width: 100%; max-width: 480px; max-height: 92vh;
  overflow-y: auto; box-shadow: var(--shadow);
}
.report-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.report-modal-title { font-family: 'Fredoka One', cursive; font-size: 1.2rem; color: var(--text); }
.report-modal-close { background: none; border: none; color: var(--text-dim); font-size: 1.1rem; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: var(--radius); transition: background 0.15s; }
.report-modal-close:hover { background: var(--surface2); color: var(--text); }

/* Step indicator */
.step-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.5rem; }
.step-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: all 0.2s; flex-shrink: 0; }
.step-dot.active { background: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.25); }
.step-dot.done { background: var(--purple-light); }
.step-label { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; margin-left: 0.25rem; }

/* Step panels */
.step-panel { display: none; padding: 0 1.5rem 1.5rem; }
.step-panel.active { display: block; }
.step-header { padding-top: 0.25rem; margin-bottom: 1rem; }
.step-header h2 { font-family: 'Fredoka One', cursive; font-size: 1.2rem; margin-bottom: 0.35rem; }
.step-header p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.optional-label { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); background: var(--surface2); padding: 0.2rem 0.5rem; border-radius: 20px; vertical-align: middle; margin-left: 0.35rem; }

/* Report type grid */
.report-type-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.report-type-card { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface2); cursor: pointer; transition: all 0.15s; }
.report-type-card:hover { border-color: var(--purple); }
.report-type-card.selected { border-color: var(--purple); background: rgba(124,58,237,0.12); }
.report-type-card.mod-card { border-style: dashed; }
.rtc-icon { font-size: 1.4rem; flex-shrink: 0; width: 2rem; text-align: center; }
.rtc-text { flex: 1; min-width: 0; }
.rtc-text h4 { font-size: 0.9rem; font-weight: 800; margin: 0 0 0.15rem; }
.rtc-text p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.rtc-arrow { color: var(--text-dim); font-size: 1.3rem; flex-shrink: 0; }

/* Category list */
.category-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.category-opt { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface2); cursor: pointer; transition: all 0.15s; }
.category-opt:hover { border-color: var(--purple); }
.category-opt.selected { border-color: var(--purple); background: rgba(124,58,237,0.12); }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); margin-top: 0.2rem; flex-shrink: 0; transition: all 0.15s; }
.category-opt.selected .cat-dot { border-color: var(--purple); background: var(--purple); }
.cat-label { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.cat-sublabel { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Outcome list */
.outcome-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.outcome-opt { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface2); cursor: pointer; transition: all 0.15s; user-select: none; }
.outcome-opt input[type="checkbox"] { display: none; }
.outcome-opt:hover { border-color: var(--purple); }
.outcome-opt.selected { border-color: var(--purple); background: rgba(124,58,237,0.12); }
.outcome-opt.welfare-opt { border-color: rgba(16,185,129,0.3); }
.outcome-opt.welfare-opt.selected { border-color: #10b981; background: rgba(16,185,129,0.12); }
.out-box { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border); flex-shrink: 0; margin-top: 0.15rem; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.outcome-opt.selected .out-box { border-color: var(--purple); background: var(--purple); }
.outcome-opt.selected .out-box::after { content: '✓'; color: #fff; font-size: 0.7rem; font-weight: 900; }
.outcome-opt.welfare-opt.selected .out-box { border-color: #10b981; background: #10b981; }
.out-label { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.out-sublabel { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Welfare notice */
.welfare-notice { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; }
.welfare-notice span { font-size: 1.2rem; flex-shrink: 0; }
.welfare-notice p { margin: 0; color: var(--text-muted); line-height: 1.5; }

/* Mod notice */
.mod-notice { padding: 0.875rem 1rem; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius); margin-bottom: 1rem; }
.mod-notice-title { font-weight: 800; font-size: 0.875rem; color: #fca5a5; margin-bottom: 0.35rem; }
.mod-notice p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* Step nav */
.step-nav { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.5rem; }
.btn-back { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 0.55rem 1rem; border-radius: var(--radius); font-family: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.btn-back:hover { border-color: var(--text-muted); color: var(--text); }
.btn-next { background: var(--purple); color: #fff; border: none; padding: 0.55rem 1.25rem; border-radius: var(--radius); font-family: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: background 0.15s; margin-left: auto; }
.btn-next:hover { background: var(--purple-hover, #6d28d9); }
.btn-next.submit { background: #10b981; }
.btn-next.submit:hover { background: #059669; }
.btn-skip { background: none; border: none; color: var(--text-dim); cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.75rem; border-radius: var(--radius); transition: color 0.15s; }
.btn-skip:hover { color: var(--text-muted); }

/* Field wrap */
.field-wrap { margin-bottom: 1rem; }
.field-textarea { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 0.9rem; padding: 0.75rem; resize: vertical; transition: border-color 0.15s; box-sizing: border-box; }
.field-textarea:focus { outline: none; border-color: var(--purple); }
.field-textarea::placeholder { color: var(--text-dim); }

/* Confirmation step */
.confirmation { text-align: center; padding: 1.5rem 0 0.5rem; }
.confirm-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.confirmation h2 { font-family: 'Fredoka One', cursive; font-size: 1.4rem; margin-bottom: 0.5rem; }
.confirmation > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.confirm-ref { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 1rem; display: inline-block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.confirm-ref strong { color: var(--purple-light); }
.next-steps { text-align: left; background: var(--surface2); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.5rem; }
.next-steps h3 { font-size: 0.875rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.next-step-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.6rem; }
.next-step-row:last-child { margin-bottom: 0; }
.nsr-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.nsr-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.modal-buttons { display: flex; gap: 0.75rem; margin-top: 1rem; }

/* ===== ERROR PAGE ===== */
.error-page { text-align: center; padding: 4rem 1rem; max-width: 400px; margin: 0 auto; }
.error-kawaii { font-size: 4rem; margin-bottom: 1rem; }
.error-title { font-family: 'Fredoka One', cursive; font-size: 2rem; margin-bottom: 0.75rem; }
.error-message { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-emoji { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state h2 { font-family: 'Fredoka One', cursive; font-size: 1.4rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== FORM PAGE ===== */
.content-form { display: flex; flex-direction: column; gap: 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-weight: 700; font-size: 0.875rem; margin-bottom: 1.25rem; text-decoration: none; }
.back-link:hover { color: var(--text); }
.page-sub { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem 0; }
.page-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 0.5rem 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: all 0.15s; }
.page-btn:hover { border-color: var(--purple); color: var(--text); text-decoration: none; }
.page-info { color: var(--text-dim); font-size: 0.875rem; }

/* ===== UTILITY ===== */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .feed-layout { grid-template-columns: 1fr; }
  .feed-sidebar { display: none; }
  .group-layout { grid-template-columns: 1fr; }
  .group-sidebar { position: static; }
  .case-grid { grid-template-columns: 1fr; }
  .case-sidebar { position: static; }
}

@media (max-width: 640px) {
  .main-content { padding: 1rem 0.75rem; }
  .group-suggestion-grid { grid-template-columns: 1fr; }
  .intent-options { grid-template-columns: 1fr; }
  .search-bar { flex-wrap: wrap; }
  .search-select { width: 100%; }
  .group-hero { flex-wrap: wrap; }
  .profile-hero { flex-direction: column; }
  .profile-actions { margin-left: 0; flex-direction: row; }
  .auth-card, .onboarding-card { padding: 1.75rem 1.25rem; }
  .post-header { flex-wrap: wrap; }
  .post-group-badge { margin-left: 0; }
  .post-time { margin-left: 0; }
}

/* ===== PHASE 2 — SOCIAL GRAPH ===== */

/* ===== FRIENDS ===== */
.page-title { font-family: 'Fredoka One', cursive; font-size: 1.9rem; margin-bottom: 1rem; }
.section-title { font-family: 'Fredoka One', cursive; font-size: 1.4rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.badge-count { background: var(--pink); color: white; font-family: 'Nunito', sans-serif; font-size: 0.8rem; font-weight: 800; min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

.friend-requests-section { margin-bottom: 2rem; }
.req-action-list { display: flex; flex-direction: column; gap: 0.75rem; }
.req-action-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.875rem 1rem; }
.req-avatar, .req-avatar-placeholder { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.req-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 1rem; }
.req-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.req-name { font-weight: 800; color: var(--text); text-decoration: none; }
.req-name:hover { text-decoration: underline; }
.req-username { font-size: 0.85rem; color: var(--text-muted); }
.req-pending-label { font-size: 0.78rem; color: var(--text-dim); font-style: italic; }
.req-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }
.req-avatar-link { text-decoration: none; }

.friends-section { margin-bottom: 2rem; }
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.friend-card { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1rem; text-align: center; }
.friend-avatar, .friend-avatar-placeholder { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }
.friend-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 1.2rem; }
.friend-avatar-link { text-decoration: none; }
.friend-info { display: flex; flex-direction: column; gap: 0.1rem; }
.friend-name { font-weight: 800; color: var(--text); text-decoration: none; }
.friend-name:hover { text-decoration: underline; }
.friend-username { font-size: 0.85rem; color: var(--text-muted); }
.friend-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

.outgoing-requests { margin-top: 1rem; }
.outgoing-summary { cursor: pointer; font-weight: 700; color: var(--text-muted); font-size: 0.9rem; padding: 0.5rem 0; list-style: none; }
.outgoing-summary::-webkit-details-marker { display: none; }
.outgoing-summary::before { content: '▶ '; font-size: 0.7rem; }
details[open] .outgoing-summary::before { content: '▼ '; }

/* ===== MESSAGES LAYOUT ===== */
.messages-layout {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  height: calc(100vh - 58px);
  overflow: hidden;
}

.convo-list {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.convo-list-header { padding: 1rem 1rem 0; }
.convo-list-title { font-family: 'Fredoka One', cursive; font-size: 1.2rem; margin-bottom: 0.75rem; }
.convo-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 0.75rem; }
.convo-tab { flex: 1; background: none; border: none; color: var(--text-muted); font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.85rem; padding: 0.6rem 0.5rem; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; }
.convo-tab.active { color: var(--purple-light); border-bottom-color: var(--purple); }
.tab-count { background: var(--pink); color: white; font-size: 0.72rem; padding: 0.1rem 0.35rem; border-radius: 999px; margin-left: 0.3rem; }
.requests-count { background: var(--warn); }
.convo-tab-pane { flex: 1; overflow-y: auto; }
.convo-empty { padding: 1rem; color: var(--text-dim); font-size: 0.875rem; text-align: center; }

.convo-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); text-decoration: none; transition: background 0.15s; }
.convo-item:hover { background: var(--surface2); }
.convo-item.active { background: rgba(124,58,237,0.12); border-left: 3px solid var(--purple); }
.ci-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.ci-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ci-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--purple-dim); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.9rem; }
.ci-meta { flex: 1; min-width: 0; }
.ci-name-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.2rem; }
.ci-name { font-weight: 800; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-time { font-size: 0.72rem; color: var(--text-dim); flex-shrink: 0; margin-left: 0.5rem; }
.ci-preview { font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 0.35rem; }
.ci-preview.unread { color: var(--text-muted); font-weight: 700; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }

/* ===== CHAT ===== */
.chat-main { display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.chat-empty-state { align-items: center; justify-content: center; }
.chat-empty-inner { text-align: center; padding: 2rem; }
.chat-empty-emoji { font-size: 3rem; margin-bottom: 1rem; }
.chat-empty-inner h2 { font-family: 'Fredoka One', cursive; font-size: 1.5rem; margin-bottom: 0.5rem; }
.chat-empty-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.5rem; }
.text-muted { color: var(--text-muted); }

.chat-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.chat-header-avatar, .chat-header-avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.chat-header-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; }
.chat-header-name { font-weight: 800; color: var(--text); text-decoration: none; }
.chat-header-name:hover { text-decoration: underline; }
.chat-header-username { font-size: 0.8rem; color: var(--text-muted); margin-left: 0.25rem; }

.messages-area { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.msg-group { display: flex; flex-direction: column; max-width: 72%; }
.msg-group.sent { align-self: flex-end; align-items: flex-end; }
.msg-group.recv { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 0.625rem 0.875rem; border-radius: 18px; font-size: 0.925rem; line-height: 1.5; word-break: break-word; }
.msg-group.sent .msg-bubble { background: linear-gradient(135deg, var(--purple), var(--pink)); color: white; border-bottom-right-radius: 4px; }
.msg-group.recv .msg-bubble { background: var(--surface2); color: var(--text); border-bottom-left-radius: 4px; }
.msg-time { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.2rem; padding: 0 0.25rem; }

.composer-wrap { padding: 0.75rem 1rem; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.composer { display: flex; gap: 0.5rem; align-items: flex-end; }
.composer-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; padding: 0.5rem 0.875rem; color: var(--text); font-family: 'Nunito', sans-serif; font-size: 0.925rem; resize: none; min-height: 40px; max-height: 120px; line-height: 1.5; transition: border-color 0.15s; }
.composer-input:focus { outline: none; border-color: var(--purple); }
.send-btn { background: var(--purple); color: white; border: none; border-radius: 999px; padding: 0.5rem 1rem; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.875rem; cursor: pointer; transition: background 0.15s; white-space: nowrap; flex-shrink: 0; }
.send-btn:hover { background: var(--purple-dim); }
.feels-off-link { display: block; font-size: 0.78rem; color: var(--text-dim); margin-top: 0.4rem; text-align: right; text-decoration: none; }
.feels-off-link:hover { color: var(--text-muted); text-decoration: underline; }

/* Message request card */
.req-card { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.req-card-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 400px; text-align: center; }
.req-card-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.req-card-inner h3 { font-family: 'Fredoka One', cursive; font-size: 1.5rem; margin-bottom: 0.5rem; }
.req-card-inner p { color: var(--text-muted); margin-bottom: 0.75rem; }
.req-preview-msg { background: var(--surface2); border-radius: var(--radius); padding: 0.75rem; margin-bottom: 1.25rem; font-style: italic; color: var(--text-muted); font-size: 0.9rem; }
.req-card-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Chat sidebar */
.chat-sidebar { background: var(--surface); border-left: 1px solid var(--border); padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.chat-sidebar-card { background: var(--surface2); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.sidebar-avatar, .sidebar-avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }
.sidebar-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 1rem; }
.sidebar-name { font-weight: 800; color: var(--text); text-decoration: none; }
.sidebar-name:hover { text-decoration: underline; }
.sidebar-username { font-size: 0.8rem; color: var(--text-muted); }
.sidebar-bio { font-size: 0.8rem; color: var(--text-muted); text-align: left; }
.sidebar-shared-groups { width: 100%; text-align: left; margin-top: 0.5rem; }
.sidebar-section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); margin-bottom: 0.35rem; }
.sidebar-group-link { display: block; font-size: 0.8rem; color: var(--purple-light); text-decoration: none; padding: 0.15rem 0; }
.sidebar-group-link:hover { text-decoration: underline; }

/* ===== DISCOVER ===== */
.discover-hero { position: relative; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; }
.discover-rainbow { height: 4px; background: linear-gradient(90deg, #7c3aed, #ec4899, #f59e0b, #10b981, #3b82f6); }
.discover-hero-inner { padding: 1.5rem 1.5rem 1.25rem; }
.discover-title { font-family: 'Fredoka One', cursive; font-size: 2rem; margin-bottom: 0.25rem; }
.discover-sub { color: var(--text-muted); margin-bottom: 0.25rem; }
.discover-note { font-size: 0.85rem; color: var(--text-dim); font-style: italic; }

.discover-section { margin-bottom: 2.5rem; }
.discover-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.discover-section-title { font-family: 'Fredoka One', cursive; font-size: 1.4rem; }
.discover-see-all { font-size: 0.875rem; font-weight: 700; color: var(--purple-light); text-decoration: none; }
.discover-see-all:hover { text-decoration: underline; }

.discover-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.discover-group-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.discover-group-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.dgc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.dgc-name { font-family: 'Fredoka One', cursive; font-size: 1.1rem; margin: 0; }
.dgc-name a { color: var(--text); text-decoration: none; }
.dgc-name a:hover { text-decoration: underline; }
.dgc-cat { font-size: 0.72rem; font-weight: 700; text-transform: capitalize; background: var(--surface2); padding: 0.15rem 0.5rem; border-radius: 999px; color: var(--text-muted); flex-shrink: 0; }
.dgc-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.dgc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.dgc-members { font-size: 0.8rem; color: var(--text-dim); }
.dgc-match { font-size: 0.78rem; color: var(--purple-light); }
.dgc-joined { font-size: 0.85rem; color: var(--success); font-weight: 700; }

.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.person-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.person-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.person-avatar-wrap { flex-shrink: 0; }
.person-avatar, .person-avatar-placeholder { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }
.person-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 1.1rem; }
.person-info { display: flex; flex-direction: column; gap: 0.2rem; width: 100%; }
.person-name { font-weight: 800; color: var(--text); }
.person-username { font-size: 0.8rem; color: var(--text-muted); }
.shared-interests-badge { font-size: 0.78rem; color: var(--purple-light); font-weight: 700; }
.shared-groups-badge { font-size: 0.78rem; color: var(--pink-light); font-weight: 700; }
.person-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; margin-top: 0.25rem; }
.person-tag { font-size: 0.72rem; background: var(--surface2); padding: 0.15rem 0.4rem; border-radius: 999px; color: var(--text-muted); }
.person-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; width: 100%; }

/* Filter chips */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-chip { padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: all 0.15s; }
.filter-chip:hover { border-color: var(--purple); color: var(--text); text-decoration: none; }
.filter-chip.active { background: var(--purple); color: white; border-color: var(--purple); }

/* ===== REACTIONS ===== */
.reaction-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; padding: 0.5rem 0 0.25rem; }
.reaction-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.6rem; cursor: pointer; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.2rem; transition: all 0.15s; font-family: inherit; color: var(--text); }
.reaction-btn:hover { border-color: var(--purple); background: rgba(124,58,237,0.15); }
.reaction-btn.reacted { border-color: var(--purple); background: rgba(124,58,237,0.25); }
.rxn-count { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); min-width: 0; }
.reaction-btn.reacted .rxn-count { color: var(--purple-light); }

/* Comment toggle button */
.comment-toggle-btn { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; font-weight: 700; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: var(--radius); transition: color 0.15s; font-family: inherit; }
.comment-toggle-btn:hover { color: var(--text); }
.comment-count-label { font-size: 0.85rem; }

/* Audience badge */
.audience-badge { display: inline-flex; align-items: center; font-size: 0.875rem; padding: 0.1rem 0.35rem; background: rgba(124,58,237,0.12); border-radius: 999px; }

/* ===== COMMENTS ===== */
.comment-section { border-top: 1px solid var(--border); padding: 0.75rem 0 0.5rem; margin-top: 0.25rem; }
.comments-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.comments-loading, .comments-empty, .comment-error { font-size: 0.85rem; color: var(--text-dim); text-align: center; padding: 0.5rem; }
.comment-item { display: flex; flex-direction: column; gap: 0.3rem; }
.comment-header { display: flex; align-items: center; justify-content: space-between; }
.comment-author { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.comment-avatar, .comment-avatar-placeholder { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 0.7rem; }
.comment-display-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.comment-time { font-size: 0.72rem; color: var(--text-dim); }
.comment-content { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; padding-left: 28px; }
.comment-composer { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.5rem; }
.comment-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.4rem 0.625rem; color: var(--text); font-family: 'Nunito', sans-serif; font-size: 0.875rem; resize: none; line-height: 1.5; }
.comment-input:focus { outline: none; border-color: var(--purple); }

/* ===== APPEALS ===== */
.appeal-page { max-width: 680px; }
.decision-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.dc-section-title { font-size: 0.85rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.dc-row { display: flex; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: flex-start; }
.dc-row:last-child { border-bottom: none; }
.dc-row--block { flex-direction: column; gap: 0.35rem; }
.dc-label { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); min-width: 80px; flex-shrink: 0; padding-top: 0.15rem; text-transform: capitalize; }
.dc-val { font-size: 0.9rem; color: var(--text); text-transform: capitalize; }
.dc-explanation { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; background: var(--surface2); border-radius: var(--radius); padding: 0.75rem; }

.appeal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.appeal-submitted-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.appeal-resolution-card { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }

.what-next { background: var(--surface2); border-radius: var(--radius); padding: 1rem 1.25rem; }
.what-next h3 { font-size: 0.875rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.wn-step { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.6rem; font-size: 0.875rem; color: var(--text-muted); }
.wn-step:last-child { margin-bottom: 0; }
.wn-icon { flex-shrink: 0; font-size: 1rem; }
.independent-note { display: flex; align-items: center; gap: 0.5rem; background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Status banner */
.status-banner { padding: 0.875rem 1rem; border-radius: var(--radius); font-weight: 700; margin-bottom: 1.5rem; }
.status-banner--amber { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.status-banner--red { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.status-banner--green { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }

/* Appeal timeline */
.appeal-timeline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.tl-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1; min-width: 60px; text-align: center; position: relative; }
.tl-item:not(:last-child)::after { content: ''; position: absolute; top: 9px; left: calc(50% + 10px); right: calc(-50% + 10px); height: 2px; background: var(--border); }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface2); z-index: 1; position: relative; }
.tl-dot.done { background: var(--purple); border-color: var(--purple); }
.tl-dot.active { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px rgba(245,158,11,0.2); }
.tl-dot.pending { background: var(--surface2); border-color: var(--border); }
.tl-dot.upheld { background: var(--success); border-color: var(--success); }
.tl-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.tl-date { font-size: 0.68rem; color: var(--text-dim); }

/* Appeals list */
.appeals-list { display: flex; flex-direction: column; gap: 0.5rem; }
.appeals-list-item { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: border-color 0.15s; gap: 1rem; }
.appeals-list-item:hover { border-color: var(--purple); }
.ali-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ali-id { font-weight: 700; color: var(--text-dim); font-size: 0.8rem; min-width: 65px; }
.ali-action { font-weight: 700; color: var(--text); font-size: 0.875rem; text-transform: capitalize; }
.ali-grounds { font-size: 0.8rem; color: var(--text-muted); text-transform: capitalize; }
.ali-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.ali-status { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.ali-date { font-size: 0.78rem; color: var(--text-dim); }
.status--amber { background: rgba(245,158,11,0.15); color: #fcd34d; }
.status--red { background: rgba(239,68,68,0.15); color: #fca5a5; }
.status--green { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.status--grey { background: var(--surface2); color: var(--text-dim); }

/* Mod appeals queue table */
.mod-appeals-queue { overflow-x: auto; }
.queue-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.queue-table th { text-align: left; padding: 0.5rem 0.75rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); font-weight: 700; border-bottom: 1px solid var(--border); }
.queue-table td { padding: 0.75rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.queue-table tr:last-child td { border-bottom: none; }

/* ===== PROFILE — Phase 2 additions ===== */
.profile-interests { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.profile-interest-chip { font-size: 0.8rem; padding: 0.25rem 0.625rem; background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); border-radius: 999px; color: var(--purple-light); }

.mutual-friends-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0; margin-bottom: 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mutual-label { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.mutual-avatars { display: flex; align-items: center; gap: -6px; flex-wrap: wrap; gap: 0.25rem; }
.mutual-avatar, .mutual-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.mutual-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--purple-dim); color: white; font-weight: 700; font-size: 0.72rem; }
.mutual-more { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface2); color: var(--text-muted); font-size: 0.72rem; font-weight: 700; text-decoration: none; }
.mutual-more:hover { background: var(--surface); color: var(--text); text-decoration: none; }

/* Page header */
.page-header { margin-bottom: 1.5rem; }

/* ===== RESPONSIVE — Phase 2 ===== */
@media (max-width: 900px) {
  .messages-layout { grid-template-columns: 1fr; height: auto; }
  .convo-list { height: auto; max-height: 40vh; }
  .chat-main { height: calc(60vh); }
  .chat-sidebar { display: none; }
  .discover-group-grid, .discover-group-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .friends-grid { grid-template-columns: 1fr; }
  .person-grid, .person-grid-3 { grid-template-columns: 1fr; }
  .appeal-timeline { gap: 0.25rem; padding: 0.75rem; }
  .tl-item::after { display: none; }
  .filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; }
}
