:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --yellow: #7c3aed;
  --ink: var(--dark-color);
  --muted: #6b7280;
  --soft: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --card-radius: 32px;
}

body.profile-page {
  --title-font-family: var(--display-font-family, 'Poppins', 'Inter', sans-serif);
  min-height: 100vh;
  margin: 0;
  background: var(--section-bg-color);
  color: var(--p-color);
  font-family: var(--body-font-family);
  padding: 0;
}

.profile-page {
  --title-font-family: var(--display-font-family, 'Poppins', 'Inter', sans-serif);
  margin: 0;
  color: var(--p-color);
  font-family: var(--body-font-family);
  padding: 0;
  background: transparent;
}

.profile-shell {
  width: min(1164px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.profile-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.profile-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.profile-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(107, 52, 196, 0.16);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.profile-nav-link:hover,
.profile-nav-link:focus-visible {
  background: rgba(107, 52, 196, 0.08);
  border-color: rgba(107, 52, 196, 0.3);
  outline: none;
}

.profile-nav-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.profile-nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.profile-nav-logo {
  display: inline-flex;
  align-items: center;
}

.profile-nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.profile-card {
  background: var(--soft);
  border-radius: var(--card-radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  animation: fadeIn 0.4s ease;
}

.profile-settings-hero-card {
  padding: 96px 42px 36px;
}

.profile-settings-hero-top {
  align-items: center;
}

.profile-settings-greeting {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--p-color);
}

.profile-settings-hello {
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: #6b7280;
}

.profile-settings-name {
  font-weight: var(--font-weight-bold);
  color: var(--dark-color);
  font-size: 18px;
}

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

.profile-action-btn-ghost {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: none;
}

.profile-action-btn-ghost:hover {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: none;
  transform: translateY(-1px);
}

.profile-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.profile-settings-avatar-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  font-size: 16px;
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.profile-settings-avatar-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.2);
  transform: translateY(-1px);
}

.profile-settings-page .profile-avatar-wrap.is-loading::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 0;
  border-radius: 999px;
  border: 4px solid var(--white-color);
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.9), rgba(248, 250, 252, 0.85), rgba(226, 232, 240, 0.9));
  background-size: 200% 100%;
  animation: tool-skeleton 1.4s ease infinite;
  pointer-events: none;
}

.profile-settings-page .profile-avatar-wrap.is-loading .profile-avatar {
  opacity: 0;
}

.profile-settings-page .profile-avatar {
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.profile-settings-panel {
  padding: 8px 0 24px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.profile-settings-panel-head {
  margin-bottom: 16px;
}

.cover-card {
  padding: 32px 18px 18px;
}

.profile-header-card .avatar-row {
  margin-top: 12px;
  padding-top: 0;
}

.cover-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hello-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-top: 12px;
}

.hello-name {
  font-weight: 900;
  font-size: 20px;
  color: var(--purple-dark);
}

.cover-photo {
  position: relative;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(107, 52, 196, 0.14), rgba(255, 211, 53, 0.3));
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pill-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(107, 52, 196, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--purple);
  padding: 5px 9px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.07);
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: -40px;
  padding: 0 6px 4px;
}

.centered-avatar {
  justify-content: center;
}

.avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.avatar-wrap img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  background: #fff;
}

.circle-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--purple);
  background: #fff;
  color: var(--purple);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.identity h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.info-card {
  padding-top: 32px;
}

.info-card h2,
.profile-card h2 {
  margin: 6px 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.stack {
  display: grid;
  gap: 10px;
}

.block {
  padding: 16px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(107, 52, 196, 0.12);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.profile-settings-panel .stack > .block {
  width: 100%;
}

.block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 800;
  font-size: 12px;
  margin: 0 0 4px;
}

.small {
  font-size: 14px;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--dark-color);
}

