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

/* Design Tokens & Root Variables */
:root {
  /* Colors */
  --bg-primary: #030706;
  --bg-secondary: #080d0c;
  --bg-tertiary: #0d1412;
  --bg-input-hover: #111a17;
  --select-arrow: 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");
  --bg-glass: rgba(222, 255, 245, 0.035);
  --bg-glass-hover: rgba(222, 255, 245, 0.07);
  --border-subtle: rgba(205, 255, 239, 0.08);
  --border-default: rgba(205, 255, 239, 0.13);
  --border-hover: rgba(122, 255, 213, 0.32);
  --border-color: rgba(205, 255, 239, 0.16);
  
  --text-primary: #f0f7f4;
  --text-secondary: #9caeaa;
  --text-dim: #61706c;
  --text-tertiary: #74847f;
  
  /* Accents */
  --accent-teal: #7affd5;
  --accent-purple: #a887ff;
  --accent-orange: #ff9f0a;
  --accent-blue: #55b9ff;
  --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-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
  --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(3, 7, 6, 0.78);
  --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(115deg, #f5fbf8 10%, #d9e7e2 45%, var(--accent-teal) 100%);
  --gradient-featured-title: linear-gradient(135deg, #ffffff 60%, rgba(255,255,255,0.7));
  
  /* Typography */
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing & Border Radius */
  --radius-xs: 4px;
  --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-input-hover: hsl(225, 16%, 86%);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba%280,0,0,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");
  --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);
  --border-color: rgba(0, 0, 0, 0.12);
  
  --text-primary: hsl(225, 25%, 12%);
  --text-secondary: hsl(225, 15%, 38%);
  --text-dim: hsl(225, 12%, 52%);
  --text-tertiary: hsl(225, 12%, 58%);
  
  /* 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-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.1);
  --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;
  scrollbar-color: var(--bg-tertiary) var(--bg-primary);
  scrollbar-width: thin;
}

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);
}

.admin-tab-btn,
.admin-action-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  cursor: pointer;
}

.admin-tab-btn.active,
.admin-action-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.admin-action-btn.danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.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;
  margin-left: 32px;
}

.nav-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-menu-toggle span {
  width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-menu-toggle:hover,
.nav-menu-toggle.active {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.nav-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.mobile-nav-mode .top-nav {
  gap: 12px;
}

body.mobile-nav-mode .nav-brand,
body.mobile-nav-mode .nav-actions {
  flex-shrink: 0;
}

body.mobile-nav-mode .nav-menu-toggle {
  display: flex;
  margin-left: auto;
}

body.mobile-nav-mode .nav-tabs {
  position: fixed;
  top: 72px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-left: 0;
  padding: 12px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  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);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

body.mobile-nav-mode .nav-tabs.mobile-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.mobile-nav-mode .nav-tab {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.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-search {
  max-width: 720px;
  margin: 28px auto 0;
  z-index: 3;
}

.hero-search .search-input {
  height: 52px;
  font-size: 0.95rem;
  padding-left: 58px;
  pointer-events: auto;
}

.hero-search .search-icon {
  left: 22px;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 32px 0;
  overflow: visible;
  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);
}

.filter-select-wrap {
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-select-label {
  color: var(--text-tertiary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-select {
  width: 100%;
  min-height: 44px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%),
    var(--bg-glass);
  background-position:
    calc(100% - 20px) 19px,
    calc(100% - 14px) 19px,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 42px 0 14px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-select:hover,
.filter-select:focus {
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.08);
  outline: none;
}

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

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

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

.app-card-main {
  display: grid;
  grid-template-columns: minmax(145px, 185px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.app-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  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: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.app-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.app-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.app-card-logo-inline {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

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

.app-card-category {
  color: var(--accent-teal);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 1px 0 0;
  text-transform: uppercase;
}

.app-card-tagline {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 0.7rem;
  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: 0;
}

.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: 0.8rem;
  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);
}

.featured-ad-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.18), rgba(191, 90, 242, 0.18));
  color: var(--accent-teal);
  border: 1px solid rgba(0, 245, 212, 0.35);
  backdrop-filter: blur(12px);
}

/* 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);
  padding: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  min-width: 0;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.collection-card-main {
  display: grid;
  grid-template-columns: minmax(145px, 185px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
  min-width: 0;
}

.collection-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.collection-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.18) 100%);
  z-index: 1;
}

.collection-body {
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.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: 10px;
  border: 1px solid rgba(191, 90, 242, 0.15);
  width: fit-content;
}

.collection-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  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-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

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

.maker-card-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
}

.maker-avatar {
  width: 64px;
  height: 64px;
  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.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  box-shadow: 0 0 16px rgba(191, 90, 242, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.maker-card-body {
  min-width: 0;
}

.maker-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.45rem;
}

.maker-name {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.maker-expertise {
  font-size: 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.maker-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toolchain-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.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: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
}

.maker-stat {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
}

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

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

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

.prompt-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.prompt-card-main {
  display: grid;
  grid-template-columns: minmax(155px, 210px) minmax(0, 1fr);
  gap: 0.9rem;
  min-width: 0;
}

.prompt-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.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: 10px;
}

.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.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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-md);
  line-height: 1.5;
  min-height: 132px;
  max-height: 160px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
}

.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;
  gap: 12px;
  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;
}

/* Launchpad */
.launchpad-slot {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.launchpad-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.launchpad-slot-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.launchpad-slot-status {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.launchpad-slot-date {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.launchpad-slot-body {
  padding: 20px 24px;
}

.launchpad-slot-body.has-apps {
  padding: 18px 16px;
}

.cards-grid.launchpad-app-grid {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px;
}

/* 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);
}

/* Premium Floating Custom Scrollbar for Modals */
.modal-content::-webkit-scrollbar {
  width: 10px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
  margin: 16px 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-secondary);
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

.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: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  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: var(--bg-input-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: rotate(90deg);
}

.modal-hero-image {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: var(--bg-tertiary);
  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: 16px 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: 16px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbar for Prompt Content to avoid blowing up modal height */
.prompt-copy-content::-webkit-scrollbar {
  width: 6px;
}

.prompt-copy-content::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-copy-content::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--radius-full);
}

.prompt-copy-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.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-input-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);
}

/* Cover Presets Compact Swatch Grid */
.cover-presets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.cover-preset-chip {
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.cover-preset-chip:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
}

.cover-preset-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cover-preset-preview {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: inherit;
}

.cover-preset-chip input[type="radio"]:checked + .cover-preset-preview {
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-teal);
  transform: scale(0.92);
}


/* 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;
    gap: 12px;
  }

  .nav-brand,
  .nav-actions {
    flex-shrink: 0;
  }

  .nav-menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-tabs {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-left: 0;
    padding: 12px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    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);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav-tabs.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-tab {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
  }
  
  .nav-search {
    margin: 0 16px;
    max-width: 320px;
  }

  .hero-search {
    max-width: 640px;
    margin: 28px auto 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .app-card-main {
    grid-template-columns: 1fr;
  }

  .app-card-image-wrapper {
    aspect-ratio: 16/9;
  }

  .collection-card-main,
  .blog-card-main,
  .maker-card-main,
  .prompt-card-main {
    grid-template-columns: 1fr;
  }

  .maker-card-main {
    align-items: start;
  }

  .maker-card-header {
    flex-wrap: wrap;
  }

  .maker-stats-row {
    flex-wrap: wrap;
  }

  .collection-cover {
    aspect-ratio: 16/9;
  }

  .blog-card-cover {
    aspect-ratio: 16/9;
  }

  .prompt-preview {
    min-height: 120px;
  }

  .cards-grid.blogs-grid,
  .cards-grid.launchpad-app-grid {
    grid-template-columns: 1fr;
  }
  
  .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;
    padding: 0 14px;
  }

  .nav-tabs {
    top: 64px;
    left: 10px;
    right: 10px;
    max-height: calc(100vh - 76px);
  }
  
  .nav-wordmark {
    display: none; /* Hide wordmark to save space on mobile */
  }

  .nav-actions {
    gap: 8px;
  }

  .theme-toggle-btn,
  .notification-btn,
  .nav-avatar,
  .nav-menu-toggle {
    width: 36px;
    height: 36px;
  }
  
  .nav-search {
    margin: 0 auto;
  }
  
  .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-search {
    width: 100%;
    max-width: none;
  }

  .hero-search .search-input {
    height: 46px;
    padding-left: 42px;
  }

  .hero-search .search-icon {
    left: 14px;
  }
  
  .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;
}

