/* 
================================================================
Arc Hub — Startup Design System (Premium Ecosystem Directory)
================================================================
*/

/* 1. Theme Configuration & Tokens */
:root {
  /* Colors - Minimal Slate & Monochrome Scale */
  --bg-canvas: #000000;
  --bg-surface: #0A0A0C;
  --bg-surface-hover: #121215;
  
  --border-muted: #1A1A1A;
  --border-active: #2E2E33;
  --border-focus: #FFFFFF;
  
  --text-title: #FFFFFF;
  --text-body: #A1A1AA;
  --text-muted: #71717A;
  
  /* System Accents */
  --accent-blue: #0070F3;
  --accent-teal: #00DF89;
  
  /* Category Colors (Tasteful Muted Tones) */
  --cat-ai: #C084FC;          /* Soft Purple */
  --cat-defi: #34D399;        /* Emerald Green */
  --cat-payments: #60A5FA;    /* Electric Blue */
  --cat-infra: #94A3B8;       /* Slate Gray */
  --cat-tools: #FBBF24;       /* Amber */
  --cat-community: #22D3EE;   /* Cyan */
  
  /* Category Pill Backgrounds & Gradients */
  --badge-border: rgba(255, 255, 255, 0.08);
  --badge-bg: rgba(255, 255, 255, 0.03);
  
  /* Typography Scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout Constants */
  --container-width: 1600px;
  --container-width-form: 680px;
  --header-height: 64px;
  --border-radius: 8px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-body);
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Faint 40px background grid lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

p {
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* 2. Container Constraints */
.container {
  width: 95%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  z-index: 1;
}

.max-w-form {
  max-width: var(--container-width-form) !important;
}

/* 3. Sticky Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-title);
}

.logo-icon {
  width: 20px;
  height: 20px;
  color: var(--text-title);
}

.accent-text {
  font-weight: 400;
  color: var(--text-body);
}

/* Desktop Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-title);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--bg-canvas);
  background-color: var(--text-title);
  border-radius: 6px;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background-color: #E2E2E5;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-body);
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle:hover {
  color: var(--text-title);
}

/* 4. Mobile Overlay Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 280px;
  height: 100%;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-muted);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.mobile-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-item {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-muted);
}

.mobile-nav-item.active {
  color: var(--text-title);
  border-bottom-color: var(--text-title);
}

.mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bg-canvas);
  background-color: var(--text-title);
  border-radius: 6px;
  margin-top: 16px;
}

/* 5. Main Content Wrapper */
.main-content {
  flex-grow: 1;
  padding-top: var(--header-height);
}

.page-section {
  display: none;
  opacity: 0;
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 6. Centered Search in Header Capsule */
.nav-search-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: 22px;
  padding: 0 16px;
  gap: 8px;
  height: 44px;
  width: 100%;
  max-width: 500px;
  transition: var(--transition-fast);
}

.nav-search-wrapper:focus-within {
  border-color: var(--border-focus);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.nav-search-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-title);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
}

.nav-search-wrapper input::placeholder {
  color: var(--text-muted);
}

.mobile-search-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-muted);
  border-radius: 20px;
  padding: 0 12px;
  height: 40px;
  margin-bottom: 24px;
}

.mobile-search-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-title);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
}

.mobile-search-wrapper input::placeholder {
  color: var(--text-muted);
}

/* 7. Section 1: Split Hero Section */
.hero-split-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

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

.hero-title-main {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-title);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 40%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-main {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-top: 20px;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 580px;
}

.hero-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.category-filters-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.category-filters-container::-webkit-scrollbar {
  height: 3px;
}
.category-filters-container::-webkit-scrollbar-thumb {
  background-color: var(--border-muted);
  border-radius: 2px;
}

.filter-pill {
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: transparent;
  border: 1px solid var(--border-muted);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--border-active);
  color: var(--text-title);
}

.filter-pill.active {
  background-color: var(--text-title);
  border-color: var(--text-title);
  color: var(--bg-canvas);
  font-weight: 600;
}

