/* ============================================
   JPG to AVIF Converter - Stylesheet
   tools.suritdevelopers.com design system | prefix: jta-
   ============================================ */

/* Tool-specific variables */
:root {
    --jta-primary: #3399cc;
    --jta-primary-light: rgba(51, 153, 204, 0.12);
    --jta-primary-dark: #2277aa;
    --jta-success: #339966;
    --jta-success-light: rgba(51, 153, 102, 0.12);
    --jta-danger: #e64e4e;
    --jta-warning: #e6953a;

    --jta-bg: #f8fafc;
    --jta-bg-elevated: #ffffff;
    --jta-text: #1e293b;
    --jta-text-secondary: #64748b;
    --jta-text-muted: #94a3b8;
    --jta-border: #e2e8f0;

    --jta-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --jta-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --jta-shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

    --jta-radius-sm: 6px;
    --jta-radius-md: 10px;
    --jta-radius-lg: 14px;
    --jta-radius-xl: 20px;
    --jta-radius-full: 9999px;
}

[data-theme="dark"] {
    --jta-bg: #0f172a;
    --jta-bg-elevated: #1e293b;
    --jta-text: #f1f5f9;
    --jta-text-secondary: #cbd5e1;
    --jta-text-muted: #94a3b8;
    --jta-border: rgba(255, 255, 255, 0.1);
    --jta-primary-light: rgba(51, 153, 204, 0.2);
    --jta-success-light: rgba(51, 153, 102, 0.2);
    --jta-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --jta-shadow-md: 0 4px 12px rgba(0,0,0,0.35);
    --jta-shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* Base */
* { box-sizing: border-box; }

/* Container */
.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jta-tool-icon {
    width: 56px;
    height: 56px;
    background: var(--jta-primary);
    border-radius: var(--jta-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.jta-tool-icon svg,
.jta-tool-icon i {
    width: 26px;
    height: 26px;
}

.tool-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0;
    color: var(--jta-primary);
    letter-spacing: -0.02em;
}

.tool-description {
    font-size: 1.05rem;
    color: var(--jta-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.tool-description a {
    color: var(--jta-primary);
    text-decoration: none;
}

.tool-description a:hover {
    text-decoration: underline;
}

/* Main Tool Area */
.tool-main {
    background: var(--jta-bg-elevated);
    border-radius: var(--jta-radius-xl);
    box-shadow: var(--jta-shadow-lg);
    overflow: visible;
    border: 1px solid var(--jta-border);
    position: relative;
}

/* ============================================
   Upload Section
   ============================================ */
.jta-upload-section {
    padding: 2.5rem;
}

.jta-upload-area {
    border: 2px dashed var(--jta-border);
    border-radius: var(--jta-radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    background: var(--jta-bg);
}

.jta-upload-area:hover,
.jta-upload-area.dragover {
    border-color: var(--jta-primary);
    background: var(--jta-primary-light);
    transform: translateY(-2px);
}

.jta-upload-icon {
    color: var(--jta-primary);
    margin-bottom: 1.25rem;
    transition: transform 0.2s;
}

.jta-upload-area:hover .jta-upload-icon {
    transform: translateY(-4px);
}

.jta-upload-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--jta-text);
    margin: 0 0 0.4rem;
}

.jta-upload-subtitle {
    color: var(--jta-text-secondary);
    margin: 0 0 1.25rem;
}

.jta-upload-formats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.jta-format-badge {
    padding: 0.3rem 0.7rem;
    border-radius: var(--jta-radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #FEF3C7;
    color: #92400e;
}

.jta-upload-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--jta-bg-elevated);
    color: var(--jta-text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: var(--jta-radius-full);
    font-size: 0.85rem;
    border: 1px solid var(--jta-border);
}

/* ============================================
   Editor Section
   ============================================ */
.jta-editor-section {
    padding: 0;
}

.jta-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
    background: var(--jta-bg);
    border-bottom: 1px solid var(--jta-border);
    border-radius: var(--jta-radius-xl) var(--jta-radius-xl) 0 0;
}

.jta-files-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--jta-text);
}