/* ─── Global App Layout ──────────────────────────────────────────────────────── */

/* Notifications Dropdown */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.notifications-dropdown.hidden {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.notifications-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notifications-body {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
}

.notifications-body .empty-state {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ─── 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-body a,
.reply-body a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.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: var(--bg-input-hover);
}

.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: var(--select-arrow);
  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;
}

.ssr-crawl-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 24px 32px;
  color: var(--text-primary);
}

.ssr-crawl-content h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.ssr-crawl-content p {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* 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: var(--bg-primary);
  border: 1px solid var(--border-default);
  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: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.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-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  justify-content: center;
  gap: 20px;
  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-lg);
  padding: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 245, 212, 0.02);
  transition: all var(--transition-normal);
  cursor: pointer;
  min-width: 0;
}

.featured-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.featured-card-main {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.featured-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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: 0.75rem;
  margin-bottom: 0.65rem;
}

.featured-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  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.15rem;
  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.15rem;
  font-weight: 750;
  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.7rem;
  font-weight: 500;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.featured-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
  margin-top: 0;
  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: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.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;
}

@media (max-width: 640px) {
  .featured-card-main {
    grid-template-columns: 1fr;
  }

  .featured-preview-wrapper {
    aspect-ratio: 16/9;
  }
}

.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 {
  padding: 0;
  max-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.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;
  flex-shrink: 0;
}

