.qr-scan-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #205089, #163d68);
    box-shadow: 0 10px 24px rgba(32, 80, 137, .22);
}

.qr-scan-button:active {
    transform: scale(.985);
}

.qr-scan-icon {
    font-size: 24px;
    line-height: 1;
}

.qr-scanner-open {
    overflow: hidden;
}

.qr-scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    align-items: end;
    padding-top: env(safe-area-inset-top);
    background: rgba(7, 18, 31, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qr-scanner-panel {
    width: 100%;
    max-width: 480px;
    max-height: 94vh;
    margin: 0 auto;
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 26px 26px 0 0;
    background: #ffffff;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .24);
}

.qr-scanner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.qr-scanner-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
}

.qr-scanner-close {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #172027;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}

.qr-reader {
    min-height: 280px;
    overflow: hidden;
    border-radius: 18px;
    background: #0b1118;
}

.qr-reader video {
    display: block;
    width: 100% !important;
    border-radius: 18px;
}

.qr-scanner-help,
.qr-scanner-error {
    margin: 14px 2px 0;
    font-size: 14px;
    line-height: 1.45;
}

.qr-scanner-help {
    color: var(--muted);
}

.qr-scanner-error {
    padding: 11px 13px;
    border-radius: 11px;
    background: #fff0ef;
    color: #a33b32;
}

@media (min-width: 600px) {
    .qr-scanner-overlay {
        place-items: center;
        padding: 24px;
    }

    .qr-scanner-panel {
        border-radius: 26px;
    }
}

.qr-status-button {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

.qr-status-button:active {
    transform: scale(.99);
}

.qr-status-hint {
    margin-top: 9px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 800;
}
