:root {
  --bg: #0a1220;
  --bg-soft: #121e31;
  --panel: rgba(10, 18, 32, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #e8eefb;
  --muted: #9db0cb;
  --accent: #64e2b6;
  --accent-strong: #2dbf97;
  --assistant-bubble: rgba(255, 255, 255, 0.08);
  --user-bubble: linear-gradient(135deg, #64e2b6, #1991ff);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 191, 151, 0.16), transparent 25%),
    radial-gradient(circle at bottom right, rgba(25, 145, 255, 0.22), transparent 30%),
    linear-gradient(160deg, #060b14 0%, #0a1220 45%, #101a2d 100%);
  color: var(--text);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 32px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-one {
  top: 80px;
  left: -20px;
  width: 220px;
  height: 220px;
  background: rgba(100, 226, 182, 0.22);
}

.ambient-two {
  right: -30px;
  bottom: 100px;
  width: 260px;
  height: 260px;
  background: rgba(25, 145, 255, 0.18);
}

.app-card {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.75fr 1.45fr;
  gap: 24px;
}

.chat-panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-hero {
  margin-bottom: 16px;
}

.sidebar .hero-panel .profile-hero {
  margin-bottom: 12px;
}

.avatar-card {
  position: relative;
  width: min(100%, 340px);
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(100, 226, 182, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.avatar-illustration {
  position: relative;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.09), transparent 20%),
    linear-gradient(180deg, rgba(12, 23, 40, 0.45), rgba(8, 16, 28, 0.9));
}

.avatar-halo {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(100, 226, 182, 0.22), rgba(25, 145, 255, 0.06) 65%, transparent 72%);
}

.avatar-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 228px;
  max-width: 82%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 28px 28px 18px 18px;
  filter: grayscale(1) contrast(1.04) brightness(1.02);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.eyebrow,
.chat-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel h1,
.chat-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

.hero-panel h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.hero-copy {
  max-width: 36rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.feature-pills span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
}

.chat-header h2 {
  font-size: 1.6rem;
}

.chat-header-candidate {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.chat-header-photo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
}

#chatHeaderName {
  font-size: 1.2rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.ghost-button,
#sendBtn {
  border: 0;
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.ghost-button {
  padding: 12px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.icon-button {
  min-width: 72px;
  font-size: 1.25rem;
  line-height: 1;
}

.icon-button i {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
}

.ghost-button:hover,
#sendBtn:hover {
  transform: translateY(-1px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.bubble {
  max-width: min(82%, 720px);
  padding: 10px 15px;
  border-radius: 22px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.message.assistant .bubble {
  background: var(--assistant-bubble);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.message.user .bubble {
  color: #03111f;
  background: var(--user-bubble);
}

.bubble p {
  margin: 0;
}

.composer {
  padding: 24px;
  border-top: 1px solid var(--panel-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#userInput {
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 44px;
  max-height: 180px;
}

#userInput::placeholder {
  color: #8092ad;
}

.composer-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.composer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.voice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#sendBtn {
  padding: 12px 20px;
  font-weight: 700;
  color: #03111f;
  background: linear-gradient(135deg, #64e2b6, #1991ff);
}

#sendBtn:disabled,
.ghost-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: 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;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 20px;
    display: block;
  }

  .main-container {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 24px;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .chat-container {
    width: 100%;
    max-width: 100%;
  }

  .hero-panel {
    min-height: 0;
    padding: 32px 24px;
  }

  .avatar-card {
    width: min(100%, 300px);
  }

  .hero-panel h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .chat-messages {
    min-height: 420px;
    max-height: 55vh;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 14px;
    display: block;
  }

  .main-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none;
    height: auto;
    order: 1;
  }

  .chat-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    order: 2;
  }

  .hero-panel,
  .chat-panel {
    border-radius: 22px;
  }

  .hero-panel {
    padding: 28px;
  }

  .profile-hero {
    margin-bottom: 22px;
  }

  .avatar-card {
    width: 100%;
  }

  .avatar-illustration {
    height: 240px;
  }

  .chat-panel {
    padding: 18px;
  }

  .composer-actions,
  .composer-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .voice-actions {
    justify-content: stretch;
  }

  .voice-actions .ghost-button,
  #sendBtn {
    width: 100%;
  }

  .bubble {
    max-width: 100%;
  }
}

/* Auth Page Styles */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.auth-header h1 {
  font-family: "Space Grotesk", monospace;
  font-size: 28px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.auth-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: rgba(100, 226, 182, 0.15);
  color: var(--accent);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-group input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.form-group .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.error-message {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footer .helper-text {
  font-size: 12px;
  color: var(--muted);
}

/* Primary Button */
.primary-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  color: #000;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(100, 226, 182, 0.2);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  backdrop-filter: blur(12px);
  background: rgba(10, 18, 32, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 28px;
  height: 28px;
}

.nav-title {
  font-family: "Space Grotesk", monospace;
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-display {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

/* Main Container - 2 Column Layout */
.main-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Left Column: Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding-right: 8px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Right Column: Chat */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-section {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 20px;
  flex-shrink: 0;
}

.sidebar .hero-panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.sidebar .hero-panel .eyebrow {
  font-size: 12px;
  margin: 8px 0 4px 0;
}

.sidebar .hero-panel h1 {
  font-size: 24px;
  line-height: 1.2;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.search-item:hover {
  background: rgba(100, 226, 182, 0.1);
}

.search-item:last-child {
  border-bottom: none;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.user-info strong {
  color: var(--text);
  font-size: 14px;
}

.username {
  color: var(--muted);
  font-size: 12px;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-button {
  padding: 12px 16px;
  background: rgba(100, 226, 182, 0.15);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.upload-button:hover {
  background: rgba(100, 226, 182, 0.25);
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.doc-name {
  flex: 1;
  color: var(--text);
  word-break: break-all;
}

.doc-size {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* Adjusted layout for new nav */
.page-shell {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.main-container {
  padding: 32px;
  flex: 1;
}

.app-card {
  padding: 0;
}

/* Profile Card in Sidebar */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.profile-card:hover {
  opacity: 0.8;
}

.profile-card .avatar-card {
  position: relative;
  width: 100%;
  max-width: 160px;
}

.profile-card .avatar-illustration {
  height: 160px;
}

/* Clickable Photo Button */
.photo-button-clickable {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-button-clickable:hover .avatar-card {
  opacity: 0.8;
  transform: scale(1.02);
}

.photo-button-clickable:hover .avatar-illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(100, 226, 182, 0.2);
}

/* Photo Modal */
.photo-modal-content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.photo-modal-body {
  width: 100%;
  max-width: 400px;
}

.modal-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--panel-border);
}

.photo-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-modal-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
}

.photo-modal-actions .primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #000;
  border: none;
}

.photo-modal-actions .ghost-button {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  justify-self: flex-end;
}

/* Documents Button */
.documents-button {
  width: 100%;
  padding: 12px 16px;
  border: 1px dashed var(--accent);
  border-radius: 12px;
  background: rgba(100, 226, 182, 0.08);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.documents-button:hover {
  background: rgba(100, 226, 182, 0.15);
  transform: translateY(-2px);
}

.documents-button i {
  font-size: 1.1rem;
}

/* Documents Modal */
.documents-modal-content {
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 80vh;
}

.documents-modal-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  padding: 16px 0;
}

.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.document-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.document-info i {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.document-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--text);
}

.document-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 12px;
}

.document-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.document-actions button {
  padding: 6px 10px;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.document-actions .update-btn {
  background: rgba(100, 226, 182, 0.2);
  color: var(--accent);
}

.document-actions .update-btn:hover {
  background: rgba(100, 226, 182, 0.35);
}

.document-actions .delete-btn {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.document-actions .delete-btn:hover {
  background: rgba(255, 107, 107, 0.35);
}

.documents-modal-actions {
  width: 100%;
  display: flex;
  gap: 12px;
}

.documents-modal-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  flex: 1;
}

.profile-name {
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.profile-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 8px 0 0;
  color: var(--text-primary);
}

/* Avatar Display in Hero */
.avatar-display {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 12px;
}

.avatar-display-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(100, 226, 182, 0.2);
}

.sidebar .hero-panel .avatar-display {
  max-width: 180px;
}

/* Search result match badges and skill tags */
.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.match-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.match-badge--name {
  background: rgba(25, 145, 255, 0.18);
  color: #1991ff;
  border: 1px solid rgba(25, 145, 255, 0.30);
}

.match-badge--skill {
  background: rgba(100, 226, 182, 0.15);
  color: var(--accent);
  border: 1px solid rgba(100, 226, 182, 0.28);
}

/* Matched skill tags shown under candidate name */
.matched-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.skill-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(100, 226, 182, 0.10);
  color: var(--accent);
  border: 1px solid rgba(100, 226, 182, 0.20);
}

/* Privacy & Terms Modal */
.privacy-terms-link {
  display: inline;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  padding: 0 2px;
  font: inherit;
  font-size: 12px;
  transition: opacity 0.2s ease;
  margin-left: 4px;
}

.privacy-terms-link:hover {
  opacity: 0.8;
  text-decoration: underline dotted;
}

.privacy-terms-link:active {
  opacity: 0.6;
}

.privacy-terms-modal {
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.privacy-terms-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

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

.privacy-terms-body section:last-child {
  margin-bottom: 0;
}

.privacy-terms-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--accent);
}

.privacy-terms-body p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px 0;
  color: var(--muted);
}

.privacy-terms-body ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.privacy-terms-body li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--muted);
  position: relative;
  padding-left: 12px;
}

.privacy-terms-body li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* How to Use Modal */
.how-to-use-modal {
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.how-to-use-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}

.how-to-section {
  margin-bottom: 28px;
}

.how-to-section:last-child {
  margin-bottom: 0;
}

.how-to-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.how-to-section h3 i {
  font-size: 16px;
}

.how-to-section p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px 0;
  color: var(--muted);
}

.how-to-section ol,
.how-to-section ul {
  margin: 0;
  padding-left: 20px;
  list-style-position: outside;
}

.how-to-section li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--muted);
}

.how-to-section strong {
  color: var(--text);
}

.use-cases-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.use-case-item {
  background: rgba(100, 226, 182, 0.08);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.use-case-item:hover {
  background: rgba(100, 226, 182, 0.12);
}

.use-case-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text);
}

.use-case-item p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}

.use-case-disclaimer {
  font-size: 11px;
  margin-top: 8px !important;
  color: #ffa500;
  font-weight: 500;
}

.faq-item {
  background: rgba(100, 226, 182, 0.05);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.faq-item p {
  margin: 0 0 8px 0;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* Help button on login page */
.help-button-floating {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.help-button-floating:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.help-button-floating:active {
  transform: scale(0.95);
}

/* Example link on login page */
.example-link-floating {
  position: fixed;
  top: 20px;
  right: 60px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.example-link-floating:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.example-link-floating:active {
  transform: scale(0.95);
}
