/* ── VIP Modal 2026 v20260808 — Premium Spacious Design ── */
.qpvm-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(15,23,42,.6);
    display: flex; justify-content: center; align-items: center; padding: 24px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.qpvm-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease, visibility 0s linear 0s; }

.qpvm-card {
    position: relative; background: #fff; border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.04);
    width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto;
    transform: translateY(12px); opacity: 0;
    transition: transform .3s cubic-bezier(.16,1,0.3,1), opacity .25s ease-out;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.qpvm-overlay.is-open .qpvm-card { transform: translateY(0); opacity: 1; }
.qpvm-card::-webkit-scrollbar { width: 6px; }
.qpvm-card::-webkit-scrollbar-track { background: transparent; }
.qpvm-card::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

.qpvm-close {
    position: absolute; top: 16px; right: 16px;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    color: #64748B; cursor: pointer; z-index: 5;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s ease;
}
.qpvm-close:hover { background: #F1F5F9; color: #334155; }

/* ── Top Bar ── */
.qpvm-topbar {
    background: linear-gradient(135deg, #0D9488, #14B8A6); color: #fff;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 50px 16px 20px; position: relative; overflow: hidden;
}
.qpvm-topbar::before {
    content: ''; position: absolute; top: -40px; right: -25px;
    width: 150px; height: 150px; border-radius: 50%;
    background: rgba(255,255,255,.06); pointer-events: none;
}
.qpvm-avatar {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.18); display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.2);
}
.qpvm-avatar svg { width: 18px; height: 18px; }
.qpvm-topinfo { flex: 1; min-width: 0; }
.qpvm-nickname { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qpvm-role-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.7); }
#qpvmRole { font-size: 12px; color: rgba(255,255,255,.7); }
#qpvmUid { font-size: 12px; color: rgba(255,255,255,.55); }
.qpvm-topbadge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 2px 6px rgba(245,158,11,.3); flex-shrink: 0;
}
.qpvm-topbadge svg { width: 11px; height: 11px; }

/* ── Main ── */
.qpvm-main { padding: 22px 28px 28px; }

