/* ============================================================
   Campus Talent & Collaboration Network
   Design System — Production CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #2D31FA;
  --primary-dark: #1a1dcc;
  --primary-light: #5C60FF;
  --secondary: #7C3AED;
  --secondary-light: #9F67FF;
  --teal: #0EA5E9;
  --teal-light: #38BDF8;
  --accent: #F59E0B;
  --accent-pink: #EC4899;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --bg: #F8F9FF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255,255,255,0.8);
  --bg-dark: #0F0F23;

  --text-primary: #0D0F1C;
  --text-secondary: #4B5280;
  --text-muted: #8B90B0;
  --text-on-dark: #F0F0FF;

  --border: #E4E6F5;
  --border-focus: #2D31FA;
  --shadow-sm: 0 1px 3px rgba(45,49,250,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(45,49,250,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(45,49,250,0.14), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(45,49,250,0.18), 0 4px 16px rgba(0,0,0,0.10);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --nav-height: 68px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 520px; margin: 0 auto; padding: 0 1.5rem; }

.page-content { padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 4rem; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.navbar-logo-icon {
  width: 36px;
  height: 36px;
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: rgba(45,49,250,0.06);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Notification bell */
.notif-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.notif-btn:hover { background: rgba(45,49,250,0.06); color: var(--primary); border-color: var(--primary); }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* Notification dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: none;
  z-index: 200;
  overflow: hidden;
}
.notif-dropdown.open { display: block; animation: slideDown 0.2s ease; }
.notif-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-item { padding: 0.875rem 1.25rem; display: flex; gap: 0.75rem; align-items: flex-start; border-bottom: 1px solid var(--border); transition: var(--transition); cursor: pointer; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: rgba(45,49,250,0.03); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 6px; flex-shrink: 0; }

/* Avatar */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 80px; height: 80px; }
.avatar-xl { width: 120px; height: 120px; }

.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  font-family: var(--font-display);
}
.avatar-placeholder.avatar-sm { font-size: 0.75rem; }
.avatar-placeholder.avatar-md { font-size: 1rem; }
.avatar-placeholder.avatar-lg { font-size: 1.5rem; }
.avatar-placeholder.avatar-xl { font-size: 2rem; }

/* User menu */
.user-menu-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}
.user-menu-btn:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
  overflow: hidden;
}
.dropdown-menu.open { display: block; animation: slideDown 0.18s ease; }
.dropdown-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-item.danger:hover { color: var(--danger); background: rgba(239,68,68,0.05); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 2px 12px rgba(45,49,250,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,49,250,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: white;
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); color: var(--text-primary); }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #dc2626; }

.btn-success {
  background: var(--success);
  color: white;
}

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { padding: 0.625rem; width: 40px; height: 40px; }

/* Gradient CTA */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(45,49,250,0.35);
  border-radius: var(--radius);
  padding: 0.875rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,49,250,0.5);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); }

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45,49,250,0.2);
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title { font-size: 1.125rem; font-weight: 700; font-family: var(--font-display); }

/* Glass card */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
}

/* Gradient card accent */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}
.card-accent::before {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.card-teal::before { background: linear-gradient(90deg, var(--teal), var(--primary)); }
.card-amber::before { background: linear-gradient(90deg, var(--accent), var(--accent-pink)); }

/* ---- Profile Cards ---- */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition-slow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(45,49,250,0.03) 100%);
  pointer-events: none;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(45,49,250,0.25);
}

.profile-card-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-full);
  border: 3px solid var(--border);
  transition: var(--transition);
}

.profile-card:hover .profile-card-avatar {
  border-color: var(--primary);
  transform: scale(1.05);
}

