/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Design Tokens & Root Variables */
:root {
  /* Colors */
  --bg-primary: hsl(225, 18%, 6%);
  --bg-secondary: hsl(225, 15%, 9%);
  --bg-tertiary: hsl(225, 12%, 13%);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.18);
  
  --text-primary: hsl(0, 0%, 95%);
  --text-secondary: hsl(225, 10%, 68%);
  --text-dim: hsl(225, 10%, 45%);
  
  /* Accents */
  --accent-teal: #00f5d4;
  --accent-purple: #bf5af2;
  --accent-orange: #ff9f0a;
  --accent-blue: #0a84ff;
  --accent-pink: #ff375f;
  --accent-green: #30d158;
  
  /* Glows */
  --glow-teal: 0 0 20px rgba(0, 245, 212, 0.15);
  --glow-purple: 0 0 20px rgba(191, 90, 242, 0.15);
  --glow-blue: 0 0 20px rgba(10, 132, 255, 0.15);

  /* Premium Shadows */
  --shadow-dropdown: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 212, 0.02);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.6);
  --bg-glass-dropdown: rgba(10, 13, 22, 0.75);
  --bg-nav: rgba(6, 8, 14, 0.75);
  --bg-nav-tab-active: rgba(0, 245, 212, 0.08);
  --border-nav-tab-active: rgba(0, 245, 212, 0.15);
  --bg-badge-teal: rgba(0, 245, 212, 0.1);
  --border-badge-teal: rgba(0, 245, 212, 0.2);
  --gradient-wordmark: linear-gradient(to right, #ffffff, var(--text-secondary));
  --gradient-hero-title: linear-gradient(135deg, #ffffff 30%, var(--accent-teal) 70%, var(--accent-blue) 100%);
  --gradient-featured-title: linear-gradient(135deg, #ffffff 60%, rgba(255,255,255,0.7));
  
  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing & Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Light Mode Redefinitions */
[data-theme="light"] {
  --bg-primary: hsl(225, 25%, 98%);
  --bg-secondary: hsl(225, 20%, 95%);
  --bg-tertiary: hsl(225, 18%, 90%);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.055);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-default: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  
  --text-primary: hsl(225, 25%, 12%);
  --text-secondary: hsl(225, 15%, 38%);
  --text-dim: hsl(225, 12%, 52%);
  
  /* Contrast-optimized light mode accents */
  --accent-teal: #00897b;
  --accent-purple: #7b1fa2;
  --accent-orange: #e65100;
  --accent-blue: #1565c0;
  --accent-pink: #c2185b;
  --accent-green: #2e7d32;
  
  --glow-teal: 0 0 20px rgba(0, 137, 123, 0.06);
  --glow-purple: 0 0 20px rgba(123, 31, 162, 0.06);
  --glow-blue: 0 0 20px rgba(21, 101, 192, 0.06);

  /* Softer, feather-light shadows */
  --shadow-dropdown: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 16px 36px rgba(0, 0, 0, 0.06), 0 0 20px rgba(0, 137, 123, 0.01);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.12);
  --bg-glass-dropdown: rgba(255, 255, 255, 0.75);
  --bg-nav: rgba(255, 255, 255, 0.75);
  --bg-nav-tab-active: rgba(0, 137, 123, 0.08);
  --border-nav-tab-active: rgba(0, 137, 123, 0.15);
  --bg-badge-teal: rgba(0, 137, 123, 0.1);
  --border-badge-teal: rgba(0, 137, 123, 0.2);
  --gradient-wordmark: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  --gradient-hero-title: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-teal) 70%, var(--accent-blue) 100%);
  --gradient-featured-title: linear-gradient(135deg, var(--text-primary) 60%, var(--text-secondary));
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  box-sizing: border-box;
}

.theme-toggle-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-slow);
}