.qpvm-section-title {
    font-weight: 800; font-size: 18px; color: #0F172A; margin-bottom: 18px;
    letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* ── Plans ── */
.qpvm-plans { display: flex; gap: 10px; }
.qpvm-plan {
    position: relative; flex: 1; min-width: 0;
    border: 2px solid #E2E8F0; border-radius: 14px;
    padding: 20px 12px 16px; cursor: pointer; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    background: #FAFCFD; transition: border-color .18s, box-shadow .18s, background .18s;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.qpvm-plan--free {
    border-color: #E2E8F0; background: #F8FAFC; cursor: default;
}
.qpvm-plan--free:hover { border-color: #CBD5E1; box-shadow: none; }
.qpvm-plan--free .qpvm-plan-title { color: #64748B; }
.qpvm-plan--free .qpvm-plan-price { color: #94A3B8; }
.qpvm-plan--free .qpvm-plan-unit { color: #94A3B8; }
.qpvm-plan--free .qpvm-plan-desc-line { color: #64748B; border-top-color: #E2E8F0; font-size: 12px; }

.qpvm-plan:hover {
    border-color: #5EEAD4;
    box-shadow: 0 4px 16px rgba(13,148,136,.06);
    background: #fff;
}
.qpvm-plan.qpvm-selected {
    border-color: #0D9488; border-width: 2px;
    background: linear-gradient(180deg, #F0FDFA 0%, #fff 100%);
    box-shadow: 0 8px 24px rgba(13,148,136,.1);
}
.qpvm-plan.qpvm-selected:hover {
    border-color: #0D9488;
    box-shadow: 0 8px 24px rgba(13,148,136,.1);
}
.qpvm-plan.qpvm-selected::after {
    content: ''; position: absolute; bottom: 10px; right: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #0D9488 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/12px no-repeat;
    box-shadow: 0 2px 6px rgba(13,148,136,.25); z-index: 2;
}
.qpvm-plan.qpvm-selected::before { display: none; }

.qpvm-plan-title { font-weight: 700; font-size: 15px; color: #0F172A; margin-bottom: 8px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; letter-spacing: -0.01em; }
.qpvm-plan-price { font-weight: 800; font-size: 26px; color: #0D9488; line-height: 1.2; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; }
.qpvm-plan-unit { font-size: 12px; color: #64748B; margin-bottom: 8px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 500; }
.qpvm-plan-daily { font-size: 11px; color: #94A3B8; margin-bottom: 6px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 500; }
.qpvm-plan-desc-line {
    font-size: 12px; color: #134E4A; line-height: 1.5;
    padding-top: 10px; border-top: 1px solid #E0F2F1; width: 100%; font-weight: 600;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}

.qpvm-plan-badge {
    position: absolute; top: -10px; right: -6px;
    background: #F97316; color: #fff;
    font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px;
    white-space: nowrap; z-index: 1;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; letter-spacing: 0.02em;
}
.qpvm-plan-badge--recommend {
    background: #0D9488;
}
.qpvm-plan-badge--hot {
    background: #EF4444;
}
.qpvm-plan-badge--free {
    background: #94A3B8;
}

/* ── Payment ── */
.qpvm-pay {
    display: flex; gap: 24px; margin-top: 20px; align-items: center;
    padding-top: 20px; border-top: 1px solid #E2E8F0;
}
.qpvm-qrwrap { flex-shrink: 0; text-align: center; }
.qpvm-pay-success { padding: 12px 8px; animation: qpvm-pop .25s ease-out; }
.qpvm-pay-success .qpvm-success-icon {
    width: 50px; height: 50px; margin: 0 auto 8px; border-radius: 50%;
    background: linear-gradient(135deg, #0D9488, #14B8A6); color: #fff;
    font-size: 22px; line-height: 50px; font-weight: 700;
    box-shadow: 0 6px 16px rgba(13,148,136,.25);
}
.qpvm-pay-success .qpvm-success-title { font-size: 16px; font-weight: 700; color: #1E293B; }
.qpvm-pay-success .qpvm-success-sub { font-size: 13px; color: #0D9488; margin-top: 2px; font-weight: 600; }
.qpvm-status--ok { color: #0D9488 !important; }
@keyframes qpvm-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.qpvm-qr {
    width: 140px; height: 140px; background: #fff;
    border: 1px solid #E2E8F0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qpvm-qr img { width: 140px; height: 140px; display: block; }
.qpvm-qr-hint { font-size: 11px; color: #94A3B8; padding: 0 8px; }
.qpvm-qr-tip { margin-top: 8px; font-size: 12px; color: #64748B; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 500; }

.qpvm-payinfo { flex: 1; min-width: 0; }
.qpvm-seckill { font-size: 13px; color: #374151; margin-bottom: 6px; }
#qpvmCountdown { font-weight: 700; color: #EF4444; font-variant-numeric: tabular-nums; }
.qpvm-price-row { display: flex; align-items: baseline; gap: 8px; }
#qpvmPrice { font-size: 32px; font-weight: 800; color: #0D9488; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums; }
#qpvmOrig { font-size: 13px; color: #94A3B8; text-decoration: line-through; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.qpvm-pay-benefits { font-size: 13px; color: #334155; margin-top: 12px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.qpvm-pay-benefits strong { color: #0D9488; font-weight: 700; }
.qpvm-agreement { font-size: 12px; color: #64748B; margin-top: 10px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.qpvm-agreement a { color: #0D9488; text-decoration: none; font-weight: 600; }
.qpvm-agreement a:hover { text-decoration: underline; }
.qpvm-tipbar { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; background: #FAF8F5; border-radius: 10px; }
.qpvm-tipbar-badge { flex-shrink: 0; padding: 5px 14px; background: #F97316; color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: 0.02em; }
.qpvm-tipbar-text { font-size: 12px; color: #374151; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.qpvm-tipbar-highlight { color: #DC2626; font-weight: 700; }


.qpvm-status { font-size: 13px; color: #0D9488; margin-top: 14px; min-height: 18px; font-weight: 500; }
.qpvm-status--tip { color: #64748B !important; }

/* ── Agreement Modal ── */
.qpvm-agreement-overlay {
    display: none; position: fixed; inset: 0; z-index: 10001;
    background: rgba(15,23,42,.45); backdrop-filter: blur(4px);
    justify-content: center; align-items: center; padding: 16px;
}
.qpvm-agreement-overlay.is-open { display: flex; }
.qpvm-agreement-inner {
    background: #fff; border-radius: 12px; max-width: 460px; width: 100%;
    max-height: 70vh; overflow-y: auto; padding: 24px 28px;
    animation: qpvm-pop .2s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.qpvm-agreement-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qpvm-agreement-title { font-weight: 700; font-size: 15px; color: #1E293B; }
.qpvm-agreement-close {
    background: none; border: none; color: #94A3B8; cursor: pointer;
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.qpvm-agreement-close:hover { background: #F1F5F9; color: #334155; }
.qpvm-agreement-body { font-size: 13px; color: #475569; line-height: 1.7; }
.qpvm-agreement-body p { margin: 0 0 10px; }
.qpvm-agreement-body p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 540px) {
    .qpvm-main { padding: 14px 16px 18px; }
    .qpvm-plans { gap: 6px; }
    .qpvm-plan { padding: 12px 8px 10px; border-radius: 10px; }
    .qpvm-plan-title { font-size: 12px; }
    .qpvm-plan-price { font-size: 17px; }
    .qpvm-plan-unit { font-size: 10px; }
    .qpvm-plan-desc-line { font-size: 10px; }
    .qpvm-pay { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .qpvm-price-row { justify-content: center; }
    .qpvm-qr { width: 120px; height: 120px; }
    .qpvm-qr img { width: 120px; height: 120px; }
}
@media (max-width: 380px) {
    .qpvm-plans { flex-direction: column; gap: 6px; }
    .qpvm-plan { padding: 10px 8px; }
    .qpvm-plan-badge { font-size: 8px; padding: 2px 5px; top: -5px; }
    .qpvm-section-title { font-size: 14px; }
    .qpvm-topbar { padding: 10px 38px 10px 12px; }
    .qpvm-main { padding: 12px; }
    .qpvm-qr { width: 100px; height: 100px; }
    .qpvm-qr img { width: 100px; height: 100px; }
    #qpvmPrice { font-size: 18px; }
}

/* ── Dark Mode ── */
body.dark-mode .qpvm-overlay { background: rgba(2,6,23,.7); }
body.dark-mode .qpvm-card { background: #1E293B; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
body.dark-mode .qpvm-close { background: #334155; border-color: #475569; color: #CBD5E1; }
body.dark-mode .qpvm-close:hover { background: #475569; color: #F1F5F9; }
body.dark-mode .qpvm-topbar { background: linear-gradient(135deg, #0F766E, #0D9488); }
body.dark-mode .qpvm-section-title { color: #E0F2F1; }
body.dark-mode .qpvm-plan { background: #0F172A; border-color: rgba(13,148,136,.2); }
body.dark-mode .qpvm-plan:hover { background: #1E293B; border-color: #2DD4BF; }
body.dark-mode .qpvm-plan.qpvm-selected { background: linear-gradient(180deg,rgba(13,148,136,.1) 0%,#0F172A 100%); border-color: #2DD4BF; }
body.dark-mode .qpvm-plan.qpvm-selected:hover { border-color: #2DD4BF; background: linear-gradient(180deg,rgba(13,148,136,.1) 0%,#0F172A 100%); }
body.dark-mode .qpvm-plan.qpvm-selected::after { background: #2DD4BF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/11px no-repeat; box-shadow: 0 2px 4px rgba(45,212,191,.25); }
body.dark-mode .qpvm-plan-title { color: #E0F2F1; }
body.dark-mode .qpvm-plan-price { color: #5EEAD4; }
body.dark-mode .qpvm-plan-unit { color: #94A3B8; }
body.dark-mode .qpvm-plan-desc-line { color: #99F6E4; border-top-color: rgba(13,148,136,.15); }
body.dark-mode .qpvm-plan--free { background: #0F172A; border-color: rgba(71,85,105,.3); }
body.dark-mode .qpvm-plan--free:hover { background: #0F172A; border-color: rgba(71,85,105,.5); }
body.dark-mode .qpvm-plan--free .qpvm-plan-title { color: #94A3B8; }
body.dark-mode .qpvm-plan--free .qpvm-plan-price { color: #64748B; }
body.dark-mode .qpvm-plan--free .qpvm-plan-unit { color: #64748B; }
body.dark-mode .qpvm-plan--free .qpvm-plan-desc-line { color: #64748B; border-top-color: rgba(71,85,105,.25); }
body.dark-mode .qpvm-pay { border-top-color: rgba(13,148,136,.12); }
body.dark-mode .qpvm-qr { border-color: rgba(13,148,136,.15); }
body.dark-mode #qpvmPrice { color: #5EEAD4; }
body.dark-mode #qpvmOrig { color: #64748B; }
body.dark-mode .qpvm-pay-benefits { color: #94A3B8; }
body.dark-mode .qpvm-pay-benefits strong { color: #5EEAD4; }
body.dark-mode .qpvm-agreement { color: #94A3B8; }
body.dark-mode .qpvm-agreement a { color: #5EEAD4; }
body.dark-mode .qpvm-status { color: #99F6E4; }
body.dark-mode .qpvm-status--tip { color: #94A3B8 !important; }
body.dark-mode .qpvm-agreement-inner { background: #1E293B; }
body.dark-mode .qpvm-agreement-title { color: #E0F2F1; }
body.dark-mode .qpvm-agreement-body { color: #CBD5E1; }
body.dark-mode .qpvm-agreement-close:hover { background: rgba(71,85,105,.3); color: #F1F5F9; }
