/* Koloa Design System & Style Guide */

:root {
  color-scheme: dark;
  /* HSL Tailored Color Palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1527;
  --bg-tertiary: #161e36;
  --bg-card: rgba(15, 21, 39, 0.6);
  --bg-card-hover: rgba(22, 30, 54, 0.8);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-cyan-rgb: 6, 182, 212;
  --accent-red: #f43f5e;
  --accent-red-rgb: 244, 63, 94;
  --accent-gold: #fbbf24;
  --accent-gold-rgb: 251, 191, 36;
  --accent-blue: #3b82f6;
  --accent-success: #10b981;
  --accent-success-rgb: 16, 185, 129;
  
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glass-active: rgba(6, 182, 212, 0.3);
  
  /* Gradients */
  --grad-cyan-blue: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --grad-red-gold: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-gold) 100%);
  --grad-card: linear-gradient(135deg, rgba(15, 21, 39, 0.7) 0%, rgba(10, 14, 26, 0.8) 100%);
  --grad-glow: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0, 0, 0, 0) 70%);

  /* Shadow & Blur System */
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 15px 0 rgba(6, 182, 212, 0.05);
  --shadow-glow: 0 0 20px 2px rgba(6, 182, 212, 0.15);
  --shadow-glow-red: 0 0 20px 2px rgba(244, 63, 94, 0.15);
  --blur-glass: blur(12px);
  --blur-glass-heavy: blur(24px);

  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--grad-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-red-gold {
  background: var(--grad-red-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w-full { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--trans-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px -3px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -3px rgba(6, 182, 212, 0.6);
  opacity: 0.95;
}

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

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

.btn-tertiary:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-success) 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -3px rgba(16, 185, 129, 0.6);
  opacity: 0.95;
}

.btn-icon-only {
  padding: 10px;
  aspect-ratio: 1;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
  transition: var(--trans-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 38px;
  height: 38px;
}

.logo-brand {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  line-height: 1;
  background: var(--grad-red-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.app-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-headings);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--trans-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

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

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 60px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(6, 182, 212, 0.12) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero-glow-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  top: 100px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.06) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 36px auto;
}

.hero-search-wrapper {
  display: flex;
  gap: 12px;
  background: rgba(15, 21, 39, 0.4);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-glass);
  padding: 8px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding-left: 12px;
}

.search-icon {
  color: var(--text-muted);
}

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

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

/* Sections General */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--border-glass);
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Stats Widgets */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--trans-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.stat-icon-wrapper.blue {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.stat-icon-wrapper.red {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.stat-icon-wrapper.gold {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.stat-icon-wrapper.cyan {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow the info block to shrink below text content width inside flex container */
  width: 100%;
}

.stat-value {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); /* Dynamically scale text down with robust bounds */
  line-height: 1.2;
  overflow-wrap: break-word; /* Wrap cleanly only at word breaks/spaces/slashes */
  word-break: normal; /* Prevent breaking a word like "Strategy" in half */
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Analytics Charts */
.analytics-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.analytics-card-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 10px;
}

.chart-container {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chart-empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
  padding: 40px 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

/* Pure CSS Chart Elements */
.chart-bar-item {
  margin-bottom: 14px;
}

.chart-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.chart-bar-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.chart-bar-val {
  font-weight: 600;
  color: var(--text-primary);
}

.chart-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--grad-cyan-blue);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width var(--trans-slow) ease-in-out;
}

.chart-bar-fill.red {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-gold) 100%);
  box-shadow: 0 0 8px var(--accent-red);
}

