.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 42px 24px 56px;
  background:
    radial-gradient(ellipse at 12% 10%, #f2eaff 0, transparent 32%),
    radial-gradient(ellipse at 90% 85%, #fff0f8 0, transparent 28%), var(--bg, #fbfaff);
}
.auth-wrap {
  width: min(1020px, 100%);
}
.auth-card {
  min-height: 590px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1px solid #eae4f2;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 80px #34214c14;
}
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px;
  background: radial-gradient(ellipse at 80% 15%, #935fdb 0, #5430a8 38%, #241244 100%);
  color: white;
}
.auth-story:before,
.auth-story:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff28;
  border-radius: 50%;
  pointer-events: none;
}
.auth-story:before {
  width: 430px;
  height: 430px;
  right: -200px;
  top: 80px;
}
.auth-story:after {
  width: 330px;
  height: 330px;
  right: -150px;
  top: 130px;
}
.auth-story-copy,
.auth-art,
.auth-story-foot {
  position: relative;
  z-index: 1;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ded0ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.auth-eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb2d5;
  box-shadow: 0 0 14px #ffb2d5;
}
.auth-story h1 {
  max-width: 360px;
  margin: 19px 0 12px;
  font:
    800 clamp(32px, 4vw, 46px)/1.08 Manrope,
    sans-serif;
  letter-spacing: -1.7px;
}
.auth-story-copy p {
  max-width: 330px;
  margin: 0;
  color: #e5dafa;
  font-size: 13px;
  line-height: 1.75;
}
.auth-art {
  height: 190px;
  margin: 20px 0 26px;
  display: grid;
  place-items: center;
}
.auth-art-orbit {
  position: absolute;
  width: 185px;
  height: 185px;
  border: 1px solid #ffffff35;
  border-radius: 50%;
  box-shadow:
    0 0 0 20px #ffffff09,
    0 0 0 42px #ffffff08;
}
.auth-art-card {
  position: relative;
  width: 220px;
  height: 136px;
  padding: 18px;
  border: 1px solid #ffffff80;
  border-radius: 17px;
  background: linear-gradient(135deg, #ffffffed, #f4eaffdc);
  color: #37215e;
  box-shadow: 0 22px 48px #10052262;
  transform: rotate(-8deg);
}
.auth-art-card:before {
  content: "✦";
  position: absolute;
  right: 17px;
  top: 12px;
  color: #e68abc;
  font-size: 22px;
}
.auth-art-card small {
  display: block;
  color: #7d6c96;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.auth-art-card strong {
  display: block;
  margin-top: 22px;
  font:
    800 22px Manrope,
    sans-serif;
  letter-spacing: -0.7px;
}
.auth-art-card span {
  position: absolute;
  bottom: 14px;
  left: 18px;
  color: #796a8d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-story-foot {
  color: #d7c8f1;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 54px;
}
.auth-form-content {
  width: min(390px, 100%);
}
.auth-kicker {
  margin: 0 0 9px;
  color: #805ad2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-title {
  margin: 0;
  color: #28213a;
  font:
    800 30px/1.2 Manrope,
    sans-serif;
  letter-spacing: -1px;
}
.auth-subtitle {
  margin: 10px 0 25px;
  color: #6a6178;
  font-size: 13px;
  line-height: 1.65;
}
.auth-field {
  display: grid;
  gap: 6px;
  margin: 0 0 15px;
}
.auth-field label {
  color: #4b435c;
  font-size: 13px;
  font-weight: 700;
}
.auth-field input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #e8e2ef;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #28213a;
  font:
    13px "DM Sans",
    sans-serif;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.auth-field input::placeholder {
  color: #aaa3b4;
}
.auth-field input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px #a78bfa24;
}
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 19px;
  color: #756d84;
  font-size: 13px;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.auth-check input {
  accent-color: #7048d9;
}
.auth-help-links {
  display: flex;
  align-items: center;
  gap: 13px;
}
.auth-link,
.auth-help-contact {
  color: #7048d9;
  font-weight: 700;
}
.auth-help-contact {
  color: #6a6178;
}
.auth-link:hover,
.auth-help-contact:hover {
  text-decoration: underline;
}
.auth-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(100deg, #7449d7, #8b57d9);
  color: #fff;
  font:
    800 12px Manrope,
    sans-serif;
  box-shadow: 0 9px 20px #7048d92c;
  cursor: pointer;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-error {
  display: block;
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid #f5c6c2;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
  font-size: 13px;
  line-height: 1.55;
}
.auth-error[hidden],
.auth-success[hidden] {
  display: none;
}
.auth-success {
  display: block;
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid #b7e4c7;
  border-radius: 10px;
  background: #f0fdf4;
  color: #157347;
  font-size: 13px;
  line-height: 1.55;
}
.auth-error a,
.auth-success a {
  color: #7048d9;
  font-weight: 700;
}
.auth-preview {
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid #eee8f6;
  border-radius: 10px;
  background: #faf8fd;
  color: #6a6178;
  font-size: 12px;
  line-height: 1.55;
}
.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: #6a6178;
  font-size: 13px;
}
.auth-switch a {
  color: #7048d9;
  font-weight: 800;
}
.auth-terms {
  margin: 12px 0 0;
  color: #928a9d;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.auth-terms a {
  color: #7048d9;
  font-weight: 700;
}
html[data-theme="dark"] .auth-main {
  background:
    radial-gradient(ellipse at 12% 10%, #3e2d66 0, transparent 32%),
    radial-gradient(ellipse at 90% 85%, #462a4d 0, transparent 28%), var(--bg, #251a38);
}
html[data-theme="dark"] .auth-card {
  background: #2d2446;
  border-color: #30273d;
  box-shadow: 0 26px 80px #0004;
}
html[data-theme="dark"] .auth-title {
  color: #f7f2ff;
}
html[data-theme="dark"] .auth-subtitle,
html[data-theme="dark"] .auth-options,
html[data-theme="dark"] .auth-switch {
  color: #aaa0b8;
}
html[data-theme="dark"] .auth-field label {
  color: #d6cde0;
}
html[data-theme="dark"] .auth-field input {
  background: #120e19;
  border-color: #3a3048;
  color: #f7f2ff;
}
html[data-theme="dark"] .auth-field input::placeholder {
  color: #837991;
}
html[data-theme="dark"] .auth-link,
html[data-theme="dark"] .auth-switch a,
html[data-theme="dark"] .auth-terms a {
  color: #c8b4ff;
}
html[data-theme="dark"] .auth-help-contact {
  color: #aaa0b8;
}
html[data-theme="dark"] .auth-preview {
  background: #211a2b;
  border-color: #3a3048;
  color: #b6abc3;
}
html[data-theme="dark"] .auth-terms {
  color: #968ba4;
}
@media (max-width: 820px) {
  .auth-main {
    padding: 30px 18px 40px;
  }
  .auth-card {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .auth-story {
    padding: 32px 28px;
  }
  .auth-form-panel {
    padding: 38px 32px;
  }
  .auth-art-card {
    width: 190px;
  }
}
@media (max-width: 620px) {
  .auth-main {
    padding: 20px 14px 32px;
  }
  .auth-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .auth-story {
    min-height: 245px;
    padding: 25px 24px 19px;
  }
  .auth-story h1 {
    max-width: 440px;
    font-size: 30px;
    margin: 13px 0 7px;
  }
  .auth-story-copy p {
    max-width: 430px;
    font-size: 12px;
  }
  .auth-art {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 145px;
    height: 130px;
    margin: 0;
    opacity: 0.85;
  }
  .auth-art-orbit {
    width: 110px;
    height: 110px;
    box-shadow:
      0 0 0 12px #ffffff09,
      0 0 0 25px #ffffff08;
  }
  .auth-art-card {
    width: 145px;
    height: 92px;
    padding: 11px;
    border-radius: 12px;
  }
  .auth-art-card strong {
    font-size: 15px;
    margin-top: 12px;
  }
  .auth-art-card small,
  .auth-art-card span {
    font-size: 6px;
  }
  .auth-art-card span {
    bottom: 9px;
    left: 11px;
  }
  .auth-art-card:before {
    right: 11px;
    top: 8px;
    font-size: 16px;
  }
  .auth-story-foot {
    margin-top: 22px;
    font-size: 11px;
  }
  .auth-form-panel {
    padding: 30px 24px 32px;
  }
  .auth-title {
    font-size: 26px;
  }
  .auth-subtitle {
    margin: 8px 0 20px;
  }
}
@media (max-width: 380px) {
  .auth-story {
    padding: 22px 19px 17px;
  }
  .auth-story h1 {
    font-size: 27px;
  }
  .auth-art {
    right: -18px;
    opacity: 0.65;
  }
  .auth-form-panel {
    padding: 26px 19px;
  }
  .auth-options {
    font-size: 12px;
  }
}

html[data-theme="dark"] .auth-error {
  background: #2c1a1a;
  border-color: #5c2b28;
  color: #f5b5b0;
}
html[data-theme="dark"] .auth-success {
  background: #12291c;
  border-color: #1f4d33;
  color: #7fd6a4;
}
/* ---- account.html: page styles, moved here from the page's inline <style> (was after all <link>s, so appended last to keep cascade order) ---- */

.acct-menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee8f6;
}
.acct-menu button {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: #6a6178;
  font:
    700 13px "DM Sans",
    sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.acct-menu button:hover {
  color: #28213a;
  background: #f7f2ff;
}
.acct-menu button[aria-current="true"] {
  background: #7048d9;
  color: #fff;
}
.acct-menu button[hidden] {
  display: none;
}
.acct-section[hidden] {
  display: none;
}
.session-signout-btn {
  padding: 8px 13px;
  border: 1px solid #e8e2ef;
  border-radius: 999px;
  background: #fff;
  color: #7048d9;
  font:
    700 12px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.session-signout-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
html[data-theme="dark"] .session-signout-btn {
  background: #120e19;
  border-color: #3a3048;
  color: #c8b4ff;
}
html[data-theme="dark"] .acct-menu {
  border-color: #30273d;
}
html[data-theme="dark"] .acct-menu button {
  color: #aaa0b8;
}
html[data-theme="dark"] .acct-menu button:hover {
  color: #f7f2ff;
  background: #3b2d57;
}
html[data-theme="dark"] .acct-menu button[aria-current="true"] {
  background: #7048d9;
  color: #fff;
}
@media (max-width: 620px) {
  .acct-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .acct-menu::-webkit-scrollbar {
    display: none;
  }
}

/* Fix 8 (CSP: no unsafe-inline) — classes replacing former style="..." attributes on /account. */
.acct-sub-tight {
  margin-bottom: 14px;
}
.acct-sub-tight12 {
  margin-bottom: 12px;
}
.acct-alerts-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #28213a;
}
.acct-alerts-check {
  width: 20px;
  height: 20px;
  accent-color: #7048d9;
}
.acct-signout-all {
  text-align: left;
  margin: 18px 0 22px;
}
.acct-danger {
  color: #b42318;
}
.acct-delete-btn {
  background: #b42318;
  box-shadow: 0 9px 20px #b423182c;
}
.acct-status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f4f0fb;
  font-size: 12px;
  font-weight: 700;
}
.acct-status-pending {
  color: #8a6d00;
}
.acct-status-paid {
  color: #1d4ed8;
}
.acct-status-delivered {
  color: #15803d;
}
.acct-status-failed {
  color: #b42318;
}
.acct-status-refunded {
  color: #5f5870;
}
.acct-status-default {
  color: #5f5870;
}
.acct-status-current {
  color: #7048d9;
}
.acct-empty-title {
  font-size: 15px;
  color: #28213a;
  margin: 0 0 6px;
}
.acct-empty-link {
  color: #7048d9;
  font-weight: 700;
}
.acct-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f1ecf8;
}
.acct-row-title {
  font-size: 15px;
  color: #28213a;
}
.acct-row-sub {
  font-size: 13px;
  color: #5f5870;
  margin-top: 2px;
}
.acct-row-right {
  text-align: right;
  flex: none;
}
.acct-row-amount {
  font-size: 15px;
  font-weight: 700;
  color: #28213a;
}
.acct-row-badge {
  margin-top: 4px;
}
.acct-flex-none {
  flex: none;
}
