/* ============================================
   CompressKit - Image Compressor & Resizer
   Style Sheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --success: #10b981;
    --success-hover: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --premium: #f59e0b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-hover: #475569;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
    --primary-light: #312e81;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

/* --- Header --- */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.free-badge {
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}

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

.theme-btn svg {
    width: 18px;
    height: 18px;
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* --- Main --- */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 48px 0 32px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* --- Drop Zone --- */
.upload-section {
    margin-bottom: 32px;
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.drop-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.drop-or {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.drop-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
}

.paste-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 6px;
    opacity: 0.7;
    font-style: italic;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: var(--success-hover);
}

.btn-premium {
    background: linear-gradient(135deg, var(--premium), #d97706);
    color: white;
    font-size: 1rem;
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

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

.btn-danger {
    background: var(--danger);
    color: white;
}

/* --- File Preview List --- */
.file-list-section {
    margin-bottom: 24px;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.file-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-count-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
}

.file-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.file-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    position: relative;
}

.file-preview-card:hover {
    box-shadow: var(--shadow);
}

.file-preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-input);
    flex-shrink: 0;
}

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

.file-preview-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.file-remove-btn {
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px !important;
    min-width: 24px;
}

/* --- Compress Mode Buttons --- */
.mode-btns {
    display: flex;
    gap: 4px;
}

.mode-btn {
    flex: 1;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

.mode-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.target-size-group {
    margin-top: 8px;
}

.target-size-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.target-unit-select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    cursor: pointer;
}

.target-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* --- Preset Row --- */
.preset-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preset-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.preset-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

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

/* --- Settings Panel --- */
.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title.center {
    text-align: center;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Format Buttons */
.format-btns {
    display: flex;
    gap: 6px;
}

.format-btn {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

.format-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Resize Controls */
.resize-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resize-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.resize-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 24px;
}

.resize-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    text-align: center;
}

.resize-input:focus {
    outline: none;
    border-color: var(--primary);
}

.resize-input:disabled {
    opacity: 0.4;
}

.aspect-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

.aspect-btn.locked {
    color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

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

.settings-actions {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

/* --- Results --- */
.results-section {
    margin-bottom: 32px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.results-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.saved-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 20px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Result Card */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
}

.result-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-input);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.result-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-sizes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-original {
    text-decoration: line-through;
    color: var(--text-muted);
}

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

.result-compressed {
    font-weight: 600;
    color: var(--success);
}

.result-percent {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.result-percent.good {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.result-percent.moderate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.result-percent.poor {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.result-dimensions {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.result-actions {
    display: flex;
    gap: 8px;
}

/* Processing indicator */
.result-card.processing {
    opacity: 0.7;
}

.result-card.processing .result-info::after {
    content: "圧縮中...";
    font-size: 0.8rem;
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.processing-label {
    font-size: 0.75rem;
    color: var(--primary);
    margin-left: 6px;
    font-weight: 400;
}

@keyframes progressAnim {
    0% { width: 10%; }
    50% { width: 70%; }
    100% { width: 10%; }
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

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

/* --- Ad Slots --- */
.ad-slot {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    background: var(--bg-input);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* --- Features --- */
.features {
    padding: 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Premium CTA --- */
.premium-cta {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    color: white;
    margin: 32px 0;
}

.cta-content h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.premium-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.premium-features li {
    font-size: 0.9rem;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

.premium-features li::before {
    content: ">> ";
    color: var(--premium);
}

.cta-note {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 12px;
}

/* --- Why Section --- */
.why-section {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 24px;
}

.why-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.why-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.why-card h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Feedback Section --- */
.feedback-section {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    padding: 0 24px;
}

.feedback-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feedback-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-feedback {
    display: inline-block;
    padding: 0.6rem 2rem;
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-feedback:hover {
    background: var(--primary);
    color: #fff;
}

/* --- Ad Space --- */
.ad-space{max-width:1100px;margin:1rem auto;padding:0.8rem;background:var(--bg-card);text-align:center;border-radius:8px;color:var(--text-muted);font-size:0.78rem;min-height:60px;display:flex;align-items:center;justify-content:center;}

/* --- Footer --- */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
}

/* --- Usage Toast --- */
.usage-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    z-index: 200;
    transition: all 0.3s ease;
}

.usage-toast.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* --- Compare Modal --- */
.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.compare-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    width: 700px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: auto;
}

.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.compare-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.compare-close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color var(--transition);
}

.compare-close-btn:hover {
    color: var(--danger);
}

.compare-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    cursor: ew-resize;
    user-select: none;
}

.compare-img {
    display: block;
    width: 100%;
    height: auto;
}

.compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 2px solid white;
}

.compare-before {
    display: block;
    width: 100%;
    height: auto;
}

.compare-overlay .compare-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}

.compare-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.compare-handle-circle {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.compare-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.compare-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.compare-saved {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

/* --- Hidden --- */
.hidden {
    display: none !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .preset-row {
        justify-content: center;
    }

    .file-preview-list {
        grid-template-columns: 1fr;
    }

    .compare-modal-content {
        width: 95vw;
        padding: 16px;
    }

    .result-card {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .result-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-cta {
        padding: 32px 20px;
    }

    .premium-features {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .resize-controls {
        flex-wrap: wrap;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.35rem;
    }

    .drop-zone {
        padding: 32px 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .settings-panel {
        padding: 20px 16px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .main {
        padding: 0 16px 40px;
    }
}
.skip-to-content{position:absolute;top:-100%;left:0;background:var(--accent,#4a6cf7);color:#fff;padding:8px 16px;z-index:10000;font-size:.9rem;border-radius:0 0 4px 0;transition:top .2s}.skip-to-content:focus{top:0}
