.gfxpay-lock { overflow: hidden !important; }
.gfxpay-modal[hidden] { display: none !important; }
.gfxpay-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 18px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #f5f4ff;
}
.gfxpay-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 12, .78); backdrop-filter: blur(12px); }
.gfxpay-dialog {
    position: relative;
    width: min(100%, 500px);
    max-height: min(760px, calc(100vh - 30px));
    overflow: auto;
    border: 1px solid rgba(146, 132, 255, .3);
    border-radius: 24px;
    padding: 32px;
    background: linear-gradient(145deg, rgba(29, 27, 48, .98), rgba(13, 13, 24, .99));
    box-shadow: 0 26px 90px rgba(0, 0, 0, .62), 0 0 52px rgba(115, 91, 255, .13);
}
.gfxpay-dialog.gfxpay-dialog-checkout { max-height: calc(100vh - 16px); overflow: hidden; padding: 25px 28px 22px; }
.gfxpay-dialog.gfxpay-dialog-orders { width: min(100%, 760px); overflow: auto; }
.gfxpay-dialog.gfxpay-dialog-waffo { width: min(100%, 500px); overflow: hidden; }
.gfxpay-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.gfxpay-close:hover, .gfxpay-close:focus-visible { background: rgba(255,255,255,.16); outline: 2px solid #9284ff; }
.gfxpay-kicker { margin: 0 44px 5px 0; color: #a99fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gfxpay-title { margin: 0 44px 7px 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.12; }
.gfxpay-subtitle { margin: 0 0 16px; color: #aaa8bb; font-size: 13px; line-height: 1.5; }
.gfxpay-product {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 13px;
    padding: 12px 14px;
    border-radius: 15px;
    background: rgba(255,255,255,.055);
}
.gfxpay-product-copy { display: grid; min-width: 0; gap: 3px; }
.gfxpay-product-name { font-weight: 800; }
.gfxpay-product-edition { min-height: 16px; color: #918da5; font-size: 11px; font-weight: 650; }
.gfxpay-product-price { color: #bdb4ff; font-size: 20px; font-weight: 900; white-space: nowrap; }
.gfxpay-variant-field { min-width: 0; margin: 0 0 14px; border: 0; padding: 0; }
.gfxpay-variant-field[hidden] { display: none; }
.gfxpay-variant-field legend { width: 100%; margin: 0 0 6px; padding: 0; color: #e4e1ef; font-size: 13px; font-weight: 800; }
.gfxpay-variant-field > p { margin: 0 0 11px; color: #858294; font-size: 11px; line-height: 1.55; }
.gfxpay-variant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gfxpay-variant-option {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 64px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px;
    padding: 11px 30px 11px 11px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(0,0,0,.12));
    color: #f5f3ff;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.gfxpay-variant-option:hover:not(:disabled), .gfxpay-variant-option:focus-visible { border-color: rgba(156,132,255,.7); outline: none; transform: translateY(-1px); }
.gfxpay-variant-option.is-selected { border-color: #927cff; background: linear-gradient(145deg, rgba(122,93,255,.18), rgba(95,61,170,.1)); box-shadow: 0 0 0 3px rgba(127,99,255,.12), inset 0 1px rgba(255,255,255,.05); }
.gfxpay-variant-option:disabled { opacity: .48; cursor: not-allowed; filter: saturate(.65); }
.gfxpay-host-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; box-shadow: 0 7px 18px rgba(0,0,0,.24); }
.gfxpay-host-icon img, .gfxpay-host-icon svg { display: block; width: 44px; height: 44px; object-fit: contain; }
.gfxpay-host-icon.is-resolve { background: transparent; box-shadow: none; }
.gfxpay-variant-copy { display: grid; min-width: 0; gap: 4px; }
.gfxpay-variant-copy strong { overflow: hidden; font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.gfxpay-variant-copy small { color: #a8a4b6; font-size: 11px; font-weight: 700; }
.gfxpay-variant-option.is-selected .gfxpay-variant-copy small { color: #c7beff; }
.gfxpay-variant-check { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.07); color: transparent; font-size: 11px; font-weight: 900; }
.gfxpay-variant-option.is-selected .gfxpay-variant-check { background: #806cff; color: #fff; }
.gfxpay-method-label, .gfxpay-field label { display: block; margin: 0 0 8px; color: #d7d5e3; font-size: 13px; font-weight: 700; }
.gfxpay-method {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-bottom: 13px;
    padding: 10px 12px;
    border: 1px solid #23b860;
    border-radius: 15px;
    background: rgba(35,184,96,.1);
    color: #fff;
    text-align: left;
}
.gfxpay-wechat-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #07c160; color: #fff; box-shadow: 0 7px 18px rgba(7,193,96,.24); }
.gfxpay-wechat-icon svg { display: block; width: 24px; height: 24px; }
.gfxpay-method.is-waffo { border-color: #9d88ff; background: linear-gradient(135deg, rgba(116,91,255,.16), rgba(182,84,255,.09)); }
.gfxpay-waffo-icon, .gfxpay-waffo-mark {
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #765fff, #b652ec);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 8px 22px rgba(125,86,255,.3);
}
.gfxpay-waffo-icon { width: 36px; height: 36px; font-size: 17px; }
.gfxpay-waffo-mark { width: 64px; height: 64px; margin: 6px auto 20px; border-radius: 19px; font-size: 29px; }
.gfxpay-method.is-waffo small { color: #bbb4d1; }
.gfxpay-method.is-waffo .gfxpay-check { color: #b8aaff; }
.gfxpay-method strong { display: block; font-size: 15px; }
.gfxpay-method small { display: block; margin-top: 3px; color: #aeb7b1; }
.gfxpay-check { margin-left: auto; color: #57dc8e; font-size: 20px; }
.gfxpay-checkout-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 9px; }
.gfxpay-checkout-fields.is-single { grid-template-columns: 1fr; }
.gfxpay-field-block { min-width: 0; }
.gfxpay-field { margin-bottom: 11px; }
.gfxpay-checkout-fields .gfxpay-field { margin-bottom: 0; }
.gfxpay-checkout-fields .gfxpay-help { margin: 6px 2px 0; }
.gfxpay-field input {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    padding: 0 13px;
    background: rgba(0,0,0,.22);
    color: #fff;
    font: inherit;
}
.gfxpay-field input:focus { border-color: #9284ff; outline: 3px solid rgba(146,132,255,.16); }
.gfxpay-help { margin: 0 0 11px; color: #8e8c9d; font-size: 11px; line-height: 1.45; }
.gfxpay-primary, .gfxpay-secondary, .gfxpay-copy, .gfxpay-download {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 45px;
    border-radius: 12px;
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.gfxpay-primary, .gfxpay-download { width: 100%; border: 0; background: linear-gradient(135deg, #7764ff, #a153f6); color: #fff; box-shadow: 0 10px 28px rgba(116,84,255,.28); }
.gfxpay-primary:disabled { opacity: .55; cursor: wait; }
.gfxpay-secondary, .gfxpay-copy { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #e9e7f3; }
.gfxpay-secondary { width: 100%; margin-top: 10px; }
.gfxpay-link-button { display: block; margin: 10px auto 0; border: 0; background: none; color: #aaa1ff; cursor: pointer; text-decoration: underline; }
.gfxpay-alert { margin: 0 0 14px; border-radius: 11px; padding: 11px 13px; background: rgba(255,91,118,.12); color: #ffacbb; font-size: 13px; line-height: 1.5; }
.gfxpay-alert[hidden] { display: none; }
.gfxpay-qr-wrap { display: grid; place-items: center; margin: 6px auto 16px; width: 230px; height: 230px; border-radius: 18px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.gfxpay-qr { display: block; width: 210px; height: 210px; object-fit: contain; }
.gfxpay-qr-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 12px 0; color: #c8c5d4; font-size: 14px; }
.gfxpay-centered-title, .gfxpay-centered-copy { margin-right: 0; text-align: center; }
.gfxpay-waffo-open { margin: 18px 0 4px; }
.gfxpay-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.24); border-top-color: #8e7cff; border-radius: 50%; animation: gfxpay-spin .8s linear infinite; }
@keyframes gfxpay-spin { to { transform: rotate(360deg); } }
.gfxpay-order-box { margin: 18px 0 0; padding: 16px; border: 1px dashed rgba(255,255,255,.16); border-radius: 13px; background: rgba(0,0,0,.16); }
.gfxpay-order-box small { display: block; color: #8f8c9d; }
.gfxpay-order-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.gfxpay-order-no { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #fff; font: 700 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.gfxpay-copy { min-height: 34px; padding: 0 11px; font-size: 12px; }
.gfxpay-result-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 20px; border-radius: 50%; background: rgba(63,211,124,.14); color: #56de8e; font-size: 32px; }
.gfxpay-delivery-label { margin: 16px 0 10px; color: #aaa8bb; font-size: 13px; text-align: center; }
.gfxpay-delivery-value { display: grid; gap: 16px; }
.gfxpay-license { display: block; margin: 0; border: 1px solid rgba(146,132,255,.3); border-radius: 13px; padding: 17px; background: rgba(0,0,0,.25); color: #d9d4ff; font: 800 16px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; overflow-wrap: anywhere; }
.gfxpay-download-list { display: grid; gap: 10px; }
.gfxpay-download-item { display: flex; align-items: center; gap: 12px; min-width: 0; border: 1px solid rgba(146,132,255,.24); border-radius: 14px; padding: 12px 12px 12px 14px; background: rgba(0,0,0,.22); }
.gfxpay-download-details { min-width: 0; flex: 1; }
.gfxpay-download-name { display: block; margin-bottom: 5px; color: #d8d4f2; font-size: 12px; font-weight: 800; }
.gfxpay-download-url { display: block; overflow: hidden; color: #aaa1ff; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.gfxpay-download-url:hover, .gfxpay-download-url:focus-visible { color: #d6d0ff; text-decoration: underline; }
.gfxpay-warning { margin: 20px 0 0; border-radius: 12px; padding: 14px; background: rgba(255,185,67,.1); color: #e9c47d; font-size: 13px; line-height: 1.6; }
.gfxpay-orders-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 16px; }
.gfxpay-orders-toolbar > strong { color: #d9d5ff; font-size: 13px; }
.gfxpay-orders-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gfxpay-mini-button {
    min-height: 34px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 0 12px;
    background: rgba(255,255,255,.055);
    color: #ddd9f2;
    font: 700 12px Inter, "PingFang SC", sans-serif;
    cursor: pointer;
}
.gfxpay-mini-button:hover, .gfxpay-mini-button:focus-visible { border-color: #9284ff; color: #fff; outline: none; }
.gfxpay-orders-list { display: grid; gap: 18px; }
.gfxpay-orders-empty, .gfxpay-purchase-slot {
    border: 1px dashed rgba(255,255,255,.14);
    border-radius: 16px;
    padding: 24px 18px;
    background: rgba(0,0,0,.12);
    color: #92909f;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
}
.gfxpay-purchase-slot.is-loaded { border: 0; padding: 0; background: none; text-align: left; }
.gfxpay-purchase-card {
    position: relative;
    border: 1px solid rgba(146,132,255,.22);
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(0,0,0,.16));
    box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.gfxpay-purchase-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gfxpay-purchase-name { min-width: 0; margin: 0; color: #fff; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.gfxpay-status-badge { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; }
.gfxpay-status-badge.is-delivered { background: rgba(63,211,124,.13); color: #64e399; }
.gfxpay-status-badge.is-awaiting { background: rgba(115,91,255,.16); color: #b9afff; }
.gfxpay-status-badge.is-processing, .gfxpay-status-badge.is-stock { background: rgba(255,185,67,.12); color: #ebc578; }
.gfxpay-status-badge.is-expired, .gfxpay-status-badge.is-unavailable { background: rgba(255,91,118,.11); color: #ffacbb; }
.gfxpay-purchase-price { margin-top: 6px; color: #bdb4ff; font-size: 15px; font-weight: 850; }
.gfxpay-purchase-order { display: flex; align-items: center; gap: 12px; margin-top: 16px; border-radius: 13px; padding: 12px; background: rgba(0,0,0,.2); }
.gfxpay-purchase-order-text { min-width: 0; flex: 1; }
.gfxpay-purchase-order-text small { display: block; margin-bottom: 5px; color: #888596; font-size: 11px; }
.gfxpay-purchase-order-text code { display: block; color: #e7e4f4; font: 700 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.gfxpay-purchase-date { margin: 10px 2px 0; color: #858292; font-size: 11px; }
.gfxpay-purchase-delivery-label { margin: 18px 0 9px; color: #aaa8bb; font-size: 12px; font-weight: 700; }
.gfxpay-purchase-delivery { display: grid; gap: 12px; }
.gfxpay-purchase-delivery .gfxpay-secondary { margin-top: 0; }
.gfxpay-purchase-delivery .gfxpay-license { padding: 14px; font-size: 14px; }
.gfxpay-purchase-delivery .gfxpay-download { min-height: 41px; }
.gfxpay-purchase-message { margin: 16px 0 0; border-radius: 12px; padding: 13px 14px; background: rgba(255,255,255,.045); color: #a4a1b0; font-size: 12px; line-height: 1.6; }
.gfxpay-continue-payment { min-height: 42px; margin-top: 12px; }
.gfxpay-recover-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    min-height: 40px;
    border: 1px solid rgba(146,132,255,.34);
    border-radius: 999px;
    padding: 0 15px;
    background: rgba(20,18,34,.9);
    color: #d9d5ff;
    font: 700 12px Inter, "PingFang SC", sans-serif;
    box-shadow: 0 9px 30px rgba(0,0,0,.28);
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.gfxpay-recover-fab:hover { border-color: #9284ff; transform: translateY(-1px); }
@media (max-width: 560px) {
    .gfxpay-modal { align-items: end; padding: 8px; }
    .gfxpay-dialog { max-height: calc(100vh - 8px); border-radius: 22px 22px 12px 12px; padding: 22px 20px; }
    .gfxpay-dialog.gfxpay-dialog-checkout { padding: 20px; }
    .gfxpay-qr-wrap { width: 214px; height: 214px; }
    .gfxpay-qr { width: 196px; height: 196px; }
    .gfxpay-recover-fab { right: 12px; bottom: 12px; }
    .gfxpay-orders-toolbar { align-items: flex-start; flex-direction: column; }
    .gfxpay-orders-actions { width: 100%; justify-content: flex-start; }
    .gfxpay-purchase-card { padding: 17px; }
    .gfxpay-purchase-order { align-items: flex-start; }
    .gfxpay-download-item { align-items: flex-start; }
}
@media (max-height: 720px) {
    .gfxpay-dialog.gfxpay-dialog-checkout { padding-top: 16px; padding-bottom: 15px; }
    .gfxpay-dialog-checkout .gfxpay-subtitle, .gfxpay-dialog-checkout .gfxpay-email-help { display: none; }
    .gfxpay-dialog-checkout .gfxpay-product { margin-bottom: 9px; padding-top: 9px; padding-bottom: 9px; }
    .gfxpay-dialog-checkout .gfxpay-variant-field { margin-bottom: 9px; }
    .gfxpay-dialog-checkout .gfxpay-variant-field > p { margin-bottom: 7px; }
    .gfxpay-dialog-checkout .gfxpay-variant-option { min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
    .gfxpay-dialog-checkout .gfxpay-method { margin-bottom: 9px; padding-top: 7px; padding-bottom: 7px; }
    .gfxpay-dialog-checkout .gfxpay-checkout-fields { margin-bottom: 7px; }
    .gfxpay-dialog-checkout .gfxpay-help { margin-bottom: 7px; }
    .gfxpay-dialog-checkout .gfxpay-link-button { margin-top: 6px; }
}
@media (max-height: 620px) {
    .gfxpay-dialog-checkout .gfxpay-kicker, .gfxpay-dialog-checkout .gfxpay-variant-field > p { display: none; }
    .gfxpay-dialog-checkout .gfxpay-title { margin-bottom: 5px; font-size: 24px; }
}
@media (max-width: 340px) {
    .gfxpay-variant-option { grid-template-columns: 36px minmax(0, 1fr); gap: 6px; padding: 7px 20px 7px 7px; }
    .gfxpay-host-icon, .gfxpay-host-icon img, .gfxpay-host-icon svg { width: 36px; height: 36px; }
    .gfxpay-variant-copy strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .gfxpay-spinner { animation: none; } }
