:root{--bg:#f5f7fb;--panel:#fff;--text:#253047;--muted:#778398;--border:#e8edf4;--accent:#2563eb;--hover:#f8fafc;--selected:#edf4ff;--shadow:0 2px 8px #1b2b4b04;color-scheme:light}
:root[data-theme=dark]{--bg:#101827;--panel:#182235;--text:#e5ebf5;--muted:#9caac0;--border:#2a374d;--accent:#82b0ff;--hover:#202d42;--selected:#243856;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;font:14px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}[hidden]{display:none!important}
.topbar{position:fixed;inset:0 0 auto;height:78px;background:var(--panel);border-bottom:1px solid var(--border);z-index:40;display:flex;align-items:center;justify-content:space-between;padding:0 32px;box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:13px;font-size:20px;font-weight:650;color:var(--text)}.brand:hover{text-decoration:none}.brand-mark{background:#2563eb;color:#fff;display:grid;place-items:center;width:45px;height:45px;border-radius:13px;font-size:19px;letter-spacing:-1px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);margin-top:3px}.top-actions{display:flex;gap:20px;align-items:center}.top-actions form{margin:0}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#27ae80;flex-shrink:0}.icon-button{border:0;background:transparent;color:var(--muted);font-size:23px;width:36px;height:36px;padding:0;min-height:36px}.avatar{display:grid;place-items:center;background:var(--selected);color:var(--accent);width:36px;height:36px;border-radius:50%;font-weight:600}
.sidebar{position:fixed;top:102px;bottom:24px;left:24px;width:236px;padding:16px 12px;background:var(--panel);border:1px solid var(--border);border-radius:13px;overflow:auto;box-shadow:var(--shadow);display:flex;flex-direction:column}.nav-label{font-size:10px;letter-spacing:.8px;color:var(--muted);font-weight:650;padding:22px 14px 8px}.nav-label:first-child{padding-top:6px}.nav-item{display:flex;gap:12px;align-items:center;color:var(--text);padding:11px 14px;border-radius:7px;font-size:13px;margin:2px 0}.nav-item span{font-size:20px;width:20px;text-align:center;color:var(--muted);line-height:20px}.nav-item:hover{background:var(--hover);text-decoration:none}.nav-item.selected{background:var(--selected);color:var(--accent);font-weight:600}.nav-item.selected span{color:var(--accent)}.sidebar-footer{font-size:11px;color:var(--muted);margin:auto 12px 0;padding-top:24px}.sidebar-footer:before{content:"";display:block;border-top:1px solid var(--border);margin-bottom:20px}.sidebar-footer strong{display:block;font-size:12px;font-weight:500;color:var(--text);overflow-wrap:anywhere;line-height:1.7}.account-label{display:block;font-size:9px;letter-spacing:.6px;margin-bottom:8px}.sidebar-footer small{display:flex;gap:8px;align-items:center;margin-top:16px;font-size:10px}.sidebar-footer p{font-size:11px;margin:8px 0}
main{margin:78px 0 0 284px;padding:30px 32px 24px 0;min-height:calc(100vh - 78px);max-width:1800px}.content-panel,.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}.content-panel{padding:28px;min-width:0}.content-panel>h1{margin-bottom:24px}.content-panel>p{margin:12px 0 20px}.content-panel>code{display:block;margin:12px 0 20px}h1{font-size:26px;font-weight:650;letter-spacing:-.6px;line-height:1.3;margin:0 0 8px}h2{font-size:17px;font-weight:600;margin:28px 0 14px}p{color:var(--muted);line-height:1.7}code{font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}strong{font-weight:600}.table{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:11px;font-weight:600;color:var(--muted);white-space:nowrap;background:var(--hover);padding:16px 18px;border-bottom:1px solid var(--border)}td{padding:18px;border-bottom:1px solid var(--border);line-height:1.8;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--hover)}td strong{display:block;font-size:13px}td br{display:none}td code{display:inline-block;margin-top:4px}.table-actions{display:flex;gap:12px;flex-wrap:wrap;white-space:nowrap}.empty-cell{text-align:center;padding:50px 24px;color:var(--muted)}
form p{margin:20px 0;max-width:640px}label{display:block;font-size:12px;font-weight:500;color:var(--text);line-height:1.7}input,select,textarea{display:block;margin:8px 0 0;background:var(--panel);color:var(--text);border:1px solid var(--border);padding:11px 12px;border-radius:6px;width:100%;max-width:540px;min-height:42px}input:focus,select:focus,textarea:focus{border-color:var(--accent);outline:2px solid var(--selected)}input[type=checkbox],input[type=radio]{display:inline-block;width:17px;height:17px;min-height:0;max-width:none;vertical-align:middle;margin:0 8px 0 0;accent-color:#2563eb}input[type=checkbox]+label{display:inline}input[type=hidden]{display:none}input[name=source],input[name=target],input[name=key]{font-family:ui-monospace,Consolas,monospace}.helptext,small{font-size:11px;color:var(--muted);line-height:1.7}.helptext{display:block;margin-top:8px}.helptext ul{padding-left:18px}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;background:#2563eb;color:#fff;font-weight:500;border-radius:6px;padding:11px 17px;font-size:12px;min-height:40px}button:hover,.button:hover{filter:brightness(.96);text-decoration:none}.secondary{background:var(--panel);color:var(--muted);border-color:var(--border)}.top-actions .button{min-height:34px;padding:8px 12px}.message{background:var(--selected);color:var(--accent);border:1px solid var(--border);border-radius:8px;padding:14px 18px;font-size:13px;margin:0 0 24px;line-height:1.7;overflow-wrap:anywhere}.message.error,.errorlist{color:#b63c3c}.message.error{background:#fff0ef}:root[data-theme=dark] .message.error{background:#412b32;color:#ffb8b8}.errorlist{padding-left:20px;font-size:12px;line-height:1.8}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}.page-heading p{font-size:13px;margin:6px 0 0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.stat{padding:24px;display:flex;justify-content:space-between;align-items:start}.stat:hover{text-decoration:none}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{display:block;font-size:32px;font-weight:600;margin-top:12px;letter-spacing:-1px}.stat-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;font-style:normal;font-size:23px;background:var(--selected);color:var(--accent)}.card-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;gap:16px;border-bottom:1px solid var(--border)}.card-body{padding:20px 24px}.card-body>p{margin:0}.card-body .payment-form>p:first-of-type{margin-top:0}.card-heading h2{margin:0;font-size:16px}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs a{display:inline-flex;padding:8px 12px;font-size:12px;border-radius:6px;color:var(--muted)}.tabs a.selected{color:var(--accent);background:var(--selected);font-weight:600}.badge{display:inline-block;border-radius:5px;padding:4px 8px;font-size:10px;white-space:nowrap;background:var(--selected);color:var(--accent)}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:18px 24px;font-size:12px;border-top:1px solid var(--border)}.pagination span{margin-right:auto;color:var(--muted)}.pagination a{padding:6px 12px;border:1px solid var(--border);border-radius:6px}.page-purchase form,.page-transfer form,.page-key_settings form{max-width:680px}.page-purchase form>p:has(input[type=radio]){border:1px solid var(--border);border-radius:8px;padding:18px;max-width:600px;background:var(--hover)}.page-purchase form>p:has(input[type=radio]:checked){border-color:var(--accent);background:var(--selected)}.page-login .content-panel,.page-register .content-panel,.page-password_reset .content-panel,.page-password_reset_confirm .content-panel{max-width:560px;margin:40px auto}.page-login form button,.page-register form button{min-width:160px}footer{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;margin:28px 0 0;gap:16px}.mobile-menu{display:none}.menu-backdrop{display:none}
@media(max-width:1200px){main{margin-left:252px;padding-right:20px}.sidebar{width:216px;left:16px}.topbar{padding:0 24px}.stats{gap:12px}.stat{padding:20px}}
@media(max-width:900px){.mobile-menu{display:block}.topbar{height:68px;padding:0 16px;gap:8px}.brand{font-size:17px;margin-right:auto;gap:10px}.brand-mark{width:36px;height:36px}.top-actions{gap:8px}.sidebar{display:none;top:80px;bottom:14px;z-index:35;width:250px;box-shadow:0 10px 40px #0003}.sidebar.open{display:flex}.menu-backdrop:not([hidden]){display:block;position:fixed;inset:68px 0 0;border:0;background:#10182760;border-radius:0;z-index:30;width:100%;height:calc(100% - 68px)}main{margin:68px 0 0;padding:24px 18px}.content-panel{padding:24px}.page-heading{align-items:start}.stat-icon{display:none}.page-login .content-panel,.page-register .content-panel{margin:24px auto}}
@media(max-width:540px){.avatar{display:none}.brand{font-size:15px}.brand small{font-size:8px}.topbar{padding:0 12px}.top-actions .button{font-size:11px;padding:7px 9px}.top-actions .icon-button{width:28px}.stats{grid-template-columns:1fr;gap:10px;margin-bottom:20px}.stat{padding:16px 18px;align-items:center}.stat div{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px}.stat strong{margin:0;font-size:27px}.page-heading{flex-direction:column;gap:14px;margin-bottom:20px}h1{font-size:23px}.content-panel{padding:20px}.card-heading{padding:16px;flex-wrap:wrap}.card-heading h2{font-size:15px}.card-body{padding:16px}main{padding:22px 14px}.table-actions{flex-direction:column;gap:4px}th,td{padding:14px}footer>span:last-child{display:none}input,select,textarea{font-size:16px}.page-login .content-panel,.page-register .content-panel{margin:12px auto}form button{max-width:100%}}

.key-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}.key-filter label{color:var(--muted);font-size:12px}.key-filter select{width:auto;margin:0;min-height:34px;padding:7px 10px;font-size:12px}.key-filter .button{min-height:34px;padding:7px 12px}.license-change{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.license-change>span:first-child{color:var(--muted)}.license-change strong{font-size:12px}.expiry-delta{display:inline-block;font-size:11px;margin-top:5px;color:var(--muted)}.expiry-delta.added{color:#208154}.expiry-delta.removed{color:#c14b49}:root[data-theme=dark] .expiry-delta.added{color:#6bd8a4}:root[data-theme=dark] .expiry-delta.removed{color:#ffaaa6}

.expiry-badge{font-size:11px}.expiry-green{background:#e7f6ee;color:#208154}.expiry-yellow{background:#fff4cc;color:#8a6300}.expiry-red{background:#fff0ef;color:#c14b49}.expiry-purple{background:#f1ebfd;color:#8054b7}.expiry-status-text{display:block;margin-top:4px;font-size:10px;color:var(--muted);white-space:nowrap}:root[data-theme=dark] .expiry-green{background:#153b30;color:#7de1b0}:root[data-theme=dark] .expiry-yellow{background:#4b3c12;color:#ffe08a}:root[data-theme=dark] .expiry-red{background:#482c34;color:#ffaaa6}:root[data-theme=dark] .expiry-purple{background:#342744;color:#d2b4ff}
.bonus-spend-form{max-width:560px}.bonus-spend-form input{max-width:none}.bonus-spend-form .payment-submit{margin:0;width:auto;min-width:200px;min-height:42px;padding:10px 16px;font-size:14px;font-weight:600;text-transform:none;box-shadow:none}.bonus-form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.bonus-archive-confirm>p{margin:0 0 16px}.bonus-archive-confirm>p:last-child{margin:18px 0 0}@media(max-width:540px){.bonus-spend-form{max-width:none}}


.history-operation{min-width:130px}.history-operation>span{font-weight:500}.history-operation small{display:block;margin-top:5px;font-size:10px;line-height:1.7}.history-table{table-layout:auto}.history-table td:first-child{white-space:nowrap}.history-table code,.history-operation small{white-space:nowrap;overflow-wrap:normal}.history-table .license-change{flex-wrap:nowrap;white-space:nowrap}.transfer-direction>span{display:block}.history-table .transfer-direction code{display:inline;margin:0;font-size:inherit}

.key-page-actions{margin:20px 0}.key-page-actions{align-items:center}.key-page-actions form{margin:0}.license-result{margin-top:24px}

.sidebar-links{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}.sidebar-links a{font-size:12px;line-height:1.6;overflow-wrap:anywhere}

.payment-form{max-width:620px}.gateway-options{border:0;padding:0;margin:24px 0}.gateway-options legend{font-size:13px;font-weight:600;margin-bottom:10px}.gateway-option{display:flex;align-items:center;gap:12px;border:1px solid var(--border);padding:15px 18px;border-radius:9px;margin:10px 0;cursor:pointer;background:var(--panel)}.gateway-option:has(input:checked){border-color:var(--accent);background:var(--selected)}.gateway-option input[type=radio]{flex:0 0 18px;margin:0}.gateway-option strong{font-size:13px}.gateway-option small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.payment-review{max-width:560px;margin:24px auto 0}.payment-receipt{padding:28px 30px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #1020400a;font-family:ui-monospace,Consolas,monospace}.receipt-heading{display:flex;flex-direction:column;align-items:center;gap:7px;margin:0 0 24px;padding:0 0 24px;border-bottom:1px dashed var(--border);color:var(--text);font-size:12px}.receipt-heading strong{font-size:21px;letter-spacing:3px}.receipt-heading span{font-size:12px;color:var(--muted)}.receipt-item{display:flex;flex-direction:column;gap:10px;padding-bottom:22px;overflow-wrap:anywhere;line-height:1.7}.receipt-item strong{font-size:13px}.receipt-item>span{font-size:11px;color:var(--muted)}.receipt-details{padding:20px 0;margin:0;border-top:1px dashed var(--border);font-size:11px}.receipt-details>div{display:flex;justify-content:space-between;gap:20px;margin:12px 0;line-height:1.6}.receipt-details dt{color:var(--muted);flex-shrink:0}.receipt-details dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}.receipt-details code{font-size:10px}.receipt-total{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:2px dashed var(--border);padding-top:22px}.receipt-total>span{font-size:16px;font-weight:700}.receipt-total>strong{font-size:26px;white-space:nowrap}.receipt-caption{font:11px/1.6 Inter,sans-serif;margin-top:18px!important;text-align:center}.receipt-confirm,.payment-state{margin-top:24px}.receipt-confirm>button,.payment-state form>button{width:100%}.receipt-confirm>a{display:block;text-align:center;margin-top:18px;font-size:12px}.receipt-confirm input[type=checkbox]+label{display:inline}.license-check-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:32px;align-items:start;margin-top:24px}.license-check-form p:first-child{margin-top:0}.lookup-actions{display:flex;gap:10px;flex-wrap:wrap}.license-status-card{border:1px solid var(--border);border-radius:12px;padding:20px 24px;background:var(--hover)}.license-status-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:0;font-size:12px;color:var(--muted)}.license-status-heading>code{display:block;overflow-wrap:anywhere;font-size:11px}.license-days{display:flex;gap:12px;align-items:baseline;font-size:58px;font-weight:650;line-height:1.3;margin:24px 0 10px;letter-spacing:-2px}.license-days small{font-size:12px;letter-spacing:0;color:var(--muted);font-weight:400}.license-expiry-date{display:flex;flex-direction:column;gap:6px;margin-top:14px;color:var(--muted);font-size:12px}.license-expiry-date strong{color:var(--text);font-size:19px;font-weight:600}.license-status-card>.button{display:inline-flex;margin-top:24px}.status-green{border-color:#8acfa7}.status-green .license-days{color:#208154}.status-yellow{border-color:#dfbe59}.status-yellow .license-days{color:#8a6300}.status-red{border-color:#e5aaa5}.status-red .license-days{color:#c14b49}.status-purple .license-days{color:#8054b7}.license-status-empty{text-align:center;padding:42px 24px}.license-status-empty h2{font-size:17px;margin:14px 0 8px}.license-status-empty p{font-size:12px}.license-empty-icon{font-size:38px;color:var(--muted)}:root[data-theme=dark] .status-green .license-days{color:#7de1b0}:root[data-theme=dark] .status-yellow .license-days{color:#ffe08a}:root[data-theme=dark] .status-red .license-days{color:#ffaaa6}
@media(max-width:1000px){.license-check-layout{grid-template-columns:1fr}.license-status-card{max-width:620px}}@media(max-width:540px){.payment-receipt{padding:22px 18px}.receipt-details>div{gap:10px}.receipt-total>strong{font-size:23px}.payment-review{margin-top:20px}.license-days{font-size:48px}}

.payment-form{max-width:560px}.payment-field{margin:20px 0;position:relative}.payment-field label{font-size:14px;font-weight:600}.payment-field input,.payment-field select{max-width:none;margin-top:7px}.payment-field .helptext{margin-top:4px;font-size:12px}.payment-contacts{display:grid;grid-template-columns:1fr 1fr;gap:20px}.payment-contacts .payment-field{margin:0}.payment-form .gateway-options{margin:24px 0 20px}.payment-form .gateway-options legend{font-size:14px}.payment-consent{margin:20px 0 24px}.payment-consent>label{display:flex;gap:10px;align-items:flex-start;font-size:13px;font-weight:400;cursor:pointer}.payment-consent input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}.payment-submit{display:flex;margin:0 auto;min-width:236px;min-height:52px;background:#16a34a;font-size:17px;font-weight:700;text-transform:uppercase;box-shadow:0 6px 14px #16a34a20}.payment-submit:hover{background:#15803d}@media(max-width:480px){.payment-contacts{grid-template-columns:1fr;gap:20px}.payment-submit{width:100%;min-width:0}}

.receipt-confirm .receipt-edit{margin-top:12px}

.gateway-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gateway-grid .gateway-option{margin:0;padding:14px;min-width:0}.gateway-grid .gateway-option>span{min-width:0;overflow-wrap:anywhere}

.license-check-layout:not(.has-result){display:block}.license-check-form{max-width:640px}.license-period{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:14px}.license-period .license-days{font-size:44px;margin:0;gap:10px}.license-period .license-expiry-date{margin:0;gap:5px}.license-period .license-expiry-date strong{font-size:18px}.license-status-card>.button{margin-top:22px}.license-check-form .errorlist{margin:8px 0;padding-left:18px}

.license-result-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.license-result-actions form{margin:0}

.license-not-found{padding:28px}.license-not-found h2{margin:0;font-size:19px}.license-not-found p{margin:12px 0 0;font-size:12px}

.topbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);gap:20px}.topbar>.brand{grid-column:1;justify-self:start;min-width:0;max-width:100%}.brand-logo{display:block;width:auto;max-width:100%;height:38px;object-fit:contain;object-position:left center}.site-heading{grid-column:2;text-align:center;font-size:26px;font-weight:650;line-height:1.2;letter-spacing:-.4px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.top-actions{grid-column:3;justify-self:end}@media(max-width:900px){.topbar{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}.topbar>.brand{display:none}.mobile-menu{grid-column:1}.site-heading{font-size:22px}.top-actions{grid-column:3}}@media(max-width:540px){.site-heading{font-size:20px}.topbar{gap:6px}}

.registration-form{max-width:540px}.password-strength{margin-top:10px}.password-strength meter{display:block;width:100%;height:8px;appearance:none;border:0;border-radius:5px;overflow:hidden;background:var(--border)}.password-strength meter::-webkit-meter-bar{background:var(--border);border:0;border-radius:5px}.password-strength meter::-webkit-meter-optimum-value{background:#b63c3c;border-radius:5px}.password-strength meter[data-level="2"]::-webkit-meter-optimum-value{background:#d49a25}.password-strength meter[data-level="3"]::-webkit-meter-optimum-value,.password-strength meter[data-level="4"]::-webkit-meter-optimum-value{background:#208154}.password-strength meter::-moz-meter-bar{background:#b63c3c}.password-strength meter[data-level="2"]::-moz-meter-bar{background:#d49a25}.password-strength meter[data-level="3"]::-moz-meter-bar,.password-strength meter[data-level="4"]::-moz-meter-bar{background:#208154}.password-strength>span{display:block;margin-top:5px;font-size:12px;color:var(--muted)}

.table-actions:has(.key-actions-toggle){align-items:center;flex-direction:row;flex-wrap:nowrap}.key-actions-toggle{width:36px;height:36px;min-height:36px;padding:0;background:var(--panel);color:var(--muted);border-color:var(--border);font-size:24px;line-height:1;border-radius:8px}.key-actions-toggle:hover,.key-actions-toggle[aria-expanded="true"]{color:var(--accent);background:var(--selected);border-color:var(--accent)}.key-actions-popover{z-index:100;position:fixed;inset:auto;margin:0;width:208px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow-y:auto;padding:6px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--text);box-shadow:0 12px 36px #10204026}.key-actions-popover:not([hidden]){display:flex;flex-direction:column}.key-actions-popover a{display:block;padding:10px 12px;border-radius:6px;font-size:13px;line-height:1.5;color:var(--text);white-space:nowrap}.key-actions-popover a:hover,.key-actions-popover a:focus-visible{background:var(--selected);color:var(--accent);text-decoration:none;outline:none}

.payment-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.payment-date{white-space:nowrap}.payment-status{white-space:normal;line-height:1.5}
.payment-status-created{background:#e8edf4;color:#46546b}.payment-status-pending{background:#fff4cc;color:#805b00}.payment-status-paid{background:#e6efff;color:#2456a6}.payment-status-fulfilled{background:#e7f6ee;color:#1c7049}.payment-status-canceled{background:#fff0ef;color:#ac3634}.payment-status-test_paid{background:#f1ebfd;color:#7146a5}
:root[data-theme=dark] .payment-status-created{background:#2a374d;color:#c3cddd}:root[data-theme=dark] .payment-status-pending{background:#4b3c12;color:#ffe08a}:root[data-theme=dark] .payment-status-paid{background:#203859;color:#a6c8ff}:root[data-theme=dark] .payment-status-fulfilled{background:#153b30;color:#7de1b0}:root[data-theme=dark] .payment-status-canceled{background:#482c34;color:#ffaaa6}:root[data-theme=dark] .payment-status-test_paid{background:#342744;color:#d2b4ff}
.nav-item .fa-solid{font-size:17px}.button .fa-solid{margin-right:5px}

.history-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;margin:0 0 24px;padding:20px;background:var(--hover);border:1px solid var(--border);border-radius:10px}
.history-filter-field{flex:1 1 160px;min-width:0}.history-filter-key{flex:2 1 280px}.history-filter-field label{margin-bottom:6px;color:var(--muted)}.history-filter-field input{width:100%;max-width:none;min-width:0;height:44px;margin:0}.history-filter-actions{display:flex;gap:8px;flex-wrap:wrap}.history-filter-actions .button{height:44px;white-space:nowrap}.history-filter-errors{flex-basis:100%}.history-filters .errorlist{margin:6px 0 0}
@media(max-width:600px){.history-filters{padding:16px;gap:14px}.history-filter-key{flex-basis:100%}.history-filter-field:not(.history-filter-key){flex-basis:calc(50% - 7px)}.history-filter-actions{flex-basis:100%}.history-filter-actions .button{flex:1}}
@media(max-width:380px){.history-filter-field:not(.history-filter-key){flex-basis:100%}}

.profile-form{max-width:660px;margin-top:0}.profile-section{min-width:0;margin:0 0 24px;padding:20px 24px 24px;border:1px solid var(--border);border-radius:10px}.profile-section legend{padding:0 8px;font-size:15px;font-weight:600}.profile-field{margin-top:18px}.profile-field input{max-width:none}.profile-email{display:flex;flex-direction:column;gap:6px;margin-top:8px;overflow-wrap:anywhere}.profile-email>span{font-size:12px;color:var(--muted)}.profile-email strong{font-size:14px}.profile-section .profile-caption{margin:4px 0 0;font-size:12px}.profile-field .errorlist{margin:6px 0 0}
@media(max-width:600px){.profile-section{padding:16px}}

.cart-payment-form{max-width:980px}button:disabled{cursor:default;opacity:.45}.bank-buyer{padding:16px 20px;border:1px solid var(--border);border-radius:9px;margin:20px 0}.bank-buyer h2{margin-top:0}.bank-buyer p{margin:0}.receipt-lines{margin-bottom:20px}.receipt-lines>div{padding:14px 0;border-bottom:1px dashed var(--border)}.receipt-lines strong{display:block;overflow-wrap:anywhere}.receipt-line-amount{display:block;text-align:right;margin-top:8px}


.cart-table-wrap{max-width:100%;overflow-x:auto;margin:24px 0 16px;border:1px solid var(--border);border-radius:9px}.cart-table{table-layout:fixed;width:100%}.cart-key{position:relative}.cart-key-column{width:53%}.cart-action-column{width:58px}.cart-table th,.cart-table td{padding:12px;vertical-align:top}.cart-table input,.cart-table select{width:100%;max-width:none;min-width:0;height:44px;margin:0}.cart-table .cart-remove{width:34px;min-height:44px;padding:0;margin:0}.cart-table .errorlist{padding-left:16px;margin:6px 0 0}.gateway-grid-1{grid-template-columns:1fr}.gateway-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:650px){.cart-table th,.cart-table td{padding:8px}.cart-action-column{width:48px}.cart-table input,.cart-table select{font-size:12px;padding:8px}.gateway-grid-3{grid-template-columns:1fr}}

.guest-payment-license{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;margin:20px 0}.guest-payment-license .payment-field{min-width:0;margin:0}.guest-payment-license input,.guest-payment-license select{width:100%;min-width:0;height:44px}
body.guest-embed{background:transparent}.guest-embed main{margin:0;padding:12px;max-width:none;min-height:0}.guest-embed .content-panel{max-width:800px;margin:0 auto;padding:20px;border:0;border-radius:0;box-shadow:none}.guest-embed .payment-form{max-width:none}.guest-embed .content-panel>h1{margin-bottom:20px}
@media(max-width:600px){.guest-embed main{padding:0}.guest-embed .content-panel{padding:16px}}

.profile-inn-row{display:flex;align-items:stretch;gap:12px;margin-top:8px}.profile-inn-row input{flex:1;min-width:0;width:0;margin:0;min-height:44px}.profile-inn-row button{flex:0 0 auto;margin:0;min-height:44px;max-width:55%;white-space:normal}.profile-inn-row button:disabled{opacity:.55;cursor:not-allowed}

.bulk-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 24px;background:var(--hover);border-bottom:1px solid var(--border)}.bulk-actions[hidden]{display:none}.bulk-actions select{width:auto;margin:0;min-width:130px}.bulk-actions label{margin:0}.key-selection{width:1%;white-space:nowrap}.key-selection input[type=checkbox]{margin:0;cursor:pointer}.key-selection input:disabled{cursor:default;opacity:.4}

.bonus-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.bonus-actions .bonus-toggle:disabled{filter:none}.bonus-toggle{min-height:38px;padding:9px 16px;font-weight:600;white-space:nowrap}.bonus-how-to{max-width:100%;min-height:38px;padding:9px 12px;font-size:11px;line-height:1.3;white-space:normal;text-align:center}.bonus-cards{display:flex;flex-direction:column;gap:24px}@media(max-width:540px){.stat .bonus-actions{width:auto;gap:8px;justify-content:flex-end}}

.license-hint{position:absolute;top:0;right:0}.license-hint:empty{display:none}.license-permanent-note{font-size:12px;margin:12px 0 0}
