/* Cổng hỗ trợ có phí (cửa sổ quét QR). Chỉ nạp khi bật trong Cài đặt. */
body.wct-sg-open { overflow: hidden; }
.wct-sg[hidden] { display: none; }
.wct-sg { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; font-family: inherit; }
.wct-sg-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); backdrop-filter: blur(4px); animation: wctSgFade .2s ease; }

.wct-sg .wct-sg-panel.wct-sg-single-panel {
    position: relative;
    width: min(540px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    padding: 0 !important;
    border-radius: 24px !important;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, .4) !important;
    overflow: hidden !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    animation: wctSgRise .28s cubic-bezier(.16, 1, .3, 1);
    outline: 0;
}

.wct-sg-panel::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    border-radius: 24px 24px 0 0; background: linear-gradient(90deg, #2563eb, #38bdf8); z-index: 10;
}

.wct-sg-close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
    border: 0; border-radius: 50%; background: #f1f5f9; color: #475569;
    cursor: pointer; transition: all .18s; z-index: 20;
    display: grid; place-items: center; padding: 0;
}
.wct-sg-close:hover { background: #e2e8f0; color: #0f172a; transform: scale(1.05); }

.wct-sg-single-panel .wct-sg-scroll {
    padding: 30px 24px 22px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.wct-sg-single-panel .wct-sg-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.wct-sg-eyebrow { margin: 0 0 2px; color: #2563eb; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.wct-sg-title { margin: 0 0 4px; font-size: 21px; font-weight: 800; color: #0f172a; text-align: center; }
.wct-sg-single-panel .wct-sg-intro { margin: 0 auto 14px; text-align: center; font-size: 13px; line-height: 1.45; color: #64748b; max-width: 520px; }

.wct-sg-single-card {
    padding: 16px; border: 1px solid #e2e8f0; border-radius: 18px;
    background: #ffffff; box-shadow: 0 8px 24px -8px rgba(0,0,0,.08);
}
.wct-sg-pay-center {
    display: grid; grid-template-columns: 175px 1fr; gap: 16px; align-items: start;
}
.wct-sg-qr-col {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.wct-sg-single-card .wct-sg-qr {
    width: 170px; height: 170px; padding: 6px; border-radius: 14px; background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 1px solid #e2e8f0; display: grid; place-items: center;
    box-sizing: border-box;
}
.wct-sg-single-card .wct-sg-qr img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block;
}
.wct-sg-single-card .wct-sg-qr img[hidden] { display: none !important; }
.wct-sg-loading { color: #64748b; font-size: 13px; }
.wct-sg-loading[hidden] { display: none !important; }
.wct-sg-qr-caption {
    font-size: 11px; font-weight: 700; color: #0068FF; margin-top: 6px; text-align: center;
}

.wct-sg-info-col {
    display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.wct-sg-single-card .wct-sg-bank {
    text-align: left; width: 100%; margin: 0;
    background: #f8fafc; padding: 10px 14px; border-radius: 12px;
    border: 1px solid #e2e8f0; display: block; box-sizing: border-box;
}
.wct-sg-single-card .wct-sg-bank dt {
    margin: 0 0 1px; color: #64748b; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.wct-sg-single-card .wct-sg-bank dd {
    margin: 0 0 6px; color: #0f172a; font-size: 13px; font-weight: 600; overflow-wrap: anywhere;
}
.wct-sg-single-card .wct-sg-bank dd:last-child { margin-bottom: 0; }
.wct-sg-single-card .wct-sg-bank dd strong { font-family: ui-monospace, "JetBrains Mono", monospace; }

.wct-sg-copy {
    margin-left: 6px; padding: 2px 8px; border: 1px solid #cbd5e1; border-radius: 999px;
    background: #fff; color: #334155; font-size: 11px; font-weight: 600; cursor: pointer; min-height: 22px;
}
.wct-sg-copy:hover { border-color: #93c5fd; color: #1d4ed8; }

.wct-sg-action-zone { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.wct-sg-btn-zalo {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px;
    background: #0068FF !important; text-decoration: none !important;
    box-shadow: 0 8px 20px -4px rgba(0, 104, 255, .45);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    cursor: pointer; box-sizing: border-box;
}
.wct-sg-btn-zalo:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 12px 24px -4px rgba(0, 104, 255, .6);
    background: #0056d6 !important;
}
.wct-sg-zalo-circle,
.wct-sg-zalo-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #ffffff !important; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.wct-sg-zalo-circle svg,
.wct-sg-zalo-badge svg { display: block; width: 15px; height: 15px; }
.wct-sg-zalo-circle svg path,
.wct-sg-zalo-badge svg path { fill: #0068FF !important; }
.wct-sg-zalo-label {
    color: #ffffff !important; font-size: 13.5px !important; font-weight: 700 !important;
    white-space: nowrap; letter-spacing: -0.01em; line-height: 1.2;
}

.wct-sg-hint-text {
    margin: 2px 0 0; color: #64748b; font-size: 11.5px; line-height: 1.4; text-align: center;
}

.wct-sg-single-panel .wct-sg-free {
    margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #f1f5f9;
    color: #64748b; font-size: 12.5px; text-align: center;
}
.wct-sg-single-panel .wct-sg-free a {
    color: #0068FF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

@keyframes wctSgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wctSgRise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
    .wct-sg { padding: 0; align-items: end; }
    .wct-sg .wct-sg-panel.wct-sg-single-panel {
        width: 100% !important; max-height: 94vh; max-height: 94dvh;
        border-radius: 22px 22px 0 0 !important;
    }
}
@media (max-width: 590px) {
    .wct-sg-pay-center { grid-template-columns: 1fr; gap: 12px; }
    .wct-sg-single-card .wct-sg-qr { width: 150px; height: 150px; }
}
