/* ============================
   RESET & TOKENS
============================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #0a0f0d;
  --surface: #111a15;
  --surface2: #172010;
  --border: rgba(255,255,255,0.08);
  --green: #4eff8c;
  --green-dim: #2bcc64;
  --green-dark: #0d3320;
  --text: #f0f4f1;
  --text-muted: #7a9485;
  --text-dim: #3d5449;
  --white: #ffffff;
  --red: #ff5c5c;
  --orange: #ff8c42;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-serif: 'Instrument Serif', serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }
img { display: block; max-width: 100%; }

/* ============================
   SCROLLBAR
============================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 4px; }

/* ============================
   NAV
============================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10,15,13,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  letter-spacing: -0.5px; cursor: pointer;
  background: linear-gradient(135deg, var(--green) 0%, #a8ffcb 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-center { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  padding: 7px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); background: transparent; border: none;
  transition: all 0.2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.btn-ghost {
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-primary {
  padding: 9px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 700;
  background: var(--green); color: var(--bg); border: none;
  transition: background-color 0.15s ease,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease;
  letter-spacing: -0.2px;
}
.btn-primary:hover { background: #7affaa; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(78,255,140,0.3); }

.li-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.li-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 320px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 0;
}

.li-search-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1;
}

.li-search-form input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
}

.li-search-form input::placeholder {
  color: var(--text-dim);
}

.li-menu {
  display: flex;
  align-items: stretch;
  gap: 2px;
  max-width: 680px;
  overflow-x: auto;
  scrollbar-width: none;
}

.li-menu::-webkit-scrollbar {
  display: none;
}

.li-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 4px 8px 3px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.15;
}

.li-item-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.li-item-label {
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.li-item:hover,
.li-item.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}
.li-item.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  border-radius: inherit;
  pointer-events: none;
}

.li-item-badge {
  padding-right: 14px;
}

.li-count {
  position: absolute;
  top: 1px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.li-signout {
  white-space: nowrap;
  padding: 8px 16px;
}

/* ── "More" dropdown in nav ── */
.li-more-wrap {
  position: relative;
}

.li-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .01em;
}

.li-more-dropdown {
  display: none;
  position: fixed;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  z-index: 200;
}

.li-more-wrap.open .li-more-dropdown {
  display: flex;
  flex-direction: column;
}

.li-more-link {
  display: block;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background .1s, color .1s;
}

.li-more-link:hover,
.li-more-link.active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}

.quick-post-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  z-index: 1200;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-post-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.quick-post-fab-plus {
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  margin-top: -2px;
}

.quick-post-fab-tip {
  position: absolute;
  right: 66px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quick-post-fab:hover .quick-post-fab-tip,
.quick-post-fab:focus-visible .quick-post-fab-tip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================
   PAGE ROUTER
============================ */
.page { display: none; min-height: 100vh; padding-top: 64px; }
.page.active { display: block; }

@media (max-width: 720px) {
  .quick-post-fab {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .quick-post-fab-tip {
    display: none;
  }
}

/* ============================
   HOME PAGE
============================ */
#page-home {}

/* --- HERO --- */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 40px 60px;
  position: relative; overflow: hidden;
}
/* Animated gradient orbs */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; opacity: 0.35;
}
.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, #1a6b3c 0%, transparent 70%); top: -100px; left: -100px; animation: orbFloat1 12s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, #4eff8c20 0%, transparent 70%); bottom: -100px; right: -80px; animation: orbFloat2 15s ease-in-out infinite; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, #0d4a26 0%, transparent 70%); top: 40%; left: 60%; animation: orbFloat3 10s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(60px,40px) scale(1.1)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,-60px) scale(1.05)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,50px)} }

/* Grid texture */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(78,255,140,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(78,255,140,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

/* Pill badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(78,255,140,0.08); border: 1px solid rgba(78,255,140,0.2);
  padding: 7px 18px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(78,255,140,0.4)} 50%{opacity:0.6;box-shadow:0 0 0 6px rgba(78,255,140,0)} }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -3px; color: var(--text);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-h1 .line-green {
  color: var(--green);
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  letter-spacing: -1px;
}
.hero-h1 .line-dim { color: var(--text-muted); }

.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.75;
  max-width: 520px; margin: 0 auto 40px;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}
.btn-hero-main {
  padding: 16px 36px; border-radius: 100px;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.3px;
  background: var(--green); color: var(--bg); border: none;
  transition: background-color 0.15s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-main:hover { background: #7affaa; transform: translateY(-4px); box-shadow: 0 12px 40px rgba(78,255,140,0.35); }
.btn-hero-sec {
  padding: 16px 36px; border-radius: 100px;
  font-size: 1rem; font-weight: 600;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); transition: all 0.25s;
}
.btn-hero-sec:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-hero-org:hover  { border-color: rgba(99,179,237,0.6); background: rgba(99,179,237,0.1); color: #90cdf4; transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(99,179,237,0.18); }
.btn-hero-school:hover { border-color: rgba(167,139,250,0.6); background: rgba(167,139,250,0.1); color: #c4b5fd; transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 28px rgba(167,139,250,0.18); }

/* Animated ticker */
.impact-ticker {
  position: relative; z-index: 1;
  margin-top: 80px; overflow: hidden; padding: 20px 0;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.5s both;
}
.ticker-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dim);
  text-align: center; margin-bottom: 20px;
}
.ticker-track {
  display: flex; gap: 48px;
  animation: ticker 30s linear infinite;
  white-space: nowrap; width: max-content;
}
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  color: var(--text-dim);
}
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* --- HOW IT WORKS --- */
.section { padding: 100px 40px; }

.profile-micro-stats {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-stat-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
}

.profile-stat-button:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.profile-post-count {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.profile-react-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-grid-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-post-tile {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  text-align: left;
}

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

.profile-post-fallback {
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-post-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.profile-post-snippet {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.profile-post-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.72rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
}

.profile-network-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
}

.profile-network-box h5 {
  margin-bottom: 8px;
}

.profile-network-list {
  display: grid;
  gap: 8px;
}

.profile-network-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.01);
}

.profile-network-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-network-main span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.profile-network-score {
  font-weight: 800;
  color: var(--accent);
}

.profile-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1200;
}

.profile-modal-card {
  width: min(760px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 14px;
}

.profile-modal-card.profile-post-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: 90vh;
  overflow: hidden;
  padding: 0;
}

@media (max-width: 900px) {
  .profile-modal-card.profile-post-modal {
    grid-template-columns: 1fr;
  }
}

.profile-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.profile-close {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: transparent;
}

.profile-user-list {
  display: grid;
  gap: 8px;
}

.profile-user-list-container {
  max-height: 70vh;
  overflow-y: auto;
  padding: 0;
}

.profile-list-modal {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  padding: 0;
  overflow: hidden;
}

.profile-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 20px;
  background: transparent;
  transition: background 0.2s;
}

.profile-user-row:hover {
  background: var(--surface2);
}

.profile-user-row:last-child {
  border-bottom: none;
}

