/* ============================================================
   Trend is My Friend — Account/User Panel
   Clear subscription control center opened from the User badge.
   ============================================================ */

.account-panel-open {
  overflow: hidden;
}

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

.account-panel-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: 58px 24px 24px;
}

.account-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.account-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(820px, calc(100vh - 82px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  color: var(--soft);
  background:
    radial-gradient(circle at 18% 0%, rgba(110, 231, 167, 0.11), transparent 38%),
    radial-gradient(circle at 86% 8%, rgba(240, 201, 107, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(18, 27, 47, 0.985), rgba(8, 13, 25, 0.97));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.account-panel-close {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.account-panel-close:hover {
  border-color: rgba(240, 201, 107, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.account-panel-body {
  padding: 30px;
}

.account-panel-card {
  display: grid;
  gap: 18px;
}

.account-panel-notice {
  display: grid;
  gap: 3px;
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.account-panel-notice strong {
  color: var(--ink);
  font-weight: 950;
}

.account-panel-notice-good {
  border-color: rgba(110, 231, 167, 0.32);
  background: rgba(110, 231, 167, 0.085);
}

.account-panel-notice-soft {
  border-color: rgba(240, 201, 107, 0.26);
  background: rgba(240, 201, 107, 0.075);
}

.account-panel-notice-bad {
  border-color: rgba(255, 139, 139, 0.34);
  background: rgba(255, 139, 139, 0.08);
}

.account-section {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.account-section-soft {
  border-color: rgba(240, 201, 107, 0.20);
  background: rgba(240, 201, 107, 0.055);
}

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

.account-kicker,
.account-section-title {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.account-panel-card h2,
.account-section h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.account-panel-card h2 {
  font-size: clamp(30px, 6vw, 42px);
}

.account-section h3 {
  font-size: 18px;
}

.account-lede,
.account-section-copy,
.account-section p,
.account-user-head p {
  margin: 0;
  color: #d7e0ef;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 760;
}

.account-muted {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px !important;
  line-height: 1.45;
  font-weight: 760;
}

.account-user-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.account-avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  overflow: hidden;
  color: #08111f;
  background: linear-gradient(180deg, #ffd36e, #dfa93c);
  box-shadow: 0 14px 28px rgba(240, 201, 107, 0.12);
  font-size: 17px;
  font-weight: 950;
}

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

.account-user-copy {
  min-width: 0;
}

.account-access-card {
  display: grid;
  gap: 4px;
  padding: 16px 17px;
  border-radius: 20px;
}

.account-access-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.025em;
}

.account-access-card span {
  color: #d7e0ef;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.account-access-good {
  border: 1px solid rgba(110, 231, 167, 0.26);
  background: rgba(110, 231, 167, 0.075);
}

.account-access-soft {
  border: 1px solid rgba(240, 201, 107, 0.28);
  background: rgba(240, 201, 107, 0.075);
}

.account-access-bad {
  border: 1px solid rgba(255, 139, 139, 0.32);
  background: rgba(255, 139, 139, 0.075);
}

.account-section-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.account-section-pill-good {
  color: #08111f;
  background: #74e1ad;
}

.account-section-pill-soft {
  color: #121827;
  background: #ffd36e;
}

.account-section-pill-bad {
  color: #2b0f13;
  background: #ff9a9a;
}

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

.account-summary-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.034);
}

.account-summary-cell-wide {
  grid-column: 1 / -1;
}

.account-summary-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-summary-cell strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 940;
  line-height: 1.25;
}

.account-confirm-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 139, 139, 0.30);
  border-radius: 20px;
  background: rgba(255, 139, 139, 0.075);
}

.account-confirm-card h3,
.account-confirm-card p {
  margin: 0;
}

.account-events-section {
  padding: 0;
  overflow: hidden;
}

.account-events-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}

.account-events-section summary::-webkit-details-marker {
  display: none;
}

.account-details-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.account-events-section[open] .account-details-hint {
  color: var(--accent);
}

.account-events-list {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 17px 17px;
}

.account-events-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.account-events-list time {
  color: var(--muted);
  white-space: nowrap;
}

.account-support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.account-support-section p {
  margin: 0;
}

.account-support-section a {
  color: var(--accent);
  text-decoration: none;
}

.account-support-section a:hover {
  text-decoration: underline;
}

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

.account-actions-primary-row {
  margin-top: 2px;
}

.account-actions-footer {
  justify-content: flex-end;
}

.account-primary,
.account-secondary,
.account-danger {
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease, border-color 150ms ease, background 150ms ease;
}

.account-primary:hover:not(:disabled),
.account-secondary:hover:not(:disabled),
.account-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.account-primary:disabled,
.account-secondary:disabled,
.account-danger:disabled {
  opacity: 0.72;
  cursor: default;
}

.account-primary {
  border: 1px solid rgba(240, 201, 107, 0.65);
  color: #111827;
  background: linear-gradient(180deg, #ffd36e, #dfa93c);
}

.account-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.account-danger {
  border: 1px solid rgba(255, 139, 139, 0.30);
  color: #ffd6d6;
  background: rgba(255, 139, 139, 0.08);
}

.account-panel-loading-card {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 880;
}

.account-panel-card-error {
  border-left: 3px solid rgba(255, 139, 139, 0.82);
  padding-left: 16px;
}

.account-panel-spinner {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(240, 201, 107, 0.58);
  animation: accountPanelPulse 1.4s ease-out infinite;
}

@keyframes accountPanelPulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 201, 107, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(240, 201, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 201, 107, 0); }
}

@media (max-width: 620px) {
  .account-panel-shell {
    align-items: end;
    padding: 14px;
  }

  .account-panel {
    border-radius: 24px;
    max-height: calc(100vh - 28px);
  }

  .account-panel-body {
    padding: 24px 18px 18px;
  }

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

  .account-actions,
  .account-actions-footer {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .account-primary,
  .account-secondary,
  .account-danger {
    width: 100%;
  }

  .account-support-section {
    display: grid;
    gap: 7px;
  }
}


/* -------------------------------------------------------------------------
   Account panel polish: warmer customer account surface
   ------------------------------------------------------------------------- */
.account-panel-shell {
  place-items: center;
  padding: 24px;
}

.account-panel-backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(11px);
}

.account-panel {
  width: min(660px, 100%);
  max-height: min(820px, calc(100vh - 70px));
  border-color: rgba(240, 201, 107, 0.24);
  color: var(--soft);
  background:
    radial-gradient(520px 260px at 18% 0%, rgba(240, 201, 107, 0.115), transparent 62%),
    radial-gradient(420px 230px at 92% 8%, rgba(255, 211, 110, 0.075), transparent 58%),
    linear-gradient(180deg, rgba(25, 22, 17, 0.985), rgba(8, 10, 14, 0.975));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.account-panel-close {
  border-color: rgba(240, 201, 107, 0.24);
  color: var(--ink);
  background: rgba(240, 201, 107, 0.075);
}

.account-panel-close:hover {
  border-color: rgba(240, 201, 107, 0.52);
  background: rgba(240, 201, 107, 0.12);
}

.account-panel-body {
  padding: 32px 34px 30px;
}

.account-panel-card,
.account-panel-card-user {
  gap: 16px;
}

.account-section {
  border-color: rgba(240, 201, 107, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.043), rgba(255, 255, 255, 0.020)),
    rgba(18, 15, 11, 0.52);
}

.account-hero-section {
  padding: 21px;
  border-color: rgba(240, 201, 107, 0.24);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(240, 201, 107, 0.090), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024)),
    rgba(18, 15, 11, 0.64);
}