#community-sidebar-featured {
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 212, 0.35) transparent;
}

#community-sidebar-featured::-webkit-scrollbar {
  width: 6px;
}

#community-sidebar-featured::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 212, 0.35);
  border-radius: var(--radius-full);
}

.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;
  }
}

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

.fade-in-slide-down {
  animation: fade-in-slide-down 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================
   PRODUCT BLOGS & UPDATES PREMIUM STYLING
   ========================================== */

/* Blog Editor Tabs Active State */
.blog-tab-btn {
  background: transparent;
  color: var(--text-secondary);
}

.blog-tab-btn.active {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
}

/* Blog Cards */
.cards-grid.blogs-grid {
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 18px;
}

.blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(-3px);
}

.blog-card-main {
  display: grid;
  grid-template-columns: minmax(145px, 185px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
  min-width: 0;
}

.blog-card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.blog-card-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 72% 16%, rgba(0, 245, 212, 0.28), transparent 32%),
    linear-gradient(135deg, rgba(10, 132, 255, 0.22), rgba(191, 90, 242, 0.18));
}

.blog-card-cover-fallback span {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.55rem;
  min-width: 0;
}

.blog-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.blog-author-copy {
  min-width: 0;
}

.blog-author-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.32;
  margin: 0 0 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-preview {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.blog-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 70%;
  padding: 4px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.blog-app-badge.is-muted {
  cursor: default;
  color: var(--text-dim);
}

.blog-app-badge img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-app-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-read-more {
  font-size: 0.82rem;
  color: var(--accent-teal);
  font-weight: 700;
  white-space: nowrap;
}

/* Markdown Rendering Elements inside .blog-content-body */
.blog-content-body {
  line-height: 1.65;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.blog-content-body .blog-paragraph {
  margin-bottom: 16px;
}

.blog-content-body .blog-paragraph:last-child {
  margin-bottom: 0;
}

.blog-content-body .blog-header-1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.blog-content-body .blog-header-2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 12px;
}

.blog-content-body .blog-header-3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

.blog-content-body .blog-header-4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 14px;
  margin-bottom: 8px;
}

.blog-content-body .blog-blockquote {
  border-left: 4px solid var(--accent-teal);
  background: var(--bg-tertiary);
  padding: 12px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
  font-style: italic;
  color: var(--text-primary);
}

.blog-content-body .blog-list {
  margin-top: 12px;
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-content-body .blog-unordered-list {
  list-style-type: disc;
}

.blog-content-body .blog-ordered-list {
  list-style-type: decimal;
}

.blog-content-body .blog-list li {
  margin-bottom: 6px;
}

.blog-content-body .blog-list li:last-child {
  margin-bottom: 0;
}

.blog-content-body .blog-inline-code {
  font-family: var(--font-code);
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  color: var(--accent-purple);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.blog-content-body .code-block {
  font-family: var(--font-code);
  font-size: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 18px 0;
  color: var(--text-primary);
  position: relative;
}

.blog-content-body .code-block code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
}

.blog-content-body .code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.blog-content-body .blog-link {
  color: var(--accent-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color var(--transition-fast);
}

.blog-content-body .blog-link:hover {
  border-bottom-color: var(--accent-teal);
}

/* ─── Blog post page (SSR full-article view) ─────────────────────────────── */
.blog-post-article {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.blog-post-cover {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-post-inner {
  padding: 40px 24px 0;
}

.blog-post-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 20px;
}

.blog-post-meta {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-post-author-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.blog-post-author-name:hover { color: var(--accent-teal); }

.blog-post-dates {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Standard HTML elements from marked inside .blog-post-body */
.blog-post-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.blog-post-body h1 { font-size: 1.6rem; }
.blog-post-body h2 { font-size: 1.35rem; }
.blog-post-body h3 { font-size: 1.15rem; }
.blog-post-body h4 { font-size: 1rem; font-weight: 700; }

.blog-post-body p {
  margin-bottom: 1.2em;
}

.blog-post-body ul,
.blog-post-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.blog-post-body li {
  margin-bottom: 0.4em;
}

.blog-post-body blockquote {
  border-left: 4px solid var(--accent-teal);
  background: var(--bg-tertiary);
  padding: 12px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-primary);
}

.blog-post-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.blog-post-body code {
  font-family: var(--font-code);
  font-size: 0.85em;
  background: var(--bg-tertiary);
  color: var(--accent-purple);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.blog-post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.blog-post-body a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-post-body a:hover { color: var(--text-primary); }

.blog-post-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2em 0;
}

.blog-post-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1em 0;
}

/* Author controls injected by SPA */
#blog-author-controls {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* Launch Badge Section */
.verzio-badge-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px 0;
}

.verzio-badge-row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .verzio-badge-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.verzio-badge-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verzio-badge-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

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

.verzio-badge-controls {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
}

/* Custom iOS / Peerlist-style switch toggles */
.verzio-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.verzio-switch-input {
  display: none;
}

.verzio-switch-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.verzio-switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.verzio-switch-input:checked + .verzio-switch-slider {
  background-color: #00b274; /* Premium brand green */
  border-color: #00b274;
}

.verzio-switch-input:checked + .verzio-switch-slider::after {
  transform: translateX(20px);
  background-color: #ffffff;
}

.verzio-switch-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Preview Card Container */
.verzio-badge-preview-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.verzio-badge-preview-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #090a0f; /* Rich dark container */
  border: 1px solid var(--border-default);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .verzio-badge-preview-box {
  background: #fbfbfd;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.verzio-badge-preview-box.amplify-aspect {
  aspect-ratio: 16 / 9;
  padding: 20px;
}

.verzio-badge-preview-box img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

[data-theme="light"] .verzio-badge-preview-box img {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

.verzio-badge-preview-box:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.verzio-badge-preview-box:hover img {
  transform: scale(1.02);
}

/* Buttons */
.verzio-badge-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.verzio-badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.verzio-badge-btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.verzio-badge-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verzio-badge-btn:hover svg {
  transform: translateY(-1px);
}

.verzio-badge-btn:active {
  transform: scale(0.98);
}

.verzio-badge-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 16px 0;
}

#modal-app-launch-badge-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

#modal-app-launch-badge-section .verzio-badge-container {
  gap: 20px;
  padding: 0;
}

#modal-app-launch-badge-section .verzio-badge-row {
  grid-template-columns: 1fr;
  gap: 14px;
}

