/* ═══════════════════════════════════════════════════════════════
   KVS NETWORK — Design System
   Font: Syne (headings) + Outfit (body)
   Theme: Deep Space Dark + Electric Indigo + Amber Gold
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg:         #080C14;
  --bg-1:       #0D1221;
  --bg-2:       #111827;
  --surface:    #161D2E;
  --surface-2:  #1E2740;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);

  --primary:    #4F46E5;
  --primary-l:  #6366F1;
  --primary-dim:#4F46E520;
  --accent:     #F59E0B;
  --accent-dim: #F59E0B18;
  --green:      #10B981;
  --red:        #EF4444;
  --cyan:       #06B6D4;

  --text:       #E8EDF5;
  --text-2:     #9BA8BF;
  --text-3:     #5D6B86;

  /* Fonts */
  --font-head: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Sizes */
  --nav-h: 62px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --glow: 0 0 40px rgba(79,70,229,0.15);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: var(--font-body);
  font-size: inherit;
}
img { max-width: 100%; }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Flash Messages ────────────────────────────────────────── */
.flash-container {
  position: fixed; top: 80px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border-2);
  backdrop-filter: blur(12px); max-width: 360px;
  animation: slideIn .3s ease;
  box-shadow: var(--shadow);
}
.flash-success { border-color: var(--green); }
.flash-success span { color: var(--green); }
.flash-error { border-color: var(--red); }
.flash-error span { color: var(--red); }
.flash p { flex: 1; font-size: 14px; color: var(--text); }
.flash button { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 18px; }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(8,12,20,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  color: var(--text); white-space: nowrap; flex-shrink: 0;
}
.nav-logo em { color: var(--primary-l); font-style: normal; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
  color: #fff; box-shadow: 0 0 20px rgba(79,70,229,0.4);
}
.logo-image {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: contain; box-shadow: 0 0 20px rgba(79,70,229,0.4);
}
.nav-search { flex: 1; max-width: 420px; }
.search-form {
  position: relative; display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 14px; color: var(--text-3); font-size: 18px;
  pointer-events: none;
}
.search-form input {
  width: 100%; padding: 9px 16px 9px 42px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; color: var(--text);
  transition: all .2s;
  outline: none;
}
.search-form input:focus {
  border-color: var(--primary); background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.search-form input::placeholder { color: var(--text-3); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13px; font-weight: 500;
  transition: all .2s; cursor: pointer;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--primary-l); background: var(--primary-dim); }
.nav-icon { font-size: 18px; line-height: 1; }
.nav-label { font-size: 11px; letter-spacing: .02em; }
.nav-user { position: relative; margin-left: 8px; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ac, var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: #fff; cursor: pointer; border: 2px solid var(--border);
  transition: all .2s;
}
.nav-avatar:hover { border-color: var(--primary); transform: scale(1.05); }
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 6px;
  min-width: 160px; display: none; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-lg);
}
.nav-user:hover .nav-dropdown { display: flex; }
.nav-dropdown a {
  padding: 8px 14px; border-radius: 6px; font-size: 14px;
  color: var(--text-2); transition: all .15s;
}
.nav-dropdown a:hover { background: var(--surface); color: var(--text); }
.nav-dropdown a.danger:hover { color: var(--red); }

