.account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.account-detail {
  padding: 1.2rem;
  border: 1px solid rgb(from var(--line) r g b / 16%);
  background: #0a1516;
  box-shadow: none !important;
}
.account-detail > span,
.account-detail-heading > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #899a95;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.account-detail .display-name-form > span {
  color: var(--validation-text);
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
}
.account-detail strong {
  overflow-wrap: anywhere;
}
.danger-zone {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #8e493d;
  background: #281615;
}
.danger-zone h2 {
  color: #ffb2a3;
  font-family: Cinzel, serif;
  font-size: 1.4rem;
}
.btn-danger-iron {
  border: 1px solid #bd5d4b;
  background: #8d3428;
  color: #fff;
}
.btn-danger-iron:hover {
  background: #a64234;
  color: #fff;
}
.account-deleted-message {
  position: relative;
  z-index: 2;
  margin: 6rem auto -5rem;
  width: min(90%, 720px);
  text-align: center;
}
.account-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.account-edit-link,
.display-name-actions a,
.display-name-actions button {
  border: 0;
  background: transparent;
  color: #869a92;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
}
.account-edit-link:hover,
.display-name-actions a:hover,
.display-name-actions button:hover {
  color: var(--ember);
  text-decoration: underline;
}
.btn-steam {
  border: 1px solid #4b718e;
  background: linear-gradient(135deg, #263f52, #162736);
  color: #fff;
}
.btn-steam:hover {
  border-color: #66a4d2;
  background: linear-gradient(135deg, #31556f, #1b3346);
  color: #fff;
}
.btn-steam span {
  margin-right: 0.4rem;
  color: #66c0f4;
}
.steam-zone {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #31516a;
  background: #0d1b24;
}
.account-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.account-heading > div:first-child > p {
  color: var(--mist);
}
.account-profile {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}
.account-profile-edit {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}
.account-profile-edit:hover,
.account-profile-edit:focus-visible {
  color: var(--ember);
}
.profile-dialog {
  width: min(32rem, calc(100% - 2rem));
  height: min(30rem, calc(100vh - 2rem));
  min-height: 28rem;
  padding: 0;
  border: 1px solid rgb(from var(--white-border) r g b / 28%);
  border-radius: 0.2rem;
  background: #0a1516;
  color: var(--mist);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.72);
  overflow: visible;
  user-select: none;
}
.profile-dialog::backdrop {
  background: rgba(2, 8, 9, 0.82);
  backdrop-filter: blur(3px);
}
.profile-dialog .profile-appearance-form {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: visible;
}
.profile-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.profile-dialog-heading h2 {
  margin: 0.2rem 0 0;
  font-family: Cinzel, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.profile-dialog-close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist);
  font: 1.75rem/1 Arial, sans-serif;
  cursor: pointer;
}
.profile-dialog-close:hover,
.profile-dialog-close:focus-visible {
  color: #fff;
}
.profile-carousel {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: 4rem;
  min-height: 14rem;
  margin: 1.5rem 0 auto;
}
.profile-carousel-content {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 3rem;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.profile-carousel-stage {
  display: grid;
  min-width: 0;
  place-items: center;
}
.profile-carousel-content.has-image .profile-carousel-stage {
  grid-column: 1 / -1;
}
.profile-carousel-stage .profile-icon {
  width: 8rem;
  height: 8rem;
  font-size: 3rem;
}
.profile-carousel-stage .profile-icon img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}
.profile-carousel-control {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid #314a45;
  border-radius: 50%;
  background: #071110;
  color: var(--mist);
  cursor: pointer;
}
.profile-carousel-control:hover,
.profile-carousel-control:focus-visible {
  border-color: var(--copper);
  color: #fff;
}
.profile-carousel-control svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.profile-color-controls {
  display: grid;
  gap: 0.8rem;
  justify-items: end;
  visibility: visible;
}
.profile-color-controls.is-hidden {
  visibility: hidden;
  pointer-events: none;
}
.profile-carousel-content.has-image .profile-color-controls {
  display: none;
}
.profile-color-dropdown {
  position: relative;
}
.profile-color-dropdown summary {
  display: grid;
  grid-template-columns: 1.5rem 1rem;
  align-items: center;
  justify-content: end;
  gap: 0.3rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.2rem;
  border: 0;
  border-radius: 0.2rem;
  background: transparent;
  color: var(--mist);
  font-size: 0.75rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.profile-color-dropdown summary::-webkit-details-marker {
  display: none;
}
.profile-color-dropdown summary > i {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgb(from var(--white-border) r g b / 45%);
  border-radius: 50%;
  background: var(--profile-option-color);
}
.profile-color-dropdown summary > svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.15s ease;
}
.profile-color-dropdown[open] summary > svg {
  transform: rotate(180deg);
}
.profile-color-dropdown summary:hover,
.profile-color-dropdown summary:focus-visible {
  color: #fff;
}
.profile-color-palette {
  position: absolute;
  z-index: 4;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  grid-template-columns: repeat(7, 1.75rem);
  gap: 0.45rem;
  width: max-content;
  padding: 0.75rem;
  border: 1px solid #314a45;
  border-radius: 0.2rem;
  background: #122321;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.65);
}
.profile-color-option {
  position: relative;
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  border-radius: 50%;
  cursor: pointer;
}
.profile-color-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.profile-color-option span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: inherit;
  background: var(--profile-option-color);
  box-shadow: 0 0 0 1px rgb(from var(--white-border) r g b / 28%);
}
.profile-color-option input:checked + span {
  border-color: #fff;
  box-shadow:
    0 0 0 2px #0a1516,
    0 0 0 4px var(--copper);
}
.profile-color-option input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.profile-color-dropdown > span {
  display: block;
  margin-top: 0.5rem;
  color: var(--validation-text);
}
.profile-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.profile-dialog-actions .btn {
  width: 9.5rem;
  padding-right: 3rem;
  padding-left: 3rem;
}
@media (max-width: 480px) {
  .profile-dialog .profile-appearance-form {
    padding: 1rem;
  }
  .profile-dialog-heading h2 {
    font-size: 1.25rem;
  }
  .profile-carousel {
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
    gap: 0.5rem;
    min-height: 12rem;
    margin-top: 1rem;
  }
  .profile-carousel-content {
    grid-template-columns: minmax(6rem, 1fr) 2.25rem;
    gap: 0.25rem;
  }
  .profile-carousel-stage .profile-icon,
  .profile-carousel-stage .profile-icon img {
    width: 6rem;
    height: 6rem;
  }
  .profile-carousel-stage .profile-icon {
    font-size: 2.25rem;
  }
  .profile-carousel-control {
    width: 2.25rem;
    height: 2.25rem;
  }
  .profile-color-controls {
    gap: 0.35rem;
  }
  .profile-color-dropdown summary {
    grid-template-columns: 1.25rem 0.75rem;
    gap: 0.15rem;
    min-height: 2rem;
    padding: 0.25rem 0;
  }
  .profile-color-dropdown summary > i {
    width: 1.25rem;
    height: 1.25rem;
  }
  .profile-color-dropdown summary > svg {
    width: 0.75rem;
    height: 0.75rem;
  }
  .profile-color-palette {
    grid-template-columns: repeat(5, 1.75rem);
  }
  .profile-dialog-actions {
    gap: 0.5rem;
  }
  .profile-dialog-actions .btn {
    width: auto;
    flex: 1;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}
.steam-zone h2 {
  font-family: Cinzel, serif;
  font-size: 1.4rem;
}
.steam-linked {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.steam-profile-link {
  color: #66c0f4;
  font-weight: 700;
}
.steam-profile-link:hover {
  color: #8bd1ff;
}
.steam-account-actions {
  display: flex;
  align-items: center;
  margin-top: 1.25rem;
}
.subscription-zone h2,
.password-zone h2 {
  font-family: Cinzel, serif;
  font-size: 1.4rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 3.25rem;
  height: 1.75rem;
  flex: none;
  cursor: pointer;
}
.switch input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}
.switch-slider {
  position: absolute;
  inset: 0;
  border: 1px solid #48645a;
  border-radius: 2rem;
  background: #263832;
  transition: 0.2s ease;
}
.switch-slider::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.22rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #aab9b2;
  transition: 0.2s ease;
}
.switch input:checked + .switch-slider {
  border-color: #4a9a72;
  background: #24583f;
}
.switch input:checked + .switch-slider::before {
  background: #8ee1b4;
  transform: translateX(1.42rem);
}
.switch input:focus-visible + .switch-slider {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}
.renewal-off {
  display: none;
}
.subscription-renewal:has(.switch input:not(:checked)) .renewal-on {
  display: none;
}
.subscription-renewal:has(.switch input:not(:checked)) .renewal-off {
  display: inline;
}
.password-zone {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgb(from var(--line) r g b / 16%);
  background: #0a1516;
}
.account-security-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.account-security-actions .password-zone,
.account-security-actions .danger-zone {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.account-security-actions .btn {
  align-self: flex-start;
  margin-top: auto;
}
@media (max-width: 767px) {
  .account-details {
    grid-template-columns: 1fr;
  }
  .account-security-actions {
    grid-template-columns: 1fr;
  }
}
.subscription-zone {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #35644f;
  background: #0d241b;
}
.subscription-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid #274c3c;
  background: #274c3c;
}
.subscription-status-item {
  min-width: 0;
  padding: 1rem;
  background: #091a14;
}
.subscription-status-item > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #82988f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.subscription-status strong {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #c9e5d7;
}
.subscription-status .status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
}
.subscription-until {
  text-align: left;
}
.subscription-until strong {
  justify-content: flex-start;
}
.subscription-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}
.subscription-actions .btn {
  border-color: #6e8d80;
}
.subscription-renewal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1px;
  padding: 1rem;
  border: 1px solid #274c3c;
  background: #091a14;
}

