@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --surface: #ffffff;
  --border: #e5e5ea;
  --border-light: #f0f0f3;
  --text: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #c8ff00;
  --accent-dark: #a8d900;
  --accent-soft: rgba(200, 255, 0, 0.12);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.08);
  --green: #10b981;
  --pink: #ec4899;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1600px; margin: 0 auto; padding: 0 16px; }

/* ============ NAV ============ */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.4rem; color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--text);
  display: flex; align-items: center; justify-content: center;
  padding: 5px;
}
.logo-mark svg {
  width: 100%; height: 100%;
  fill: var(--accent);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; padding: 8px 16px; border-radius: 100px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--text); background: var(--bg-alt); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 100px; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--accent); color: var(--text);
  box-shadow: 0 2px 8px rgba(200,255,0,0.3);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,255,0,0.35); }
.btn-dark {
  background: var(--text); color: #fff;
}
.btn-dark:hover { background: #333; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ============ AUTH ============ */
/* Auth nav buttons */
.nav-auth { display: flex; align-items: center; gap: 8px; }
.nav-auth-logged-out { display: flex; align-items: center; gap: 8px; }
.nav-auth-logged-in { display: none; align-items: center; gap: 8px; }

/* User avatar in nav */
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  cursor: pointer; position: relative; overflow: hidden;
  background: var(--purple); transition: all 0.2s;
}
.nav-avatar:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 8px; z-index: 60;
  display: none;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a, .nav-dropdown button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px; border: none; background: none;
  font-size: 0.88rem; color: var(--text-secondary); cursor: pointer;
  border-radius: 10px; transition: all 0.15s; text-decoration: none;
  font-family: 'Inter', sans-serif; text-align: left;
}
.nav-dropdown a:hover, .nav-dropdown button:hover {
  background: var(--bg-alt); color: var(--text);
}
.nav-dropdown .divider {
  height: 1px; background: var(--border-light); margin: 6px 0;
}
.nav-dropdown .logout-btn { color: #ef4444; }
.nav-dropdown .logout-btn:hover { background: rgba(239,68,68,0.06); color: #dc2626; }

/* Auth modal */
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--border-light);
}
.auth-tab {
  flex: 1; padding: 12px; text-align: center; font-weight: 600;
  font-size: 0.92rem; cursor: pointer; border: none; background: none;
  color: var(--text-muted); transition: all 0.2s; position: relative;
  font-family: 'Inter', sans-serif;
}
.auth-tab.active {
  color: var(--text);
}
.auth-tab.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--text);
}
.google-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; display: flex;
  align-items: center; justify-content: center; gap: 10px;
  font-family: 'Inter', sans-serif;
}
.google-btn:hover { border-color: var(--text-secondary); background: var(--bg-alt); }
.google-btn svg { width: 20px; height: 20px; }
.auth-divider {
  display: flex; align-items: center; gap: 16px; margin: 20px 0;
  color: var(--text-muted); font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}
