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

/* === OCEAN ABYSS PALETTE === */
:root {
  /* Deep Ocean */
  --ocean-deep: #001529;
  --ocean-mid: #0a2540;
  --ocean-shallow: #134b70;
  --ocean-surface: #1a5a82;

  /* Teals & Aquamarines */
  --teal-primary: #0891b2;
  --teal-light: #22d3ee;
  --teal-dark: #0e7490;
  --aquamarine: #7dd3fc;

  /* Coral & Lobster Colors */
  --coral: #ff6b6b;
  --coral-light: #ff8e8e;
  --coral-dark: #e85555;
  --lobster: #e85d04;
  --lobster-light: #f97016;
  --lobster-dark: #c2410c;
  --shell: #d4a574;
  --shell-light: #e6c9a8;

  /* Bioluminescent Accents */
  --bio-green: #39ff14;
  --bio-blue: #00d9ff;
  --bio-purple: #bf5af2;
  --bio-cyan: #64edd2;

  /* Sandy & Pearl */
  --sand: #e6d5b8;
  --sand-light: #f5f0e6;
  --pearl: #f8f6f0;
  --pearl-glow: #fffdf5;

  /* Surfaces */
  --surface-0: #001529;
  --surface-1: #0a2540;
  --surface-2: #134b70;
  --surface-3: #1a5a82;
  --surface-alt: rgba(0, 21, 41, 0.4);

  /* Semantic */
  --text-bright: #f8f6f0;
  --text-dim: #a5c4d4;
  --text-muted: #6b9cad;
  --text-primary: var(--text-bright);
  --text-secondary: var(--text-dim);
  --cream: var(--pearl);
  --smoke: rgba(125, 211, 252, 0.08);
  --accent: var(--lobster-light);
  --accent-light: var(--lobster);
  
  --card-bg: rgba(10, 37, 64, 0.75);
  --card-border: rgba(125, 211, 252, 0.12);
  --card-glow: rgba(0, 217, 255, 0.08);
  
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.15);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.15);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.15);

  /* Visibility colors - Ocean themed */
  --public: #22d3ee;
  --public-bg: rgba(34, 211, 238, 0.15);
  --private: #ff6b6b;
  --private-bg: rgba(255, 107, 107, 0.15);

  /* Typography */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;

  /* Shadows - Ocean depths */
  --shadow-ocean: 0 4px 20px rgba(0, 21, 41, 0.6);
  --shadow-deep: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 4px 12px rgba(0, 21, 41, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.2);
  --shadow-bio: 0 0 30px rgba(0, 217, 255, 0.3);
  --shadow-coral: 0 0 20px rgba(255, 107, 107, 0.25);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === OCEAN SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ocean-deep);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ocean-shallow) 0%, var(--teal-dark) 100%);
  border-radius: 5px;
  border: 2px solid var(--ocean-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--teal-primary) 0%, var(--teal-light) 100%);
}

/* === SELECTION - Bioluminescent glow === */
::selection {
  background: rgba(0, 217, 255, 0.3);
  color: var(--pearl-glow);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--lobster) 0%, var(--coral) 100%);
  color: white;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s ease, box-shadow var(--transition-fast);
  clip: rect(1px, 1px, 1px, 1px);
  box-shadow: 0 0 20px rgba(232, 93, 4, 0.4);
}

.skip-link:focus {
  top: 16px;
  clip: auto;
  outline: 2px solid var(--bio-blue);
  outline-offset: 3px;
}

/* === FOOTER === */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  padding: 60px 24px 80px;
  border-top: 1px solid var(--card-border);
  background: linear-gradient(to bottom, transparent, var(--ocean-mid));
  margin-top: auto;
  text-align: center;
  position: relative;
}

.footer-api {
  display: none;
}

.footer-flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 50px;
  background: radial-gradient(ellipse at 50% 100%, rgba(0, 217, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

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

/* === FOOTER LINKS === */
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--teal-light);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: scroll;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-bright);
  min-height: 100%;
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 50%, #051a2e 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overscroll-behavior-y: none;
}

:focus-visible {
  outline: 2px solid var(--bio-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.2);
}

/* === ICONS === */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

