/* Chỉ bổ sung phần QR; giao diện chính vẫn dùng nguyên stylesheet cũ. */
.qr-open-button {
    width: 100%;
    border: 0;
    cursor: pointer;
}
.wussun-card_btn.btn-close {
    width: 100%;
}
.youtube-music-player {
    position: fixed;
    left: -10000px;
    bottom: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
}
.avatar__hexagon {
    -webkit-clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}
#payment-details-view,
#payment-qr-view {
    animation: payment-view-in .25s ease;
}
@keyframes payment-view-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.payment-qr-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}
.payment-back-button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(142.17deg, #3086ff 6.66%, #304cfd 91.48%);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}
.payment-back-button i {
    margin-right: 5px;
}
.payment-qr-card {
    display: block;
    margin-bottom: 20px;
    padding: 14px;
    text-align: center;
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.payment-qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(48, 76, 253, .16);
}
.payment-qr-card img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: contain;
    border-radius: 10px;
}
.payment-qr-card .title {
    margin: 12px 0 0;
}
.payment-toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    z-index: 10001;
    padding: 10px 16px;
    border-radius: 8px;
    background: #304cfd;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: .2s ease;
}
.payment-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.corner-icon-moon a,
.corner-icon-qrcode a {
    cursor: pointer;
}
.corner-icon-sound button {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
}
.corner-icon-sound {
    right: 10px;
    bottom: 222px;
}
.corner-icon-sound button i {
    transition: transform .2s ease, color .2s ease;
}
.corner-icon-sound button:hover i {
    color: #304cfd;
    transform: scale(1.12);
}
.site-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 12, 20, .78);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.transfer-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 12, 20, .76);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
}
.transfer-qr-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.transfer-qr-dialog {
    position: relative;
    width: min(520px, 100%);
    padding: 18px 18px 15px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
    text-align: center;
    transform: translateY(18px) scale(.88);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.transfer-qr-modal.is-open .transfer-qr-dialog {
    transform: translateY(0) scale(1);
}
.transfer-qr-dialog img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 130px);
    border-radius: 12px;
    object-fit: contain;
}
.transfer-qr-dialog .title {
    margin: 12px 0 0;
    color: #2d3e50;
}
.transfer-qr-close {
    position: absolute;
    top: -13px;
    right: -13px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #304cfd;
    color: #fff;
    box-shadow: 0 6px 18px rgba(48, 76, 253, .35);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
body.transfer-qr-open {
    overflow: hidden;
}
.case-item.box__second {
    transition: transform .24s ease, box-shadow .24s ease;
}
.case-item.box__second:hover {
    transform: translateY(-3px);
}
.td-copy {
    transition: color .2s ease, transform .2s ease;
}
.td-copy:hover {
    color: #304cfd;
    transform: scale(1.15);
}
.site-qr-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.site-qr-dialog {
    position: relative;
    width: min(430px, 100%);
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    transform: scale(.96);
    transition: transform .2s ease;
}
.site-qr-modal.is-open .site-qr-dialog {
    transform: scale(1);
}
.site-qr-dialog img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 72px);
    border-radius: 10px;
    object-fit: contain;
}
.site-qr-close {
    position: absolute;
    top: -13px;
    right: -13px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #304cfd;
    color: #fff;
    box-shadow: 0 6px 18px rgba(48, 76, 253, .35);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
body.site-qr-open {
    overflow: hidden;
}
@media only screen and (max-width: 767px) {
    .payment-qr-heading {
        display: block;
    }
    .payment-back-button {
        margin: 0 0 18px;
    }
    .site-qr-dialog {
        width: min(360px, 100%);
    }
    .transfer-qr-dialog {
        width: min(390px, 100%);
        padding: 12px;
    }
}