.field input {
  border: 1px solid rgba(107, 52, 196, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
  color: var(--dark-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  border: 1px solid rgba(107, 52, 196, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
  color: var(--dark-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
  min-height: 90px;
}

.field input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.field input:disabled,
.field textarea:disabled {
  background: #f2f0ff;
  color: rgba(15, 23, 42, 0.6);
  cursor: not-allowed;
  border-color: rgba(107, 52, 196, 0.2);
  box-shadow: none;
}

.field-help {
  min-height: 16px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(90, 96, 112, 0.3);
  transition: background 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.switch input:checked + .slider {
  background: var(--purple);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.field.error input,
.field.error textarea {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18);
}

.field.error .field-help {
  color: #b91c1c;
}

.inline-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.inline-status.success {
  color: #15803d;
}

.inline-status.error {
  color: #b91c1c;
}

.btn-primary,
.btn-ghost,
.btn-danger,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
  border: 1px solid transparent;
  padding: 9px 16px;
  font-size: 14px;
}

.btn-ghost {
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-danger {
  background: #f43f5e;
  color: #fff;
  border: 2px solid transparent;
}

.text-btn {
  background: transparent;
  color: #7c3aed;
  padding: 6px 10px;
}

.btn-primary:disabled,
.btn-ghost:disabled,
.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #6d28d9;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.3);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(124, 58, 237, 0.2);
}

.btn-danger:hover {
  transform: translateY(-1px);
  background: #e11d48;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.3);
}

.text-btn:hover {
  color: #5b21b6;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: transparent;
  color: #5b21b6;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.15);
}

.password-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
  gap: 8px;
  padding-right: 10px;
}

.block-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.block-actions.left {
  justify-content: flex-start;
}

.btn-google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 15px;
  background: #fff;
  color: #2c1b4a;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google-login::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("https://www.gstatic.com/images/branding/googleg/1x/googleg_standard_color_128dp.png") center/contain no-repeat;
}

.btn-google-login:hover {
  border-color: #d1d5db;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.reauth-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pill-row {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
  width: auto;
  max-width: 360px;
  min-width: 240px;
}

.pill-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pill-indicator-w, 0px);
  height: var(--pill-indicator-h, 0px);
  transform: translate(var(--pill-indicator-x, 0px), var(--pill-indicator-y, 0px));
  background: #7c3aed;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.2);
  opacity: 0;
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  z-index: 0;
  pointer-events: none;
}

.pill-row.is-animated::before {
  opacity: 1;
}

.pill {
  border: 1px solid transparent;
  background: transparent;
  color: var(--p-color);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 1;
}

.pill.is-active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.2);
}

.pill-row.is-animated .pill.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.email-pill-row {
  margin: 0 auto;
  justify-content: center;
}

.label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  font-weight: 800;
}

.info-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(107, 52, 196, 0.08);
  border: 1px dashed rgba(107, 52, 196, 0.35);
}

.badge-soft {
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(107, 52, 196, 0.12);
  color: var(--purple);
  font-weight: 800;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.password-tabs {
  display: inline-flex;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--p-color);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn.active {
  background: #7c3aed;
  color: #ffffff;
}

.tab-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.password-pane {
  display: none;
}

.password-pane.active {
  display: grid;
}

#passwordBlock[data-password-mode="change"] #passwordNoneForm,
#passwordBlock[data-password-mode="change"] #saveCreatePasswordBtn {
  display: none !important;
}

#passwordBlock[data-password-mode="create"] #passwordHasForm,
#passwordBlock[data-password-mode="create"] #savePasswordBtn {
  display: none !important;
}

.password-actions button {
  display: none;
}

.password-actions button.active {
  display: inline-flex;
}

@media (max-width: 720px) {
  .password-actions {
    justify-content: stretch;
    }
  .password-actions button {
    width: 100%;
  }
}

.library-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subscription-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.metric {
  display: grid;
  gap: 6px;
}

.metric strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark-color);
}

