body.checkout-v2-page {
  background:
    linear-gradient(180deg, rgba(8, 14, 22, 0.96) 0%, rgba(6, 10, 16, 0.98) 100%);
}

body.checkout-v2-page::before {
  background:
    linear-gradient(180deg, rgba(6, 11, 18, 0.9) 0%, rgba(4, 8, 14, 0.98) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  opacity: 1;
}

body.checkout-v2-page::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.035), transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.025), transparent 16%);
  opacity: 0.6;
}

.checkout-topbar {
  background: rgba(7, 13, 21, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.checkout-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.checkout-topbar__badge,
.section-kicker,
.checkout-stage__label,
.account-bar__label,
.checkout-summary-pane__label {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-topbar__badge {
  padding: 0.44rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.checkout-topbar__support,
.checkout-inline-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
}

.checkout-topbar__support:hover,
.checkout-inline-link:hover {
  color: #ffffff;
}

.checkout-page {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.checkout-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 15, 24, 0.92);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.checkout-main-pane {
  min-width: 0;
  padding: 1.85rem 1.85rem 2rem;
}

.checkout-main-pane__header {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 1.1rem;
}

.checkout-main-pane__title,
.checkout-stage__title,
.loading-state__title,
.flow-panel__title,
.checkout-summary-pane__title {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.checkout-main-pane__title {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.checkout-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.86rem;
  font-weight: 700;
}

.checkout-path span {
  position: relative;
}

.checkout-path span:not(:last-child)::after {
  content: "›";
  margin-left: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
}

.checkout-path .is-active {
  color: #8dd05e;
}

.checkout-main-pane__body {
  display: grid;
  gap: 1rem;
}

#globalNotice {
  margin: 0;
}

.checkout-stage,
.checkout-workspace,
.checkout-summary-pane {
  min-width: 0;
}

.attempt-panel,
.checkout-summary-pane__security {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.checkout-stage {
  padding: 0.85rem 0 0.95rem;
}

.checkout-stage__title {
  margin-top: 0.45rem;
  font-size: clamp(1.34rem, 2vw, 1.72rem);
  max-width: 18ch;
}

.checkout-stage__text,
.loading-state__description,
.account-bar__meta,
.flow-panel__description,
.attempt-panel__body,
.attempt-panel__hint,
.checkout-summary-pane__meta,
.checkout-summary-pane__security p,
.checkout-card__security {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.checkout-stage__text {
  margin: 0.75rem 0 0;
  max-width: 38ch;
  font-size: 0.98rem;
}

.auth-stage__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
  max-width: 480px;
}

.checkout-v2-page .social-btn {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  border-radius: 16px;
  box-shadow: none;
  transform: none;
  font-size: 0.95rem;
}

.checkout-v2-page .social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.checkout-v2-page .social-btn-google {
  color: #09131f;
  background: #f2f4f8;
  border-color: rgba(255, 255, 255, 0.84);
}

.checkout-v2-page .social-btn-apple {
  color: #f2f4f8;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.11);
}

.loading-state {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  text-align: left;
  padding: 0.45rem 0 0.8rem;
}

.loading-state__spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-right-color: transparent;
  animation: billing-spin 0.75s linear infinite;
}

.loading-state__title {
  margin-top: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.loading-state__description {
  margin: 0.35rem 0 0;
  max-width: 32ch;
}

.checkout-workspace {
  display: grid;
  gap: 0.95rem;
}

.checkout-v2-page .account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  margin: 0;
  padding: 0 0 1rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.account-bar__email {
  margin-top: 0.26rem;
  font-size: 1rem;
  font-weight: 800;
}

.account-bar__meta {
  margin-top: 0.24rem;
  font-size: 0.92rem;
}

.flow-panel {
  display: grid;
  gap: 0.95rem;
  padding: 0;
}

.flow-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
}

.flow-panel__title {
  margin-top: 0.55rem;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  max-width: none;
}

.flow-panel__description {
  margin: 0.55rem 0 0;
  max-width: 42ch;
  font-size: 0.96rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  font-size: 0.77rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill-badge--muted {
  color: rgba(255, 255, 255, 0.7);
}

.pill-badge--ok {
  color: #d8f3e5;
  border-color: rgba(22, 178, 105, 0.2);
}

.pill-badge--warn {
  color: #fff1c5;
  border-color: rgba(247, 201, 90, 0.2);
}

.pill-badge--danger {
  color: #ffd8d8;
  border-color: rgba(239, 68, 68, 0.2);
}

.attempt-panel {
  padding: 0.12rem 0 0.12rem 0.9rem;
  border: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: none;
}

.attempt-panel--instruction {
  border-left-color: rgba(247, 201, 90, 0.34);
}

.attempt-panel__tag {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  color: rgba(247, 201, 90, 0.84);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attempt-panel strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.attempt-panel__body {
  margin: 0.48rem 0 0;
}

.attempt-panel__hint {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
}

.checkout-card {
  display: grid;
  gap: 0.95rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-card__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.checkout-card__section {
  display: grid;
  gap: 0.7rem;
}

.checkout-card__label {
  display: block;
  margin: 0;
}

.plan-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.plan-toggle__button {
  display: grid;
  gap: 0.3rem;
  min-height: 90px;
  padding: 0.95rem 1rem;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.plan-toggle__button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.plan-toggle__button.is-selected {
  border-color: rgba(141, 208, 94, 0.24);
  background: linear-gradient(180deg, rgba(141, 208, 94, 0.09), rgba(255, 255, 255, 0.02));
}

.plan-toggle__button span {
  font-size: 0.98rem;
}

.plan-toggle__button small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.45;
}

#methodFields.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.checkout-v2-page label {
  display: block;
  margin-bottom: 0.42rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-v2-page input,
.checkout-v2-page select {
  width: 100%;
  min-height: 54px;
  padding: 0.92rem 0.95rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.checkout-v2-page input:focus,
.checkout-v2-page select:focus {
  outline: none;
  border-color: rgba(141, 208, 94, 0.3);
  box-shadow: 0 0 0 2px rgba(141, 208, 94, 0.08);
}

.checkout-v2-page .small {
  margin-top: 0.38rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.42;
}

.checkout-card__footer {
  display: grid;
  gap: 0.58rem;
}

.checkout-pay-button {
  width: 100%;
  min-height: 56px;
  justify-content: center;
}

.checkout-card__security {
  margin: 0;
  font-size: 0.9rem;
}

.checkout-v2-page .primary-btn,
.checkout-v2-page .secondary-btn,
.checkout-v2-page .ghost-btn {
  min-height: 52px;
  border-radius: 16px;
  box-shadow: none;
}

.checkout-v2-page .primary-btn:hover,
.checkout-v2-page .secondary-btn:hover,
.checkout-v2-page .ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.checkout-v2-page .primary-btn {
  color: #07111c;
  background: linear-gradient(180deg, #f4f6fa 0%, #e7ebf1 100%);
  border-color: rgba(255, 255, 255, 0.78);
}

.checkout-v2-page .secondary-btn {
  color: #edf8f2;
  background: linear-gradient(180deg, rgba(18, 121, 74, 0.94), rgba(17, 102, 63, 0.94));
}

.checkout-v2-page .ghost-btn {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.checkout-utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.checkout-summary-pane {
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.checkout-summary-pane__inner {
  padding: 2rem 1.65rem 2.1rem;
  display: grid;
  gap: 0.95rem;
}

.checkout-summary-pane__title {
  font-size: clamp(1.34rem, 2vw, 1.68rem);
}

.checkout-summary-pane__price {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.checkout-summary-pane__meta {
  margin: -0.15rem 0 0;
  font-size: 0.96rem;
}

.checkout-summary-pane__facts {
  margin: 0.15rem 0 0;
  display: grid;
  gap: 0;
}

.checkout-summary-pane__fact {
  display: grid;
  gap: 0.32rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-summary-pane__fact dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-summary-pane__fact dd {
  margin: 0;
  color: #f0f3f9;
  font-size: 0.98rem;
  font-weight: 700;
}

.checkout-summary-pane__security {
  padding: 1rem;
}

.checkout-summary-pane__security strong {
  display: block;
  font-size: 0.95rem;
}

.checkout-summary-pane__security p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.notice {
  padding: 0.15rem 0 0.15rem 0.9rem;
  border: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: none;
}

.notice.warn {
  border-left-color: rgba(247, 201, 90, 0.4);
  color: #fff0c4;
}

.notice.ok {
  border-left-color: rgba(22, 178, 105, 0.45);
  color: #def9eb;
}

.notice.error {
  border-left-color: rgba(239, 68, 68, 0.45);
  color: #ffd8d8;
}

@media (max-width: 980px) {
  .checkout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-summary-pane {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 760px) {
  .checkout-page {
    padding-top: 1rem;
  }

  .checkout-main-pane,
  .checkout-summary-pane__inner {
    padding: 1.1rem;
  }

  .auth-stage__actions,
  .checkout-card__row,
  .plan-toggle,
  #methodFields.field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-v2-page .account-bar,
  .flow-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-utility-row {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-topbar__badge {
    display: none;
  }

  .pill-badge {
    align-self: flex-start;
  }
}
