/* Talent Zone profile styles (public pages) */
/* Goal: LinkedIn-style structure, clean alignment, responsive, no horizontal scrolling. */

.tp-profile-page {
  padding-top: 56px;
  padding-bottom: 96px;
}

.tp-page-head {
  text-align: left;
  margin-bottom: 32px;
  padding: 32px 0;
  border-bottom: 1px solid #e5e7eb;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.tp-page-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  color: #0f172a;
  line-height: 1.1;
}

.tp-page-lede {
  font-size: 1.125rem;
  font-weight: 500;
  color: #64748b;
  max-width: 70ch;
  margin: 0;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.tp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.tp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.2s ease;
}

.tp-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.tp-section {
  padding: 20px;
}

.tp-header-card {
  padding: 18px;
}

.tp-header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tp-avatar-wrap {
  width: 88px;
  height: 88px;
  flex: none;
}

.tp-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(96, 165, 250, 0.18));
}

.tp-avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-text);
}

.tp-ident {
  min-width: 0;
}

.tp-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-name {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tp-headline {
  color: var(--color-text-secondary);
  margin-top: 6px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tp-meta {
  color: var(--color-text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

.tp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-border-soft);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.tp-badge-reco {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.tp-badge-score {
  border-color: rgba(217, 119, 6, 0.35);
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.tp-section-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.tp-aside-title {
  padding: 18px 18px 0;
}

.tp-prose {
  color: var(--color-text-secondary);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.tp-subtitle {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.tp-empty-inline {
  color: var(--color-text-muted);
  background: var(--color-border-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

/* Timeline / career history */
.tp-timeline {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.tp-timeline-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  list-style: none;
}

.tp-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--color-primary), rgba(96, 165, 250, 1));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.tp-timeline-body {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .tp-timeline-body {
  background: rgba(15, 23, 42, 0.6);
}

.tp-timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.tp-role {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tp-dates {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.tp-company {
  color: var(--color-text-secondary);
  margin-top: 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tp-location {
  font-weight: 400;
  color: var(--color-text-muted);
}

.tp-responsibilities {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-size: 0.925rem;
}

.tp-responsibilities li {
  margin: 6px 0;
  position: relative;
}

.tp-responsibilities li::marker {
  color: var(--color-primary);
}

/* Education */
.tp-education-list {
  display: grid;
  gap: 12px;
}

.tp-edu-item {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .tp-edu-item {
  background: rgba(15, 23, 42, 0.4);
}

.tp-edu-degree {
  font-weight: 700;
  margin-bottom: 2px;
}

.tp-edu-school {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.tp-edu-year {
  color: var(--color-text-muted);
  font-weight: 400;
}

.tp-bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.tp-bullets li {
  margin: 6px 0;
}

/* Skills pills */
.tp-skill-groups {
  display: grid;
  gap: 14px;
}

.tp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-border-soft);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.92rem;
}

.tp-pill-pro .tp-pill-meta {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .tp-pill-pro .tp-pill-meta {
  background: rgba(255, 255, 255, 0.06);
}

.tp-pill-cert {
  border-color: rgba(5, 150, 105, 0.35);
  background: var(--color-success-soft);
  color: var(--color-success);
}

/* Aside */
.tp-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.tp-aside-card {
  padding: 18px;
}

.tp-actions {
  display: grid;
  gap: 12px;
}

.tp-actions button,
.tp-actions a,
.tp-contact-actions button,
.tp-contact-actions a {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tp-actions button:hover:not(:disabled),
.tp-actions a:hover,
.tp-contact-actions button:hover:not(:disabled),
.tp-contact-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tp-actions button:active:not(:disabled),
.tp-actions a:active,
.tp-contact-actions button:active:not(:disabled),
.tp-contact-actions a:active {
  transform: translateY(0);
}

/* Default button styling - Most buttons are simple gray */
.tp-vote-btn,
.tp-uplink-btn,
.tp-contact-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tp-vote-btn:hover:not(:disabled):not(.is-active),
.tp-uplink-btn:hover:not(:disabled):not(.tp-pending-btn),
.tp-contact-btn:hover:not(:disabled) {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
}

/* Upvote button - Blue ONLY when active */
.tp-vote-btn.is-active {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.4) !important;
}

.tp-vote-btn.is-active:hover:not(:disabled) {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

/* Uplink button state colors (applied via JavaScript inline styles) */
/* Request Pending - Muted orange */
.tp-pending-btn {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  cursor: default !important;
}

/* Message and View Contact stay gray unless you want them colored */
.tp-actions a[href*="messages"],
.tp-contact-actions a[href*="messages"] {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.tp-actions a[href*="messages"]:hover,
.tp-contact-actions a[href*="messages"]:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
}

.tp-contact-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Back button - Keep simple and professional */
.tp-actions a[href*="back"],
.tp-actions a.btn-secondary:not([href*="messages"]) {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.tp-actions a[href*="back"]:hover,
.tp-actions a.btn-secondary:not([href*="messages"]):hover {
  border-color: #d1d5db;
  color: #374151;
  background: #f9fafb;
}

.tp-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
  font-size: 12px;
  padding: 0 8px;
  letter-spacing: -0.02em;
}

.tp-vote-btn.is-active .tp-count {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

[data-theme="dark"] .tp-count {
  background: rgba(255, 255, 255, 0.08);
}

.tp-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tp-stat {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tp-stat:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.12);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.tp-stat-num {
  font-weight: 700;
  font-size: 1.75rem;
  color: #1f2937;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tp-stat-label {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-weight: 600;
}

/* Recruiter contact */
.tp-contact-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.tp-lock {
  color: var(--color-text-secondary);
  background: var(--color-border-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  line-height: 1.6;
}

.tp-contact-reveal {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.tp-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.tp-contact-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.tp-contact-val {
  color: var(--color-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Assessment */
.tp-assessment-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.tp-score {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.tp-score:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.tp-score-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.tp-score-label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  letter-spacing: -0.01em;
}

.tp-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
  font-weight: 400;
}

.tp-mastery-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tp-mastery {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .tp-mastery {
  background: rgba(15, 23, 42, 0.55);
}

.tp-mastery-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.tp-mastery-skill {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tp-mastery-level {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: var(--color-border-soft);
}

.tp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

[data-theme="dark"] .tp-bar {
  background: rgba(255, 255, 255, 0.08);
}

.tp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), rgba(96, 165, 250, 1));
  border-radius: 999px;
}

/* Empty state */
.tp-empty {
  margin-top: 28px;
  text-align: center;
  padding: 48px 18px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.tp-empty-title {
  margin: 0 0 10px;
}

.tp-empty-text {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
}

/* Save button styles */
.tp-save-btn {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tp-save-btn.is-saved {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.4) !important;
}

.tp-save-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tp-save-btn.is-saved:hover:not(:disabled) {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.tp-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.save-icon-filled {
  display: none;
}

.tp-save-btn.is-saved .save-icon-outline {
  display: none;
}

.tp-save-btn.is-saved .save-icon-filled {
  display: inline;
}

/* Lock icon styling */
.tp-lock {
  text-align: center;
}

.tp-lock svg {
  display: inline-block;
}

.tp-lock p {
  margin: 0;
  line-height: 1.6;
}

/* Toast animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Enterprise-grade button icons */
.tp-actions button svg,
.tp-actions a svg {
  flex-shrink: 0;
}

/* Professional card hover effects */
.tp-card {
  position: relative;
  overflow: visible;
}

.tp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(96, 165, 250, 0.02));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Professional back button */
.tp-back-link:hover {
  color: #1d4ed8 !important;
  transform: translateX(-4px);
}

.tp-back-link svg {
  transition: transform 0.2s ease;
}

.tp-back-link:hover svg {
  transform: translateX(-2px);
}

/* Responsive */
@media (max-width: 980px) {
  .tp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-aside {
    position: static;
  }

  .tp-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tp-profile-page {
    padding-top: 38px;
  }

  .tp-header {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .tp-avatar-wrap,
  .tp-avatar {
    width: 68px;
    height: 68px;
  }

  .tp-stats {
    grid-template-columns: 1fr;
  }

  .tp-mastery-grid {
    grid-template-columns: 1fr;
  }

  .tp-dates {
    white-space: normal;
  }
}

/* ========================================================================== */
/* ENTERPRISE-GRADE DESIGN ENHANCEMENTS (Non-conflicting additions only) */
/* ========================================================================== */

/* Enhanced section title underline accent */
.tp-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* Enhanced avatar gradient border effect */
.tp-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 999px;
  z-index: -1;
}

/* Duplicate removed - see line 563 for primary .tp-stat-num styling */

/* Enhanced button gradients */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Enhanced skill pills with hover */
.tp-pill {
  transition: all 0.2s ease;
}

.tp-pill:hover {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  border-color: #bfdbfe;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Gradient badges */
.tp-badge-score {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.tp-badge-reco {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* Enhanced timeline dots */
.tp-dot {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Enhanced mastery bars with glow */
.tp-bar-fill {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* Enhanced assessment card */
.tp-assessment {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Enhanced page header - handled in primary styles above */

/* Professional back button with enhanced hover */
.tp-back-link {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.tp-back-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

/* Enhanced header card with gradient */
.tp-header-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* Professional stats with gradient background */
.tp-stats {
  background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.tp-stat:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* Enhanced lock section */
.tp-lock {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border: 1px dashed #d1d5db;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ========================================================================== */
/* ADDITIONAL ENTERPRISE-GRADE PROFESSIONAL ENHANCEMENTS */
/* ========================================================================== */

/* Professional card elevation with depth */
.tp-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.tp-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.1);
}

/* Professional avatar with stronger gradient ring */
.tp-avatar-wrap {
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tp-avatar-wrap::before {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  opacity: 0.25;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.02); }
}

/* Enhanced typography hierarchy */
.tp-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tp-headline {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tp-section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
  font-size: 18px;
}

.tp-section-title::after {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Professional button enhancements */
.tp-actions button,
.tp-actions a,
.tp-contact-actions button,
.tp-contact-actions a {
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary {
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-1px);
}

/* Duplicate removed - see line 545 for primary .tp-stat styling */

/* Duplicate removed - see line 563 for primary .tp-stat-num styling */

/* Professional timeline with enhanced visuals */
.tp-timeline-item {
  transition: all 0.2s ease;
  padding-left: 28px;
}

.tp-timeline-item:hover {
  transform: translateX(4px);
}

.tp-timeline-item:hover .tp-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.tp-dot {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tp-role {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.tp-company {
  font-weight: 500;
  color: #64748b;
}

/* Enhanced skill pills with professional hover */
.tp-pill {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-pill:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.tp-pill-cert {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
  color: #166534;
}

.tp-pill-cert:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #86efac;
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.15);
}

/* Enhanced mastery bars with professional glow */
.tp-mastery {
  background: #fafafa;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.tp-mastery:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

.tp-mastery-skill {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.tp-bar {
  background: #e5e7eb;
  box-shadow: none;
}

.tp-bar-fill {
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
  box-shadow: none;
  position: relative;
}

.tp-bar-fill::after {
  display: none;
}

/* Professional badge enhancements */
.tp-badge {
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tp-badge-score {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border-color: #bfdbfe;
}

.tp-badge-reco {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-color: #86efac;
}

/* Page header and title styles defined in primary section above */

/* Professional back button */
.tp-back-link {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 10px 16px !important;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.tp-back-link:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateX(-4px);
}

/* Enhanced contact reveal section */
.tp-contact-reveal {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tp-contact-row {
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
}

.tp-contact-row:last-child {
  border-bottom: none;
}

.tp-contact-label {
  font-weight: 600;
  color: #475569;
  font-size: 14px;
}

.tp-contact-val {
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
}

.tp-contact-val:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Professional header card enhancement */
.tp-header-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f1f3;
}

/* Professional vote button */
/* Duplicate removed - see line 406 for primary .tp-vote-btn.is-active styling */

/* Smooth page transitions */
.tp-profile-page {
  animation: fadeInPage 0.4s ease;
}

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

/* Professional responsiveness enhancements */
@media (max-width: 560px) {
  .tp-section-title {
    font-size: 16px;
  }

  .tp-stat-num {
    font-size: 24px;
  }

  .tp-score-num {
    font-size: 1.75rem;
  }

  .tp-score {
    padding: 14px 18px;
  }

  /* Mobile button improvements */
  .tp-actions button,
  .tp-actions a,
  .tp-contact-actions button,
  .tp-contact-actions a {
    font-size: 14px;
    padding: 10px 14px;
  }

  .tp-stat-num {
    font-size: 24px;
  }
}

/* Button SVG icon sizing and alignment */
.tp-actions button svg,
.tp-actions a svg,
.tp-contact-actions button svg,
.tp-contact-actions a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Stats grid layout */
.tp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 400px) {
  .tp-stats {
    grid-template-columns: 1fr;
  }
}

/* Enhanced button focus states for accessibility */
.tp-actions button:focus-visible,
.tp-actions a:focus-visible,
.tp-contact-actions button:focus-visible,
.tp-contact-actions a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Disabled button styling */
.tp-actions button:disabled,
.tp-contact-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

