.account-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) 0 clamp(20px, 3vh, 36px);
}

.account-heading {
  margin-bottom: clamp(8px, 2vh, 20px);
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(24, 24, 25, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  animation: pricingIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-card[hidden],
.account-layout[hidden],
.account-loading[hidden],
.account-banner[hidden] {
  display: none;
}

.account-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-empty {
  align-items: center;
  text-align: center;
}

.account-empty h2,
.account-plan-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.account-empty p {
  margin: 0;
  color: #929292;
  font-size: 13px;
}

.account-primary {
  width: auto;
  min-width: 180px;
  margin-top: 6px;
  border-color: #fff;
  background: #fff;
  color: #000;
}

.account-primary:hover {
  background: #fff;
}

.account-banner {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(212, 192, 138, 0.3);
  border-radius: 14px;
  background: rgba(212, 192, 138, 0.08);
  color: #e5d6ac;
  font-size: 13px;
  text-align: center;
}

.account-banner.is-error {
  border-color: rgba(216, 168, 168, 0.3);
  background: rgba(216, 168, 168, 0.08);
  color: #e8b4b4;
}

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

.account-loading span {
  height: 150px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  animation: accountPulse 1.4s ease-in-out infinite alternate;
}

.account-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-plan-head h2 {
  margin-top: 8px;
}

.account-status {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-status.is-active {
  border-color: rgba(48, 209, 88, 0.35);
  color: #7ee29a;
}

.account-status.is-trial {
  border-color: rgba(212, 192, 138, 0.4);
  color: #d4c08a;
}

.account-status.is-warn {
  border-color: rgba(255, 159, 10, 0.4);
  color: #ffb340;
}

.account-price {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.account-remaining,
.account-note {
  margin: 0;
  color: #929292;
  font-size: 13px;
  line-height: 1.5;
}

.account-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.account-facts:empty {
  display: none;
}

.account-facts dt {
  color: #6f6f6f;
}

.account-facts dd {
  margin: 0;
  color: #dcdcdc;
}

.account-key-row,
.account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.account-key-row .license-key {
  font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

.account-secondary {
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e1e1e1;
  font: 600 12px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a.account-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

a.account-secondary [hidden] {
  display: none;
}

.account-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.account-secondary.is-primary {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.account-secondary:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.account-plans {
  display: flex;
  flex-direction: column;
}

.account-plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-plan-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-plan-option div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-plan-option strong {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.account-plan-option span {
  color: #bdbdbd;
  font-size: 13px;
}

.account-plan-option small {
  color: #6f6f6f;
  font-size: 12px;
}

.account-main .pricing-legal {
  margin-top: auto;
  padding-top: 24px;
}

@keyframes accountPulse {
  to {
    opacity: 0.45;
  }
}

@media (max-width: 520px) {
  .account-plan-option {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-card,
  .account-loading span {
    animation: none;
  }
}
