html {
    font-size: 16px;
    background: #f5f7fb;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: #17213a;
    background:
        radial-gradient(circle at 8% 0%, rgba(104, 126, 255, .13), transparent 28rem),
        radial-gradient(circle at 100% 12%, rgba(48, 198, 173, .10), transparent 26rem),
        #f5f7fb;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container,
.container.h-100,
main.h-100 {
    width: 100%;
    max-width: none;
    height: auto !important;
    min-height: 100vh;
    padding: 0;
}

.hp-payment-page {
    min-height: 100vh;
}

.hp-topbar {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #17213a;
    text-decoration: none;
}

.hp-brand:hover {
    color: #17213a;
}

.hp-brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(140deg, #687dff 0%, #5364d8 100%);
    box-shadow: 0 8px 18px rgba(83, 100, 216, .25);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.06em;
}

.hp-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.hp-brand-copy strong {
    font-size: 15px;
    letter-spacing: .12em;
}

.hp-brand-copy small {
    margin-top: 4px;
    color: #8b95aa;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
}

.hp-secure-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c7890;
    font-size: 12px;
    font-weight: 600;
}

.hp-status-dot,
.hp-network-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #22b98f;
    box-shadow: 0 0 0 4px rgba(34, 185, 143, .12);
}

.hp-main {
    width: min(560px, calc(100% - 32px));
    margin: 0 auto;
    padding: 35px 0 38px;
}

.hp-heading {
    margin-bottom: 22px;
}

.hp-eyebrow {
    margin-bottom: 10px;
    color: #6477e8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.hp-heading h1 {
    margin: 0;
    color: #17213a;
    font-size: clamp(25px, 5vw, 34px);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.2;
}

.hp-heading p {
    margin: 10px 0 0;
    color: #7d879c;
    font-size: 14px;
    line-height: 1.7;
}

.hp-payment-card,
.hp-details-card,
.hp-help-card {
    border: 1px solid rgba(222, 227, 239, .95);
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 55px rgba(39, 53, 91, .08), 0 2px 8px rgba(39, 53, 91, .035);
    backdrop-filter: blur(14px);
}

.hp-payment-card {
    padding: 25px;
}

.hp-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.hp-card-label {
    display: block;
    margin-bottom: 7px;
    color: #8a94a8;
    font-size: 12px;
    font-weight: 650;
}

.hp-amount {
    color: #17213a;
    font-size: 31px;
    font-weight: 780;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.hp-amount span {
    margin-left: 5px;
    color: #6477e8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
}

.hp-network-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 9px 12px;
    border: 1px solid #e5e9f4;
    border-radius: 13px;
    color: #68748d;
    background: #f8f9fd;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.hp-network-badge b {
    color: #303c58;
    font-size: 12px;
}

.hp-network-badge .hp-network-dot {
    width: 6px;
    height: 6px;
    margin-right: 4px;
    box-shadow: none;
}

.hp-countdown {
    min-height: 45px;
    margin: 22px 0 19px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 13px;
    color: #6f7b91;
    background: #f7f8fc;
    font-size: 12px;
    font-weight: 650;
}

.hp-countdown strong {
    margin-left: auto;
    color: #d35e67;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    letter-spacing: .02em;
}

.hp-countdown-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e16b74;
    box-shadow: 0 0 0 4px rgba(225, 107, 116, .12);
}

.hp-qr-panel {
    padding: 20px 18px 17px;
    border: 1px solid #edf0f6;
    border-radius: 18px;
    background: linear-gradient(145deg, #fbfcff 0%, #f7f9fe 100%);
    text-align: center;
}

.hp-qr-title {
    margin-bottom: 14px;
    color: #303c58;
    font-size: 14px;
    font-weight: 750;
}

.hp-qr-wrap {
    width: 206px;
    height: 206px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border: 10px solid #fff;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(44, 59, 101, .10);
}

.hp-qr-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.hp-qr-help {
    margin: 13px 0 0;
    color: #929bad;
    font-size: 12px;
}

.hp-address-group {
    margin-top: 20px;
}

.hp-address-group label {
    display: block;
    margin-bottom: 8px;
    color: #647089;
    font-size: 12px;
    font-weight: 750;
}

.hp-copy-row {
    display: flex;
    gap: 8px;
}

.hp-copy-row input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e2e6f0;
    border-radius: 11px;
    outline: none;
    color: #48546c;
    background: #f9faff;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.hp-copy-row input:focus {
    border-color: #8290ee;
    box-shadow: 0 0 0 3px rgba(100, 119, 232, .12);
}

