.qr-access-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #eef9e6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.qr-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.qr-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-card {
    width: min(1380px, 100%);
    height: calc(100vh - 4rem);
    background: rgba(255, 255, 255, .96);
    border-radius: 34px;
    position: relative;
    z-index: 2;
    padding: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .12);
}

.qr-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: #007a3d;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}

.qr-logo {
    text-align: center;
}

.qr-logo img {
    width: 150px;
}

.qr-heading {
    text-align: center;
    margin-top: .8rem;
    margin-bottom: 2rem;
}

.qr-heading h1 {
    color: #073b25;
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 3rem);
}

.qr-heading p {
    color: #6b7280;
    font-weight: 700;
}

.qr-heading span {
    display: block;
    width: 45px;
    height: 5px;
    background: #007a3d;
    border-radius: 999px;
    margin: .8rem auto 0;
}

.mobile-text {
    display: none;
}

.qr-desktop-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.qr-option-card {
    min-height: 350px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 2rem;
    text-align: center;
    position: relative;
    background: #fff;
}

.qr-option-card.recommended {
    border-color: #16a34a;
}

.recommended-label {
    background: #dcfce7;
    color: #15803d;
    border-radius: 999px;
    padding: .4rem 1rem;
    font-weight: 900;
    font-size: .8rem;
}

.qr-option-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: grid;
    place-items: center;
    margin: 1.5rem auto;
}

.qr-option-icon i {
    font-size: 2.7rem;
}

.qr-option-icon.purple {
    background: #efe5ff;
    color: #7c3aed;
}

.qr-option-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.qr-option-card h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #073b25;
}

.qr-option-card p {
    color: #6b7280;
    font-weight: 700;
    line-height: 1.6;
}

.btn-qr-primary,
.btn-qr-outline {
    min-height: 50px;
    border-radius: 12px;
    padding: .9rem 1.4rem;
    font-weight: 900;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-qr-primary {
    background: #007a3d;
    color: #fff;
}

.btn-qr-outline {
    background: #fff;
    border: 1px solid #007a3d;
    color: #007a3d;
}

.btn-qr-outline.purple {
    border-color: #7c3aed;
    color: #7c3aed;
}

.btn-qr-outline.blue {
    border-color: #2563eb;
    color: #2563eb;
}

.desktop-camera-preview {
    display: none;
    height: 120px;
    margin-top: 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
}

.desktop-camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-info-box,
.qr-help {
    margin-top: 1.4rem;
    background: linear-gradient(135deg, #f0fff4 0%, #f8fff6 100%);
    border-radius: 18px;
    padding: 1rem 1.4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.qr-info-box i,
.qr-help>i {
    font-size: 2.2rem;
    color: #00843d;
}

.qr-info-box h3,
.qr-help h3 {
    color: #007a3d;
    font-weight: 900;
    margin: 0;
}

.qr-info-box p,
.qr-help p {
    margin: 0;
    color: #6b7280;
    font-weight: 650;
}

.qr-example {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: .8rem;
    display: grid;
    gap: .2rem;
}

.qr-example i {
    font-size: 3rem;
}

.qr-example span {
    color: #6b7280;
    font-size: .8rem;
}

.qr-example strong {
    color: #073b25;
}

.qr-help a {
    border: 1px solid #007a3d;
    border-radius: 12px;
    color: #007a3d;
    padding: .8rem 1.2rem;
    font-weight: 900;
    text-decoration: none;
}

.qr-bottom-secure {
    position: absolute;
    bottom: 1rem;
    z-index: 3;
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    padding: .8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #007a3d;
    font-weight: 900;
}

.qr-bottom-secure span {
    width: 1px;
    height: 20px;
    background: #9ca3af;
}

.qr-bottom-secure p {
    margin: 0;
    color: #6b7280;
}

/* MOBILE LAYOUT */

.qr-mobile-layout {
    display: none;
}

.qr-mobile-frog {
    position: absolute;
    left: 1.5rem;
    bottom: 2rem;
    width: 160px;
    height: 220px;
}

.qr-mobile-frog img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-scan-box {
    width: min(360px, 100%);
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.4rem;
    background: #fff;
}

.qr-scan-title {
    text-align: center;
    color: #073b25;
    font-weight: 900;
    margin-bottom: 1rem;
}

.camera-preview {
    height: 220px;
    background: #111;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-frame {
    position: absolute;
    inset: 25px;
    border: 4px solid #16a34a;
    display: grid;
    place-items: center;
    color: #111;
    background: rgba(255, 255, 255, .65);
}

.scanner-frame i {
    font-size: 5rem;
}

.qr-other-options {
    margin-top: 1.2rem;
}

.qr-other-options h3 {
    text-align: center;
    font-size: .9rem;
    color: #073b25;
}

.qr-other-options button,
.qr-other-options label {
    width: 100%;
    min-height: 54px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .8rem;
    align-items: center;
    padding: .7rem;
    margin-bottom: .6rem;
    text-align: left;
}

.qr-other-options strong {
    display: block;
    color: #073b25;
}

.qr-other-options small {
    color: #6b7280;
}

.qr-secure {
    margin-top: 1rem;
    background: #f0fff4;
    border-radius: 14px;
    padding: .8rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .7rem;
    align-items: center;
}

.qr-status {
    margin-top: .7rem;
    font-weight: 800;
    color: #007a3d;
    text-align: center;
}

/* MODAL */

.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qr-modal.show {
    display: flex;
}

.qr-modal-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.qr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: transparent;
}

.qr-modal-card h2 {
    color: #073b25;
    font-weight: 900;
}

.qr-modal-card input {
    width: 100%;
    height: 52px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 1rem;
    margin: 1rem 0;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .qr-access-page {
        padding: 1rem;
    }

    .qr-card {
        height: calc(100vh - 2rem);
        padding: 1.4rem;
    }

    .desktop-text,
    .qr-desktop-layout,
    .qr-info-box,
    .qr-help {
        display: none;
    }

    .mobile-text,
    .qr-mobile-layout {
        display: block;
    }

    .qr-logo img {
        width: 125px;
    }

    .qr-heading h1 {
        font-size: 1.8rem;
    }

    .qr-bottom-secure {
        display: none;
    }
}

@media (max-width: 576px) {
    .qr-card {
        border-radius: 24px;
    }

    .qr-back {
        top: 1rem;
        left: 1rem;
    }

    .qr-mobile-frog {
        width: 120px;
        height: 160px;
    }
}