

:root {
  --bg:          #e8ecf0;
  --surface:     #e8ecf0;
  --shadow-light: #ffffff;
  --shadow-dark:  #c5ccd6;
  --shadow-darker:#b8bfca;

  --text-primary:   #2d3748;
  --text-secondary: #5a6882;
  --text-muted:     #8a95a5;

  --accent:     #5b6af0;
  --accent-dim: #7c8af7;
  --accent-bg:  rgba(91, 106, 240, 0.08);

  --green:  #38c97a;
  --orange: #f79824;
  --red:    #e85b5b;
  --purple: #9f7aea;
  --teal:   #38b2ac;
  --pink:   #ed64a6;

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

  --neu-shadow-raised:
    6px 6px 16px var(--shadow-dark),
    -6px -6px 16px var(--shadow-light);
  --neu-shadow-raised-lg:
    10px 10px 24px var(--shadow-darker),
    -10px -10px 24px var(--shadow-light);
  --neu-shadow-inset:
    inset 4px 4px 10px var(--shadow-dark),
    inset -4px -4px 10px var(--shadow-light);
  --neu-shadow-pressed:
    inset 6px 6px 14px var(--shadow-dark),
    inset -2px -2px 8px var(--shadow-light);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.14s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-w: 220px;
  --topbar-h:  56px;

  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
  --bg:          #1e2126;
  --surface:     #1e2126;
  --shadow-light: #25292f;
  --shadow-dark:  #17191d;
  --shadow-darker:#131518;

  --text-primary:   #e2e8f0;
  --text-secondary: #a0aec0;
  --text-muted:     #718096;

  --accent-bg:  rgba(91, 106, 240, 0.15);
}

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

[hidden] {
  display: none !important;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

.recent-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.neu-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-shadow-raised);
  padding: 24px;
  transition: box-shadow var(--transition);
}

.neu-card:hover {
  box-shadow: var(--neu-shadow-raised-lg);
}

.neu-inset {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-inset);
}

.neu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: box-shadow var(--transition), transform var(--transition-fast), color var(--transition);
  box-shadow: var(--neu-shadow-raised);
  background: var(--surface);
  color: var(--text-primary);
  user-select: none;
  white-space: nowrap;
}

.neu-button:hover {
  box-shadow: var(--neu-shadow-raised-lg);
  transform: translateY(-1px);
}

.neu-button:active {
  box-shadow: var(--neu-shadow-pressed);
  transform: translateY(0);
}

.neu-button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 6px 6px 16px rgba(91,106,240,0.35), -4px -4px 12px var(--shadow-light);
}

.neu-button.primary:hover {
  background: var(--accent-dim);
  box-shadow: 8px 8px 20px rgba(91,106,240,0.45), -4px -4px 14px var(--shadow-light);
}

.neu-button.primary:active {
  box-shadow: inset 4px 4px 10px rgba(0,0,0,0.2), inset -2px -2px 6px rgba(255,255,255,0.15);
}

.neu-button.secondary {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.neu-button.small {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

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

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

.neu-select {
  background: var(--surface);
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-shadow-raised);
  cursor: pointer;
  transition: box-shadow var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a95a5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.neu-select:hover { box-shadow: var(--neu-shadow-raised-lg); }
.neu-select:focus { box-shadow: var(--neu-shadow-inset); }

.neu-stat {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-raised);
  padding: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.neu-stat:hover {
  box-shadow: var(--neu-shadow-raised-lg);
  transform: translateY(-2px);
}

.landing-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.landing-top-actions,
.loading-top-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 510;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
}

.dashboard-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.theme-toggle-btn {
  background: var(--surface);
  box-shadow: var(--neu-shadow-raised);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: box-shadow var(--transition), transform var(--transition-fast), color var(--transition);
}

.theme-toggle-btn:hover {
  box-shadow: var(--neu-shadow-raised-lg);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  box-shadow: var(--neu-shadow-pressed);
  transform: translateY(0);
}

.landing-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--shadow-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--shadow-dark) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  pointer-events: none;
}