.profile-card-name {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.profile-card-uni {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ---- Skills Tags ---- */
.tags {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(45,49,250,0.08);
  color: var(--primary);
  border: 1px solid rgba(45,49,250,0.15);
  transition: var(--transition);
}
.tag:hover { background: var(--primary); color: white; }

.tag-secondary { background: rgba(124,58,237,0.08); color: var(--secondary); border-color: rgba(124,58,237,0.15); }
.tag-teal { background: rgba(14,165,233,0.08); color: var(--teal); border-color: rgba(14,165,233,0.15); }
.tag-amber { background: rgba(245,158,11,0.08); color: var(--accent); border-color: rgba(245,158,11,0.15); }
.tag-success { background: rgba(16,185,129,0.08); color: var(--success); border-color: rgba(16,185,129,0.15); }
.tag-danger { background: rgba(239,68,68,0.08); color: var(--danger); border-color: rgba(239,68,68,0.15); }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.375rem; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45,49,250,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B90B0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.375rem;
  display: flex; align-items: center; gap: 0.25rem;
}

/* Radio group */
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
}
.radio-option:has(input:checked),
.radio-option.selected {
  border-color: var(--primary);
  background: rgba(45,49,250,0.05);
  color: var(--primary);
}
.radio-option input { display: none; }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.file-upload-area:hover { border-color: var(--primary); background: rgba(45,49,250,0.03); }

/* ---- Badges & Status ---- */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-primary { background: rgba(45,49,250,0.1); color: var(--primary); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-secondary { background: rgba(124,58,237,0.1); color: var(--secondary); }
.badge-teal { background: rgba(14,165,233,0.1); color: var(--teal); }
.badge-gray { background: rgba(139,144,176,0.15); color: var(--text-muted); }

/* Dot indicator */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online { background: var(--success); }
.status-dot.busy { background: var(--warning); }
.status-dot.offline { background: var(--text-muted); }

/* ---- Experience Level ---- */
.exp-level {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600;
}
.exp-bars { display: flex; gap: 2px; }
.exp-bar {
  width: 5px; height: 14px;
  border-radius: 2px;
  background: var(--border);
}
.exp-beginner .exp-bar:nth-child(1) { background: var(--success); }
.exp-intermediate .exp-bar:nth-child(-n+2) { background: var(--teal); }
.exp-advanced .exp-bar:nth-child(-n+3) { background: var(--primary); }
.exp-expert .exp-bar { background: var(--secondary); }

/* ---- Stars ---- */
.stars { display: flex; gap: 2px; }
.star { color: #E5E7EB; font-size: 0.875rem; }
.star.filled { color: var(--accent); }

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, #0D0F1C 0%, #1a1d3a 50%, #0D1545 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,49,250,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Search Bar ---- */
.search-bar {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.search-bar-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.5rem;
  border-radius: var(--radius-full);
  border: none;
  font-size: 1rem;
  background: rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  outline: none;
}
.search-bar-input:focus {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}
.search-bar-input::placeholder { color: rgba(255,255,255,0.5); }
.search-bar-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.search-bar-btn {
  position: absolute;
  right: 0.375rem;
  top: 50%; transform: translateY(-50%);
}

/* Main search (white bg) */
.search-main {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--border);
}
.search-main input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: none;
  color: var(--text-primary);
}
.search-main input::placeholder { color: var(--text-muted); }

/* ---- Stats ---- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon-blue { background: rgba(45,49,250,0.1); }
.stat-icon-purple { background: rgba(124,58,237,0.1); }
.stat-icon-teal { background: rgba(14,165,233,0.1); }
.stat-icon-amber { background: rgba(245,158,11,0.1); }
.stat-value { font-size: 1.625rem; font-weight: 800; font-family: var(--font-display); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ---- Section Headers ---- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.section-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---- Activity Feed ---- */
.feed-item {
  display: flex; gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.feed-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.feed-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ---- Messaging ---- */
.chat-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg-card);
}

.chat-sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-family: var(--font-display);
  position: sticky; top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.convo-item {
  display: flex; gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.convo-item:hover { background: var(--bg); }
.convo-item.active { background: rgba(45,49,250,0.06); }
.convo-info { flex: 1; min-width: 0; }
.convo-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-main { display: flex; flex-direction: column; overflow: hidden; }
.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--bg-card);
}

