/* ═══════════════════════════════════════════════════════════════════
   SEED — She Empowers EveryDay
   Design System & Main Stylesheet
   Font: DM Sans (Google Fonts)
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&display=swap');

/* ── CSS Variables ──────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --seed-rose:       #E8647A;
  --seed-rose-light: #F5A0AD;
  --seed-rose-dark:  #C84560;
  --seed-plum:       #6B3FA0;
  --seed-plum-light: #9B72CC;
  --seed-plum-dark:  #4A2070;
  --seed-sage:       #5A9E7C;
  --seed-sage-light: #8DC4A8;
  --seed-amber:      #F0A030;
  --seed-sky:        #4A90D9;

  /* Neutrals */
  --bg-primary:    #0D0B14;
  --bg-secondary:  #151020;
  --bg-card:       #1C1628;
  --bg-card-hover: #221D30;
  --bg-elevated:   #2A2438;
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.16);

  /* Text */
  --text-primary:   #F0EBF8;
  --text-secondary: #B8A8D0;
  --text-muted:     #7A6A90;
  --text-disabled:  #4A3D60;

  /* Gradients */
  --grad-rose:   linear-gradient(135deg, #E8647A 0%, #C84560 100%);
  --grad-plum:   linear-gradient(135deg, #6B3FA0 0%, #9B72CC 100%);
  --grad-bloom:  linear-gradient(135deg, #E8647A 0%, #6B3FA0 100%);
  --grad-card:   linear-gradient(135deg, rgba(107,63,160,0.15) 0%, rgba(232,100,122,0.08) 100%);
  --grad-hero:   linear-gradient(135deg, #0D0B14 0%, #1A0D2A 50%, #0D1520 100%);

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
  --shadow-rose: 0 4px 20px rgba(232,100,122,0.3);
  --shadow-plum: 0 4px 20px rgba(107,63,160,0.3);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow:   0.4s ease;

  /* Layout */
  --nav-width:  240px;
  --feed-width: 640px;
  --aside-width: 320px;
  --nav-top:    60px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem;  font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.1rem;  font-weight: 600; line-height: 1.4; }
h5 { font-size: 1rem;    font-weight: 600; }

.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ── Top Navigation Bar ─────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-top);
  background: rgba(13, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-6);
  gap: var(--sp-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--grad-bloom);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  letter-spacing: -0.5px;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--grad-bloom);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.nav-search input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-10);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--t-normal);
  outline: none;
}

.nav-search input:focus {
  border-color: var(--seed-rose);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(232,100,122,0.15);
}

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

.nav-search .search-icon {
  position: absolute;
  left: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  position: relative;
  font-size: 1.1rem;
}

.nav-icon-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.nav-icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--seed-rose);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--seed-rose);
  cursor: pointer;
  transition: border-color var(--t-fast);
}

.nav-avatar:hover { border-color: var(--seed-plum-light); }

/* ── Sidebar Navigation ─────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--nav-top);
  left: 0;
  bottom: 0;
  width: var(--nav-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 100;
  padding: var(--sp-4) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-section {
  padding: 0 var(--sp-3);
  margin-bottom: var(--sp-4);
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-disabled);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-1);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t-fast);
  position: relative;
}

.sidebar-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--grad-card);
  color: var(--seed-rose-light);
  border: 1px solid rgba(232,100,122,0.2);
}

.sidebar-link .icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-link .count {
  margin-left: auto;
  background: var(--seed-rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-full);
  min-width: 20px;
  text-align: center;
}

/* ── Main Layout ────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-top);
}

.main-content {
  flex: 1;
  margin-left: var(--nav-width);
  display: flex;
  justify-content: center;
  padding: var(--sp-6) var(--sp-4);
  gap: var(--sp-6);
  max-width: calc(100vw - var(--nav-width));
}

.feed-column {
  width: 100%;
  max-width: var(--feed-width);
  flex-shrink: 0;
}

.aside-column {
  width: var(--aside-width);
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all var(--t-normal);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-bloom);
  color: white;
  box-shadow: var(--shadow-rose);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,100,122,0.4);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--seed-rose);
  color: var(--seed-rose-light);
}

.btn-secondary:hover {
  background: rgba(232,100,122,0.1);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-sm {
  padding: var(--sp-1) var(--sp-3);
  font-size: 0.8rem;
}

.btn-lg {
  padding: var(--sp-3) var(--sp-8);
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.card:hover {
  border-color: var(--border-hover);
}

.card-body {
  padding: var(--sp-5);
}

.card-header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Post Composer ──────────────────────────────────────────────── */
.composer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.composer-top {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.composer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--seed-rose);
  flex-shrink: 0;
}

