.swal2-container { z-index: 100000 !important; }
.swal2-actions .swal2-deny,
.swal2-actions .swal2-cancel { display: none !important; }
.swal2-actions .swal2-confirm { display: inline-flex !important; }

#visitor-check-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 24, 50, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
#visitor-check-overlay.visible {
    opacity: 1;
    pointer-events: all;
}
#visitor-mini-popup {
    background: #fff;
    border-radius: 18px;
    width: 300px;
    max-width: calc(100vw - 28px);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(3, 105, 161, 0.2), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(18px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34,1.5,0.64,1), opacity 0.22s ease;
    opacity: 0;
}
#visitor-check-overlay.visible #visitor-mini-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.vcp-strip {
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #0369a1);
}
.vcp-body { padding: 20px 20px 18px; }
.vcp-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}
.vcp-head-icon {
    width: 38px; height: 38px;
    background: #e0f2fe;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}
.vcp-head-icon.state-success { background: #dcfce7; }
.vcp-head-icon.state-error   { background: #fee2e2; }
.vcp-head-icon i { color: #0369a1; font-size: 17px; transition: color 0.3s ease; }
.vcp-head-icon.state-success i { color: #16a34a; }
.vcp-head-icon.state-error   i { color: #dc2626; }
.vcp-head-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 700; color: #0c4a6e; margin: 0;
}
.vcp-head-sub { font-size: 11px; color: #94a3b8; margin: 2px 0 0; }
.vcp-status-row {
    display: flex; align-items: flex-start; gap: 9px;
    background: #f8fcff; border: 1px solid #e0f2fe;
    border-radius: 9px; padding: 10px 12px; margin-bottom: 12px;
}
.vcp-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    background: #cbd5e1; transition: background 0.3s;
    margin-top: 5px;
}
.vcp-dot.checking { background: #f59e0b; animation: vcp-pulse 1s infinite; }
.vcp-dot.success  { background: #22c55e; }
.vcp-dot.error    { background: #ef4444; }
@keyframes vcp-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(.7); }
}
.vcp-status-text {
    font-size: 12px; font-family: 'Inter', sans-serif;
    color: #334155; font-weight: 500;
    flex: 1;
    min-width: 0;
}
.vcp-status-label { display: block; }
.vcp-id-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    min-width: 0;
}
.vcp-id-row i {
    font-size: 10px;
    color: #94a3b8;
    flex-shrink: 0;
}
.vcp-id-chip {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 10px;
    letter-spacing: 0.2px;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #cfe9fb;
    padding: 1px 7px;
    border-radius: 999px;
    cursor: default;
}
.vcp-id-chip.is-error {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}
.vcp-countdown-wrap {
    display: none; flex-direction: column; gap: 6px; margin-bottom: 12px;
}
.vcp-countdown-wrap.show { display: flex; }
.vcp-cd-row { display: flex; justify-content: space-between; align-items: center; }
.vcp-cd-label { font-size: 11px; color: #94a3b8; font-family: 'Inter', sans-serif; }
.vcp-cd-num {
    font-size: 11px; font-weight: 700; color: #0369a1;
    font-family: 'Inter', sans-serif;
    background: #e0f2fe; padding: 1px 8px; border-radius: 99px;
    min-width: 20px;
    text-align: center;
}
.vcp-progress-track {
    width: 100%; height: 4px; background: #e0f2fe;
    border-radius: 99px; overflow: hidden;
}
.vcp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0369a1);
    border-radius: 99px; width: 100%; transition: width 1s linear;
}
.vcp-action {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    border-radius: 9px; padding: 9px 14px;
}
.vcp-action i { color: rgba(255,255,255,0.9); font-size: 12px; }
.vcp-action span {
    font-size: 12px; font-family: 'Inter', sans-serif;
    color: #fff; font-weight: 600;
}
.captcha-area { margin: 4px 0 2px; }
.captcha-row { display: flex; justify-content: center; min-height: 65px; }
.captcha-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; font-size: 0.82rem; color: #64748b; min-height: 52px;
}
.captcha-placeholder a { color: #0369a1; text-decoration: underline; }
