/* ==========================================================================
   QR Code & Barcode Studio — Modern SaaS UI Styling (Zero Emojis, Clean SVG)
   ========================================================================== */

/* Page container */
.qr-barcode-page {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    min-height: 100vh;
    padding-top: 80px;
}

/* SVG icon utility */
.svg-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    flex-shrink: 0;
}

.svg-icon-lg {
    width: 20px;
    height: 20px;
}

/* Studio Hero & Switcher */
.studio-hero-section {
    padding: 3.2rem 0 2rem;
    position: relative;
    text-align: center;
}

.studio-top-switcher {
    padding: 1.2rem 0 0.8rem;
    position: relative;
    text-align: center;
}

.studio-top-switcher .studio-switcher-wrap {
    margin-bottom: 0.5rem;
}

.studio-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    background: rgba(123, 0, 160, 0.08);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(123, 0, 160, 0.18);
}

body.dark-theme .studio-badge-pill {
    background: rgba(167, 66, 255, 0.12);
    border-color: rgba(167, 66, 255, 0.28);
    color: var(--color-primary-light);
}

.studio-title {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    letter-spacing: -0.9px;
}

.studio-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--color-text-muted);
    max-width: 720px;
    line-height: 1.6;
    margin: 0 auto 2.2rem;
}

/* Studio Switcher */
.studio-switcher-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2.8rem;
}

.studio-switcher {
    display: inline-flex;
    background: #f1e9f8;
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(123, 0, 160, 0.16);
    gap: 0.4rem;
    max-width: 100%;
}

body.dark-theme .studio-switcher {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.studio-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-switch-btn:hover {
    color: var(--color-primary);
}

.studio-switch-btn.active {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 4px 18px rgba(123, 0, 160, 0.12);
}

body.dark-theme .studio-switch-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(123, 0, 160, 0.35);
}