#modal-app-launch-badge-section .verzio-badge-title {
  font-size: 1.05rem;
}

#modal-app-launch-badge-section .verzio-badge-desc {
  font-size: 0.78rem;
  line-height: 1.45;
}

#modal-app-launch-badge-section .verzio-badge-controls {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

#modal-app-launch-badge-section .verzio-switch-label {
  font-size: 0.78rem;
}

#modal-app-launch-badge-section .verzio-badge-socials {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#modal-app-launch-badge-section .verzio-badge-preview-box {
  border-radius: var(--radius-md);
  padding: 14px;
}

#modal-app-launch-badge-section .verzio-badge-actions {
  gap: 8px;
  flex-direction: column;
}

#modal-app-launch-badge-section .verzio-badge-btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.78rem;
}

#modal-app-launch-badge-section .verzio-badge-divider {
  margin: 0;
}

/* Premium Social Sharing Section in Launch Badge Column */
.verzio-badge-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.verzio-socials-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verzio-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.verzio-social-link svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.verzio-social-link:hover {
  background: var(--bg-input-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.verzio-social-link:active {
  transform: translateY(0);
}

/* Customized Hover Brand Accents */
#badge-share-x:hover {
  border-color: var(--text-primary);
  color: #ffffff;
  background: #000000;
}
[data-theme="light"] #badge-share-x:hover {
  background: #111111;
}

#badge-share-linkedin:hover {
  border-color: #0077b5;
  color: #ffffff;
  background: #0077b5;
}

#verzio-share-copy-url:hover {
  border-color: var(--accent-teal);
  color: var(--bg-primary);
  background: var(--accent-teal);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.3);
}

/* Copy Confirmation Dynamic Success State */
.verzio-social-link.copied {
  background: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(48, 209, 88, 0.4) !important;
  transform: scale(1.05) !important;
}


/* ==========================================================================
   Light Mode Premium Overrides for Spotlight and Sidebar Featured Cards
   ========================================================================== */
[data-theme="light"] .featured-spotlight-card {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(0, 137, 123, 0.15);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 137, 123, 0.02);
}

[data-theme="light"] .featured-spotlight-card:hover {
  border-color: rgba(0, 137, 123, 0.35);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 137, 123, 0.06);
}

[data-theme="light"] .featured-spotlight-glow {
  background: radial-gradient(circle, rgba(0, 137, 123, 0.05) 0%, rgba(0, 137, 123, 0) 70%);
}

[data-theme="light"] .featured-logo {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .spotlight-tag {
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.08), rgba(123, 31, 162, 0.08));
  border-color: rgba(0, 137, 123, 0.2);
}

[data-theme="light"] .sidebar-featured-item {
  background: rgba(0, 0, 0, 0.015);
  border-color: transparent;
}

[data-theme="light"] .sidebar-featured-item:hover {
  background: rgba(0, 137, 123, 0.04);
  border-color: rgba(0, 137, 123, 0.2);
}

[data-theme="light"] .sidebar-featured-logo {
  border-color: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Maker Direct Messages
   ========================================================================== */
.messages-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 520px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-primary);
}