/* ─── Page Layout ───────────────────────────────────────────── */
.page { padding-top: calc(var(--nav-h) + 24px); max-width: 1280px; margin: 0 auto; padding-bottom: 60px; }
.page-inner { padding: 0 24px; }
.three-col { display: grid; grid-template-columns: 240px 1fr 280px; gap: 24px; align-items: start; padding: 0 24px; }
.two-col   { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; padding: 0 24px; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.card-sm { padding: 14px 16px; border-radius: var(--radius-sm); }
.card-glass {
  background: rgba(22,29,46,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.sidebar-title {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 10px;
}

/* ─── Avatar ────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar-md { width: 42px; height: 42px; font-size: 17px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 99px; border: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-l));
  color: #fff; box-shadow: 0 4px 16px rgba(79,70,229,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(79,70,229,0.5); }
.btn-outline {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); border: none; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #FBBF24);
  color: #000; font-weight: 700;
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,0.35); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }

/* ─── Form Elements ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.form-input, .form-textarea, .form-select {
  padding: 11px 15px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); outline: none; transition: all .2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Tags / Badges ─────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.tag-primary { background: var(--primary-dim); color: var(--primary-l); }
.tag-accent  { background: var(--accent-dim);  color: var(--accent); }
.tag-green   { background: rgba(16,185,129,.12); color: var(--green); }
.tag-red     { background: rgba(239,68,68,.12);  color: var(--red); }
.tag-cyan    { background: rgba(6,182,212,.12);  color: var(--cyan); }
.tag-ghost   { background: var(--surface-2); color: var(--text-2); }

/* ─── Post Card ─────────────────────────────────────────────── */
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all .2s;
}
.post-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.post-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.post-meta { flex: 1; min-width: 0; }
.post-author {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--text);
}
.post-author a:hover { color: var(--primary-l); }
.post-sub { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-sub a:hover { color: var(--primary-l); }
.post-body { font-size: 14.5px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.post-actions {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.action-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px; border: none;
  background: transparent; color: var(--text-3);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .2s;
}
.action-btn:hover { background: var(--surface-2); color: var(--text); }
.action-btn.liked { color: var(--red); }
.action-btn.liked:hover { background: rgba(239,68,68,.12); }
.post-type-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 99px; font-weight: 600;
}
.type-achievement { background: var(--accent-dim); color: var(--accent); }
.type-question    { background: rgba(6,182,212,.12);  color: var(--cyan); }
.type-project     { background: var(--primary-dim);   color: var(--primary-l); }
.type-humor       { background: rgba(16,185,129,.12);  color: var(--green); }
.type-discussion  { background: var(--surface-2); color: var(--text-3); }

/* ─── Compose Box ───────────────────────────────────────────── */
.compose-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 20px;
}
.compose-top { display: flex; gap: 12px; margin-bottom: 12px; }
.compose-textarea {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); resize: none; outline: none;
  min-height: 80px; font-size: 15px; line-height: 1.6;
  transition: all .2s;
}
.compose-textarea:focus {
  border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.compose-textarea::placeholder { color: var(--text-3); }
.compose-bottom {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.compose-select {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 99px; padding: 7px 14px; color: var(--text-2);
  outline: none; cursor: pointer; font-size: 13px;
  transition: border-color .2s;
}
.compose-select:focus { border-color: var(--primary); }
.compose-select option { background: var(--bg-2); }

/* ─── Comments ──────────────────────────────────────────────── */
.comments-section { margin-top: 14px; display: none; }
.comments-section.open { display: block; }
.comment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.comment-item { display: flex; gap: 10px; }
.comment-body { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 14px; flex: 1; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.comment-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.comment-time { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.comment-input-row { display: flex; gap: 10px; align-items: flex-start; }
.comment-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 14px;
  color: var(--text); outline: none; font-size: 13px;
  transition: border-color .2s;
}
.comment-input:focus { border-color: var(--primary); }
.comment-input::placeholder { color: var(--text-3); }
.comment-submit {
  padding: 9px 16px; background: var(--primary); border: none;
  border-radius: var(--radius-sm); color: #fff; cursor: pointer;
  font-size: 13px; font-weight: 600; transition: background .2s; flex-shrink: 0;
}
.comment-submit:hover { background: var(--primary-l); }

/* ─── Sidebar Widgets ───────────────────────────────────────── */
.space-list { display: flex; flex-direction: column; gap: 2px; }
.space-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--radius-sm); cursor: pointer; transition: all .15s;
  color: var(--text-2); font-size: 14px;
}
.space-item:hover { background: var(--surface-2); color: var(--text); }
.space-item.active { background: var(--primary-dim); color: var(--primary-l); }
.space-icon { font-size: 16px; flex-shrink: 0; }
.space-count { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* ─── Opportunity Card ──────────────────────────────────────── */
.opp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: all .2s;
}
.opp-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.opp-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.opp-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.opp-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.opp-footer { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.opp-type-colors {
  internship: var(--green);
  job: var(--cyan);
  hackathon: var(--accent);
  collaboration: var(--primary-l);
  scholarship: #A78BFA;
  freelance: #F472B6;
  startup: var(--red);
}

/* ─── Event Card ────────────────────────────────────────────── */
.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; gap: 16px; transition: all .2s;
}
.event-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.event-date-box {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--primary-dim); border: 1px solid var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: var(--font-head);
}
.event-month { font-size: 10px; font-weight: 700; color: var(--primary-l); text-transform: uppercase; letter-spacing: .05em; }
.event-day { font-size: 24px; font-weight: 800; color: var(--primary-l); line-height: 1; }
.event-info { flex: 1; }
.event-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.event-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 10px; }
.event-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rsvp-btn { transition: all .2s; }
.rsvp-btn.rsvped { background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }

/* ─── Profile Page ──────────────────────────────────────────── */
.profile-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
}
.profile-banner {
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 50%, var(--cyan) 100%);
  position: relative;
}
.profile-banner-pattern {
  position: absolute; inset: 0; opacity: .15;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}
.profile-body { padding: 0 24px 24px; position: relative; }
.profile-avatar-wrap {
  margin-top: -36px; margin-bottom: 16px;
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--surface); overflow: hidden;
}
.profile-avatar-big {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 28px;
  color: #fff;
}
.profile-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); }
.profile-role { font-size: 14px; color: var(--text-2); margin: 2px 0 10px; }
.profile-bio { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 14px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.profile-skill-tag {
  padding: 4px 12px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
}
.profile-stats { display: flex; gap: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-3); }

