.profile-page {
  min-height: calc(90vh - 48px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-shell {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.profile-title {
  font-size: 2rem;
  font-weight: 600;
}

.profile-subtitle {
  margin-top: 8px;
  color: var(--text-soft);
}

.logout-btn {
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.profile-placeholder {
  background: linear-gradient(180deg, #0f1630 0%, #0c1228 100%);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 32px;
}

.profile-placeholder h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.profile-placeholder p {
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .profile-page {
    min-height: auto;
    align-items: stretch;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logout-btn {
    width: 100%;
  }

  .profile-placeholder {
    padding: 24px 18px;
    border-radius: 20px;
  }
}


.profile-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-user-info {
  color: var(--text-soft);
  line-height: 1.6;
}

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

.stat-card {
  background: linear-gradient(180deg, #0f1630 0%, #0c1228 100%);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 20px;
}

.stat-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 600;
}

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



.chart-card {
  margin-top: 24px;
  background: linear-gradient(180deg, #0f1630 0%, #0c1228 100%);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 20px;
}

.chart-card-header {
  margin-bottom: 16px;
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.chart-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

.empty-chart-text {
  color: var(--text-soft);
  font-size: 0.9rem;
}



.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1630 0%, #0c1228 100%);
}

.skill-name {
  text-transform: capitalize;
  color: var(--text-main);
  font-weight: 500;
}

.skill-value {
  color: var(--text-main);
  font-weight: 600;
}


@media (max-width: 900px) {
  .skills-list {
    grid-template-columns: repeat(2, 1fr); 
  }
}


@media (max-width: 600px) {
  .skills-list {
    grid-template-columns: 1fr;
  }
}

#radar-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.radar-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media (max-width: 600px) {
  .radar-svg {
    max-width: 300px;
  }
}

.logout-btn.loading {
  opacity: 0.7;
}

.logout-btn.loading::after {
   content: "..."; 
  margin-left: 8px;
}

.chart-label {
  max-width: 80px;       
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}