.otp-input-group {
    letter-spacing: 0.25rem;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 600;
}
.step-2 {
    display: none;
}

/* VCB Digibank QR Button */
.btn-bank-qr {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px dashed #16a34a;
    color: #15803d;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}
.btn-bank-qr:hover, .btn-bank-qr:active {
    background: #dcfce7;
    border-color: #15803d;
    color: #14532d;
    transform: translateY(-1px);
}

/* VCB Digibank Scanner Modal */
.vcb-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0b0f14;
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
}
.vcb-qr-modal.active {
    display: flex;
}

/* Top bar */
.vcb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 12px) + 12px) 16px 10px;
    z-index: 20;
}
.vcb-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vcb-btn-back {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.vcb-topbar-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}
.vcb-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.vcb-topbar-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}
.vcb-topbar-icon-btn.active {
    color: #fde047;
}

/* Brand & Description */
.vcb-brand-area {
    text-align: center;
    padding: 10px 24px 14px;
    z-index: 10;
}
.vcb-brand-name {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.vcb-brand-name span {
    color: #4ade80;
}
.vcb-brand-desc {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
    max-width: 320px;
    margin: 0 auto;
}

/* Camera & Viewfinder */
.vcb-camera-box {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
}
#bankQrReader {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}
#bankQrReader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.vcb-viewfinder-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}
.vcb-target-frame {
    position: relative;
    width: min(74vw, 280px);
    height: min(74vw, 280px);
    border: 3.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.58);
    overflow: hidden;
}
.vcb-laser-line {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #84cc16 20%, #bef264 50%, #84cc16 80%, transparent 100%);
    box-shadow: 0 0 16px 3px rgba(163, 230, 53, 0.9);
    animation: vcbLaserScan 2.4s ease-in-out infinite alternate;
}
@keyframes vcbLaserScan {
    0% { top: 6%; opacity: 0.4; }
    50% { opacity: 1; }
    100% { top: 92%; opacity: 0.4; }
}

/* Middle Badges & Pills */
.vcb-middle-controls {
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.vcb-partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.vcb-partner-logos .divider {
    opacity: 0.3;
}
.vcb-quick-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 360px;
}
.vcb-pill-country {
    background: rgba(40, 45, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
}
.vcb-pill-circle-btn {
    background: rgba(40, 45, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.vcb-pill-circle-btn .dot-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
}

/* Bottom 3-Tab Bar */
.vcb-bottom-tabs {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 10px));
    background: rgba(18, 22, 28, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 20;
}
.vcb-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.2s;
}
.vcb-tab-item:hover, .vcb-tab-item:active {
    color: #ffffff;
}
.vcb-tab-item.active {
    color: #ffffff;
}
.vcb-tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.vcb-badge-new {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.2;
}

/* The ket qua quet — dung lai tren man thay vi toast bay mat, de benh nhan
   thay ngay neu tro quet nham ma cua nguoi khac. */
.the-quet {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    border-radius: .65rem;
    padding: .7rem .8rem;
}
.the-quet__dau {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: .35rem;
}
.the-quet__quetlai {
    margin-left: auto;
    font-weight: 600;
    font-size: .75rem;
    color: #0284c7;
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
}
.the-quet__ten { font-size: 1rem; font-weight: 700; color: #0f172a; line-height: 1.25; }
.the-quet__phu { font-size: .8rem; color: #475569; margin-top: .1rem; }
.the-quet__ma  { font-variant-numeric: tabular-nums; font-weight: 600; color: #0f172a; }
/* Bang bao loi camera — nam de trong khung den, khong bay mat nhu toast. */
.loi-camera {
    position: absolute;
    inset: 1.25rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
    color: #f8fafc;
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(248, 250, 252, .18);
    border-radius: .9rem;
    padding: 1.25rem 1rem;
}
.loi-camera__tieude { font-size: 1rem; font-weight: 700; }
.loi-camera__ly-do  { font-size: .85rem; color: #fca5a5; word-break: break-word; }
.loi-camera__goi-y  { font-size: .82rem; color: #cbd5e1; line-height: 1.5; }
.loi-camera__nut {
    margin-top: .35rem;
    border: 1px solid rgba(248, 250, 252, .5);
    background: transparent;
    color: #f8fafc;
    border-radius: .5rem;
    padding: .4rem 1.1rem;
    font-size: .85rem;
    font-weight: 600;
}

.o-tu-qr       { background: #f1f5f9 !important; }
.ghi-o-qr      { font-size: .75rem; color: #64748b; margin-top: .25rem; display: block; }