/* Column Chart (Experience) */
.chart-columns {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 180px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.chart-col-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.chart-col-bar-wrapper {
  width: 32px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart-col-bar {
  width: 100%;
  background: var(--grad-cyan-blue);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  transition: height var(--trans-slow) ease-in-out;
  position: relative;
}

.chart-col-bar:hover {
  opacity: 0.9;
}

.chart-col-val {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chart-col-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
}

/* Map Section Styles */
.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 0; /* Map takes over the entire outer card container space! */
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.network-map-container {
  width: 100%;
  max-width: 100%; /* Stretch completely edge-to-edge! */
  margin: 0;
  position: relative;
  aspect-ratio: 2.1/1; /* Cinematic widescreen layout */
  min-height: 480px;
}

.network-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-continent {
  transition: var(--trans-normal);
}

.map-connection-arc {
  fill: none;
  stroke: url(#logo-grad);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.3;
  stroke-dasharray: 6 6;
  animation: dashMove 25s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -500;
  }
}

.map-hotspot-pin {
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: var(--trans-normal);
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.map-hotspot-pin.anchor-node {
  fill: var(--accent-red);
  filter: drop-shadow(0 0 8px var(--accent-red));
}

.map-hotspot-pin:hover {
  r: 8px;
  stroke-width: 2.5;
}

.map-label {
  font-family: var(--font-headings);
  font-size: 10px;
  fill: var(--text-secondary);
  font-weight: 600;
  pointer-events: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.anchor-label {
  fill: var(--text-primary);
  font-weight: 700;
  font-size: 11px;
}

.map-info-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  padding: 16px 24px 20px 24px; /* Restore perfect bottom and side-margins matching other widgets */
  border-top: 1px solid var(--border-glass);
  background-color: rgba(10, 14, 26, 0.4); /* High-contrast backing color for dashboard unity */
}

.map-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.anchor {
  background: var(--accent-red);
  box-shadow: 0 0 6px var(--accent-red);
}

.legend-dot.diaspora {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.legend-line {
  width: 24px;
  height: 2px;
  background: var(--grad-cyan-blue);
  border-radius: 1px;
}

/* Directory Layout */
.directory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.sidebar-header h3 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
}

.btn-clear-filters {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-headings);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-clear-filters:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.search-input-box.small {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 8px;
}

.search-input-box.small input {
  font-size: 0.88rem;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--trans-fast);
  user-select: none;
}

.checkbox-item:hover {
  color: var(--text-primary);
}

.checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--text-muted);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: var(--trans-fast);
  position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkbox-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Directory view content */
.directory-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.directory-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 14px 20px;
  border-radius: 12px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sort-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  min-height: 400px;
}

.grid-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Profile Card Design */
.profile-card {
  background: var(--grad-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--trans-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.profile-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-lg);
}

.profile-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-cyan-blue);
  opacity: 0;
  transition: var(--trans-normal);
}

.profile-card:hover::after {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.card-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.card-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-discipline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.card-title-line {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.card-info-row svg {
  color: var(--text-muted);
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

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

.card-experience {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.card-view-btn {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--trans-fast);
}

.card-view-btn:hover {
  gap: 6px;
}

/* Card Actions Bar (Floating controls for Owner and Admin) */
.card-actions-bar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}

/* Make action buttons visible on hover of the profile card */
.profile-card:hover .card-actions-bar {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans-fast);
  padding: 0;
}

.action-btn:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.action-btn.delete:hover {
  color: #ffffff;
  border-color: var(--accent-red);
  background: rgba(244, 63, 94, 0.25);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* Admin Card Badging custom color overrides */
.card-owner-badge.admin {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-gold) 100%);
  box-shadow: 0 0 8px var(--accent-red);
}

/* Empty State Card */
.empty-state-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed var(--border-glass);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.empty-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state-card h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
}

.empty-state-card p {
  color: var(--text-secondary);
  max-width: 420px;
  font-size: 0.95rem;
}

/* Custom Dialog / Modals */
.custom-dialog {
  border: none;
  background: transparent;
  color: var(--text-primary);
  margin: auto;
  outline: none;
  max-height: 90vh;
  width: calc(100% - 48px);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--trans-normal), transform var(--trans-normal);
}

.custom-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

.custom-dialog::backdrop {
  background: rgba(4, 7, 16, 0.85);
  backdrop-filter: var(--blur-glass-heavy);
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.custom-dialog[open]::backdrop {
  opacity: 1;
}

.dialog-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow-y: auto;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.dialog-header h2 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

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

.btn-close-dialog {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--trans-fast);
  padding: 4px;
  border-radius: 6px;
}

