.ac-page {
  --ac-blue: #0071e3;
  --ac-ink: #1d1d1f;
  --ac-muted: #6e6e73;
  --ac-line: #d2d2d7;
  --ac-surface: #f5f5f7;
  background: #fff;
  color: var(--ac-ink);
  min-height: 65vh;
  padding: 64px 0 96px;
  overflow-wrap: anywhere;
}
.ac-shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.ac-heading { max-width: 840px; margin-bottom: 48px; }
.ac-eyebrow { margin-bottom: 14px; color: var(--ac-muted); font-size: 14px; font-weight: 600; }
.ac-heading h1 { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.ac-heading > p:last-child:not(.ac-eyebrow) { max-width: 700px; margin-top: 22px; color: var(--ac-muted); font-size: 21px; line-height: 1.5; }
.ac-page h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.015em; }
.ac-page h3 { font-size: 19px; line-height: 1.4; }
.ac-page input, .ac-page select, .ac-page button { font: inherit; }
.ac-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--ac-blue);
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.ac-button:hover { background: #0077ed; }
.ac-button:disabled { cursor: default; opacity: .48; }
.ac-button-secondary { border-color: var(--ac-line); background: #fff; color: var(--ac-blue); }
.ac-button-secondary:hover { background: #f5f5f7; border-color: #86868b; }
.ac-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ac-blue); font-size: 16px; line-height: 1.4; }
.ac-link:hover { text-decoration: underline; }
.ac-page :where(button, a, input, select, summary):focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
.ac-note, .ac-muted, .ac-panel-lead { color: var(--ac-muted); font-size: 14px; line-height: 1.6; }
.ac-note { margin-top: 20px; }
.ac-loading { padding: 20px 0; color: var(--ac-muted); font-size: 16px; }
.ac-feedback { min-height: 24px; margin-top: 14px; color: var(--ac-muted); font-size: 14px; line-height: 1.6; }
.ac-feedback:empty { min-height: 0; margin: 0; }
.ac-feedback.is-error, .ac-field-error { color: #b42318; }
.ac-callout { padding: 18px 20px; margin: 16px 0 24px; border-radius: 12px; background: var(--ac-surface); color: var(--ac-ink); font-size: 15px; line-height: 1.6; }
.ac-callout-error { background: #fff3f2; color: #a21912; }
.ac-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ac-auth-card { width: min(100%, 480px); margin-inline: auto; }
.ac-auth-tabs { display: flex; gap: 32px; margin-bottom: 30px; border-bottom: 1px solid var(--ac-line); }
.ac-auth-tabs button { min-height: 48px; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ac-muted); font-size: 17px; }
.ac-auth-tabs button[aria-pressed="true"] { color: var(--ac-ink); border-bottom-color: var(--ac-blue); }
.ac-form { max-width: 520px; }
.ac-form > h2 { margin-bottom: 16px; }
.ac-form-intro { margin-bottom: 28px; color: var(--ac-muted); font-size: 17px; line-height: 1.6; }
.ac-form > .ac-button[type="submit"] { width: 100%; }
.ac-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 24px; }
.ac-field label { color: var(--ac-ink); font-size: 14px; font-weight: 500; }
.ac-field input, .ac-field select {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid #86868b;
  border-radius: 12px;
  background: #fff;
  color: var(--ac-ink);
  font-size: 17px;
  line-height: 1.5;
}
.ac-field input:focus, .ac-field select:focus { border-color: var(--ac-blue); }
.ac-field input[aria-invalid="true"] { border-color: #b42318; background: #fffafa; }
.ac-field input::placeholder { color: #86868b; }
.ac-field-error { display: block; font-size: 13px; line-height: 1.5; }
.ac-hint { color: var(--ac-muted); font-size: 13px; line-height: 1.5; }
.ac-consent { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 24px; font-size: 14px; line-height: 1.6; cursor: pointer; }
.ac-consent input { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--ac-blue); }
.ac-consent input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.ac-consent .ac-link { min-height: 0; display: inline; font-size: inherit; text-decoration: underline; }
.ac-consent + .ac-field-error:not([hidden]) { margin: -12px 0 18px; }
.ac-auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.ac-auth-links .ac-button { padding: 8px 12px; border: 0; background: transparent; color: var(--ac-blue); font-size: 15px; }
.ac-account-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ac-identity { font-size: 24px; font-weight: 600; line-height: 1.4; }
.ac-account-nav { display: flex; flex-wrap: wrap; gap: 32px; margin: 40px 0 32px; border-bottom: 1px solid var(--ac-line); }
.ac-account-nav-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 2px solid transparent; color: var(--ac-muted); font-size: 16px; }
.ac-account-nav-link[aria-current="page"] { color: var(--ac-ink); border-bottom-color: var(--ac-blue); }
.ac-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.ac-panel { min-width: 0; padding: 24px 0 36px; border-top: 1px solid var(--ac-line); }
.ac-panel > h2, .ac-panel-title { margin-bottom: 22px; }
.ac-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ac-panel-title h2 { margin: 0; }
.ac-panel-title .ac-button { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.ac-account-email { margin-bottom: 28px; font-size: 17px; }
.ac-checkout-section .ac-account-email { margin-top: 20px; margin-bottom: 0; }
.ac-verification { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.ac-verification .ac-feedback { width: 100%; margin-top: 0; }
.ac-verification .ac-button { padding: 8px 14px; min-height: 44px; font-size: 14px; }
.ac-status { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 10px; border-radius: 980px; background: var(--ac-surface); color: var(--ac-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.ac-status-success { color: #1a6436; background: #eaf5ee; }
.ac-plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.ac-facts { margin: 0; }
.ac-facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; }
.ac-facts dt { color: var(--ac-muted); font-size: 15px; line-height: 1.5; }
.ac-facts dd { max-width: 65%; margin: 0; font-size: 15px; line-height: 1.5; text-align: end; }
.ac-order-list, .ac-session-list { margin: 0; padding: 0; list-style: none; }
.ac-order-list > li { display: flex; justify-content: space-between; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--ac-line); }
.ac-order-list > li:first-child { padding-top: 0; }
.ac-order-list h3 { margin-bottom: 10px; }
.ac-order-list > li > div:last-child { text-align: end; }
.ac-order-cycle { display: inline-block; margin-inline-start: 12px; color: var(--ac-muted); font-size: 14px; font-weight: 400; }
.ac-order-amount { display: block; margin: 10px 0 0; font-size: 19px; font-weight: 600; }
.ac-empty { padding: 28px 0; }
.ac-empty h3 { margin-bottom: 12px; }
.ac-empty p { max-width: 580px; margin-bottom: 12px; color: var(--ac-muted); font-size: 17px; line-height: 1.6; }
.ac-session-list > li { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--ac-line); }
.ac-session-list > li > div { min-width: 0; flex: 1; }
.ac-session-list .ac-button { padding: 10px 16px; font-size: 14px; }
.ac-session-list h3 { margin-bottom: 10px; font-size: 17px; }
.ac-session-agent { color: var(--ac-muted); font-size: 13px; line-height: 1.6; word-break: break-word; }
.ac-session-list .ac-muted { margin-top: 8px; font-size: 12px; }
.ac-session-list + .ac-note { margin-bottom: 22px; }
.ac-progress { display: flex; gap: 28px; margin: 0 0 40px; padding: 0; list-style: none; color: var(--ac-muted); font-size: 14px; }
.ac-progress li { display: inline-flex; align-items: center; gap: 10px; }
.ac-progress li + li::before { content: '›'; color: #86868b; }
.ac-progress .is-current { color: var(--ac-ink); font-weight: 600; }
.ac-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 80px; }
.ac-checkout-main { min-width: 0; }
.ac-checkout-section { padding: 28px 0 32px; border-top: 1px solid var(--ac-line); }
.ac-checkout-section > h2 { margin-bottom: 22px; }
.ac-checkout-section .ac-auth-card { width: 100%; margin: 26px 0 0; }
.ac-selected-plan { margin-bottom: 28px; font-size: 26px; font-weight: 600; line-height: 1.4; }
.ac-selected-plan > span:last-child { display: block; margin-top: 8px; color: var(--ac-muted); font-size: 16px; font-weight: 400; }
.ac-country-field { max-width: 400px; margin-bottom: 0; }
.ac-summary { position: sticky; top: 96px; min-width: 0; padding: 26px; border-radius: 22px; background: var(--ac-surface); }
.ac-summary summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--ac-line); list-style: none; cursor: default; font-size: 19px; font-weight: 600; }
.ac-summary summary::-webkit-details-marker { display: none; }
.ac-summary summary > strong { display: none; font-size: 17px; }
.ac-summary-chevron { display: none; }
.ac-summary-plan { padding-top: 24px; padding-bottom: 16px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.ac-summary .ac-note { font-size: 12px; }
.ac-summary .ac-link { margin-top: 16px; font-size: 14px; }
.ac-summary .ac-facts > div { gap: 14px; }
.ac-summary .ac-facts dt, .ac-summary .ac-facts dd { font-size: 14px; }
.ac-total { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 22px; margin-top: 16px; border-top: 1px solid var(--ac-line); }
.ac-total > span { font-size: 15px; }
.ac-total strong { font-size: 25px; font-weight: 600; }
.ac-payment-methods { padding: 0; margin: 0 0 30px; border: 0; }
.ac-payment-methods legend { margin-bottom: 20px; font-size: 26px; font-weight: 600; line-height: 1.3; }
.ac-payment-choice { display: flex; align-items: center; gap: 14px; min-height: 58px; margin-bottom: 12px; padding: 14px 18px; border: 1px solid var(--ac-line); border-radius: 12px; cursor: pointer; }
.ac-payment-choice:has(input:checked) { border-color: var(--ac-blue); background: #f6faff; }
.ac-payment-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ac-blue); flex-shrink: 0; }
.ac-payment-choice input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.ac-order-back { margin: -16px 0 28px; }
.ac-order-status { max-width: 720px; padding: 24px 0 40px; }
.ac-order-status h2 { margin-top: 20px; font-size: 34px; letter-spacing: -.02em; }
.ac-order-status p { margin-top: 18px; color: var(--ac-muted); font-size: 19px; line-height: 1.6; }
.ac-order-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 64px; }
.ac-order-id { margin-bottom: 20px; color: var(--ac-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.ac-order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--ac-line); }
.ac-order-actions > .ac-note { width: 100%; margin-top: 0; }
.ac-order-actions > .ac-link { width: 100%; }
.ac-summary .ac-callout { margin-top: 0; margin-bottom: 16px; font-size: 13px; }
.ac-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 20px; color: var(--ac-muted); font-size: 13px; }
.ac-legal-links .ac-link { font-size: inherit; }
.ac-payment-qr { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--ac-line); }
.ac-payment-qr h3 { margin-bottom: 18px; font-size: 19px; }
.ac-qr-image { width: 240px; max-width: 100%; aspect-ratio: 1; background: #fff; }
.ac-qr-image svg { display: block; width: 100%; height: 100%; }
.ac-payment-qr p { max-width: 340px; margin-top: 16px; color: var(--ac-muted); font-size: 14px; line-height: 1.6; }
[dir="rtl"] .ac-progress li + li::before { transform: scaleX(-1); }
[dir="rtl"] .ac-field input[type="email"] { direction: ltr; text-align: start; }
@media (max-width: 960px) {
  .ac-checkout-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 40px; }
  .ac-account-grid, .ac-order-detail-grid { gap: 40px; }
}
@media (max-width: 760px) {
  .ac-payment-qr { display: none; }
  .ac-page { padding: 42px 0 72px; }
  .ac-shell { width: calc(100% - 40px); }
  .ac-heading { margin-bottom: 34px; }
  .ac-heading h1 { font-size: clamp(30px, 7.8vw, 42px); line-height: 1.18; letter-spacing: -.025em; }
  .ac-heading > p:last-child:not(.ac-eyebrow) { margin-top: 18px; font-size: 17px; line-height: 1.6; }
  .ac-page h2 { font-size: 24px; }
  .ac-account-grid, .ac-order-detail-grid { grid-template-columns: 1fr; gap: 0; }
  .ac-account-top { align-items: flex-start; gap: 16px; }
  .ac-account-top .ac-button { padding-inline: 16px; font-size: 14px; }
  .ac-identity { font-size: 21px; }
  .ac-account-nav { gap: 12px 24px; margin-top: 28px; }
  .ac-account-nav-link { font-size: 14px; }
  .ac-panel { padding-top: 26px; padding-bottom: 32px; }
  .ac-progress { gap: 18px; margin-bottom: 24px; font-size: 13px; }
  .ac-checkout-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .ac-summary { position: static; grid-row: 1; padding: 20px; border-radius: 16px; }
  .ac-summary summary { min-height: 44px; padding-bottom: 0; border: 0; cursor: pointer; font-size: 17px; }
  .ac-summary summary > strong, .ac-summary-chevron { display: inline; }
  .ac-summary details[open] summary { padding-bottom: 16px; border-bottom: 1px solid var(--ac-line); }
  .ac-summary details[open] .ac-summary-chevron { transform: rotate(180deg); }
  .ac-checkout-section .ac-auth-card { margin-top: 24px; }
  .ac-form, .ac-country-field { max-width: none; }
  .ac-submit { min-height: 50px; }
  .ac-order-status { padding-top: 16px; padding-bottom: 32px; }
  .ac-order-status h2 { font-size: 28px; }
  .ac-order-status p { font-size: 17px; }
  .ac-order-list > li { gap: 20px; }
  .ac-order-cycle { display: block; margin: 6px 0 0; }
  .ac-session-list > li { flex-direction: column; gap: 14px; }
  .ac-consent { font-size: 13px; }
}
@media (max-width: 360px) {
  .ac-shell { width: calc(100% - 32px); }
  .ac-heading h1 { font-size: 30px; }
  .ac-account-top { flex-direction: column; }
  .ac-order-list > li { flex-direction: column; gap: 16px; }
  .ac-order-list > li > div:last-child { text-align: start; }
  .ac-order-amount { display: inline-block; margin-inline-end: 16px; }
  .ac-summary { padding: 18px; }
  .ac-summary summary { flex-wrap: wrap; gap: 8px; }
  .ac-facts > div { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-page *, .ac-page *::before, .ac-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
