/* QR Code Modal - shared across event listing & registration pages */
.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md, 16px);
}

.qr-modal.is-open {
    display: flex;
    animation: qrFadeIn 0.18s ease-out;
}

.qr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
}

.qr-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius-lg, 16px);
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: qrPopIn 0.22s ease-out;
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-700, #374151);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.qr-modal-close:hover {
    background: var(--gray-200, #e5e7eb);
}

.qr-modal-header {
    margin-bottom: 20px;
}

.qr-modal-header h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900, #111827);
    line-height: 1.3;
}

.qr-modal-subtitle {
    margin: 0;
    color: var(--gray-600, #4b5563);
    font-size: 0.875rem;
}

.qr-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--border-radius-md, 12px);
    margin-bottom: 16px;
}

.qr-canvas-wrapper canvas,
.qr-canvas-wrapper img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
}

.qr-modal-url {
    font-size: 0.75rem;
    color: var(--gray-500, #6b7280);
    word-break: break-all;
    background: var(--gray-50, #f9fafb);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    line-height: 1.4;
}

.qr-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-modal-actions .btn {
    min-width: 130px;
    justify-content: center;
}

@keyframes qrFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qrPopIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .qr-modal-content {
        padding: 28px 20px 20px;
    }
    .qr-modal-actions {
        flex-direction: column;
    }
    .qr-modal-actions .btn {
        width: 100%;
    }
}