.composer-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-primary);
  font-size: 0.95rem;
  resize: none;
  min-height: 80px;
  outline: none;
  transition: border-color var(--t-fast);
  line-height: 1.6;
}

.composer-input:focus {
  border-color: var(--seed-rose);
  background: var(--bg-card);
}

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

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.composer-tools {
  display: flex;
  gap: var(--sp-1);
}

.composer-tool {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--t-fast);
  cursor: pointer;
}

.composer-tool:hover {
  background: var(--bg-elevated);
  color: var(--seed-rose-light);
}

.composer-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-3);
}

.composer-tab {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}

.composer-tab:hover { color: var(--text-secondary); }
.composer-tab.active {
  background: rgba(232,100,122,0.15);
  color: var(--seed-rose-light);
}

/* ── Post Card ──────────────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  transition: border-color var(--t-fast);
  overflow: hidden;
}

.post-card:hover {
  border-color: var(--border-hover);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background-clip: padding-box;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity var(--t-fast);
  position: relative;
}

.post-avatar.has-story {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--grad-bloom) border-box;
}

.post-meta { flex: 1; }
.post-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.post-name .verified {
  color: var(--seed-rose);
  font-size: 0.8rem;
}

.post-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.post-more {
  color: var(--text-muted);
  padding: var(--sp-1);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  cursor: pointer;
  font-size: 1.1rem;
}

.post-more:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.post-content {
  padding: 0 var(--sp-5) var(--sp-3);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.post-content .hashtag {
  color: var(--seed-rose-light);
  cursor: pointer;
}

.post-content .mention {
  color: var(--seed-plum-light);
  cursor: pointer;
}

.post-media {
  margin: 0 0 var(--sp-3);
  overflow: hidden;
}

.post-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-media .media-grid {
  display: grid;
  gap: 2px;
}

.post-media .media-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.post-media .media-grid.grid-3 { grid-template-columns: 2fr 1fr; }
.post-media .media-grid.grid-3 .grid-right { display: grid; gap: 2px; }

.post-media .media-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5) var(--sp-4);
  border-top: 1px solid var(--border);
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
}

.post-action-btn:hover { color: var(--seed-rose-light); }
.post-action-btn.liked { color: var(--seed-rose); }
.post-action-btn.bookmarked { color: var(--seed-amber); }

.post-action-btn .icon { font-size: 1rem; }

.post-actions .spacer { flex: 1; }

/* ── Poll Card ──────────────────────────────────────────────────── */
.poll-box {
  margin: var(--sp-3) var(--sp-5) var(--sp-3);
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}

.poll-question {
  font-weight: 600;
  margin-bottom: var(--sp-3);
  font-size: 0.95rem;
}

.poll-option {
  position: relative;
  margin-bottom: var(--sp-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
}

.poll-option-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: rgba(232,100,122,0.15);
  transition: width 0.6s ease;
  z-index: 0;
}

.poll-option-bar.winner { background: rgba(232,100,122,0.25); }

.poll-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.875rem;
}

.poll-option:hover .poll-option-bar { background: rgba(232,100,122,0.2); }
.poll-option.voted .poll-option-bar { background: rgba(107,63,160,0.25); }

.poll-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-2);
  display: flex;
  gap: var(--sp-3);
}

/* ── Story Ring ─────────────────────────────────────────────────── */
.stories-bar {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-bar::-webkit-scrollbar { display: none; }

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  cursor: pointer;
  flex-shrink: 0;
}