.theme-toggle-btn:active svg {
  transform: rotate(45deg) scale(0.9);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

::selection {
  background: rgba(0, 245, 212, 0.2);
  color: var(--accent-teal);
}

/* Top Navigation Bar Styles */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background var(--transition-normal);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: #000000;
  background-image: url('/logo.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1.5px solid var(--border-default);
}

.nav-logo::after {
  display: none;
}

.nav-wordmark {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gradient-wordmark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-search {
  flex-grow: 1;
  max-width: 480px;
  margin: 0 32px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 42px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 0 20px 0 46px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: var(--glow-teal);
  background: var(--bg-secondary);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-ai-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--bg-badge-teal);
  color: var(--accent-teal);
  border: 1px solid var(--border-badge-teal);
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-tab {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.nav-tab.active {
  color: var(--accent-teal);
  background: var(--bg-nav-tab-active);
  font-weight: 600;
  border: 1px solid var(--border-nav-tab-active);
}

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

.notification-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.notification-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-pink);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}

.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.nav-avatar:hover {
  transform: scale(1.05);
}

/* User Dropdown Menu Styles */
.user-dropdown-menu {
  position: fixed;
  z-index: 2000;
  width: 260px;
  background: var(--bg-glass-dropdown);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 8px;
  animation: dropdown-fade-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top right;
}

@keyframes dropdown-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-login-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  padding: 10px 14px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.dropdown-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.dropdown-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown-user-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dropdown-user-email {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin: 2px 0;
  box-sizing: border-box;
}

.dropdown-menu-item svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu-item:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.dropdown-menu-item:hover svg {
  transform: scale(1.08);
}

.dropdown-menu-item.active-item {
  color: var(--accent-teal);
  background: rgba(0, 245, 212, 0.05);
  font-weight: 600;
}

.dropdown-menu-item.active-item:hover {
  background: rgba(0, 245, 212, 0.09);
  color: var(--accent-teal);
}

.dropdown-separator {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 6px 4px;
}

/* Main Layout Styles */
.main-content {
  padding-top: 72px;
  min-height: 100vh;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.page-section.active {
  display: block;
}

.content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 80px 32px;
}

/* Section Header Styles */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.view-all-link {
  font-size: 0.875rem;
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  gap: 8px;
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.4);
}

/* Hero Section Styles */
.hero {
  padding: 48px 0 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(191, 90, 242, 0.12);
  border: 1px solid rgba(191, 90, 242, 0.25);
  color: var(--accent-purple);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: var(--glow-purple);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  background: var(--gradient-hero-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 32px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.filter-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-pill.active {
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.3);
  color: var(--accent-teal);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.06);
}

/* App Cards & Responsive Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.app-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--bg-tertiary);
  overflow: hidden;
}

.app-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-card:hover .app-card-image {
  transform: scale(1.04);
}

.card-badge-container {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.app-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.app-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.app-card-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 18px;
}

.app-tag {
  font-size: 0.72rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.maker-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.maker-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
}

.maker-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.stat-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.upvote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upvote-btn:hover {
  background: rgba(255, 159, 10, 0.08);
  border-color: rgba(255, 159, 10, 0.3);
  color: var(--accent-orange);
}

.upvote-btn.upvoted {
  background: rgba(255, 159, 10, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  animation: pulse 0.3s ease-out;
}

/* Verification Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.verified-badge.verified {
  background: rgba(48, 209, 88, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(48, 209, 88, 0.25);
}

.verified-badge.pending {
  background: rgba(255, 159, 10, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 159, 10, 0.25);
}

.verified-badge.unverified {
  background: var(--bg-glass);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

/* Trending Today Row */
.trending-container {
  margin-bottom: 56px;
}

.trending-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.trending-row::-webkit-scrollbar {
  display: none;
}

.trending-card {
  min-width: 310px;
  width: 310px;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-normal);
}

.trending-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.trending-rank {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-teal);
  opacity: 0.7;
  line-height: 1;
}

.trending-details {
  flex-grow: 1;
  overflow: hidden;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Collections Tab */
.collection-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.collection-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.collection-cover {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.collection-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-secondary) 100%);
  z-index: 1;
}

.collection-body {
  padding: 24px;
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.collection-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-purple);
  background: rgba(191, 90, 242, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid rgba(191, 90, 242, 0.15);
}

.collection-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.collection-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.collection-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.curator-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.curator-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
}

/* Maker Profile Tab */
.maker-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.maker-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), var(--glow-purple);
}

.maker-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px rgba(191, 90, 242, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.maker-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.maker-bio {
  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;
}

.toolchain-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.tool-badge {
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.maker-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.maker-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maker-stat-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.maker-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Prompt Sharing Tab */
.prompt-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.prompt-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.prompt-type-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.prompt-type-badge.prompt {
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(10, 132, 255, 0.2);
}

.prompt-type-badge.tool-combo {
  background: rgba(191, 90, 242, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(191, 90, 242, 0.2);
}

.prompt-type-badge.automation {
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-teal);
  border: 1px solid rgba(0, 245, 212, 0.2);
}

.prompt-type-badge.build-story {
  background: rgba(255, 159, 10, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 159, 10, 0.2);
}

.prompt-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.prompt-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.prompt-preview {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  max-height: 100px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
}

.prompt-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary) 90%);
}