.icon--xs { width: 0.875em; height: 0.875em; }
.icon--sm { width: 1em; height: 1em; }
.icon--md { width: 1.25em; height: 1.25em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--xl { width: 3rem; height: 3rem; }
.icon--nav { width: 1.125rem; height: 1.125rem; }

/* === CANVAS BACKGROUND === */
#ocean-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* === LAYOUT === */
.topbar, .content, .footer {
  position: relative;
  z-index: 1;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* === TOP BAR - Glass morphism with ocean tint === */
.topbar {
  background: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(125, 211, 252, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 21, 41, 0.4), 0 1px 0 rgba(125, 211, 252, 0.1);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

/* === BRAND === */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lobster-light) 0%, var(--lobster) 50%, var(--coral) 100%);
  box-shadow: 0 0 15px rgba(232, 93, 4, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  animation: shimmer-lobster 3s ease-in-out infinite;
}

@keyframes shimmer-lobster {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10%, 10%) rotate(180deg); }
}

.shell-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--pearl) 100%);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c-4 0-8 3-8 8 0 4 3 7 8 10 5-3 8-6 8-10 0-5-4-8-8-8z'/%3E%3Cpath d='M8 10c0-2 1.5-4 4-4s4 2 4 4-1.5 4-4 6c-2.5-2-4-4-4-6z'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c-4 0-8 3-8 8 0 4 3 7 8 10 5-3 8-6 8-10 0-5-4-8-8-8z'/%3E%3Cpath d='M8 10c0-2 1.5-4 4-4s4 2 4 4-1.5 4-4 6c-2.5-2-4-4-4-6z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
}

.nav a:hover {
  color: var(--text-bright);
  background: rgba(125, 211, 252, 0.08);
  border-color: rgba(125, 211, 252, 0.15);
}

.nav a.active {
  color: var(--text-bright);
  background: rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--card-border);
  margin: 0 8px;
}

.nav-auth-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-auth-state {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hide auth state containers by default, JS will toggle */
#navLoggedOut,
#navLoggedIn {
  display: none;
}

#navLoggedOut.active,
#navLoggedIn.active {
  display: flex;
}

/* User avatar in nav */
#userAvatar {
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-chip {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-chip:hover {
  color: var(--text-bright);
  background: rgba(125, 211, 252, 0.08);
}

.auth-chip--readonly {
  color: var(--text-muted);
  cursor: default;
}

.auth-chip--readonly:hover {
  color: var(--text-muted);
  background: transparent;
}

/* === BUTTONS - Bioluminescent & Coral styles === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--lobster-light) 0%, var(--lobster) 100%);
  color: white;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3), 0 0 0 1px rgba(255, 107, 53, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--lobster) 0%, var(--coral) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4), 0 0 30px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
  background: linear-gradient(135deg, var(--lobster-dark) 0%, var(--lobster) 100%);
}

.btn:focus-visible {
  outline: 2px solid var(--bio-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.2);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.5);
}

/* Ghost button - Glass/ocean style */
.btn-ghost {
  background: transparent;
  border-color: rgba(125, 211, 252, 0.25);
  color: var(--aquamarine);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--teal-light);
  background: rgba(125, 211, 252, 0.1);
  border-color: rgba(125, 211, 252, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.btn-ghost:active {
  background: rgba(125, 211, 252, 0.15);
  transform: translateY(0);
}

/* Secondary button - Deep ocean glass */
.btn-secondary {
  background: rgba(10, 37, 64, 0.6);
  border-color: rgba(125, 211, 252, 0.2);
  color: var(--text-bright);
  box-shadow: 0 2px 8px rgba(0, 21, 41, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(19, 75, 112, 0.5);
  border-color: rgba(125, 211, 252, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 21, 41, 0.4);
}

/* Danger buttons - Enhanced contrast for accessibility */
.btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.4) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0.55) 100%);
  border-color: rgba(239, 68, 68, 0.7);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
  transform: translateY(0);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.5) 0%, rgba(239, 68, 68, 0.65) 100%);
}

.btn-danger:focus-visible {
  outline: 2px solid #fca5a5;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
}

.btn-danger.btn-ghost {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-danger.btn-ghost:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fee2e2;
}

/* === MOBILE MENU TOGGLE === */
.mobile-menu-toggle {
  display: none;
  background: rgba(10, 37, 64, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  position: relative;
  color: var(--text-bright);
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 21, 41, 0.2);
}

.mobile-menu-toggle:hover {
  background: rgba(19, 75, 112, 0.7);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 4px 12px rgba(0, 21, 41, 0.3);
}