.auto-renewal-date {
  display: block;
  margin-top: 0.35rem;
  color: var(--mist);
  font-size: 0.75rem;
}
.subscription-renewal > div > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #82988f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.subscription-renewal strong {
  color: #c9e5d7;
}
@media (max-width: 767px) {
  .subscription-until {
    text-align: left;
  }
}
@media (max-width: 480px) {
  .subscription-status-item {
    padding: 0.75rem;
  }
  .subscription-until strong {
    font-size: 0.875rem;
    white-space: nowrap;
  }
}
.display-name-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #899a95;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.display-name-form input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #314340;
  border-radius: 0.15rem;
  outline: none;
  background: var(--night);
  color: #fff;
  box-shadow: none !important;
}
.display-name-form input:focus {
  border-color: var(--copper);
}
.display-name-form > span {
  display: block;
  margin-top: 0.35rem;
  color: #ff9b86;
  font-size: 0.78rem;
}
.display-name-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.display-name-actions a,
.display-name-actions button {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  margin: 0;
  padding: 0;
  font-family: inherit;
  line-height: 1.4;
  appearance: none;
}
.display-name-actions > a,
.display-name-actions > button {
  font-size: 0.82rem !important;
  text-decoration: none !important;
}
.display-name-actions > a:hover,
.display-name-actions > button:hover {
  color: var(--ember);
  text-decoration: none !important;
}
.private-card {
  max-width: 900px;
  min-height: 480px;
  margin: 10rem auto 5rem;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgb(from var(--line) r g b / 16%);
  background: linear-gradient(145deg, #132a25, #0b1718);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8) !important;
}
.private-card h1 {
  margin: 0.7rem 0;
  font-family: Cinzel, serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
}
.private-card > p {
  color: var(--mist);
}
.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  flex: none;
  border-radius: 50%;
  background: #62d39b;
  box-shadow: 0 0 0 6px rgba(98, 211, 155, 0.12);
}