.story-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--grad-bloom);
  position: relative;
}

.story-ring.seen {
  background: var(--bg-elevated);
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--bg-card);
}

.story-ring-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-add .story-ring-inner {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--seed-rose);
}

.story-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 60px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Profile Avatar ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-xs  { width: 28px; height: 28px; }
.avatar-sm  { width: 36px; height: 36px; }
.avatar-md  { width: 44px; height: 44px; }
.avatar-lg  { width: 56px; height: 56px; }
.avatar-xl  { width: 80px; height: 80px; }
.avatar-2xl { width: 120px; height: 120px; }

.avatar-border {
  border: 2px solid var(--seed-rose);
}

.avatar-placeholder {
  background: var(--grad-bloom);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1em;
}

/* ── User Chip ──────────────────────────────────────────────────── */
.user-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
}

.user-chip-name { font-weight: 600; font-size: 0.9rem; }
.user-chip-handle { font-size: 0.8rem; color: var(--text-muted); }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: all var(--t-fast);
}

.form-control:focus {
  border-color: var(--seed-rose);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(232,100,122,0.12);
}

.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-error {
  font-size: 0.8rem;
  color: #FF6B6B;
  margin-top: var(--sp-1);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

/* ── Badges & Tags ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-rose   { background: rgba(232,100,122,0.2); color: var(--seed-rose-light); }
.badge-plum   { background: rgba(107,63,160,0.2);  color: var(--seed-plum-light); }
.badge-sage   { background: rgba(90,158,124,0.2);  color: var(--seed-sage-light); }
.badge-amber  { background: rgba(240,160,48,0.2);  color: var(--seed-amber); }
.badge-sky    { background: rgba(74,144,217,0.2);  color: var(--seed-sky); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}

.tag:hover {
  border-color: var(--seed-rose);
  color: var(--seed-rose-light);
  background: rgba(232,100,122,0.1);
}

/* ── Widgets (Aside) ────────────────────────────────────────────── */
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.widget-header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.widget-action {
  font-size: 0.8rem;
  color: var(--seed-rose-light);
  cursor: pointer;
}

.widget-body { padding: var(--sp-4) var(--sp-5); }

/* ── Trending Tags ──────────────────────────────────────────────── */
.trend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  cursor: pointer;
}

.trend-item:hover .trend-tag { color: var(--seed-rose-light); }

.trend-tag {
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.trend-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Suggested Users ────────────────────────────────────────────── */
.suggest-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
}

.suggest-info { flex: 1; min-width: 0; }
.suggest-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-handle {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ── Tab Navigation ─────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
  gap: var(--sp-1);
}

.tab {
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
}

.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--seed-rose-light);
  border-bottom-color: var(--seed-rose);
}

/* ── Modals ─────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--t-normal);
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: 1.2rem;
}

.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--sp-6);
}

.modal-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
}

/* ── Notifications Dropdown ─────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 320px;
  max-height: 480px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: none;
}

.dropdown.open { display: block; }

.dropdown-header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: background var(--t-fast);
}

.notif-item:hover { background: var(--bg-elevated); }
.notif-item.unread { background: rgba(232,100,122,0.05); }

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seed-rose);
  margin-top: 6px;
  flex-shrink: 0;
}

.notif-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.notif-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Project Card ───────────────────────────────────────────────── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--seed-rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-rose);
}

.project-cover {
  height: 140px;
  background: var(--grad-bloom);
  position: relative;
  overflow: hidden;
}

.project-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.project-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.project-info { padding: var(--sp-4); }
.project-title { font-weight: 700; font-size: 0.95rem; margin-bottom: var(--sp-1); }
.project-desc  {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

/* ── Event Card ─────────────────────────────────────────────────── */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-normal);
}

.event-card:hover {
  border-color: var(--seed-plum-light);
  transform: translateY(-2px);
}

