.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal[hidden] {
    display: none !important;
}

.qr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.qr-modal-dialog {
    position: relative;
    width: min(360px, 100%);
    padding: 24px;
    text-align: center;
    z-index: 1;
}

.qr-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--text-muted, #64748b);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.qr-modal-dialog h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.qr-modal-url {
    margin: 0 0 16px;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    word-break: break-all;
}

.qr-modal-canvas-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
}

.qr-modal-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