.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.prompt-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.prompt-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prompt-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.prompt-stat svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Personalized Feed Tab */
.feed-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

.feed-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feed-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.interest-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interest-bubble {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.interest-bubble:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.interest-bubble.selected {
  background: rgba(191, 90, 242, 0.08);
  border-color: rgba(191, 90, 242, 0.3);
  color: var(--accent-purple);
  font-weight: 600;
}

.interest-bubble.selected::after {
  content: '✓';
  font-size: 0.8rem;
  font-weight: 700;
}

.feed-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-placeholder {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
}

.feed-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.feed-placeholder h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feed-placeholder p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

.feed-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  display: flex;
  gap: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.feed-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.feed-card.app::before { background: var(--accent-teal); }
.feed-card.prompt::before { background: var(--accent-purple); }

.feed-card:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feed-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feed-card-content {
  flex-grow: 1;
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feed-card-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.feed-card-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.feed-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feed-card-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modal Overlay Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  box-shadow: var(--shadow-modal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.modal-hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-body {
  padding: 40px;
}

.modal-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  margin-top: 32px;
}

.modal-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--accent-teal);
  border-radius: var(--radius-full);
}

.modal-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Build Story Section */
.build-story-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.build-percentage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.build-pct-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.build-pct-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.ai-percentage-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 24px;
}

.ai-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-teal));
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.build-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 20px;
}

.build-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 2px solid var(--accent-teal);
}

.timeline-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

/* Prompt Copy/Fork Box */
.prompt-copy-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.prompt-copy-content {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 20px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
}

/* Comments Section */
.comments-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
}

.comment-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-textarea {
  flex-grow: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: none;
  height: 48px;
  transition: all var(--transition-normal);
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  height: 80px;
}