/* Studio Workstations */
.studio-workstation {
    display: none;
    animation: fadeInStudio 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-workstation.active {
    display: block;
}

@keyframes fadeInStudio {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 3.5rem;
}

@media (max-width: 980px) {
    .studio-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    .studio-preview-sticky {
        order: -1;
        position: static;
        top: auto;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    .studio-preview-card {
        max-width: 100%;
        width: 100%;
        padding: 1.4rem 1.1rem;
        box-sizing: border-box;
    }
    .studio-card {
        order: 1;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Studio Card */
.studio-card {
    background: #ffffff;
    border: 1px solid rgba(123, 0, 160, 0.14);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(123, 0, 160, 0.04);
}

body.dark-theme .studio-card {
    background: #180d2e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.studio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(123, 0, 160, 0.1);
}

body.dark-theme .studio-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.studio-card-header h2,
.studio-card-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

/* Payload Tabs */
.qr-type-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid rgba(123, 0, 160, 0.1);
}

body.dark-theme .qr-type-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.qr-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    background: #f5f0fb;
    border: 1px solid rgba(123, 0, 160, 0.12);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

body.dark-theme .qr-type-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.qr-type-btn.active,
.qr-type-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.qr-type-pane {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    animation: fadeInStudio 0.2s ease;
}

.qr-type-pane.active {
    display: flex;
}

/* Studio Sub-Navigation Tabs */
.studio-subtabs {
    display: flex;
    gap: 0.35rem;
    background: rgba(123, 0, 160, 0.04);
    border: 1px solid rgba(123, 0, 160, 0.12);
    border-radius: 10px;
    padding: 0.3rem;
    margin: 1.4rem 0 1.2rem;
    overflow-x: auto;
}

body.dark-theme .studio-subtabs {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.studio-subtab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 7px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.studio-subtab-btn:hover {
    color: var(--color-primary);
    background: rgba(123, 0, 160, 0.06);
}

.studio-subtab-btn.active {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.dark-theme .studio-subtab-btn.active {
    background: var(--color-primary);
    color: #ffffff;
}

.studio-subpane {
    display: none;
    animation: fadeInStudio 0.2s ease;
}

.studio-subpane.active {
    display: block;
}

/* Inputs & Form Fields */
.util-field {
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.util-field label {
    font-size: 0.82rem;
    font-weight: 700;
}

.util-input,
.util-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(123, 0, 160, 0.2);
    background: #fbf9fd;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.util-input:focus,
.util-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123, 0, 160, 0.1);
}

body.dark-theme .util-input,
body.dark-theme .util-textarea {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.util-textarea {
    font-family: var(--font-mono);
    min-height: 80px;
    resize: vertical;
}

/* Pattern Option Pills */
.qr-btn-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.qr-option-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 7px;
    border: 1px solid rgba(123, 0, 160, 0.18);
    background: #ffffff;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.dark-theme .qr-option-pill {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.qr-option-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.qr-option-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Color Pickers */
.qr-color-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.qr-color-input-wrap input[type="color"] {
    width: 42px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(123, 0, 160, 0.2);
    border-radius: 7px;
    cursor: pointer;
    background: transparent;
}

.qr-color-hex {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    text-transform: uppercase;
}

.qr-checkbox-label {
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.qr-checkbox-label input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Logo Upload Dropzone */
.qr-logo-upload-box {
    border: 2px dashed rgba(123, 0, 160, 0.25);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(123, 0, 160, 0.02);
    transition: var(--transition-fast);
}

.qr-logo-upload-box:hover {
    border-color: var(--color-primary);
    background: rgba(123, 0, 160, 0.06);
}

.qr-preset-icons-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.qr-icon-preset-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid rgba(123, 0, 160, 0.16);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    padding: 7px;
}

body.dark-theme .qr-icon-preset-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.qr-icon-preset-btn svg {
    width: 100%;
    height: 100%;
}

.qr-icon-preset-btn:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(123, 0, 160, 0.15);
}

/* Designer Themes Grid */
.qr-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.7rem;
    margin-top: 0.4rem;
}

.qr-theme-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1.5px solid rgba(123, 0, 160, 0.15);
    background: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    transition: var(--transition-fast);
    text-align: left;
}

body.dark-theme .qr-theme-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.qr-theme-card:hover,
.qr-theme-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(123, 0, 160, 0.12);
    transform: translateY(-1px);
}

.qr-theme-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Sticky Preview Display */
.studio-preview-sticky {
    position: sticky;
    top: 5.5rem;
}

.studio-preview-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.25rem;
    border: 1px solid rgba(123, 0, 160, 0.15);
    box-shadow: 0 10px 30px rgba(123, 0, 160, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

body.dark-theme .studio-preview-card {
    background: #180d2e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.qr-frame-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qr-frame-banner-top,
.qr-frame-banner-bottom {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 0.35rem 1.2rem;
    border-radius: 6px;
    margin: 6px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qr-canvas-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 220px;
    margin: 0 auto;
}

.qr-canvas-holder img,
.qr-canvas-holder canvas {
    display: block;
    max-width: 204px;
    max-height: 204px;
    width: 100%;
    height: auto;
}

.qr-badge-pill {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 10px;
    background: rgba(123, 0, 160, 0.08);
    color: var(--color-primary);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-theme .qr-badge-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-primary-light);
}

/* Action Export Buttons */
.studio-export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
    margin-top: 1.2rem;
}

.studio-export-btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 8px;
}

.studio-toast {
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 0.6rem;
    min-height: 20px;
    text-align: center;
    transition: opacity 0.2s ease;
}

/* Barcode Display Box */
.barcode-preview-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 1rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(123, 0, 160, 0.15);
    margin: 0.8rem 0;
    overflow-x: auto;
}

.barcode-preview-box svg,
.barcode-preview-box canvas {
    display: block;
    max-width: 100%;
    max-height: 75px;
}

/* Feature Pillars Section */
.studio-features-section {
    padding: 4rem 0;
    background: rgba(123, 0, 160, 0.02);
    border-top: 1px solid rgba(123, 0, 160, 0.08);
    border-bottom: 1px solid rgba(123, 0, 160, 0.08);
}