.btn-close-dialog:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.dialog-header.border-none {
  border: none;
  padding: 0;
  margin-bottom: 0;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Detail Modal Styles */
.profile-detail-dialog {
  max-width: 680px;
}

.glass-depth-3 {
  background: linear-gradient(135deg, rgba(15, 21, 39, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-modal-body {
  padding-top: 10px;
}

.detail-profile-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.detail-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2rem;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255,255,255,0.1);
}

.detail-meta {
  flex: 1;
}

.detail-name {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.detail-role {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 4px;
}

.detail-company {
  color: var(--accent-cyan);
  font-weight: 600;
}

.detail-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-row-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-row-item svg {
  color: var(--text-muted);
}

.detail-body-section {
  margin-bottom: 24px;
}

.detail-section-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
}

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

.detail-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-skill-tag {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
}

.detail-availability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-avail-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.detail-links-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-social {
  padding: 10px 16px;
  font-size: 0.88rem;
}

/* Data Portal (IO) Modal Styles */
.io-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.io-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.io-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.io-card-icon.blue {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
}

.io-card-icon.gold {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
}

.io-card h3 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.2rem;
}

.io-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}

.import-file-selector {
  width: 100%;
  position: relative;
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.import-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Step Form Wizard Design */
.register-dialog {
  max-width: 640px;
}

.step-wizard-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--trans-fast);
}

.step-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: var(--trans-fast);
  white-space: nowrap;
}

.step-indicator.active .step-num {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.step-indicator.active .step-title {
  color: var(--accent-cyan);
}

.step-indicator.completed .step-num {
  background: var(--accent-success);
  border-color: var(--accent-success);
  color: #ffffff;
}

.step-indicator.completed .step-title {
  color: var(--accent-success);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-glass);
  margin-bottom: 24px;
  transition: var(--trans-fast);
}

.step-line.active {
  background: var(--accent-cyan);
}

.step-line.completed {
  background: var(--accent-success);
}

.form-step-pane {
  display: none;
}

.form-step-pane.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.colspan-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.form-label.required::after {
  content: " *";
  color: var(--accent-red);
}

.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--trans-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
  background: var(--bg-secondary);
}

.form-control.textarea {
  resize: vertical;
}

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

.form-error-message {
  display: none;
  font-size: 0.78rem;
  color: var(--accent-red);
  font-weight: 500;
}

/* State validation styling */
.form-control.invalid {
  border-color: var(--accent-red);
}

.form-control.invalid:focus {
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.15);
}

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

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--trans-fast);
  user-select: none;
}

.form-checkbox-label:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.form-checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: var(--trans-fast);
}

.form-checkbox-label input[type="checkbox"]:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.form-checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox-label input[type="checkbox"]:checked + span {
  color: var(--text-primary);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

/* App Footer */
.app-footer {
  background: #040710;
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  margin-top: 60px;
}

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

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 750px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 0;
  line-height: 1.5;
  white-space: nowrap;
}

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

/* ==========================================================================
   📖 About Koloa Section Styling
   ========================================================================== */

.about-section {
  margin-top: 40px;
}

.about-container {
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-column-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--trans-normal), box-shadow var(--trans-normal);
}