.landing-content {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.6s ease both;
}

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

.landing-logo {
  color: var(--accent);
  filter: drop-shadow(4px 4px 10px rgba(91,106,240,0.3));
}

.landing-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.landing-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 420px;
}

.search-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

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

.landing-examples {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.examples-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.example-chip {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  box-shadow: var(--neu-shadow-raised);
  background: var(--surface);
  transition: box-shadow var(--transition), transform var(--transition-fast), color var(--transition);
  font-family: var(--font-mono);
}

.example-chip:hover {
  box-shadow: var(--neu-shadow-raised-lg);
  transform: translateY(-1px);
  color: var(--accent-dim);
}

.example-chip:active {
  box-shadow: var(--neu-shadow-pressed);
  transform: translateY(0);
}

.error-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-raised-lg), 0 0 0 2px rgba(232,91,91,0.2);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  max-width: 500px;
  width: calc(100% - 40px);
  animation: slideUpIn 0.3s ease;
}

@keyframes slideUpIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.error-close {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}
.error-close:hover { color: var(--text-primary); }

.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 60px;
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.loading-spinner { width: 64px; height: 64px; }

.spinner-svg { width: 100%; height: 100%; animation: rotateSpin 1.4s linear infinite; }

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

.spinner-track { stroke: var(--shadow-dark); }
.spinner-arc {
  stroke: var(--accent);
  stroke-dasharray: 80 125;
  stroke-linecap: round;
  stroke-dashoffset: 0;
  animation: dashAnim 1.4s ease-in-out infinite;
}

@keyframes dashAnim {
  0%   { stroke-dashoffset: 0; }
  50%  { stroke-dashoffset: -80; }
  100% { stroke-dashoffset: -205; }
}

.loading-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.loading-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-height: 1.4em;
}

.loading-steps {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.loading-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.loading-step.done { color: var(--green); }
.loading-step.active { color: var(--accent); }

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--shadow-dark);
  box-shadow: var(--neu-shadow-inset);
  transition: background var(--transition), box-shadow var(--transition);
}

.loading-step.done .step-dot {
  background: var(--green);
  box-shadow: 0 0 8px rgba(56,201,122,0.4);
}

.loading-step.active .step-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(91,106,240,0.5);
  animation: pulse 1s ease infinite;
}

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

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  box-shadow: 4px 0 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--shadow-dark);
}

.sidebar-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-align: left;
  width: 100%;
}

.nav-item:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.nav-item.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 12px rgba(91,106,240,0.3), -2px -2px 8px var(--shadow-light);
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--shadow-dark);
}

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 300;
}

.mobile-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-shadow-raised);
}

.hamburger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.icon-btn {
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-shadow-raised);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.icon-btn:hover { box-shadow: var(--neu-shadow-raised-lg); color: var(--accent); }

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 32px;
  min-width: 0;
  transition: margin-left var(--transition);
}

.main-content.expanded {
  margin-left: 0;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeSlideUp 0.4s ease both;
}

.content-section[hidden] { display: none; }

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
}

.profile-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: var(--neu-shadow-raised-lg);
  object-fit: cover;
  background: var(--shadow-dark);
}

.avatar-status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 6px rgba(56,201,122,0.5);
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.profile-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-fullname {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.profile-username {
  font-size: 0.9rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.profile-username::before { content: '@'; }

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 480px;
}

.profile-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.meta-item svg { flex-shrink: 0; }

.profile-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.profile-gh-link { margin-top: 4px; align-self: flex-start; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--neu-shadow-raised);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: default;
}

.stat-card:hover {
  box-shadow: var(--neu-shadow-raised-lg);
  transform: translateY(-2px);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neu-shadow-inset);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 16px;
  align-items: start;
}