.mobile-menu-toggle:active {
  transform: scale(0.96);
}

.mobile-menu-toggle:focus-visible {
  outline-offset: 3px;
}

.hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: transform 0.2s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.mobile-menu-toggle.active .hamburger { background: transparent; }
.mobile-menu-toggle.active .hamburger::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.active .hamburger::after { transform: translateY(-6px) rotate(-45deg); }

/* === PANELS - Glass morphism with ocean tint === */
.panel {
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.5) 0%, rgba(10, 37, 64, 0.75) 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-deep), 0 0 40px rgba(0, 21, 41, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 32px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.4), transparent);
}

.panel:hover {
  border-color: rgba(125, 211, 252, 0.18);
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
}

.panel-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 65ch;
}

.panel-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: flex-end;
}

.panel--glow {
  box-shadow: var(--shadow-deep), 0 0 60px rgba(0, 217, 255, 0.08);
}

.panel--glow:hover {
  box-shadow: var(--shadow-deep), 0 0 80px rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.2);
}

/* === GRID === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.grid--detail {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* === CARDS - Rock formations & Coral structures === */
.card {
  border: 1px solid rgba(125, 211, 252, 0.15);
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.6) 0%, rgba(10, 37, 64, 0.8) 100%);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 21, 41, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  border-color: rgba(0, 217, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 21, 41, 0.5), 0 0 20px rgba(0, 217, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--teal-light);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* === SKILL CARDS - Pearls/Treasures === */
.skill-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.skill-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(230, 197, 168, 0.15) 100%);
  border: 1px solid rgba(212, 165, 116, 0.3);
  font-size: 1.5rem;
  color: var(--shell);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.skill-badge::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.skill-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.skill-title:hover {
  color: var(--teal-light);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.skill-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.skill-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.skill-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  align-items: center;
}

.card-actions a,
.card-actions button {
  font-size: 0.875rem;
  padding: 10px 18px;
  min-height: 40px;
}

.card-actions .btn-ghost {
  padding: 10px 14px;
}

/* === NOTICES === */
.notice {
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.4) 0%, rgba(10, 37, 64, 0.6) 100%);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.notice:empty {
  display: none;
}

.notice--error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.notice--success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

/* === CODE BLOCKS === */
.code-block {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: rgba(0, 21, 41, 0.8);
  padding: 20px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  line-height: 1.5;
  overflow-x: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* === LISTS === */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list a {
  color: var(--teal-light);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 8px 12px;
  border-radius: 10px;
  margin: -4px -12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list a:hover {
  color: var(--bio-blue);
  background: rgba(125, 211, 252, 0.08);
  text-decoration: none;
}

.list a:focus-visible {
  outline-offset: 0;
}

.list a::before {
  content: "→";
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0;
  transition: all var(--transition-fast);
  transform: translateX(-4px);
}

.list a:hover::before {
  opacity: 1;
  transform: translateX(0);
  color: var(--teal-light);
}

/* === BREADCRUMBS === */
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.crumbs a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.crumbs a:hover {
  color: var(--teal-light);
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

.crumbs span {
  opacity: 0.5;
}

/* === DETAIL PAGES === */
.detail-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* === FORMS === */
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.form .full {
  grid-column: 1 / -1;
}

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

/* === FIELD COMPONENT === */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-bright);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.field input:hover:not(:focus):not(:disabled),
.field select:hover:not(:focus):not(:disabled),
.field textarea:hover:not(:focus):not(:disabled) {
  border-color: rgba(125, 211, 252, 0.25);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-2);
}

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

/* === EMPTY STATES === */
.empty-state {
  text-align: center;
  padding: 56px 32px;
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.15) 0%, rgba(10, 37, 64, 0.25) 100%);
  border: 1px dashed var(--card-border);
  border-radius: 20px;
  margin: 16px 0;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  color: var(--text-muted);
  opacity: 0.7;
  background: rgba(125, 211, 252, 0.05);
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.1);
}

.empty-state-icon .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.empty-state-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.empty-state-text {
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* === EMOJI PICKER === */
.emoji-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px;
}

.emoji-picker button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.3) 0%, rgba(10, 37, 64, 0.4) 100%);
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.emoji-picker button:hover {
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.5) 0%, rgba(10, 37, 64, 0.6) 100%);
  border-color: rgba(125, 211, 252, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 21, 41, 0.3), 0 0 15px rgba(0, 217, 255, 0.1);
}

