/* ============================================================
   TRENDTER — Main Stylesheet
   Inspired by Clubhouse: black, bold, yellow accent
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --bg:         #000000;
  --bg2:        #0d0d0d;
  --bg3:        #151515;
  --bg4:        #1c1c1c;
  --border:     #2a2a2a;
  --border2:    #333333;

  --accent:     #F2E200;
  --accent-dim: #c9bb00;
  --accent-bg:  rgba(242,226,0,0.08);

  --text:       #ffffff;
  --text2:      #a0a0a0;
  --text3:      #606060;
  --text-inv:   #000000;

  --danger:     #ff4444;
  --success:    #22c55e;
  --info:       #3b82f6;
  --warning:    #f59e0b;

  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  50px;

  --shadow:     0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.8);
  --glow:       0 0 40px rgba(242,226,0,0.15);

  --font-head:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;

  --nav-h:      64px;
  --sidebar-w:  260px;
  --feed-w:     600px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Utilities ───────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex    { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text2); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--text-inv);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 24px rgba(242,226,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
}
.btn-ghost:hover {
  background: var(--bg3);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #cc3333; }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-icon {
  padding: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg3);
  color: var(--text2);
  font-size: 18px;
}
.btn-icon:hover { background: var(--bg4); color: var(--text); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,226,0,0.12);
}
.form-control::placeholder { color: var(--text3); }
.form-control.error { border-color: var(--danger); }

.form-hint {
  font-size: 13px;
  color: var(--text3);
  margin-top: 6px;
}
.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 6px;
}

/* Password wrapper */
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: color 0.2s;
}
.pw-toggle:hover { color: var(--text); }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 18px;
  pointer-events: none;
}
.input-icon-wrap .form-control { padding-left: 46px; }

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}
.form-check-label { font-size: 14px; color: var(--text2); line-height: 1.5; cursor: pointer; }
.form-check-label a { color: var(--accent); }
.form-check-label a:hover { text-decoration: underline; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.alert-error   { background: rgba(255,68,68,0.1);  border: 1px solid rgba(255,68,68,0.3);  color: #f87171; }
.alert-info    { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }

/* ── Dividers ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text3);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body { padding: 24px; }

/* ── Avatar ──────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg4);
}
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 40px; height: 40px; }
.avatar-md { width: 52px; height: 52px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-xxl { width: 120px; height: 120px; }

/* ── Badge/Pill ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.badge-accent   { background: var(--accent-bg); color: var(--accent); }
.badge-success  { background: rgba(34,197,94,0.1); color: #4ade80; }
.badge-danger   { background: rgba(255,68,68,0.1); color: #f87171; }

/* ══════════════════════════════════════════════════════════ */
/*  LANDING PAGE                                             */
/* ══════════════════════════════════════════════════════════ */

/* ── Landing Nav ──────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}
.landing-nav.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo .logo-icon { font-size: 22px; }

.nav-links { display: flex; align-items: center; gap: 8px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -100px;
  animation-duration: 10s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: #ff6b35;
  bottom: -100px; right: 10%;
  animation-duration: 8s;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: #a855f7;
  top: 40%; right: 30%;
  animation-duration: 12s;
  animation-delay: -6s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-bg);
  border: 1px solid rgba(242,226,0,0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 3px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-item {}
.stat-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 14px;
  color: var(--text3);
  margin-top: 2px;
}

/* Floating cards in hero */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: min(400px, 38vw);
}

.floating-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}
.floating-card:hover { transform: translateY(-4px); }
.floating-card + .floating-card { margin-top: 16px; }
.fc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fc-user { font-weight: 700; font-size: 14px; }
.fc-time { font-size: 12px; color: var(--text3); margin-left: auto; }
.fc-text { font-size: 14px; color: var(--text2); line-height: 1.5; }
.fc-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text3);
}
.fc-actions span { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.fc-actions span:hover { color: var(--accent); }
.fc-tag { color: var(--accent); font-weight: 600; }

/* ── Section Common ──────────────────────────────────────── */
.section {
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--text2);
  max-width: 500px;
  line-height: 1.7;
}