.auth-error {
  background: rgba(239,68,68,0.08); color: #dc2626; padding: 10px 14px;
  border-radius: 10px; font-size: 0.85rem; margin-bottom: 16px; display: none;
}
.auth-error.show { display: block; }
.auth-switch {
  text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted);
}
.auth-switch a {
  color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* Profile modal */
.profile-photo-upload {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 24px; position: relative; cursor: pointer;
  background: var(--bg-alt); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: all 0.2s;
}
.profile-photo-upload:hover { border-color: var(--text-muted); }
.profile-photo-upload img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-photo-upload .upload-icon {
  font-size: 28px; color: var(--text-muted);
}
.profile-photo-upload input { display: none; }
.profile-photo-label {
  text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px;
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; top: -100px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,255,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg-2 {
  position: absolute; bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: 6px 16px 6px 8px; border-radius: 100px; font-size: 0.82rem;
  font-weight: 500; color: var(--text-secondary); margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 22px; color: var(--text);
}
.hero h1 .highlight {
  background: var(--accent); padding: 0 8px; border-radius: 8px;
  display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero p {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 520px; line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ HERO VISUAL ============ */
.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-visual {
  position: relative; z-index: 1;
}
.hero-card-stack {
  position: relative; height: 420px;
}
.hero-demo-card {
  position: absolute; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-demo-card.card-1 {
  width: 280px; top: 0; right: 20px; z-index: 3;
  animation: float-card 6s ease-in-out infinite;
}
.hero-demo-card.card-2 {
  width: 260px; top: 60px; right: 160px; z-index: 2;
  animation: float-card 6s ease-in-out infinite 1s;
}
.hero-demo-card.card-3 {
  width: 240px; bottom: 20px; right: 60px; z-index: 1;
  animation: float-card 6s ease-in-out infinite 2s;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.demo-preview {
  height: 130px; position: relative;
}
.demo-body { padding: 16px; }
.demo-body h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.demo-body p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.demo-author {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px 14px; font-size: 0.75rem; color: var(--text-muted);
}
.demo-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; color: #fff;
}

/* ============ TRUSTED BY / LOGOS ============ */
.trusted {
  padding: 50px 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.trusted p {
  font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
  margin-bottom: 28px; text-transform: uppercase; letter-spacing: 0.08em;
}
.trusted-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap; opacity: 0.45;
}
.trusted-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.2rem; color: var(--text);
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  padding: 100px 0;
}
.section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 540px; line-height: 1.7; margin-bottom: 48px;
}
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step-card {
  background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.step-card:hover {
  border-color: #bbb; box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 800; color: var(--accent);
  line-height: 1; margin-bottom: 18px;
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}
.step-card:hover .step-num { color: var(--accent); -webkit-text-stroke: 0; }
.step-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ============ PROJECTS SHOWCASE ============ */
.projects {
  padding: 80px 0; background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}
.filters {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px; border-radius: 100px; font-size: 0.82rem;
  font-weight: 500; background: var(--surface); color: var(--text-secondary);
  border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-secondary); }
.filter-btn.active {
  background: var(--text); color: #fff; border-color: var(--text);
}

/* App filter chips (Built with row) */
.app-filters {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.app-filters-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.app-filter-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.app-filter-chip {
  padding: 6px 14px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 500; background: var(--surface); color: var(--text-secondary);
  border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.app-filter-chip:hover { color: var(--text); border-color: var(--accent); }
.app-filter-chip.active {
  background: var(--accent); color: var(--text); border-color: var(--accent);
  font-weight: 600;
}

.project-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (min-width: 1600px) {
  .project-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .project-grid { grid-template-columns: 1fr; }
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.2s ease; cursor: pointer;
  text-decoration: none; color: inherit; display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: #bbb; transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
/* Compact card thumbnail */
.card-thumb {
  width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
/* Card info row: text left, stats right */
.card-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; gap: 8px; min-height: 0;
}
.card-info-text {
  flex: 1; min-width: 0; overflow: hidden;
}
.card-info-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0;
}
.card-creator {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.card-creator-pic {
  width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.card-creator-initial {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700; color: #fff;
}
/* Stats with flat icons */
.card-stats {
  display: flex; gap: 10px; flex-shrink: 0;
}
.card-stat {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}
.card-stat svg { opacity: 0.55; }

/* Legacy classes kept for other pages */
.card-preview {
  height: 180px; position: relative; overflow: hidden;
}
.card-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, var(--surface), transparent);
}
.card-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 100px; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.02em;
}
.tag-web { background: #dbeafe; color: #1d4ed8; }
.tag-art { background: #fce7f3; color: #be185d; }
.tag-game { background: #d1fae5; color: #047857; }
.tag-tool { background: #fef3c7; color: #b45309; }
.tag-ai { background: #ede9fe; color: #6d28d9; }
.tag-mobile { background: #e0e7ff; color: #3730a3; }
.tag-image { background: #fce7f3; color: #be185d; }
.card-built-with {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 100px; font-size: 0.68rem;
  font-weight: 600; background: rgba(0,0,0,0.6); color: #fff;
  backdrop-filter: blur(4px); letter-spacing: 0.02em;
}

.card-body { padding: 20px; }
.card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 700; margin-bottom: 6px;
}
.card-body p {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 18px;
}
.card-author { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff;
}
.card-author span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.card-stats-legacy {
  display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-muted);
}
.card-stats span { display: flex; align-items: center; gap: 4px; }

/* ============ STATS BAR ============ */
.stats-bar {
  padding: 60px 0;
}
.stats-inner {
  background: var(--text); color: #fff; border-radius: var(--radius-lg);
  padding: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem; font-weight: 800; line-height: 1;
  margin-bottom: 6px;
}
.stat-num .accent-text { color: var(--accent); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ============ VALUES ============ */
.values { padding: 100px 0; }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  transition: all 0.3s;
}
.value-card:hover { border-color: #bbb; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.value-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.value-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}
.value-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ============ FAQ ============ */
.faq { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--border-light); }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 900px; margin: 0 auto;
}
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  padding: 20px 24px; font-weight: 600; font-size: 0.92rem;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; transition: background 0.2s;
  user-select: none;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-arrow { font-size: 1.2rem; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner {
  padding: 0 24px 20px; font-size: 0.88rem;
  color: var(--text-secondary); line-height: 1.6;
}

/* ============ CTA ============ */
.cta-section { padding: 80px 0; }
.cta-box {
  background: var(--text); border-radius: var(--radius-lg);
  padding: 72px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: var(--accent); filter: blur(150px); opacity: 0.15;
  top: -100px; right: -50px; pointer-events: none;
}
.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; color: #fff; margin-bottom: 14px; position: relative; z-index: 1;
}
.cta-box p {
  color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 480px;
  margin: 0 auto 32px; line-height: 1.6; position: relative; z-index: 1;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border-light); padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: var(--text-muted);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-light); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }

/* ============ MODAL ============ */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; width: 90%; max-width: 500px;
  position: relative; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}
.modal h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 4px;
}
.modal .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--bg-alt);
  border: 1px solid var(--border); color: var(--text-muted); width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.82rem; color: var(--text-secondary);
  margin-bottom: 6px; font-weight: 600;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.submit-btn {
  width: 100%; padding: 12px; background: var(--accent); color: var(--text);
  border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.submit-btn:hover { background: var(--accent-dark); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.success-msg {
  display: none; text-align: center;
}
.success-msg.show { display: block; }
.success-msg .check { font-size: 3rem; margin-bottom: 12px; }
.success-msg h3 { font-size: 1.15rem; margin-bottom: 6px; }
.success-msg p { font-size: 0.9rem; color: var(--text-muted); }

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--text); color: #fff; padding: 14px 20px;
  border-radius: 12px; display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: toast-in 0.3s ease; min-width: 300px;
}
.toast .toast-action {
  color: var(--accent); font-weight: 600; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}
@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.toast.toast-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-out {
  to { transform: translateY(20px); opacity: 0; }
}

/* ============ SEARCH BAR ============ */
.search-bar {
  position: relative; min-width: 200px; width: 100%;
}
.search-bar input {
  width: 100%; padding: 9px 16px 9px 38px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 0.85rem; color: var(--text); font-family: 'Inter', sans-serif;
  outline: none; transition: all 0.2s;
}
.search-bar input:focus {
  border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.search-bar .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.search-bar .search-icon svg { width: 16px; height: 16px; }

/* ============ FEED PAGE ============ */
.feed-page { padding: 40px 0; min-height: 100vh; }
.feed-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.feed-tabs {
  display: flex; gap: 4px; background: var(--bg-alt); padding: 4px;
  border-radius: 100px; border: 1px solid var(--border-light);
}
.feed-tab {
  padding: 8px 20px; border-radius: 100px; font-size: 0.85rem;
  font-weight: 500; background: none; border: none; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.feed-tab:hover { color: var(--text); }
.feed-tab.active { background: var(--text); color: #fff; }
.feed-toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  flex-wrap: nowrap;
}
/* Custom Dropdown Component */
.custom-dropdown {
  position: relative;
  flex-shrink: 0;
}
.custom-dropdown-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 100px; font-size: 0.82rem;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-family: 'Inter', sans-serif; cursor: pointer;
  outline: none; transition: all 0.2s; white-space: nowrap;
  font-weight: 500; line-height: 1;
}
.custom-dropdown-trigger:hover {
  border-color: var(--text-secondary);
}
.custom-dropdown.open .custom-dropdown-trigger {
  border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.custom-dropdown-chevron {
  transition: transform 0.2s;
  opacity: 0.5;
  flex-shrink: 0;
}
.custom-dropdown.open .custom-dropdown-chevron {
  transform: rotate(180deg);
}
.custom-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 100%; width: max-content;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 6px;
  animation: dropdownFadeIn 0.15s ease;
}
.custom-dropdown.open .custom-dropdown-menu {
  display: block;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.custom-dropdown-option {
  padding: 8px 14px; border-radius: 10px; font-size: 0.84rem;
  cursor: pointer; transition: background 0.15s; white-space: nowrap;
  color: var(--text); font-weight: 450;
}
.custom-dropdown-option:hover {
  background: var(--bg-alt);
}
.custom-dropdown-option.selected {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}
.custom-dropdown.disabled .custom-dropdown-trigger {
  opacity: 0.4; pointer-events: none;
}

/* ============ PROJECT DETAIL PAGE ============ */
.project-detail { padding: 40px 0; }
.project-detail-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start;
}
.project-preview {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.project-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-info { }
.project-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.project-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem;
  font-weight: 700; margin-bottom: 12px; line-height: 1.2;
}
.project-description {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px;
}
.project-actions {
  display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap;
}
.project-action-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  border-radius: 100px; font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-family: 'Inter', sans-serif;
}
.project-action-btn:hover { border-color: var(--text); }
.project-action-btn.active { background: var(--accent); border-color: var(--accent); }
.project-action-btn .count { color: var(--text-muted); font-size: 0.82rem; }
.project-links { display: flex; gap: 10px; margin-bottom: 32px; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 100px; font-size: 0.82rem; font-weight: 500;
  text-decoration: none; color: var(--text); background: var(--bg-alt);
  border: 1px solid var(--border); transition: all 0.2s;
}
.project-link:hover { border-color: var(--text); }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.project-tag-pill {
  padding: 4px 14px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 500; background: var(--bg-alt); border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* ============ CREATOR SIDEBAR ============ */
.creator-sidebar { position: sticky; top: 100px; }
.creator-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
}
.creator-card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.creator-avatar {
  width: 52px; height: 52px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem;
  font-weight: 700; color: #fff; overflow: hidden;
}
.creator-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.creator-info h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700;
}
.creator-info p { font-size: 0.82rem; color: var(--text-muted); }
.creator-bio {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px;
}
.creator-stats-row { display: flex; gap: 20px; margin-bottom: 16px; }
.creator-stat { text-align: center; }
.creator-stat .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.creator-stat .label { font-size: 0.75rem; color: var(--text-muted); }
.follow-btn {
  width: 100%; padding: 10px; border-radius: 100px; font-size: 0.88rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s; border: none;
  font-family: 'Inter', sans-serif;
}
.follow-btn.not-following { background: var(--text); color: #fff; }
.follow-btn.not-following:hover { background: #333; }
.follow-btn.following { background: var(--bg-alt); color: var(--text); border: 1.5px solid var(--border); }
.follow-btn.following:hover { border-color: #ef4444; color: #ef4444; }

/* ============ COMMENTS SECTION ============ */
.comments-section { margin-top: 40px; }
.comments-section h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem;
  font-weight: 700; margin-bottom: 24px;
}
.comment-input-area {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 32px;
}
.comment-input-area .comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff; overflow: hidden;
}
.comment-input-wrapper { flex: 1; }
.comment-input-wrapper textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 0.9rem; font-family: 'Inter', sans-serif;
  resize: none; outline: none; background: var(--surface);
  color: var(--text); min-height: 44px; transition: all 0.2s;
}
.comment-input-wrapper textarea:focus {
  border-color: var(--text); min-height: 80px;
}
.comment-input-actions {
  justify-content: flex-end; margin-top: 8px; display: none;
}
.comment-input-actions.show { display: flex; }
.comment-post-btn {
  padding: 8px 20px; border-radius: 100px; font-size: 0.82rem;
  font-weight: 600; background: var(--text); color: #fff; border: none;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.comment-post-btn:hover { background: #333; }
.comment-post-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.comment-thread { margin-bottom: 24px; }
.comment { display: flex; gap: 12px; }
.comment .comment-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; overflow: hidden;
}
.comment-content { flex: 1; }
.comment-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.comment-author { font-weight: 600; font-size: 0.88rem; }
.comment-time { font-size: 0.78rem; color: var(--text-muted); }
.comment-body {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px;
}
.comment-actions { display: flex; gap: 16px; }
.comment-action {
  font-size: 0.78rem; color: var(--text-muted); cursor: pointer; font-weight: 500;
  background: none; border: none; padding: 0; font-family: 'Inter', sans-serif;
}
.comment-action:hover { color: var(--text); }
.comment-replies {
  margin-left: 44px; margin-top: 16px; border-left: 2px solid var(--border-light);
  padding-left: 16px;
}
.comment-replies .comment { margin-bottom: 16px; }
.reply-input-area {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 12px;
  margin-left: 44px; padding-left: 16px;
}

/* ============ PROFILE PAGE ============ */
.profile-page { padding: 40px 0; min-height: 100vh; }
.profile-header {
  display: flex; gap: 32px; align-items: flex-start; margin-bottom: 48px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border-light);
}
.profile-avatar-lg {
  width: 120px; height: 120px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 2.5rem;
  font-weight: 800; color: #fff; flex-shrink: 0; overflow: hidden;
}
.profile-avatar-lg img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-details { flex: 1; }
.profile-name-row {
  display: flex; align-items: center; gap: 16px; margin-bottom: 8px;
}
.profile-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700;
}
.profile-handle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.profile-bio-text {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 16px; max-width: 600px;
}
.profile-stats { display: flex; gap: 24px; margin-bottom: 16px; }
.profile-stat { font-size: 0.9rem; color: var(--text-secondary); }
.profile-stat strong { color: var(--text); font-weight: 700; }
.profile-social-links { display: flex; gap: 12px; }
.profile-social-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 100px; font-size: 0.82rem; color: var(--text-secondary);
  text-decoration: none; background: var(--bg-alt); border: 1px solid var(--border-light);
  transition: all 0.2s;
}
.profile-social-link:hover { border-color: var(--text-secondary); color: var(--text); }

