/* ===== Sveltiq Design System v2 — Stripe/Vercel-inspired ===== */

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #0a0a0a;
    --color-text-secondary: #525252;
    --color-text-muted: #a3a3a3;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-accent: #6366f1;
    --color-accent-light: #818cf8;
    --color-accent-dark: #4f46e5;
    --color-accent-bg: #eef2ff;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 60px rgba(99,102,241,0.15);
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    color-scheme: light only;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

a.site-logo {
    text-decoration: none;
    color: inherit;
}

.site-title {
    font-size: 1.25rem;
    color: var(--color-text);
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 700;
}

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

.header-nav a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
    font-weight: 500;
}

.header-nav a:hover {
    color: var(--color-text);
    background: var(--color-border-light);
}

.header-nav .nav-cta {
    background: var(--color-text);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.header-nav .nav-cta:hover {
    background: #262626;
    color: #fff;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Area (compress tool) */
.hero-area {
    text-align: center;
    margin: 48px 0 32px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
    animation: fade-up 0.6s ease-out;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.01em;
}

.hero-trust-line {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hero-trust-line::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hero-title { font-size: 1.5rem; line-height: 1.35; margin-bottom: 8px; }
    .hero-subtitle { font-size: 0.88rem; line-height: 1.7; }
    .hero-area { margin: 32px auto 24px; }
    .hero-trust-line { font-size: 0.78rem; }
    .features-area > div { grid-template-columns: 1fr !important; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.hero-description strong {
    color: var(--color-text);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-accent-bg);
    color: var(--color-accent-dark);
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(99,102,241,0.2);
    transition: all 0.2s ease;
}

.hero-badge:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Modal Overlay for Preview */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-overlay > .modal-content {
    background: #fff;
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 98vw;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}
.modal-overlay.hidden .modal-content {
    transform: scale(0.95);
}
.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-danger);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    border: 1px solid var(--color-border);
}
.modal-close:hover {
    background: #fef2f2;
}
.modal-image-container {
    overflow: auto;
    max-height: calc(95vh - 70px);
    display: flex;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
}
.modal-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}
.modal-info {
    margin-top: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Notice Box */
.notice-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.notice-box strong {
    color: var(--color-text);
}

/* Converter Area */
.converter-area {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-zone:hover:not(.busy) {
    background-color: var(--color-accent-bg);
    border-color: var(--color-accent-light);
}

.drop-zone.dragover:not(.busy) {
    background-color: var(--color-accent-bg);
    border-color: var(--color-accent);
    border-style: solid;
    transition: none;
}

.drop-zone.busy {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: var(--color-border);
    pointer-events: none;
}

/* Hero drop zone */
.drop-zone-hero {
    position: relative;
    min-height: 50vh;
    padding: 40px 24px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-width: 2px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fafafa 0%, #f0f0ff 50%, #fafafa 100%);
    transition: min-height 0.35s ease, padding 0.35s ease;
}

.converter-area:has(> .controls:not(.hidden)) .drop-zone-hero {
    min-height: 0;
    padding: 24px 20px 40px;
}

.converter-area:has(> .controls:not(.hidden)) .drop-zone-hero .drop-zone-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.converter-area:has(> .controls:not(.hidden)) ~ .scroll-hint {
    display: none;
}

@media (max-width: 640px) {
    .drop-zone-hero { min-height: 44vh; padding: 32px 16px 48px; }
}

.drop-zone-hero .drop-zone-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.drop-zone-headline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
}

.drop-zone-hero .sub-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.drop-zone-formats {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 12px 0 0 0;
    letter-spacing: 0.02em;
}

.drop-zone-folder-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 4px 0 0 0;
}

.drop-zone-safety {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 12px;
    white-space: nowrap;
}

.drop-zone-safety svg { color: var(--color-accent); flex-shrink: 0; }
.drop-zone-safety a { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
    .drop-zone-safety { font-size: 0.72rem; white-space: normal; text-align: center; line-height: 1.4; }
}

/* Hold-to-compare badge */
#compare-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 20;
    white-space: nowrap;
}

#compare-badge.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#modal-img-converted:active { cursor: grabbing; }