.account-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.account-kicker,
.account-section-title {
  color: var(--accent);
  letter-spacing: 0.19em;
}

.account-user-head {
  gap: 16px;
}

.account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffd36e, #dfa93c);
  color: #15120d;
  box-shadow:
    0 16px 34px rgba(240, 201, 107, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  font-size: 16px;
}

.account-person-name {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4.2vw, 38px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
}

.account-user-email {
  margin: 7px 0 0;
  color: #b9c4d8;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 780;
}

.account-section-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 11px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.account-section-pill-good {
  border-color: rgba(110, 231, 167, 0.36);
  color: #92f0c0;
  background: rgba(110, 231, 167, 0.075);
}

.account-section-pill-soft {
  border-color: rgba(240, 201, 107, 0.40);
  color: var(--accent);
  background: rgba(240, 201, 107, 0.080);
}

.account-section-pill-bad {
  border-color: rgba(255, 139, 139, 0.38);
  color: #ffc4c4;
  background: rgba(255, 139, 139, 0.075);
}

.account-plan-section {
  gap: 16px;
}

.account-plan-card {
  display: grid;
  gap: 6px;
  padding: 17px 18px;
  border: 1px solid rgba(240, 201, 107, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(360px 150px at 12% 0%, rgba(240, 201, 107, 0.075), transparent 62%),
    rgba(255, 255, 255, 0.035);
}

.account-plan-kicker {
  color: #aeb8c9;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-plan-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 950;
}

.account-plan-card p {
  margin: 0;
  color: #d4deee;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 780;
}

.account-billing-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.090);
  border-bottom: 1px solid rgba(255, 255, 255, 0.090);
}

.account-billing-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 2px;
}

.account-billing-row + .account-billing-row {
  border-top: 1px solid rgba(255, 255, 255, 0.070);
}