.score-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.score-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.score-display {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.score-svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.score-track { stroke: var(--shadow-dark); }
.score-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#score-value {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.score-denom {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.score-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.score-factor {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-factor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-factor-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.score-factor-pts {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}

.score-factor-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--shadow-dark);
  box-shadow: var(--neu-shadow-inset);
  overflow: hidden;
}

.score-factor-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-shadow-inset);
  line-height: 1.5;
}

.streak-mini-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 200px;
}

.streak-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 4px;
  text-align: center;
}

.streak-mini-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.streak-mini-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}

.streak-mini-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.period-selector {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.period-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.period-btn:hover { color: var(--accent); }

.period-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--neu-shadow-raised);
}

.activity-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.activity-stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--neu-shadow-raised);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.activity-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.activity-stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.activity-chart-card { overflow: hidden; }

.heatmap-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.heatmap-scroll::-webkit-scrollbar {
  display: none;
}
.heatmap-scroll:active {
  cursor: grabbing;
}

.heatmap-grid {
  display: flex;
  gap: 3px;
  min-width: max-content;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.heatmap-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--shadow-dark);
  box-shadow: var(--neu-shadow-inset);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.heatmap-cell:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.heatmap-cell[data-level="1"] { background: rgba(91,106,240,0.25); box-shadow: none; }
.heatmap-cell[data-level="2"] { background: rgba(91,106,240,0.50); box-shadow: none; }
.heatmap-cell[data-level="3"] { background: rgba(91,106,240,0.75); box-shadow: none; }
.heatmap-cell[data-level="4"] { background: var(--accent); box-shadow: 0 0 6px rgba(91,106,240,0.4); }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  justify-content: flex-end;
}

.legend-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.streaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.streak-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  gap: 4px;
}

.streak-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
}

.streak-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}

.streak-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.pattern-card { }

.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-day {
  width: 70px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: var(--shadow-dark);
  box-shadow: var(--neu-shadow-inset);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.highlight { background: var(--green); }

.bar-count {
  width: 36px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

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

.time-quadrant {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--neu-shadow-inset);
  transition: box-shadow var(--transition);
}

.time-quadrant.highlight-time {
  box-shadow: var(--neu-shadow-raised);
}

.time-q-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-q-count {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.time-q-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.monthly-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 8px 0;
  overflow-x: auto;
}

.month-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 36px;
}

.month-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.month-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: var(--accent);
  opacity: 0.7;
  transition: opacity var(--transition), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}

.month-bar.highlight { opacity: 1; }

.month-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.month-count {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.repo-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.repo-search-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.neu-input.small { font-size: 0.875rem; }

.repo-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.repo-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.repo-highlight-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--neu-shadow-raised);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rh-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--accent-bg);
  align-self: flex-start;
}

.rh-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rh-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.repo-table-wrapper {
  overflow: auto;
  padding: 0;
}

.repo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.repo-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--shadow-dark);
  white-space: nowrap;
}

.repo-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(197,204,214,0.4);
  vertical-align: middle;
}

.repo-table tbody tr {
  transition: background var(--transition-fast);
}

.repo-table tbody tr:hover {
  background: var(--accent-bg);
}

.repo-table tbody tr:last-child td { border-bottom: none; }

