.myqr-page {
    padding: 25px 0;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    min-height: 85vh;
}

.myqr-header {
    max-width: 780px;
    margin: 0 auto 42px;
}

.myqr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--primary, #0d6efd);
    padding: 9px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.myqr-header h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--secondary, #101828);
    margin-bottom: 12px;
}

.myqr-header p {
    color: #667085;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.myqr-form {
    width: 100%;
}

.myqr-card {
    background: #ffffff;
    margin-bottom: 25px;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
    border: 1px solid #eef2f6;
    height: 100%;
}

.myqr-card h4 {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary, #101828);
    margin-bottom: 24px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.section-title-row h4 {
    margin-bottom: 0;
}

.edit-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eef6ff;
    color: var(--primary, #0d6efd);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.myqr-card label {
    font-size: 14px;
    font-weight: 700;
    color: #344054;
    margin-bottom: 8px;
}

.myqr-card .form-control {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid #d9e1ec;
    background: #ffffff;
    color: #101828;
    font-size: 15px;
    padding: 12px 14px;
    box-shadow: none;
}

.myqr-card .form-control:focus {
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
}

.myqr-card input[type="file"] {
    padding: 11px;
}

.doc-note {
    background: #f8fafc;
    border-left: 4px solid var(--primary, #0d6efd);
    padding: 14px 16px;
    border-radius: 12px;
    color: #667085;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 14px;
}

.uploaded-file i {
    color: var(--primary, #0d6efd);
}

.uploaded-file a {
    color: #344054;
    text-decoration: none;
    font-weight: 700;
    word-break: break-word;
}

.uploaded-file a:hover {
    color: var(--primary, #0d6efd);
}

.myqr-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.myqr-submit,
.myqr-back {
    min-width: 180px;
    border: none;
    padding: 15px 24px;
    border-radius: 15px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.myqr-submit {
    background: var(--primary, #0d6efd);
    color: #ffffff;
}

.myqr-submit:hover {
    background: var(--secondary, #101828);
    color: #ffffff;
}

.myqr-back {
    background: #ffffff;
    color: var(--secondary, #101828);
    border: 1px solid #d9e1ec;
}

.myqr-back:hover {
    background: var(--secondary, #101828);
    color: #ffffff;
}

/* Success / Error Alerts */
.myqr-page .alert {
    max-width: 850px;
    margin: 0 auto 24px;
    border-radius: 16px;
    font-weight: 700;
    padding: 14px 18px;
}

/* Tablet */
@media (max-width: 991px) {
    .myqr-page {
        padding: 70px 0;
    }

    .myqr-header h1 {
        font-size: 36px;
    }

    .myqr-card {
        padding: 26px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .myqr-page {
        padding: 55px 0;
    }

    .myqr-header {
        margin-bottom: 30px;
    }

    .myqr-header h1 {
        font-size: 30px;
    }

    .myqr-header p {
        font-size: 15px;
    }

    .myqr-card {
        padding: 22px;
        border-radius: 20px;
    }

    .myqr-card h4 {
        font-size: 20px;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .myqr-actions {
        flex-direction: column;
        width: 100%;
    }

    .myqr-submit,
    .myqr-back {
        width: 100%;
        min-width: unset;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .myqr-page {
        padding: 45px 0;
    }

    .myqr-header h1 {
        font-size: 27px;
    }

    .myqr-card {
        padding: 18px;
    }

    .myqr-card .form-control {
        font-size: 14px;
    }

    .uploaded-file {
        align-items: flex-start;
    }
}

.qr-display-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.10);
    border: 1px solid #eef2f6;
}

.qr-display-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.qr-small-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef6ff;
    color: var(--primary, #0d6efd);
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 15px;
}

.qr-info h3 {
    font-size: 30px;
    font-weight: 900;
    color: var(--secondary, #101828);
    margin-bottom: 10px;
}

.qr-info p {
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.qr-code-id {
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qr-code-id strong {
    color: #344054;
}

.qr-code-id span {
    color: var(--primary, #0d6efd);
    font-weight: 900;
}

.qr-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.qr-link-box input {
    flex: 1;
    height: 50px;
    border: 1px solid #d9e1ec;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    color: #344054;
    outline: none;
}

.qr-link-box button {
    width: 52px;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: var(--primary, #0d6efd);
    color: #ffffff;
}

.qr-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qr-preview-btn,
.qr-download-btn {
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

.qr-preview-btn {
    background: #ffffff;
    color: var(--secondary, #101828);
    border: 1px solid #d9e1ec;
}

.qr-preview-btn:hover {
    background: var(--secondary, #101828);
    color: #ffffff;
}

.qr-download-btn {
    background: var(--primary, #0d6efd);
    color: #ffffff;
}

.qr-download-btn:hover {
    background: var(--secondary, #101828);
}

.qr-box-area {
    display: flex;
    justify-content: center;
}

#qrcode {
    background: #ffffff;
    padding: 18px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(16, 24, 40, 0.10);
    border: 1px solid #eef2f6;
}

#qrcode img,
#qrcode canvas {
    width: 220px !important;
    height: 220px !important;
}

@media (max-width: 991px) {
    .qr-display-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qr-link-box {
        max-width: 100%;
    }

    .qr-actions-row {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .qr-display-card {
        padding: 22px;
        border-radius: 22px;
    }

    .qr-info h3 {
        font-size: 24px;
    }

    .qr-link-box {
        flex-direction: column;
    }

    .qr-link-box button {
        width: 100%;
    }

    .qr-preview-btn,
    .qr-download-btn {
        width: 100%;
        justify-content: center;
    }

    #qrcode img,
    #qrcode canvas {
        width: 200px !important;
        height: 200px !important;
    }
}
/* =========================================================
   LIVE QR PREVIEW
========================================================= */

.myqr-live-layout{
    display:grid;

    grid-template-columns:
        minmax(0, 1fr)
        380px;

    gap:24px;

    align-items:start;

    width:100%;

    max-width:100%;

    margin:0;
}
.myqr-form-column{
    width:100%;

    min-width:0;
}


.myqr-preview-column{
    position:sticky;

    width:380px;

    min-width:0;

    height:auto;

    align-self:stretch;

    display:flex;

    justify-content:center;

    align-items:flex-start;
    top: 104px;
}
/* =========================================================
   LEFT FORM
========================================================= */

.myqr-form-area{
    width:100%;
}
/* =========================================================
   LIVE PREVIEW PANEL
========================================================= */

.live-preview-wrapper{
    position:sticky;

    top:90px;

    align-self:flex-start;

    width:100%;

    max-width:380px;

    margin:0;

    padding:22px;

    background:#ffffff;

    border:1px solid #e8edf3;

    border-radius:26px;

    box-shadow:
        0 20px 60px rgba(16,43,85,.10);

    z-index:20;
}


/* Header */

.live-preview-heading{
    display:flex;

    align-items:flex-start;

    justify-content:space-between;

    gap:12px;

    margin-bottom:20px;
}


.live-preview-label{
    display:inline-block;

    font-size:11px;

    font-weight:800;

    letter-spacing:1.6px;

    color:#F7A900;

    margin-bottom:5px;
}


.live-preview-heading h4{
    margin:0;

    font-size:20px;

    font-weight:800;

    color:#102B55;
}


.live-preview-heading p{
    margin:5px 0 0;

    font-size:13px;

    line-height:1.5;

    color:#7A8491;
}


.live-dot{
    width:10px;
    height:10px;

    flex:0 0 10px;

    margin-top:4px;

    border-radius:50%;

    background:#19B36B;

    box-shadow:
        0 0 0 5px rgba(25,179,107,.12);
}


/* =========================================================
   PHONE
========================================================= */

.pixel-frame{
    position:relative;

    width:340px;

    max-width:100%;

    margin:0 auto;

    padding:8px;

    border-radius:40px;

    background:
        linear-gradient(
            145deg,
            #1c1f24,
            #08090b
        );

    box-shadow:
        0 25px 55px rgba(0,0,0,.24),

        inset 0 0 0 1px
        rgba(255,255,255,.08);
}


.pixel-frame::before{
    content:"";

    position:absolute;

    inset:2px;

    border-radius:38px;

    pointer-events:none;

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.04);
}


/* Actual phone screen */

.pixel-screen{
    position:relative;

    width:100%;

    height:620px;

    overflow:hidden;

    border-radius:33px;

    background:#ffffff;

    isolation:isolate;
}


.pixel-screen iframe{
    display:block;

    width:100%;

    height:100%;

    border:0;

    margin:0;

    padding:0;

    background:#ffffff;

    overflow:hidden;
}


/* =========================================================
   PHONE TOP SPEAKER
========================================================= */

.pixel-speaker{
    position:absolute;

    top:17px;

    left:50%;

    transform:translateX(-50%);

    width:88px;

    height:5px;

    border-radius:999px;

    background:#050505;

    z-index:10;
}


/* =========================================================
   SIDE BUTTONS
========================================================= */

.pixel-side-button{
    position:absolute;

    right:-4px;

    background:
        linear-gradient(
            180deg,
            #24272c,
            #101216
        );

    border-radius:0 4px 4px 0;
}


.pixel-volume{
    top:150px;

    width:4px;

    height:58px;
}


.pixel-power{
    top:225px;

    width:4px;

    height:48px;
}


/* =========================================================
   BOTTOM PHONE DETAIL
========================================================= */

.pixel-frame::after{
    content:"";

    position:absolute;

    bottom:8px;

    left:50%;

    transform:translateX(-50%);

    width:90px;

    height:4px;

    border-radius:999px;

    background:rgba(255,255,255,.18);
}


/* =========================================================
   PREVIEW NOTE
========================================================= */

.live-preview-note{
    margin-top:18px;

    padding:12px 14px;

    border-radius:14px;

    background:#f7f9fc;

    color:#6d7785;

    font-size:12px;

    line-height:1.6;

    text-align:left;
}


.live-preview-note i{
    color:#F7A900;

    margin-right:5px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width:1199px){

    .myqr-live-layout{
        grid-template-columns:
            minmax(0, 1fr)
            350px;

        gap:18px;
    }

    .myqr-preview-column{
        width:350px;
    }

    .pixel-frame{
        width:320px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 900px){

    .myqr-live-layout{
        grid-template-columns:
            minmax(0, 1fr)
            340px;

        gap:18px;
    }

    .pixel-frame{
        width:320px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:575px){

    .live-preview-wrapper{

        padding:18px;

        border-radius:22px;
    }

    .live-preview-heading h4{
        font-size:19px;
    }

    .live-preview-heading p{
        font-size:12px;
    }

    .pixel-frame{
        width:320px;

        max-width:100%;
    }

    .pixel-screen{
        height:590px;
    }

}
@media (max-width: 760px){

    .myqr-live-layout{
        grid-template-columns:1fr;
    }

    .myqr-preview-column{
        width:100%;
    }

    .live-preview-wrapper{
        position:relative;

        top:auto;

        max-width:400px;

        margin:25px auto 0;
    }

    .pixel-frame{
        width:320px;
    }

}
.oneqr-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.oneqr-crop-modal.show {
    display: flex;
}

.oneqr-crop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.78);
    backdrop-filter: blur(5px);
}

.oneqr-crop-dialog {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}

.oneqr-crop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #edf0f4;
}

.oneqr-crop-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.oneqr-crop-header h3 {
    margin: 8px 0 4px;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.oneqr-crop-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.oneqr-crop-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    flex: 0 0 auto;
}

.oneqr-crop-close:hover {
    background: #eef2f7;
}

.oneqr-crop-body {
    min-height: 0;
    padding: 18px 24px;
}

.oneqr-crop-stage {
    width: 100%;
    height: min(58vh, 520px);
    min-height: 280px;
    background: #111827;
    border-radius: 14px;
    overflow: hidden;
}

.oneqr-crop-stage img {
    display: block;
    max-width: 100%;
}

.oneqr-crop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 24px 20px;
    border-top: 1px solid #edf0f4;
}

.oneqr-crop-help {
    color: #64748b;
    font-size: 13px;
}

.oneqr-crop-help i {
    margin-right: 6px;
}

.oneqr-crop-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.oneqr-crop-btn {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.oneqr-crop-secondary {
    background: #f1f5f9;
    color: #334155;
}

.oneqr-crop-tool {
    width: 42px;
    padding: 0;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.oneqr-crop-primary {
    background: #111827;
    color: #ffffff;
}

.oneqr-crop-primary:hover {
    background: #000000;
}

@media (max-width: 767px) {
    .oneqr-crop-modal {
        padding: 10px;
    }

    .oneqr-crop-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 16px;
    }

    .oneqr-crop-header {
        padding: 16px;
    }

    .oneqr-crop-header h3 {
        font-size: 18px;
    }

    .oneqr-crop-body {
        padding: 12px 16px;
    }

    .oneqr-crop-stage {
        height: 52vh;
        min-height: 230px;
    }

    .oneqr-crop-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 16px 16px;
    }

    .oneqr-crop-actions {
        width: 100%;
    }

    .oneqr-crop-btn {
        flex: 1 1 auto;
    }

    .oneqr-crop-tool {
        flex: 0 0 42px;
    }

    .oneqr-crop-primary {
        flex: 1 1 100%;
    }
}

body.oneqr-crop-open {
    overflow: hidden;
}