.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-light); margin-bottom: 32px; }
.profile-tab {
  padding: 12px 24px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border: none; background: none; position: relative;
  font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active { color: var(--text); }
.profile-tab.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--text);
}

/* ============ COLLECTIONS SECTION ============ */
.collections-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.collection-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; cursor: pointer;
  transition: all 0.2s;
}
.collection-card:hover {
  border-color: #bbb; transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.collection-preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 10px;
  overflow: hidden; margin-bottom: 12px; height: 120px;
}
.collection-preview-item { background: var(--bg-alt); }
.collection-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.collection-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ============ LOADING & EMPTY STATES ============ */
.loading-spinner { display: flex; justify-content: center; padding: 40px; }
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--text); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p {
  font-size: 0.9rem; color: var(--text-muted); max-width: 400px; margin: 0 auto;
}
.load-more-trigger { height: 1px; }

/* ============ SAVE MODAL ============ */
.save-modal-list { max-height: 300px; overflow-y: auto; margin-bottom: 16px; }
.save-modal-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 10px; cursor: pointer; transition: background 0.15s;
}
.save-modal-item:hover { background: var(--bg-alt); }
.save-modal-item input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--text);
}
.save-modal-item .collection-name { font-size: 0.9rem; font-weight: 500; }
.save-modal-item .collection-count { font-size: 0.78rem; color: var(--text-muted); }
.new-collection-input {
  display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border-light);
}
.new-collection-input input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.88rem; font-family: 'Inter', sans-serif;
  outline: none;
}
.new-collection-input button {
  padding: 10px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 600;
  background: var(--text); color: #fff; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* ============ VISIBILITY TOGGLE ============ */
.visibility-toggle { display: flex; gap: 8px; }
.visibility-option {
  flex: 1; padding: 10px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); text-align: center; cursor: pointer; font-size: 0.85rem;
  font-weight: 500; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.visibility-option.active { border-color: var(--text); background: var(--bg-alt); }
.status-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.status-tag {
  padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 500;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer;
  transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.status-tag.active { border-color: var(--text); background: var(--text); color: #fff; }

/* ============ STATUS FILTERS ============ */
.feed-status-filters {
  display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap;
}
.status-filter-btn {
  padding: 6px 16px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 500; background: var(--surface); color: var(--text-muted);
  border: 1px solid var(--border-light); cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.status-filter-btn:hover { color: var(--text); border-color: var(--border); }
.status-filter-btn.active {
  background: var(--accent-soft); color: var(--text); border-color: var(--accent-dark);
}

/* ============ TAG FOLLOW BAR ============ */
.tag-follow-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius);
  border: 1px solid var(--border-light); flex-wrap: wrap;
}
.tag-follow-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap;
}
.tag-follow-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-follow-chip {
  padding: 5px 14px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-secondary); font-family: 'Inter', sans-serif;
}
.tag-follow-chip:hover { border-color: var(--tag-color, var(--text)); color: var(--tag-color, var(--text)); }
.tag-follow-chip.followed {
  background: var(--tag-color, var(--text)); color: #fff;
  border-color: var(--tag-color, var(--text));
}

