/* Client cabinet — Maria Merz (dark system) */

.account-page {
  position: relative;
  padding-bottom: 96px;
  min-height: calc(100vh - var(--header-h, 72px));
}

.account-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(52vh, 520px);
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(196, 165, 116, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 8%, rgba(255, 255, 255, 0.04), transparent 55%);
  z-index: 0;
}

.account-page > * {
  position: relative;
  z-index: 1;
}

.account-hero[hidden],
.account-banner[hidden],
html[data-account-mode="shell"] .account-hero,
html[data-account-mode="frozen"] .account-hero {
  display: none !important;
}

.account-frozen {
  margin-top: calc(var(--header-h) + 48px);
  max-width: 520px;
}

.account-frozen__card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(196, 165, 116, 0.08), transparent 55%);
}

.account-frozen__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-frozen h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
}

.account-frozen__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--white-mute);
}

.account-frozen__form {
  display: grid;
  gap: 14px;
}

.account-frozen__form label {
  display: grid;
  gap: 6px;
}

.account-frozen__form label span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-frozen__form input,
.account-frozen__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
}

.account-frozen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.account-modal[hidden] {
  display: none !important;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.account-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.account-modal__card {
  position: relative;
  width: min(100%, 440px);
  padding: 28px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(165deg, rgba(196, 165, 116, 0.1), transparent 45%),
    #0c0c0c;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: account-modal-in 0.35s ease-out;
}

@keyframes account-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.account-modal__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-modal__card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.account-modal__text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--white-mute);
}

.account-modal__terms {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: rgba(196, 165, 116, 0.07);
  font-size: 13px;
  line-height: 1.55;
  color: var(--white);
}

.account-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

body.account-modal-open {
  overflow: hidden;
}

.account-banner {
  padding: calc(var(--header-h) + 16px) 0 0;
}

.account-banner .wrap {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 55%);
}

.account-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--white-mute);
}

.account-banner strong {
  color: var(--white);
  font-weight: 500;
}

.account-banner__links {
  margin-top: 8px !important;
}

.account-banner__links a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-hero {
  padding: calc(var(--header-h) + 56px) 0 36px;
}

.account-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.account-hero__lede {
  max-width: 32rem;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--white-mute);
}

.account-demo-note {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--white-mute);
  line-height: 1.5;
}

.account-demo-note strong {
  color: var(--white);
  font-weight: 500;
}

/* Login */

.account-login {
  max-width: 420px;
  margin: 8px auto 0;
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), transparent 55%);
}

.account-login h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.account-login__hint {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-mute);
}

.account-login .form label {
  display: block;
  margin-bottom: 16px;
}

.account-login .form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-login .form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 15px;
}

.account-login .form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
}

.account-login__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.account-auth-stack {
  margin-bottom: 28px;
}

.btn.account-auth-tg,
.account-auth-tg {
  --tg-blue: #229ed9;
  --tg-blue-hover: #1b8fc6;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: var(--tg-blue) !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn.account-auth-tg:hover,
.btn.account-auth-tg:focus-visible,
.account-auth-tg:hover,
.account-auth-tg:focus-visible {
  background: var(--tg-blue-hover) !important;
  color: #fff !important;
}

.btn.account-auth-tg:disabled,
.account-auth-tg:disabled {
  opacity: 0.65;
}

.account-auth-tg__icon {
  flex: 0 0 auto;
  display: block;
}

.account-login__hint--bot {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.account-login__hint--bot a {
  color: #7ec8ea;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-tg-widget {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 0;
}

.account-login__msg {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.account-login__msg--error {
  color: #f0b4b4;
  padding: 10px 12px;
  border: 1px solid rgba(240, 180, 180, 0.45);
  background: rgba(240, 100, 100, 0.1);
}

.account-login__msg--error:not([hidden]) {
  animation: account-error-in 0.35s ease-out;
}

@keyframes account-error-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.account-login__msg--info {
  color: var(--white-dim, rgba(255, 255, 255, 0.72));
}

.account-login__msg--info a {
  color: var(--link, #6eb6ff);
  text-decoration: underline;
}

.account-consents.is-invalid {
  outline: 1px solid rgba(240, 180, 180, 0.55);
  outline-offset: 6px;
}

.account-consents.is-shake {
  animation: account-consents-shake 0.45s ease-in-out;
}

@keyframes account-consents-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.account-consents .consent-check.is-invalid {
  color: #f0b4b4;
}

.account-login__hint--tight {
  margin: 12px 0 0;
  font-size: 12px;
}

.account-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--white-mute);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-auth-divider::before,
.account-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.account-consents {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.account-consents legend {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-consents .consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--white-mute);
}

.account-consents .consent-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.account-consents .consent-check a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-consents .form-consent-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--white-mute);
}

.account-consents .form-consent-note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-login-legacy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.account-login-legacy summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-mute);
  list-style: none;
}

