@font-face {
    font-family: "KP Interface";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/hyper/fonts/Nunito-Regular.woff") format("woff");
}
@font-face {
    font-family: "KP Interface";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/hyper/fonts/Nunito-Bold.woff") format("woff");
}

:root {
    color-scheme: light dark;
    --kp-page: #f5f7fa;
    --kp-surface: #f8fafc;
    --kp-surface-strong: #ffffff;
    --kp-surface-subtle: #e8eef5;
    --kp-ink: #172b3f;
    --kp-ink-strong: #071d2e;
    --kp-muted: #5c7083;
    --kp-muted-strong: #354b60;
    --kp-line: #d8e1ea;
    --kp-line-strong: #b9c8d6;
    --kp-primary: #0969a8;
    --kp-primary-hover: #075487;
    --kp-primary-active: #053f66;
    --kp-primary-soft: #e5f1f9;
    --kp-hero: #0b304d;
    --kp-hero-text: #f8fbfd;
    --kp-hero-muted: #c5d7e4;
    --kp-success: #176b47;
    --kp-success-bg: #e4f2ea;
    --kp-warning: #835500;
    --kp-warning-bg: #fff1d6;
    --kp-danger: #b4232c;
    --kp-danger-bg: #fce8ea;
    --kp-focus: #0b78be;
    --kp-on-primary: #ffffff;
    --kp-on-danger: #ffffff;
    --kp-on-strong: #ffffff;
    --kp-radius-small: 4px;
    --kp-radius-medium: 8px;
    --kp-shadow-focus: 0 16px 40px rgba(7, 29, 46, .14);
    --kp-shadow-floating: 0 0 0 1px rgba(7, 29, 46, .08), 0 2px 4px -1px rgba(7, 29, 46, .16), 0 8px 20px -6px rgba(7, 29, 46, .18);
    --kp-motion-fast: 120ms;
    --kp-motion-normal: 180ms;
    --kp-motion-panel: 240ms;
    --kp-ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
html { scrollbar-color: var(--kp-line-strong) var(--kp-page); scrollbar-width: thin; }
::selection { background: var(--kp-primary); color: var(--kp-on-primary); }
body.kp-theme {
    background: var(--kp-page);
    color: var(--kp-ink);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    caret-color: var(--kp-primary);
    overflow-x: clip;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.kp-theme,
.kp-theme .wrapper,
.kp-theme .content-page { overflow: visible; }
.kp-theme .content-page { margin-left: 0; min-height: 100vh; padding: 0; }
.kp-theme .content { min-height: calc(100vh - 78px); }
.kp-theme .container { max-width: 1180px; padding-left: 24px; padding-right: 24px; }
.kp-main-content { padding-bottom: 64px; padding-top: 32px; }
.kp-home { padding-bottom: 0 !important; padding-top: 0 !important; }
.kp-skip-link {
    background: var(--kp-ink-strong);
    border-radius: 0 0 var(--kp-radius-small) 0;
    color: var(--kp-on-strong) !important;
    left: 0;
    padding: 10px 16px;
    position: fixed;
    top: 0;
    transform: translateY(-120%);
    transition: transform var(--kp-motion-fast) var(--kp-ease);
    z-index: 1100;
}
.kp-skip-link:focus { transform: translateY(0); }
.kp-theme a:focus-visible,
.kp-theme button:focus-visible,
.kp-theme input:focus-visible,
.kp-theme select:focus-visible,
.kp-theme textarea:focus-visible,
.kp-theme [tabindex]:focus-visible { outline: 3px solid var(--kp-focus); outline-offset: 2px; }
.kp-theme button,
.kp-theme [role="button"],
.kp-theme input,
.kp-theme select,
.kp-theme textarea,
.kp-theme a { touch-action: manipulation; }
.kp-theme .btn-primary { background-color: var(--kp-primary); border-color: var(--kp-primary); color: var(--kp-on-primary); }
.kp-theme .btn-primary:hover { background-color: var(--kp-primary-hover); border-color: var(--kp-primary-hover); color: var(--kp-on-primary); }
.kp-theme .btn-primary:active { background-color: var(--kp-primary-active) !important; border-color: var(--kp-primary-active) !important; color: var(--kp-on-primary) !important; }

.kp-navbar {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--kp-line);
    display: flex;
    height: 68px;
    position: relative;
    z-index: 20;
}
.kp-navbar-inner { align-items: center; display: flex; justify-content: space-between; width: 100%; }
.kp-brand { align-items: center; display: inline-flex; min-width: 110px; text-decoration: none !important; }
.kp-brand img { display: block; height: 36px; max-width: 210px; object-fit: contain; width: auto; }
.kp-brand-text { color: var(--kp-ink-strong); font-family: "KP Interface", "Noto Sans SC", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.kp-nav-actions { align-items: center; display: flex; gap: 6px; white-space: nowrap; }
.kp-nav-link {
    align-items: center;
    border-radius: var(--kp-radius-small);
    color: var(--kp-muted-strong);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    padding: 8px 13px;
    position: relative;
    text-decoration: none !important;
    transition: background-color var(--kp-motion-normal) var(--kp-ease), color var(--kp-motion-normal) var(--kp-ease);
}
.kp-nav-link:hover { background: var(--kp-surface-subtle); color: var(--kp-ink-strong); }
.kp-nav-link.is-active { color: var(--kp-primary); }
.kp-nav-link.is-active::after { background: var(--kp-primary); bottom: -15px; content: ""; height: 2px; left: 13px; position: absolute; right: 13px; }
.kp-login-action {
    border-radius: var(--kp-radius-small);
    box-shadow: none;
    font-family: "KP Interface", "Noto Sans SC", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-left: 6px;
    min-height: 44px;
    padding: 8px 18px;
}
.kp-user-menu { position: relative; }
.kp-user-menu > summary { list-style: none; }
.kp-user-menu > summary::-webkit-details-marker { display: none; }
.kp-user-menu > summary::after { border: solid currentColor; border-width: 0 1.5px 1.5px 0; content: ""; height: 7px; margin-left: 9px; transform: rotate(45deg) translateY(-2px); transition: transform var(--kp-motion-fast) var(--kp-ease); width: 7px; }
.kp-user-menu[open] > summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.kp-user-popover { background: var(--kp-surface-strong); border: 1px solid var(--kp-line); border-radius: var(--kp-radius-medium); box-shadow: var(--kp-shadow-focus); min-width: 180px; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; }
.kp-user-popover a,
.kp-user-popover button { background: transparent; border: 0; border-radius: var(--kp-radius-small); color: var(--kp-ink); display: block; font: inherit; min-height: 40px; padding: 9px 10px; text-align: left; text-decoration: none !important; width: 100%; }
.kp-user-popover a:hover,
.kp-user-popover a:focus,
.kp-user-popover button:hover,
.kp-user-popover button:focus { background: var(--kp-primary-soft); color: var(--kp-primary); }
.kp-user-popover form { border-top: 1px solid var(--kp-line); margin-top: 4px !important; padding-top: 4px; }

.kp-home { padding: 0 0 64px; }
.kp-intro {
    align-items: end;
    background: var(--kp-hero);
    border-radius: var(--kp-radius-medium);
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 190px;
    overflow: hidden;
    padding: 38px 40px;
    position: relative;
}
.kp-intro-mark {
    color: rgba(164, 201, 231, .14);
    font-family: "KP Interface", sans-serif;
    font-size: 230px;
    font-weight: 700;
    line-height: .72;
    pointer-events: none;
    position: absolute;
    right: 242px;
    top: 12px;
}
.kp-intro-copy,
.kp-intro-actions { position: relative; z-index: 1; }
.kp-intro-copy h1 {
    color: var(--kp-hero-text);
    font-family: "DengXian", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.12;
    margin: 0 0 12px;
    max-width: 18ch;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.kp-intro-copy p { color: var(--kp-hero-muted); font-size: 15px; line-height: 1.7; margin: 0; max-width: 52ch; overflow-wrap: anywhere; text-wrap: pretty; }
.kp-intro-actions { align-items: center; display: flex; gap: 10px; padding-bottom: 3px; }
.kp-primary-action,
.kp-secondary-action {
    border-radius: var(--kp-radius-small);
    display: inline-flex;
    font-family: "KP Interface", "Noto Sans SC", sans-serif;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-width: 106px;
    min-height: 44px;
    padding: 11px 18px;
    text-decoration: none !important;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
    white-space: nowrap;
}
.kp-primary-action { background: #fff !important; border-color: #fff !important; box-shadow: none; color: var(--kp-hero) !important; }
.kp-primary-action:hover { background: #e9f2f9 !important; border-color: #e9f2f9 !important; }
.kp-intro .kp-secondary-action,
.kp-intro .kp-secondary-action:visited { background: transparent; border: 1px solid rgba(255, 255, 255, .42); color: #fff !important; }
.kp-intro .kp-secondary-action:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .68); color: #fff !important; }
.kp-intro a:focus-visible { box-shadow: 0 0 0 2px var(--kp-hero) !important; outline-color: #fff; outline-offset: 3px; }
.kp-primary-action:active,
.kp-secondary-action:active { transform: scale(.96); }

.kp-notice {
    align-items: flex-start;
    background: transparent;
    border-bottom: 1px solid var(--kp-line);
    color: var(--kp-muted-strong);
    display: grid;
    gap: 18px;
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 54px;
    padding: 16px 4px;
}
.kp-notice > strong { color: var(--kp-ink-strong); font-size: 13px; font-weight: 700; white-space: nowrap; }
.kp-notice-content,
.kp-notice-content p { font-size: 13px; line-height: 1.65; margin: 0; text-wrap: pretty; }
.kp-notice-content a { color: var(--kp-primary); font-weight: 600; }
.kp-notice-content img { max-height: 34px; max-width: 180px; width: auto; }

.kp-products,
.kp-guides { padding-top: 30px; }
.kp-section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 16px; }
.kp-section-heading h2 { color: var(--kp-ink-strong); font-family: "DengXian", "Noto Sans SC", "Microsoft YaHei UI", sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.kp-section-heading p { color: var(--kp-muted); font-size: 13px; margin: 0; }
.kp-section-heading > a { color: var(--kp-primary); font-size: 13px; font-weight: 700; }
.kp-section-meta { align-items: center; display: flex; gap: 16px; justify-content: flex-end; }
.kp-section-meta a { color: var(--kp-primary); font-size: 13px; font-weight: 700; white-space: nowrap; }

.kp-category-nav {
    border-bottom: 1px solid var(--kp-line-strong);
    flex-wrap: nowrap;
    gap: 26px;
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.kp-category-nav::-webkit-scrollbar { display: none; }
.kp-category-link {
    border-bottom: 3px solid transparent;
    color: var(--kp-muted);
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: -1px;
    align-items: center;
    display: inline-flex;
    min-height: 44px;
    padding: 4px 0 9px;
    text-decoration: none !important;
    transition: border-color .16s ease, color .16s ease;
}
.kp-category-link:hover,
.kp-category-link.active { border-bottom-color: var(--kp-primary); color: var(--kp-primary); }

.kp-product-tabs { padding-top: 12px; }
.kp-product-tabs .fade { transition: opacity var(--kp-motion-fast) ease-out; }
.kp-product-table { background: var(--kp-surface-strong); border: 1px solid var(--kp-line-strong); border-radius: var(--kp-radius-medium); overflow: hidden; }
.kp-product-table-header,
.kp-product-row {
    align-items: center;
    column-gap: 18px;
    display: grid;
    grid-template-columns: minmax(310px, 2.5fr) minmax(100px, .8fr) minmax(110px, .9fr) minmax(100px, .8fr) minmax(72px, .6fr) minmax(105px, .7fr);
}
.kp-product-table-header {
    background: var(--kp-surface-subtle);
    color: var(--kp-muted-strong);
    font-family: "KP Interface", "Noto Sans SC", sans-serif;
    font-size: 12px;
    font-weight: 700;
    min-height: 42px;
    padding: 0 22px;
}
.kp-product-table-header span:last-child { text-align: center; }
.kp-product-row {
    background: var(--kp-surface-strong);
    box-shadow: inset 3px 0 transparent;
    min-height: 80px;
    padding: 10px 22px;
    transition: background-color .16s ease, box-shadow .16s ease;
}
.kp-product-row + .kp-product-row { border-top: 1px solid var(--kp-line); }
@supports (content-visibility: auto) {
    .kp-product-row { contain-intrinsic-size: 74px; content-visibility: auto; }
}
.kp-product-row.is-available:hover,
.kp-product-row.is-available:focus-within { background: var(--kp-primary-soft); box-shadow: inset 3px 0 var(--kp-primary); }
.kp-product-row.is-unavailable { background: var(--kp-surface); }
.kp-product-row.is-unavailable:hover { box-shadow: inset 3px 0 var(--kp-line-strong); }
.kp-product-main { align-items: center; display: flex; min-width: 0; }
.kp-product-main img { background: var(--kp-surface-subtle); border-radius: var(--kp-radius-small); flex: 0 0 46px; height: 46px; margin-right: 14px; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; width: 46px; }
.kp-product-copy { display: grid; flex: 1 1 auto; gap: 4px; grid-template-rows: 2.7em 1.35em; min-width: 0; }
.kp-product-copy a,
.kp-product-name {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--kp-ink-strong);
    display: -webkit-box;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-decoration: none !important;
    text-overflow: ellipsis;
    white-space: normal;
}
.kp-product-copy a:hover { color: var(--kp-primary); }
.kp-product-attribute { -webkit-box-decoration-break: clone; border-radius: 3px; box-decoration-break: clone; font-size: .93em; font-weight: 800; margin: 0 1px; padding: 1px 4px; }
.kp-product-region { background: var(--kp-primary-soft); color: var(--kp-primary); }
.kp-product-registration-time { background: var(--kp-success-bg); color: var(--kp-success); font-variant-numeric: tabular-nums; }
.kp-product-copy p { color: var(--kp-muted); font-size: 12px; line-height: 1.35; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-status { border-radius: var(--kp-radius-small); display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 7px 9px; white-space: nowrap; }
.kp-status-auto { background: var(--kp-primary-soft); color: var(--kp-primary); }
.kp-status-manual { background: var(--kp-warning-bg); color: var(--kp-warning); }
.kp-status-stock { background: var(--kp-success-bg); color: var(--kp-success); }
.kp-status-empty { background: var(--kp-surface-subtle); color: var(--kp-muted); }
.kp-product-stock .kp-status { font-variant-numeric: tabular-nums; }
.kp-product-price,
.kp-product-sales { font-family: "KP Interface", "Noto Sans SC", sans-serif; font-variant-numeric: tabular-nums; }
.kp-product-price strong { color: var(--kp-primary); display: block; font-size: 16px; font-weight: 700; white-space: nowrap; }
.kp-product-price small { color: var(--kp-success); display: block; font-size: 12px; margin-top: 3px; }
.kp-product-sales { color: var(--kp-muted); font-size: 13px; }
.kp-product-action { text-align: center; }
.kp-product-action .btn { align-items: center; border-radius: var(--kp-radius-small); box-shadow: none; display: inline-flex; font-family: "KP Interface", "Noto Sans SC", sans-serif; font-size: 12px; font-weight: 700; justify-content: center; min-height: 44px; min-width: 88px; padding: 8px 12px; transition: background-color var(--kp-motion-normal) var(--kp-ease), border-color var(--kp-motion-normal) var(--kp-ease), transform var(--kp-motion-fast) var(--kp-ease); white-space: nowrap; }
.kp-empty-state { color: var(--kp-muted); padding: 48px 20px; text-align: center; }
.kp-empty-state p { margin: 0 0 16px; }

.kp-guide-list { background: var(--kp-surface-strong); border: 1px solid var(--kp-line-strong); border-radius: var(--kp-radius-medium); overflow: hidden; }
.kp-guide-row { align-items: center; background: var(--kp-surface-strong); color: var(--kp-ink); display: flex; justify-content: space-between; min-height: 54px; padding: 12px 18px; text-decoration: none !important; transition: background-color .16s ease, color .16s ease; }
.kp-guide-row + .kp-guide-row { border-top: 1px solid var(--kp-line); }
.kp-guide-row:hover { background: var(--kp-primary-soft); color: var(--kp-primary); }
.kp-guide-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-guide-row time { color: var(--kp-muted); font-family: "KP Interface", sans-serif; font-size: 12px; font-variant-numeric: tabular-nums; margin-left: 18px; white-space: nowrap; }

.kp-support { padding-top: 34px; scroll-margin-top: 84px; }
.kp-support-shell {
    align-items: start;
    background: var(--kp-surface-strong);
    border: 1px solid var(--kp-line-strong);
    border-radius: var(--kp-radius-medium);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(190px, .7fr) minmax(0, 1.65fr);
    padding: 28px;
}
.kp-support-intro { max-width: 32ch; }
.kp-support-eyebrow { color: var(--kp-primary); display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; }
.kp-support-intro h2 { color: var(--kp-ink-strong); font-family: "DengXian", "Noto Sans SC", "Microsoft YaHei UI", sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.kp-support-intro p { color: var(--kp-muted); font-size: 13px; line-height: 1.7; margin: 10px 0 18px; text-wrap: pretty; }
.kp-support-intro .btn { min-height: 44px; }
.kp-support-content { color-scheme: light; min-width: 0; overflow-wrap: anywhere; }
.kp-support-content > :first-child { margin-bottom: 0 !important; margin-top: 0 !important; max-width: none !important; }
.kp-support-content div { box-sizing: border-box; max-width: 100%; min-width: 0 !important; }
.kp-support-content img { height: auto; max-width: 100%; }
.kp-support-content a { color: var(--kp-primary); }

.kp-footer { background: var(--kp-surface-strong); border-top: 1px solid var(--kp-line); color: var(--kp-muted); padding: 23px 0; }
.kp-footer-inner { align-items: center; display: flex; font-size: 12px; gap: 24px; justify-content: space-between; }
.kp-footer-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.kp-footer-links a { color: var(--kp-muted-strong); font-weight: 700; text-decoration: none; }
.kp-footer-links a:hover { color: var(--kp-primary); }
.kp-back-to-top { bottom: max(24px, env(safe-area-inset-bottom)); position: fixed; right: max(24px, env(safe-area-inset-right)); z-index: 10; }
.kp-theme .kp-back-to-top .btn { border-radius: var(--kp-radius-small); box-shadow: var(--kp-shadow-floating) !important; height: 44px; padding: 0; width: 44px; }
.kp-back-to-top .btn svg { display: block; flex: 0 0 20px; transform: translateY(-1px); }
.kp-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.kp-register-gift { align-items: flex-start; display: flex; gap: 8px; line-height: 1.55; }
.kp-register-gift .kp-icon { margin-top: 2px; }

/* Shared transactional components — applies to every kphyper page. */
.kp-task-heading { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 24px; }
.kp-task-heading-copy { max-width: 720px; }
.kp-task-title { color: var(--kp-ink-strong); font-family: "DengXian", "Noto Sans SC", "Microsoft YaHei UI", sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.25; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.kp-task-heading p { color: var(--kp-muted); font-size: 14px; line-height: 1.65; margin: 7px 0 0; text-wrap: pretty; }
.kp-task-surface,
.kp-payment-panel,
.kp-order-detail,
.kp-delivery-panel,
.kp-order-summary-panel { background: var(--kp-surface-strong); border: 1px solid var(--kp-line); border-radius: var(--kp-radius-medium); }
.kp-task-surface { padding: 24px; }
.kp-surface-heading { align-items: baseline; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 18px; }
.kp-surface-heading h2,
.kp-surface-heading h3 { font-size: 18px; font-weight: 800; margin: 0; }
.kp-surface-heading span { color: var(--kp-muted); font-size: 12px; }
.kp-transaction-status { align-items: center; border: 1px solid var(--kp-line); border-radius: var(--kp-radius-medium); display: grid; gap: 14px; grid-template-columns: auto minmax(0, 1fr) auto; margin-bottom: 20px; padding: 16px 18px; }
.kp-transaction-status-mark { background: var(--kp-primary); border-radius: 50%; height: 10px; width: 10px; }
.kp-transaction-status h2 { font-size: 16px; font-weight: 800; margin: 0; }
.kp-transaction-status p { color: var(--kp-muted-strong); font-size: 13px; line-height: 1.55; margin: 3px 0 0; text-wrap: pretty; }
.kp-transaction-status.is-info { background: var(--kp-primary-soft); border-color: color-mix(in srgb, var(--kp-primary) 26%, var(--kp-line)); }
.kp-transaction-status.is-success { background: var(--kp-success-bg); border-color: color-mix(in srgb, var(--kp-success) 28%, var(--kp-line)); }
.kp-transaction-status.is-success .kp-transaction-status-mark { background: var(--kp-success); }
.kp-transaction-status.is-warning { background: var(--kp-warning-bg); border-color: color-mix(in srgb, var(--kp-warning) 28%, var(--kp-line)); }
.kp-transaction-status.is-warning .kp-transaction-status-mark { background: var(--kp-warning); }
.kp-transaction-status.is-danger { background: var(--kp-danger-bg); border-color: color-mix(in srgb, var(--kp-danger) 28%, var(--kp-line)); }
.kp-transaction-status.is-danger .kp-transaction-status-mark { background: var(--kp-danger); }
.kp-order-summary { margin: 0; }
.kp-order-summary-row { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(110px, .72fr) minmax(0, 1.6fr); padding: 12px 0; }
.kp-order-summary-row + .kp-order-summary-row { border-top: 1px solid var(--kp-line); }
.kp-order-summary dt { color: var(--kp-muted); font-size: 13px; font-weight: 600; margin: 0; }
.kp-order-summary dd { color: var(--kp-ink-strong); font-size: 14px; font-weight: 650; margin: 0; overflow-wrap: anywhere; text-align: right; }
.kp-order-summary-row.is-emphasis dd { color: var(--kp-primary); font-size: 18px; font-weight: 800; }
.kp-tabular { font-family: "KP Interface", "Noto Sans SC", sans-serif; font-variant-numeric: tabular-nums; }
.kp-task-tabs { border-bottom: 1px solid var(--kp-line-strong); display: flex; gap: 24px; margin: -4px 0 24px; overflow-x: auto; scrollbar-width: thin; }
.kp-task-tabs a { border-bottom: 2px solid transparent; color: var(--kp-muted-strong); flex: 0 0 auto; font-size: 14px; font-weight: 700; margin-bottom: -1px; padding: 12px 2px; text-decoration: none !important; }
.kp-task-tabs a:hover,
.kp-task-tabs a.is-active { border-bottom-color: var(--kp-primary); color: var(--kp-primary); }
.kp-task-tab-panels { max-width: 620px; }
.kp-form-actions,
.kp-delivery-actions,
.kp-recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.kp-browser-search-copy { color: var(--kp-muted-strong); margin: 0 0 18px; }
.kp-checkout-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
.kp-payment-panel { padding: 20px; position: sticky; top: 88px; }
.kp-payment-panel .kp-transaction-status { margin-bottom: 18px; }
.kp-payment-total { border-bottom: 1px solid var(--kp-line); display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; padding: 2px 0 18px; }
.kp-payment-total span { color: var(--kp-muted); font-size: 13px; }
.kp-payment-total strong { color: var(--kp-primary); font-size: 30px; line-height: 1.2; }
.kp-payment-panel .kp-payment-link { width: 100%; }
.kp-payment-panel form { margin: 0; }
.kp-payment-note { color: var(--kp-muted); font-size: 12px; line-height: 1.55; margin: 12px 0 0; text-align: center; }
.kp-qr-payment { align-items: center; background: var(--kp-surface-strong); border: 1px solid var(--kp-line); border-radius: var(--kp-radius-medium); display: grid; gap: 32px; grid-template-columns: auto minmax(280px, 1fr); margin: 0 auto; max-width: 760px; padding: 28px; }
.kp-qr-code { align-items: center; background: #fff; border: 1px solid var(--kp-line); border-radius: var(--kp-radius-small); display: flex; justify-content: center; padding: 14px; }
.kp-qr-code img { display: block; height: 240px; width: 240px; }
.kp-qr-payment-copy .kp-transaction-status { margin-bottom: 18px; }
.kp-qr-expiry { color: var(--kp-muted-strong); font-size: 13px; margin: 0 0 16px; }
.kp-order-detail-list { display: grid; gap: 28px; }
.kp-order-detail { overflow: hidden; padding: 24px; }
.kp-order-detail-heading { align-items: start; display: flex; justify-content: space-between; margin-bottom: 18px; }
.kp-order-detail-heading p { color: var(--kp-muted); font-size: 12px; margin: 0 0 5px; }
.kp-order-detail-heading h2 { font-size: 20px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.kp-order-detail-grid { align-items: stretch; display: grid; gap: 20px; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); }
.kp-delivery-panel,
.kp-order-summary-panel { padding: 20px; }
.kp-delivery-output { background: var(--kp-surface) !important; font-family: "KP Interface", "Noto Sans SC", sans-serif; font-size: 14px; line-height: 1.65; min-height: 210px; resize: vertical; }
.kp-delivery-actions { margin-top: 14px; }
.kp-delivery-pending { align-items: flex-start; background: var(--kp-surface-subtle); border-radius: var(--kp-radius-small); display: flex; flex-direction: column; justify-content: center; min-height: 210px; padding: 24px; }
.kp-delivery-pending strong { color: var(--kp-ink-strong); }
.kp-delivery-pending p { color: var(--kp-muted); font-size: 13px; margin: 5px 0 0; }
.kp-recovery-state { align-items: center; display: flex; flex-direction: column; margin: 48px auto; max-width: 580px; padding: 20px; text-align: center; }
.kp-recovery-state h2 { font-size: 24px; font-weight: 800; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.kp-recovery-state p { color: var(--kp-muted); margin: 8px 0 20px; max-width: 54ch; text-wrap: pretty; }
.kp-auth-shell { margin: 0 auto; max-width: 480px; }
.kp-auth-shell .kp-task-surface { padding: 28px; }
.kp-auth-submit { width: 100%; }
.kp-auth-switch { color: var(--kp-muted); font-size: 13px; margin: 18px 0 0; text-align: center; }
.kp-toast-region { display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); position: fixed; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); z-index: 1200; }
.kp-toast { background: var(--kp-ink-strong); border-radius: var(--kp-radius-small); box-shadow: var(--kp-shadow-floating); color: var(--kp-on-strong); padding: 12px 14px; }
.kp-toast strong { display: block; font-size: 13px; }
.kp-toast span { display: block; font-size: 13px; margin-top: 2px; }

.kp-theme h1,
.kp-theme h2,
.kp-theme h3,
.kp-theme h4,
.kp-theme h5,
.kp-theme h6,
.kp-theme .page-title,
.kp-theme .card-title {
    color: var(--kp-ink-strong);
    font-family: "DengXian", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
}
.kp-theme .kp-intro-copy h1 { color: var(--kp-hero-text); }
.kp-theme .page-title-box { padding: 0 0 16px; }
.kp-theme .page-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.kp-theme .text-muted { color: var(--kp-muted) !important; }
.kp-theme a { color: var(--kp-primary); }
.kp-theme a:hover { color: var(--kp-primary-hover); }

.kp-theme .card {
    background: var(--kp-surface-strong);
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius-medium);
    box-shadow: none;
    color: var(--kp-ink);
}
.kp-theme .card-header { background: var(--kp-surface-subtle); border-bottom: 1px solid var(--kp-line); padding: 16px 20px; }
.kp-theme .card-body { padding: 20px; }
.kp-theme .card-title { font-size: 20px; font-weight: 800; margin-bottom: 0; }

.kp-theme .btn {
    align-items: center;
    border-radius: var(--kp-radius-small);
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex;
    font-family: "KP Interface", "Noto Sans SC", sans-serif;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.35;
    min-height: 44px;
    padding: 10px 16px;
    transition: background-color var(--kp-motion-normal) var(--kp-ease), border-color var(--kp-motion-normal) var(--kp-ease), color var(--kp-motion-normal) var(--kp-ease), transform var(--kp-motion-fast) var(--kp-ease);
}
.kp-theme .btn-sm { font-size: 13px; min-height: 36px; padding: 7px 12px; }
.kp-theme .btn:active:not(:disabled):not(.disabled) { transform: scale(.96); }
.kp-theme .btn:disabled,
.kp-theme .btn.disabled,
.kp-theme .btn-disabled { cursor: not-allowed !important; opacity: .55; transform: none !important; }
.kp-theme .btn-secondary,
.kp-theme .btn-outline-primary {
    background: var(--kp-surface-strong);
    border-color: var(--kp-line-strong);
    color: var(--kp-ink-strong);
}
.kp-theme .btn-secondary:hover,
.kp-theme .btn-outline-primary:hover { background: var(--kp-surface-subtle); border-color: var(--kp-primary); color: var(--kp-primary); }
.kp-theme .btn-danger { background: var(--kp-danger); border-color: var(--kp-danger); color: var(--kp-on-danger); }
.kp-theme .btn-link { background: transparent; color: var(--kp-primary); min-height: 44px; padding-left: 8px; padding-right: 8px; }

.kp-theme label,
.kp-theme .buy-title { color: var(--kp-muted-strong); font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.kp-theme .form-group { margin-bottom: 20px; }
.kp-theme .form-control,
.kp-theme .custom-select,
.kp-theme .input-group-text {
    background: var(--kp-surface-strong);
    border: 1px solid var(--kp-line-strong);
    border-radius: var(--kp-radius-small);
    color: var(--kp-ink);
    font-size: 15px;
    min-height: 44px;
}
.kp-theme textarea.form-control { min-height: 112px; resize: vertical; }
.kp-theme .form-control::placeholder { color: var(--kp-muted); opacity: .88; }
.kp-theme .form-control:focus,
.kp-theme .custom-select:focus {
    background: var(--kp-surface-strong);
    border-color: var(--kp-focus);
    box-shadow: 0 0 0 3px rgba(11, 120, 190, .16);
    color: var(--kp-ink);
}
.kp-theme .form-control:disabled { background: var(--kp-surface-subtle); color: var(--kp-muted); cursor: not-allowed; opacity: 1; }
.kp-theme .form-control[readonly] { background: var(--kp-surface); color: var(--kp-ink); }
.kp-theme .form-text { line-height: 1.55; margin-top: 7px; }
.kp-theme .form-control.is-invalid,
.kp-theme .was-validated .form-control:invalid { border-color: var(--kp-danger); }
.kp-theme .invalid-feedback { color: var(--kp-danger); font-size: 13px; }
.kp-theme .kp-inline-error { font-weight: 600; margin-top: 6px; }
.kp-theme .kp-choice-group { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.kp-theme .kp-choice {
    align-items: center;
    background: var(--kp-surface-strong);
    border: 1px solid var(--kp-line-strong);
    border-radius: var(--kp-radius-small);
    color: var(--kp-ink-strong);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 9px 14px;
    transition: background-color var(--kp-motion-normal) var(--kp-ease), border-color var(--kp-motion-normal) var(--kp-ease), color var(--kp-motion-normal) var(--kp-ease), transform var(--kp-motion-fast) var(--kp-ease);
}
.kp-theme .kp-choice:hover { border-color: var(--kp-primary); color: var(--kp-primary); }
.kp-theme .kp-choice:active { transform: scale(.97); }
.kp-theme .kp-choice.active,
.kp-theme .kp-choice[aria-checked="true"] { background: var(--kp-primary-soft); border-color: var(--kp-primary); color: var(--kp-primary); }
.kp-theme .kp-choice svg { flex: 0 0 auto; margin-right: 7px; }
.kp-theme .kp-readonly-output { overflow-wrap: anywhere; }
.kp-theme .kp-status-message { color: var(--kp-muted-strong); font-variant-numeric: tabular-nums; text-align: center; }
.kp-theme .kp-withdrawal-amount { color: var(--kp-ink-strong); font-family: "KP Interface", sans-serif; font-size: 18px; font-variant-numeric: tabular-nums; }
.kp-theme .withdrowal-setting .payment-type .kp-choice { height: auto; margin: 0; width: auto; }
.kp-theme .blog-post-header { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.kp-theme .blog-post-title { font-size: 18px; margin-bottom: 0; min-width: 0; overflow-wrap: anywhere; }
.kp-theme .blog-post-title a { color: var(--kp-ink-strong); text-decoration: none; }
.kp-theme .blog-post-title a:hover { color: var(--kp-primary); }
.kp-theme .blog-post-title .avatar-sm { height: 40px; object-fit: cover; width: 40px; }
.kp-theme .blog-post-meta { color: var(--kp-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kp-theme .article-summary { color: var(--kp-muted-strong); font-size: 14px; margin: 8px 0 0; overflow-wrap: anywhere; }
.kp-theme .kp-article-categories { gap: 4px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.kp-theme .kp-breadcrumb { align-items: center; color: var(--kp-muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 6px; overflow-wrap: anywhere; }
.kp-theme .kp-article-body { font-size: 16px; line-height: 1.8; margin: 24px auto 0; max-width: 72ch; overflow-wrap: anywhere; }
.kp-theme .kp-article-body img { height: auto; max-width: 100%; }
.kp-theme .kp-article-body table { display: block; max-width: 100%; overflow-x: auto; }
.kp-theme input[type="checkbox"],
.kp-theme input[type="radio"] { accent-color: var(--kp-primary); height: 18px; width: 18px; }

.kp-theme .badge {
    border-radius: var(--kp-radius-small);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 8px;
}
.kp-theme .badge-primary,
.kp-theme .badge-outline-primary { background: var(--kp-primary-soft); border: 1px solid transparent; color: var(--kp-primary); }
.kp-theme .badge-success,
.kp-theme .badge-outline-success { background: var(--kp-success-bg); border: 1px solid transparent; color: var(--kp-success); }
.kp-theme .badge-warning { background: var(--kp-warning-bg); color: var(--kp-warning); }
.kp-theme .badge-danger,
.kp-theme .badge-outline-danger { background: var(--kp-danger-bg); border: 1px solid transparent; color: var(--kp-danger); }
.kp-theme .badge-secondary,
.kp-theme .badge-dark,
.kp-theme .badge-outline-dark { background: var(--kp-surface-subtle); border: 1px solid transparent; color: var(--kp-muted-strong); }

.kp-theme .table-responsive { border: 1px solid var(--kp-line); border-radius: var(--kp-radius-medium); }
.kp-theme .table { color: var(--kp-ink); margin-bottom: 0; min-width: 720px; }
.kp-theme .table thead th { background: var(--kp-surface-subtle); border-bottom: 1px solid var(--kp-line-strong); border-top: 0; color: var(--kp-muted-strong); font-size: 12px; font-weight: 700; padding: 13px 16px; white-space: nowrap; }
.kp-theme .table td { border-top: 1px solid var(--kp-line); min-height: 48px; padding: 13px 16px; vertical-align: middle; }
.kp-theme .table-hover tbody tr:hover { background: var(--kp-primary-soft); color: var(--kp-ink); }

.kp-theme .nav-tabs { border-bottom: 1px solid var(--kp-line-strong); gap: 20px; }
.kp-theme .nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; color: var(--kp-muted); font-size: 14px; font-weight: 700; min-height: 44px; padding: 10px 2px; }
.kp-theme .nav-tabs .nav-link:hover { border-bottom-color: var(--kp-line-strong); color: var(--kp-ink-strong); }
.kp-theme .nav-tabs .nav-link.active { background: transparent; border-bottom-color: var(--kp-primary); color: var(--kp-primary); }

.kp-theme .alert { border: 1px solid var(--kp-line-strong); border-radius: var(--kp-radius-small); color: var(--kp-ink); }
.kp-theme .alert-success { background: var(--kp-success-bg); border-color: var(--kp-success); color: var(--kp-success); }
.kp-theme .alert-warning { background: var(--kp-warning-bg); border-color: var(--kp-warning); color: var(--kp-warning); }
.kp-theme .alert-danger { background: var(--kp-danger-bg); border-color: var(--kp-danger); color: var(--kp-danger); }
.kp-theme .modal-content,
.kp-theme .dropdown-menu { background: var(--kp-surface-strong); border: 1px solid var(--kp-line); border-radius: var(--kp-radius-medium); box-shadow: var(--kp-shadow-focus); color: var(--kp-ink); }
.kp-theme .modal-header { border-bottom-color: var(--kp-line); }
.kp-theme .modal-footer { border-top-color: var(--kp-line); }
.kp-theme .close { align-items: center; color: var(--kp-ink-strong); display: inline-flex; height: 44px; justify-content: center; opacity: .72; width: 44px; }
.kp-theme .dropdown-item { color: var(--kp-ink); min-height: 40px; padding: 9px 16px; }
.kp-theme .dropdown-item:hover,
.kp-theme .dropdown-item:focus { background: var(--kp-primary-soft); color: var(--kp-primary); }
.kp-theme .dropdown-divider { border-top-color: var(--kp-line); }
.kp-theme .page-link { background: var(--kp-surface-strong); border-color: var(--kp-line); color: var(--kp-primary); min-height: 40px; min-width: 40px; }
.kp-theme .page-item.active .page-link { background: var(--kp-primary); border-color: var(--kp-primary); color: var(--kp-on-primary); }
/* KPHyper page structures migrated from the legacy Hyper stylesheet. */
.kp-theme .modal-body img { height: auto; max-width: 100%; }
.kp-theme .modal-dialog { max-width: min(700px, calc(100vw - 32px)); }
.kp-theme .modal-sm { max-width: min(600px, calc(100vw - 32px)); }
.kp-theme .geetest_holder.geetest_wind { min-width: 100% !important; width: 100% !important; }
.kp-theme .buy-grid { display: grid; gap: 24px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kp-theme .buy-shop { grid-column: span 2; }
.kp-theme .buy-product { grid-column: span 4; }
.kp-theme .buy-shop.hyper-sm-last { order: 13; }
.kp-theme .sticky { position: sticky; top: 88px; }
.kp-theme #buy-payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kp-theme #buy-payment-options .pay-grid { display: contents; }
.kp-theme .pay-type { margin: 0; min-width: 0; width: 100%; }
.kp-theme .kami-btn { float: right; margin-top: 8px; }
.kp-theme .stats-card { align-items: center; display: flex; min-height: 132px; padding: 24px; position: relative; }
.kp-theme .stats-detail { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.kp-theme .stats-detail > span { color: var(--kp-muted); font-size: 13px; }
.kp-theme .stats-member h6 { color: var(--kp-ink-strong); font-size: 16px; margin: 4px 0 12px !important; overflow-wrap: anywhere; }
.kp-theme .malus-invite-tips { color: var(--kp-muted); font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.kp-theme .btn-pill { border-radius: 999px; padding-left: 1.25rem; padding-right: 1.25rem; }
.kp-theme .btn-outline-orange { background: transparent; border: 1px solid var(--kp-success); color: var(--kp-success); }
.kp-theme .btn-outline-orange:hover { background: var(--kp-success-bg); color: var(--kp-success); }
.kp-theme .overview { align-items: center; }
.kp-theme .overview .card-title,
.kp-theme .invite-card .card-title,
.kp-theme .vip-center .card-title { font-size: 16px; font-weight: 800; }
.kp-theme .affiliate-overview { align-items: center; display: flex; gap: 12px; padding: 24px; }
.kp-theme .affiliate-overview > .card { box-shadow: none; flex: 0 1 260px; margin: 0; min-height: 88px; }
.kp-theme .affiliate-show-withdrowal-btn { margin-left: auto; min-height: 44px; padding-left: 28px; padding-right: 28px; }
.kp-theme .stamp { align-items: center; border-radius: var(--kp-radius-medium); display: flex; height: 48px; justify-content: center; min-width: 8px; width: 8px; }
.kp-theme .stamp.bg-success { background: var(--kp-success) !important; }
.kp-theme .stamp.bg-red { background: var(--kp-danger) !important; }
.kp-theme .contact { min-height: 136px; }
.kp-theme .malus-share .list { font-size: 14px; padding-left: 18px; }
.kp-theme .invite-table .table th { line-height: 1.2; vertical-align: middle; }
.kp-theme .invite-table .show-address { max-width: 180px; overflow-wrap: anywhere; }
.kp-theme .withdrowal-setting .label { color: var(--kp-muted-strong); display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.kp-theme .withdrowal-setting .account-info { margin-bottom: 22px; }
.kp-theme .withdrowal-setting .account-info .payment-type { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.kp-theme .withdrowal-setting .account { align-items: start; display: flex; flex-direction: column; }
.kp-theme .withdrowal-setting .form-wrapper,
.kp-theme .withdrowal-setting .account-name { width: 100%; }
.kp-theme .withdrowal-setting .desc { border-top: 1px solid var(--kp-line); margin-top: 20px; padding-top: 20px; }
.kp-theme .withdrowal-setting .desc h4 { color: var(--kp-ink-strong); font-size: 16px; margin-bottom: 16px; }
.kp-theme .withdrowal-setting .desc li { color: var(--kp-muted); font-size: 12px; line-height: 1.7; margin-top: 8px; }
.kp-theme .withdrowal-setting .desc button { float: right; margin-top: 22px; min-height: 44px; }
.kp-theme .choose-tag { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.kp-theme .choose-tag .tag { margin: 0; min-width: 100px; }
.kp-theme .choose-tag .discount-tag { background: var(--kp-danger); border-radius: 999px; color: var(--kp-on-danger); font-size: 11px; font-weight: 800; margin-left: 5px; padding: 2px 6px; }
.kp-theme .order-table .table td { border-top-color: var(--kp-line); padding-bottom: 13px !important; padding-top: 13px !important; vertical-align: middle !important; }
.kp-theme .kp-buy-price-block { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.kp-theme .kp-buy-price-block .buy-price {
    color: var(--kp-primary);
    font-family: "KP Interface", "Noto Sans SC", sans-serif;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.kp-theme .kp-retail-price { color: var(--kp-muted); font-family: "KP Interface", "Noto Sans SC", sans-serif; font-size: 14px; font-variant-numeric: tabular-nums; }
.kp-theme .buy-product img { height: auto; max-width: 100%; }
.kp-theme .captcha-img { cursor: pointer; max-height: 44px; }
.kp-theme .kp-captcha-button { align-items: center; background: var(--kp-surface-strong); border: 1px solid var(--kp-line-strong); border-radius: 0 var(--kp-radius-small) var(--kp-radius-small) 0; display: inline-flex; height: 44px; justify-content: center; margin: 0; overflow: hidden; padding: 0; }
.kp-theme .kp-captcha-button .captcha-img { height: 44px; object-fit: cover; width: 120px; }
.kp-theme .kp-image-modal-dialog { max-width: min(960px, calc(100vw - 32px)); }
.kp-theme .kp-image-modal-content .modal-body { padding: 12px; }
.kp-theme .kp-image-modal-content img { height: auto; max-height: calc(100vh - 150px); max-width: 100%; object-fit: contain; width: auto; }
.kp-theme .buy-product img[role="button"] { cursor: zoom-in; }

@media (prefers-reduced-motion: no-preference) {
    .kp-intro-mark { animation: kp-address-mark-in .52s cubic-bezier(.2, .8, .2, 1) both; }
    .kp-intro-copy h1,
    .kp-intro-copy p,
    .kp-intro-actions { animation: kp-hero-content-in 360ms cubic-bezier(.2, .8, .2, 1) both; }
    .kp-intro-copy h1 { animation-delay: 30ms; }
    .kp-intro-copy p { animation-delay: 90ms; }
    .kp-intro-actions { animation-delay: 150ms; }
    @keyframes kp-address-mark-in {
        from { opacity: 0; transform: translateX(18px) scale(.96); }
        to { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes kp-hero-content-in {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 991.98px) {
    .kp-intro-copy h1 { font-size: 36px; }
    .kp-intro-mark { right: 220px; }
    .kp-product-table-header,
    .kp-product-row { grid-template-columns: minmax(270px, 2.3fr) minmax(95px, .8fr) minmax(100px, .85fr) minmax(95px, .75fr) minmax(96px, .7fr); }
    .kp-product-table-header span:nth-child(5),
    .kp-product-sales { display: none; }
    .kp-theme .buy-grid { display: block; }
    .kp-theme .buy-shop,
    .kp-theme .buy-product { grid-column: auto; }
    .kp-theme .buy-shop.hyper-sm-last { order: initial; }
    .kp-theme .sticky { position: static; }
    .kp-theme .affiliate-overview { align-items: stretch; flex-direction: column; }
    .kp-theme .affiliate-overview > .card { flex-basis: auto; width: 100%; }
    .kp-theme .affiliate-show-withdrowal-btn { margin-left: 0; width: 100%; }
}

@media (max-width: 820px) {
    body.kp-theme { font-size: 16px; }
    .kp-theme .container { padding-left: 16px; padding-right: 16px; }
    .kp-main-content { padding-bottom: 40px; padding-top: 20px; }
    .kp-navbar { height: 64px; }
    .kp-brand { min-width: 80px; }
    .kp-brand img { height: 30px; max-width: 120px; }
    .kp-brand-text { font-size: 18px; }
    .kp-nav-actions { gap: 0; }
    .kp-nav-link { font-size: 12px; min-height: 44px; padding: 7px 8px; }
    .kp-nav-link.is-active::after { bottom: -12px; left: 8px; right: 8px; }
    .kp-login-action { font-size: 12px; margin-left: 2px; min-height: 44px; padding: 7px 11px; }
    .kp-home { padding-bottom: 40px; padding-top: 0; }
    .kp-intro { align-items: start; gap: 23px; grid-template-columns: 1fr; min-height: 0; padding: 32px 24px 24px; }
    .kp-intro-mark { font-size: 190px; right: 16px; top: 12px; }
    .kp-intro-copy h1 { font-size: 30px; max-width: none; }
    .kp-intro-copy p { font-size: 14px; max-width: 260px; }
    .kp-intro-actions { padding: 0; }
    .kp-notice { gap: 12px; grid-template-columns: 70px minmax(0, 1fr); padding: 14px 4px; }
    .kp-products,
    .kp-guides,
    .kp-support { padding-top: 26px; }
    .kp-section-heading { align-items: flex-start; }
    .kp-section-heading h2 { font-size: 23px; }
    .kp-section-heading p { margin-top: 6px; }
    .kp-category-nav { gap: 22px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
    .kp-category-nav { scrollbar-color: var(--kp-line-strong) transparent; scrollbar-width: thin; }
    .kp-category-nav::-webkit-scrollbar { display: block; height: 3px; }
    .kp-category-nav::-webkit-scrollbar-thumb { background: var(--kp-line-strong); border-radius: 3px; }
    .kp-category-nav::-webkit-scrollbar-track { background: transparent; }
    .kp-product-table { border-radius: var(--kp-radius-small); }
    .kp-product-table-header { display: none; }
    .kp-product-row { gap: 11px 12px; grid-template-areas: "main main action" "type stock price"; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 0; padding: 15px 14px; }
    .kp-product-main { grid-area: main; }
    .kp-product-main img { flex-basis: 42px; height: 42px; margin-right: 11px; width: 42px; }
    .kp-product-copy a,
    .kp-product-name { font-size: 13px; }
    .kp-product-type,
    .kp-product-stock,
    .kp-product-price,
    .kp-product-sales { align-items: center; display: inline-flex; }
    .kp-product-type { grid-area: type; padding-left: 53px; }
    .kp-product-stock { grid-area: stock; }
    .kp-product-price { grid-area: price; justify-self: end; }
    .kp-product-sales { display: none; }
    .kp-product-action { align-self: center; grid-area: action; }
    .kp-product-action .btn { min-width: 72px; padding: 7px 9px; }
    .kp-product-price strong { font-size: 14px; }
    .kp-product-price small { display: none; }
    .kp-status { font-size: 12px; padding: 6px 8px; }
    .kp-theme .card-body { padding: 16px; }
    .kp-theme .form-control,
    .kp-theme .custom-select { font-size: 16px; }
    .kp-theme .page-title { font-size: 24px; }
    .kp-theme .table-responsive { -webkit-overflow-scrolling: touch; }
    .kp-theme .buy-grid { gap: 16px; }
    .kp-theme .buy-shop .btn[type="submit"] { width: 100%; }
    .kp-task-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
    .kp-task-title { font-size: 25px; }
    .kp-task-surface { padding: 18px; }
    .kp-transaction-status { align-items: start; grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
    .kp-transaction-status > .btn { grid-column: 2; justify-self: start; }
    .kp-checkout-layout,
    .kp-order-detail-grid,
    .kp-qr-payment { grid-template-columns: minmax(0, 1fr); }
    .kp-qr-payment { max-width: 520px; padding: 20px; }
    .kp-qr-code { justify-self: center; }
    .kp-payment-panel { position: static; }
    .kp-order-detail { padding: 16px; }
    .kp-delivery-panel,
    .kp-order-summary-panel { padding: 16px; }
    .kp-delivery-output,
    .kp-delivery-pending { min-height: 180px; }
    .kp-order-summary-row { gap: 14px; grid-template-columns: minmax(96px, .7fr) minmax(0, 1.3fr); }
    .kp-support-shell { gap: 22px; grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .kp-support-intro { max-width: 54ch; }
    .kp-support-content [style*="display:flex"] { align-items: stretch !important; flex-direction: column !important; }
    .kp-support-content [style*="display:flex"] > :last-child { margin-left: auto !important; margin-right: auto !important; }
    .kp-footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
    .kp-footer-links { gap: 8px 16px; }
}

@media (max-width: 480px) {
    .kp-brand img { max-width: 96px; }
    .kp-section-meta p { display: none; }
    .kp-intro-copy h1 { font-size: 28px; }
    .kp-intro-actions { width: 100%; }
    .kp-primary-action,
    .kp-secondary-action { flex: 1 1 0; }
    .kp-product-row { grid-template-areas: "main action" "type price" "stock price"; grid-template-columns: minmax(0, 1fr) auto; }
    .kp-product-copy p { max-width: 172px; }
    .kp-product-stock { display: inline-flex; grid-area: stock; padding-left: 53px; }
    .kp-product-type { padding-left: 53px; }
    .kp-theme .kp-choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-theme .kp-choice { min-width: 0; width: 100%; }
    .kp-task-tabs { gap: 18px; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
    .kp-surface-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .kp-order-summary-row { display: block; }
    .kp-order-summary dd { margin-top: 4px; text-align: left; }
    .kp-delivery-actions .btn,
    .kp-recovery-actions .btn { width: 100%; }
    .kp-recovery-actions { width: 100%; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --kp-page: #0c1720;
        --kp-surface: #101f2a;
        --kp-surface-strong: #152633;
        --kp-surface-subtle: #203744;
        --kp-ink: #dce8f1;
        --kp-ink-strong: #f4f8fb;
        --kp-muted: #a8bbc9;
        --kp-muted-strong: #c6d4de;
        --kp-line: #314957;
        --kp-line-strong: #46616f;
        --kp-primary: #78bcee;
        --kp-primary-hover: #9accf1;
        --kp-primary-active: #b7dcf6;
        --kp-primary-soft: #193a53;
        --kp-hero: #123d5f;
        --kp-hero-text: #f4f8fc;
        --kp-hero-muted: #c6d7e4;
        --kp-success: #7bd3a5;
        --kp-success-bg: #1b3d2d;
        --kp-warning: #edc36b;
        --kp-warning-bg: #3e321b;
        --kp-danger: #ff9da5;
        --kp-danger-bg: #4b2529;
        --kp-on-primary: #071d2e;
        --kp-on-danger: #2a0e12;
        --kp-on-strong: #071d2e;
        --kp-shadow-focus: 0 14px 34px rgba(0, 0, 0, .2);
        --kp-shadow-floating: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px -6px rgba(0, 0, 0, .34);
    }
    .kp-navbar { background: rgba(23, 39, 52, .96); }
    .kp-product-main img { outline-color: rgba(255, 255, 255, .1); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .kp-intro-mark,
    .kp-intro-copy h1,
    .kp-intro-copy p,
    .kp-intro-actions { animation: none !important; }
    .kp-skip-link,
    .kp-nav-link,
    .kp-user-menu > summary::after,
    .kp-primary-action,
    .kp-secondary-action,
    .kp-category-link,
    .kp-product-tabs .fade,
    .kp-product-row,
    .kp-product-action .btn,
    .kp-guide-row,
    .kp-theme .btn,
    .kp-theme .form-control,
    .kp-theme .custom-select,
    .kp-theme .kp-choice { transition: none !important; }
}
