:root { font-family: "Avenir Next", "Helvetica Neue", sans-serif; color: #17221f; background: #f6f7f7; font-synthesis: none; --green: #0c5b4e; --muted: #57625e; --line: #dce2df; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
.portal { width: min(100%, 680px); min-height: 100svh; margin: auto; padding: 32px 24px 20px; background: #fff; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 32px; color: var(--green); }
.brand-icon { width: 32px; height: 32px; flex: 0 0 auto; }
.brand a { font-size: 24px; font-weight: 750; letter-spacing: -.5px; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 23px; line-height: 1.3; font-weight: 650; letter-spacing: -.4px; text-align: center; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 18px; }
.purchase-help { margin: 10px auto 24px; max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.package { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px 16px 16px; border: 1px solid var(--line); border-radius: 8px; }
.package-name { color: var(--muted); font-size: 12px; line-height: 1.4; }
.package-duration { color: var(--green); font-size: 18px; font-weight: 650; line-height: 1.3; }
.package-price { font-weight: 750; font-size: 30px; letter-spacing: -.7px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.package-price .currency { font-size: 13px; letter-spacing: 0; font-weight: 500; margin-right: 5px; }
.package-speed { color: var(--muted); font-size: 12px; line-height: 1.4; }
button:not(.text-button, .close-button) { min-height: 46px; padding: 11px 16px; background: var(--green); border: 1px solid var(--green); color: white; border-radius: 6px; font-size: 14px; font-weight: 650; transition: background-color 150ms ease, border-color 150ms ease; }
button:not(.text-button, .close-button):hover:enabled { background: #083e36; }
button:disabled { cursor: not-allowed; opacity: .55; }
.package button { margin-top: auto; }
.secondary:not(.text-button) { background: white !important; color: var(--green) !important; border-color: #bccbc4 !important; }
.secondary:not(.text-button):hover:enabled { background: #f0f5f2 !important; border-color: var(--green) !important; }
.reconnect-section { display: grid; gap: 12px; justify-items: center; padding: 26px 0; margin-top: 24px; border-top: 1px solid var(--line); }
.reconnect-section h2 { font-size: 15px; font-weight: 500; color: var(--muted); }
.reconnect-section button { width: min(100%, 320px); }
footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
footer .staff-link { flex: 0 0 100%; text-align: center; margin-top: 6px; color: var(--muted); font-size: 11px; }
.pending-payment { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px; margin: 0 0 16px; border: 1px solid var(--line); background: #f0f5f2; border-radius: 6px; font-size: 13px; }
.text-button { padding: 6px 0; background: transparent; border: 0; color: var(--green); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #17221f; overflow-y: auto; }
dialog::backdrop { background: rgba(15, 24, 20, .5); }
dialog[open] { animation: appear 150ms ease; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.close-button { width: 36px; height: 36px; margin: -4px -6px -4px 0; color: var(--muted); font-size: 28px; line-height: 1; background: transparent; border: 0; border-radius: 6px; }
.close-button:hover { background: #f1f3f2; }
.checkout-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf9; }
.checkout-summary > span:first-child { font-size: 15px; font-weight: 650; }
#selected-price { font-size: 18px; font-weight: 750; white-space: nowrap; }
#selected-details { grid-column: 1 / -1; font-size: 13px; }
form > label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #87998e; border-radius: 6px; background: #fff; color: #17221f; font-size: 16px; }
:focus-visible { outline: 3px solid #94bbaa; outline-offset: 3px; }
.hint { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
form > button { width: 100%; margin-top: 20px; }
.message { margin-top: 16px; font-size: 13px; line-height: 1.6; color: #9c3329; }
.message:empty { display: none; }
.result { padding-top: 8px; }
.result p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 10px; }
.result dl { margin: 20px 0 0; border-top: 1px solid var(--line); }
.result dl div { display: grid; gap: 4px; padding-top: 12px; }
.result dt { color: var(--muted); font-size: 12px; }
.result dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.result button { width: 100%; margin-top: 20px; }
.reconnect-message { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
#retry-reconnect { width: 100%; margin-top: 12px; }
.muted { color: var(--muted); }
.packages > .muted { grid-column: 1 / -1; padding: 24px 0; text-align: center; font-size: 14px; }
@media (min-width: 720px) { .portal { min-height: auto; margin: 32px auto; border: 1px solid var(--line); border-radius: 8px; padding: 32px; } }
@media (max-width: 380px) { .portal { padding: 24px 16px 16px; } h1 { font-size: 21px; } .package { padding: 16px 12px 12px; } .package-price { font-size: 27px; } .package button { padding-inline: 8px; } dialog { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