.account-login-legacy summary::-webkit-details-marker {
  display: none;
}

.account-login-legacy[open] summary {
  margin-bottom: 16px;
  color: var(--white);
}

.account-login__preview-cta {
  margin: 28px 0 0;
  font-size: 13px;
}

.account-login__preview-cta a {
  color: var(--white-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-login__preview-cta a:hover {
  color: var(--white);
}

.account-otp {
  margin-top: 8px;
}

.account-otp[hidden] {
  display: none !important;
}

.account-plan-card {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.account-plan-card__label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-plan-card h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.account-lesson-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--white-mute);
}

/* Shell */

.account-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px 56px;
  margin-top: calc(var(--header-h) + 40px);
  padding-bottom: 24px;
  align-items: start;
}

html[data-account-mode="shell"] .account-shell {
  animation: account-shell-in 0.45s ease-out;
}

@keyframes account-shell-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 8px 0;
}

.account-nav button {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-left: 1px solid transparent;
  background: none;
  color: var(--white-mute);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.account-nav button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.account-nav button.is-on {
  color: var(--white);
  border-left-color: rgba(196, 165, 116, 0.85);
  background: linear-gradient(90deg, rgba(196, 165, 116, 0.1), transparent 70%);
}

.account-nav__out {
  margin-top: 20px;
  padding: 14px 14px 11px;
  border-top: 1px solid var(--line);
  border-left: 1px solid transparent;
  color: var(--white-mute);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.account-nav__out:hover {
  color: var(--white);
}

.account-panel[hidden] {
  display: none !important;
}

.account-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.account-panel__head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.account-panel__head p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--white-mute);
  max-width: 36rem;
  line-height: 1.55;
}

/* Overview */

.account-greet {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.account-greet__row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-greet h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.8vw, 34px);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.account-greet p {
  margin: 0;
  color: var(--white-mute);
  font-size: 14px;
  line-height: 1.6;
}

.account-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.account-avatar--sm {
  width: 56px;
  height: 56px;
}

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

.account-avatar span {
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--white-mute);
  text-transform: uppercase;
}

.account-avatar--sm span {
  font-size: 18px;
}

.account-avatar-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.account-avatar-upload {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.account-avatar-block__actions .btn {
  padding: 8px 12px;
  font-size: 11px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 44px;
}

.account-stats article {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 70%);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.account-stats article:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(160deg, rgba(196, 165, 116, 0.08), transparent 75%);
}

.account-stats .num {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.account-stats span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-stats .account-stat-hint {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.38);
}

.account-recent h3 {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-mute);
  font-weight: 400;
}

/* Lists */

.account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.account-list > li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.account-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: start;
}

.account-row__id {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-row__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 400;
}

.account-row__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--white-mute);
}

.account-row__side {
  text-align: right;
}

.account-row__price {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.account-status {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

.account-status.is-paid,
.account-status.is-done {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.account-status.is-lead,
.account-status.is-new {
  color: var(--white-mute);
}

.account-items {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--white-mute);
}

.account-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.account-empty {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.account-empty p {
  margin: 0 0 20px;
  color: var(--white-mute);
  line-height: 1.6;
  max-width: 28rem;
}

/* Profile */

.account-profile {
  max-width: 820px;
}

.account-profile-head {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 32px;
}

.account-profile-head__identity {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.account-profile-head__fields {
  display: grid;
  gap: 12px;
}

.account-profile-head__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-profile__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--white-mute);
}

.account-profile__id {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--white-mute);
}

.account-achievements {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.account-achievements__label {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-achievements__soon {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
}

.account-profile-form {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.account-profile-form label {
  display: grid;
  gap: 6px;
}

.account-profile-form label span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-profile-form input[type="text"],
.account-profile-form input[type="tel"],
.account-profile-form input[type="email"],
.account-profile-form input:not([type]) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
}

.account-profile-form h4 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.account-profile__msg {
  margin: 0;
  font-size: 13px;
  color: var(--white-mute);
}

.account-profile__msg.is-ok {
  color: #8fbf8f;
}

.account-profile__msg.is-error {
  color: #c45c5c;
}

.account-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c45c5c;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  vertical-align: middle;
}

.account-card--click {
  cursor: pointer;
}

.account-card--click:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.account-status--new {
  color: #8fbf8f;
  border-color: rgba(143, 191, 143, 0.45);
}

.account-support-chat-head {
  margin: 12px 0 16px;
}

.account-support-chat-head h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 500;
}

.account-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 48vh;
  overflow: auto;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
}

.account-chat-bubble {
  max-width: 92%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  white-space: pre-wrap;
}

.account-chat-bubble.is-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
}

.account-chat-bubble.is-out {
  align-self: flex-end;
  background: rgba(180, 210, 180, 0.08);
}

.account-chat-bubble__meta {
  font-size: 11px;
  color: var(--white-mute);
  margin-bottom: 4px;
}

.account-support-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 0 0 28px;
}