/* ============ DISCOVER CREATORS ============ */
.discover-creators { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-light); }
.creators-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.creators-scroll::-webkit-scrollbar { height: 4px; }
.creators-scroll::-webkit-scrollbar-track { background: var(--border-light); border-radius: 2px; }
.creators-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.creator-discover-card {
  min-width: 180px; max-width: 200px; padding: 20px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
  scroll-snap-align: start; flex-shrink: 0; transition: all 0.2s;
}
.creator-discover-card:hover {
  border-color: #bbb; transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.creator-discover-card h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem;
  font-weight: 600; margin-bottom: 4px;
}
.creator-discover-card p {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ TOOLS & STACK ============ */
.project-stack { margin-bottom: 24px; }
.stack-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem;
  font-weight: 700; margin-bottom: 10px; color: var(--text);
}
.stack-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.stack-chip {
  padding: 6px 16px; border-radius: 100px; font-size: 0.8rem;
  font-weight: 500; background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--text); transition: all 0.2s;
}
.stack-chip:hover { border-color: var(--text-secondary); }

/* ============ GUEST CTA BOX ============ */
.guest-cta-box {
  margin: 32px 0; padding: 32px; text-align: center;
  background: linear-gradient(135deg, var(--bg-alt), rgba(200,255,0,0.06));
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
}
.guest-cta-content h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem;
  font-weight: 700; margin-bottom: 8px;
}
.guest-cta-content p {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto;
}

