/* ── Unalone Design System v2 ────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand */
  --brand-beige:    #FBDCE2;
  --brand-brown:    #2A1418;
  --brand-red:      #E0293D;

  /* Backgrounds */
  --bg:             #FFF8F9;
  --bg-section:     #FDEEF1;
  --bg-card:        #FFFFFF;
  --bg-input:       #FDF1F3;
  --bg-hero:        linear-gradient(135deg, #FFF8F9 0%, #FDECEF 50%, #FBDCE2 100%);

  /* Text */
  --text:           #2A1418;
  --text-secondary: #6B4A50;
  --text-muted:     #A8888D;
  --text-light:     #DDBDC4;

  /* Accent */
  --accent:         #E0293D;
  --accent-hover:   #B81E30;
  --accent-soft:    #FDEAEF;
  --accent-border:  #F6C9D3;

  /* Blue complement (unused by default — reserved for category/status accents) */
  --purple:         #3D5A80;
  --purple-soft:    #E3ECFB;

  /* Needs-attention semantic (distinct from brand accent — used for flagged content) */
  --support:        #DB2777;
  --support-soft:   #FCE7F3;
  --support-border: #FBCFE8;

  /* Borders & Shadows */
  --border:         #F5DEE3;
  --border-light:   #FCEEF1;
  --shadow-xs:      0 1px 3px rgba(110,30,42,0.06);
  --shadow-sm:      0 2px 8px rgba(110,30,42,0.08);
  --shadow-md:      0 4px 20px rgba(110,30,42,0.10);
  --shadow-lg:      0 12px 40px rgba(110,30,42,0.14);
  --shadow-xl:      0 24px 60px rgba(110,30,42,0.18);

  /* Radius */
  --radius-sm:      8px;
  --radius:         16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --radius-full:    9999px;

  /* Typography */
  --font-display:   'Poppins', 'Manrope', sans-serif;
  --font-body:      'Manrope', system-ui, sans-serif;

  /* Transitions */
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --duration:       200ms;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.site-announcement {
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.announcement-ticker {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: announcementScroll 22s linear infinite;
  will-change: transform;
}
@keyframes announcementScroll {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-100%,0,0); }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; }
a { color: inherit; }

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg, rgba(250, 248, 245, 0.88));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-heart {
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg-section);
  color: var(--text);
}

.nav-signout {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.nav-signout:hover {
  color: var(--text);
}

.notif-bell-wrap { position: relative; }
.notif-bell-btn {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%; border: none; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-section); color: var(--text-secondary); cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.notif-bell-btn:hover { background: var(--accent-soft); color: var(--accent); }
.notif-badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: var(--radius-full); background: var(--accent); color: #fff;
  font-size: 0.62rem; font-weight: 700; display: none; align-items: center; justify-content: center;
  line-height: 1; border: 2px solid var(--bg-card);
}
.notif-badge.show { display: flex; }
.notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 320px; max-width: calc(100vw - 2rem);
  max-height: 420px; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.4rem; display: none; flex-direction: column; z-index: 60;
}
.notif-dropdown.open { display: flex; }
.notif-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.6rem 0.4rem; border-bottom: 1px solid var(--border-light); margin-bottom: 0.2rem;
}
.notif-dropdown-header span { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.notif-mark-all { background: none; border: none; color: var(--accent); font-size: 0.72rem; font-weight: 700; cursor: pointer; padding: 0.15rem; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-item {
  display: flex; gap: 0.6rem; padding: 0.65rem 0.6rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--duration) var(--ease); text-align: left;
  border: none; background: none; width: 100%; font-family: var(--font-body);
}
.notif-item:hover { background: var(--bg-section); }
.notif-item.unread { background: var(--accent-soft); }
.notif-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.notif-icon.reply { background: var(--accent); }
.notif-icon.reaction { background: #F59E0B; }
.notif-icon.admin { background: #10B981; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 0.82rem; color: var(--text); line-height: 1.4; }
.notif-text strong { font-weight: 700; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }
.notif-empty { text-align: center; padding: 2rem 1rem; color: var(--text-muted); font-size: 0.85rem; }


.soul-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.soul-label {
  font-size: 0.62rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  line-height: 1;
}

.soul-id {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border-light);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(224,41,74,0.20) 0%, transparent 70%),
    linear-gradient(180deg, rgba(16,6,10,0.25) 0%, rgba(16,6,10,0.15) 45%, rgba(16,6,10,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-eyebrow, .hero-title, .hero-subtitle, .hero-subtitle-soft, .hero-actions {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(224,41,74,0.18);
  border: 1px solid rgba(255,180,195,0.4);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFE1E8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  color: #FFF5F7;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-title em {
  color: #FF9DB0;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: #F8DFE4;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 0.4rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-subtitle-soft {
  font-size: 0.82rem;
  font-weight: 400;
  color: #E8C9D2;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hero CTA — deliberately louder than the generic .btn-primary used for nav/modal buttons */
.btn-hero-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(224,41,74,0.45);
}
.btn-hero-cta:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(224,41,74,0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-section);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(224,41,74,0.3);
}

.btn:active { transform: translateY(0) scale(0.98); }

/* ── Compose ─────────────────────────────────────────────────────────────── */

.compose-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.compose-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration) var(--ease);
}

.compose-card:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-beige);
}

.compose-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  min-height: 80px;
}

.compose-input::placeholder { color: var(--text-light); }

.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
}