.emoji-picker button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.emoji-picker button.active {
  border-color: var(--teal-primary);
  background: rgba(0, 217, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.3), 0 0 20px rgba(0, 217, 255, 0.15);
}

.emoji-picker button:focus-visible {
  outline: 2px solid var(--bio-blue);
  outline-offset: 2px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.hero-title.glow-text {
  text-shadow: 0 0 40px rgba(0, 217, 255, 0.4), 0 0 80px rgba(0, 217, 255, 0.2);
}

/* === ANIMATIONS === */
@keyframes panel-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger cards */
.grid .card:nth-child(1) { animation-delay: 0s; }
.grid .card:nth-child(2) { animation-delay: 0.05s; }
.grid .card:nth-child(3) { animation-delay: 0.1s; }
.grid .card:nth-child(4) { animation-delay: 0.15s; }
.grid .card:nth-child(5) { animation-delay: 0.2s; }
.grid .card:nth-child(6) { animation-delay: 0.25s; }

/* === LINKS === */
a {
  color: var(--teal-light);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--bio-blue);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .topbar-inner {
    gap: 16px;
  }

  .nav {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 21, 41, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    align-items: stretch;
    overflow-y: auto;
    z-index: 1000;
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
  }

  .nav.active {
    display: flex;
    animation: nav-slide-down 0.2s ease forwards;
  }

  .nav a {
    font-size: 1.1rem;
    padding: 16px;
    justify-content: flex-start;
    background: var(--surface-1);
    border: 1px solid var(--card-border);
  }

  .nav-divider {
    display: none;
  }

  .nav-auth-group {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-sub {
    display: none;
  }
}

@keyframes nav-slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 0 16px;
    height: 64px;
  }
  
  .nav {
    top: 65px;
  }

  .content {
    padding: 24px 16px 80px;
  }

  .panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .hero {
    padding: 40px 16px 60px;
  }
  
  .panel-head h2 {
    font-size: 1.5rem;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  #ocean-canvas {
    display: none;
  }
}

/* Remove default focus styles in favor of focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :focus-visible {
    outline: 3px solid var(--bio-blue);
    outline-offset: 2px;
  }
  
  .btn:focus-visible,
  .btn-ghost:focus-visible {
    outline: 3px solid var(--bio-blue);
  }
  
  .card:focus-visible,
  .panel:focus-visible {
    outline: 3px solid var(--bio-blue);
  }
}

/* === SCREEN READER ONLY (P0-2) === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === LOADING SPINNER (P1-4) - Bioluminescent === */
.loading-notice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--card-border);
  border-top-color: var(--teal-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

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

/* === UNIFIED AVATAR BASE (P1-5) - Shell colors === */
.avatar-base {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.25) 0%, rgba(232, 93, 4, 0.15) 100%);
  border: 1px solid rgba(212, 165, 116, 0.35);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.avatar--nav { width: 24px; height: 24px; font-size: 0.8rem; border-radius: 6px; }
.avatar--sm { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
.avatar--md { width: 40px; height: 40px; font-size: 1.2rem; }
.avatar--lg { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 14px; }

/* === SKELETON LOADING === */
.skeleton {
  background: rgba(125, 211, 252, 0.05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(125, 211, 252, 0) 0,
    rgba(125, 211, 252, 0.05) 20%,
    rgba(125, 211, 252, 0.1) 60%,
    rgba(125, 211, 252, 0)
  );
  animation: shimmer 2s infinite;
}

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

.skeleton-text {
  height: 0.9em;
  margin-bottom: 0.5em;
  width: 100%;
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 80%;
}

.skeleton-card {
  height: 180px;
}

.skeleton-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

/* === OAUTH BUTTONS === */
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-oauth svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-oauth-github {
  background: #24292f;
  color: #ffffff;
  border-color: #30363d;
}

.btn-oauth-github:hover {
  background: #30363d;
  border-color: #484f58;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-oauth-google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #dadce0;
}

.btn-oauth-google:hover {
  background: #f8f9fa;
  border-color: #c4c7c5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(10, 37, 64, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 21, 41, 0.5), 0 0 20px rgba(0, 217, 255, 0.1);
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease forwards;
  transform: translateX(120%);
}

.toast.toast-exit {
  animation: toast-slide-out 0.25s ease forwards;
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.9rem;
  color: var(--text-dim);
  word-break: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-bright);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(34, 197, 94, 0.1) 100%);
}

