.profile-page {
  background:
    radial-gradient(circle at 8% 15%, rgba(124, 58, 237, 0.12), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.12), transparent 22%),
    var(--bg);
}

.profile-main {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.profile-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 20, 38, 0.85);
  box-shadow: 0 30px 70px rgba(3, 5, 15, 0.6);
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.profile-hero {
  display: flex;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex: 0 0 220px;
  align-self: stretch;
  height: 100%;
  padding: 24px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
  background: var(--panel);
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.hint {
  font-size: 12px;
}

.hero-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  height: 100%;
  padding: 10px 10px 10px 0;
}

.hero-details h2 {
  margin: 0;
  font-size: 30px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.soft-pill.accent {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.15);
  color: #e0c3ff;
}

.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 31, 0.92);
  box-shadow: 0 28px 60px rgba(3, 5, 15, 0.5);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h3 {
  margin: 4px 0;
}

.section-head .small {
  font-size: 13px;
  margin: 4px 0 0;
}

.profile-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-grid .field label {
  font-weight: 600;
  color: #e5e7eb;
}

.profile-grid .field input,
.profile-grid .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font-size: 14px;
}

.profile-grid .field select {
  appearance: none;
}

.profile-grid .field .field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}

.input-with-action {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-with-action input {
  flex: 1;
}

.inline-button {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-actions button {
  min-width: 160px;
}

.hidden-input {
  display: none;
}

@media (max-width: 960px) {
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-details {
    align-items: center;
    padding: 18px 0 0;
  }

  .hero-avatar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .profile-grid.two-col,
  .profile-grid.three-col {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    justify-content: center;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.75);
  z-index: 50;
  transition: opacity 0.2s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-panel {
  width: min(420px, 90%);
  border-radius: 18px;
  padding: 28px;
  background: rgba(11, 17, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

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

.modal .status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