.profile-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-user-avatar-fallback {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 25%, var(--surface));
  font-weight: 700;
}

.profile-user-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.profile-user-name {
  font-weight: 700;
}

.profile-user-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.profile-post-modal-image {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.profile-post-modal-body {
  white-space: pre-wrap;
  color: var(--text);
  margin-bottom: 10px;
}

.profile-post-modal-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow: auto;
}

.profile-post-modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}

.profile-post-modal-sidebar {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.profile-post-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-post-modal-engagement {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.engagement-action-btn {
  flex: 1;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.engagement-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--green);
  color: var(--green);
}

.engagement-action-btn.engagement-liked {
  background: rgba(91, 124, 255, 0.12);
  border-color: rgba(91, 124, 255, 0.4);
  color: #5b7cff;
}

.engagement-action-btn.engagement-liked:hover {
  background: rgba(91, 124, 255, 0.18);
  border-color: rgba(91, 124, 255, 0.6);
  color: #5b7cff;
}

.engagement-action-btn span:last-child {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
}

.engagement-action-btn.engagement-liked span:last-child {
  color: #5b7cff;
}

.profile-post-modal-head.with-sidebar {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  padding: 14px 20px;
}

@media (max-width: 900px) {
  .profile-post-modal-image-wrapper {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 50vh;
  }
}

.story-emoji-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.story-emoji-btn:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: var(--text);
}

.story-emoji-btn.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.story-quick-actions {
  display: flex;
  gap: 10px;
  margin: 14px 0 16px;
}

.story-quick-btn {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 68%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.story-quick-btn:hover,
.story-quick-btn.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.image-upload-trigger {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 72%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.image-upload-trigger:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: var(--accent);
}

.image-upload-selected {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.image-upload-lock-scroll {
  overflow: hidden;
}

.image-upload-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 17, 0.54);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 2000;
}

.image-upload-modal[hidden] {
  display: none !important;
}

.image-upload-window {
  width: min(640px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, #ffffff 8%);
  padding: 14px;
  position: relative;
}

.image-upload-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
}

.image-upload-dropzone {
  width: 100%;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface2) 65%, transparent);
  padding: 22px 14px;
  text-align: center;
  color: var(--text-muted);
}

.image-upload-dropzone.dragging,
.image-upload-dropzone:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  color: var(--text);
}

.image-upload-drop-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.image-upload-drop-text {
  font-size: 0.92rem;
  font-weight: 700;
}

.image-upload-drop-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.image-upload-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.image-upload-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface2) 66%, transparent);
}

.image-upload-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.image-upload-progress {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface2) 85%, #ffffff 15%);
  overflow: hidden;
}

.image-upload-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.2s ease;
}

.image-upload-item.pending .image-upload-progress span {
  background: #5b7cff;
}

.image-upload-item.success .image-upload-progress span {
  background: #22b36b;
}

.image-upload-item.error .image-upload-progress span {
  background: #d64f4f;
}

.image-upload-status {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.org-profile-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.org-profile-post-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.org-profile-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.org-profile-post-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  color: #fff;
  font-size: 0.78rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent);
}

.dm-shared-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
}

.dm-shared-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.dm-shared-copy {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.dm-shared-author {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.dm-shared-title {
  font-weight: 700;
  font-size: 0.92rem;
}

.dm-shared-body {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.share-recipient-list {
  display: grid;
  gap: 10px;
}

.share-recipient-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.01);
}

.share-recipient-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.share-recipient-main {
  min-width: 0;
}

.share-recipient-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.share-recipient-meta {
  font-size: 0.79rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .profile-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-story-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .profile-post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 16px;
}
.section-label::before { content:''; width:20px; height:1px; background:var(--green); }
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 480px; }

/* Paths grid */
.paths-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px;
  max-width: 1100px; margin: 64px auto 0;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
}
.path-card {
  padding: 56px 48px; background: var(--surface);
  position: relative; overflow: hidden;
  transition: background 0.3s; cursor: pointer;
}
.path-card:hover { background: var(--surface2); }
.path-card + .path-card { border-left: 1px solid var(--border); }
.path-emoji { font-size: 3rem; margin-bottom: 20px; display: block; }
.path-card h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.04em; }
.path-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.path-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.path-list li { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.path-list li::before { content:'→'; color:var(--green); font-weight:700; }
.path-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 700;
  background: var(--green); color: var(--bg); border: none;
  transition: all 0.2s;
}
.path-cta:hover { background: #7affaa; transform: translateX(4px); }
.path-deco {
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(78,255,140,0.06); pointer-events: none;
}

/* --- BENTO FEATURES --- */
.bento-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1100px; margin: 60px auto 0;
}
.bento-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 22px; padding: 36px 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.bento-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-icon { font-size: 2.2rem; margin-bottom: 20px; }
.bento-card h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.bento-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }
.bento-tag { display: inline-block; margin-top: 18px; padding: 5px 14px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; background: rgba(78,255,140,0.1); color: var(--green); letter-spacing: 0.5px; }

/* --- PRICING SECTION (home) --- */
.pricing-home { max-width: 960px; margin: 60px auto 0; }
.pricing-home-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.ph-card {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px; background: var(--surface);
  transition: all 0.2s; position: relative;
}
.ph-card:hover { border-color: rgba(78,255,140,0.2); transform: translateY(-4px); }
.ph-card.best { border-color: rgba(78,255,140,0.4); background: rgba(78,255,140,0.04); }
.ph-best-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--bg);
  font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.ph-plan { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.ph-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; margin-bottom: 4px; }
.ph-price sup { font-size: 1rem; vertical-align: top; margin-top: 8px; }
.ph-period { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 24px; }
.ph-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.ph-features li { font-size: 0.83rem; color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.ph-features li .y { color: var(--green); }
.ph-features li .n { color: var(--text-dim); }
.ph-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  font-size: 0.875rem; font-weight: 700;
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  transition: all 0.2s;
}
.ph-btn:hover { border-color: var(--green); color: var(--green); }
.ph-btn.green { background: var(--green); color: var(--bg); border-color: var(--green); }
.ph-btn.green:hover { background: #7affaa; }

/* ============================
   FEED PAGE
============================ */
#page-feed {}
.feed-layout {
  display: grid; grid-template-columns: 250px 1fr 340px;
  gap: 28px; max-width: 1280px; margin: 0 auto;
  padding: 32px 24px;
  align-items: start;
}

/* Feed left sidebar */
.feed-sidebar-left {
  position: sticky; top: 84px;
}
.feed-profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.feed-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}
.feed-username { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.feed-handle { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }
.feed-stat-row { display: flex; gap: 16px; }
.feed-stat { text-align: center; }
.feed-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--green); }
.feed-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.feed-nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.feed-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  color: var(--text-muted); transition: all 0.2s;
}
.feed-nav-item:hover, .feed-nav-item.active { background: var(--surface); color: var(--text); }
.feed-nav-item .icon { font-size: 1rem; width: 22px; text-align: center; }
a.feed-nav-item { text-decoration: none; box-sizing: border-box; }