/* ── Features Section ────────────────────────────────────── */
.features { background: var(--bg2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

.feature-card {
  background: var(--bg2);
  padding: 40px 36px;
  transition: background 0.3s;
  cursor: default;
}
.feature-card:hover { background: var(--bg3); }

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}
.feature-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── How It Works ────────────────────────────────────────── */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.step {
  position: relative;
  padding-top: 20px;
}
.step::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(50% + 28px);
  right: -50%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.3;
}
.step:last-child::before { display: none; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.step-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ── Trending Preview ────────────────────────────────────── */
.trending-section { background: var(--bg); }

.trending-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.trending-item {
  background: var(--bg2);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.2s;
  cursor: pointer;
}
.trending-item:hover { background: var(--bg3); }
.trending-rank {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--text3);
  min-width: 32px;
}
.trending-rank.hot { color: var(--accent); }
.trending-info { flex: 1; }
.trending-tag  { font-weight: 700; font-size: 16px; }
.trending-count { font-size: 13px; color: var(--text3); margin-top: 2px; }
.trending-up { margin-left: auto; color: var(--success); font-size: 13px; font-weight: 700; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-section {
  background: var(--accent);
  padding: 100px 40px;
  text-align: center;
}
.cta-section .section-title { color: #000; }
.cta-section .section-sub   { color: rgba(0,0,0,0.7); margin: 0 auto 40px; }
.cta-section .btn-primary   { background: #000; color: var(--accent); }
.cta-section .btn-primary:hover { background: #111; }
.cta-section .btn-outline   { border-color: rgba(0,0,0,0.3); color: #000; }
.cta-section .btn-outline:hover { border-color: #000; background: rgba(0,0,0,0.1); }

/* ── Landing Footer ──────────────────────────────────────── */
.landing-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  margin: 12px 0 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg4);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  font-size: 16px;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.footer-col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════════ */
/*  AUTH PAGES                                               */
/* ══════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth-panel {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.auth-logo {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 48px;
}

.auth-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-sub {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 36px;
}
.auth-sub a { color: var(--accent); font-weight: 600; }
.auth-sub a:hover { text-decoration: underline; }

.auth-illustration {
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-illustration .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}
.auth-illustration .orb-1 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: -100px; right: -100px;
}
.auth-illustration .orb-2 {
  width: 300px; height: 300px;
  background: #a855f7;
  bottom: -100px; left: -50px;
}
.auth-illus-content { position: relative; z-index: 1; text-align: center; }
.auth-illus-icon {
  font-size: 80px;
  display: block;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}
.auth-illus-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.auth-illus-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 300px;
  line-height: 1.6;
}

/* Username availability indicator */
.username-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 6px;
}
.username-status.available { color: var(--success); }
.username-status.taken     { color: var(--danger); }
.username-status.checking  { color: var(--text3); }

/* Password strength */
.pw-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--bg4);
  margin-top: 10px;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}
.pw-strength-text {
  font-size: 12px;
  margin-top: 4px;
}

/* CAPTCHA */
.captcha-box {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.captcha-question {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.captcha-input {
  width: 80px !important;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.captcha-label {
  font-size: 13px;
  color: var(--text3);
  margin-left: auto;
}

/* ══════════════════════════════════════════════════════════ */
/*  APP LAYOUT (Post-login)                                  */
/* ══════════════════════════════════════════════════════════ */

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr 300px;
  min-height: 100vh;
  max-width: 1300px;
  margin: 0 auto;
  gap: 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.sidebar-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  padding: 8px 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-nav { flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text2);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active {
  background: var(--accent-bg);
  color: var(--accent);
}
.nav-item .nav-icon { font-size: 22px; min-width: 26px; }
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
}

.sidebar-post-btn {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}
.sidebar-user:hover { background: var(--bg3); }
.sidebar-user-name  { font-weight: 700; font-size: 15px; }
.sidebar-user-handle { font-size: 13px; color: var(--text3); }
.sidebar-user-menu  { margin-left: auto; color: var(--text3); }

/* Main Feed */
.main-content {
  border-right: 1px solid var(--border);
  min-height: 100vh;
}
.feed-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 56px;
}
.feed-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
}
.feed-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.feed-tab {
  flex: 1;
  text-align: center;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.feed-tab.active { color: var(--text); }
.feed-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}
.feed-tab:hover { color: var(--text); background: var(--bg2); }

/* Right Sidebar */
.right-sidebar {
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.widget-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

/* Post Card */
.post-card {
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  transition: background 0.15s;
  cursor: pointer;
}
.post-card:hover { background: var(--bg2); }
.post-card-body { flex: 1; min-width: 0; }
.post-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.post-author-name  { font-weight: 700; font-size: 15px; }
.post-author-handle { color: var(--text3); font-size: 14px; }
.post-time { color: var(--text3); font-size: 14px; margin-left: auto; }
.post-content {
  font-size: 16px;
  line-height: 1.65;
  word-break: break-word;
}
.post-content .hashtag { color: var(--accent); font-weight: 600; }
.post-content .mention { color: var(--info); font-weight: 600; }
.post-actions {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  margin-left: -8px;
}
.post-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--text3);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s;
}
.post-action:hover.like-btn { color: #f87171; background: rgba(248,113,113,0.1); }
.post-action:hover.comment-btn { color: #60a5fa; background: rgba(96,165,250,0.1); }
.post-action:hover.repost-btn { color: #4ade80; background: rgba(74,222,128,0.1); }
.post-action.liked { color: #f87171; }
.post-action.reposted { color: #4ade80; }

/* ══════════════════════════════════════════════════════════ */
/*  ANIMATIONS                                               */
/* ══════════════════════════════════════════════════════════ */

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,226,0,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(242,226,0,0); }
}

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

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.hero-content .hero-eyebrow { animation: fadeUp 0.6s 0.1s both; }
.hero-content .hero-title   { animation: fadeUp 0.6s 0.2s both; }
.hero-content .hero-sub     { animation: fadeUp 0.6s 0.35s both; }
.hero-content .hero-actions { animation: fadeUp 0.6s 0.5s both; }
.hero-content .hero-stats   { animation: fadeUp 0.6s 0.65s both; }
.hero-visual                { animation: slideInRight 0.8s 0.4s both; }

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════ */
/*  RESPONSIVE                                               */
/* ══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .steps-wrap    { grid-template-columns: repeat(2, 1fr); }
  .step::before  { display: none; }
  .hero-visual   { display: none; }
  .app-layout    { grid-template-columns: var(--sidebar-w) 1fr; }
  .right-sidebar { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .landing-nav { padding: 0 20px; }
  .nav-links .btn:not(:last-child) { display: none; }

  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 28px; }

  .section { padding: 64px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .steps-wrap    { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-section   { padding: 64px 20px; }

  .auth-page { grid-template-columns: 1fr; }
  .auth-illustration { display: none; }
  .auth-panel { padding: 32px 24px; max-width: 100%; }

  .app-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    padding: 8px 16px;
    border-right: none;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    overflow: visible;
  }
  .sidebar-logo,
  .sidebar-nav .nav-item-label,
  .sidebar-post-btn,
  .sidebar-user-info,
  .sidebar-user-menu,
  .nav-badge { display: none; }
  .sidebar-nav { display: flex; justify-content: space-around; flex: 1; }
  .nav-item { flex-direction: column; padding: 8px; gap: 4px; border-radius: var(--radius-sm); }
  .nav-item .nav-icon { font-size: 24px; }
  .sidebar-user { margin-left: auto; }
  .main-content { margin-bottom: 68px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .captcha-box { flex-wrap: wrap; }
  .auth-panel { padding: 24px 16px; }
  .auth-logo  { margin-bottom: 32px; }
}

/* ── Dark/Light toggle prep ──────────────────────────────── */
.theme-light {
  --bg:    #ffffff;
  --bg2:   #f5f5f5;
  --bg3:   #eeeeee;
  --bg4:   #e0e0e0;
  --text:  #0a0a0a;
  --text2: #555555;
  --text3: #888888;
  --border: #e0e0e0;
  --border2: #cccccc;
}
