.profil-popup {
  position: fixed;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 92vw);
  background: #141414;
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 18px;
  z-index: 9999;
}

.profil-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profil-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profil-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: #111;
}

.profil-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profil-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.profil-email {
  margin: 0;
  font-size: 0.95rem;
  color: #c7c7c7;
}

.profil-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #9c9c9c;
}

.profil-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffd34d;
}

.stat-label {
  font-size: 0.8rem;
  color: #bdbdbd;
}

.profil-bio {
  margin: 0;
  font-size: 0.95rem;
  color: #d7d7d7;
  line-height: 1.4;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
}

.profil-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.profil-actions .btn-logout,
.profil-actions .btn-close {
  margin-top: 0;
}

.profil-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profil-form label {
  font-size: 0.85rem;
  color: #bdbdbd;
}

.profil-form textarea {
  width: 100%;
  min-height: 80px;
  background: #111;
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  resize: vertical;
}

.profil-form input[type="file"] {
  color: #cfcfcf;
}

.profil-save {
  align-self: flex-start;
  padding: 0.45rem 0.9rem;
  background: #ffd34d;
  color: #111;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.profil-save:hover {
  background: #ffdf6a;
}

@media (max-width: 520px) {
  .profil-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profil-actions {
    width: 100%;
    justify-content: space-between;
  }
}
