.account-shell {
  align-items: start;
  padding-top: 46px;
  padding-bottom: 46px;
}

.account-card {
  width: min(980px, 100%);
}

.account-top-link {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.account-top-link:hover {
  color: var(--text);
}

.account-login-form {
  margin-top: 22px;
}

.account-portal {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.account-toolbar,
.account-panel,
.account-section,
.account-list-item {
  border: 1px solid rgba(109, 153, 200, 0.32);
  background:
    linear-gradient(180deg, rgba(18, 34, 54, 0.78), rgba(8, 17, 28, 0.9)),
    radial-gradient(circle at 12% 0%, rgba(129, 240, 208, 0.08), transparent 44%);
}

.account-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 18px;
}

.account-email {
  font-size: 1.15rem;
  font-weight: 800;
}

.account-muted,
.account-panel p,
.account-list-meta,
.account-section-copy {
  color: var(--muted);
}

.account-ghost-button,
.account-secondary-action,
.account-danger-button,
.account-payment-action {
  appearance: none;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(7, 14, 24, 0.48);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.account-ghost-button:hover,
.account-secondary-action:hover,
.account-payment-action:hover {
  border-color: rgba(129, 240, 208, 0.38);
}

.account-secondary-action {
  color: #06121c;
  border-color: rgba(129, 240, 208, 0.7);
  background:
    linear-gradient(180deg, rgba(145, 255, 226, 0.96), rgba(92, 219, 199, 0.94));
  box-shadow: 0 0 24px rgba(129, 240, 208, 0.12);
}

.account-danger-button {
  color: #ffd3d3;
  border-color: rgba(255, 118, 118, 0.38);
  background: rgba(100, 24, 31, 0.32);
}

.account-danger-button:hover {
  border-color: rgba(255, 154, 154, 0.68);
}

.account-secondary-action:disabled,
.account-danger-button:disabled,
.account-plan-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.account-section-copy {
  margin: 0 0 14px;
  line-height: 1.55;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-panel {
  min-height: 150px;
  padding: 18px;
  border-radius: 18px;
}

.account-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.account-panel strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
}

.account-panel p {
  margin: 10px 0 0;
  line-height: 1.55;
}

.account-section {
  padding: 18px;
  border-radius: 20px;
}

.account-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.account-section-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.account-pill {
  display: inline-flex;
  min-width: 30px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(129, 240, 208, 0.28);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(129, 240, 208, 0.08);
  font-weight: 800;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
}

.account-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.account-list-title {
  font-weight: 800;
}

.account-list-meta {
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.account-status {
  padding: 6px 9px;
  border: 1px solid rgba(129, 240, 208, 0.24);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(129, 240, 208, 0.07);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-trial-section {
  border-color: rgba(255, 178, 31, 0.36);
  background:
    linear-gradient(180deg, rgba(30, 39, 45, 0.84), rgba(8, 17, 28, 0.91)),
    radial-gradient(circle at 18% 0%, rgba(255, 178, 31, 0.16), transparent 46%);
}

.account-trial-layout {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.account-trial-layout .account-section-copy {
  margin-bottom: 0;
}

.account-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-plan-button {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(109, 153, 200, 0.34);
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(18, 34, 54, 0.82), rgba(7, 14, 24, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(255, 178, 31, 0.16), transparent 42%);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.account-plan-button::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 13px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 178, 31, 0.85), transparent);
  opacity: 0.72;
}

.account-plan-button::after {
  content: "";
  position: absolute;
  inset: auto 18px 12px 18px;
  height: 28px;
  border-radius: 999px;
  background: rgba(129, 240, 208, 0.06);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.account-plan-title,
.account-plan-price,
.account-plan-cta {
  position: relative;
  z-index: 1;
  display: block;
}

.account-plan-title {
  color: var(--brand);
  font-size: 1.08rem;
}

.account-plan-price {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-plan-cta {
  width: fit-content;
  margin-top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #06121c;
  background:
    linear-gradient(180deg, rgba(145, 255, 226, 0.96), rgba(92, 219, 199, 0.94));
  font-size: 0.88rem;
  font-weight: 900;
}

.account-plan-button:hover {
  border-color: var(--brand);
  box-shadow: 0 0 34px rgba(129, 240, 208, 0.1);
  transform: translateY(-1px);
}

.account-plan-button:hover::after {
  opacity: 1;
}

.account-empty {
  padding: 16px;
  border: 1px dashed rgba(109, 153, 200, 0.34);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(7, 14, 24, 0.38);
}

@media (max-width: 760px) {
  .account-summary-grid,
  .account-plan-grid {
    grid-template-columns: 1fr;
  }

  .account-list-item,
  .account-toolbar {
    grid-template-columns: 1fr;
  }

  .account-list-actions {
    justify-content: flex-start;
  }

  .account-trial-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .account-toolbar {
    align-items: stretch;
  }
}