.messages-list {
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  overflow-y: auto;
}

.messages-conversation-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.messages-conversation-item:hover,
.messages-conversation-item.active {
  background: rgba(0, 245, 212, 0.08);
}

.messages-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.messages-avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
}

.messages-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-conversation-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.messages-conversation-top {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.messages-conversation-top strong {
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-conversation-top span {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 0.68rem;
}

.messages-conversation-preview {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-unread {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-teal);
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
}

.messages-thread {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.messages-thread-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
}

.messages-thread-header span span {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
}

.messages-thread-body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
}

.messages-empty {
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.message-row {
  display: flex;
  margin-bottom: 12px;
}

.message-row.own {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(72%, 520px);
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.message-row.own .message-bubble {
  border-color: transparent;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  color: #ffffff;
}

.message-bubble time {
  display: block;
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 0.66rem;
}

.message-row.own .message-bubble time {
  color: rgba(255, 255, 255, 0.78);
}

.messages-compose {
  align-items: flex-end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.messages-compose textarea {
  min-height: 42px;
  max-height: 120px;
  resize: none;
}

@media (max-width: 768px) {
  .messages-layout {
    grid-template-columns: 1fr;
    min-height: 620px;
  }

  .messages-list {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .message-bubble {
    max-width: 86%;
  }
}

@media (max-width: 640px) {
  .security-scan-grid { grid-template-columns: 1fr !important; }
}

/* ─── Progressive Web App (PWA) Install Banner ──────────────────────────────── */

.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(6, 8, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 99999;
  box-shadow: 0 12px 40px rgba(0, 245, 212, 0.15), 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: pwa-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .pwa-install-banner {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

@keyframes pwa-slide-up {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.pwa-install-banner.fade-out {
  animation: pwa-fade-out 0.3s ease forwards;
}

@keyframes pwa-fade-out {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}

.pwa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--border-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pwa-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-btn {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  color: #020617;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 245, 212, 0.2);
}

.pwa-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 245, 212, 0.35);
}

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

.pwa-close-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.pwa-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .pwa-install-banner {
    bottom: 16px;
    padding: 12px 16px;
  }
  .pwa-logo {
    width: 36px;
    height: 36px;
  }
  .pwa-title {
    font-size: 0.82rem;
  }
  .pwa-desc {
    font-size: 0.68rem;
  }
  .pwa-install-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

/* ─── Cinematic open-viewport direction ───────────────────────────────────── */

html {
  background: var(--bg-primary);
}

body {
  position: relative;
  background:
    radial-gradient(circle at 76% 4%, rgba(69, 255, 195, 0.075), transparent 29rem),
    radial-gradient(circle at 12% 20%, rgba(64, 127, 255, 0.045), transparent 26rem),
    var(--bg-primary);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(133, 255, 217, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 255, 217, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 64rem);
  mask-image: linear-gradient(to bottom, #000 0, transparent 64rem);
}

.top-nav {
  height: 78px;
  padding: 0 clamp(20px, 3.4vw, 64px);
  background: var(--bg-nav);
  border-bottom-color: rgba(171, 255, 228, 0.09);
}

.top-nav::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(34vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 255, 213, 0.7));
}

.nav-brand {
  gap: 14px;
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border-color: rgba(122, 255, 213, 0.25);
  box-shadow: 0 0 24px rgba(122, 255, 213, 0.1);
}

.nav-wordmark {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.nav-tabs {
  gap: 2px;
  margin-left: clamp(16px, 2.5vw, 40px);
}

.nav-tab {
  position: relative;
  padding: 8px 13px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.77rem;
  letter-spacing: 0.025em;
}

.nav-tab.active {
  border-color: transparent;
  background: transparent;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  height: 1px;
  background: var(--accent-teal);
  box-shadow: 0 0 9px var(--accent-teal);
}

.theme-toggle-btn,
.notification-btn,
.nav-avatar {
  border-radius: 7px;
}

.nav-avatar {
  color: #02100c;
  background: var(--accent-teal);
}

.nav-launch-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--accent-teal);
  border-radius: 6px;
  background: var(--accent-teal);
  color: #03100c;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.nav-launch-btn:hover {
  transform: translateY(-1px);
  background: #a0ffe1;
  box-shadow: 0 0 24px rgba(122, 255, 213, 0.16);
}

.main-content {
  padding-top: 78px;
}

.content-container {
  width: min(100%, 1660px);
  max-width: none;
  padding: 42px clamp(20px, 4vw, 72px) 100px;
}

#section-discover .content-container {
  padding-top: 0;
}

.hero {
  min-height: min(760px, calc(100svh - 78px));
  display: grid;
  place-items: center;
  margin: 0 calc(clamp(20px, 4vw, 72px) * -1);
  padding: 76px clamp(20px, 7vw, 120px) 64px;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  top: -18%;
  right: -5%;
  width: min(66vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 35%, rgba(122, 255, 213, 0.065) 35.2% 35.4%, transparent 35.7%),
    radial-gradient(circle at center, rgba(122, 255, 213, 0.09), transparent 54%);
  filter: blur(0.2px);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: 5%;
  left: 38%;
  height: 45%;
  opacity: 0.28;
  background: repeating-linear-gradient(90deg, transparent 0 31px, rgba(122, 255, 213, 0.16) 32px 33px);
  transform: perspective(500px) rotateX(66deg) rotateZ(-8deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, transparent 90%);
  mask-image: linear-gradient(90deg, transparent, #000 30%, transparent 90%);
}

.hero-content {
  width: min(100%, 1280px);
  text-align: left;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin-bottom: clamp(28px, 4vh, 48px);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 14px var(--accent-teal);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.hero-kicker-code {
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--border-default);
  color: var(--accent-teal);
}

.hero-title {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(3.7rem, 8.3vw, 8.5rem);
  font-weight: 500;
  line-height: 0.87;
  letter-spacing: -0.075em;
  text-wrap: balance;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.hero-title span {
  color: transparent;
  background: var(--gradient-hero-title);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  max-width: 660px;
  margin: clamp(28px, 4.5vh, 46px) 0 0;
  color: #b4c1bd;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.65;
}

.hero-search {
  max-width: 920px;
  margin: clamp(32px, 5vh, 52px) 0 0;
}

.hero-search .search-input {
  height: 64px;
  padding: 0 170px 0 66px;
  border: 1px solid rgba(188, 255, 234, 0.18);
  border-radius: 8px;
  background: rgba(8, 16, 14, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 18px 60px rgba(0, 0, 0, 0.26);
  font-size: 1rem;
  backdrop-filter: blur(18px);
}

.hero-search .search-input:focus {
  border-color: rgba(122, 255, 213, 0.62);
  box-shadow: 0 0 0 1px rgba(122, 255, 213, 0.14), 0 0 42px rgba(122, 255, 213, 0.08);
}

.hero-search .search-ai-badge {
  border: 0;
  border-radius: 3px;
  background: var(--accent-teal);
  color: #04100c;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.hero-search-hint {
  position: absolute;
  right: 22px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 38px;
  margin-top: 24px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero-index strong {
  margin-right: 6px;
  color: var(--accent-teal);
  font-weight: 500;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(122, 255, 213, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 16px var(--accent-teal);
}

.hero-orbit-one {
  top: 14%;
  right: 2%;
  width: min(38vw, 560px);
  aspect-ratio: 1;
  animation: orbit-drift 24s linear infinite;
}

.hero-orbit-one::after {
  top: 19%;
  left: 7%;
}

.hero-orbit-two {
  right: 16%;
  bottom: 13%;
  width: min(21vw, 320px);
  aspect-ratio: 1;
  opacity: 0.7;
  animation: orbit-drift 17s linear infinite reverse;
}

.hero-orbit-two::after {
  right: 10%;
  bottom: 22%;
}

.section-header {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.section-title {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.section-subtitle {
  display: block;
  margin-top: 7px;
}

#featured-product-discover-container {
  margin-top: 38px;
  margin-bottom: 64px;
}

.featured-grid-container,
.cards-grid {
  gap: clamp(16px, 1.5vw, 26px);
}

.featured-spotlight-card,
.app-card,
.trending-card,
.collection-card,
.prompt-card,
.maker-card,
.blog-card,
.feed-card,
.community-sidebar-card,
.build-story-card {
  border-color: var(--border-subtle);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16, 24, 22, 0.88), rgba(6, 11, 10, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.featured-spotlight-card:hover,
.app-card:hover,
.trending-card:hover,
.collection-card:hover,
.prompt-card:hover,
.maker-card:hover,
.blog-card:hover {
  border-color: rgba(122, 255, 213, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 30px rgba(122, 255, 213, 0.035);
}

.featured-spotlight-card {
  padding: 14px;
}

.featured-preview-wrapper,
.app-card-image-wrapper {
  border-radius: 5px;
}

.featured-spotlight-glow {
  background: radial-gradient(circle, rgba(122, 255, 213, 0.12), transparent 68%);
}

.spotlight-tag,
.featured-ad-badge,
.filter-pill.active {
  border-radius: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.trending-container {
  margin-bottom: 76px;
}

.trending-row {
  gap: 14px;
  padding: 8px 0 24px;
}

.trending-card {
  min-width: 330px;
  width: 330px;
  padding: 20px;
}

.trending-rank {
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 255, 213, 0.48);
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 400;
}

.filter-bar {
  padding-top: 6px;
}

.filter-select {
  border-radius: 5px;
  background-color: rgba(12, 19, 17, 0.82);
}

.app-card {
  padding: 12px;
}

.app-card-title,
.featured-app-name,
.trending-title {
  font-weight: 500;
  letter-spacing: -0.025em;
}

.app-tag {
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

body > footer {
  background: rgba(3, 7, 6, 0.94) !important;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 76% 4%, rgba(0, 137, 123, 0.08), transparent 29rem),
    var(--bg-primary);
}

[data-theme="light"] .featured-spotlight-card,
[data-theme="light"] .app-card,
[data-theme="light"] .trending-card,
[data-theme="light"] .collection-card,
[data-theme="light"] .prompt-card,
[data-theme="light"] .maker-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .feed-card,
[data-theme="light"] .community-sidebar-card {
  background: rgba(255, 255, 255, 0.78);
}

[data-theme="light"] .hero-search .search-input {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hero-subtitle {
  color: var(--text-secondary);
}

[data-theme="light"] .trending-rank {
  color: #006b60;
  -webkit-text-stroke: 0;
  opacity: 1;
}

.agent-discovery-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  margin: 38px 0 82px;
  padding: clamp(32px, 4.5vw, 62px);
  border: 1px solid rgba(122, 255, 213, 0.18);
  border-radius: 8px;
  background: linear-gradient(125deg, rgba(122, 255, 213, 0.065), rgba(7, 13, 12, 0.82) 54%);
  position: relative;
  overflow: hidden;
}

.agent-discovery-brief::after {
  content: 'AI / INDEX';
  position: absolute;
  right: -12px;
  bottom: -25px;
  color: rgba(122, 255, 213, 0.035);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.agent-discovery-copy,
.agent-crawler-grid,
.agent-discovery-note {
  position: relative;
  z-index: 1;
}

.agent-discovery-copy h2 {
  margin: 15px 0 18px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.agent-discovery-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.agent-discovery-copy a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--accent-teal);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.agent-discovery-copy a:hover {
  text-shadow: 0 0 14px rgba(122, 255, 213, 0.35);
}

.agent-crawler-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
}

.agent-crawler-grid > div {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 9, 8, 0.94);
}

.agent-crawler-grid span,
.agent-crawler-grid strong,
.agent-crawler-grid i {
  display: block;
}

.agent-crawler-grid span {
  margin-bottom: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

.agent-crawler-grid strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
}

.agent-crawler-grid i {
  margin-top: 7px;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-style: normal;
  text-transform: uppercase;
}

.agent-crawler-grid i::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  vertical-align: 1px;
}

.agent-discovery-note {
  grid-column: 1 / -1;
  margin: -18px 0 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Builder launch workspace */

.launch-workspace {
  width: min(100%, 1660px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 72px) 96px;
}

.launch-hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(54px, 8vw, 140px);
  padding: clamp(70px, 10vh, 116px) 0;
  position: relative;
}

.launch-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 5%;
  right: -9%;
  width: min(58vw, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 255, 213, 0.09), transparent 63%);
  pointer-events: none;
}

.launch-eyebrow,
.launch-section-label {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.launch-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.launch-eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
}

.launch-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 6.25vw, 7.1rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.launch-hero-copy > p {
  max-width: 680px;
  margin: 32px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.launch-intake {
  max-width: 760px;
  margin-top: 42px;
}

.launch-intake label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.launch-intake-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.launch-intake-row input {
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  outline: none;
  background: rgba(8, 16, 14, 0.8);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.launch-intake-row input:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px rgba(122, 255, 213, 0.12), 0 0 32px rgba(122, 255, 213, 0.07);
}

.launch-intake-row button,
.launch-final-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--accent-teal);
  border-radius: 6px;
  background: var(--accent-teal);
  color: #03100c;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.launch-intake-row button {
  min-height: 60px;
  padding: 0 20px;
}

.launch-intake-row button:hover,
.launch-final-cta button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(122, 255, 213, 0.14);
}

.launch-intake-error {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--accent-pink);
  font-size: 0.78rem;
}

.launch-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.launch-trust-row span::before {
  content: '✓';
  margin-right: 7px;
  color: var(--accent-teal);
}

.launch-output-panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(122, 255, 213, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 24, 21, 0.9), rgba(4, 9, 8, 0.96));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.035);
}

.launch-output-panel::before,
.launch-output-panel::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

.launch-output-panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent-teal);
  border-left: 1px solid var(--accent-teal);
}