/* Scroll hint */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px auto 28px;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    animation: scroll-hint-bob 2.4s ease-in-out infinite;
}

@keyframes scroll-hint-bob {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(3px); opacity: 1; }
}

/* Drag guide */
@keyframes drag-guide-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(99,102,241,0.08); }
}

.drag-guide-active:not(.busy) {
    border-color: var(--color-accent) !important;
    background-color: var(--color-accent-bg) !important;
    animation: drag-guide-pulse 1.5s ease-in-out infinite;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.drop-zone p {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 5px;
    font-size: 1rem;
}

.drop-zone .sub-text {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--color-text-secondary);
}

/* Controls */
.controls {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.preview-area, .settings-area {
    width: 100%;
    max-width: 800px;
}

.hidden {
    display: none !important;
}

/* Content Area for SEO */
.content-area {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-box {
    background: var(--color-surface);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.content-box h2 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.content-box h3 {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-top: 25px;
    margin-bottom: 10px;
}

.content-box p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.usage-list {
    padding-left: 20px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.usage-list li {
    margin-bottom: 10px;
}

.faq-list dt {
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-list dd {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 0;
    padding-left: 20px;
    border-left: 3px solid var(--color-border);
}


/* File List Area */
.preview-area {
    flex: 1;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.area-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.area-title {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin: 0;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.file-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    font-size: 0.8rem;
    padding: 6px 5px;
    border-bottom: 1px solid var(--color-border-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text-secondary);
}

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

.file-item-office-images {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.file-item-office-images li {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0 3px 12px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.file-item-office-images li input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.file-item-office-images li label {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-office-images li.skipped label {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

/* Settings */
.settings-area {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-control-range {
    width: 100%;
    margin-top: 5px;
    accent-color: var(--color-accent);
}

.disabled-group {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Quality Stepper */
.stepper-wrap {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.stepper-btn {
    flex: 1;
    padding: 8px;
    background: #f5f5f5;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.stepper-btn:hover { background: var(--color-border); }
.stepper-btn:active { background: #d4d4d4; }

.stepper-value {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    background: var(--color-surface);
}

.stepper-unit {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-left: 2px;
    font-weight: 600;
}

.quality-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.preset-btn {
    flex: 1;
    padding: 12px 4px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.preset-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.drop-zone .sub-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.drop-zone .format-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    margin-bottom: 0;
}

.help-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 6px;
}

.pro-tip {
    margin-top: 12px;
    padding: 12px 15px;
    background-color: #fffbeb;
    border-left: 4px solid var(--color-warning);
    border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
}

.pro-tip strong {
    color: #b45309;
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-primary:disabled {
    background: var(--color-text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.btn-primary.cancel-mode {
    background: var(--color-text-muted);
}
.btn-primary.cancel-mode:hover {
    background: #737373;
}

/* Result Summary */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.result-summary {
    margin-top: 12px;
    padding: 14px 18px;
    background: var(--color-accent-bg);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-summary.warning {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #78350f;
}

.bug-modal-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--color-text);
}

/* Modern Accordion */
.modern-accordion {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.modern-accordion:hover {
    border-color: var(--color-accent-light);
}
.modern-accordion summary {
    padding: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modern-accordion summary::-webkit-details-marker {
    display: none;
}
.modern-accordion summary h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-text);
    border-bottom: none;
    padding-bottom: 0;
    font-weight: 500;
}
.modern-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1;
}
.modern-accordion[open] summary::after {
    content: '\2212';
}
.modern-accordion .accordion-body {
    padding: 0 20px 20px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}
.modern-accordion .accordion-body h3 {
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-text);
}
.modern-accordion .accordion-body p {
    margin-bottom: 12px;
}
.modern-accordion .accordion-body dt {
    font-weight: 500;
    color: var(--color-text);
    margin-top: 15px;
    margin-bottom: 5px;
}
.modern-accordion .accordion-body dd {
    margin-left: 0;
    padding-left: 15px;
    border-left: 3px solid var(--color-border);
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.result-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.result-stats {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    white-space: nowrap;
}

.result-saved {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-left: auto;
}

.result-saved strong {
    font-size: 1rem;
    color: var(--color-accent-dark);
    font-weight: 600;
}

.result-summary.warning .result-title {
    color: #b45309;
}

.result-summary.warning .result-stats {
    color: #92400e;
    border-color: #fcd34d;
}

.result-summary.warning .result-saved {
    color: #78350f;
}

.result-summary.warning .result-saved strong {
    color: #d97706;
}

/* Modal Nav Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-nav-btn:hover { background: rgba(0, 0, 0, 0.75); }
.modal-nav-btn.prev { left: 8px; }
.modal-nav-btn.next { right: 8px; }

/* Skip Compress */
.skip-compress-wrap {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.15s;
}

.skip-compress-wrap:hover { background: #f5f5f5; }

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

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
    background: var(--color-surface);
    padding: 12px;
    border-radius: var(--radius-md);
    width: 95%;
    max-width: 800px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-image-container {
    width: 100%;
    text-align: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: width 0.1s, max-width 0.1s, max-height 0.1s;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--color-text);
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--color-danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 50;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.ad-bottom { margin-top: 40px; margin-bottom: 20px; }

.ad-placeholder {
    display: inline-block;
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: #f5f5f5;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ad-placeholder p { margin: 0; }

/* FAQ */
.faq-area {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
}

.faq-area h2 {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    margin-bottom: 25px;
    color: var(--color-text);
    font-weight: 600;
}

.faq-area dt {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.faq-area dd {
    margin-bottom: 25px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 15px;
    border-left: 2px solid var(--color-accent-light);
}

/* Footer */
.footer {
    text-align: center;
    padding: 48px 24px 32px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    margin-top: 60px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}

.footer-links a:hover {
    color: var(--color-text);
    background: var(--color-border-light);
}

/* Responsive */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    .preview-area, .settings-area {
        width: 100%;
    }

    .modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }
    .modal-overlay > .modal-content {
        max-height: none;
        width: 98vw;
        margin: 0 auto;
        border-radius: 10px;
    }
    .modal-image-container {
        max-height: none;
    }
    .modal-image-container img {
        max-height: 40vh;
    }
    .modal-close {
        top: 4px;
        right: 4px;
    }

    .modal-content {
        max-height: none;
        width: 96%;
    }

    .header-nav {
        gap: 2px;
    }

    .header-nav a {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* ===== Preview modal view tabs ===== */
.modal-view-tab {
    background: #f5f5f5;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}
.modal-view-tab:hover { background: var(--color-border); }
.modal-view-tab.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* File breakdown chip */
.breakdown-chip {
    display: inline;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Image accordion */
.img-accordion {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 6px;
}
.img-accordion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--color-bg);
    user-select: none;
}
.img-accordion-arrow { display: none; }
.img-accordion-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.img-accordion-count {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.img-accordion-size {
    font-weight: 400;
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    margin-left: 4px;
}
.img-accordion-btns { display: flex; gap: 4px; flex-shrink: 0; }
.img-accordion-del {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 2px 6px;
    line-height: 1;
}
.img-accordion-del:hover { color: var(--color-danger); background: #fef2f2; }
.img-accordion-body { display: block; border-top: 1px solid var(--color-border); }
.inline-grid-group {
    max-height: none;
    overflow-y: visible;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
}

/* Split pane */
.split-pane {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 420px;
}
.split-pane-filelist {
    width: 200px;
    min-width: 160px;
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    background: var(--color-bg);
    flex-shrink: 0;
}
.split-pane-file {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-bottom: 1px solid var(--color-border-light);
    user-select: none;
    transition: background 0.12s;
}
.split-pane-file:last-child { border-bottom: none; }
.split-pane-file:hover { background: #efefef; }
.split-pane-file.active {
    background: var(--color-surface);
    box-shadow: inset 3px 0 0 var(--color-accent);
    font-weight: 500;
}
.split-pane-file-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.split-pane-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.split-pane-file-count {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.split-pane-file-del {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.12s;
}
.split-pane-file:hover .split-pane-file-del { opacity: 1; }
.split-pane-file-del:hover { color: var(--color-danger); background: #fef2f2; }
.split-pane-thumbs {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background: var(--color-surface);
}
.split-pane-single { flex-direction: column; }
.split-pane-single .split-pane-filelist {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    overflow-y: visible;
    display: flex;
    align-items: center;
    padding: 0;
}
.split-pane-single .split-pane-file {
    flex: 1;
    border-bottom: none;
    padding: 8px 12px;
    cursor: default;
    background: var(--color-bg);
}
.split-pane-single .split-pane-file:hover { background: var(--color-bg); }
.split-pane-thumbs .modal-grid-container {
    max-height: none;
    overflow-y: visible;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Grid view */
.modal-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 8px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px 4px 10px 4px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.modal-grid-section-title {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 6px 4px 2px 4px;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2px;
}

.modal-grid-cell {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-grid-cell:hover {
    border-color: var(--color-accent-light);
    box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}
.modal-grid-cell.skipped { opacity: 0.55; }
.modal-grid-cell.skipped .modal-grid-thumb { filter: grayscale(0.4); }

.modal-grid-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    background: #f5f5f5;
    display: block;
}

.modal-grid-cell-label {
    font-size: 0.68rem;
    color: var(--color-text-secondary);
    margin: 3px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.modal-grid-cell-size {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    margin-top: 1px;
}

.modal-grid-check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
    z-index: 2;
    background: var(--color-surface);
    border-radius: 2px;
}

.modal-grid-thumb.loading {
    background: linear-gradient(90deg, #f5f5f5 0%, var(--color-border) 50%, #f5f5f5 100%);
    background-size: 200% 100%;
    animation: modal-grid-shimmer 1.4s infinite;
}
@keyframes modal-grid-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.modal-grid-bulk-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.modal-grid-bulk-btn:hover { background: #f5f5f5; border-color: var(--color-text-muted); }

@media (max-width: 640px) {
    .modal-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        max-height: 60vh;
        gap: 6px;
    }
    .modal-grid-cell { padding: 4px; }
    .modal-grid-check { top: 6px; left: 6px; width: 14px; height: 14px; }
    .modal-grid-cell-label { font-size: 0.62rem; }
    .modal-view-tab { padding: 5px 12px; font-size: 0.72rem; }
}

/* Preview Modal */
.preview-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
    padding: 16px;
}
.preview-modal-overlay.visible { opacity: 1; pointer-events: auto; }
.preview-modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.preview-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}
.preview-modal-title {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
}
.preview-modal-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.preview-modal-nav button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.12s;
}
.preview-modal-nav button:hover { background: #f5f5f5; color: var(--color-text); }
.preview-modal-nav button:disabled { opacity: 0.3; cursor: default; }
.preview-modal-close { margin-left: 8px; }
.preview-modal-image-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    position: relative;
    min-height: 200px;
    overflow: hidden;
}
.preview-modal-image-area img {
    max-width: 100%;
    max-height: 58vh;
    object-fit: contain;
    display: block;
}
.preview-modal-size-badge {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
}
.preview-modal-loading { color: var(--color-text-muted); font-size: 0.85rem; }
.preview-modal-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(245, 245, 245, 0.6);
    z-index: 5;
}
.preview-modal-spinner.active { display: flex; }
.preview-modal-spinner::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.preview-modal-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}
.preview-modal-settings-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;
}
.preview-modal-quality {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.preview-modal-quality label,
.preview-modal-resize label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    white-space: nowrap;
}
.preview-modal-quality input[type="range"] {
    flex: 1;
    min-width: 80px;
    accent-color: var(--color-accent);
}
.preview-modal-quality-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 28px;
    text-align: right;
}
.preview-modal-resize {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.preview-modal-resize-select {
    font-size: 0.78rem;
    padding: 4px 8px;
    border: 1px solid var(--color-text-muted);
    border-radius: 5px;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    font-weight: 500;
}
.preview-modal-apply-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.preview-modal-apply-label {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    font-weight: 500;
}
.preview-modal-apply {
    display: flex;
    gap: 0;
}
.preview-modal-apply button {
    font-size: 0.72rem;
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.12s;
}
.preview-modal-apply button:first-child { border-radius: 6px 0 0 6px; }
.preview-modal-apply button:last-child { border-radius: 0 6px 6px 0; }
.preview-modal-apply button:not(:first-child) { border-left: none; }
.preview-modal-apply button.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.preview-modal-apply button.active + button { border-left: 1px solid var(--color-accent); }
.preview-modal-apply button:hover:not(.active) { background: var(--color-accent-bg); color: var(--color-accent-dark); }
.preview-modal-toast {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: #fff;
    font-size: 0.78rem;
    padding: 6px 16px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}
.preview-modal-toast.show { opacity: 1; }

/* Thumbnail zoom icon */
.modal-grid-cell .thumb-zoom-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.15s, transform 0.15s;
    pointer-events: none;
    z-index: 1;
}
.modal-grid-cell .thumb-zoom-icon svg {
    width: 11px;
    height: 11px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}
.modal-grid-cell:hover .thumb-zoom-icon {
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 640px) {
    .preview-modal { max-width: 100%; border-radius: var(--radius-sm); }
    .preview-modal-image-area img { max-height: 45vh; }
    .preview-modal-toolbar { gap: 8px; padding: 8px 12px; }
    .preview-modal-apply button { font-size: 0.68rem; padding: 4px 8px; }
}

/* ===== Legal pages shared styles ===== */
.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-container h1 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal-container h2 {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 8px;
    font-weight: 600;
}

.legal-container p, .legal-container li {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-container ul li {
    margin-bottom: 6px;
}

.legal-container a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-container a:hover {
    color: var(--color-accent);
}

/* About table */
.about-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}
.about-table th, .about-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 0.95rem;
}
.about-table th {
    width: 25%;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
    font-weight: 600;
}
.about-table td {
    color: var(--color-text-secondary);
}

/* Contact form */
.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.submit-btn {
    width: 100%;
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    transform: translateY(-1px);
}

.success-message {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
}
.success-message h2 { font-size: 1.4rem; margin-bottom: 10px; }
.success-message p { color: #047857; margin-bottom: 20px; }
.success-message a {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s;
}
.success-message a:hover { background: var(--color-accent-dark); }

/* ===== Brand Hub Styles ===== */
.hub-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 24px 80px;
    text-align: center;
}

.hub-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #6366f1 50%, #818cf8 75%, #a78bfa 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    z-index: 0;
}

.hub-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.hub-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    animation: fade-up 0.8s ease-out;
}

.hub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hub-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hub-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hub-cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hub-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hub-cta-primary {
    background: #fff;
    color: var(--color-accent-dark);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.hub-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hub-cta-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.hub-cta-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .hub-hero { padding: 64px 20px 56px; }
    .hub-hero h1 { font-size: 2rem; }
    .hub-hero p { font-size: 1rem; }
    .hub-cta { padding: 12px 20px; font-size: 0.9rem; }
}

/* Services Section */
.hub-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.hub-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.hub-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hub-section-header p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.hub-service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.hub-service-card:hover {
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

.hub-service-card.available {
    cursor: pointer;
}

.hub-service-card.coming-soon {
    opacity: 0.7;
}

.hub-service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.hub-service-icon.compress {
    background: linear-gradient(135deg, var(--color-accent-bg), #dbeafe);
    color: var(--color-accent);
}

.hub-service-icon.video {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.hub-service-icon.pdf {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #db2777;
}

.hub-service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-service-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hub-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hub-badge-live {
    background: #ecfdf5;
    color: #059669;
}

.hub-badge-soon {
    background: #f5f5f5;
    color: var(--color-text-muted);
}

/* Features row */
.hub-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.hub-feature {
    text-align: center;
    padding: 24px 16px;
}

.hub-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-bg);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.hub-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.hub-feature p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .hub-features { grid-template-columns: 1fr; gap: 16px; }
    .hub-section { padding: 56px 20px; }
    .hub-section-header h2 { font-size: 1.5rem; }
}

/* Trust bar */
.hub-trust {
    text-align: center;
    padding: 48px 24px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.hub-trust-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.hub-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.hub-trust-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}
