.offer-dialog {
    width: min(610px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 46px;
    border: 1px solid #33383f;
    border-radius: 14px;
    background: #101216;
    color: var(--foreground);
    box-shadow: 0 40px 140px #000c;
    overflow: auto;
}
.offer-dialog::backdrop { background: #020305c9; backdrop-filter: blur(9px); }
.offer-close { position: absolute; right: 12px; top: 10px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #bcc2c8; font-size: 30px; cursor: pointer; }
.offer-close:hover { background: #ffffff12; color: #fff; }
body:has(.offer-dialog[open]) { overflow: hidden; }
.commerce-header { max-width: 1280px; padding: 30px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.commerce-home { color: var(--muted); font-size: 12px; line-height: 1.5; }
.commerce-main { width: min(640px, calc(100% - 40px)); margin: 46px auto 64px; }
.commerce-panel { padding: 42px; background: #101216; border: 1px solid #2d3036; border-radius: 14px; }
.commerce-panel:has(.setup-steps-list) { padding: 40px; }
.commerce-footer { padding: 0 24px 32px; color: #969da6; text-align: center; font-size: 11px; line-height: 1.9; }
.commerce-loading { padding: 36px 0; color: var(--muted); text-align: center; line-height: 1.7; }
.commerce-root h1, [data-commerce-root] h1, [data-commerce-root] h2 { margin: 16px 0 12px; font-size: clamp(27px, 4.5vw, 36px); line-height: 1.17; letter-spacing: -.045em; font-weight: 650; }
[data-commerce-root] p { line-height: 1.65; }
.offer-intro { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.offer-discount { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: #d4d8dd; }
.offer-discount-value { flex-shrink: 0; padding: 8px 10px; border: 1px solid #454b54; border-radius: 5px; background: #ffffff06; color: #e3e9ee; font-size: 20px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.offer-discount-value span { font-size: inherit; }
.offer-discount-copy { display: grid; gap: 3px; min-width: 0; line-height: 1.5; }
.offer-discount-copy > span { color: #a9b0b9; font-size: 12px; }
.offer-discount-copy > strong { font-size: 14px; font-weight: 500; }
.offer-discount-copy > small { color: #a9b0b9; font-size: 12px; }
.offer-price-block { padding: 23px 0; border-block: 1px solid #ffffff16; }
.offer-price-line { display: flex; align-items: flex-end; gap: 27px; flex-wrap: wrap; }
.offer-price-before { display: grid; gap: 10px; padding-bottom: 7px; }
.offer-price-before > span, .offer-price-label { color: #bfc5ce; font-size: 11px; line-height: 1.4; }
.offer-price-current { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.offer-price-label { flex-basis: 100%; color: #fff; font-weight: 600; }
.offer-price { font-size: clamp(46px, 8vw, 60px); letter-spacing: -.055em; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; }
.offer-reference { color: #969da6; font-size: 21px; }
.offer-interval { font-size: 16px; color: #bcc2c8; letter-spacing: -.03em; }
.offer-commitment { display: block; margin-top: 10px; font-size: 16px; line-height: 1.5; color: #fff; font-weight: 650; }
.offer-billing-detail { display: block; margin-top: 5px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.offer-features { padding: 0; margin: 22px 0 24px; list-style: none; display: grid; gap: 10px; font-size: 13px; color: #d4d8dd; }
.offer-features li { display: flex; align-items: baseline; gap: 10px; line-height: 1.45; }
.offer-features li::before { content: '✓'; color: #ff8a82; }
.commerce-form { display: grid; gap: 10px; }
.commerce-label { font-size: 12px; font-weight: 600; line-height: 1.5; }
.commerce-input { min-width: 0; width: 100%; min-height: 49px; padding: 13px 14px; border: 1px solid #454b54; border-radius: 5px; background: #090b0e; color: #fff; font: inherit; font-size: 16px; }
.commerce-input::placeholder { color: #808791; }
.commerce-input:focus-visible { outline: 2px solid #ff8a82; outline-offset: 3px; }
.commerce-button { display: flex; align-items: center; justify-content: center; min-height: 52px; width: 100%; padding: 15px 19px; border: 1px solid transparent; border-radius: 5px; background: #dc3028; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.4; cursor: pointer; transition: background 140ms ease; }
.commerce-button:hover { background: #c8261f; }
.commerce-button:disabled { cursor: wait; opacity: .62; }
.commerce-button.secondary { background: #ffffff09; border-color: #525860; }
.commerce-button.secondary:hover { background: #ffffff14; }
.commerce-text-button { padding: 8px 0; border: 0; background: none; color: #cbd0d7; font: inherit; font-size: 12px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.offer-secondary { margin: 14px 0 0; width: 100%; text-align: center; }
.offer-fine { color: #a9b0b9; font-size: 11px; line-height: 1.7; margin: 12px 0 0; }
.offer-demo-banner { margin: 0 0 20px; padding: 10px 13px; background: #edb65911; border: 1px solid #edb65942; border-radius: 4px; color: #e9c78f; font-size: 12px; line-height: 1.6; }
.offer-trial-detail { padding: 0 0 18px; font-size: 13px; color: #d4d8dd; }
.offer-trial-detail strong { color: #fff; }
.offer-trial-detail p { margin: 8px 0; }
.offer-separator { display: flex; align-items: center; gap: 16px; color: #a0a7b0; font-size: 12px; margin: 21px 0; }
.offer-separator::before, .offer-separator::after { content: ''; flex: 1; height: 1px; background: #ffffff1a; }
.commerce-error { border: 1px solid #ff777952; border-radius: 5px; padding: 12px 14px; margin: 15px 0; background: #ff4a400d; color: #ffbdb9; font-size: 13px; line-height: 1.6; }
.commerce-success { margin: 14px 0; color: #b7dfc1; font-size: 13px; line-height: 1.65; }
.commerce-check { width: 42px; height: 42px; display: grid; place-items: center; background: #b7dfc110; color: #b7dfc1; border: 1px solid #b7dfc13a; border-radius: 50%; font-size: 23px; }
.setup-browser { margin: 24px 0; border: 1px solid #454b54; border-radius: 9px; overflow: hidden; }
.setup-browser-top { display: flex; gap: 5px; padding: 11px 13px; background: #24282f; }
.setup-browser-top span { height: 5px; width: 5px; border-radius: 50%; background: #858b94; }
.setup-domain { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 25px 16px; color: #f5f6f8; font-size: clamp(24px, 5vw, 31px); letter-spacing: -.03em; font-weight: 600; }
.setup-steps-list { list-style: none; padding: 0; margin: 27px 0; display: grid; gap: 23px; counter-reset: setup; }
.setup-steps-list li { position: relative; padding-left: 39px; counter-increment: setup; }
.setup-steps-list li::before { content: counter(setup); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #626975; border-radius: 50%; color: #c5cbd2; font-size: 12px; font-weight: 600; }
.setup-steps-list strong { display: block; font-size: 14px; line-height: 1.7; }
.setup-steps-list p { color: #b7bfc9; margin: 4px 0 0; font-size: 13px; }
.setup-code-block { padding: 20px; border: 1px solid #545962; border-radius: 6px; background: #191c22; }
.setup-code-label { display: block; font-size: 12px; color: #bfc5ce; }
.setup-code { display: block; font: 600 clamp(29px, 7vw, 44px)/1.5 'Montserrat', sans-serif; letter-spacing: .14em; font-variant-numeric: tabular-nums; margin: 5px 0; white-space: nowrap; }
.setup-code.is-legacy { font-size: clamp(25px, 6vw, 36px); }
.setup-code-expiry { display: block; font-size: 11px; color: #aab1bb; line-height: 1.6; }
.setup-email { padding-top: 24px; margin-top: 25px; border-top: 1px solid #ffffff1a; }
.setup-email h2 { font-size: 18px; margin: 0 0 7px; letter-spacing: -.02em; }
.setup-email p { font-size: 12px; color: #b7bfc9; margin: 0 0 16px; }
.setup-email-row { display: flex; gap: 9px; }
.setup-email-row .commerce-button { width: auto; flex-shrink: 0; min-height: 49px; padding: 12px 16px; }
.commerce-account { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
.commerce-checkout-total { margin: 25px 0; }
.commerce-checkout-total dt { color: #bcc2c8; font-size: 13px; margin-bottom: 8px; }
.commerce-checkout-total dd { margin: 0; font-size: 42px; letter-spacing: -.05em; font-weight: 650; }
@media (max-width: 600px) {
    .commerce-header { padding: 20px; }
    .commerce-header .wordmark { font-size: 17px; letter-spacing: 2px; gap: 8px; }
    .commerce-home { max-width: 95px; text-align: right; font-size: 11px; }
    .commerce-main { margin: 20px auto 40px; }
    .commerce-panel, .commerce-panel:has(.setup-steps-list) { padding: 27px 23px; }
    .offer-dialog { padding: 36px 23px 25px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
    .offer-discount { gap: 12px; }
    .offer-discount-copy > strong { font-size: 14px; }
    .offer-price-line { gap: 20px; }
    .setup-email-row { display: grid; }
    .setup-email-row .commerce-button { width: 100%; }
}
@media (max-width: 360px) {
    .commerce-main { width: calc(100% - 24px); }
    .commerce-panel, .commerce-panel:has(.setup-steps-list) { padding: 24px 18px; }
    .offer-dialog { padding-inline: 18px; }
    .setup-code-block { padding: 14px; }
    .offer-discount { gap: 10px; }
    .offer-discount-value { font-size: 18px; padding: 8px; }
    .offer-discount-copy > span { font-size: 11px; }
    .offer-discount-copy > strong { font-size: 13px; }
    .offer-discount-copy > small { font-size: 12px; }
    .offer-price-line { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .commerce-button { transition: none; } }