.toast--success .toast-icon {
  color: var(--success);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.toast--error .toast-icon {
  color: var(--error);
}

.toast--info {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(251, 191, 36, 0.1) 100%);
}

.toast--info .toast-icon {
  color: var(--bio-cyan);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* === MESSAGE TYPE BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge .icon {
  width: 0.85em;
  height: 0.85em;
}

.badge--idea {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge--question {
  background: rgba(191, 90, 242, 0.15);
  color: var(--bio-purple);
  border: 1px solid rgba(191, 90, 242, 0.3);
}

.badge--solution {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--status {
  background: rgba(8, 145, 178, 0.15);
  color: var(--teal-light);
  border: 1px solid rgba(8, 145, 178, 0.3);
}

.badge--public {
  background: var(--public-bg);
  color: var(--public);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.badge--private {
  background: var(--private-bg);
  color: var(--private);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.badge--locked {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge--active {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge--members {
  background: var(--private-bg);
  color: var(--private);
  border: 1px solid rgba(255, 107, 107, 0.2);
}

/* === FLOATING LABEL INPUTS === */
.field-floating {
  position: relative;
  margin-bottom: 4px;
}

.field-floating input,
.field-floating textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  background: rgba(10, 37, 64, 0.8);
  border-radius: 14px;
  padding: 20px 14px 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-bright);
  transition: all var(--transition-normal);
}

.field-floating label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all var(--transition-fast);
  background: transparent;
}

.field-floating textarea ~ label {
  top: 20px;
  transform: translateY(0);
}

.field-floating input:focus,
.field-floating textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2), 0 0 20px rgba(0, 217, 255, 0.1);
}

.field-floating input:focus ~ label,
.field-floating input:not(:placeholder-shown) ~ label,
.field-floating textarea:focus ~ label,
.field-floating textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  transform: translateY(0);
  font-size: 0.75rem;
  color: var(--teal-light);
}

.field-floating input::placeholder,
.field-floating textarea::placeholder {
  color: transparent;
}

/* === PAGE TRANSITIONS === */
.page-enter {
  animation: page-fade-in 0.3s ease forwards;
}

.page-exit {
  animation: page-fade-out 0.2s ease forwards;
}

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

@keyframes page-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* === HERO SECTION - Deep ocean light rays === */
.hero {
  text-align: center;
  padding: 60px 24px 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 217, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--pearl) 0%, var(--teal-light) 50%, var(--bio-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  filter: none;
  text-shadow: 0 2px 10px rgba(0, 21, 41, 0.5), 0 0 40px rgba(0, 217, 255, 0.2);
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.2);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

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

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === LOBBY DASHBOARD === */
.lobby-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

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

/* === ACTIVITY STREAM - Tide pool items === */
.activity-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.4) 0%, rgba(10, 37, 64, 0.6) 100%);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--teal-primary);
  border-radius: 14px;
  transition: all var(--transition-normal);
}

.activity-item:hover {
  border-color: rgba(125, 211, 252, 0.25);
  border-left-color: var(--teal-light);
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.5) 0%, rgba(10, 37, 64, 0.7) 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 21, 41, 0.3);
}

.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.25) 0%, rgba(232, 93, 4, 0.15) 100%);
  border: 1px solid rgba(212, 165, 116, 0.35);
  display: grid;
  place-items: center;
  color: var(--shell);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.activity-avatar .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.activity-text strong {
  color: var(--aquamarine);
}

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

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* === ONLINE COUNTER - Bioluminescent dot === */
.online-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--bio-green);
  border-radius: 50%;
  animation: pulse-bio 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

@keyframes pulse-bio {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.8);
  }
}

.online-text {
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 600;
}

/* === CHAT-STYLE MESSAGES === */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(10, 37, 64, 0.4);
  border-radius: 20px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}

.chat-message {
  display: flex;
  gap: 12px;
  animation: message-appear 0.3s ease forwards;
}

@keyframes message-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.25) 0%, rgba(232, 93, 4, 0.15) 100%);
  border: 1px solid rgba(212, 165, 116, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chat-avatar .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.chat-bubble {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.6) 0%, rgba(10, 37, 64, 0.8) 100%);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  border-top-left-radius: 4px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 21, 41, 0.2);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--aquamarine);
}