.story-card {
  background: var(--surface2);
  border: 1px solid rgba(78, 255, 140, 0.15);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.story-card .story-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  padding: 10px 18px 0;
}
.story-card .post-body-text { padding: 8px 18px 18px; }

/* Center feed */
.feed-center {}
.feed-create-post {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px; cursor: pointer;
  transition: border-color 0.2s;
}
.feed-create-post:hover { border-color: rgba(78,255,140,0.3); }
.feed-create-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-dim));
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.feed-create-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; padding: 10px 18px;
  font-size: 0.875rem; color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center;
}

/* Post card */
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.post-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 12px;
}
.post-org-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.post-org-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.post-org-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.verified-badge { color: var(--green); font-size: 0.7rem; }
.post-time-ml { font-size: 0.7rem; color: var(--text-dim); margin-left: auto; }
.post-img-frame {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative;
}
.post-img-frame.c1 { background: linear-gradient(135deg, #0a2e14 0%, #1a6b3c 100%); }
.post-img-frame.c2 { background: linear-gradient(135deg, #1a2e0a 0%, #4a6b1a 100%); }
.post-img-frame.c3 { background: linear-gradient(135deg, #0a1a2e 0%, #1a3a6b 100%); }
.post-img-frame.c4 { background: linear-gradient(135deg, #2e1a0a 0%, #6b3a1a 100%); }
.post-img-frame.c5 { background: linear-gradient(135deg, #2e0a1a 0%, #6b1a3a 100%); }
.promoted-chip {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(78,255,140,0.3); border-radius: 6px;
  padding: 3px 9px; font-size: 0.65rem; font-weight: 700;
  color: var(--green); letter-spacing: 1px; text-transform: uppercase;
}
.post-body-text { padding: 14px 18px; }
.post-title-text { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.post-desc-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.post-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  background: rgba(78,255,140,0.08); color: var(--green);
  border: 1px solid rgba(78,255,140,0.15);
}
.post-footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--border);
}
.post-actions-row { display: flex; gap: 4px; }
.pa-btn {
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600;
  border: none; transition: all 0.18s;
  display: flex; align-items: center; gap: 5px;
}
.pa-apply { background: var(--green); color: var(--bg); }
.pa-apply:hover { background: #7affaa; }
.pa-save { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.pa-save:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.pa-share { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.pa-share:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.post-spots-info { font-size: 0.75rem; color: var(--text-muted); }
.post-spots-info strong { color: var(--orange); }

/* Feed right sidebar */
.feed-sidebar-right { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.fsr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.fsr-title { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; color: var(--text-muted); letter-spacing: 0.5px; }
.org-suggest { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.org-sug-avatar { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.org-sug-name { font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.org-sug-dist { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }
.org-sug-follow {
  margin-left: auto; padding: 5px 12px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.2s;
}
.org-sug-follow:hover { border-color: var(--green); color: var(--green); }

.geo-detect {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-muted);
  padding: 10px 14px; background: rgba(78,255,140,0.05);
  border: 1px solid rgba(78,255,140,0.15); border-radius: 10px;
}
.geo-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse 2s infinite; }

/* ============================
   POST LISTING PAGE
============================ */
#page-post-listing { padding: 0; }
.post-listing-layout {
  max-width: 800px; margin: 0 auto; padding: 48px 24px 80px;
}
.page-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 32px; cursor: pointer; transition: color 0.2s;
}
.page-back:hover { color: var(--text); }
.pl-header { margin-bottom: 40px; }
.pl-header h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.pl-header p { font-size: 0.95rem; color: var(--text-muted); }

/* Post type selector */
.post-type-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 32px; }
.pt-option {
  padding: 20px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; text-align: center; transition: all 0.2s;
}
.pt-option:hover { border-color: rgba(78,255,140,0.3); }
.pt-option.selected { border-color: var(--green); background: rgba(78,255,140,0.05); }
.pt-option .pt-icon { font-size: 1.8rem; margin-bottom: 8px; }
.pt-option h5 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.pt-option p { font-size: 0.75rem; color: var(--text-muted); }

/* Form */
.form-section { margin-bottom: 32px; }
.form-section-title {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-label span { color: var(--text-muted); font-weight: 400; }
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem;
  color: var(--text); outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(78,255,140,0.1); }
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Photo upload */
.photo-upload {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all 0.2s; margin-bottom: 18px;
}
.photo-upload:hover { border-color: rgba(78,255,140,0.3); background: rgba(78,255,140,0.02); }
.photo-upload .pu-icon { font-size: 2.5rem; margin-bottom: 12px; }
.photo-upload p { font-size: 0.875rem; color: var(--text-muted); }
.photo-upload span { font-size: 0.75rem; color: var(--text-dim); }
.photo-preview { display: none; }

/* Cause chips selector */
.cause-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cause-chip {
  padding: 7px 14px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.cause-chip.active { background: rgba(78,255,140,0.1); border-color: var(--green); color: var(--green); }

/* Urgency toggle */
.urgency-toggle { display: flex; gap: 10px; }
.urg-opt {
  flex: 1; padding: 11px; border-radius: 10px;
  border: 1.5px solid var(--border); cursor: pointer;
  text-align: center; font-size: 0.82rem; font-weight: 600;
  transition: all 0.2s; background: var(--surface); color: var(--text-muted);
}
.urg-opt.selected { color: var(--text); }
.urg-opt.low.selected { border-color: var(--green); background: rgba(78,255,140,0.08); color: var(--green); }
.urg-opt.med.selected { border-color: var(--orange); background: rgba(255,140,66,0.08); color: var(--orange); }
.urg-opt.high.selected { border-color: var(--red); background: rgba(255,92,92,0.08); color: var(--red); }

/* Post preview */
.post-preview-pane {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-top: 32px;
}
.preview-header-bar {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.preview-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.submit-row { display: flex; gap: 12px; margin-top: 32px; }
.btn-submit {
  flex: 1; padding: 15px; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  background: var(--green); color: var(--bg); border: none;
  transition: all 0.2s;
}
.btn-submit:hover { background: #7affaa; }
.btn-draft {
  padding: 15px 24px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 600;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.2s;
}
.btn-draft:hover { border-color: rgba(255,255,255,0.3); color: var(--text); }

/* ============================
   AUTH PAGES
============================ */
.auth-layout {
  min-height: calc(100vh - 64px);
  display: grid; grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--surface); padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border); position: relative; overflow: hidden;
}
.auth-left-orb {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,255,140,0.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.auth-left h2 {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  letter-spacing: -1.5px; margin-bottom: 16px; line-height: 1.15; position: relative;
}
.auth-left p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; position: relative; }
.auth-benefits { list-style: none; display: flex; flex-direction: column; gap: 14px; position: relative; }
.auth-benefits li { display: flex; align-items: flex-start; gap: 12px; }
.auth-benefits li .ab-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(78,255,140,0.1); border: 1px solid rgba(78,255,140,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0; margin-top: 2px;
}
.auth-benefits li .ab-text h5 { font-size: 0.875rem; font-weight: 700; margin-bottom: 2px; }
.auth-benefits li .ab-text p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }

.auth-right {
  padding: 60px 56px;
  display: flex; flex-direction: column; justify-content: center;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.auth-right::-webkit-scrollbar { width: 0; }
.auth-top { margin-bottom: 36px; }
.auth-top .auth-mode-switch {
  display: flex; gap: 4px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px;
}
.auth-mode-btn {
  flex: 1; padding: 9px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  background: transparent; border: none; color: var(--text-muted);
  transition: all 0.2s;
}
.auth-mode-btn.active { background: var(--bg); color: var(--text); }
.auth-h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.05em; margin-bottom: 6px; }
.auth-sub { font-size: 0.875rem; color: var(--text-muted); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider span { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background: var(--border); }
.social-login-btn {
  width: 100%; padding: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.875rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px; transition: all 0.2s;
}
.social-login-btn:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.auth-footer-note { margin-top: 20px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }
.auth-footer-note a { color: var(--green); font-weight: 600; cursor: pointer; }
.form-input-dark {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.9rem; color: var(--text); outline: none;
  transition: border-color 0.2s; margin-bottom: 0;
}
.form-input-dark:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(78,255,140,0.1); }
.form-input-dark::placeholder { color: var(--text-dim); }
.form-error { font-size: 0.75rem; color: var(--red); margin-top: 5px; display: none; }
.form-label-dark { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group-dark { margin-bottom: 16px; }
.pw-strength { height: 3px; border-radius: 2px; margin-top: 6px; background: var(--border); overflow: hidden; }
.pw-strength-bar { height: 100%; border-radius: 2px; width: 0; transition: all 0.3s; }
.btn-auth {
  width: 100%; padding: 14px;
  background: var(--green); color: var(--bg);
  border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 800; letter-spacing: -0.3px;
  transition: all 0.2s; margin-top: 4px;
}
.btn-auth:hover { background: #7affaa; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(78,255,140,0.3); }

/* Org-specific fields */
.org-plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 8px; }
.org-plan-opt {
  padding: 14px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg);
  cursor: pointer; text-align: center; transition: all 0.2s;
}
.org-plan-opt.sel { border-color: var(--green); background: rgba(78,255,140,0.06); }
.org-plan-opt .opn { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; }
.org-plan-opt .opp { font-size: 0.85rem; color: var(--green); font-weight: 700; margin-top: 2px; }

/* ============================
   ABOUT PAGE
============================ */
.about-hero {
  padding: 80px 40px 60px; text-align: center; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.about-hero h1 { font-family: var(--font-display); font-size: clamp(3rem,7vw,6rem); font-weight: 800; letter-spacing: -3px; line-height: 0.95; margin-bottom: 24px; }
.about-hero h1 em { font-family: var(--font-serif); font-style: italic; color: var(--green); letter-spacing: -1px; }
.about-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.75; }
.about-orb { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(26,107,60,0.15) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }

.about-body { max-width: 1100px; margin: 0 auto; padding: 80px 40px; }
.about-mission {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  margin-bottom: 100px;
}
.about-mission .am-text h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; }
.about-mission .am-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.about-mission .am-visual {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.am-value {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 20px;
}
.am-value .amv-icon { font-size: 1.8rem; margin-bottom: 10px; }
.am-value h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.am-value p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

.team-section h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: all 0.2s;
}
.team-card:hover { border-color: rgba(78,255,140,0.2); transform: translateY(-3px); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.team-name { font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.team-bio { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* ============================
   CONTACT PAGE
============================ */
.contact-layout { max-width: 1000px; margin: 0 auto; padding: 60px 40px 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; margin-top: 48px; }
.contact-info h2 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.contact-info p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; }
.contact-method { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.cm-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.cm-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.cm-value { font-size: 0.9rem; font-weight: 600; margin-top: 2px; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }
.btn-contact-submit {
  width: 100%; padding: 14px; border-radius: 12px;
  background: var(--green); color: var(--bg);
  border: none; font-size: 1rem; font-weight: 700;
  transition: all 0.2s; margin-top: 4px;
}
.btn-contact-submit:hover { background: #7affaa; }
.select-dark {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%237a9485'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* ============================
   PRIVACY PAGE
============================ */
.privacy-layout { max-width: 760px; margin: 0 auto; padding: 60px 40px 100px; }
.privacy-layout h1 { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 8px; }
.privacy-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 48px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.privacy-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 48px; }
.privacy-toc h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; font-size: 0.875rem; }
.privacy-toc ol { padding-left: 18px; }
.privacy-toc li { font-size: 0.85rem; color: var(--green); margin-bottom: 6px; cursor: pointer; }
.privacy-toc li:hover { text-decoration: underline; }
.privacy-section { margin-bottom: 48px; }
.privacy-section h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.privacy-section p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.privacy-section ul { padding-left: 20px; }
.privacy-section ul li { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }

/* ============================
   FOOTER
============================ */
#footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 60px 40px 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1100px; margin: 0 auto 48px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-top: 12px; max-width: 200px; }
.footer-col h6 {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 10px; transition: color 0.2s; cursor: pointer;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-dim); flex-wrap: wrap; gap: 8px;
  max-width: 1100px; margin: 0 auto;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-dim); cursor: pointer; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ============================
   ANIMATIONS
============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; transform: translateY(44px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================
   SUCCESS TOAST
============================ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--green); color: var(--bg);
  padding: 14px 28px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 700;
  z-index: 9999; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 8px 32px rgba(78,255,140,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
  .paths-grid { grid-template-columns: 1fr; }
  .path-card + .path-card { border-left: none; border-top: 1px solid var(--border); }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
  .feed-layout { grid-template-columns: 1fr; }
  .feed-sidebar-left, .feed-sidebar-right { position: static; display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 28px; max-height: none; }
  .about-mission { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-home-grid { grid-template-columns: 1fr; }
  .post-type-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  #nav { padding: 0 20px; }
  .nav-center { display: none; }
  .li-search-form { width: 210px; }
  .li-item { min-width: 60px; }
  .li-item-label { font-size: 0.72rem; }
}

@media (max-width: 1180px) {
  .li-search-form { width: 260px; }
  .li-item { min-width: 66px; }
}

/* Flask app: server-rendered layout + flashes */
main.vonnect-main { display: block; min-height: 100vh; padding-top: 64px; }
a.nav-link { text-decoration: none; display: inline-block; color: inherit; background: transparent; border: none; font: inherit; cursor: pointer; }
a.nav-logo { text-decoration: none; }
#nav a.btn-ghost,
#nav a.btn-primary { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.von-flash-wrap { padding: 16px 40px 0; max-width: 960px; margin: 0 auto; }
@media (max-width: 768px) {
  .von-flash-wrap { padding: 16px 20px 0; }
}
.von-flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 0.875rem; border: 1px solid var(--border); }
.von-flash-success { background: rgba(78,255,140,0.08); border-color: rgba(78,255,140,0.25); color: var(--green); }
.von-flash-error { background: rgba(255,92,92,0.08); border-color: rgba(255,92,92,0.25); color: var(--red); }
.von-flash-info { background: rgba(255,255,255,0.04); color: var(--text-muted); }

a.btn-hero-main,
a.btn-hero-sec { text-decoration: none; }
a.ph-btn { text-decoration: none; display: block; }
a.pa-btn { text-decoration: none; box-sizing: border-box; }

body[data-theme="light"] {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface2: #f1f4eb;
  --surface3: #e6ece0;
  --border: rgba(40, 58, 46, 0.12);
  --green: #5b7cff;
  --green-dim: #4668f2;
  --green-dark: #dce5ff;
  --accent: #5b7cff;
  --accent-rgb: 91,124,255;
  --text: #1d2b22;
  --text-muted: #617268;
  --text-dim: #8c9b93;
  --red: #d64f4f;
  --orange: #d67a2f;
}

body[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #131825;
  --surface2: #1a2235;
  --surface3: #1e2a3a;
  --border: rgba(255,255,255,0.07);
  --green: #3b82f6;
  --green-dim: #2563eb;
  --green-dark: #1e3a5f;
  --accent: #3b82f6;
  --accent-rgb: 59,130,246;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #3d4f6b;
  --red: #ef4444;
  --orange: #f97316;
}

body {
  background:
    radial-gradient(circle at top left, rgba(91,124,255,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(91,124,255,0.05), transparent 24%),
    var(--bg);
  color: var(--text);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(59,130,246,0.05), transparent 24%),
    var(--bg);
}

#nav {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.nav-link:hover, .nav-link.active {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.btn-primary,
.btn-hero-main,
.btn-submit,
.btn-auth,
.btn-contact-submit,
.pa-apply,
.path-cta {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-hero-main:hover,
.btn-submit:hover,
.btn-auth:hover,
.btn-contact-submit:hover,
.pa-apply:hover,
.path-cta:hover {
  background: var(--green-dim);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn-ghost:hover,
.footer-col a:hover,
.auth-footer-note a,
.privacy-toc li,
.post-spots-info strong,
.feed-stat-num,
.section-label,
.section-label::before,
.bento-tag,
.chip,
.verified-badge {
  color: var(--accent);
}

.section-label::before {
  background: var(--accent);
}

.theme-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.settings-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.settings-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
}

.settings-nav-link.active,
.settings-nav-link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.settings-toggle-row,
.settings-check {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.settings-check {
  align-items: flex-start;
}

.settings-check input {
  margin-top: 3px;
}

.settings-check small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Notification preferences ── */
.notif-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.notif-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
  cursor: pointer;
}

.notif-item:last-of-type {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(0,0,0,0.02);
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 8px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.notif-desc {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Toggle Switch ── */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 50px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.toggle-switch input:checked + .toggle-slider {
  background: #3b82f6;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 0 0 3px rgba(59,130,246,0.1);
}

.toggle-switch input:checked + .toggle-slider::after {
  left: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.toggle-switch:hover .toggle-slider {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 0 0 2px rgba(0,0,0,0.05);
}

.toggle-switch input:checked:hover + .toggle-slider {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 0 0 3px rgba(59,130,246,0.15);
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(78,255,140,0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-large {
  width: 76px;
  height: 76px;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, white));
  color: #fff;
  font-weight: 800;
}

.feed-avatar.image,
.post-org-avatar.avatar-image {
  object-fit: cover;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.story-comment-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-comment-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.story-action-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-like-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 0;
}

.stats-grid,
.signup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.org-review-form textarea.form-input-dark {
  min-height: 90px;
  resize: vertical;
}

.feed-tabbar {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.feed-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.feed-tab.active,
.feed-tab:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.area-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.active-chip {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.story-image-wrap {
  padding: 0 18px 18px;
}

.story-repost-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dm-attachment {
  display: block;
  width: min(320px, 100%);
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 12px;
  border: 1px solid var(--border);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dm-shell {
  max-width: 1180px;
  margin: 0 auto;
  height: calc(100vh - 130px);
  min-height: 480px;
  max-height: 900px;
  display: grid;
  grid-template-columns: 340px 1fr;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}

.dm-sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.dm-sidebar-top {
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--border);
}

.dm-sidebar-top h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.dm-sidebar-tabs {
  display: flex;
  gap: 18px;
  align-items: center;
}

.dm-tab {
  color: var(--text-muted);
  font-weight: 700;
}

.dm-tab.active {
  color: var(--text);
}

.dm-request-count {
  color: var(--accent);
}

.dm-thread-list {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1;
}

.dm-thread-item {
  display: grid;
  grid-template-columns: 56px 1fr 12px;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  text-decoration: none;
  color: inherit;
}

.dm-thread-item:hover,
.dm-thread-item.active {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.dm-thread-avatar,
.dm-chat-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dm-thread-name,
.dm-chat-name {
  font-weight: 700;
  font-size: 1.02rem;
}

.dm-thread-preview,
.dm-chat-sub,
.dm-empty-side {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dm-thread-copy {
  min-width: 0;
}

.dm-thread-preview {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.dm-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.dm-side-section {
  padding: 18px 18px 8px;
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dm-thread-note {
  opacity: 0.9;
}

.dm-main {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  overflow: hidden;
}

body[data-theme="dark"] .dm-main {
  background: var(--bg);
}

.dm-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.dm-chat-user {
  display: flex;
  gap: 14px;
  align-items: center;
}

.dm-chat-actions {
  display: flex;
  gap: 12px;
}

.dm-chat-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.dm-chat-body {
  overflow-y: auto;
  min-height: 0;
  padding: 22px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dm-bubble-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.dm-bubble-row.mine {
  justify-content: flex-end;
}

.dm-bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dm-bubble-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(72%, 640px);
}

.dm-bubble-row.mine .dm-bubble-stack {
  align-items: flex-end;
}

.dm-bubble {
  background: #eef1f5;
  color: #1b232d;
  padding: 12px 18px;
  border-radius: 22px;
  line-height: 1.45;
  font-size: 0.98rem;
  white-space: pre-wrap;
}

.dm-bubble.mine {
  background: #5669ff;
  color: #fff;
}

body[data-theme="dark"] .dm-bubble {
  background: var(--surface2);
  color: var(--text);
}

body[data-theme="dark"] .dm-bubble.mine {
  background: #5669ff;
  color: #fff;
}

.dm-chat-attachment {
  width: min(300px, 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.dm-compose {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.dm-compose-field {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface);
}

.dm-compose-icon {
  font-size: 1.25rem;
  cursor: pointer;
}

.dm-compose-input,
.dm-compose-gif {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 0.96rem;
}

.dm-compose-input {
  flex: 1;
}

.dm-compose-gif {
  width: 180px;
}

.dm-send-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.dm-empty-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  gap: 10px;
}

.story-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.story-comments {
  border-top: 1px solid var(--border);
  padding: 16px 18px 18px;
}

.story-comments-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.story-comment {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.story-comment strong {
  color: var(--text);
}

.story-comment-empty {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.story-comment-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.story-comment-form .form-input {
  margin: 0;
}

.org-suggest {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}

.org-sug-follow {
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.org-sug-follow:hover {
  background: var(--accent);
  color: #fff;
}

.post-card,
.bento-card,
.feed-profile-card,
.feed-create-post,
.fsr-card,
.contact-form,
.privacy-toc,
.story-card,
.ph-card,
.path-card,
.auth-left,
.post-preview-pane {
  box-shadow: 0 14px 40px rgba(26, 41, 34, 0.05);
}

body[data-theme="dark"] .post-card,
body[data-theme="dark"] .bento-card,
body[data-theme="dark"] .feed-profile-card,
body[data-theme="dark"] .feed-create-post,
body[data-theme="dark"] .fsr-card,
body[data-theme="dark"] .contact-form,
body[data-theme="dark"] .privacy-toc,
body[data-theme="dark"] .story-card,
body[data-theme="dark"] .ph-card,
body[data-theme="dark"] .path-card,
body[data-theme="dark"] .auth-left,
body[data-theme="dark"] .post-preview-pane {
  box-shadow: none;
}

@media (max-width: 900px) {
  .feed-tabbar {
    flex-wrap: wrap;
  }

  .story-comment-form {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-layout,
  .stats-grid,
  .signup-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    position: static;
  }

  .dm-shell {
    grid-template-columns: 1fr;
  }

  .dm-sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dm-main {
    min-height: 560px;
    height: auto;
  }

  .dm-compose-field {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .dm-compose-gif {
    width: 100%;
  }
}

.org-team-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.org-team-role-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface2) 80%, transparent);
}

.org-team-role-title {
  margin-bottom: 10px;
}

.org-team-role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.org-team-role-owner {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.org-team-role-admin {
  background: color-mix(in srgb, #2eaadc 24%, transparent);
}

.org-team-role-coordinator {
  background: color-mix(in srgb, #6e7b8f 24%, transparent);
}

.org-team-perm-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.org-team-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.org-team-member-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.org-team-member-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.org-team-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.org-team-member-name {
  font-weight: 700;
}

.org-team-member-email {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.org-team-member-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.org-team-edit-form {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px;
}

.org-team-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.org-team-perm-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.org-team-check-label {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.org-team-perms-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-team-perm-chip {
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--text-muted);
}

.bento-action {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.bento-action:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.bento-action-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  font-size: 1.1rem;
}

.bento-action-title {
  font-weight: 700;
}

.bento-action-sub {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.dm-call-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dm-call-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  cursor: pointer;
}

.dm-call-btn-video {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.dm-call-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dm-call-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 30, 0.5);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dm-call-modal {
  width: min(560px, 95vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.dm-call-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dm-video-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
}

.dm-video {
  width: 100%;
  border-radius: 12px;
  background: #0b1119;
  min-height: 140px;
  border: 1px solid var(--border);
}

@media (max-width: 760px) {
  .dm-video-grid {
    grid-template-columns: 1fr;
  }
}

.story-carousel,
.profile-post-carousel {
  position: relative;
}

.post-carousel-arrow,
.post-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(14, 20, 26, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 1rem;
  line-height: 1;
}

.post-carousel-arrow:hover,
.post-modal-arrow:hover {
  background: rgba(14, 20, 26, 0.84);
}

.post-carousel-prev,
.post-modal-arrow-prev {
  left: 10px;
}

.post-carousel-next,
.post-modal-arrow-next {
  right: 10px;
}

.post-carousel-dots,
.post-modal-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}

.post-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.post-carousel-dot.active {
  width: 16px;
  background: #fff;
}

/* ============================
   TOAST / SNACKBAR
============================ */
.von-toast-wrap {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.von-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  pointer-events: auto;
  animation: toastIn 0.28s cubic-bezier(.22,1,.36,1) both;
  cursor: pointer;
}

.von-toast.von-toast-hiding {
  animation: toastOut 0.22s ease forwards;
}

.von-toast-success { border-color: rgba(78,255,140,0.3); color: var(--green); }
.von-toast-error   { border-color: rgba(255,92,92,0.3);  color: var(--red);   }
.von-toast-info    { color: var(--text-muted); }

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

/* ============================
   MOBILE BOTTOM NAV
============================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: env(safe-area-inset-bottom, 0) 0 0;
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 54px;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  gap: 2px;
  position: relative;
  transition: color 0.15s;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
  color: var(--accent);
}

.mobile-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-nav-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 20px);
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.mobile-nav-dot {
  position: absolute;
  top: 5px;
  right: calc(50% - 20px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 760px) {
  .mobile-bottom-nav { display: block; }
  /* Push page content above bottom nav */
  .vonnect-main, footer#footer { padding-bottom: 62px; }
  /* Hide the desktop top-bar nav items so the screen doesn't double up */
  .li-topbar { display: none !important; }
  /* Keep logo search visible for logged-in users */
  #nav .nav-center { display: flex; }
  /* Move FAB above bottom nav */
  .quick-post-fab { bottom: 70px; }
}

/* ============================
   PROFILE COMPLETION BAR
============================ */
.profile-progress-bar-wrap {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.profile-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.profile-progress-bar-bg {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.profile-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.6s cubic-bezier(.22,1,.36,1);
}

/* ============================
   AVATAR PREVIEW MODAL
============================ */
#avatar-preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#avatar-preview-modal.open { display: flex; }
#avatar-preview-modal .apm-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
#avatar-preview-modal img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid var(--border);
}
#avatar-preview-modal .apm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

/* ============================
   DEADLINE URGENCY CHIP
============================ */
.chip-urgent {
  background: rgba(239,68,68,.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.25);
  font-weight: 700;
}

/* ============================
   NAV APP-UPDATE DOT
============================ */
.li-update-dot {
  position: absolute;
  top: 3px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid var(--bg);
}

/* ============================
   SKELETON LOADERS
============================ */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.04) 80%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: rgba(17,26,21,0.75);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  padding: 18px;
}
.skeleton-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
}
.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full { width: 100%; }
.skeleton-thumb {
  width: 100%; height: 160px;
  margin: 12px 0;
  border-radius: var(--radius-sm);
}

/* ============================
   CHIP COLOR VARIANTS
============================ */
.chip-education   { background: rgba(96,165,250,0.1);  color: #60a5fa; }
.chip-environment { background: rgba(52,211,153,0.1);  color: #34d399; }
.chip-arts        { background: rgba(196,181,253,0.1); color: #c4b5fd; }
.chip-health      { background: rgba(251,113,133,0.1); color: #fb7185; }
.chip-animals     { background: rgba(251,191,36,0.1);  color: #fbbf24; }
.chip-community   { background: rgba(249,115,22,0.1);  color: #f97316; }
.chip-sports      { background: rgba(14,165,233,0.1);  color: #0ea5e9; }
.chip-seniors     { background: rgba(232,121,249,0.1); color: #e879f9; }

/* ============================
   ICON SPAN NORMALIZATION
============================ */
span.icon {
  font-size: 1em;
  line-height: 1;
  vertical-align: -0.1em;
  display: inline-block;
  font-style: normal;
}

/* ============================
   NOISE TEXTURE OVERLAY
============================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ============================
   GRADIENT FADE DIVIDERS
============================ */
.divider-fade {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}
.section + .section,
.impact-ticker {
  border-top-color: transparent;
  border-top: none;
  position: relative;
}
.section + .section::before,
.impact-ticker::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  position: absolute;
  top: 0; left: 0; right: 0;
}

/* ============================
   NOTIFICATIONS PAGE
============================ */
.notif-empty {
  text-align: center;
  padding: 72px 24px;
  color: var(--text-muted);
}
.notif-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.notif-empty h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.notif-empty p {
  font-size: 0.9rem;
  margin: 0;
}
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.15s, background 0.15s;
}
.notif-item.notif-unread {
  border-color: rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.05);
}
.notif-item:hover {
  border-color: var(--accent);
}
.notif-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.notif-kind-school_invite { background: rgba(99,102,241,0.15); }
.notif-kind-app_status    { background: rgba(16,185,129,0.12); }
.notif-kind-hours_verified { background: rgba(16,185,129,0.12); }
.notif-kind-message       { background: rgba(59,130,246,0.12); }
.notif-kind-announcement  { background: rgba(245,158,11,0.12); }
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
}
.notif-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.notif-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.notif-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.notif-new-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99,102,241,0.15);
  border-radius: 4px;
  padding: 2px 7px;
}
.notif-action-btn {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 8px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.notif-action-btn:hover {
  background: rgba(99,102,241,0.12);
  border-color: var(--accent);
}


/* ============================
   LANDING PAGE REDESIGN (2026)
============================ */

@keyframes lp-beam      { 0%{transform:translateX(-100%) rotate(30deg)} 100%{transform:translateX(400%) rotate(30deg)} }
@keyframes lp-glowPulse { 0%,100%{opacity:.5} 50%{opacity:1} }
@keyframes lp-slidePost { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes lp-dotPop    { 0%{transform:scale(0)} 60%{transform:scale(1.3)} 100%{transform:scale(1)} }

/* Bento grid overrides for main page */
#page-home .bento-section { background:var(--bg); padding:96px 40px; }
#page-home .bento-grid { grid-template-columns:repeat(3,1fr); gap:28px; margin-top:56px; }
#page-home .bento-card { background:var(--surface); border-color:var(--border); padding:40px 36px; min-height:260px; display:flex; flex-direction:column; }
#page-home .bento-card.wide { grid-column:span 2; }
#page-home .bento-card:hover { border-color:var(--border); box-shadow:0 4px 18px rgba(0,0,0,.14); transform:translateY(-3px); }
#page-home .bento-card::before { background:linear-gradient(90deg,transparent,rgba(78,255,140,.12),transparent); }
#page-home .bento-tag { background:rgba(78,255,140,.08); color:var(--green); border:1px solid rgba(78,255,140,.18); margin-top:auto; padding-top:18px; }
#page-home .bento-card h4 { font-size:1.3rem; margin-bottom:12px; }
#page-home .bento-card p { font-size:0.9rem; line-height:1.75; }

@media(max-width:900px){
  #page-home .bento-section { padding:72px 24px; }
  #page-home .bento-grid { grid-template-columns:repeat(2,1fr); gap:18px; }
  #page-home .bento-card.wide { grid-column:span 2; }
  #page-home .bento-card { min-height:200px; padding:28px 24px; }
}
@media(max-width:580px){
  #page-home .bento-grid { grid-template-columns:1fr; }
  #page-home .bento-card.wide { grid-column:span 1; }
}

.lp-preview { padding:112px 40px; background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); overflow:hidden; position:relative; }
.lp-preview::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(78,255,140,.4),transparent); }
.lp-preview-inner { max-width:1100px; margin:0 auto; }
.lp-preview-layout { display:grid; grid-template-columns:1fr 1.1fr; gap:72px; align-items:center; margin-top:48px; }
.lp-preview-copy .section-h2 { font-size:clamp(1.9rem,3.5vw,3rem); color:var(--text); }
.lp-preview-copy .section-sub { color:var(--text-muted); margin-top:16px; }
.lp-preview-bullets { margin-top:32px; display:flex; flex-direction:column; gap:22px; }
.lp-prev-bullet { display:flex; align-items:flex-start; gap:16px; }
.lp-pb-icon { width:42px; height:42px; border-radius:11px; flex-shrink:0; background:rgba(78,255,140,.08); border:1px solid rgba(78,255,140,.18); display:flex; align-items:center; justify-content:center; font-size:1.1rem; transition:transform .3s ease,background .2s; }
.lp-prev-bullet:hover .lp-pb-icon { transform:scale(1.12); background:rgba(78,255,140,.15); }
.lp-pb-text h5 { font-family:var(--font-display); font-size:.9rem; font-weight:700; margin-bottom:3px; color:var(--text); }
.lp-pb-text p  { font-size:.82rem; color:var(--text-muted); line-height:1.65; }
.lp-mockup-wrap { position:relative; }
.lp-mockup-glow { position:absolute; inset:-60px; background:radial-gradient(ellipse at center,rgba(78,255,140,.1) 0%,transparent 65%); pointer-events:none; animation:lp-glowPulse 4s ease-in-out infinite; }
.lp-mockup-frame { background:var(--bg); border:1px solid var(--border); border-radius:20px; overflow:hidden; box-shadow:0 28px 90px rgba(0,0,0,.4),0 0 0 1px rgba(78,255,140,.08); }
.lp-mockup-bar  { background:var(--surface); border-bottom:1px solid var(--border); padding:10px 16px; display:flex; align-items:center; gap:10px; }
.lp-mockup-dots { display:flex; gap:6px; }
.lp-mockup-dots span { width:10px; height:10px; border-radius:50%; }
.lp-mockup-dots span:nth-child(1){background:#ff5c5c;} .lp-mockup-dots span:nth-child(2){background:#ffbd2e;} .lp-mockup-dots span:nth-child(3){background:#27c93f;}
.lp-mockup-url { flex:1; background:rgba(255,255,255,.05); border-radius:6px; padding:5px 12px; font-size:.72rem; color:var(--text-muted); font-family:monospace; }
.lp-mock-topbar { padding:10px 14px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; background:var(--bg); }
.lp-mock-logo { font-family:var(--font-display); font-weight:800; font-size:.9rem; background:linear-gradient(135deg,var(--green),#7affaa); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.lp-mock-feed { padding:14px; display:flex; flex-direction:column; gap:10px; max-height:440px; overflow:hidden; background:var(--bg); }
.lp-mock-feed-nav { display:flex; gap:6px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.lp-mock-chip { padding:5px 13px; border-radius:100px; font-size:.7rem; font-weight:600; color:var(--text-muted); }
.lp-mock-chip.on { background:rgba(78,255,140,.1); color:var(--green); border:1px solid rgba(78,255,140,.22); }
.lp-mock-post { background:var(--surface); border:1px solid var(--border); border-radius:13px; overflow:hidden; transition:transform .3s ease,border-color .2s; }
.lp-mock-post:hover { transform:translateY(-2px); border-color:rgba(78,255,140,.3); }
.lp-mock-post-img { height:120px; display:flex; align-items:center; justify-content:center; font-size:2.6rem; position:relative; }
.lp-mock-post-img.c1 { background:linear-gradient(135deg,#0a1430 0%,#162060 100%); }
.lp-mock-post-img.c2 { background:linear-gradient(135deg,#0d1a0d 0%,#1a4020 100%); }
.lp-mock-chip-badge { position:absolute; top:8px; right:8px; background:var(--green); border-radius:6px; padding:2px 8px; font-size:.58rem; font-weight:800; color:#000; text-transform:uppercase; }
.lp-mock-post-body { padding:10px 12px; background:var(--surface); }
.lp-mock-org   { font-size:.68rem; color:var(--green); font-weight:700; margin-bottom:3px; }
.lp-mock-title { font-family:var(--font-display); font-size:.8rem; font-weight:700; margin-bottom:4px; color:var(--text); }
.lp-mock-meta  { font-size:.68rem; color:var(--text-muted); }
.lp-mock-row   { display:flex; gap:6px; margin-top:8px; align-items:center; }
.lp-mock-btn   { padding:5px 12px; border-radius:7px; font-size:.66rem; font-weight:700; border:none; cursor:pointer; }
.lp-mock-apply { background:var(--green); color:#000; }
.lp-mock-save  { background:rgba(255,255,255,.06); color:var(--text-muted); }
.lp-mock-loc   { margin-left:auto; font-size:.63rem; color:var(--text-dim,var(--text-muted)); }

.lp-bento-wide-inner { display:flex; justify-content:space-between; align-items:center; gap:32px; flex:1; }
.lp-bento-chart { width:130px; height:90px; flex-shrink:0; display:flex; align-items:flex-end; gap:6px; padding:8px; background:var(--surface2,var(--bg)); border-radius:12px; border:1px solid var(--border); }
.lp-bento-bar-wrap { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; }
.lp-bento-bar { width:100%; border-radius:3px 3px 0 0; background:rgba(78,255,140,.2); }
.lp-bento-bar.hi { background:var(--green); }
.lp-bento-bar-lbl { font-size:.5rem; color:var(--text-muted); font-weight:600; }
.lp-bento-map { width:130px; height:90px; flex-shrink:0; background:var(--surface2,var(--bg)); border-radius:12px; border:1px solid var(--border); display:grid; grid-template-columns:repeat(6,1fr); grid-template-rows:repeat(4,1fr); gap:3px; padding:10px; }
.lp-bento-dot { border-radius:50%; background:var(--border); transition:background .3s,transform .3s; }
.lp-bento-dot.lit { background:var(--green); animation:lp-dotPop .5s ease both; }
.lp-bento-notif { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.lp-notif-row  { display:flex; align-items:center; gap:8px; padding:7px 10px; background:var(--surface2,var(--bg)); border-radius:9px; border:1px solid var(--border); font-size:.72rem; }
.lp-notif-dot  { width:6px; height:6px; border-radius:50%; background:var(--green); flex-shrink:0; animation:pulse 2s infinite; }
.lp-notif-text { color:var(--text-muted); flex:1; }
.lp-notif-time { font-size:.64rem; color:var(--text-muted); opacity:.5; }
.lp-bento-qr { display:grid; grid-template-columns:repeat(6,1fr); gap:2px; width:72px; height:72px; padding:6px; background:white; border-radius:8px; margin-top:10px; }
.lp-qr-cell { border-radius:1px; }
.lp-qr-b { background:#0a0f0a; }

#lp-pricing { background:#0e1220; border-top:1px solid rgba(255,255,255,.07); position:relative; overflow:hidden; padding:112px 40px; }
#lp-pricing::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(91,140,255,.4),transparent); }
.lp-pricing-blob { position:absolute; pointer-events:none; border-radius:50%; }
.lp-pricing-blob-1 { top:-80px; left:-60px; width:440px; height:440px; background:radial-gradient(circle,rgba(91,140,255,.07) 0%,transparent 70%); }
.lp-pricing-blob-2 { bottom:-80px; right:-60px; width:380px; height:380px; background:radial-gradient(circle,rgba(120,60,240,.07) 0%,transparent 70%); }
.lp-pricing-inner { position:relative; z-index:1; max-width:780px; margin:0 auto; text-align:center; }
.lp-pricing-inner .section-label { color:#5b8cff; justify-content:center; display:inline-flex; }
.lp-pricing-inner .section-label::before { background:#5b8cff; }
.lp-pricing-inner .section-h2 { color:#eef0f8; margin-top:20px; }
.lp-pricing-inner p { font-size:1rem; color:#6b7a9e; line-height:1.82; max-width:440px; margin:20px auto 40px; }
.lp-pricing-pills { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-bottom:48px; }
.lp-pricing-pill { padding:7px 18px; border-radius:100px; font-size:.78rem; font-weight:600; background:rgba(91,140,255,.07); color:#5b8cff; border:1px solid rgba(91,140,255,.18); transition:background .2s; }
.lp-pricing-pill:hover { background:rgba(91,140,255,.14); }
.lp-pricing-ctas { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.lp-btn-p-main { padding:16px 38px; border-radius:100px; font-size:.95rem; font-weight:700; background:#5b8cff; color:white; border:none; text-decoration:none; display:inline-block; position:relative; overflow:hidden; transition:background .15s,transform .3s ease,box-shadow .25s; }
.lp-btn-p-main::after { content:""; position:absolute; top:-40%; left:-60px; width:40px; height:200%; background:rgba(255,255,255,.2); transform:skewX(-20deg); animation:lp-beam 3s ease-in-out infinite 2s; }
.lp-btn-p-main:hover { background:#84aaff; transform:translateY(-3px); box-shadow:0 12px 40px rgba(91,140,255,.35); }
.lp-btn-p-sec { padding:16px 32px; border-radius:100px; font-size:.95rem; font-weight:600; background:transparent; border:1px solid rgba(255,255,255,.13); color:#eef0f8; text-decoration:none; display:inline-block; transition:all .2s; }
.lp-btn-p-sec:hover { border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.04); }

@media(max-width:900px){
  .lp-preview-layout { grid-template-columns:1fr; }
}

/* -- District banner base classes -- */
.district-banner { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; max-width:1100px; margin:2px auto 0; padding:26px 48px; border-radius:0 0 24px 24px; transition:background .25s; }
.district-banner-left  { display:flex; align-items:center; gap:18px; }
.district-banner-icon  { font-size:1.7rem; }
.district-banner-title { font-family:var(--font-display); font-weight:800; font-size:.95rem; margin-bottom:3px; }
.district-banner-sub   { font-size:.82rem; color:var(--text-muted); }
.district-banner-right { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.d-pill { font-size:.7rem; font-weight:700; padding:4px 12px; border-radius:100px; }
.d-cta  { font-size:.84rem; font-weight:700; white-space:nowrap; }