.launch-output-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--accent-teal);
  border-bottom: 1px solid var(--accent-teal);
}

.launch-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.09em;
}

.launch-output-status {
  color: var(--accent-teal);
}

.launch-output-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
}

.launch-output-score {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 6px;
  border-top: 1px solid var(--border-subtle);
}

.launch-output-number {
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.launch-output-score strong,
.launch-output-score small {
  display: block;
}

.launch-output-score strong {
  margin-bottom: 5px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
}

.launch-output-score small {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
}

.launch-output-foot {
  padding: 14px 6px 2px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.launch-process {
  padding: 100px 0 112px;
  border-top: 1px solid var(--border-subtle);
}

.launch-process > h2 {
  max-width: 780px;
  margin: 18px 0 56px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.launch-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
}

.launch-process-grid article {
  min-height: 250px;
  padding: clamp(26px, 3.2vw, 46px);
  background: var(--bg-primary);
}

.launch-process-grid article > span {
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.launch-process-grid h3 {
  margin: 60px 0 12px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

.launch-process-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.launch-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 68px);
  border: 1px solid rgba(122, 255, 213, 0.2);
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(122, 255, 213, 0.08), rgba(5, 10, 9, 0.5) 55%);
}

.launch-final-cta div > span {
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.launch-final-cta h2 {
  margin: 10px 0 0;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.launch-final-cta button {
  min-height: 52px;
  flex: 0 0 auto;
  padding: 0 22px;
}

.app-feedback-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.app-feedback-label {
  padding: 2px 7px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-feedback-label.would-try {
  border-color: rgba(85, 185, 255, 0.35);
  color: var(--accent-blue);
}

.app-feedback-label.clear-value {
  border-color: rgba(122, 255, 213, 0.35);
  color: var(--accent-teal);
}

.app-feedback-label.needs-work {
  border-color: rgba(255, 159, 10, 0.38);
  color: var(--accent-orange);
}

[data-theme="light"] .launch-intake-row input,
[data-theme="light"] .launch-output-panel {
  background: rgba(255, 255, 255, 0.86);
}

[data-theme="light"] .agent-discovery-brief {
  background: linear-gradient(125deg, rgba(0, 137, 123, 0.07), rgba(255, 255, 255, 0.84) 54%);
}

[data-theme="light"] .agent-crawler-grid > div {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .launch-process-grid article {
  background: #f8faf9;
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes orbit-drift {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .nav-tab {
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .nav-tabs {
    margin-left: 12px;
  }

  .nav-launch-btn {
    padding-inline: 12px;
  }

  .launch-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr);
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .top-nav {
    height: 72px;
  }

  .main-content {
    padding-top: 72px;
  }

  .hero {
    min-height: calc(100svh - 72px);
  }

  .nav-tab.active::after {
    display: none;
  }

  .launch-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .launch-output-panel {
    width: min(100%, 640px);
  }

  .agent-discovery-brief {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .top-nav {
    height: 64px;
  }

  .main-content {
    padding-top: 64px;
  }

  .content-container {
    padding: 28px 16px 72px;
  }

  .hero {
    min-height: calc(100svh - 64px);
    margin-inline: -16px;
    padding: 52px 16px 40px;
  }

  .hero::before {
    top: 0;
    right: -58%;
    width: 150vw;
  }

  .hero::after {
    display: none;
  }

  .hero-title {
    font-size: clamp(3.25rem, 17vw, 5.25rem);
    line-height: 0.91;
  }

  .hero-kicker {
    max-width: 100%;
    font-size: 0.61rem;
  }

  .hero-kicker-code {
    display: none;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-search .search-input {
    height: 56px;
    padding-right: 18px;
  }

  .hero-search-hint {
    display: none;
  }

  .hero-index {
    display: grid;
    gap: 8px;
  }

  .hero-orbit-one {
    top: 25%;
    right: -48%;
    width: 110vw;
  }

  .hero-orbit-two {
    display: none;
  }

  .nav-launch-btn {
    min-width: 38px;
    width: 38px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }

  .nav-launch-btn span:first-child {
    display: none;
  }

  .launch-workspace {
    padding: 0 16px 72px;
  }

  .agent-discovery-brief {
    margin: 24px 0 64px;
    padding: 28px 20px;
  }

  .agent-crawler-grid {
    grid-template-columns: 1fr;
  }

  .agent-crawler-grid > div {
    min-height: 108px;
  }

  .agent-discovery-note {
    margin-top: -10px;
  }

  .launch-hero {
    gap: 46px;
    padding: 58px 0 72px;
  }

  .launch-hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .launch-intake-row {
    grid-template-columns: 1fr;
  }

  .launch-trust-row {
    display: grid;
  }

  .launch-process {
    padding: 72px 0;
  }

  .launch-process-grid {
    grid-template-columns: 1fr;
  }

  .launch-process-grid article {
    min-height: 220px;
  }

  .launch-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header {
    align-items: flex-start;
  }

  .trending-card {
    min-width: 282px;
    width: 282px;
  }
}

.agent-profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent-teal) 34%, var(--border-subtle));
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-teal) 9%, transparent), color-mix(in srgb, var(--accent-blue) 6%, transparent));
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.agent-profile-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-teal);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-teal) 14%, transparent), color-mix(in srgb, var(--accent-blue) 9%, transparent));
}

.agent-profile-link span:first-child {
  display: grid;
  gap: 3px;
}

.agent-profile-link small {
  color: var(--accent-teal);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.agent-profile-link strong {
  font-family: var(--font-heading);
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .hero-status-dot {
    animation: none;
  }
}