.account-support-form label {
  display: grid;
  gap: 6px;
}

.account-support-form label span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-support-form input,
.account-support-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font: inherit;
}

.account-support-form textarea {
  resize: vertical;
  min-height: 120px;
}

.account-support-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.account-support-form__actions .account-meta.is-ok {
  color: #8fbf8f;
}

.account-support-form__actions .account-meta.is-error {
  color: #c45c5c;
}

.account-support-history {
  margin: 8px 0 12px;
  font-size: 15px;
  font-weight: 500;
}

.account-support-msg {
  white-space: pre-wrap;
  color: var(--white-mute);
}

@media (max-width: 720px) {
  .account-profile-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-profile-head__identity {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    align-items: center;
  }

  .account-profile-head__identity .account-avatar {
    grid-row: span 2;
  }

  .account-achievements {
    grid-column: 1 / -1;
  }

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

.account-addresses {
  margin: 8px 0 40px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.account-addresses h3 {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.account-address-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.account-address-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.account-address-item p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--white-mute);
}

.account-linkish {
  border: 0;
  background: none;
  color: var(--white-mute);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
}

@media (max-width: 860px) {
  .account-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .account-nav button {
    width: auto;
    border-left: 0;
    border-bottom: 1px solid transparent;
    padding: 8px 0;
    background: none;
  }

  .account-nav button.is-on {
    border-left: 0;
    border-bottom-color: rgba(196, 165, 116, 0.9);
    background: none;
  }

  .account-nav__out {
    margin-top: 0;
    padding: 8px 0;
    border-top: 0;
    width: 100%;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-row {
    grid-template-columns: 1fr;
  }

  .account-row__side {
    text-align: left;
  }

  .account-profile dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.account-danger {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.account-danger h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
}

.account-danger p {
  margin: 0 0 18px;
  color: var(--white-mute);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36rem;
}

.btn-danger-mute {
  background: transparent;
  color: #c97a7a;
  border: 1px solid rgba(201, 122, 122, 0.45);
}

.btn-danger-mute:hover {
  color: #e8a0a0;
  border-color: rgba(201, 122, 122, 0.75);
  background: rgba(201, 122, 122, 0.08);
}

.account-modal__card.is-danger .account-modal__terms {
  border-color: rgba(201, 122, 122, 0.4);
  background: rgba(201, 122, 122, 0.07);
}

.account-modal__confirm.is-danger {
  background: transparent;
  color: #c97a7a;
  border: 1px solid rgba(201, 122, 122, 0.55);
}

.account-modal__confirm.is-danger:hover {
  color: #e8a0a0;
  border-color: rgba(201, 122, 122, 0.85);
  background: rgba(201, 122, 122, 0.1);
}

.account-card__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.account-status {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-mute);
}

.account-status.is-awaiting {
  color: #c4a574;
  border-color: rgba(196, 165, 116, 0.45);
}

.account-status.is-refunded,
.account-status.is-cancelled {
  opacity: 0.7;
}

.account-hold {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--white);
}

.account-hold--mute {
  color: var(--white-mute);
}

.account-hold__time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.account-hold__time.is-expired {
  color: #c97a7a;
}

.account-refund {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-refund label {
  display: block;
  font-size: 13px;
  color: var(--white-mute);
}

.account-refund textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font: inherit;
  resize: vertical;
  min-height: 72px;
}

.account-refund-status {
  color: #c4a574;
}

.account-order-items {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.account-order-item__link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.account-order-item__link:hover .account-order-item__title {
  text-decoration: underline;
}

.account-order-item__img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex: 0 0 48px;
  background: rgba(255, 255, 255, 0.06);
}

.account-order-item__img--empty {
  display: block;
}

.account-order-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.account-order-item__title {
  font-size: 14px;
  line-height: 1.35;
}

.account-order-ship {
  margin-top: 10px;
}

/* Boot gate — hide login flash while session / TG handshake loads */
html[data-account-boot="loading"] [data-account-login] {
  display: none !important;
}

html[data-account-boot="loading"] [data-account-boot-gate] {
  display: flex !important;
}

.account-boot-gate {
  display: none;
  min-height: min(52vh, 420px);
  align-items: center;
  justify-content: center;
  padding: 48px 0 64px;
}

.account-boot-gate[hidden] {
  display: none !important;
}

html[data-account-boot="loading"] .account-boot-gate[hidden] {
  display: flex !important;
}

.account-boot-gate__inner {
  text-align: center;
  max-width: 22rem;
}

.account-boot-gate__mark {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
}

.account-boot-gate__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: account-boot-spin 1.1s linear infinite;
}

.account-boot-gate__core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 65%);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.08);
  animation: account-boot-pulse 1.8s ease-in-out infinite;
}

.account-boot-gate__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
}

.account-boot-gate__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--white-mute);
}

@keyframes account-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes account-boot-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .account-login .form input { font-size: 16px; }
}