/* Hero Right Side Ecosystem Orbit Visualization */
.hero-graphic-column {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.orbit-visual-wrapper {
  width: 100%;
  max-width: 400px;
}

.orbit-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.central-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

/* Glowing Pulsate animations inside SVG nodes */
.pulsate-ring {
  transform-origin: center;
  animation: svgRingPulse 3s infinite ease-in-out;
}
.pulsate-ring-slow {
  transform-origin: center;
  animation: svgRingPulse 4s infinite ease-in-out;
}

@keyframes svgRingPulse {
  0%, 100% {
    r: 10px;
    opacity: 0.1;
  }
  50% {
    r: 18px;
    opacity: 0.5;
  }
}

/* Orbit Rotations at different speeds */
.orbit-node {
  transform-origin: 200px 200px;
  animation: nodeOrbitRotate 40s infinite linear;
}

.node-ai { animation-duration: 25s; }
.node-defi { animation-duration: 35s; }
.node-payments { animation-duration: 50s; }
.node-infra { animation-duration: 30s; }
.node-tools { animation-duration: 45s; }
.node-community { animation-duration: 40s; }

@keyframes nodeOrbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 8. SECTION 2: Compact Hero Statistics Card */
.hero-stats-card {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background-color: rgba(10, 10, 12, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 300px;
  height: 90px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.hero-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-muted);
}

.hero-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* 9. SECTION 3: Featured Projects & Page Directories */
.featured-projects-section {
  padding-bottom: 100px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-title);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
}

.view-all-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

/* Projects directory layout headers */
.page-header-wrapper {
  padding-top: 56px;
  padding-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text-title);
}

.page-description {
  font-size: 0.95rem;
  color: var(--text-body);
  max-width: 540px;
  line-height: 1.5;
}

/* Filter controls on Projects screen */
.filter-controls {
  margin-top: 24px;
  margin-bottom: 24px;
}

.results-meta {
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Center alignment for Ecosystem Directory hero */
#section-projects .page-header-wrapper > .page-title,
#section-projects .page-header-wrapper > .page-description {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#section-projects .filter-controls {
  display: flex;
  justify-content: center;
}

/* Premium Button presets */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.btn-primary-premium {
  background-color: var(--text-title);
  color: var(--bg-canvas);
}

.btn-primary-premium:hover {
  background-color: #E2E2E5;
}

.btn-secondary-premium {
  background-color: transparent;
  border-color: var(--border-muted);
  color: var(--text-title);
}

.btn-secondary-premium:hover {
  border-color: var(--border-active);
  background-color: rgba(255, 255, 255, 0.02);
}

/* 10. Immersive Grid Layout */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: none;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 11. Glassmorphic Project Card Structure */
.project-card {
  background-color: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-muted); /* #1A1A1A */
  border-radius: var(--border-radius);
  padding: 24px; /* Reduced padding to minimize empty space */
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-fast);
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  background-color: var(--bg-surface-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.project-card:hover .project-name {
  color: #FFFFFF !important;
}

/* Category-specific card hover subtle border glows */
.project-card:has(.badge-ai):hover {
  border-color: var(--cat-ai);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(192, 132, 252, 0.08);
}
.project-card:has(.badge-defi):hover {
  border-color: var(--cat-defi);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(52, 211, 153, 0.08);
}
.project-card:has(.badge-payments):hover {
  border-color: var(--cat-payments);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(96, 165, 250, 0.08);
}
.project-card:has(.badge-infrastructure):hover {
  border-color: var(--cat-infra);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(148, 163, 184, 0.08);
}
.project-card:has(.badge-tools):hover {
  border-color: var(--cat-tools);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(251, 191, 36, 0.08);
}
.project-card:has(.badge-community):hover {
  border-color: var(--cat-community);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(34, 211, 238, 0.08);
}

/* Card Header elements */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px; /* Moved category badge & logo closer to title area */
}

.project-logo-container {
  width: 34px; /* Reduced logo container size by 15% */
  height: 34px; /* Reduced logo container size by 15% */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-muted);
  background-color: var(--bg-canvas);
  color: var(--text-title);
  flex-shrink: 0;
}

.project-logo-container svg {
  width: 17px; /* Reduced proportionally */
  height: 17px; /* Reduced proportionally */
}

.category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--badge-border);
  background-color: var(--badge-bg);
  color: var(--text-body);
}

.project-name {
  font-size: 1.35rem; /* Bold focal point typography */
  font-weight: 800; /* Extra strong hierarchy */
  margin-bottom: 8px;
  color: var(--text-title);
  transition: var(--transition-fast);
}

.project-desc {
  font-size: 0.85rem; /* Improved readability size */
  color: var(--text-body); /* Restored contrast for description readability */
  line-height: 1.5;
  margin-bottom: 20px; /* Reduced spacing inside card */
  flex-grow: 1;
}