/* ============ COMMENT REACTIONS ============ */
.comment-reactions {
  display: flex; gap: 4px; margin-right: 8px;
}
.reaction-btn {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 100px; font-size: 0.75rem;
  background: var(--bg-alt); border: 1px solid var(--border-light);
  cursor: pointer; transition: all 0.15s; color: var(--text-muted);
  font-family: 'Inter', sans-serif; line-height: 1.4;
}
.reaction-btn:hover { border-color: var(--border); background: var(--surface); transform: scale(1.1); }
.reaction-btn.active {
  background: var(--accent-soft); border-color: var(--accent-dark);
}
.reaction-count { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); }

/* ============ PROFILE SKILLS ============ */
.profile-skills {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.profile-skills-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
}
.profile-skill-tag {
  padding: 4px 14px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 500; background: var(--purple-soft); color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* ============ PROFILE INLINE EDIT MODE ============ */
.profile-view-mode {
  display: flex; gap: 32px; align-items: flex-start; width: 100%;
}
.profile-edit-mode {
  display: flex; gap: 32px; align-items: flex-start; width: 100%;
}
.profile-edit-avatar {
  position: relative; flex-shrink: 0; cursor: pointer;
}
.profile-edit-avatar:hover .edit-avatar-overlay { opacity: 1; }
.edit-avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600; opacity: 0;
  transition: opacity 0.2s; pointer-events: none;
}
.profile-edit-fields {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.profile-edit-actions {
  display: flex; gap: 10px; margin-top: 12px;
}
.profile-danger-zone {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light);
}
.btn-danger {
  padding: 8px 20px; border-radius: 10px; font-size: 0.84rem;
  font-weight: 600; background: none; border: 1.5px solid #ef4444;
  color: #ef4444; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-danger:hover {
  background: rgba(239,68,68,0.08); border-color: #dc2626; color: #dc2626;
}