.jta-files-header-left svg,
.jta-files-header-left i {
    color: var(--jta-primary);
    width: 18px;
    height: 18px;
}

.jta-btn-text {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--jta-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: var(--jta-radius-md);
    transition: background 0.2s;
}

.jta-btn-text:hover {
    background: var(--jta-primary-light);
}

/* Files List */
.jta-files-list {
    max-height: 280px;
    overflow-y: auto;
    border-bottom: 1px solid var(--jta-border);
}

.jta-file-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.75rem;
    border-bottom: 1px solid var(--jta-border);
    transition: background 0.15s;
}

.jta-file-item:last-child { border-bottom: none; }

.jta-file-item:hover { background: var(--jta-bg); }

.jta-file-preview {
    width: 44px;
    height: 44px;
    border-radius: var(--jta-radius-md);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--jta-border);
    background: var(--jta-bg);
}

.jta-file-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jta-file-info { flex: 1; min-width: 0; }

.jta-file-name {
    font-weight: 600;
    color: var(--jta-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.925rem;
}

.jta-file-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--jta-text-muted);
    margin-top: 0.2rem;
    align-items: center;
}

.jta-file-remove {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--jta-radius-full);
    background: var(--jta-bg);
    color: var(--jta-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    border: 1px solid var(--jta-border);
}

.jta-file-remove:hover {
    background: var(--jta-danger);
    color: #fff;
    border-color: var(--jta-danger);
}

/* ============================================
   Settings Panel
   ============================================ */
.jta-settings-panel { padding: 1.75rem; }

.jta-panel-header { margin-bottom: 1.25rem; }

.jta-panel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--jta-text);
    margin: 0;
}

.jta-panel-header h3 svg,
.jta-panel-header h3 i {
    color: var(--jta-primary);
    width: 18px;
    height: 18px;
}

.jta-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--jta-text);
    margin-bottom: 0.75rem;
}

.jta-section-label svg,
.jta-section-label i {
    color: var(--jta-primary);
    width: 15px;
    height: 15px;
}

.jta-quality-section { margin-bottom: 1.5rem; }

.jta-quality-slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.jta-slider {
    flex: 1;
    height: 6px;
    border-radius: var(--jta-radius-full);
    background: var(--jta-border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    accent-color: var(--jta-primary);
}

.jta-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--jta-primary);
    cursor: pointer;
    box-shadow: var(--jta-shadow-sm);
    transition: transform 0.15s;
}

.jta-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.jta-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--jta-primary);
    cursor: pointer;
    box-shadow: var(--jta-shadow-sm);
}

.jta-quality-display {
    min-width: 56px;
    padding: 0.4rem 0.875rem;
    background: var(--jta-primary-light);
    border-radius: var(--jta-radius-md);
    text-align: center;
    font-weight: 700;
    color: var(--jta-primary);
    font-size: 0.95rem;
    border: 1px solid rgba(51,153,204,0.2);
}

.jta-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--jta-text-muted);
    margin-bottom: 0.875rem;
}

