/**
 * ═══════════════════════════════════════════════════════════════
 * AK PRINT SEVA — SMART A4 DOCUMENT PRINT
 * tools/smart-document-print/style.css
 * Premium UI/UX Design System
 * ═══════════════════════════════════════════════════════════════
 */

:root {
    --a4-primary: #3B82F6;
    --a4-primary-hover: #2563EB;
    --a4-accent: #06B6D4;
    --a4-success: #10B981;
    --a4-warning: #F59E0B;
    --a4-danger: #EF4444;
    --a4-bg: #0F172A;
    --a4-surface: #1E293B;
    --a4-surface-elevated: #334155;
    --a4-border: rgba(255, 255, 255, 0.1);
    --a4-border-glow: rgba(59, 130, 246, 0.4);
    --a4-text-hi: #F8FAFC;
    --a4-text-mid: #94A3B8;
    --a4-text-lo: #64748B;
    --a4-radius-lg: 16px;
    --a4-radius-md: 10px;
    --a4-radius-sm: 6px;
    --a4-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --a4-bg: #F8FAFC;
    --a4-surface: #FFFFFF;
    --a4-surface-elevated: #F1F5F9;
    --a4-border: #E2E8F0;
    --a4-border-glow: rgba(59, 130, 246, 0.2);
    --a4-text-hi: #0F172A;
    --a4-text-mid: #475569;
    --a4-text-lo: #94A3B8;
    --a4-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.smart-a4-page {
    min-height: 100vh;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.08) 0%, transparent 60%), var(--a4-bg);
    color: var(--a4-text-hi);
    padding: 24px 16px 60px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ═══════════ HERO ═══════════ */
.smart-a4-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 24px;
}

.hero-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #60A5FA;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.smart-a4-title {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.smart-a4-subtext {
    font-size: 1rem;
    color: var(--a4-text-mid);
    margin: 0 0 20px;
}

/* ═══════════ MODE SELECTOR ═══════════ */
.mode-switch-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.mode-switch-container {
    display: flex;
    background: var(--a4-surface);
    border: 1px solid var(--a4-border);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    box-shadow: var(--a4-shadow);
}

.mode-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--a4-text-mid);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-tab-btn:hover {
    color: var(--a4-text-hi);
}

.mode-tab-btn.active {
    background: var(--a4-primary);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ═══════════ BULK STATS BAR ═══════════ */
.bulk-stats-bar {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: var(--a4-surface);
    border: 1px solid var(--a4-border);
    padding: 10px 16px;
    border-radius: var(--a4-radius-md);
}

.stat-pill {
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--a4-text-hi);
}