.messages-area { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.message-bubble {
  max-width: 68%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}
.message-bubble.own {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.message-bubble.other {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.message-time { font-size: 0.68rem; color: inherit; opacity: 0.6; margin-top: 0.25rem; text-align: right; }
.message-bubble.other .message-time { text-align: left; }

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; gap: 0.75rem; align-items: flex-end;
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  resize: none;
  outline: none;
  max-height: 120px;
  transition: var(--transition);
  background: var(--bg);
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,49,250,0.1); background: var(--bg-card); }

/* ---- Sidebar Layout ---- */
.sidebar-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* ---- Pagination ---- */
.pagination {
  display: flex; gap: 0.375rem; justify-content: center;
  margin-top: 2.5rem;
}
.page-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.page-link:hover { color: var(--primary); border-color: var(--primary); background: rgba(45,49,250,0.06); }
.page-link.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-state-text { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---- Alerts / Toasts ---- */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.625rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.alert-success { background: rgba(16,185,129,0.08); color: #065f46; border-color: rgba(16,185,129,0.2); }
.alert-danger { background: rgba(239,68,68,0.08); color: #991b1b; border-color: rgba(239,68,68,0.2); }
.alert-warning { background: rgba(245,158,11,0.08); color: #92400e; border-color: rgba(245,158,11,0.2); }
.alert-info { background: rgba(45,49,250,0.06); color: var(--primary-dark); border-color: rgba(45,49,250,0.15); }

/* Toast */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 2000; display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background: var(--text-primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 0.75rem;
  animation: slideInRight 0.3s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ---- Progress & Rating ---- */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.6s ease;
}

/* ---- Onboarding ---- */
.onboarding-progress {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2.5rem;
}
.onboarding-step {
  flex: 1;
  display: flex; align-items: center;
}
.onboarding-step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}
.onboarding-step.completed .onboarding-step-circle {
  background: var(--success); border-color: var(--success); color: white;
}
.onboarding-step.active .onboarding-step-circle {
  background: var(--primary); border-color: var(--primary); color: white;
}
.onboarding-step-line {
  flex: 1; height: 2px; background: var(--border);
  margin: 0 0.25rem;
}
.onboarding-step.completed .onboarding-step-line { background: var(--success); }

/* Purpose cards */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.purpose-card {
  padding: 1.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.purpose-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.purpose-card.selected { border-color: var(--primary); background: rgba(45,49,250,0.05); }
.purpose-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.purpose-card-title { font-weight: 700; font-family: var(--font-display); margin-bottom: 0.5rem; }
.purpose-card-desc { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Hero Home ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #080A20 0%, #0D1545 35%, #130D30 65%, #080A20 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) 0 0;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; top: -100px; left: -100px; background: rgba(45,49,250,0.5); animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; top: 20%; right: -80px; background: rgba(124,58,237,0.4); animation-delay: -3s; }
.hero-orb-3 { width: 350px; height: 350px; bottom: 0; left: 30%; background: rgba(14,165,233,0.3); animation-delay: -6s; }

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-light); animation: pulse 2s infinite; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #6AC1FF 0%, #B57BFF 50%, #FF7EC6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 32px rgba(45,49,250,0.4);
  border: none; cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(45,49,250,0.6); }

.btn-hero-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 2rem; justify-content: center;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: white; font-family: var(--font-display); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* Floating profile cards */
.hero-floating-cards {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.125rem;
  display: flex; align-items: center; gap: 0.625rem;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.floating-card-1 { top: 20%; left: 5%; animation-delay: -1s; }
.floating-card-2 { top: 55%; right: 3%; animation-delay: -4s; }
.floating-card-3 { bottom: 20%; left: 8%; animation-delay: -7s; }

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-desc { font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in { animation: fadeIn 0.5s ease both; }

/* Stagger animation */
.stagger > * { animation: fadeIn 0.5s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ---- Utilities ---- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.relative { position: relative; }
.hidden { display: none; }

.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sidebar-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--bg-card);
    z-index: 999;
    padding: 1.5rem;
    display: flex; flex-direction: column; gap: 0.5rem;
    transform: translateX(-100%);
    transition: var(--transition-slow);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .chat-container { grid-template-columns: 1fr; }
  .hero-floating-cards { display: none; }
  .hero-stats { gap: 1.25rem; }
  .purpose-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-xl, .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .container { padding: 0 1rem; }
}