.account-billing-row span {
  color: #aab5c8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-billing-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  text-align: right;
}

.account-billing-row-emphasis strong {
  color: #f6d889;
}

.account-manage-section .account-section-copy {
  color: #c8d2e4;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 760;
}

.account-manage-actions,
.account-confirm-actions {
  margin-top: 2px;
}

.account-danger {
  border-color: rgba(255, 139, 139, 0.30);
  color: #ffd1d1;
  background: rgba(255, 139, 139, 0.060);
}

.account-danger:hover:not(:disabled) {
  border-color: rgba(255, 139, 139, 0.48);
  background: rgba(255, 139, 139, 0.095);
}

.account-secondary {
  border-color: rgba(240, 201, 107, 0.20);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.050);
}

.account-secondary:hover:not(:disabled) {
  border-color: rgba(240, 201, 107, 0.42);
  background: rgba(240, 201, 107, 0.075);
}

.account-confirm-card {
  border-color: rgba(255, 139, 139, 0.25);
  background:
    radial-gradient(360px 140px at 0% 0%, rgba(255, 139, 139, 0.070), transparent 62%),
    rgba(255, 255, 255, 0.034);
}

.account-confirm-card h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.account-confirm-card p {
  color: #d6dfef;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 760;
}

.account-events-section {
  border-color: rgba(240, 201, 107, 0.10);
  background: rgba(255, 255, 255, 0.026);
}

.account-support-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
  color: #9faabc;
  font-size: 12px;
  font-weight: 780;
}

.account-support-section a {
  color: var(--accent);
}

.account-footer-actions {
  justify-content: center;
  padding-top: 6px;
}