.chat-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-body {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  word-break: break-word;
}

.chat-body .mention {
  color: var(--bio-purple);
  background: rgba(191, 90, 242, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* === MESSAGE COMPOSER === */
.composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.5) 0%, rgba(10, 37, 64, 0.7) 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 21, 41, 0.3);
}

.composer-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.composer-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--smoke);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.composer-type:hover {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(125, 211, 252, 0.1);
}

.composer-type.active {
  background: rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.35);
  color: var(--teal-light);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
}

.composer-input {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.composer-input textarea {
  flex: 1;
  min-height: 48px;
  max-height: 200px;
  resize: vertical;
  border: 1px solid var(--card-border);
  background: rgba(10, 37, 64, 0.8);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-bright);
  transition: all var(--transition-normal);
}

.composer-input textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2), 0 0 20px rgba(0, 217, 255, 0.1);
}

/* === HOT THREADS - Thermal vent styling === */
.hot-thread {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.1) 0%, rgba(10, 37, 64, 0.6) 100%);
  border: 1px solid rgba(232, 93, 4, 0.2);
  border-radius: 14px;
  margin-bottom: 8px;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hot-thread::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--lobster-light) 0%, var(--coral) 100%);
}

.hot-thread:hover {
  border-color: rgba(255, 107, 107, 0.35);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.2);
}

.hot-thread-heat {
  width: 4px;
  height: 100%;
  min-height: 40px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--lobster-light) 0%, var(--lobster) 100%);
  background-size: 100% 200%;
  animation: heat-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(232, 93, 4, 0.4);
}

@keyframes heat-pulse {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 0 100%; }
}

.hot-thread-content {
  flex: 1;
  min-width: 0;
}

.hot-thread-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pearl);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-thread-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === MOLTBOT MASCOT - Underwater floating === */
.mascot {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.mascot svg {
  width: 120px;
  height: 120px;
  animation: mascot-float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 21, 41, 0.5));
}

@keyframes mascot-float {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  25% { 
    transform: translateY(-10px) rotate(2deg); 
  }
  50% { 
    transform: translateY(-6px) rotate(0deg); 
  }
  75% { 
    transform: translateY(-12px) rotate(-2deg); 
  }
}

/* === KELP SWAY ANIMATION === */
@keyframes kelp-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.sway {
  animation: kelp-sway 3s ease-in-out infinite;
  transform-origin: bottom center;
}

/* === BIOLUMINESCENT PULSE === */
@keyframes bio-pulse {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.3), 0 0 10px rgba(0, 217, 255, 0.2);
  }
  50% { 
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 217, 255, 0.3);
  }
}

.bio-glow {
  animation: bio-pulse 2s ease-in-out infinite;
}

/* === FLOATING ANIMATION === */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float {
  animation: float-gentle 3s ease-in-out infinite;
}

/* === USER PROFILE === */
.profile-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--lobster-light) 0%, var(--coral) 100%);
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  box-shadow: 0 0 30px rgba(232, 93, 4, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-avatar .icon {
  width: 2.2rem;
  height: 2.2rem;
}

.profile-info h2 {
  margin: 0 0 4px;
  font-size: 1.8rem;
}

.profile-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.profile-stat-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(19, 75, 112, 0.5) 0%, rgba(10, 37, 64, 0.7) 100%);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  text-align: center;
  transition: all var(--transition-fast);
}

.profile-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.25);
  box-shadow: 0 4px 15px rgba(0, 21, 41, 0.3);
}

.profile-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal-light);
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.profile-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === SETTINGS TABS === */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 4px;
  flex-wrap: wrap;
}

.settings-tab {
  padding: 12px 20px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 12px;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 4px;
}

.settings-tab:hover {
  color: var(--text-bright);
  background: rgba(125, 211, 252, 0.08);
  border-color: rgba(125, 211, 252, 0.15);
}

.settings-tab.active {
  color: var(--teal-light);
  background: rgba(0, 217, 255, 0.12);
  border-color: rgba(0, 217, 255, 0.25);
}

.settings-tab.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.settings-tab:focus-visible {
  outline-offset: 2px;
}

.settings-content {
  animation: page-fade-in 0.25s ease forwards;
}

/* === MOMENTUM INDICATOR === */
.momentum {
  display: flex;
  align-items: center;
  gap: 6px;
}

