:root {
    --fn-bg: #faf9fe; --fn-card: #fff; --fn-border: #e4e3f0;
    --fn-text: #26256c; --fn-muted: #5b6683; --fn-primary: #5558ef;
    --fn-primary-dark: #4245cb; --fn-soft: #efedff; --fn-soft-2: #f8f7fc;
    --fn-ok: #176546; --fn-ok-bg: #e7f6ee;
}
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; color: var(--fn-text); background: var(--fn-bg); }
* { box-sizing: border-box; }
a { color: var(--fn-primary-dark); text-decoration: none; }
a:hover { color: var(--fn-primary-dark); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--fn-primary); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.df-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.df-header { background: #fff; border-bottom: 1px solid var(--fn-border); }
.df-header__row { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.df-brand { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.df-brand img, .df-footer img { width: 180px; height: auto; }
.df-brand__tag { color: var(--fn-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-left: 32px; }
.df-brand:hover { text-decoration: none; }
.df-nav { display: flex; gap: 26px; align-items: center; }
.df-tab { min-height: 44px; display: inline-flex; align-items: center; color: var(--fn-muted); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.df-tab.active { color: var(--fn-primary-dark); border-color: var(--fn-primary); }
.df-tab:hover { text-decoration: none; color: var(--fn-primary-dark); }
.df-support-link { font-size: 13px; padding: 10px 18px; border: 1px solid var(--fn-border); border-radius: 28px; font-weight: 600; white-space: nowrap; }
.df-skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: #fff; padding: 12px; }
.df-skip-link:focus { top: 12px; }
.df-footer { background: #f0eef9; margin-top: 64px; color: var(--fn-muted); font-size: 13px; }
.df-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 40px; }
.df-footer h2 { color: var(--fn-text); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.df-footer p { margin: 12px 0; }
.df-footer__main > div > a { display: block; margin-block: 9px; color: var(--fn-muted); }
.df-footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; border-top: 1px solid #dcd9ef; font-size: 12px; }
.fn-page { background: transparent; }
.fn-shell { max-width: 900px; margin: 0 auto; padding: 40px 24px 0; }
.fn-card { background: var(--fn-card); border: 1px solid var(--fn-border); border-radius: 20px; box-shadow: 0 12px 40px #26256c06; overflow: hidden; }
.fn-head { display: flex; align-items: center; gap: 16px; padding: 26px 32px; border-bottom: 1px solid var(--fn-border); background: #fff; }
.fn-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--fn-soft); flex-shrink: 0; }
.fn-badge img { width: 28px; height: 28px; object-fit: contain; }
.fn-title { font-size: 24px; font-weight: 700; line-height: 1.3; }
.fn-subtitle { margin-top: 6px; font-size: 14px; color: var(--fn-muted); }
.fn-body { padding: 32px; }
.fn-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.fn-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fn-label { font-size: 13px; color: var(--fn-text); font-weight: 600; }
.fn-input { width: 100%; min-height: 48px; border: 1px solid #d6d7e7; border-radius: 10px; padding: 10px 14px; background: #fff; color: var(--fn-text); transition: border-color .18s, box-shadow .18s; }
.fn-input:focus { outline: none; border-color: var(--fn-primary); box-shadow: 0 0 0 3px #5558ef1a; }
.fn-input:disabled, .fn-input[readonly] { background: var(--fn-soft-2); color: var(--fn-muted); }
.fn-lookup-status { margin: 8px 0 0; color: var(--fn-muted); font-size: 12px; line-height: 1.6; }
.fn-lookup-spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fn-lookup-spin .8s linear infinite; }
@keyframes fn-lookup-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fn-lookup-spinner { animation: none; } }
.fn-checkout-consent { margin-top: 24px; padding: 16px 20px; background: var(--fn-soft-2); border: 1px solid var(--fn-border); border-radius: 14px; font-size: 14px; line-height: 1.7; }
.fn-consent-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.fn-consent-row input { flex: 0 0 22px; width: 22px; height: 22px; margin: 10px 0; accent-color: var(--fn-primary); cursor: pointer; }
.fn-consent-row > div { padding-block: 9px; }
.fn-consent-row label { cursor: pointer; }
.fn-checkout-consent a { color: var(--fn-primary); text-decoration: underline; text-underline-offset: 3px; }
.fn-checkout-consent > p { margin: 4px 0 0 34px; color: var(--fn-muted); font-size: 12px; line-height: 1.8; }
.fn-checkout-consent.is-invalid { border-color: #c43d59; }
.fn-checkout-consent .fn-consent-error { color: #b42342; }
.fn-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .fn-checkout-consent { padding: 14px; } }
.fn-input::placeholder { color: #717b93; }
.fn-textarea { height: auto; resize: vertical; }
.fn-btn { min-height: 48px; padding: 11px 22px; border-radius: 10px; border: 1px solid #d6d7e7; background: #fff; color: var(--fn-text); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .18s, border-color .18s, box-shadow .18s; }
.fn-btn:hover { background: var(--fn-soft); text-decoration: none; }
.fn-btn-primary { background: var(--fn-primary); border-color: var(--fn-primary); color: #fff; }
.fn-btn-primary:hover { background: var(--fn-primary-dark); border-color: var(--fn-primary-dark); color: #fff; box-shadow: 0 5px 14px #5558ef22; }
.fn-btn:disabled, .fn-icon-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.fn-hint, .fn-alert { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--fn-border); border-radius: 12px; background: var(--fn-soft-2); color: var(--fn-muted); font-size: 14px; overflow-wrap: anywhere; }
.fn-product-description { margin-top: 0; white-space: pre-wrap; }
.fn-alert { background: var(--fn-soft); border-color: #d6d2ff; color: var(--fn-text); }
.fn-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.fn-section-title { margin-top: 24px; font-weight: 700; }
.fn-result { margin-top: 24px; padding: 24px; border: 1px solid var(--fn-border); border-radius: 14px; background: var(--fn-soft-2); }
.fn-result-empty { color: var(--fn-muted); }
.fn-pill { display: inline-flex; padding: 5px 12px; border-radius: 24px; font-size: 12px; background: var(--fn-soft); color: var(--fn-primary-dark); margin-bottom: 16px; font-weight: 600; }
.fn-pill.ok { background: var(--fn-ok-bg); color: var(--fn-ok); }
.fn-result-grid { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px 16px; font-size: 14px; overflow-wrap: anywhere; }
.fn-result-grid .k { color: var(--fn-muted); }
.fn-result-grid .v { font-weight: 600; }
.fn-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.fn-col-span-2 { grid-column: span 2; }
.fn-input-group { display: flex; align-items: center; gap: 10px; }
.fn-icon-btn { min-height: 48px; width: 48px; flex-shrink: 0; border: 1px solid #d6d2ff; border-radius: 10px; background: var(--fn-soft); color: var(--fn-primary-dark); display: grid; place-items: center; cursor: pointer; }
.fn-icon-btn:hover { background: #e3dfff; }
.fn-seg { display: flex; padding: 4px; gap: 6px; background: var(--fn-soft-2); border: 1px solid var(--fn-border); border-radius: 12px; }
.fn-seg-btn { min-height: 44px; flex: 1; border: 0; border-radius: 8px; background: transparent; color: var(--fn-muted); cursor: pointer; font-weight: 600; }
.fn-seg-btn.is-active { background: #fff; color: var(--fn-primary-dark); box-shadow: 0 2px 8px #26256c10; }
.fn-price { padding: 16px; border: 1px solid var(--fn-border); border-radius: 12px; background: var(--fn-soft); font-weight: 700; }
.fn-divider { height: 1px; background: var(--fn-border); margin: 24px 0; }
.fn-required { color: #b42332; }
.fn-input.is-invalid { border-color: #b42332; box-shadow: 0 0 0 3px #b4233210; }
.fn-help-card { margin-top: 28px; padding: 22px; border: 1px solid var(--fn-border); border-radius: 14px; background: var(--fn-soft-2); }
.fn-help-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: center; }
.fn-help-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.fn-help-desc { color: var(--fn-muted); font-size: 14px; }
.fn-help-img { width: 100%; max-width: 280px; height: auto; border-radius: 10px; border: 1px solid var(--fn-border); }
.fn-serial-page { max-width: 1000px; }
.fn-serial-page .fn-card { border-radius: 24px; box-shadow: 0 16px 48px #26256c08; }
.fn-serial-page .fn-head { padding: 30px 34px; background: linear-gradient(110deg, var(--fn-card) 55%, var(--fn-soft-2)); }
.fn-serial-page .fn-badge { width: 56px; height: 56px; border-radius: 16px; }
.fn-serial-page .fn-title { font-size: 27px; letter-spacing: -.03em; }
.fn-serial-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--fn-primary-dark); margin-bottom: 7px; }
.fn-serial-page .fn-body { padding: 28px 34px 32px; }
.fn-serial-entry { padding: 22px; border: 1px solid var(--fn-border); border-radius: 16px; background: var(--fn-soft-2); }
.fn-serial-field { flex: 1; min-width: 260px; }
.fn-serial-row .fn-input { text-transform: uppercase; min-height: 52px; font-size: 15px; }
.fn-serial-row .fn-btn { min-height: 52px; }
.fn-serial-row .fn-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fn-serial-entry-tip { margin: 12px 0 0; font-size: 12px; color: var(--fn-muted); }
.fn-serial-help { margin-top: 24px; padding: 0; border: 1px solid var(--fn-border); border-radius: 16px; background: var(--fn-card); }
.fn-serial-help > summary { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 20px; cursor: pointer; list-style: none; border-radius: 16px; }
.fn-serial-help > summary::-webkit-details-marker { display: none; }
.fn-serial-help > summary:hover { background: var(--fn-soft-2); }
.fn-serial-help > summary:focus-visible { outline: 2px solid var(--fn-primary); outline-offset: -4px; }
.fn-serial-help-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; color: var(--fn-primary-dark); background: var(--fn-soft); }
.fn-serial-help svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fn-serial-help-heading { flex: 1; min-width: 0; }
.fn-serial-help-heading strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; }
.fn-serial-help-heading > span { display: block; margin-top: 4px; font-size: 12px; color: var(--fn-muted); }
.fn-serial-help-chevron { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; color: var(--fn-muted); }
.fn-serial-help-chevron svg { width: 18px; height: 18px; }
.fn-serial-help[open] > summary { border-bottom: 1px solid var(--fn-border); border-radius: 16px 16px 0 0; }
.fn-serial-help[open] .fn-serial-help-chevron svg { transform: rotate(180deg); }
.fn-serial-help-content { padding: 24px; }
.fn-serial-help-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; width: min(100%, 330px); margin-bottom: 26px; border: 1px solid var(--fn-border); border-radius: 12px; background: var(--fn-soft-2); }
.fn-serial-help-tabs button { min-height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; color: var(--fn-muted); cursor: pointer; }
.fn-serial-help-tabs button:hover { color: var(--fn-primary-dark); background: var(--fn-card); }
.fn-serial-help-tabs button[aria-selected="true"] { color: var(--fn-primary-dark); background: var(--fn-card); box-shadow: 0 2px 8px #26256c10; }
.fn-serial-help-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); align-items: start; gap: 26px; border-radius: 10px; }
.fn-serial-help-instructions h2 { margin: 0 0 20px; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.fn-serial-help-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.fn-serial-help-steps li { display: flex; align-items: flex-start; gap: 12px; }
.fn-serial-help-steps li > span { width: 25px; height: 25px; display: grid; place-items: center; flex-shrink: 0; border-radius: 8px; background: var(--fn-soft); color: var(--fn-primary-dark); font-size: 12px; font-weight: 700; }
.fn-serial-help-steps strong { display: block; font-size: 13px; line-height: 1.6; font-weight: 600; }
.fn-serial-help-steps p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--fn-muted); }
.fn-serial-help-preview { display: block; min-width: 0; }
.fn-serial-help-preview:hover { text-decoration: none; }
.fn-serial-help-image { display: block; padding: 10px; border: 1px solid var(--fn-border); border-radius: 12px; background: var(--fn-soft-2); }
.fn-serial-help-preview:hover .fn-serial-help-image { border-color: var(--fn-primary); }
.fn-serial-help-image img { display: block; width: 100%; height: auto; border: 1px solid var(--fn-border); border-radius: 7px; }
.fn-serial-help-preview-label { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin-top: 6px; font-size: 12px; font-weight: 500; }
.fn-serial-help-preview-label svg { width: 16px; height: 16px; }
@media (max-width: 750px) { .fn-serial-help-panel { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .fn-serial-page .fn-head { padding: 24px 22px; } .fn-serial-page .fn-body { padding: 22px; } .fn-serial-page .fn-title { font-size: 23px; } .fn-serial-entry { padding: 16px; } .fn-serial-field { min-width: 0; } .fn-serial-row .fn-btn { width: 100%; } .fn-serial-help > summary { padding: 16px; gap: 10px; } .fn-serial-help-heading strong { font-size: 14px; } .fn-serial-help-icon { width: 36px; height: 36px; } .fn-serial-help-chevron { width: 20px; } .fn-serial-help-content { padding: 18px; } .fn-serial-help-tabs { width: 100%; } }
.df-steps { display: flex; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0 0 28px; gap: 24px; color: var(--fn-muted); font-size: 12px; }
.df-steps li { display: flex; align-items: center; gap: 8px; }
.df-steps li > span { width: 28px; height: 28px; border: 1px solid #d6d7e7; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.df-steps .is-current { font-weight: 600; color: var(--fn-primary-dark); }
.df-steps .is-current > span { background: var(--fn-primary); color: #fff; border-color: var(--fn-primary); }
.df-steps .is-complete > span { background: var(--fn-soft); color: var(--fn-primary-dark); border-color: #d6d2ff; }
.df-checkout-note { font-size: 13px; color: var(--fn-muted); margin: 20px 0 0; }
.pay-frame-wrap { width: 100%; height: min(78vh,860px); border: 1px solid var(--fn-border); border-radius: 12px; overflow: hidden; background: #fff; }
.pay-frame { width: 100%; height: 100%; border: 0; }
.os-center { padding: 32px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.os-title { font-size: 24px; font-weight: 700; }
.os-text { max-width: 520px; color: var(--fn-muted); font-size: 15px; }
.os-icon { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: var(--fn-soft); }
.os-icon.ok { background: var(--fn-ok-bg); color: var(--fn-ok); }
.os-icon.danger { background: #fcebec; color: #b42332; }
.os-icon.warn { background: #fff4d6; color: #805700; }
.os-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #d6d2ff; border-top-color: var(--fn-primary); animation: osspin .9s linear infinite; }
@keyframes osspin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .df-header__row { flex-wrap: wrap; gap: 8px 20px; padding-block: 18px; } .df-nav { order: 3; width: 100%; justify-content: center; } }
@media (max-width: 640px) {
    .df-container { width: calc(100% - 32px); }
    .df-header__row { gap: 14px; } .df-brand img { width: 150px; } .df-support-link { font-size: 12px; padding: 10px; }
    .df-nav { justify-content: space-between; gap: 8px; } .df-tab { font-size: 12px; }
    .fn-shell { padding: 28px 16px 0; } .fn-head { padding: 22px; } .fn-body { padding: 22px; } .fn-title { font-size: 21px; }
    .fn-row { align-items: stretch; } .fn-row > .fn-field { min-width: 0 !important; flex-basis: 100% !important; }
    .fn-form-grid, .fn-help-grid { grid-template-columns: 1fr; } .fn-col-span-2 { grid-column: auto; }
    .fn-actions > .fn-btn { flex: 1 1 100%; } .fn-result-grid { grid-template-columns: 1fr; gap: 4px; } .fn-result-grid .v { margin-bottom: 12px; }
    .df-steps { gap: 12px; justify-content: space-between; align-items: flex-start; } .df-steps li { flex: 1; flex-direction: column; text-align: center; font-size: 10px; }
    .df-footer { margin-top: 40px; } .df-footer__main { grid-template-columns: 1fr; gap: 24px; } .df-footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.fn-title { margin: 0; }
.df-selected-product { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--fn-border); border-radius: 12px; background: var(--fn-soft-2); font-size: 13px; }
.df-selected-product span { display: block; color: var(--fn-muted); font-size: 11px; margin-bottom: 4px; }
.df-selected-product strong { display: block; font-weight: 600; }
.df-selected-product a { flex-shrink: 0; font-size: 12px; padding-block: 10px; }
@media (max-width: 640px) { .df-selected-product { flex-wrap: wrap; } }
.fn-confirm-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--fn-border); border-radius: 20px; color: var(--fn-text); background: var(--fn-card); box-shadow: 0 24px 80px #26256c30; overflow: auto; }
.fn-confirm-dialog::backdrop { background: #17163980; }
.fn-confirm-content { padding: 32px; }
.fn-confirm-content h2 { margin: 14px 0 8px; font-size: 25px; font-weight: 700; line-height: 1.3; }
.fn-confirm-product { color: var(--fn-muted); font-size: 14px; margin-bottom: 22px; }
.fn-confirm-message { padding: 20px; border: 1px solid var(--fn-border); border-radius: 12px; background: var(--fn-soft-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; }
.fn-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 640px) { .fn-confirm-content { padding: 24px; } .fn-confirm-content h2 { font-size: 22px; } .fn-confirm-actions .fn-btn { width: 100%; } }