.stat-ready { color: #34D399; background: rgba(16, 185, 129, 0.1); }
.stat-review { color: #FBBF24; background: rgba(245, 158, 11, 0.1); }
.stat-failed { color: #F87171; background: rgba(239, 68, 68, 0.1); }
.stat-pages { color: #60A5FA; background: rgba(59, 130, 246, 0.15); font-weight: 700; }

/* ═══════════ WORKSPACE GRID ═══════════ */
.smart-a4-workspace {
    max-width: 1240px;
    margin: 0 auto;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════ PANEL CARDS ═══════════ */
.panel-card {
    background: var(--a4-surface);
    border: 1px solid var(--a4-border);
    border-radius: var(--a4-radius-lg);
    padding: 20px;
    box-shadow: var(--a4-shadow);
    margin-bottom: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--a4-primary);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
}

.panel-hint {
    font-size: 0.76rem;
    color: var(--a4-text-mid);
    font-weight: 600;
}

/* ═══════════ DROPZONE ═══════════ */
.a4-dropzone {
    border: 2px dashed rgba(59, 130, 246, 0.35);
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--a4-radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.a4-dropzone:hover, .a4-dropzone.dragover {
    border-color: var(--a4-primary);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.dropzone-pulse-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.dropzone-main-text {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.dropzone-sub-text {
    font-size: 0.78rem;
    color: var(--a4-text-mid);
}

.hidden-file-input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ═══════════ QUEUE ═══════════ */
.queue-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 10px;
    padding-top: 12px;
    border-top: 1px solid var(--a4-border);
}

.queue-meta-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--a4-text-hi);
}

.queue-actions-group {
    display: flex;
    gap: 6px;
}

.btn-micro {
    background: var(--a4-surface-elevated);
    border: 1px solid var(--a4-border);
    color: var(--a4-text-hi);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-micro:hover {
    background: var(--a4-primary);
    color: #FFF;
}

.btn-micro.text-danger:hover {
    background: var(--a4-danger);
    color: #FFF;
}

.queue-scroll-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.queue-empty-placeholder {
    text-align: center;
    padding: 24px;
    color: var(--a4-text-lo);
    font-size: 0.85rem;
}

.queue-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--a4-border);
    border-radius: var(--a4-radius-md);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.queue-item-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}

.queue-item-card.active {
    border-color: var(--a4-primary);
    background: rgba(59, 130, 246, 0.12);
}

.queue-thumb {
    width: 44px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-details {
    flex: 1;
    min-width: 0;
}

.queue-doc-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.queue-status-tag {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-ready { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.tag-processing { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.tag-review { background: rgba(245, 158, 11, 0.2); color: #FBBF24; }
.tag-failed { background: rgba(239, 68, 68, 0.2); color: #F87171; }

.queue-item-actions {
    display: flex;
    gap: 4px;
}

/* ═══════════ ACTION BUTTONS ═══════════ */
.btn-main-cta {
    width: 100%;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #FFF;
    border: none;
    border-radius: var(--a4-radius-md);
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-main-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.6);
}

.btn-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.btn-sub-action {
    background: var(--a4-surface-elevated);
    border: 1px solid var(--a4-border);
    color: var(--a4-text-hi);
    border-radius: var(--a4-radius-md);
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.btn-sub-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ═══════════ ADVANCED SETTINGS ACCORDION ═══════════ */
.advanced-settings-accordion {
    margin-top: 14px;
    border-top: 1px solid var(--a4-border);
    padding-top: 12px;
}

.accordion-header-btn {
    width: 100%;
    background: none;
    border: none;
    color: var(--a4-text-mid);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
}

.accordion-header-btn:hover {
    color: var(--a4-text-hi);
}

.accordion-content {
    padding: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-label-row, .setting-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--a4-text-mid);
    display: flex;
    justify-content: space-between;
}

.margin-slider-wrap input[type="range"] {
    width: 100%;
    accent-color: var(--a4-primary);
}

.margin-chips, .btn-group-toggle {
    display: flex;
    gap: 6px;
}

.chip-btn, .toggle-choice {
    background: var(--a4-surface-elevated);
    border: 1px solid var(--a4-border);
    color: var(--a4-text-mid);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.chip-btn:hover, .toggle-choice:hover {
    color: var(--a4-text-hi);
}

.chip-btn.active, .toggle-choice.active {
    background: var(--a4-primary);
    color: #FFF;
    border-color: var(--a4-primary);
}

/* ═══════════ PREVIEW PANEL ═══════════ */
.preview-panel-box {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.preview-header-row {
    margin-bottom: 12px;
}

.view-switch-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--a4-border);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.view-tab-btn {
    border: none;
    background: transparent;
    color: var(--a4-text-mid);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.view-tab-btn.active {
    background: var(--a4-primary);
    color: #FFF;
}

/* ═══════════ PRESETS BAR ═══════════ */
.presets-container {
    margin-bottom: 12px;
}

.presets-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--a4-text-mid);
    display: block;
    margin-bottom: 6px;
}

.presets-scroll-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.preset-pill {
    white-space: nowrap;
    background: var(--a4-surface-elevated);
    border: 1px solid var(--a4-border);
    color: var(--a4-text-mid);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-pill:hover {
    color: var(--a4-text-hi);
    border-color: rgba(59, 130, 246, 0.4);
}

.preset-pill.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--a4-primary);
    color: #60A5FA;
}

/* ═══════════ BULK NAV BAR ═══════════ */
.bulk-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--a4-border);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.nav-arrow-btn {
    background: var(--a4-surface-elevated);
    border: 1px solid var(--a4-border);
    color: var(--a4-text-hi);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-page-info {
    font-size: 0.82rem;
    font-weight: 800;
    color: #60A5FA;
}

/* ═══════════ LIVE A4 PREVIEW STAGE ═══════════ */
.preview-stage {
    flex: 1;
    background: #0B0F19;
    border: 1px solid var(--a4-border);
    border-radius: var(--a4-radius-md);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stage-placeholder {
    text-align: center;
    color: var(--a4-text-lo);
}

.placeholder-icon {
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.placeholder-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--a4-text-hi);
}

.placeholder-desc {
    font-size: 0.80rem;
}

#liveA4Canvas {
    max-width: 100%;
    max-height: 520px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    background: #FFF;
}

#liveImgPreview {
    max-width: 100%;
    max-height: 520px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ═══════════ DOC ACTIONS SUMMARY & QUALITY ═══════════ */
.doc-info-meta-row {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.applied-actions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.action-chip {
    font-size: 0.70rem;
    font-weight: 700;
    color: #34D399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.quality-warning-box {
    font-size: 0.74rem;
    font-weight: 700;
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
}

/* ═══════════ QUICK TOOLBAR ═══════════ */
.quick-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.quick-btn {
    background: var(--a4-surface-elevated);
    border: 1px solid var(--a4-border);
    color: var(--a4-text-hi);
    padding: 8px 6px;
    border-radius: var(--a4-radius-md);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.quick-btn:hover {
    background: var(--a4-primary);
    color: #FFF;
    border-color: var(--a4-primary);
}

/* ═══════════ SEO & FAQ ═══════════ */
.seo-features-section {
    margin-top: 40px;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.feature-card {
    background: var(--a4-surface);
    border: 1px solid var(--a4-border);
    border-radius: var(--a4-radius-md);
    padding: 18px;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.feature-title {
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.76rem;
    color: var(--a4-text-mid);
    line-height: 1.45;
}

.faq-content-card {
    background: var(--a4-surface);
    border: 1px solid var(--a4-border);
    border-radius: var(--a4-radius-lg);
    padding: 24px;
}

.faq-content-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.faq-content-card p {
    font-size: 0.84rem;
    color: var(--a4-text-mid);
    line-height: 1.6;
    margin-bottom: 16px;
}

.faq-accordion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--a4-border);
    border-radius: 8px;
    padding: 14px;
}

.faq-item h4 {
    font-size: 0.84rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #60A5FA;
}

.faq-item p {
    font-size: 0.78rem;
    color: var(--a4-text-mid);
    margin: 0;
    line-height: 1.45;
}

/* ═══════════ MODAL ═══════════ */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--a4-surface);
    border: 1px solid var(--a4-border);
    border-radius: var(--a4-radius-lg);
    width: 100%;
    max-width: 780px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--a4-border);
}

.modal-title {
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    gap: 8px;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--a4-text-mid);
    font-size: 1.3rem;
    cursor: pointer;
}

.modal-canvas-viewport {
    background: #0B0F19;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 420px;
}

#editorCanvas {
    max-width: 100%;
    max-height: 480px;
    cursor: crosshair;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.editor-instructions {
    position: absolute;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--a4-border);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #94A3B8;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--a4-border);
    background: rgba(15, 23, 42, 0.4);
}

.footer-left-tools, .footer-right-tools {
    display: flex;
    gap: 8px;
}

/* ═══════════ AUTO-COLLAPSING HERO HEADER ═══════════ */
.smart-a4-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smart-a4-hero.collapsed {
    margin: 0 auto 8px;
    padding: 4px 0;
}

.smart-a4-hero.collapsed .tool-hero-badge,
.smart-a4-hero.collapsed .smart-a4-subtext {
    display: none;
}

.smart-a4-hero.collapsed .smart-a4-title {
    font-size: 1.15rem;
    margin: 0 0 4px;
}

.smart-a4-hero.collapsed .mode-switch-wrapper {
    margin-top: 4px;
}

/* ═══════════ COMPACT STUDIO DROPZONE ═══════════ */
.a4-dropzone {
    padding: 10px 16px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    cursor: pointer !important;
}

.a4-dropzone .dropzone-text-group {
    text-align: left;
}

.a4-dropzone .dropzone-main-text {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.a4-dropzone .browse-link {
    color: var(--brand-orange, #FF6B00);
    text-decoration: underline;
}

.a4-dropzone .dropzone-sub-text {
    font-size: 0.72rem !important;
    color: var(--a4-text-mid) !important;
    margin-top: 2px !important;
}

/* ═══════════ BORDER TOGGLE BUTTONS ═══════════ */
.btn-group-toggle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(15, 23, 42, 0.6);
    padding: 3px;
    border-radius: var(--a4-radius-md, 8px);
    border: 1px solid var(--a4-border);
}

.btn-group-toggle .toggle-choice {
    background: transparent;
    border: 1px solid transparent;
    color: var(--a4-text-mid);
    padding: 6px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.btn-group-toggle .toggle-choice:hover {
    color: #FFFFFF;
}

.btn-group-toggle .toggle-choice.active {
    background: var(--brand-orange, #FF6B00);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
}

/* ═══════════ ADOBE SCAN-GRADE MAGNIFIER LOUPE ═══════════ */
.editor-loupe-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--brand-orange, #FF6B00);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    background: #000;
    transform: translate(-50%, -100%) translateY(-20px);
    transition: opacity 0.15s ease;
}

#editorLoupeCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.editor-loupe-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.editor-loupe-crosshair::before,
.editor-loupe-crosshair::after {
    content: "";
    position: absolute;
    background: #EF4444;
}

.editor-loupe-crosshair::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.editor-loupe-crosshair::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}