.account-quiet-action {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #b9c4d8;
  background: transparent;
  font-size: 12px;
  font-weight: 880;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.account-quiet-action:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.account-quiet-action:focus-visible {
  outline: 2px solid rgba(240, 201, 107, 0.70);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .account-panel-shell {
    align-items: end;
    padding: 14px;
  }

  .account-panel-body {
    padding: 26px 18px 18px;
  }

  .account-hero-topline,
  .account-billing-row,
  .account-support-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-billing-row strong {
    text-align: left;
  }

  .account-manage-actions,
  .account-confirm-actions,
  .account-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-quiet-action {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------
   Account panel v2: lighter glass, folded sections by default
   ------------------------------------------------------------------------- */
.account-panel-shell {
  place-items: center;
  padding: 28px;
}

.account-panel-backdrop {
  background:
    radial-gradient(circle at 52% 32%, rgba(129, 140, 248, 0.12), transparent 34%),
    radial-gradient(circle at 66% 58%, rgba(34, 211, 238, 0.075), transparent 34%),
    rgba(3, 7, 18, 0.56);
  backdrop-filter: blur(11px);
}

.account-panel {
  width: min(610px, 100%);
  max-height: min(720px, calc(100vh - 64px));
  overflow: auto;
  scrollbar-gutter: stable;
  border-color: rgba(165, 180, 252, 0.26);
  border-radius: 28px;
  color: #eef3ff;
  background:
    radial-gradient(520px 260px at 16% -8%, rgba(129, 140, 248, 0.20), transparent 64%),
    radial-gradient(420px 220px at 88% 4%, rgba(34, 211, 238, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(18, 27, 48, 0.965), rgba(8, 13, 27, 0.972));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 1px 0 rgba(255, 255, 255, 0.075) inset;
}

.account-panel-close {
  right: 15px;
  top: 14px;
  border-color: rgba(165, 180, 252, 0.22);
  color: #f7ecd1;
  background: rgba(255, 255, 255, 0.055);
}

.account-panel-close:hover {
  border-color: rgba(196, 181, 253, 0.46);
  background: rgba(165, 180, 252, 0.10);
}

.account-panel-body {
  padding: 26px;
}

.account-panel-card {
  gap: 14px;
}

.account-section {
  border-color: rgba(165, 180, 252, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(15, 23, 42, 0.44);
}

.account-kicker,
.account-section-title {
  color: #c7d2fe;
  letter-spacing: 0.18em;
}

.account-hero-section {
  padding: 18px;
  border-color: rgba(165, 180, 252, 0.22);
  background:
    radial-gradient(360px 140px at 10% 0%, rgba(236, 72, 153, 0.105), transparent 60%),
    radial-gradient(420px 150px at 92% 0%, rgba(34, 211, 238, 0.09), transparent 62%),
    rgba(15, 23, 42, 0.48);
}

.account-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-user-head {
  gap: 14px;
}

.account-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 55%, #22d3ee 100%);
  box-shadow:
    0 14px 32px rgba(139, 92, 246, 0.17),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset;
  font-size: 16px;
}

.account-person-name {
  font-size: clamp(25px, 4.4vw, 34px) !important;
  letter-spacing: -0.052em !important;
}

.account-user-email {
  margin-top: 3px !important;
  color: #b9c7df !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.account-section-pill {
  border: 1px solid rgba(110, 231, 183, 0.34);
  padding: 6px 10px;
  color: #d9fff0;
  background: rgba(45, 212, 191, 0.14);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.045) inset;
}

.account-section-pill-soft {
  border-color: rgba(251, 191, 36, 0.28);
  color: #fff2c7;
  background: rgba(251, 191, 36, 0.115);
}

.account-section-pill-bad {
  border-color: rgba(248, 113, 113, 0.32);
  color: #ffe1e1;
  background: rgba(248, 113, 113, 0.12);
}

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

.account-accordion {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  transition: border-color 150ms ease, background 150ms ease;
}

.account-accordion[open] {
  border-color: rgba(196, 181, 253, 0.26);
  background:
    radial-gradient(360px 130px at 90% 0%, rgba(34, 211, 238, 0.055), transparent 62%),
    rgba(15, 23, 42, 0.56);
}

.account-accordion-summary,
.account-events-section summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.account-accordion-summary::-webkit-details-marker,
.account-events-section summary::-webkit-details-marker {
  display: none;
}

.account-accordion-title {
  color: #f7ecd1;
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.account-accordion-meta {
  justify-self: end;
  min-width: 0;
  color: #a5f3fc;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
  opacity: 0.88;
}

.account-accordion-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(199, 210, 254, 0.88);
  border-bottom: 2px solid rgba(199, 210, 254, 0.88);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.account-accordion[open] .account-accordion-chevron {
  transform: rotate(225deg) translateY(-2px);
}

.account-accordion-body {
  display: grid;
  gap: 13px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.account-plan-card {
  margin-top: 14px;
  border-color: rgba(165, 180, 252, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.032)),
    rgba(2, 6, 23, 0.20);
}

.account-plan-kicker {
  color: #aebcf4;
}

.account-plan-card strong,
.account-billing-row strong {
  color: #fff7df;
}

.account-plan-card p,
.account-section-copy,
.account-empty-note {
  color: #cbd8ee;
}

.account-billing-list {
  border-top-color: rgba(165, 180, 252, 0.14);
}

.account-billing-row {
  border-bottom-color: rgba(165, 180, 252, 0.10);
}

.account-billing-row span {
  color: #9fb0cf;
}

.account-billing-row-emphasis strong {
  color: #fde68a;
}

.account-manage-actions,
.account-confirm-actions {
  margin-top: 2px;
}

.account-secondary {
  border-color: rgba(165, 180, 252, 0.22);
  color: #eef3ff;
  background: rgba(255, 255, 255, 0.055);
}

.account-secondary:hover:not(:disabled) {
  border-color: rgba(165, 180, 252, 0.40);
  background: rgba(165, 180, 252, 0.11);
}

.account-danger {
  border-color: rgba(251, 113, 133, 0.34);
  color: #ffd9df;
  background: rgba(244, 63, 94, 0.105);
}

.account-danger:hover:not(:disabled) {
  border-color: rgba(251, 113, 133, 0.52);
  background: rgba(244, 63, 94, 0.15);
}

.account-confirm-card {
  margin-top: 14px;
  border-color: rgba(251, 113, 133, 0.26);
  background: rgba(244, 63, 94, 0.08);
}

.account-events-list {
  padding: 14px 0 0;
}

.account-events-list li {
  background: rgba(255, 255, 255, 0.05);
}

.account-empty-note {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 760;
}

.account-support-section {
  padding: 1px 2px 0;
  color: #aebbd2;
}

.account-support-section a {
  color: #fde68a;
}

.account-footer-actions {
  justify-content: center;
  padding-top: 1px;
}

.account-quiet-action {
  min-width: 144px;
  border: 1px solid rgba(165, 180, 252, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  color: #dbe6ff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.account-quiet-action:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.45);
  color: #ffffff;
  background: rgba(165, 180, 252, 0.10);
}

.account-panel-notice {
  border-color: rgba(165, 180, 252, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.account-panel-spinner {
  background: #a78bfa;
  animation-name: accountPanelPulseCool;
}

@keyframes accountPanelPulseCool {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.42); }
  70% { box-shadow: 0 0 0 9px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

@media (max-width: 620px) {
  .account-panel-shell {
    align-items: end;
    padding: 14px;
  }

  .account-panel {
    width: 100%;
    max-height: calc(100vh - 28px);
  }

  .account-panel-body {
    padding: 22px 16px 16px;
  }

  .account-accordion-summary,
  .account-events-section summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-accordion-meta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