.studio-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.studio-feat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem;
    border: 1px solid rgba(123, 0, 160, 0.12);
    box-shadow: 0 6px 18px rgba(123, 0, 160, 0.03);
}

body.dark-theme .studio-feat-card {
    background: #180d2e;
    border-color: rgba(255, 255, 255, 0.1);
}

.studio-feat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(123, 0, 160, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

body.dark-theme .studio-feat-icon-wrap {
    background: rgba(167, 66, 255, 0.14);
    color: var(--color-primary-light);
}

.studio-feat-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.studio-feat-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Comparison Table */
.studio-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 14px;
    border: 1px solid rgba(123, 0, 160, 0.14);
}

.studio-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.88rem;
}

body.dark-theme .studio-table {
    background: #180d2e;
}

.studio-table th,
.studio-table td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(123, 0, 160, 0.08);
}

body.dark-theme .studio-table th,
body.dark-theme .studio-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.studio-table th {
    background: rgba(123, 0, 160, 0.05);
    font-weight: 800;
    color: var(--color-primary);
}

body.dark-theme .studio-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary-light);
}

/* Barcode Quick Preset Chips */
.barcode-presets-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.barcode-preset-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    border: 1px solid rgba(123, 0, 160, 0.16);
    background: #fbf9fd;
    color: var(--color-text-main);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.18s ease;
}

.barcode-preset-chip:hover {
    border-color: var(--color-primary);
    background: rgba(123, 0, 160, 0.08);
    color: var(--color-primary);
    transform: translateY(-1px);
}

body.dark-theme .barcode-preset-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

