/* PROFILE */
.profile-shell {
  max-width: 1080px;
  margin: 40px auto;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.profile-shell--wide {
  max-width: 1320px;
  padding: 34px;
}

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

.profile-hero__content h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
}

.profile-hero__content p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

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

.profile-summary-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.profile-summary-label {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.profile-summary-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.profile-global-alert {
  margin-bottom: 20px;
}

.profile-panels,
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.profile-main,
.profile-side {
  display: grid;
  gap: 18px;
}

.profile-panel {
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.profile-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
}

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

.profile-panel__head h2 {
  margin: 0 0 10px;
}

.profile-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.profile-panel--highlight {
  background:
    radial-gradient(circle at top right, rgba(139, 93, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.profile-panel--accent {
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.profile-panel--security {
  background:
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.profile-panel-danger {
  border: 1px solid rgba(255, 79, 183, 0.16);
}

.profile-content-grid {
  display: grid;
  gap: 26px;
}

.profile-delete-block {
  max-width: 520px;
  margin: 8px auto 0;
  width: 100%;
}

.profile-panel-danger--standalone {
  border: 1px solid rgba(255, 79, 183, 0.22);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(255, 79, 183, 0.08);
}

.profile-panel .contact-form {
  margin-top: 12px;
}

.contact-form .form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(7, 10, 20, 0.72);
  color: #ffffff;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form .form-field select:focus {
  outline: none;
  border-color: rgba(151, 104, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(151, 104, 255, 0.14),
    0 0 24px rgba(77, 163, 255, 0.10);
  background: rgba(10, 14, 26, 0.9);
}

@media (max-width: 768px) {

  .profile-shell {
    margin: 20px auto;
    padding: 18px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-summary-card {
    padding: 14px;
  }

  .profile-summary-value {
    font-size: 16px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    padding: 16px;
  }

  .profile-panel h2 {
    font-size: 18px;
  }
}