.payment-page { background: #f5f7fa; color: #182639; font-size: 14px; }
.payment-page .skip-link { top: 12px; clip-path: inset(50%); }
.payment-page .skip-link:focus { clip-path: none; }
.payment-header { background: #fff; border-bottom: 1px solid #e4e9f0; }
.payment-header-inner { max-width: 1120px; margin: auto; padding: 0 32px; min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.payment-brand { display: flex; align-items: center; gap: 12px; }
.payment-brand img { object-fit: contain; }
.payment-brand > span { display: flex; align-items: center; gap: 16px; font-size: 22px; font-weight: 750; letter-spacing: -.6px; }
.payment-brand small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #64748b; }
.brand-divider { width: 1px; height: 22px; background: #e1e7ee; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.home-link { color: #64748b; font-size: 13px; font-weight: 600; }
.home-link span { margin-left: 6px; }
.sandbox-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #f0dfb5; border-radius: 6px; background: #fffaf0; color: #805b14; font-size: 11px; font-weight: 650; letter-spacing: .4px; }
.sandbox-badge > span { height: 5px; width: 5px; border-radius: 50%; background: #bc871e; }
.payment-main { max-width: 1120px; margin: auto; padding: 48px 32px 24px; }
.page-intro { margin-bottom: 24px; }
.payment-main .eyebrow, .section-kicker { color: #697b91; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.5; }
.payment-main .eyebrow { margin: 0 0 12px; color: #2563eb; }
.payment-main h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -1.1px; margin: 0 0 12px; }
.payment-main h2 { font-size: 22px; font-weight: 650; letter-spacing: -.6px; line-height: 1.35; margin: 7px 0 8px; }
.payment-main p { line-height: 1.7; }
.page-intro > p:last-child { margin: 0; color: #64748b; }
.environment-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border: 1px solid #e7e2d4; background: #fcfaf5; border-radius: 8px; color: #756547; font-size: 12px; }
.environment-note p { margin: 0; }
.environment-note svg, .verification-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.payment-main #message { padding: 14px 16px; margin: 18px 0 0; border: 1px solid #cdddff; border-left: 3px solid #2563eb; border-radius: 8px; background: #eef4ff; color: #27497e; font-size: 13px; overflow-wrap: anywhere; }
.payment-main #message:empty { display: none; }
.payment-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; box-shadow: 0 3px 12px #172b4d03; min-width: 0; }
.login-card { display: grid; grid-template-columns: 1.15fr 1fr; padding: 0; margin-top: 24px; overflow: hidden; }
.login-content { padding: 36px 40px; }
.section-description { margin: 0 0 24px; color: #64748b; font-size: 13px; }
.payment-main label { display: grid; gap: 8px; margin: 18px 0; color: #37465b; font-size: 12px; font-weight: 600; }
.payment-main input, .payment-main select { width: 100%; height: 46px; padding: 11px 13px; font: inherit; font-size: 14px; font-weight: 400; color: #182639; border: 1px solid #d6dee8; border-radius: 7px; background: #fff; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.payment-main input::placeholder { color: #8290a2; font-size: 13px; }
.payment-main input:focus, .payment-main select:focus { outline: 2px solid #b3cbff; outline-offset: 2px; border-color: #2563eb; }
.payment-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px 18px; margin: 0; border: 1px solid #2563eb; border-radius: 7px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; box-shadow: 0 2px 3px #2563eb0c; }
.payment-page .button:hover { background: #1d4ed8; border-color: #1d4ed8; transform: none; }
.payment-page .button-outline { background: #fff; border-color: #d6dee8; color: #33465f; box-shadow: none; }
.payment-page .button-outline:hover { background: #f7f9fc; border-color: #a5b7ce; }
#login-form .button, #checkout-form .button { width: 100%; margin-top: 6px; }
#login-form .button { justify-content: space-between; padding-inline: 16px; }
.payment-main .registration-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #edf0f5; color: #64748b; font-size: 12px; }
.registration-note a { color: #2563eb; font-weight: 600; }
.registration-note a:hover { text-decoration: underline; }
.login-guide { padding: 36px; background: #f8faff; border-left: 1px solid #e7edf6; }
.guide-icon { width: 44px; height: 44px; display: grid; place-items: center; background: #e9effc; border: 1px solid #dce6fb; color: #2563eb; border-radius: 10px; }
.guide-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.login-guide h3 { margin: 20px 0 12px; font-size: 24px; font-weight: 600; line-height: 1.35; letter-spacing: -.7px; }
.login-guide > p { margin: 0; max-width: 310px; font-size: 13px; color: #687b95; }
.guide-list { padding: 0; margin: 26px 0; list-style: none; display: grid; gap: 22px; }
.guide-list li { display: flex; align-items: flex-start; gap: 14px; }
.guide-list li > span { border: 1px solid #dee7f4; color: #7b8ba3; border-radius: 6px; font-size: 10px; padding: 5px 6px; background: #fff; }
.guide-list strong { display: block; font-size: 13px; font-weight: 600; }
.guide-list small { display: block; margin-top: 5px; color: #687b95; line-height: 1.6; font-size: 12px; }
.provider-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid #e1e8f4; font-size: 11px; color: #687b95; }
.provider-note strong { font-size: 15px; letter-spacing: .3px; color: #33465f; }
.provider-note small { margin-left: auto; font-size: 10px; }
.account-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 14px; font-size: 12px; color: #64748b; }
.account-toolbar > span { display: inline-flex; align-items: center; gap: 8px; }
.account-dot { width: 6px; height: 6px; border-radius: 50%; background: #24846d; }
.text-button { padding: 8px 0 8px 12px; min-height: 44px; border: 0; background: transparent; color: #64748b; font-size: 12px; }
.text-button:hover { color: #182639; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.payment-grid:has(#order-panel[hidden]) .package-card { grid-column: 1 / -1; max-width: 620px; width: 100%; justify-self: center; }
.price-box { padding: 18px; margin-top: 24px; background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 8px; }
.payment-main #price { font-size: 22px; line-height: 1.45; font-weight: 650; letter-spacing: -.5px; margin: 8px 0; overflow-wrap: anywhere; }
.price-caption { color: #7a8799; font-size: 11px; }
.payment-methods { margin: 24px 0; }
.payment-methods > span { color: #64748b; font-size: 12px; }
.payment-methods > div { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.method-chip { font-size: 11px; font-weight: 600; padding: 6px 9px; background: #fff; border: 1px solid #e1e7ef; border-radius: 5px; color: #4a5d77; }
.payment-methods small { color: #7a8799; font-size: 11px; }
.payment-main .card-footnote { border-top: 1px solid #edf0f5; padding-top: 18px; margin: 22px 0 0; font-size: 11px; color: #7a8799; }
.order-details { background: #f7f9fc; border: 1px solid #e8edf4; border-radius: 8px; padding: 18px; margin: 22px 0; }
.payment-main #order-summary { margin: 12px 0 0; font-size: 14px; font-weight: 600; line-height: 1.9; overflow-wrap: anywhere; }
.order-actions { display: grid; gap: 10px; }
.verification-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #edf0f5; color: #7a8799; }
.verification-note strong { font-size: 12px; font-weight: 600; color: #4b6079; }
.verification-note p { margin: 6px 0 0; font-size: 11px; }
.history-card { margin-top: 20px; }
.history-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.history-heading h2 { margin-bottom: 0; }
.payment-main #history { list-style: none; padding: 0; margin: 0; color: #64748b; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#history li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid #edf0f5; }
#history button, #refresh-history { flex-shrink: 0; border: 1px solid #d6dee8; border-radius: 6px; padding: 9px 12px; min-height: 38px; font: inherit; font-size: 11px; font-weight: 600; background: white; color: #4a5d77; }
#refresh-history span { margin-right: 3px; font-size: 15px; }
#history button:hover, #refresh-history:hover { border-color: #a5b7ce; background: #f7f9fc; }
.payment-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #e1e7ef; font-size: 11px; color: #7a8799; }
.payment-footer span span { padding: 0 8px; color: #b1bdca; }
.payment-page [hidden] { display: none !important; }
.payment-page button:disabled, .payment-page input:disabled, .payment-page select:disabled { opacity: .6; cursor: wait; }
.payment-page button:disabled:hover { transform: none; }
@media (max-width: 760px) {
  .payment-main { padding: 32px 20px 24px; }
  .payment-header-inner { min-height: 72px; padding-inline: 20px; }
  .payment-brand small, .brand-divider { display: none; }
  .header-actions { gap: 16px; }
  .login-content, .login-guide { padding: 28px; }
  .login-card, .payment-grid { grid-template-columns: 1fr; }
  .payment-main input, .payment-main select { font-size: 16px; }
  .login-guide { border-left: 0; border-top: 1px solid #e7edf6; }
  .login-guide h3 br { display: none; }
  .login-guide > p { max-width: none; }
  .payment-card { padding: 24px; }
  .login-card { padding: 0; }
  .payment-grid:has(#order-panel[hidden]) .package-card { max-width: none; }
  .payment-footer { flex-wrap: wrap; gap: 8px; margin-top: 28px; }
}
@media (max-width: 420px) {
  .payment-main { padding: 28px 16px 20px; }
  .payment-header-inner { padding-inline: 16px; }
  .payment-brand { gap: 8px; }
  .payment-brand > span { font-size: 20px; }
  .header-actions { gap: 12px; }
  .home-link { font-size: 12px; }
  .payment-main h1 { font-size: 28px; }
  .desktop-break { display: none; }
  .login-content, .login-guide, .payment-card { padding: 24px 20px; }
  .login-card { padding: 0; }
  #history li { align-items: flex-start; flex-direction: column; gap: 10px; }
  .history-heading { gap: 10px; }
  .history-heading h2 { font-size: 20px; }
  .history-heading .section-kicker { font-size: 9px; letter-spacing: 1px; }
  .provider-note small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .payment-page { scroll-behavior: auto; } .payment-page input, .payment-page select { transition: none; } }