.jta-presets {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jta-preset-label {
    font-size: 0.82rem;
    color: var(--jta-text-secondary);
    font-weight: 500;
}

.jta-preset-btn {
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--jta-border);
    border-radius: var(--jta-radius-full);
    background: var(--jta-bg-elevated);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jta-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.jta-preset-btn:hover {
    border-color: var(--jta-primary);
    color: var(--jta-primary);
}

.jta-preset-btn.active {
    background: var(--jta-primary);
    border-color: var(--jta-primary);
    color: #fff;
}

/* Quality tip box */
.jta-tip-box {
    display: flex;
    gap: 0.7rem;
    padding: 0.875rem 1rem;
    background: var(--jta-primary-light);
    border-radius: var(--jta-radius-md);
    align-items: flex-start;
}

.jta-tip-icon {
    color: var(--jta-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.jta-tip-icon svg,
.jta-tip-icon i { width: 16px; height: 16px; }

.jta-tip-text {
    font-size: 0.875rem;
    color: var(--jta-text-secondary);
    line-height: 1.5;
}

.jta-tip-text strong { color: var(--jta-text); }

/* ============================================
   Action Bar
   ============================================ */
.jta-action-bar {
    display: flex;
    gap: 0.875rem;
    padding: 1.5rem 1.75rem;
    background: var(--jta-bg);
    border-top: 1px solid var(--jta-border);
    justify-content: flex-end;
    border-radius: 0 0 var(--jta-radius-xl) var(--jta-radius-xl);
}

/* Buttons */
.jta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--jta-radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.jta-btn svg, .jta-btn i { width: 17px; height: 17px; }

.jta-btn-primary {
    background: var(--jta-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(51, 153, 204, 0.35);
}

.jta-btn-primary:hover {
    background: var(--jta-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(51, 153, 204, 0.45);
}

.jta-btn-secondary {
    background: var(--jta-bg-elevated);
    color: var(--jta-text);
    border: 1px solid var(--jta-border);
}

.jta-btn-secondary:hover {
    background: var(--jta-bg);
    border-color: var(--jta-text-muted);
}

.jta-btn-large {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

.jta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Processing Overlay
   ============================================ */
.jta-processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.jta-processing-box {
    background: var(--jta-bg-elevated);
    padding: 2.5rem;
    border-radius: var(--jta-radius-xl);
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: var(--jta-shadow-lg);
}

.jta-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid var(--jta-border);
    border-top-color: var(--jta-primary);
    border-radius: 50%;
    animation: jta-spin 0.9s linear infinite;
    margin: 0 auto 1.25rem;
}

@keyframes jta-spin { to { transform: rotate(360deg); } }

.jta-processing-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--jta-text);
    margin: 0 0 1.25rem;
}

.jta-progress-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.jta-progress-track {
    flex: 1;
    height: 7px;
    background: var(--jta-border);
    border-radius: var(--jta-radius-full);
    overflow: hidden;
}

.jta-progress-fill {
    height: 100%;
    background: var(--jta-primary);
    border-radius: var(--jta-radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.jta-progress-pct {
    min-width: 38px;
    font-weight: 700;
    color: var(--jta-primary);
    font-size: 0.9rem;
}

.jta-processing-status {
    font-size: 0.85rem;
    color: var(--jta-text-muted);
    margin: 0;
    min-height: 1.2em;
}

/* ============================================
   Results Section
   ============================================ */
.jta-results-section { padding: 2.5rem; }

.jta-results-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.jta-success-icon {
    width: 56px;
    height: 56px;
    background: var(--jta-success-light);
    border-radius: var(--jta-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem;
    color: var(--jta-success);
}

.jta-success-icon svg,
.jta-success-icon i { width: 28px; height: 28px; }

.jta-results-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--jta-text);
    margin: 0;
}

/* Stats row */
.jta-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--jta-bg);
    border-radius: var(--jta-radius-lg);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    border: 1px solid var(--jta-border);
}

.jta-stat {
    text-align: center;
    padding: 0.6rem 1.25rem;
}

.jta-stat.savings {
    background: var(--jta-success-light);
    border-radius: var(--jta-radius-md);
}

.jta-stat.savings .jta-stat-value { color: var(--jta-success); }

.jta-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--jta-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.jta-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jta-text);
}

.jta-stat-arrow {
    color: var(--jta-text-muted);
}

.jta-stat-arrow svg,
.jta-stat-arrow i { width: 20px; height: 20px; }

/* Converted files list */
.jta-converted-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--jta-text);
    margin-bottom: 0.875rem;
}

.jta-converted-header svg,
.jta-converted-header i {
    color: var(--jta-primary);
    width: 17px;
    height: 17px;
}

.jta-converted-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--jta-border);
    border-radius: var(--jta-radius-md);
    margin-bottom: 1.75rem;
}

.jta-converted-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--jta-border);
    transition: background 0.15s;
}

.jta-converted-item:last-child { border-bottom: none; }

.jta-converted-item:hover { background: var(--jta-bg); }

.jta-converted-file-icon {
    width: 36px;
    height: 36px;
    background: var(--jta-primary-light);
    border-radius: var(--jta-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jta-primary);
    flex-shrink: 0;
}