.about-card:hover {
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.about-card-icon.gold {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--accent-gold);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.about-card-header h3 {
  margin: 0;
}

.about-card-header .about-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.about-card h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.pillars-section-title {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pillar-item {
  background: rgba(15, 21, 39, 0.4);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  border-radius: 12px;
  padding: 20px;
  transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.pillar-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-active);
}

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

.pillar-number {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.pillar-header h5 {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.pillar-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* Breakpoints & Responsive Adaptations */
@media (max-width: 1024px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .header-container {
    padding: 0 16px;
  }
  
  .app-nav {
    display: none; /* Mobile menu collapsed */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-search-wrapper {
    flex-direction: column;
    padding: 12px;
  }
  
  .hero-search-wrapper .btn {
    width: 100%;
  }
  
  .io-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .colspan-2 {
    grid-column: span 1;
  }
  
  .form-checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-profile-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-tagline {
    margin-top: 4px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .stat-card {
    padding: 16px;
  }
}

/* ==========================================================================
   SSO AUTHENTICATION & USER AREA STYLES
   ========================================================================== */

.user-auth-area {
  display: flex;
  align-items: center;
  position: relative;
}

/* User Profile Dropdown Drop Drawer */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 6px 14px 6px 8px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--trans-fast);
}

.user-dropdown-trigger:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.user-name-label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-arrow {
  color: var(--text-muted);
  transition: var(--trans-fast);
}

.user-dropdown.active .user-dropdown-arrow {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  width: 200px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--blur-glass);
  z-index: 105;
  overflow: hidden;
  animation: slideDownFade 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown.active .user-dropdown-menu {
  display: block;
}

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

.user-menu-info {
  padding: 14px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
}

.menu-info-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.menu-info-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: var(--trans-fast);
}

.user-menu-item:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
}

.user-menu-item.logout {
  color: var(--accent-red);
  border-top: 1px solid var(--border-glass);
}

.user-menu-item.logout:hover {
  background: rgba(244, 63, 94, 0.05);
  color: #ff4d6d;
}

/* SSO Authentication Popup/Modal layout */
.auth-dialog {
  max-width: 400px;
}

.auth-panel-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 10px;
}

.auth-sso-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-sso {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  font-family: var(--font-headings);
  cursor: pointer;
  transition: var(--trans-fast);
}

.btn-sso-google {
  background: #ffffff;
  color: #3c4043;
  border-color: #dadce0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-sso-google:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.btn-sso-github {
  background: #24292e;
  color: #ffffff;
  border-color: #3f4448;
}

.btn-sso-github:hover {
  background: #2c3137;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sso-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}

.auth-divider:not(:empty)::before {
  margin-right: .5em;
}

.auth-divider:not(:empty)::after {
  margin-left: .5em;
}

.auth-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

/* ==========================================================================
   PROFILE OWNERSHIP & BADGES
   ========================================================================== */

/* Golden highlight on cards owned by currently logged user */
.profile-card.owned {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px -4px rgba(251, 191, 36, 0.15);
}

.profile-card.owned:hover {
  box-shadow: 0 10px 30px -10px rgba(251, 191, 36, 0.3), 0 0 15px 0 rgba(251, 191, 36, 0.1);
}

.profile-card.owned::after {
  background: var(--grad-red-gold);
}

/* Golden Corner owner badge */
.card-owner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--accent-gold);
  font-family: var(--font-headings);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Golden details owner card */
.detail-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ==========================================================================
   FIREBASE CONFIGURATION PORTAL SETTINGS
   ========================================================================== */

.io-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 32px 0 20px 0;
  width: 100%;
}

.io-divider::before,
.io-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}

.io-divider:not(:empty)::before {
  margin-right: .8em;
}

.io-divider:not(:empty)::after {
  margin-left: .8em;
}

.firebase-config-section {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-glass);
  padding: 24px;
  border-radius: 12px;
  width: 100%;
}

.firebase-config-section h3 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.small-gap {
  gap: 16px;
}

.form-row-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

/* ==========================================================================
   DUAL-ENGINE MAP DARK THEMES & INTERACTIVE MARKERS
   ========================================================================== */

#map-mount-canvas,
#google-world-map,
#leaflet-world-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 20px 20px 0 0; /* Align seamlessly with card container's top rounded corners! */
  background-color: var(--bg-primary); /* Match the site's primary deep navy background! */
  z-index: 10;
  overflow: hidden;
}

/* Custom Navy-Cyan GIS Tint to match the site's tech scheme */
#leaflet-world-map .leaflet-tile {
  filter: sepia(1) hue-rotate(195deg) saturate(2.5) brightness(0.6) contrast(1.4);
  mix-blend-mode: screen;
  opacity: 0.75;
}

/* Custom HTML Glowing Radar Markers (Shared between Leaflet & Google Maps) */
.custom-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 24px !important;
  position: relative;
}

.marker-radar {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  position: relative;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: var(--trans-normal);
  border: 1.5px solid #ffffff;
}