/* ─── Spaces Grid ───────────────────────────────────────────── */
.spaces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.space-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: all .2s; cursor: pointer;
  text-decoration: none; display: block;
}
.space-card:hover {
  border-color: var(--primary); background: var(--surface-2);
  transform: translateY(-2px); box-shadow: var(--glow);
}
.space-card-icon { font-size: 28px; margin-bottom: 10px; }
.space-card-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.space-card-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.space-card-count { margin-top: 10px; font-size: 12px; color: var(--text-3); }
.category-title {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
  margin: 28px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ─── Landing Page ──────────────────────────────────────────── */
.landing { overflow: hidden; }
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; padding: 80px 24px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 10%, rgba(79,70,229,.2) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(245,158,11,.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: var(--primary-dim); border: 1px solid rgba(79,70,229,.3);
  font-size: 13px; font-weight: 600; color: var(--primary-l);
  margin-bottom: 28px;
}
.hero-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-l); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }
.hero-title {
  font-family: var(--font-head); font-size: clamp(40px, 7vw, 68px);
  font-weight: 800; line-height: 1.1; margin-bottom: 22px;
  letter-spacing: -.02em;
}
.hero-title em { color: var(--primary-l); font-style: normal; }
.hero-title strong { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-2); max-width: 540px; margin: 0 auto 36px; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.hstat-num { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--text); }
.hstat-label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.features { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.features-title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); font-weight: 700; text-align: center; margin-bottom: 12px; }
.features-sub { text-align: center; color: var(--text-2); margin-bottom: 56px; font-size: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s;
}
.feat-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-3px); }
.feat-icon { font-size: 32px; margin-bottom: 16px; }
.feat-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.landing-cta { padding: 100px 24px; text-align: center; position: relative; overflow: hidden; }
.landing-cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(79,70,229,.15) 0%, transparent 70%);
}
.landing-cta-inner { position: relative; max-width: 560px; margin: 0 auto; }
.landing-cta h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.02em; }
.landing-cta p { color: var(--text-2); font-size: 17px; margin-bottom: 36px; }

/* ─── Auth Page ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; position: relative;
}
.auth-bg {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 30%, rgba(79,70,229,.12) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(245,158,11,.06) 0%, transparent 50%);
}
.auth-card {
  width: 100%; max-width: 440px; position: relative;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-logo .logo-icon { width: 40px; height: 40px; font-size: 20px; }
.auth-logo span { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.auth-logo em { color: var(--primary-l); font-style: normal; }
.auth-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider { text-align: center; color: var(--text-3); font-size: 13px; margin: 4px 0; }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 24px; }
.auth-switch a { color: var(--primary-l); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 28px; width: 100%;
  max-width: 520px; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 22px; transition: color .2s; }
.modal-close:hover { color: var(--text); }

/* ─── Search Results ────────────────────────────────────────── */
.search-page { max-width: 720px; margin: 0 auto; padding: 0 24px; padding-top: calc(var(--nav-h) + 32px); }
.search-header { margin-bottom: 28px; }
.search-header h1 { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.result-section { margin-bottom: 32px; }
.result-section h2 { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.user-result {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; transition: all .2s;
}
.user-result:hover { border-color: var(--border-2); background: var(--surface-2); }

/* ─── Divider ───────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ─── Verified Badge ────────────────────────────────────────── */
.verified { color: var(--primary-l); font-size: 14px; }

/* ─── Utility ───────────────────────────────────────────────── */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.ml-auto { margin-left: auto; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary-l); }
.text-green { color: var(--green); }
.font-bold { font-family: var(--font-head); font-weight: 700; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }

/* ─── Feed: no posts ────────────────────────────────────────── */
.feed-empty {
  text-align: center; padding: 60px 20px;
  background: var(--surface); border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .three-col { grid-template-columns: 200px 1fr; }
  .three-col .sidebar:last-child { display: none; }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .three-col, .two-col { grid-template-columns: 1fr; padding: 0 16px; }
  .three-col .sidebar:first-child { display: none; }
  .nav-inner { padding: 0 16px; gap: 10px; }
  .nav-search { display: none; }
  .nav-label { display: none; }
  .nav-link { padding: 8px; }
  .nav-logo span { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .features-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeup { animation: fadeUp .4s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ─── Post Feed Staggered ───────────────────────────────────── */
.post-card:nth-child(1) { animation: fadeUp .3s ease .05s both; }
.post-card:nth-child(2) { animation: fadeUp .3s ease .10s both; }
.post-card:nth-child(3) { animation: fadeUp .3s ease .15s both; }
.post-card:nth-child(4) { animation: fadeUp .3s ease .20s both; }
.post-card:nth-child(5) { animation: fadeUp .3s ease .25s both; }
.post-card:nth-child(n+6) { animation: fadeUp .3s ease .30s both; }