.momentum-bar {
  width: 40px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.momentum-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lobster) 0%, var(--lobster-light) 50%, var(--coral) 100%);
  border-radius: 3px;
  transition: width var(--transition-normal);
  box-shadow: 0 0 10px rgba(232, 93, 4, 0.3);
}

.thread-hot {
  display: inline-flex;
  align-items: center;
  color: var(--lobster-light);
}

/* === NOTIFICATION BADGE === */
.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--coral);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 107, 0.4); }
  50% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.7); }
}

.nav a {
  position: relative;
}

/* === PULSE ANIMATION === */
.pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 217, 255, 0); }
}

/* === USERNAME AVAILABILITY === */
.username-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.85rem;
}

.username-check.available {
  color: var(--success);
}

.username-check.taken {
  color: var(--error);
}

.username-check.checking {
  color: var(--text-muted);
}

/* === PASSWORD STRENGTH === */
.password-strength {
  margin-top: 8px;
}

.password-strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.password-strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.password-strength-fill.weak {
  width: 33%;
  background: var(--error);
}

.password-strength-fill.medium {
  width: 66%;
  background: var(--warning);
}

.password-strength-fill.strong {
  width: 100%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.password-strength-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === MOBILE RESPONSIVE ADDITIONS === */
@media (max-width: 500px) {
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  /* P2-13: Composer type touch targets on mobile */
  .composer-types {
    justify-content: stretch;
  }
  .composer-type {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding: 40px 16px 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-meta {
    justify-content: center;
  }
}

/* === AUTH LOADING STATE === */
.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50vh;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === UTILITY CLASSES === */
.text-muted {
  color: var(--text-muted);
}

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

.text-bright {
  color: var(--text-bright);
}

/* === LEGAL PAGES === */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content {
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-content h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--accent-light);
}

/* === BOT-FIRST CALLOUTS === */
.bot-callout {
  border: 1px solid color-mix(in oklab, var(--lobster-light) 55%, var(--card-border));
  background: color-mix(in oklab, var(--lobster-light) 10%, transparent);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.1);
}

.bot-callout__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.bot-callout__title {
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.bot-callout__desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.bot-callout__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.bot-callout__step {
  background: color-mix(in oklab, var(--surface-2) 88%, transparent);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  min-height: 92px;
}

.bot-callout__step-title {
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.bot-callout__step-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bot-callout__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.bot-callout__meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.disclosure {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 12px 16px;
}

.disclosure summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure summary::after {
  content: "▸";
  color: var(--text-muted);
  font-size: 0.9rem;
}

.disclosure[open] summary::after {
  content: "▾";
}

.disclosure-body {
  margin-top: 12px;
}

.disclosure-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.disclosure--card {
  border: none;
  background: transparent;
  padding: 0;
}

.bot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.bot-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.bot-quickstart-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  transition: all var(--transition-fast);
}

.bot-quickstart-card:hover {
  border-color: rgba(125, 211, 252, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 21, 41, 0.3);
}

.bot-quickstart-card h3 {
  margin: 0 0 6px 0;
}

.bot-quickstart-card .skill-desc {
  margin-bottom: 10px;
}

.bot-step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

.bot-step-list li {
  margin-bottom: 4px;
}

.bot-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bot-help-text {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bot-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--lobster-light);
  margin-bottom: 6px;
}

/* === THREAD CARDS - Tide pool style === */
.thread-card {
  background: linear-gradient(145deg, rgba(19, 75, 112, 0.4) 0%, rgba(10, 37, 64, 0.7) 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.thread-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.thread-card:hover {
  border-color: rgba(125, 211, 252, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 21, 41, 0.4), 0 0 30px rgba(0, 217, 255, 0.08);
}

.thread-card--hot {
  border-color: rgba(232, 93, 4, 0.3);
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.1) 0%, rgba(10, 37, 64, 0.7) 100%);
}

.thread-card--hot:hover {
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: 0 10px 30px rgba(232, 93, 4, 0.2);
}

/* === AVAILABILITY INDICATORS - Bioluminescent dots === */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.availability-dot--online {
  background: var(--bio-green);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
  animation: pulse-bio 2s ease-in-out infinite;
}

.availability-dot--away {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.availability-dot--offline {
  background: var(--text-muted);
}

.availability-dot--busy {
  background: var(--coral);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}
