body.profile-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #ece2d5 0%, #f4efe8 52%, #efe6d8 100%);
  color: #1f2a5a;
}

.profile-topbar {
  --topbar-progress: 1;
  background: rgba(31, 42, 90, 0.98);
  border-bottom: 1px solid rgba(244, 239, 232, 0.28);
  box-shadow: 0 10px 26px rgba(11, 18, 46, 0.34);
  backdrop-filter: blur(7px);
}

.profile-main {
  width: 100%;
  padding: clamp(124px, 12vw, 158px) clamp(16px, 4vw, 56px) clamp(42px, 7vw, 90px);
}

.profile-shell {
  width: 100%;
}

.profile-greeting {
  margin: 0 0 clamp(24px, 4vw, 42px);
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #1f2a5a;
}

.profile-card {
  width: 100%;
  border-radius: 26px;
  padding: clamp(20px, 3.2vw, 38px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 85% 15%, rgba(31, 42, 90, 0.08), transparent 46%);
  border: 1px solid rgba(31, 42, 90, 0.14);
  box-shadow: 0 22px 38px rgba(26, 31, 56, 0.18);
}

.profile-card h2 {
  margin: 0 0 22px;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(1.5rem, 4.4vw, 2.7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #1f2a5a;
}

.appointment-current {
  display: grid;
  gap: 8px;
}

.profile-item-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 42, 90, 0.7);
}

.profile-item-value {
  margin: 0 0 10px;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  color: #1f2a5a;
  word-break: break-word;
}

.profile-primary-button,
.profile-secondary-button,
.profile-danger-button {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-primary-button {
  justify-self: start;
  min-width: 220px;
  background: #1f2a5a;
  color: #f4efe8;
}

.profile-secondary-button {
  background: transparent;
  border: 1px solid rgba(31, 42, 90, 0.34);
  color: #1f2a5a;
}

.profile-danger-button {
  min-width: 220px;
  background: #b52a2a;
  color: #fff;
}

.profile-primary-button:hover,
.profile-primary-button:focus-visible,
.profile-secondary-button:hover,
.profile-secondary-button:focus-visible,
.profile-danger-button:hover,
.profile-danger-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.profile-primary-button:disabled,
.profile-secondary-button:disabled,
.profile-danger-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.profile-divider {
  border: 0;
  border-top: 1px solid rgba(31, 42, 90, 0.18);
  margin: 24px 0;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-row:last-of-type {
  margin-bottom: 0;
}

.profile-message {
  margin: 10px 0 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(31, 42, 90, 0.86);
}

.profile-message.is-error {
  color: #b31e1e;
}

.profile-message.is-success {
  color: #0f7a3c;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.profile-modal.is-hidden {
  display: none;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 48, 0.6);
}

.profile-modal-dialog {
  position: relative;
  width: min(560px, calc(100% - 28px));
  margin: min(16vh, 110px) auto 0;
  background: #f7f1e8;
  border: 1px solid rgba(31, 42, 90, 0.16);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 40px rgba(11, 18, 46, 0.35);
}

.profile-modal-dialog h3 {
  margin: 0 0 16px;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f2a5a;
}

.profile-modal-form {
  display: grid;
  gap: 12px;
}

.profile-modal-form label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 42, 90, 0.7);
}

.profile-modal-form input {
  width: 100%;
  border: 1px solid rgba(31, 42, 90, 0.3);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: #1f2a5a;
  font-size: 1rem;
  font-family: "Work Sans", "Segoe UI", sans-serif;
}

.profile-modal-form input:focus-visible {
  outline: 2px solid rgba(31, 42, 90, 0.5);
  outline-offset: 1px;
}

.profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .profile-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-secondary-button,
  .profile-primary-button,
  .profile-danger-button {
    width: 100%;
    min-width: 0;
  }

  .profile-modal-actions {
    flex-direction: column;
  }
}