body.dark-theme .barcode-preset-chip:hover {
    background: rgba(167, 66, 255, 0.15);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

/* ==========================================================================
   POLISHED INTERACTIVE FAQ ACCORDION (World-Class SaaS UI)
   ========================================================================== */
.faq-accordion {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid rgba(123, 0, 160, 0.12);
    border-left: 3px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .faq-item {
    background: #160d2a;
    border-color: rgba(255, 255, 255, 0.09);
    border-left-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.faq-item:hover {
    border-color: rgba(123, 0, 160, 0.3);
    box-shadow: 0 4px 18px rgba(123, 0, 160, 0.06);
    transform: translateY(-1px);
}

body.dark-theme .faq-item:hover {
    border-color: rgba(167, 66, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.faq-item.active {
    border-color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    background: linear-gradient(to right, rgba(123, 0, 160, 0.025), #ffffff 15%);
    box-shadow: 0 6px 24px rgba(123, 0, 160, 0.08);
}

body.dark-theme .faq-item.active {
    background: linear-gradient(to right, rgba(167, 66, 255, 0.06), #160d2a 20%);
    border-color: var(--color-primary-light);
    border-left-color: var(--color-primary-light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 1.2rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}

body.dark-theme .faq-question {
    color: #ffffff;
}

.faq-question:hover {
    color: var(--color-primary);
}

body.dark-theme .faq-question:hover {
    color: var(--color-primary-light);
}

.faq-icon-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(123, 0, 160, 0.06);
    border: 1px solid rgba(123, 0, 160, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

body.dark-theme .faq-icon-arrow {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--color-primary-light);
}

.faq-item.active .faq-icon-arrow {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: rotate(180deg);
}

body.dark-theme .faq-item.active .faq-icon-arrow {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: #10061e;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.4rem;
}

.faq-answer p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.68;
    margin: 0;
}

.faq-answer strong {
    color: var(--color-text-main);
}

body.dark-theme .faq-answer strong {
    color: #f3e8ff;
}

/* ==========================================================================
   Expanded Studio Export Stack & Multi-Format Grid
   ========================================================================== */
.studio-export-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.studio-btn-primary-expand {
    width: 100%;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(123, 0, 160, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border-radius: 10px;
}

.studio-btn-primary-expand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 0, 160, 0.35);
}

.studio-export-tri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    width: 100%;
}

.studio-tri-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-main);
    transition: all 0.2s ease;
    cursor: pointer;
}

body.dark-theme .studio-tri-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f3e8ff;
}

.studio-tri-btn:hover {
    background: rgba(123, 0, 160, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

body.dark-theme .studio-tri-btn:hover {
    background: rgba(167, 66, 255, 0.15);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.studio-btn-sheet-expand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.52rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1.5px dashed var(--color-primary);
    background: rgba(123, 0, 160, 0.04);
    color: var(--color-primary);
    border-radius: 9px;
    transition: all 0.22s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.studio-btn-sheet-expand .btn-sheet-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

body.dark-theme .studio-btn-sheet-expand {
    background: rgba(167, 66, 255, 0.08);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.studio-btn-sheet-expand:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(123, 0, 160, 0.25);
}

.studio-pill-tag {
    font-size: 0.62rem;
    padding: 2px 6px;
    background: var(--color-accent);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   Multi-Code Sheet Print Modal & Live Preview
   ========================================================================== */
.print-sheet-modal-box {
    max-width: 920px;
    width: 95%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.print-sheet-modal-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .print-sheet-modal-body {
        grid-template-columns: 1fr;
    }
}

.print-count-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.print-chip {
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

body.dark-theme .print-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.print-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.print-chip.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(123, 0, 160, 0.25);
}

/* Right Side: Scaled A4 Sheet Canvas Preview */
.print-sheet-preview-pane {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

body.dark-theme .print-sheet-preview-pane {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.08);
}

.print-sheet-canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
}

.preview-zoom-badge {
    font-size: 0.7rem;
    background: rgba(123, 0, 160, 0.08);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

body.dark-theme .preview-zoom-badge {
    background: rgba(167, 66, 255, 0.15);
    color: var(--color-primary-light);
}

.print-sheet-mini-canvas-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    padding: 0.5rem;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: auto;
}

body.dark-theme .print-sheet-mini-canvas-wrap {
    background: #0f172a;
}

/* The scaled paper simulation */
.print-sheet-mini-canvas {
    background: #ffffff;
    width: 250px;
    aspect-ratio: 1 / 1.414; /* A4 aspect ratio */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.mini-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid #0f172a;
    padding-bottom: 2px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.mini-sheet-title {
    font-size: 6.5px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 165px;
}

.mini-sheet-count {
    font-size: 5px;
    color: #64748b;
    font-weight: 600;
}

.mini-sheet-grid {
    flex: 1;
    display: grid;
    gap: 3px;
    min-height: 0;
}

.mini-sheet-cell {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
    transition: all 0.2s ease;
}

.mini-sheet-cell.has-cutline {
    border: 0.5px dashed #cbd5e1;
}

.mini-sheet-cell img {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
}

.mini-sheet-cell .cell-caption {
    font-size: 5px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.1;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ==========================================================================
   MOBILE & RESPONSIVE PERFECTION FOR QR & BARCODE STUDIO
   ========================================================================== */

/* Tablet & Mobile Layout Enhancements (<= 980px) */
@media (max-width: 980px) {
    .studio-hero-section {
        padding: 2.2rem 0 1.2rem;
    }
    .studio-title {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }
    .studio-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.6rem;
    }
    .studio-switcher-wrap {
        margin-bottom: 1.8rem;
    }
}

/* Standard Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .qr-barcode-page {
        padding-top: 65px;
    }
    .studio-card {
        padding: 1.35rem 1.1rem;
        border-radius: 14px;
    }
    .studio-preview-card {
        padding: 1.35rem 1.1rem;
        border-radius: 14px;
    }
    .studio-card-header h2,
    .studio-card-header h3 {
        font-size: 1.15rem;
    }

    /* Collapse multi-column grid rows */
    .studio-form-grid-2col,
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns:1.2fr 1fr"],
    div[style*="grid-template-columns: 1.2fr 1fr"],
    div[style*="grid-template-columns:1fr 1.5fr"],
    div[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
    }

    .studio-form-grid-4col,
    div[style*="grid-template-columns:1fr 1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.7rem !important;
    }

    /* Smooth touch-scroll for QR payload tabs */
    .qr-type-tabs {
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.4rem;
        margin-bottom: 1.1rem;
    }
    .qr-type-tabs::-webkit-scrollbar {
        display: none;
    }
    .qr-type-btn {
        flex: 0 0 auto;
        padding: 0.45rem 0.8rem;
        font-size: 0.82rem;
    }

    /* Sub-tabs touch-scroll */
    .studio-subtabs {
        display: flex;
        gap: 0.3rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem;
        margin: 1.1rem 0;
    }
    .studio-subtabs::-webkit-scrollbar {
        display: none;
    }
    .studio-subtab-btn {
        flex: 0 0 auto;
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    /* QR Themes 2-column grid */
    .qr-themes-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem;
    }

    /* Barcode preview box responsiveness */
    .barcode-preview-box {
        width: 100%;
        box-sizing: border-box;
        padding: 1rem 0.6rem;
        min-height: 90px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .barcode-preview-box svg,
    .barcode-preview-box canvas {
        max-width: 100%;
        height: auto;
        max-height: 75px;
    }

    /* QR Code canvas sizing on mobile */
    .qr-canvas-holder {
        max-width: 200px;
        padding: 6px;
    }
    .qr-canvas-holder canvas,
    .qr-canvas-holder img,
    .qr-canvas-holder svg {
        max-width: 188px !important;
        max-height: 188px !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Small Smartphone Devices (<= 520px) */
@media (max-width: 520px) {
    .studio-hero-section {
        padding: 1.5rem 0 0.8rem;
    }
    .studio-title {
        font-size: 1.65rem;
        letter-spacing: -0.5px;
    }
    .studio-subtitle {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }

    /* Top switcher */
    .studio-switcher {
        width: 100%;
        max-width: 100%;
        display: flex;
        gap: 0.25rem;
        padding: 0.25rem;
        border-radius: 12px;
    }
    .studio-switch-btn {
        flex: 1;
        justify-content: center;
        padding: 0.55rem 0.6rem;
        font-size: 0.82rem;
        gap: 0.4rem;
    }
    .switcher-subtag {
        display: none !important; /* Hide secondary subtext on small phones */
    }

    /* Card padding */
    .studio-card,
    .studio-preview-card {
        padding: 1.1rem 0.85rem;
        border-radius: 12px;
    }

    /* Export buttons grid */
    .studio-export-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        margin-top: 1rem;
    }
    .studio-export-btn {
        padding: 0.55rem 0.35rem;
        font-size: 0.76rem;
        gap: 0.3rem;
    }
    .studio-btn-sheet-expand {
        padding: 0.65rem 0.6rem;
        font-size: 0.8rem;
    }
    .studio-btn-sheet-expand .btn-sheet-text {
        font-size: 0.78rem;
    }

    /* QR preset icons */
    .qr-preset-icons-grid {
        gap: 0.35rem;
    }
    .qr-icon-preset-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    /* Color picker inputs */
    .qr-color-input-wrap input[type="color"] {
        width: 36px;
        height: 34px;
    }
    .qr-color-hex {
        font-size: 0.78rem;
        padding: 0.45rem 0.5rem;
    }

    /* Pattern option pills */
    .qr-btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .qr-option-pill {
        flex: 1 1 calc(50% - 0.35rem);
        text-align: center;
        padding: 0.4rem 0.5rem;
        font-size: 0.76rem;
    }

    /* Barcode preview box on small phones */
    .barcode-preview-box {
        padding: 0.8rem 0.4rem;
        min-height: 80px;
    }
    .barcode-preview-box svg,
    .barcode-preview-box canvas {
        max-height: 65px;
    }

    /* Features section on mobile */
    .studio-features-section {
        padding: 2.5rem 0;
    }
    .studio-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .studio-feat-card {
        padding: 1.25rem 1rem;
    }

    /* Print sheet modal */
    .print-sheet-modal-box {
        width: 96%;
        max-height: 94vh;
        margin: 0.5rem auto;
    }
    .print-sheet-modal-body {
        padding: 0.9rem;
        gap: 0.9rem;
    }
    .print-sheet-mini-canvas {
        width: 200px;
    }
}