.danger-card {
  border: 2px solid rgba(244, 63, 94, 0.2);
  background: rgba(244, 63, 94, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 100;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(620px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(107, 52, 196, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.modal-card.danger {
  border-color: rgba(244, 63, 94, 0.35);
}

.cover-picker-body {
  display: grid;
  gap: 16px;
  max-height: calc(90vh - 220px);
  overflow: auto;
  padding-right: 4px;
}

.cover-section {
  display: grid;
  gap: 10px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cover-option {
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cover-option img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.cover-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.cover-option.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 52, 196, 0.2);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.icon-btn {
  border: none;
  background: transparent;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
}

.cropper-area {
  margin: 12px 0;
  display: grid;
  gap: 12px;
  max-height: calc(90vh - 200px);
  overflow: auto;
}

.cropper-frame {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(107, 52, 196, 0.2);
  position: relative;
}

.cropper-frame img {
  display: block;
  max-width: 100%;
}

.avatar-frame {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.avatar-frame::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 900px rgba(0, 0, 0, 0.35);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.modal-card.avatar-crop .avatar-frame {
  display: block;
}

.toast-stack {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 120;
}

.toast {
  background: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(107, 52, 196, 0.2);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  font-weight: 800;
  color: var(--ink);
}

.toast.success {
  border-color: rgba(21, 128, 61, 0.3);
}

.toast.error {
  border-color: rgba(185, 28, 28, 0.3);
}

.warning-callout {
  padding: 12px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.text-btn:hover {
  transform: translateY(-1px);
}

.text-btn:disabled {
  opacity: 0.6;
  transform: none;
}

body.dark-mode.profile-page {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .profile-page {
  color: #e2e8f0;
}

body.dark-mode.profile-page .profile-nav,
body.dark-mode.profile-page .profile-card,
body.dark-mode.profile-page .block,
body.dark-mode.profile-page .profile-panel,
body.dark-mode.profile-page .profile-settings-panel,
body.dark-mode.profile-page .modal-card,
body.dark-mode .profile-page .profile-nav,
body.dark-mode .profile-page .profile-card,
body.dark-mode .profile-page .block,
body.dark-mode .profile-page .profile-panel,
body.dark-mode .profile-page .profile-settings-panel,
body.dark-mode .profile-page .modal-card {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode.profile-page .profile-nav-link,
body.dark-mode.profile-page .hello-name,
body.dark-mode.profile-page .metric strong,
body.dark-mode.profile-page .profile-panel-title,
body.dark-mode.profile-page .profile-settings-name,
body.dark-mode .profile-page .profile-nav-link,
body.dark-mode .profile-page .hello-name,
body.dark-mode .profile-page .metric strong,
body.dark-mode .profile-page .profile-panel-title,
body.dark-mode .profile-page .profile-settings-name {
  color: #f8fafc;
}

body.dark-mode.profile-page .muted,
body.dark-mode.profile-page .label,
body.dark-mode.profile-page .small,
body.dark-mode.profile-page .profile-settings-hello,
body.dark-mode .profile-page .muted,
body.dark-mode .profile-page .label,
body.dark-mode .profile-page .small,
body.dark-mode .profile-page .profile-settings-hello {
  color: #cbd5f5;
}

body.dark-mode.profile-page .field input,
body.dark-mode.profile-page .field textarea,
body.dark-mode .profile-page .field input,
body.dark-mode .profile-page .field textarea {
  background: #111827;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.4);
}

body.dark-mode.profile-page .pill-row,
body.dark-mode.profile-page .password-tabs,
body.dark-mode .profile-page .pill-row,
body.dark-mode .profile-page .password-tabs {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode.profile-page .pill,
body.dark-mode .profile-page .pill {
  color: #cbd5f5;
}

body.dark-mode.profile-page .pill.is-active,
body.dark-mode .profile-page .pill.is-active {
  color: #ffffff;
}

body.dark-mode.profile-page .profile-action-btn-ghost,
body.dark-mode .profile-page .profile-action-btn-ghost {
  background: rgba(124, 58, 237, 0.2);
  color: #e2e8f0;
  border-color: rgba(124, 58, 237, 0.35);
}

body.dark-mode.profile-page .profile-settings-avatar-btn,
body.dark-mode .profile-page .profile-settings-avatar-btn {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(124, 58, 237, 0.4);
  color: #e9d5ff;
}

body.dark-mode.profile-page .profile-avatar-wrap.is-loading::after,
body.dark-mode .profile-page .profile-avatar-wrap.is-loading::after {
  background: linear-gradient(90deg, rgba(36, 30, 56, 0.9), rgba(66, 56, 92, 0.7), rgba(36, 30, 56, 0.9));
  background-size: 200% 100%;
}

body.dark-mode.profile-page .btn-outline,
body.dark-mode .profile-page .btn-outline {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

body.dark-mode.profile-page .cover-option,
body.dark-mode .profile-page .cover-option {
  background: #0f172a;
}

@media (max-width: 900px) {
  .profile-settings-hero-card {
    padding: 86px 28px 28px;
  }
}

@media (max-width: 720px) {
  .profile-settings-hero-card {
    padding: 80px 20px 24px;
  }
  .profile-settings-actions {
    justify-content: center;
    width: 100%;
  }
  .profile-settings-greeting {
    justify-content: center;
    width: 100%;
  }
  .profile-settings-panel {
    padding: 22px;
  }
  .button-row {
    flex-direction: column;
  }
  .library-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
