.qr-section {
    max-width: 100%;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 10px 40px;
    align-items: start;
    padding: 20px;
    box-sizing: border-box;
}
.qr-section #qr-preview {
    grid-column: 2;
    grid-row: 1 / 30;
    height: calc(100vh - 160px);
    min-height: 450px;
    background-color: #080808;
    border: 1px solid #222;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: sticky;
    top: 20px;
    overflow: hidden;
    box-sizing: border-box;
}
.qr-section #qr-preview canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.8));
}
.qr-section label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 8px;
}
.qr-section input[type="text"], 
.qr-section select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #eee;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    font-size: 13px;
    box-sizing: border-box;
}
.qr-section .color-row {
    background: #141414;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}
.qr-section .color-row label {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: none;
    color: #ccc;
    font-weight: 400;
    font-size: 13px;
}
.qr-section input[type="color"] {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}
.qr-section input[type="color"]::-webkit-color-swatch {
    border-radius: 4px;
    border: 1px solid #444;
}
.qr-section button {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}
.qr-section button:hover { background: #388e3c; }
.qr-section button#insert-btn { background: #e65100; }
.qr-section button#insert-btn:hover { background: #f57c00; }
.qr-section div[style*="display: flex"] {
    grid-column: 1;
    display: flex;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px;
}
@media (max-width: 1100px) {
    .qr-section { grid-template-columns: 1fr; }
    .qr-section #qr-preview { height: 450px; position: static; grid-row: auto; }
}