.hp-copy-btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #6477e8;
    box-shadow: 0 7px 16px rgba(100, 119, 232, .22);
    font-size: 12px;
    font-weight: 750;
    transition: transform .16s ease, background .16s ease;
}

.hp-copy-btn:hover {
    color: #fff;
    background: #5366d7;
    transform: translateY(-1px);
}

.hp-warning {
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #f3e3c8;
    border-radius: 12px;
    color: #9a7445;
    background: #fffaf1;
    font-size: 11px;
    line-height: 1.6;
}

.hp-warning-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #dca65c;
    font-size: 11px;
    font-weight: 800;
}

.hp-details-card {
    margin-top: 14px;
    padding: 17px 21px;
}

.hp-details-title {
    margin-bottom: 11px;
    color: #303c58;
    font-size: 13px;
    font-weight: 800;
}

.hp-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid #f0f2f7;
    color: #8b95a8;
    font-size: 12px;
}

.hp-detail-row strong {
    max-width: 70%;
    color: #4b5872;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.hp-help-card {
    margin-top: 14px;
    overflow: hidden;
}

.hp-help-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 21px;
    color: #53617b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    list-style: none;
}

.hp-help-card summary::-webkit-details-marker {
    display: none;
}

.hp-summary-arrow {
    color: #6477e8;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}

.hp-help-card[open] .hp-summary-arrow {
    transform: rotate(45deg);
}

.hp-help-content {
    padding: 0 21px 18px;
    color: #8b95a8;
    font-size: 12px;
    line-height: 1.7;
}

.hp-help-content p {
    margin: 0 0 12px;
}

.hp-buy-links {
    display: flex;
    gap: 9px;
}

.hp-buy-links a {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e4e8f2;
    border-radius: 10px;
    color: #5366d7;
    background: #fafbff;
    text-align: center;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease;
}

.hp-buy-links a:hover {
    border-color: #aeb8f3;
    background: #f3f5ff;
}

.hp-buy-links a span {
    margin-left: 3px;
    font-size: 13px;
}

.hp-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 3px 0;
    color: #a2aabb;
    font-size: 10px;
    line-height: 1.5;
}

.hp-footer span:first-child {
    color: #7f8be2;
    font-weight: 800;
    letter-spacing: .12em;
}

.hp-empty-state {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    color: #66738c;
    text-align: center;
}

.hp-empty-state h1 {
    margin: 15px 0 6px;
    color: #283650;
    font-size: 27px;
}

.hp-empty-state p {
    margin: 0;
    font-size: 14px;
}

.hp-empty-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: #d86770;
    font-size: 22px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .hp-topbar {
        width: calc(100% - 28px);
        min-height: 68px;
    }

    .hp-secure-status {
        font-size: 10px;
    }

    .hp-main {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .hp-heading {
        margin-bottom: 17px;
    }

    .hp-heading h1 {
        font-size: 27px;
    }

    .hp-heading p {
        font-size: 13px;
    }

    .hp-payment-card {
        padding: 17px;
        border-radius: 20px;
    }

    .hp-card-header {
        display: block;
    }

    .hp-network-badge {
        width: fit-content;
        margin-top: 14px;
        align-items: flex-start;
        text-align: left;
    }

    .hp-amount {
        font-size: 29px;
    }

    .hp-qr-wrap {
        width: min(206px, 64vw);
        height: min(206px, 64vw);
    }

    .hp-copy-row {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .hp-copy-row input {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hp-copy-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hp-detail-row {
        display: block;
    }

    .hp-detail-row strong {
        display: block;
        max-width: 100%;
        margin-top: 4px;
        text-align: left;
    }

    .hp-buy-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hp-footer {
        display: block;
        padding-left: 4px;
        padding-right: 4px;
    }

    .hp-footer span {
        display: block;
        margin-bottom: 5px;
    }
}