/* Marker pulsing keyframes */
.marker-radar::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  opacity: 0.8;
  animation: radarPulse 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes radarPulse {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Anchor/Source Node: Monrovia, Liberia */
.custom-map-marker.anchor .marker-radar {
  background-color: var(--accent-red);
  box-shadow: 0 0 14px var(--accent-red);
  border-color: #ffffff;
}

.custom-map-marker.anchor .marker-radar::after {
  border-color: var(--accent-red);
}

/* Marker selection highlight states */
.custom-map-marker.selected .marker-radar {
  background-color: var(--accent-gold);
  box-shadow: 0 0 18px var(--accent-gold);
  border-color: #ffffff;
  transform: scale(1.2);
}

.custom-map-marker.selected .marker-radar::after {
  border-color: var(--accent-gold);
}

/* ----------------------------------------------------
   1. GOOGLE MAPS SPECIFIC STYLES (Dynamic Custom Overlay)
   ---------------------------------------------------- */

/* Pure CSS Tooltip Overlays on Hovering Markers in Google Maps */
.custom-map-tooltip {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 21, 39, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 8px 12px;
  width: max-content;
  max-width: 220px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99999;
}

/* Tooltip bubble arrow */
.custom-map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 21, 39, 0.95) transparent transparent transparent;
}

.custom-map-marker:hover .custom-map-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.custom-map-tooltip strong {
  font-family: var(--font-headings);
  color: var(--text-primary);
  font-size: 0.82rem;
  display: block;
  margin-bottom: 2px;
}

.custom-map-tooltip span.count {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 4px;
}

.custom-map-tooltip span.count.anchor {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--accent-red);
}

/* Hide standard Google Credits to achieve programmatic dark HUD look */
.gm-style-cc {
  display: none !important;
}
a[href^="https://maps.google.com/maps"] {
  display: none !important;
}

/* ----------------------------------------------------
   2. LEAFLET MAP SPECIFIC STYLES (Default Map Engine)
   ---------------------------------------------------- */

/* Custom Leaflet Map Tooltips & Popups */
.leaflet-popup-content-wrapper {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glass) !important;
  backdrop-filter: var(--blur-glass) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
}

.leaflet-popup-tip {
  background: var(--bg-secondary) !important;
  border-left: 1px solid var(--border-glass) !important;
  border-bottom: 1px solid var(--border-glass) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
  color: var(--text-secondary) !important;
}

.leaflet-popup-content strong {
  font-family: var(--font-headings) !important;
  color: var(--text-primary) !important;
  font-size: 0.9rem !important;
  display: block;
  margin-bottom: 4px;
}

.leaflet-popup-content span.count {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 6px;
}

.leaflet-popup-content span.count.anchor {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--accent-red);
}

/* Custom Leaflet Map Zoom Controls & Attribution Overrides */
.leaflet-container {
  background-color: #080c16 !important;
  font-family: var(--font-body) !important;
}

.leaflet-bar {
  border: 1px solid var(--border-glass) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-glass) !important;
  transition: var(--trans-fast);
}

.leaflet-bar a:hover {
  background-color: var(--bg-card-hover) !important;
  color: var(--accent-cyan) !important;
}

.leaflet-control-attribution {
  background: rgba(10, 14, 26, 0.8) !important;
  color: var(--text-muted) !important;
  font-size: 0.65rem !important;
  backdrop-filter: var(--blur-glass) !important;
  border-top-left-radius: 8px !important;
  border-left: 1px solid var(--border-glass) !important;
  border-top: 1px solid var(--border-glass) !important;
}

.leaflet-control-attribution a {
  color: var(--accent-cyan) !important;
  text-decoration: none;
}

.leaflet-control-attribution a:hover {
  text-decoration: underline;
}

/* Dynamic stroke dash transition for flat geodesic links in Leaflet */
.leaflet-pane .leaflet-overlay-pane path {
  transition: stroke-dashoffset 20s linear infinite;
}

/* ==========================================================================
   🔑 Interactive Skills Tag Selector Custom Styling
   ========================================================================== */

.skills-tag-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

