.qrp-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}
.qrp-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 0.25rem;
}
.qrp-subtitle {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* ── 3-column layout ── */
.qrp-layout {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 1.25rem;
    align-items: start;
}

/* ── Shared panel style ── */
.qrp-panel {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,51,102,0.09);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.qrp-panel-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #336699;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.qrp-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #003366;
    margin-bottom: 0.4rem;
    display: block;
}
.qrp-label-muted {
    font-size: 0.75rem;
    font-weight: 400;
    color: #aaa;
}
.qrp-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 0;
}

/* ── Color Swatches ── */
.qrp-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.qrp-swatch {
    width: 26px; height: 26px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.qrp-swatch:hover { transform: scale(1.18); border-color: #003366; }
.qrp-swatch-row   { display: flex; align-items: center; gap: 8px; }
.qrp-color-name   { font-size: 0.75rem; color: #888; min-width: 80px; }

/* ── Range ── */
.qrp-range-row { display: flex; align-items: center; gap: 10px; }
.qrp-range-row input[type=range] { flex: 1; }
.qrp-range-val {
    font-size: 0.82rem; font-weight: 600;
    color: #003366; min-width: 16px; text-align: right;
}

/* ── Logo ── */
.qrp-logo-preview-row {
    display: flex; align-items: center;
    gap: 10px; margin-top: 8px;
}
.qrp-logo-thumb {
    height: 44px; border-radius: 8px;
    border: 1px solid #ddd; object-fit: contain;
}
.qrp-radio-group { display: flex; gap: 1rem; }

/* ── Preview Panel (col 2) ── */
.qrp-preview-panel {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,51,102,0.09);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 80px;
}
.qrp-preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #336699;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}
.qrp-preview-hint {
    font-size: 0.72rem;
    color: #bbb;
    margin: 0.5rem 0 0.5rem;
    text-align: center;
}

/* ── QR image container ── */
#qr-result-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafd;
    border: 1.5px solid #d0dce8;
    border-radius: 12px;
    width: 100%;
    padding: 5px;
}
#qr-result-container img {
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* ── Placeholder ── */
.qrp-placeholder {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
}
.qrp-placeholder span { font-size: 3.5rem; }
.qrp-placeholder p    { font-size: 0.78rem; margin: 0.5rem 0 0; }

/* ── Download Section ── */
.qrp-dl-section {
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}
.qrp-dl-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #336699;
    margin-bottom: 0.75rem;
    text-align: center;
}
.qrp-dl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.qrp-dl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 68px;
    padding: 9px 6px;
    border-radius: 10px;
    border: 1.5px solid #e0e8f0;
    background: #f7fafd;
    cursor: pointer;
    transition: all 0.18s ease;
}
.qrp-dl-btn:hover {
    background: #003366;
    border-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,51,102,0.15);
}
.qrp-dl-btn:hover .qrp-dl-fmt,
.qrp-dl-btn:hover .qrp-dl-desc { color: #fff; }
.qrp-dl-btn:active  { transform: translateY(0); }
.qrp-dl-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.qrp-dl-icon { font-size: 1.1rem; line-height: 1; }
.qrp-dl-fmt  { font-size: 0.75rem; font-weight: 700; color: #003366; transition: color 0.18s; }
.qrp-dl-desc { font-size: 0.62rem; color: #aaa; transition: color 0.18s; }


/* ══════════════════════════════
    Stats Panel (col 3)
══════════════════════════════ */
.qrp-stats-panel {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,51,102,0.09);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 80px;
}

/* heading — matches other panels */
.qrp-stats-panel .qrp-panel-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #336699;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.75rem;
}

/* each stat row */
.qrp-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f7fa;
}
.qrp-stat-row:last-of-type {
    border-bottom: none;
}
.qrp-stat-label {
    font-size: 0.85rem;
    color: #64748b;
}
.qrp-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #003366;
}

/* coming soon footer */
.qrp-stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.75rem;
    color: #94a3b8;
    gap: 0.5rem;
}
.qrp-stats-footer-text {
    line-height: 1.4;
}
.qrp-coming-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ── Mobile ── */
@media (max-width: 992px) {
    .qrp-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "preview preview"
            "settings settings"
            "stats stats";
    }
    .qrp-panel         { grid-area: settings; }
    .qrp-preview-panel { grid-area: preview; position: static; }
    .qrp-stats-panel   { grid-area: stats; position: static; }
}

@media (max-width: 768px) {
    .qrp-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "settings"
            "preview"
            "stats";
    }
    .qrp-preview-panel { position: static; }
    #qr-result-container img { max-width: 260px !important; }
    .qrp-placeholder         { max-width: 260px; }
    .qrp-title               { font-size: 1.3rem; }
    .qrp-dl-grid { gap: 6px; }
    .qrp-dl-btn  {
        width: auto;
        flex-direction: row;
        gap: 6px;
        padding: 7px 12px;
        border-radius: 20px;
    }
    .qrp-dl-desc { display: none; }
    .qrp-dl-icon { font-size: 0.95rem; }
    .qrp-dl-fmt  { font-size: 0.78rem; }
}
