.profile-page {
  min-height: calc(100vh - 64px);
  margin-left: 200px;
  padding: 112px 28px 40px;
  color: #f8fafc;
  background: #070707;
}

.profile-heading,
.profile-card {
  width: min(100%, 900px);
  margin: 0 auto;
}

.profile-heading {
  margin-bottom: 22px;
}

.profile-eyebrow {
  margin: 0 0 6px;
  color: #e6b200;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-heading h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.profile-heading > p:last-child,
.profile-email,
.profile-hint {
  color: #bfbfbf;
}

.profile-heading > p:last-child {
  margin-top: 8px;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  align-items: center;
  gap: 30px;
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid rgba(230, 178, 0, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, #141414, #0b0b0b);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.profile-photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.profile-photo {
  width: 156px;
  height: 156px;
  border: 3px solid #e6b200;
  border-radius: 50%;
  background: #1c1c1c;
  object-fit: cover;
}

#profilePhotoInput {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.profile-file-button,
.profile-save-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.profile-file-button {
  color: #111;
  background: #e6b200;
}

.profile-file-button:hover,
.profile-save-button:hover:not(:disabled) {
  background: #ffd84d;
}

.profile-photo-column small {
  max-width: 230px;
  color: #aaa;
  line-height: 1.5;
}

.profile-details h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.profile-email {
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.profile-hint {
  max-width: 520px;
  margin: 0 0 20px;
  line-height: 1.6;
}

.profile-save-button {
  color: #111;
  background: #e6b200;
}

.profile-save-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.profile-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #fbbf24;
}

.profile-status[data-state="success"] {
  color: #4ade80;
}

.profile-status[data-state="error"] {
  color: #f87171;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 30px;
  width: min(100%, 900px);
  margin: 22px auto 0;
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #101010;
}

.account-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.account-description {
  margin: 0;
  color: #bfbfbf;
  line-height: 1.6;
}

.account-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.account-form label {
  margin-top: 4px;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 650;
}

.account-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 10px;
  color: #fff;
  background: #080808;
  font: inherit;
}

.account-form input:focus {
  border-color: #e6b200;
  outline: 2px solid rgba(230, 178, 0, 0.2);
}

.account-form .profile-save-button {
  align-self: flex-start;
  margin-top: 8px;
}

.account-link {
  color: #f3cb42;
  line-height: 1.5;
  text-underline-offset: 3px;
}

.account-danger {
  border-color: rgba(248, 113, 113, 0.45);
}

.account-danger .profile-eyebrow,
.account-danger h2 {
  color: #f87171;
}

.account-delete-button {
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid #ef4444;
  border-radius: 12px;
  color: #fff;
  background: #991b1b;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.account-delete-button:hover:not(:disabled) {
  background: #b91c1c;
}

.account-delete-button:disabled,
.account-form .profile-save-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 760px) {
  .profile-page {
    margin-left: 0;
    padding: 92px 16px 30px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .account-card {
    grid-template-columns: 1fr;
  }
}