/* Selected tags container */
.skills-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 42px;
  padding: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  align-items: center;
  transition: var(--trans-fast);
}

.skills-tag-selector.focused .skills-selected-tags {
  border-color: var(--accent-cyan);
}

/* Individual tag chip */
.skills-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  animation: scaleIn 0.15s ease-out;
  user-select: none;
}

.skills-tag-chip:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: rgba(6, 182, 212, 0.5);
}

/* Remove button on chip */
.skills-tag-remove-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: background 0.15s;
}

.skills-tag-remove-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Row for the dropdown and input */
.skills-input-row {
  position: relative;
  width: 100%;
}

.skills-text-input {
  width: 100%;
}

/* Dropdown menu container */
.skills-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  margin-top: 5px;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Custom scrollbar for skills dropdown */
.skills-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.skills-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.skills-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 3px;
}

.skills-dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown items */
.skills-dropdown-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills-dropdown-item:hover,
.skills-dropdown-item.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
}

/* No results state / create custom suggestion */
.skills-dropdown-item.suggestion {
  font-style: italic;
  color: var(--text-muted);
}

.skills-dropdown-item.suggestion strong {
  color: var(--accent-cyan);
  font-style: normal;
}

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

/* ==========================================================================
   🍞 Sleek Dynamic Toast Notifications Custom Styling
   ========================================================================== */

#koloa-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100000;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 48px);
}

.koloa-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(10, 14, 26, 0.95);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.koloa-toast.toast-fade-out {
  opacity: 0;
  transform: translateX(50px) scale(0.9);
}

/* Modifier Styles based on notification type */
.koloa-toast.success {
  border-left: 4px solid var(--accent-cyan);
}

.koloa-toast.error {
  border-left: 4px solid var(--accent-red);
}

.koloa-toast.info {
  border-left: 4px solid var(--accent-gold);
}

.koloa-toast-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

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

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

.koloa-toast.info .koloa-toast-icon {
  color: var(--accent-gold);
}

.koloa-toast-content {
  flex: 1;
}

.koloa-toast-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.koloa-toast-message {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.koloa-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  margin-left: 4px;
  margin-top: -2px;
}

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

/* ==========================================================================
   DYNAMIC LINKEDIN AVATAR WRAPPER STYLES
   ========================================================================== */

.card-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-avatar-wrapper .card-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.card-avatar-wrapper img.card-avatar {
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.detail-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.detail-avatar-wrapper .detail-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.detail-avatar-wrapper img.detail-avatar {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   PREMIUM LEAFLET GLASSMORPHIC POPUP & ANIMATED PATH STYLES
   ========================================================================== */

/* Animated Dash Flows on Talent Pathways */
@keyframes talentFlow {
  to {
    stroke-dashoffset: -28;
  }
}

.leaflet-network-polyline {
  animation: talentFlow 1.2s linear infinite;
  filter: drop-shadow(0 0 2px var(--accent-cyan));
  transition: all 0.3s ease;
}

/* Glassmorphic Dark-Mode Popups */
.koloa-glass-popup .leaflet-popup-content-wrapper {
  background: rgba(9, 15, 28, 0.88) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  font-family: var(--font-headings) !important;
  padding: 2px !important;
}

.koloa-glass-popup .leaflet-popup-tip {
  background: rgba(9, 15, 28, 0.88) !important;
  border-left: 1px solid var(--border-glass) !important;
  border-bottom: 1px solid var(--border-glass) !important;
}

.koloa-glass-popup .leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

.koloa-glass-popup .leaflet-popup-content strong {
  color: var(--accent-cyan) !important;
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.koloa-glass-popup .leaflet-popup-content .count {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.koloa-glass-popup .leaflet-popup-content .count.anchor {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--accent-gold);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

/* Glassmorphic Map Mount Canvas Container */
#map-mount-canvas {
  border: 1px solid var(--border-glass) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-lg) !important;
  background: rgba(9, 15, 28, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  transition: border-color 0.3s ease;
}

#map-mount-canvas:hover {
  border-color: rgba(6, 182, 212, 0.3) !important;
}


