:root {
  --bg: #0f172a;
  --card: #1e293b;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --grad-a: #6366f1;
  --grad-b: #8b5cf6;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
  --bg-grad-1: #18284d;
  --bg-grad-2: #0f172a;
  --bg-grad-3: #0b1120;
  --nav-hover: rgba(255, 255, 255, 0.07);
  --input-bg: rgba(255, 255, 255, 0.03);
  --modal-bg: linear-gradient(160deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  --stat-grad: linear-gradient(90deg, #fff, #94a3b8);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --border: rgba(0, 0, 0, 0.1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --bg-grad-1: #e2e8f0;
  --bg-grad-2: #f8fafc;
  --bg-grad-3: #f1f5f9;
  --nav-hover: rgba(0, 0, 0, 0.05);
  --input-bg: rgba(0, 0, 0, 0.03);
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  --modal-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  --stat-grad: linear-gradient(90deg, #0f172a, #475569);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at 20% 0%, var(--bg-grad-1) 0%, var(--bg-grad-2) 40%, var(--bg-grad-3) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
}

.blob-1 {
  width: 260px;
  height: 260px;
  background: #6366f1;
  top: 8%;
  left: 6%;
  animation: floatBlob1 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  right: 4%;
  top: 20%;
  animation: floatBlob2 16s ease-in-out infinite alternate;
}

.blob-3 {
  width: 240px;
  height: 240px;
  background: #0ea5e9;
  left: 42%;
  bottom: 6%;
  animation: floatBlob3 15s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(30vw, 20vh) scale(1.4) rotate(90deg); }
  100% { transform: translate(-10vw, 30vh) scale(0.8) rotate(180deg); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-25vw, -20vh) scale(0.7) rotate(-90deg); }
  100% { transform: translate(-10vw, 20vh) scale(1.3) rotate(-180deg); }
}

@keyframes floatBlob3 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(30vw, -20vh) scale(1.5) rotate(120deg); }
  100% { transform: translate(-20vw, -30vh) scale(0.9) rotate(240deg); }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.top-nav {
  position: sticky;
  top: var(--space-2);
  z-index: 20;
  margin: var(--space-2) auto;
  width: min(1100px, calc(100% - 32px));
  padding: 12px var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.8);
}

.nav-links {
  display: none;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

.menu-toggle {
  margin-left: auto;
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.nav-logout {
  padding: 6px 12px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--nav-hover);
}

main {
  width: min(1100px, calc(100% - 32px));
  margin: var(--space-4) auto 60px;
}

.section {
  margin-bottom: 60px;
  opacity: 1;
  transform: none;
  display: block;
  pointer-events: auto;
  scroll-margin-top: 100px;
}

.section:not(.active) {
  /* In a scrolling layout, we might not need .active for visibility anymore, 
     but we can keep it for highlight effects if desired. */
}

.section.reveal {
  /* We rely on the .reveal.visible transition now */
}

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

.hero {
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(130deg, rgba(99, 102, 241, 0.24), rgba(139, 92, 246, 0.24));
}

.eyebrow {
  color: #c4b5fd;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.gradient-text {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--text-secondary);
  max-width: 620px;
}

.platform-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: flex-start;
}

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

.stat-item span {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-3);
}

.platform-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding: var(--space-2) 0;
}

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

.stat-item span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--stat-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .platform-stats {
    gap: var(--space-2);
  }
  .stat-item span {
    font-size: 1.4rem;
  }
}

.btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  border: 0;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.features-grid {
  margin-top: var(--space-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.feature-card {
  padding: var(--space-3);
}

.feature-card .icon {
  font-size: 1.5rem;
}

.feature-card p,
.section-head p {
  color: var(--text-secondary);
}

.section-head {
  margin-bottom: var(--space-3);
}

.explore-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .explore-controls {
    flex-direction: row;
    align-items: center;
    padding: 12px 24px;
    gap: var(--space-4);
  }

  .search-wrap {
    flex: 1;
  }
}

.cta-box {
  padding: var(--space-3);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: linear-gradient(150deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.cta-box:hover {
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.cta-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.cta-actions p {
  color: var(--text-secondary);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
}

.search-wrap input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text-primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.chip {
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip.active,
.chip:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.2);
}

.chip:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

.topic-details {
  margin-bottom: var(--space-3);
  padding: var(--space-3);
}

.topic-details h3 {
  margin-bottom: 10px;
}

.topic-details p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.topic-details p:last-child {
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.project-card {
  padding: var(--space-3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.4);
}

.project-card-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.project-card-button:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

.project-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.project-card .tags span {
  font-size: 0.74rem;
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.project-card p {
  color: var(--text-secondary);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 0.84rem;
}

.hidden {
  display: none !important;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(4px);
}

.project-modal-card {
  position: relative;
  width: min(860px, 100%);
  max-height: min(85vh, 760px);
  overflow: auto;
  padding: 28px 26px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: var(--modal-bg);
}

.project-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
}

.project-modal-tag {
  margin-bottom: 10px;
  color: #c4b5fd;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.project-modal-summary {
  color: #e2e8f0;
  margin-bottom: 16px;
  line-height: 1.7;
}

.project-modal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.project-modal-content p:last-child {
  margin-bottom: 0;
}

.skeleton-card {
  height: 190px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.details-layout,
.dual-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.details-card,
.comments,
.chat {
  padding: var(--space-3);
}

.meta {
  color: #c4b5fd;
  font-size: 0.85rem;
}

.ai-card {
  position: relative;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(150deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.12));
}

.ai-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  filter: blur(16px);
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  opacity: 0.4;
}

.ai-label {
  color: #ddd6fe;
  font-weight: 700;
}

.comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.comment-form,
.chat-input {
  margin-top: var(--space-2);
  display: flex;
  gap: var(--space-1);
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.chat-area {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.msg {
  width: fit-content;
  max-width: 80%;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
}

.msg.sent {
  margin-left: auto;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}

.msg.received {
  background: rgba(255, 255, 255, 0.06);
}

.typing-indicator {
  width: fit-content;
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  animation: bounce 1s infinite alternate;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  to {
    transform: translateY(-4px);
  }
}

.typing-indicator {
  width: fit-content;
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
  animation: bounce 1s infinite alternate;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

.upload-form {
  padding: var(--space-3);
}

.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-3);
}

.step-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.step-badge.active {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: #fff;
  border-color: transparent;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: pageFade 0.35s ease;
}

label {
  display: block;
  margin-bottom: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

label input,
label textarea,
label select {
  margin-top: 0.4rem;
}

.drop-zone {
  border: 2px dashed rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  text-align: center;
  padding: 3rem 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.drop-zone.dragover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
}

.drop-zone input {
  display: none;
}

.file-list {
  color: var(--text-secondary);
  margin-top: 8px;
}

.form-actions {
  display: flex;
  gap: var(--space-1);
}

.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
}

.dash-sidebar {
  padding: var(--space-2);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

.dash-content {
  display: grid;
  gap: var(--space-3);
}

.dash-sidebar a {
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-sidebar a:hover,
.dash-sidebar a.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.22);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.stat-card {
  padding: var(--space-3);
  text-align: center;
}

.stat-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.graph-card,
.activity-card {
  padding: 2.5rem;
}

.activity-card h3 {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.upload-form {
  gap: 2rem !important;
}

.graph-placeholder {
  margin-top: 10px;
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.graph-placeholder span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #8b5cf6, #6366f1);
  animation: grow 1.2s ease;
}

@keyframes grow {
  from {
    height: 10% !important;
  }
}

.activity-card ul {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  color: #c4b5fd;
  margin-left: 8px;
  vertical-align: middle;
}

.auth-wrap {
  max-width: 430px;
  margin: 0 auto;
  padding: var(--space-3);
}

.auth-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: var(--space-2);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.22);
}

.auth-status-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
  color: #bbf7d0;
  line-height: 1.5;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 99999;
}

.toast {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.95);
  color: var(--text-primary);
  min-width: 230px;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    width: auto;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .details-layout {
    grid-template-columns: 1.3fr 1fr;
  }

  .dual-section {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: var(--space-4);
  }

  .dash-sidebar {
    flex-direction: column;
    overflow-x: visible;
    position: sticky;
    top: 100px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
  }
}

/* Fix for invisible dropdown options - Force Black text on White background */
select option {
  background-color: #ffffff;
  color: #000000;
}

/* Nav Search Bar */
.nav-search-form {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  width: 200px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.nav-search-form:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  background: var(--input-bg);
  width: 260px;
}

.nav-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

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

.nav-search-icon {
  color: var(--text-secondary);
  margin-right: 8px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-search-form:focus-within .nav-search-icon {
  color: #a5b4fc;
}

#navFriendSearchResults {
  position: absolute;
  top: 120%;
  left: 0;
  width: 260px; /* match expanded width */
  background: var(--modal-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin: 0;
  max-height: 350px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: none;
}