/* Card Footer and Monograms */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-muted);
  padding-top: 16px;
}

/* Public Project Card Footer Grid Override */
.project-card:not(.dashboard-card) .card-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.card-footer-owner {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  justify-self: start;
}

.project-card:not(.dashboard-card) .card-footer .btn-like-project {
  justify-self: center;
}

.project-card:not(.dashboard-card) .card-footer .card-action-btn {
  justify-self: end;
}

.builder-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
}

.builder-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--border-active);
  border: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--text-title);
}

.builder-name-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-center-link {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.card-icon-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.card-icon-link:hover {
  color: var(--text-title);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.card-icon-link svg {
  width: 14px;
  height: 14px;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: none;
  background-color: transparent;
  padding: 4px 0;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  text-decoration: none;
  justify-self: end;
}

.card-action-btn:hover {
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Category-Specific CTA Hover Glows */
.project-card:has(.badge-ai) .card-action-btn:hover {
  color: var(--cat-ai);
  text-shadow: 0 0 8px var(--cat-ai);
  filter: brightness(1.2);
}

.project-card:has(.badge-defi) .card-action-btn:hover {
  color: var(--cat-defi);
  text-shadow: 0 0 8px var(--cat-defi);
  filter: brightness(1.2);
}

.project-card:has(.badge-payments) .card-action-btn:hover {
  color: var(--cat-payments);
  text-shadow: 0 0 8px var(--cat-payments);
  filter: brightness(1.2);
}

.project-card:has(.badge-infrastructure) .card-action-btn:hover {
  color: var(--cat-infra);
  text-shadow: 0 0 8px var(--cat-infra);
  filter: brightness(1.2);
}

.project-card:has(.badge-tools) .card-action-btn:hover {
  color: var(--cat-tools);
  text-shadow: 0 0 8px var(--cat-tools);
  filter: brightness(1.2);
}

.project-card:has(.badge-community) .card-action-btn:hover {
  color: var(--cat-community);
  text-shadow: 0 0 8px var(--cat-community);
  filter: brightness(1.2);
}

/* Category Badge Colors Override */
.project-card:has(.node-ai) .category-badge, 
.badge-ai {
  color: var(--cat-ai);
  border-color: rgba(192, 132, 252, 0.2);
  background-color: rgba(192, 132, 252, 0.04);
}

.project-card:has(.node-defi) .category-badge, 
.badge-defi {
  color: var(--cat-defi);
  border-color: rgba(52, 211, 153, 0.2);
  background-color: rgba(52, 211, 153, 0.04);
}

.project-card:has(.node-payments) .category-badge, 
.badge-payments {
  color: var(--cat-payments);
  border-color: rgba(96, 165, 250, 0.2);
  background-color: rgba(96, 165, 250, 0.04);
}

.project-card:has(.node-infra) .category-badge, 
.badge-infrastructure {
  color: var(--cat-infra);
  border-color: rgba(148, 163, 184, 0.2);
  background-color: rgba(148, 163, 184, 0.04);
}

.project-card:has(.node-tools) .category-badge, 
.badge-tools {
  color: var(--cat-tools);
  border-color: rgba(251, 191, 36, 0.2);
  background-color: rgba(251, 191, 36, 0.04);
}

.project-card:has(.node-community) .category-badge, 
.badge-community {
  color: var(--cat-community);
  border-color: rgba(34, 211, 238, 0.2);
  background-color: rgba(34, 211, 238, 0.04);
}

/* 12. Builders Layout Grid */
.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.builder-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  height: 100%;
}

.builder-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.04);
}

.builder-card-header {
  margin-bottom: 18px;
  width: 100%;
  display: flex;
}

.builder-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-title);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.builder-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.builder-card:hover .builder-card-avatar {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.builder-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  margin-bottom: 32px;
  width: 100%;
}

.builder-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.01em;
}

.builder-card-project {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.builder-card-project span {
  color: var(--text-title);
  font-weight: 500;
}

.builder-card-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.builder-minimal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 6px 16px;
  border-radius: 6px;
}

