*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background: linear-gradient(135deg,#1f2937,#111827);
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Container */
.container{
    width:420px;
    max-width:90%;
    padding:30px 35px;
    background:#fff;
    border-radius:20px;
    box-shadow:0 20px 60px rgba(0,0,0,0.2);
    text-align:center;
}

/* Title text */
.container p{
    font-weight:600;
    font-size:15px;
    margin-bottom:8px;
    color:#333;
}

/* Input */
.container input[type="text"]{
    width:100%;
    height:50px;
    border:2px solid #e5e7eb;
    outline:0;
    padding:10px;
    margin:10px 0 18px;
    border-radius:10px;
    transition:0.3s;
    font-size:14px;
}

.container input:focus{
    border-color:#6a11cb;
    box-shadow:0 0 12px rgba(106,17,203,0.35);
}

/* Buttons */
.container button{
    width:100%;
    height:50px;
    background:linear-gradient(135deg,#6a11cb,#2575fc);
    color:#fff;
    border:none;
    border-radius:12px;
    cursor:pointer;
    margin:10px 0;
    font-weight:600;
    font-size:15px;
    transition:0.3s ease;
}

.container button:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.container button:active{
    transform:scale(.96);
}

/* checkbox */
.container label{
    display:flex;
    align-items:center;
    font-size:13px;
    font-weight:600;
    color:#444;
    margin:8px 0;
    cursor:pointer;
}

.container input[type="checkbox"]{
    accent-color:#6a11cb;
    width:16px;
    height:16px;
    margin-right:8px;
}

/* logo upload */
#logoUpload{
    width:100%;
    margin-top:6px;
    font-size:12px;
    border:none;
    background:#f3f4f6;
    padding:8px;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
}

#logoUpload:hover{
    background:#e5e7eb;
}

/* QR Box */
#imgBox{
    background:#fff;
    width:220px;
    margin:0 auto;
    border-radius:12px;
    padding:15px;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    max-height:0;
    overflow:hidden;
    transition:0.5s ease;
}

#imgBox canvas,
#imgBox img{
    width:100%;
}

/* show QR */
#imgBox.show-img{
    max-height:350px;
    margin:15px auto;
    border:1px solid #e5e7eb;
}

/* Hover QR */
#imgBox canvas:hover{
    transform:scale(1.05);
    transition:0.3s;
}

/* error animation */
.error{
    animation:shake .1s linear 8;
}

@keyframes shake{
    0%{transform:translateX(0)}
    25%{transform:translateX(-3px)}
    50%{transform:translateX(0)}
    75%{transform:translateX(3px)}
    100%{transform:translateX(0)}
}

/* download button */
#downloadBtn{
    background:linear-gradient(135deg,#9d50bb,#6e48aa);
    display:none;
}

#downloadBtn.show{
    display:block;
}

/* back button */
#backBtn{
    background:linear-gradient(135deg,#ff512f,#dd2476);
}

#backBtn:hover{
    background:linear-gradient(135deg,#dd2476,#ff512f);
}

/* error message */
.error-message{
    background:#ef4444;
    color:#fff;
    padding:10px;
    margin-top:10px;
    border-radius:8px;
    font-size:13px;
    animation:fadeIn .3s ease;
}

.fade-out{
    opacity:0;
    transition:.4s;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* mobile responsive */
@media(max-width:480px){

.container{
    padding:25px 20px;
}

#imgBox{
    width:200px;
}

.container button{
    height:45px;
    font-size:14px;
}

}