.event-date-block {
  width: 56px;
  background: var(--grad-plum);
  text-align: center;
  padding: var(--sp-2) var(--sp-1);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.event-date-day   { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-month { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Program Card ───────────────────────────────────────────────── */
.program-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}

.program-card:hover { background: var(--bg-card-hover); }

.program-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--grad-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ── Profile Header ─────────────────────────────────────────────── */
.profile-cover {
  height: 200px;
  background: var(--grad-bloom);
  position: relative;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}

.profile-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.profile-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 0 var(--sp-6) var(--sp-6);
}

.profile-avatar-wrap {
  margin-top: -40px;
  margin-bottom: var(--sp-3);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  object-fit: cover;
}

.profile-stats {
  display: flex;
  gap: var(--sp-6);
  margin: var(--sp-4) 0;
}

.profile-stat { text-align: center; cursor: pointer; }
.profile-stat-num  { font-size: 1.2rem; font-weight: 700; }
.profile-stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.alert-error   { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); color: #FF9A9A; }
.alert-success { background: rgba(90,158,124,0.1);  border: 1px solid rgba(90,158,124,0.3);  color: var(--seed-sage-light); }
.alert-info    { background: rgba(74,144,217,0.1);  border: 1px solid rgba(74,144,217,0.3);  color: var(--seed-sky); }

/* ── Toast Notifications ────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 240px;
  max-width: 360px;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
}

.toast.success { border-left: 3px solid var(--seed-sage); }
.toast.error   { border-left: 3px solid #FF6B6B; }
.toast.info    { border-left: 3px solid var(--seed-sky); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Skeleton Loading ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Infinite Scroll Spinner ────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--seed-rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--sp-6) auto;
}

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

/* ── Empty State ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
  opacity: 0.5;
}

.empty-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
  color: var(--text-secondary);
}

/* ── PWA Install Banner ─────────────────────────────────────────── */
#pwa-install-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 1500;
  transform: translateY(100%);
  transition: transform var(--t-normal);
}

#pwa-install-bar.show { transform: translateY(0); }

/* ── Divider ────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-4) 0;
}

.divider-text {
  text-align: center;
  position: relative;
  margin: var(--sp-5) 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--border);
}

.divider-text::before { left: 0; }
.divider-text::after  { right: 0; }

/* ── Utilities ──────────────────────────────────────────────────── */
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.w-full   { width: 100%; }
.flex-1   { flex: 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden   { display: none !important; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mb-4 { margin-bottom: var(--sp-4); }
.p-4  { padding: var(--sp-4); }
.p-5  { padding: var(--sp-5); }

/* ── Scrollbar Global ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .aside-column { display: none; }
  .main-content { justify-content: center; }
}

@media (max-width: 768px) {
  :root { --nav-width: 0px; }
  .sidebar { transform: translateX(-100%); width: 260px; transition: transform var(--t-normal); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: var(--sp-4) var(--sp-3); }
  .feed-column { max-width: 100%; }
  .nav-search { display: none; }
  .top-nav { padding: 0 var(--sp-4); }
  .hamburger { display: flex !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .post-header { padding: var(--sp-3) var(--sp-4) var(--sp-2); }
  .post-content { padding: 0 var(--sp-4) var(--sp-3); }
  .post-actions { padding: var(--sp-2) var(--sp-4) var(--sp-3); }
  .composer { padding: var(--sp-4); }
}

/* ── Auth Pages ─────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-hero);
  padding: var(--sp-4);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(107,63,160,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(232,100,122,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.auth-logo-mark {
  width: 56px;
  height: 56px;
  background: var(--grad-bloom);
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--sp-3);
}

.auth-logo-name {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad-bloom);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--sp-1);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--sp-8);
}

.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  margin-bottom: var(--sp-3);
}

.oauth-btn:hover {
  border-color: var(--seed-rose);
  background: rgba(232,100,122,0.08);
}

.oauth-btn.helix {
  border-color: rgba(107,63,160,0.5);
}

.oauth-btn.helix:hover {
  border-color: var(--seed-plum-light);
  background: rgba(107,63,160,0.1);
}

.oauth-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