.repo-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.repo-name-link {
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.repo-name-link:hover { color: var(--accent-dim); }

.repo-description {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.lang-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.activity-indicator {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.activity-bar {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.4;
}

.activity-bar.active { opacity: 1; }

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--neu-shadow-raised);
  background: var(--surface);
  transition: box-shadow var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.page-btn:hover { box-shadow: var(--neu-shadow-raised-lg); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; box-shadow: 4px 4px 10px rgba(91,106,240,0.3); }
.page-btn:disabled { opacity: 0.4; pointer-events: none; }

.languages-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.donut-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 320px;
  flex-shrink: 0;
}

.donut-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.donut-svg { width: 100%; height: 100%; }

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-lang {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

.donut-pct {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.legend-item:hover { background: var(--accent-bg); }

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-name { flex: 1; color: var(--text-secondary); font-weight: 500; }
.legend-pct  { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.78rem; }

.lang-bars-card { flex: 1; }

.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lang-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-bar-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  width: 20px;
}

.lang-name-text {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.lang-pct-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.lang-bar-track {
  height: 8px;
  border-radius: 99px;
  background: var(--shadow-dark);
  box-shadow: var(--neu-shadow-inset);
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-table-card { }

.lang-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.lang-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--shadow-dark);
}

.lang-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(197,204,214,0.4);
}

.lang-table tbody tr:last-child td { border-bottom: none; }
.lang-table tbody tr:hover { background: var(--accent-bg); }

.insights-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-shadow-inset);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.insight-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--neu-shadow-raised);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
  animation: fadeSlideUp 0.5s ease both;
}

.insight-card:hover {
  box-shadow: var(--neu-shadow-raised-lg);
  transform: translateY(-2px);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neu-shadow-inset);
  flex-shrink: 0;
}

.insight-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.insight-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.insight-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.insight-metric-chip {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: var(--font-mono);
}

.insight-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.insight-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--shadow-dark);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rotateSpin 0.8s linear infinite;
}

.tooltip {
  position: fixed;
  background: var(--text-primary);
  color: #f8f9fa;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: none;
  z-index: 9000;
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: opacity 0.15s ease;
  opacity: 0;
}

.tooltip.visible { opacity: 1; }

@media (max-width: 1100px) {
  .languages-layout {
    grid-template-columns: 1fr;
  }
  .donut-card { width: 100%; }
  .score-row {
    grid-template-columns: 1fr;
  }
  .streak-mini-row {
    flex-direction: row;
    width: 100%;
  }
  .streak-mini { flex: 1; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }
  .mobile-topbar { display: flex; }
  .main-content {
    margin-left: 0;
    padding: 80px 16px 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-meta, .profile-stats {
    justify-content: center;
  }
  .profile-gh-link { align-self: center; }
  .profile-names { align-items: center; }
  .heatmap-cell { width: 10px; height: 10px; }
  .period-selector {
    gap: 2px;
    padding: 4px;
  }
  .period-btn { padding: 6px 10px; font-size: 0.75rem; }
  .patterns-grid { grid-template-columns: 1fr; }
  .score-display { justify-content: center; }
}

@media (max-width: 480px) {
  .landing-title { font-size: 1.5rem; }
  .search-container { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 1.3rem; }
  .streaks-grid { grid-template-columns: repeat(2, 1fr); }
  .repo-controls { flex-direction: column; }
  .repo-filters { width: 100%; }
  .neu-select { flex: 1; }
  .insights-grid { grid-template-columns: 1fr; }
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  border-top: 1px solid var(--shadow-dark);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Chat UI --- */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  box-shadow: var(--neu-shadow-raised-lg);
  transition: transform var(--transition);
}
.chat-fab:hover {
  transform: translateY(-4px) scale(1.05);
}
.chat-fab.hidden {
  display: none;
}

.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-shadow-raised-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.chat-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid var(--shadow-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.chat-messages::-webkit-scrollbar {
  display: none;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.chat-message.user {
  align-self: flex-end;
}
.chat-message.bot {
  align-self: flex-start;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-message.user .chat-bubble {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: none;
}
.chat-message.bot .chat-bubble {
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--shadow-dark);
  display: flex;
  gap: 8px;
}
.chat-input-area input {
  flex: 1;
}

.chat-typing {
  font-weight: bold;
  color: var(--accent);
}
.chat-typing span {
  animation: typing 1.4s infinite both;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* --- Resume Generator Styles --- */
#resume-container {
  display: none;
}

.resume-paper {
  background: white;
  color: black;
  padding: 40px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.resume-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.contact-info span {
  margin-right: 15px;
  color: #555;
  font-size: 14px;
}
.resume-section {
  margin-top: 24px;
}
.resume-section h2 {
  font-size: 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.resume-project {
  margin-bottom: 16px;
}
.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.project-title-row h3 {
  font-size: 16px;
  margin: 0;
}
.project-meta {
  font-size: 12px;
  color: #666;
}

@media print {
  body * {
    visibility: hidden;
  }
  #resume-container, #resume-container * {
    visibility: visible;
  }
  #resume-container {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  /* Ensure background colors are printed if needed */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ============================================================
   CAREER & INTERNSHIP RADAR STYLING
   ============================================================ */
.career-summary-card {
  padding: 24px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.career-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.career-archetype-wrap {
  flex: 1;
  min-width: 250px;
}

.career-archetype-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-bg);
  color: var(--accent);
  margin-bottom: 8px;
  border: 1px solid rgba(91, 106, 240, 0.2);
}

.career-archetype-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.career-archetype-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
}

.career-readiness-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-inset);
}

.career-readiness-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(56, 201, 122, 0.15);
  color: var(--green);
  border: 1px solid rgba(56, 201, 122, 0.3);
}