/* ============ MY VIBES PAGE ============ */
.my-vibes-page {
  padding: 40px 0; min-height: 100vh;
}

/* Vibe Card (project card with actions) */
.vibe-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.2s; position: relative;
}
.vibe-card:hover {
  border-color: var(--text-secondary);
  box-shadow: var(--shadow-lg);
}
.vibe-card-link {
  display: block; text-decoration: none; color: inherit;
}
.vibe-card-link .card-preview {
  height: 160px; position: relative; overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.vibe-card-link .card-body {
  padding: 16px;
}
.vibe-card-link .card-body h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem;
  font-weight: 700; margin-bottom: 6px; color: var(--text);
}
.vibe-card-link .card-body p {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vibe-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 12px; gap: 8px;
}
.vibe-card-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.vibe-status-badge {
  padding: 2px 10px; border-radius: 100px; font-size: 0.72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
}
.vibe-status-badge.status-wip {
  background: rgba(245, 158, 11, 0.12); color: #d97706;
}
.vibe-status-badge.status-experiment {
  background: rgba(124, 58, 237, 0.1); color: #7c3aed;
}
.vibe-status-badge.status-shipped {
  background: rgba(16, 185, 129, 0.1); color: #059669;
}
.vibe-visibility-badge {
  padding: 2px 10px; border-radius: 100px; font-size: 0.72rem;
  font-weight: 600; background: var(--bg-alt); color: var(--text-muted);
}
.vibe-card-actions {
  display: flex; gap: 0; border-top: 1px solid var(--border-light);
}
.vibe-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px; border: none; background: none;
  font-size: 0.82rem; font-weight: 500; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all 0.15s; color: var(--text-secondary);
}
.vibe-action-btn:hover {
  background: var(--bg-alt); color: var(--text);
}
.vibe-edit-btn:hover {
  color: #3b82f6;
}
.vibe-delete-btn {
  border-left: 1px solid var(--border-light);
}
.vibe-delete-btn:hover {
  color: #ef4444; background: rgba(239,68,68,0.04);
}

/* ============ GUEST / LOGGED-IN VISIBILITY ============ */
.logged-in-only { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .project-detail-layout { grid-template-columns: 1fr; }
  .creator-sidebar { position: static; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-view-mode { flex-direction: column; align-items: center; text-align: center; }
  .profile-edit-mode { flex-direction: column; align-items: center; }
  .profile-stats { justify-content: center; }
  .profile-social-links { justify-content: center; }
  .profile-skills { justify-content: center; }
  .feed-header { flex-direction: column; }
  .feed-tabs { overflow-x: auto; }
  .feed-toolbar { flex-wrap: wrap; }
  .feed-toolbar .search-bar { min-width: 100%; }
  .app-filters { flex-direction: column; align-items: flex-start; }
  .tag-follow-bar { flex-direction: column; align-items: flex-start; }
  .comment-replies { margin-left: 20px; }
  .comment-reactions { flex-wrap: wrap; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 20px; }
  .values-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hide-mobile { display: none; }
  .nav-dropdown { right: -10px; }
  .creators-scroll { gap: 12px; }
  .creator-discover-card { min-width: 160px; }
}