.builder-minimal-link:hover {
  color: var(--text-title);
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.builder-minimal-link svg {
  width: 13px;
  height: 13px;
}

/* 13. Submit Project Form Layout */
.form-container-premium {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  padding: 40px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.submit-form-premium {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group-premium {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.form-group-premium label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-title);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group-premium label .req {
  color: var(--accent-teal);
}

.form-group-premium input,
.form-group-premium select,
.form-group-premium textarea {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 12px;
  color: var(--text-title);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-group-premium select {
  position: relative;
  z-index: 50;
}

.form-group-premium input:focus,
.form-group-premium select:focus,
.form-group-premium textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-group-premium select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23626266' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group-premium select option {
  background-color: var(--bg-surface);
  color: var(--text-title);
}

.form-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.char-counter-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-submit-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  background-color: var(--text-title);
  color: var(--bg-canvas);
  transition: var(--transition-fast);
}

.btn-submit-premium:hover {
  background-color: #E2E2E5;
}

.btn-submit-premium svg {
  width: 16px;
  height: 16px;
}

/* Success Card Premium CSS */
.success-card-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0;
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon-wrapper-premium {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 223, 137, 0.05);
  border: 1px solid rgba(0, 223, 137, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  margin-bottom: 24px;
}

.success-icon-wrapper-premium svg {
  width: 24px;
  height: 24px;
}

.success-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-message {
  font-size: 0.9rem;
  color: var(--text-body);
  max-width: 380px;
  margin-bottom: 32px;
}

.success-actions-premium {
  display: flex;
  gap: 12px;
}

.hidden {
  display: none !important;
}

/* 14. Sticky Footer Redesign */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-muted);
  padding: 40px 0;
  margin-top: 100px;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 500;
}

/* 21. About Page Layout */
.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

/* Left: Main About Card */
.about-main-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-main-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.about-arc-hub-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.about-arc-hub-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-main-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.about-main-body p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* Support & Feedback footer inside main card */
.about-main-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-muted);
}

.about-support-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: -4px;
}

.about-support-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.about-support-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.about-support-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-title);
}

/* Contact icon buttons */
.about-contact-icons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}

.about-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  border: 1px solid var(--border-muted);
  background-color: var(--bg-canvas);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.about-icon-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.about-icon-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text-title);
  background-color: rgba(255,255,255,0.04);
  box-shadow: 0 0 10px rgba(255,255,255,0.06);
}

/* Right: Info column */
.about-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.about-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

.about-info-card:hover {
  border-color: var(--border-active);
}

.about-info-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.about-info-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.01em;
}

.about-info-card-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Status badge */
.about-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: rgba(0, 223, 137, 0.05);
  border: 1px solid rgba(0, 223, 137, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.about-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  animation: statusPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Roadmap list */
.about-roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.about-roadmap-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-muted);
}

.about-roadmap-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-roadmap-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--border-active);
  flex-shrink: 0;
}

/* 15. Media Queries (Mobile First) */
@media (max-width: 768px) {
  /* Navigation */
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  
  /* Top search hidden in header */
  .nav-search-wrapper {
    display: none;
  }
  
  /* Split Hero collapses */
  .hero-split-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
    width: 100%;
    max-width: 100%;
  }

  .hero-info-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }
  
  .hero-title-main {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    font-size: clamp(36px, 8vw, 56px);
    line-height: 1.2;
  }
  
  .hero-subtitle-main {
    max-width: 100%;
    margin-bottom: 24px;
  }
  
  .hero-filters-wrapper {
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .category-filters-container {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    display: flex;
    flex-wrap: nowrap;
  }

  .category-filters-container::-webkit-scrollbar {
    display: none; /* WebKit */
  }

  .hero-graphic-column {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  
  .orbit-visual-wrapper {
    margin: 0 auto;
    max-width: 280px;
    width: 100%;
  }
  
  .hero-stats-card {
    margin-left: auto;
    margin-right: auto;
  }

  .featured-projects-section {
    padding-top: 32px;
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .form-container-premium {
    padding: 24px;
  }
  
  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  /* About page: collapse to single column */
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-main-card {
    padding: 28px 20px;
  }

  /* About info cards: collapse to single column */
  .about-info-col {
    gap: 12px;
  }
}

/* 16. Empty State Component Styling */
.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 10, 12, 0.4);
  border: 1px dashed var(--border-muted);
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.empty-state-icon {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state-title {
  color: var(--text-title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* Card Entrance Slide-up and Fade-in Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 17. Project Card Logo Image Styling */
.project-card-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
  display: block;
}

/* 18. Styled File Upload Dropzone */
.upload-dropzone {
  border: 1px dashed var(--border-muted);
  border-radius: var(--border-radius);
  padding: 32px 20px;
  text-align: center;
  background-color: var(--bg-canvas);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 4px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.01);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: var(--transition-fast);
}

.upload-dropzone:hover .upload-icon {
  color: var(--text-title);
  transform: translateY(-2px);
}

.upload-text {
  font-size: 0.88rem;
  color: var(--text-body);
}

.upload-link {
  color: var(--text-title);
  text-decoration: underline;
  font-weight: 500;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Upload Preview State */
.upload-preview-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.preview-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--border-muted);
  background-color: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-grow: 1;
  text-align: left;
}

.preview-filename {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-title);
  word-break: break-all;
}