.career-score-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.career-score-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  line-height: 1;
}

.career-score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.career-readiness-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.career-lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg);
  box-shadow: var(--neu-shadow-raised);
}

/* Filters Bar */
.career-filters-bar {
  margin-bottom: 24px;
}

.career-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.career-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  box-shadow: var(--neu-shadow-raised);
  transition: var(--transition);
}

.career-tab-btn:hover {
  color: var(--accent);
}

.career-tab-btn.active {
  color: var(--accent);
  box-shadow: var(--neu-shadow-inset);
  font-weight: 700;
}

/* Roles Grid */
.career-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .career-roles-grid {
    grid-template-columns: 1fr;
  }
}

.career-role-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.career-role-card:hover {
  transform: translateY(-3px);
}

.career-role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.career-role-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.career-role-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.career-match-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(91, 106, 240, 0.12);
  color: var(--accent);
  border: 1px solid rgba(91, 106, 240, 0.25);
}

.career-match-pct {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.career-match-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.career-match-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  box-shadow: var(--neu-shadow-inset);
  overflow: hidden;
  margin-bottom: 14px;
}

.career-match-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 0.6s ease;
}

.career-role-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.career-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.career-skills-wrap {
  margin-bottom: 14px;
}

.career-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.career-skill-tag {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 8px;
  font-weight: 600;
}

.career-skill-tag.possessed {
  background: rgba(56, 201, 122, 0.12);
  color: var(--green);
  border: 1px solid rgba(56, 201, 122, 0.25);
}

.career-skill-tag.to-learn {
  background: rgba(159, 122, 234, 0.12);
  color: var(--purple);
  border: 1px solid rgba(159, 122, 234, 0.25);
}

.career-projects-wrap {
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--neu-shadow-inset);
  margin-bottom: 16px;
}

.career-project-item {
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.career-project-item:last-child {
  margin-bottom: 0;
}

.career-project-bullet {
  color: var(--accent);
  font-size: 0.9rem;
}

.career-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.career-search-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.career-job-link {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  box-shadow: var(--neu-shadow-raised);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.career-job-link:hover {
  color: var(--accent);
  box-shadow: var(--neu-shadow-inset);
}

.career-job-link.linkedin:hover { color: #0077b5; }
.career-job-link.indeed:hover { color: #2164f3; }
.career-job-link.wellfound:hover { color: #ff5757; }

/* AI Strategy Modal */
.ai-strategy-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ai-strategy-card {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--neu-shadow-raised-lg);
}

.ai-strategy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--shadow-dark);
}

.strategy-block {
  margin-bottom: 24px;
}

.strategy-block-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strategy-box {
  background: var(--surface);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-shadow-inset);
  font-size: 0.95rem;
  line-height: 1.6;
}

.strategy-bullet-list {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strategy-bullet-list li {
  margin-bottom: 6px;
}