.char-count {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.btn-post {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-post:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-post:active { transform: scale(0.97); }

.banned-notice {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.5rem;
}

/* ── Feed ────────────────────────────────────────────────────────────────── */

.feed-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1.5rem;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}

.feed-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.feed-loading {
  display: flex;
  justify-content: center;
  padding: 4rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--text-secondary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* ── Post Card ───────────────────────────────────────────────────────────── */

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.375rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  animation: fadeUp 0.35s var(--ease) both;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
  gap: 0.5rem;
}

.post-soul {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.975rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.post-soul::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--brand-beige);
  border-radius: 50%;
  border: 1.5px solid var(--border);
}

.post-time {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  flex-shrink: 0;
}

.post-content {
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

.link-preview-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin-top: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration) var(--ease);
}
.link-preview-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.link-preview-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent) 0%, #FF93A8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.link-preview-body { flex: 1; min-width: 0; }
.link-preview-kind {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.link-preview-topic {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-preview-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}
.link-preview-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--text-light);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.125rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.reaction-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1;
}

.reaction-btn:hover {
  background: var(--bg-section);
  border-color: var(--text-muted);
  transform: scale(1.06);
}

.reaction-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.r-count { font-size: 0.75rem; }

.reply-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--duration) var(--ease);
  font-family: var(--font-body);
  font-weight: 500;
}

.reply-btn:hover {
  background: var(--bg-section);
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Empty State ─────────────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.6;
}

.empty-state p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── Load More ───────────────────────────────────────────────────────────── */

.load-more-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 3rem;
  text-align: center;
}

.btn-load-more {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.65rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-xs);
}

.btn-load-more:hover {
  background: var(--bg-section);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.28s var(--ease) both;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.modal-close {
  background: var(--bg-section);
  border: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: all var(--duration) var(--ease);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-replies {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reply-item {
  padding: 0.875rem 1.1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.reply-soul {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.reply-content {
  font-size: 0.925rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
}

.modal-compose {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-shrink: 0;
  background: var(--bg);
}

.reply-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  outline: none;
  resize: none;
  line-height: 1.55;
  transition: border-color var(--duration) var(--ease);
}

.reply-input:focus { border-color: var(--text-muted); }
.reply-input::placeholder { color: var(--text-light); }

.btn-reply-send {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}

.btn-reply-send:hover {
  background: #000;
  transform: translateY(-1px);
}

/* ── Rules Modal ─────────────────────────────────────────────────────────── */

.rules-box {
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: auto;
}

.rules-content {
  padding: 1.5rem;
  overflow-y: auto;
}

.rules-content > p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.rules-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.rules-content ul li {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}

.rules-content ul li::before {
  content: '♥';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.65rem;
  top: 0.3rem;
}

.rules-note {
  font-size: 0.8rem !important;
  color: var(--text-light) !important;
  font-style: normal !important;
  font-family: var(--font-body) !important;
}

/* ── Join Popup ──────────────────────────────────────────────────────────── */

#joinPopupOverlay {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.join-popup-box {
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 100%;
  margin: auto;
  animation: popIn 0.22s var(--ease) both;
}

@keyframes popIn {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.join-popup-content {
  padding: 1.5rem;
}

.join-popup-content > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.join-popup-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.join-popup-actions .btn {
  width: 100%;
  justify-content: center;
}

.join-popup-signin {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease);
  z-index: 999;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Features Strip ──────────────────────────────────────────────────────── */

.features-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 1.5rem;
}

.features-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  font-size: 1.05rem;
}

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  color: var(--accent);
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.footer-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: color var(--duration) var(--ease);
  padding: 0.2rem 0;
}

.footer-link:hover { color: var(--text); }

.footer-copy {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.divider {
  width: 40px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .hero-stats { gap: 1.5rem; }
  .features-strip-inner { grid-template-columns: 1fr; gap: 1rem; }
  .compose-section { padding: 1.5rem 1rem 0.5rem; }
  .feed-container { padding: 0.5rem 1rem 1.5rem; }
  .load-more-wrap { padding: 0.5rem 1rem 2.5rem; }
  .footer-copy { display: none; }
  /* Hide verbose text labels but keep Sign in / Sign out visible */
  .header-nav .nav-link .nav-lbl { display: none; }
  .header-nav .nav-link.btn { padding: .35rem .75rem; font-size: .78rem; }
  /* Sign out button: compact, always shows text */
  .nav-signout { padding: .35rem .65rem; font-size: .75rem; color: var(--text-muted); gap: .3rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.88rem; }
  .hero-subtitle-soft { font-size: 0.76rem; }
  .modal-box { max-height: 90vh; }
  .soul-badge { padding: 0.35rem 0.7rem; }
  .logo-text { font-size: 1.6rem; }
  /* On very small screens shrink soul-badge text */
  .soul-id { font-size: .88rem; }
}

/* ── Terms re-acceptance modal (blocking — shown when Terms and Conditions change) ── */

.terms-reaccept-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 600;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.terms-reaccept-overlay.open { display: flex; }
.terms-reaccept-modal {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem;
  max-width: 520px; width: 100%; max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.terms-reaccept-modal h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.terms-reaccept-hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.terms-reaccept-body {
  overflow-y: auto; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65;
  white-space: pre-wrap; margin-bottom: 1.1rem; padding: 0.9rem;
  background: var(--bg-section); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.terms-reaccept-checkbox-label {
  display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.5; cursor: pointer; margin-bottom: 1.1rem;
}
.terms-reaccept-checkbox-label input { margin-top: 0.2rem; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.terms-reaccept-btn {
  background: var(--accent); color: #fff; border: none; padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full); font-weight: 700; cursor: pointer; align-self: flex-start;
}
.terms-reaccept-btn:disabled { opacity: 0.5; cursor: not-allowed; }