.jta-converted-file-icon svg,
.jta-converted-file-icon i { width: 18px; height: 18px; }

.jta-converted-info { flex: 1; min-width: 0; }

.jta-converted-name {
    font-weight: 600;
    color: var(--jta-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.jta-converted-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--jta-text-muted);
    margin-top: 0.2rem;
}

.jta-saved { color: var(--jta-success); font-weight: 600; }

.jta-download-btn {
    width: 34px;
    height: 34px;
    background: var(--jta-success);
    border-radius: var(--jta-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.jta-download-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(51, 153, 102, 0.4);
}

.jta-download-btn svg,
.jta-download-btn i { width: 15px; height: 15px; }

/* Download actions */
.jta-download-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Error Display
   ============================================ */
.jta-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: var(--jta-radius-md);
    margin: 0 1.75rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.jta-error-box a {
    color: var(--jta-primary);
    font-weight: 600;
    text-decoration: none;
}

.jta-error-box a:hover { text-decoration: underline; }

[data-theme="dark"] .jta-error-box {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ============================================
   Related Tools
   ============================================ */
.jta-related-tools {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--jta-bg-elevated);
    border-radius: var(--jta-radius-lg);
    border: 1px solid var(--jta-border);
    flex-wrap: wrap;
}

.jta-related-label {
    font-weight: 600;
    color: var(--jta-text);
    font-size: 0.875rem;
    white-space: nowrap;
}

.jta-related-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.jta-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    background: var(--jta-bg);
    color: var(--jta-text-secondary);
    text-decoration: none;
    border-radius: var(--jta-radius-full);
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--jta-border);
}

.jta-related-link:hover {
    background: var(--jta-primary);
    color: #fff;
    border-color: var(--jta-primary);
    transform: translateY(-1px);
}

.jta-related-link svg,
.jta-related-link i { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================
   Info Sections
   ============================================ */
.jta-info-sections {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.jta-info-card {
    background: var(--jta-bg-elevated);
    border: 1px solid var(--jta-border);
    border-radius: var(--jta-radius-xl);
    padding: 1.75rem 2rem;
    box-shadow: var(--jta-shadow-sm);
}

.jta-info-card h2 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.25rem;
    color: var(--jta-text);
    margin: 0 0 1.25rem;
}

.jta-info-card h2 svg,
.jta-info-card h2 i {
    color: var(--jta-primary);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* Steps List */
.jta-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: jta-step;
}

.jta-steps li {
    position: relative;
    padding: 0 0 1.1rem 3.25rem;
    counter-increment: jta-step;
    color: var(--jta-text-secondary);
    line-height: 1.6;
}

.jta-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(0.875rem - 1px);
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: var(--jta-border);
}