.comment-submit-btn {
  background: var(--accent-teal);
  color: var(--bg-primary);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 18px;
  border-radius: var(--radius-md);
  height: 48px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comment-submit-btn:hover {
  opacity: 0.9;
  box-shadow: var(--glow-teal);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.comment-bubble {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex-grow: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.comment-author-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.comment-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Sidebar Info Panel */
.sidebar-panel-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-stat-row:last-child {
  border-bottom: none;
}

.sidebar-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sidebar-stat-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Skeleton Loading Shimmers */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  height: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
}

.skeleton-title {
  width: 60%;
  height: 20px;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  width: 90%;
  height: 14px;
  border-radius: var(--radius-sm);
}

.skeleton-text.short {
  width: 40%;
}

/* Keyframes & Utility Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Staggered load delays for cards grid */
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* Responsive Layout Media Queries */
@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  
  .feed-layout {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .top-nav {
    padding: 0 20px;
  }
  
  .nav-search {
    margin: 0 16px;
    max-width: 320px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .feed-layout {
    grid-template-columns: 1fr;
  }
  
  .feed-sidebar {
    display: none; /* Hide feed sidebar on mobile/tablet */
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .modal-body {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .top-nav {
    height: 64px;
  }
  
  .nav-wordmark {
    display: none; /* Hide wordmark to save space on mobile */
  }
  
  .nav-search {
    margin: 0 8px;
  }
  
  .search-input {
    padding: 0 10px 0 34px;
    height: 38px;
  }
  
  .search-icon {
    left: 12px;
  }
  
  .search-ai-badge {
    display: none;
  }
  
  .nav-tab {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .content-container {
    padding: 24px 16px;
  }
  
  .hero {
    padding: 32px 0 40px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .trending-card {
    min-width: 260px;
    width: 260px;
  }
}

/* Utilities */
.text-teal { color: var(--accent-teal); }
.text-purple { color: var(--accent-purple); }
.text-orange { color: var(--accent-orange); }
.text-blue { color: var(--accent-blue); }

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

.flex-column {
  display: flex;
  flex-direction: column;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Custom Logo selector and floating badge override */
.app-card-logo-badge {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.app-card:hover .app-card-logo-badge {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--accent-teal) !important;
}

.app-card-body {
  padding-top: 28px !important;
}

/* Radio selectors glowing borders */
label:has(input[name="launch-logo"]:checked),
label:has(input[name="launch-cover"]:checked) {
  border-color: var(--accent-teal) !important;
  background: rgba(0, 245, 212, 0.06) !important;
  box-shadow: var(--glow-teal) !important;
}

/* ─── Leaderboard ─────────────────────────────────────────────────────────── */

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

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

.leaderboard-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.leaderboard-panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-panel-icon { font-size: 1.4rem; }

.leaderboard-panel-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.02em;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.leaderboard-item:last-child { border-bottom: none; }

.leaderboard-item:hover { background: var(--bg-tertiary); }

.leaderboard-rank {
  width: 28px;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
}

.leaderboard-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leaderboard-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-score {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-teal);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Community ─────────────────────────────────────────────────────────────── */

.community-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.community-post {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 28px 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.community-post:hover {
  border-color: var(--border-color);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post-author-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
}

.post-type-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

.post-dot { color: var(--text-dim); }

.post-timestamp { color: var(--text-secondary); }

.post-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.35;
}

.post-body {
  font-family: var(--font-body);
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin: 0 0 4px;
}

.post-media {
  margin: 14px -28px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

.post-media img,
.post-media video,
.post-media iframe {
  display: block;
  width: 100%;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  margin-top: 6px;
  border-top: 1px solid var(--border-subtle);
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: background 0.15s, color 0.15s;
}

.post-action-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.post-action-btn--active { color: var(--accent-purple) !important; }
.post-upvote-btn:hover  { color: var(--accent-teal); }
.post-reply-btn:hover   { color: var(--accent-purple); }

.post-replies-section {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0 20px;
}

.replies-loading,
.replies-empty,
.replies-login-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 12px 0;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.reply-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.reply-bubble {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 10px 14px;
  flex: 1;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.reply-author {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reply-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.reply-body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin: 0;
}

.reply-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
}

.reply-input-wrap {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.reply-textarea {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  resize: none;
  min-height: 38px;
  max-height: 160px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.15s;
}

.reply-textarea:focus { border-color: var(--accent-purple); }

.reply-submit-btn {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.reply-submit-btn:hover { opacity: 0.85; }

.prompt-comment-type-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.prompt-comment-type-btn.active {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(0, 245, 212, 0.08);
}
.prompt-comment-type-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prompt-comment-type-label.comment  { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.prompt-comment-type-label.question { background: rgba(251,146,60,0.15);  color: var(--accent-orange); }
.prompt-comment-type-label.feedback { background: rgba(0,245,212,0.12);   color: var(--accent-teal); }

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

/* ─── Premium Form Styles ────────────────────────────────────────────────────── */

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

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

.form-input:hover {
  border-color: var(--border-hover);
  background: hsl(225, 12%, 15%);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: var(--glow-teal);
  background: var(--bg-secondary);
}

select.form-input:not([multiple]) {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba%28255,255,255,0.5%29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-input[multiple] {
  appearance: auto;
  background-image: none;
  padding-right: 12px;
}

.form-input option {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 6px 10px;
}

.form-input option:checked {
  background: rgba(168, 85, 247, 0.25) linear-gradient(0deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  color: var(--text-primary);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* Form Helper and Grid Classes */
.premium-form-container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 550px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-row-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 650px) {
  .form-row-3col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 500px) {
  .form-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .form-input-group span {
    text-align: center;
  }
}

.form-select-multiple {
  padding: 8px 12px;
  height: 85px;
  overflow-y: auto;
}

.form-textarea-code {
  height: 200px;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  line-height: 1.6;
}

.btn-upload {
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px !important;
}

#post-type-pills .filter-pill.active {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.08);
}

/* Premium CTA Button Style */
.cta-btn {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: #040508;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: var(--glow-teal);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 245, 212, 0.35);
  filter: brightness(1.05);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn:disabled {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-dim) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.cta-btn-purple {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.cta-btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.45);
  filter: brightness(1.05);
}

.cta-btn-purple:active {
  transform: translateY(0);
}

.cta-btn-purple:disabled {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-dim) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ─── Premium Maker View & Detail Modal Styles ────────────────────────────────── */

.modal-maker-avatar-container {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  box-shadow: 0 0 20px rgba(191, 90, 242, 0.15);
  transition: all var(--transition-normal);
}

.modal-maker-avatar-container:hover {
  transform: scale(1.05);
  border-color: var(--accent-purple);
  box-shadow: 0 0 25px rgba(191, 90, 242, 0.3);
}

.btn-secondary-purple {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 90, 242, 0.35);
  background: rgba(191, 90, 242, 0.04);
  color: var(--accent-purple);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-secondary-purple:hover {
  background: rgba(191, 90, 242, 0.12);
  border-color: var(--accent-purple);
  box-shadow: 0 0 14px rgba(191, 90, 242, 0.25);
  transform: translateY(-1px);
}

.btn-secondary-purple:active {
  transform: translateY(0);
}

/* Glassmorphic Stats Grid for Modals */
.modal-stats-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 16px auto 24px auto;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-stats-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
}

.modal-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.modal-stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.modal-stat-desc {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Portfolio Grid within Maker Details Modal */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.portfolio-grid .trending-card {
  min-width: 0;
  width: 100%;
  flex-shrink: 1;
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* LinkedIn-Style Posting Form */
.post-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.post-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  flex-shrink: 0;
}

.post-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-user-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.post-type-selector {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-type-selector:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
}

.post-type-selector option {
  background: #0d0e12;
  color: var(--text-primary);
}

.post-title-input {
  border: none !important;
  background: transparent !important;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 8px 0;
  margin-bottom: 8px;
  width: 100%;
  border-bottom: 1px solid transparent !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: border-color var(--transition-normal);
}

.post-title-input:focus {
  border-bottom: 1px solid var(--border-subtle) !important;
}

.post-content-textarea {
  border: none !important;
  background: transparent !important;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 8px 0;
  width: 100%;
  min-height: 160px;
  resize: none !important;
  outline: none !important;
  line-height: 1.5;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.post-toolbar-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
}

.post-toolbar-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-toolbar-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.post-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.post-toolbar-btn.active {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.post-char-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.post-char-count.warning {
  color: var(--accent-pink);
  font-weight: 600;
}

.post-media-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, opacity var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.post-media-drawer.expanded {
  max-height: 180px;
  opacity: 1;
  padding: 12px;
  border-color: var(--border-subtle);
  margin-top: 12px;
}

.drawer-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: block;
}


/* ==========================================================================
   Featured Product Spotlight & Pin Sections
   ========================================================================== */

#featured-product-discover-container {
  margin-top: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.featured-spotlight-card {
  position: relative;
  background: rgba(14, 18, 28, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 245, 212, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 245, 212, 0.02);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.featured-spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 212, 0.3);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 245, 212, 0.06);
}

.featured-spotlight-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.08) 0%, rgba(0, 245, 212, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.featured-columns {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.featured-col-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.featured-col-right {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.featured-badge-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.spotlight-tag {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(191, 90, 242, 0.15));
  color: var(--accent-teal);
  border: 1px solid rgba(0, 245, 212, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.1);
}

.featured-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.featured-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.featured-app-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
  background: var(--gradient-featured-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-app-category {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-tagline {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.featured-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.featured-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.maker-title-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-tags-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.featured-preview-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.featured-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.featured-spotlight-card:hover .featured-preview-img {
  transform: scale(1.03);
}

.featured-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.featured-cta-row {
  display: flex;
  gap: 1rem;
}

.featured-btn-primary {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-teal) 0%, #00d2b4 100%);
  color: #06080e;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.25);
}

.featured-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 212, 0.4);
  filter: brightness(1.05);
}

.featured-btn-primary:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .featured-columns {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.5rem !important;
  }
  
  .featured-col-left {
    flex: unset !important;
  }
  
  .featured-col-right {
    flex: unset !important;
  }
}

.spotlight-post {
  transition: all var(--transition-normal);
}

.spotlight-post:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 245, 212, 0.75) !important;
  background: rgba(0, 245, 212, 0.06) !important;
  box-shadow: var(--shadow-md), 0 0 25px rgba(0, 245, 212, 0.04);
}

/* ==========================================================================
   Community Two-Column Grid & Sticky Sidebar
   ========================================================================== */

.community-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.community-feed-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community-sidebar-column {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.community-sidebar-card {
  background: rgba(14, 18, 28, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-featured-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
}

.sidebar-featured-item:last-child {
  margin-bottom: 0;
}

.sidebar-featured-item:hover {
  background: rgba(0, 245, 212, 0.04);
  border-color: rgba(0, 245, 212, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.05);
}

.sidebar-featured-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-featured-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-featured-info {
  flex: 1;
  min-width: 0;
}

.sidebar-featured-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-featured-tagline {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 3px 0 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-featured-meta {
  font-size: 0.7rem;
  color: var(--accent-teal);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.sidebar-featured-item .upvote-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .community-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .community-sidebar-column {
    position: static;
  }
}