.btn-remove-logo {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: #EF4444; /* Soft Red */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.btn-remove-logo:hover {
  text-decoration: underline;
}

/* Error Message */
.upload-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 6px;
}

/* 19. Premium Custom Notification Modal */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.notification-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.notification-box {
  background-color: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 255, 255, 0.02);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-overlay.active .notification-box {
  transform: scale(1);
}

.notification-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

.notification-close-btn:hover {
  color: var(--text-title);
}

.notification-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notification-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.notification-icon-wrapper.success {
  background-color: rgba(0, 223, 137, 0.05);
  border: 1px solid rgba(0, 223, 137, 0.2);
  color: var(--accent-teal);
}

.notification-icon-wrapper.error {
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

.notification-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.notification-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.notification-message {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* 20. Beta Warning Notice Card */
.beta-notice-card {
  background-color: rgba(251, 191, 36, 0.02); /* Very faint amber tint */
  border: 1px solid rgba(251, 191, 36, 0.2);  /* Subtle amber/yellow accent border */
  border-radius: var(--border-radius);
  padding: 24px;
  margin-top: 8px;
  margin-bottom: 24px;
  text-align: left;
}

.beta-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #FBBF24; /* Amber text color for header */
}

.beta-notice-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.beta-notice-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.beta-notice-body {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beta-notice-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.beta-notice-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-body);
}

.beta-notice-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #FBBF24; /* Amber bullet points */
  font-weight: bold;
}

.beta-notice-footer {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 21. Authentication UI */
.auth-container {
  display: flex;
  align-items: center;
}

.user-profile-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--border-muted);
  transition: var(--transition-fast);
  object-fit: cover;
}

.user-avatar:hover {
  border-color: var(--text-title);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  width: 220px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
}

.dropdown-menu.hidden {
  display: none;
}

.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-header .user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-title);
}

.dropdown-header .user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.dropdown-item {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-body);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.dropdown-item:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-title);
}

.btn-signout {
  color: #EF4444;
}

.btn-signout:hover {
  background-color: rgba(239, 68, 68, 0.05);
  color: #F87171;
}

/* Project card actions bar */
.project-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-muted);
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--border-muted);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.btn-edit-project:hover {
  border-color: var(--text-title);
  color: var(--text-title);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-delete-project:hover {
  border-color: #EF4444;
  color: #EF4444;
  background-color: rgba(239, 68, 68, 0.1);
}



/* 20. Premium Custom Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.modal-box {
  background-color: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-muted);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 255, 255, 0.02);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-title);
}

.modal-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.modal-icon-wrapper.danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.modal-message {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 6px;
}

.modal-submessage {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-secondary-confirm {
  background-color: transparent;
  border: 1px solid var(--border-muted);
  color: var(--text-body);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary-confirm:hover {
  border-color: var(--text-title);
  color: var(--text-title);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-danger-confirm {
  background-color: #EF4444;
  border: 1px solid #EF4444;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-danger-confirm:hover {
  background-color: #DC2626;
  border-color: #DC2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Like Button & Heart Icon Styles */
.btn-like-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  line-height: 1;
}

.btn-like-project:hover {
  color: var(--text-body);
}

.btn-like-project .heart-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: var(--transition-fast), transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-like-project:hover .heart-icon {
  color: #EF4444;
  transform: scale(1.1);
}

.btn-like-project.liked {
  color: #EF4444;
}

.btn-like-project.liked .heart-icon {
  fill: #EF4444;
  stroke: #EF4444;
  transform: scale(1.15);
}

.btn-like-project:active .heart-icon {
  transform: scale(0.8);
}

.btn-like-project .like-count {
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease;
}