.jta-steps li::before {
    content: counter(jta-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--jta-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 1;
}

/* Format Comparison */
.jta-comparison { display: grid; gap: 0.875rem; }

.jta-comparison-item {
    padding: 1.1rem 1.25rem;
    background: var(--jta-bg);
    border-radius: var(--jta-radius-md);
    border: 1px solid var(--jta-border);
    transition: border-color 0.2s;
}

.jta-comparison-item:hover { border-color: var(--jta-primary); }

.jta-comparison-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.jta-format-tag {
    padding: 0.25rem 0.7rem;
    border-radius: var(--jta-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.jta-format-tag.avif { background: #3399cc; }
.jta-format-tag.jpg  { background: #e6953a; }
.jta-format-tag.webp { background: #339966; }

.jta-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.55rem;
    border-radius: var(--jta-radius-full);
    font-weight: 700;
    text-transform: uppercase;
}

.jta-badge.best     { background: var(--jta-success-light); color: var(--jta-success); }
.jta-badge.standard { background: #FEF3C7; color: #92400e; }
.jta-badge.good     { background: var(--jta-primary-light); color: var(--jta-primary); }

.jta-comparison-item p {
    margin: 0;
    color: var(--jta-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Benefits Grid */
.jta-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.jta-benefit {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.jta-benefit-icon {
    width: 38px;
    height: 38px;
    background: var(--jta-primary-light);
    border-radius: var(--jta-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jta-primary);
    flex-shrink: 0;
}

.jta-benefit-icon svg,
.jta-benefit-icon i { width: 18px; height: 18px; }

.jta-benefit-content h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--jta-text);
}

.jta-benefit-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--jta-text-secondary);
    line-height: 1.5;
}

/* Quality Settings Explained */
.jta-quality-grid { display: grid; gap: 0.875rem; }

.jta-quality-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.jta-q-tag {
    flex-shrink: 0;
    padding: 0.3rem 0.8rem;
    border-radius: var(--jta-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    min-width: 76px;
    text-align: center;
}

.jta-q-tag.high   { background: #339966; }
.jta-q-tag.mid    { background: #3399cc; }
.jta-q-tag.low    { background: #e6953a; }
.jta-q-tag.min    { background: #e64e4e; }

.jta-quality-row p {
    margin: 0;
    color: var(--jta-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* FAQ */
.faq-list { display: grid; gap: 0.6rem; }

.faq-item {
    border: 1px solid var(--jta-border);
    border-radius: var(--jta-radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--jta-bg);
    border: none;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--jta-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.15s;
}

.faq-question:hover { background: var(--jta-bg-elevated); }

.faq-question svg,
.faq-question i {
    color: var(--jta-primary);
    transition: transform 0.25s;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.faq-item.open .faq-question svg,
.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    display: none;
    padding: 0 1.1rem 0.9rem;
    background: var(--jta-bg-elevated);
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
    margin: 0;
    color: var(--jta-text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.faq-answer a {
    color: var(--jta-primary);
    text-decoration: none;
}

.faq-answer a:hover { text-decoration: underline; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .tool-container { padding: 1rem; }

    .jta-upload-section,
    .jta-results-section { padding: 1.75rem 1.25rem; }

    .jta-upload-area { padding: 2.5rem 1.25rem; }

    .jta-settings-panel,
    .jta-action-bar { padding: 1.25rem; }

    .jta-action-bar { flex-direction: column; }
    .jta-btn { width: 100%; }

    .jta-stats { flex-direction: column; gap: 0.75rem; }
    .jta-stat-arrow { transform: rotate(90deg); }

    .jta-related-tools { flex-direction: column; align-items: flex-start; }
    .jta-related-links { justify-content: flex-start; }

    .jta-benefits { grid-template-columns: 1fr; }
    .jta-quality-row { flex-direction: column; }
}

@media (max-width: 480px) {
    .tool-title { font-size: 1.45rem; }
    .jta-files-header { padding: 0.875rem 1.1rem; }
    .jta-file-item { padding: 0.75rem 1.1rem; }
    .jta-error-box { margin: 0 1.1rem 1.25rem; }

    .jta-files-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

/* ============================================
   Feature #2 - Live Size Estimate
   ============================================ */
.jta-estimate-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--jta-text-secondary);
}

.jta-estimate-row svg,
.jta-estimate-row i { width: 13px; height: 13px; color: var(--jta-primary); flex-shrink: 0; }

.jta-estimate-value {
    font-weight: 700;
    color: var(--jta-primary);
}

/* ============================================
   Feature #6 - EXIF Toggle
   ============================================ */
.jta-exif-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--jta-border);
    cursor: pointer;
    user-select: none;
}

.jta-exif-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--jta-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.jta-exif-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jta-text);
}

.jta-exif-hint {
    font-size: 0.78rem;
    color: var(--jta-text-muted);
    margin-left: auto;
    white-space: nowrap;
}

/* ============================================
   Feature #9 - Clipboard Paste
   ============================================ */
.jta-upload-area.paste-flash {
    border-color: var(--jta-success);
    background: var(--jta-success-light);
    transform: scale(1.01);
}

.jta-paste-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--jta-text-muted);
}

.jta-paste-hint kbd {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    background: var(--jta-bg-elevated);
    border: 1px solid var(--jta-border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: inherit;
    color: var(--jta-text-secondary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Animations */
@keyframes jta-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jta-editor-section,
.jta-results-section {
    animation: jta-fade-in 0.35s ease;
}

.jta-spin { animation: jta-spin 1s linear infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
