/**
 * Tool Sections CSS
 * 
 * Extracted from inline <style> blocks in section templates for:
 * - Better caching (CSS cached separately from HTML)
 * - Smaller HTML payload (68KB → ~25KB gzipped)
 * - Cleaner separation of concerns
 * 
 * Created: 2025-12-31
 * 
 * Sections included:
 * - section_comparison
 * - section_cta
 * - section_faq
 * - section_features
 * - section_how_to
 * - section_privacy
 * - section_related_tools
 * - section_size_targets
 * - section_specs
 * - section_technical
 * - section_tips
 * - section_troubleshooting
 * - section_use_cases
 */


/* ========== section_comparison ========== */
/* ========== Section: Comparison ========== */
.section-comparison {
    background: hsl(var(--background));
}

/* Table Wrapper */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
}

/* Table */
.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.comparison-table th {
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--muted) / 0.3);
}

.comparison-table th.feature-col {
    text-align: left;
    min-width: 180px;
}

.comparison-table th.us-col {
    background: hsl(var(--primary) / 0.1);
}

/* Our Badge */
.us-badge {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: white;
    background: hsl(var(--primary));
    border-radius: 2rem;
}

/* Feature Name */
.feature-name {
    text-align: left !important;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.usp-tag {
    display: inline-flex;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    background: hsl(142 76% 36%);
    border-radius: 0.25rem;
    vertical-align: middle;
}

/* Values */
.us-value {
    background: hsl(var(--primary) / 0.05);
    font-weight: 600;
}

.check-icon {
    color: hsl(142 76% 36%);
    font-weight: 700;
    font-size: 1.125rem;
}

.check-icon.dim {
    opacity: 0.5;
}

.cross-icon {
    color: hsl(0 84% 60%);
    font-weight: 700;
    font-size: 1.125rem;
}

.text-value {
    color: hsl(var(--foreground));
}

.text-value.dim {
    color: hsl(var(--muted-foreground));
}

/* Highlight Row */
.highlight-row {
    background: hsl(142 76% 36% / 0.05);
}

.highlight-row .feature-name {
    color: hsl(142 76% 30%);
    font-weight: 600;
}

/* Disclaimer */
.comparison-disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

/* Why It Matters */
.why-matters {
    margin-top: 2rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
}

.why-matters-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.why-matters-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.why-matters-content p {
    margin-bottom: 1rem;
}

.why-matters-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.why-matters-content li {
    margin-bottom: 0.5rem;
}

/* ========== section_cta ========== */
/* ========== Section: CTA ========== */
.section-cta {
    background: hsl(var(--background));
}

/* Card */
.cta-card {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.85) 100%);
    border-radius: 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-card {
        padding: 4rem 3rem;
    }
}

/* Background Pattern */
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Icon */
.cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: white;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
}

/* Title */
.cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

/* Subtitle */
.cta-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .cta-subtitle {
        font-size: 1.125rem;
    }
}

/* Trust Signals */
.cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.trust-item svg {
    flex-shrink: 0;
}

/* Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: hsl(var(--primary));
    background: white;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

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

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* ========== section_faq ========== */
/* ========== Section: FAQ ========== */
.section-faq {
    background: hsl(var(--background));
}

/* ========== FAQ Item ========== */
.faq-item {
    position: relative;
    border-radius: 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 4px 20px hsl(var(--primary) / 0.08);
}

.faq-item.active {
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: 0 8px 30px hsl(var(--primary) / 0.12);
}

/* ========== Question Button ========== */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: hsl(var(--muted) / 0.3);
}

.faq-item.active .faq-question {
    background: hsl(var(--primary) / 0.05);
}

/* Question Number */
.faq-number {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--muted-foreground) / 0.5);
    font-family: ui-monospace, SFMono-Regular, monospace;
    transition: all 0.3s ease;
}

.faq-item.active .faq-number,
.faq-item:hover .faq-number {
    color: hsl(var(--primary));
}

/* Question Text */
.faq-question-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

@media (min-width: 768px) {
    .faq-question-text {
        font-size: 1.0625rem;
    }
}

/* Toggle Icon */
.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: hsl(var(--muted) / 0.5);
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
}

.faq-item:hover .faq-toggle {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.faq-item.active .faq-toggle {
    background: hsl(var(--primary));
    color: white;
    transform: rotate(0deg);
}

.faq-icon-plus,
.faq-icon-minus {
    position: absolute;
    transition: all 0.3s ease;
}

.faq-icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.faq-item.active .faq-icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item.active .faq-icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

/* ========== Answer ========== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust if answers are longer */
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 3.75rem;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .faq-answer-inner {
        padding-left: 4.25rem;
    }
}

/* ========== Accent Line ========== */
.faq-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.5) 100%);
    border-radius: 0 2px 2px 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-accent {
    height: 100%;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    .faq-answer {
        transition: none;
    }
    
    .faq-accent {
        transition: none;
    }
}

/* ========== section_features ========== */
/* ========== Features Grid ========== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ========== Feature Card ========== */
.feature-item {
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .feature-item {
        padding: 2.25rem 1.75rem 2rem;
    }
}

.feature-item:hover {
    transform: translateY(-6px);
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 
        0 20px 40px hsl(var(--primary) / 0.1),
        0 0 0 1px hsl(var(--primary) / 0.1);
}

/* Gradient blob - different for each card */
.feature-blob {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    transition: all 0.5s ease;
    pointer-events: none;
}

.feature-item[data-index="1"] .feature-blob {
    top: -40px;
    right: -40px;
    background: hsl(var(--primary));
}

.feature-item[data-index="2"] .feature-blob {
    bottom: -40px;
    left: -40px;
    background: hsl(142 70% 45%); /* Green */
}

.feature-item[data-index="3"] .feature-blob {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(45 90% 50%); /* Yellow/Gold */
}

.feature-item:hover .feature-blob {
    opacity: 0.25;
    transform: scale(1.2);
}

.feature-item[data-index="3"]:hover .feature-blob {
    transform: translateX(-50%) scale(1.2);
}

/* Large background icon */
.feature-bg-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 6rem;
    color: hsl(var(--foreground));
    opacity: 0.03;
    transition: all 0.4s ease;
    pointer-events: none;
}

.feature-item:hover .feature-bg-icon {
    opacity: 0.06;
    transform: scale(1.1) rotate(-5deg);
}

/* Content */
.feature-content {
    position: relative;
    z-index: 2;
}

/* Icon Badge */
.feature-icon-badge {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.feature-item[data-index="1"] .feature-icon-badge {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.7) 100%);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
}

.feature-item[data-index="2"] .feature-icon-badge {
    background: linear-gradient(135deg, hsl(142 70% 45%) 0%, hsl(142 70% 35%) 100%);
    box-shadow: 0 4px 12px hsl(142 70% 45% / 0.3);
}

.feature-item[data-index="3"] .feature-icon-badge {
    background: linear-gradient(135deg, hsl(45 90% 50%) 0%, hsl(35 90% 45%) 100%);
    box-shadow: 0 4px 12px hsl(45 90% 50% / 0.3);
}

.feature-item:hover .feature-icon-badge {
    transform: scale(1.1) rotate(-3deg);
}

.feature-icon-badge i {
    font-size: 1.375rem;
    color: white;
}

/* Title */
.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 1.25rem;
    }
}

/* Description */
.feature-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

/* Hover accent line at bottom */
.feature-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item[data-index="1"] .feature-accent {
    background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
}

.feature-item[data-index="2"] .feature-accent {
    background: linear-gradient(90deg, transparent, hsl(142 70% 45%), transparent);
}

.feature-item[data-index="3"] .feature-accent {
    background: linear-gradient(90deg, transparent, hsl(45 90% 50%), transparent);
}

.feature-item:hover .feature-accent {
    width: 60%;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    .feature-item:hover {
        transform: none;
    }
    
    .feature-item:hover .feature-icon-badge,
    .feature-item:hover .feature-bg-icon,
    .feature-item:hover .feature-blob {
        transform: none;
    }
}

/* ========== section_how_to ========== */
/* ========== Section: How To ========== */
.section-how-to {
    background: hsl(var(--background));
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ========== Step Card ========== */
.step-item {
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .step-item {
        padding: 2.25rem 1.75rem 2rem;
    }
}

.step-item:hover {
    transform: translateY(-6px);
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 
        0 20px 40px hsl(var(--primary) / 0.1),
        0 0 0 1px hsl(var(--primary) / 0.1);
}

/* Gradient blob - uses primary color for all (sequential, not unique) */
.step-blob {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: hsl(var(--primary));
    filter: blur(60px);
    opacity: 0.1;
    transition: all 0.5s ease;
    pointer-events: none;
}

.step-item[data-index="1"] .step-blob {
    top: -40px;
    right: -40px;
}

.step-item[data-index="2"] .step-blob {
    bottom: -40px;
    left: -40px;
}

.step-item[data-index="3"] .step-blob {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.step-item:hover .step-blob {
    opacity: 0.18;
    transform: scale(1.2);
}

.step-item[data-index="3"]:hover .step-blob {
    transform: translateX(-50%) scale(1.2);
}

/* Large background icon */
.step-bg-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 5.5rem;
    color: hsl(var(--foreground));
    opacity: 0.03;
    transition: all 0.4s ease;
    pointer-events: none;
}

.step-item:hover .step-bg-icon {
    opacity: 0.06;
    transform: scale(1.1) rotate(-5deg);
}

/* Content */
.step-content {
    position: relative;
    z-index: 2;
}

/* Step Number Badge */
.step-number-badge {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.7) 100%);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
    transition: all 0.3s ease;
}

.step-item:hover .step-number-badge {
    transform: scale(1.1) rotate(-3deg);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px hsl(0 0% 0% / 0.1);
}

/* Mini icon badge (corner) */
.step-icon-mini {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: hsl(var(--card));
    border: 2px solid hsl(var(--primary) / 0.3);
    box-shadow: 0 2px 4px hsl(var(--foreground) / 0.1);
}

.step-icon-mini i {
    font-size: 0.625rem;
    color: hsl(var(--primary));
}

/* Title */
.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .step-title {
        font-size: 1.25rem;
    }
}

/* Description */
.step-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

/* Tip Badge */
.step-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
}

.step-tip svg {
    flex-shrink: 0;
}

/* Hover accent line */
.step-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item:hover .step-accent {
    width: 60%;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    .step-item:hover {
        transform: none;
    }
    
    .step-item:hover .step-number-badge,
    .step-item:hover .step-bg-icon,
    .step-item:hover .step-blob {
        transform: none;
    }
}

/* ========== section_privacy ========== */
/* ========== Section: Privacy ========== */
.section-privacy {
    background: hsl(var(--background));
}

/* Main Card */
.privacy-card {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .privacy-card {
        padding: 3rem;
    }
}

/* Top accent */
.privacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(142 76% 36%) 50%, hsl(var(--primary)) 100%);
}

/* Shield Icon */
.privacy-shield {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, hsl(142 76% 36%) 0%, hsl(142 76% 30%) 100%);
    color: white;
    box-shadow: 0 8px 24px hsl(142 76% 36% / 0.3);
}

.privacy-shield svg {
    width: 100%;
    height: 100%;
}

/* Intro */
.privacy-intro {
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
    max-width: 700px;
    margin: 0 auto 2rem;
}

.privacy-intro strong {
    color: hsl(var(--foreground));
}

/* Section Blocks */
.privacy-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border) / 0.3);
}

.privacy-h3 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.privacy-h3 svg {
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.privacy-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.privacy-content p {
    margin-bottom: 1rem;
}

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

.privacy-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    counter-increment: step;
}

.privacy-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    background: hsl(var(--primary));
    border-radius: 50%;
}

.privacy-steps li strong {
    display: block;
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.privacy-steps li span {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.comparison-col {
    padding: 1.25rem;
    border-radius: 1rem;
}

.comparison-bad {
    background: hsl(0 84% 60% / 0.08);
    border: 1px solid hsl(0 84% 60% / 0.2);
}

.comparison-good {
    background: hsl(142 76% 36% / 0.08);
    border: 1px solid hsl(142 76% 36% / 0.2);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.comparison-bad .comparison-header {
    color: hsl(0 84% 40%);
}

.comparison-bad .comparison-header svg {
    fill: hsl(0 84% 50%);
}

.comparison-good .comparison-header {
    color: hsl(142 76% 30%);
}

.comparison-good .comparison-header svg {
    fill: hsl(142 76% 40%);
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comparison-bad .comparison-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: hsl(0 84% 50%);
    font-weight: 700;
}

.comparison-good .comparison-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(142 76% 40%);
    font-weight: 700;
}

.comparison-bad .comparison-list li {
    color: hsl(var(--muted-foreground));
}

.comparison-good .comparison-list li {
    color: hsl(var(--foreground));
}

/* Guarantee List */
.guarantee-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .guarantee-list {
        grid-template-columns: 1fr 1fr;
    }
}

.guarantee-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
}

.guarantee-list li strong {
    color: hsl(var(--foreground));
}

.guarantee-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

/* Trust Badge */
.privacy-badge {
    margin-top: 2rem;
    text-align: center;
}

.badge-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(142 76% 30%);
    background: hsl(142 76% 36% / 0.1);
    border: 1px solid hsl(142 76% 36% / 0.3);
    border-radius: 2rem;
}

/* ========== Brief Mode Styles ========== */
.privacy-brief {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.privacy-brief-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.privacy-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all 0.2s ease;
}

.privacy-learn-more:hover {
    color: hsl(var(--primary) / 0.8);
    text-decoration: underline;
}

/* ========== section_related_tools ========== */
/* ========== Section: Related Tools ========== */
.section-related-tools {
    background: hsl(var(--background));
}

/* Grid */
.related-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.related-tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tool-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 8px 24px hsl(var(--primary) / 0.1);
    transform: translateY(-2px);
}

.tool-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 1.25rem;
}

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.25rem;
}

.tool-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-arrow {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    transition: all 0.3s ease;
}

.related-tool-card:hover .tool-arrow {
    color: hsl(var(--primary));
    transform: translateX(4px);
}

/* ========== Workflow Box (Redesigned) ========== */
.workflow-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.05) 0%, hsl(var(--card)) 100%);
    border: 1px solid hsl(var(--primary) / 0.15);
    border-radius: 1rem;
}

.workflow-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.workflow-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.workflow-title {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 0.25rem;
}

.workflow-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Flow Container */
.workflow-flow {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: hsl(var(--background));
    border-radius: 0.75rem;
}

/* Chip */
.workflow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 0.875rem 0 0.375rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.workflow-chip:hover {
    border-color: hsl(var(--primary) / 0.5);
    background: hsl(var(--primary) / 0.05);
    transform: translateY(-1px);
}

.chip-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    white-space: nowrap;
}

/* Connector Arrow */
.workflow-connector {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--muted-foreground) / 0.5);
}

/* Mobile: Stack vertically */
@media (max-width: 480px) {
    .workflow-flow {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .workflow-connector {
        transform: rotate(90deg);
    }
}

/* ========== section_size_targets ========== */
/* ========== Section: Size Targets ========== */
.section-size-targets {
    background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted) / 0.2) 100%);
}

/* Grid */
.size-targets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .size-targets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .size-targets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card */
.size-target-card {
    position: relative;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.size-target-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: 0 12px 24px hsl(var(--primary) / 0.1);
}

/* Size Badge */
.size-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--primary) / 0.05) 100%);
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--primary) / 0.2);
}

/* Content */
.target-content {
    flex: 1;
}

.target-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.target-volume {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: hsl(var(--success));
    background: hsl(var(--success) / 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

.target-use-case {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.target-use-case strong {
    color: hsl(var(--foreground));
}

.target-quality-note {
    font-size: 0.75rem;
    font-style: italic;
    color: hsl(var(--muted-foreground) / 0.8);
    margin-bottom: 1rem;
}

/* Try Button */
.target-try-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.target-try-btn:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: scale(1.02);
}

/* How It Works Box */
.how-it-works-box {
    margin-top: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
}

.how-it-works-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.7) 100%);
    color: white;
    font-size: 1.25rem;
}

.how-it-works-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.how-it-works-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    .size-target-card:hover {
        transform: none;
    }
    
    .target-try-btn:hover {
        transform: none;
    }
}

/* ========== section_specs ========== */
/* ========== Section: Specs ========== */
.section-specs {
    background: hsl(var(--background));
}

/* Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card */
.spec-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.spec-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 0.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 1.25rem;
}

.spec-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    padding: 0.25rem 0;
}

.spec-list li + li {
    border-top: 1px dashed hsl(var(--border) / 0.3);
}

/* Browser Compatibility */
.browser-compat {
    margin-top: 2rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    text-align: center;
}

.browser-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.browser-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.browser-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.browser-item i {
    font-size: 1.75rem;
    color: hsl(var(--muted-foreground));
}

.browser-item span {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ========== section_technical ========== */
/* ========== Section: Technical ========== */
.section-technical {
    background: hsl(var(--background));
}

.technical-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .technical-content {
        padding: 2.5rem 3rem;
    }
}

/* Blocks */
.technical-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.technical-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.technical-h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.technical-h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25em;
    background: hsl(var(--primary));
    border-radius: 2px;
    margin-right: 0.5rem;
}

.technical-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
}

.technical-text p {
    margin-bottom: 1rem;
}

.technical-text p:last-child {
    margin-bottom: 0;
}

.technical-text strong {
    color: hsl(var(--foreground));
}

/* Process Steps */
.process-steps {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: 0.75rem;
    border-left: 3px solid hsl(var(--primary));
}

.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    background: hsl(var(--primary));
    border-radius: 50%;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.step-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Tradeoffs Table */
.tradeoffs-table-wrapper {
    margin-top: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tradeoffs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tradeoffs-table th,
.tradeoffs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.tradeoffs-table th {
    font-weight: 600;
    color: hsl(var(--foreground));
    background: hsl(var(--muted) / 0.3);
    white-space: nowrap;
}

.tradeoffs-table td {
    color: hsl(var(--muted-foreground));
}

.tradeoffs-table td strong {
    color: hsl(var(--foreground));
}

.tradeoffs-table tbody tr:hover {
    background: hsl(var(--muted) / 0.2);
}

/* Expert Tips */
.expert-tips-block {
    background: hsl(var(--primary) / 0.03);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--primary) / 0.1);
}

.expert-tips-block .technical-h3 {
    gap: 0.625rem;
}

.expert-tips-block .technical-h3::before {
    display: none;
}

.expert-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expert-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
}

.tip-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

/* ========== section_tips ========== */
/* ========== Section: Tips ========== */
.section-tips {
    background: hsl(var(--background));
}

/* Container */
.tips-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Category */
.tips-category {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .tips-category {
        padding: 2rem;
    }
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid hsl(var(--primary) / 0.2);
}

.category-title i {
    color: hsl(var(--primary));
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tip-number {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
}

.tip-content {
    flex: 1;
}

.tip-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.tip-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Pro Tip Callout */
.pro-tip-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.08) 0%, hsl(var(--primary) / 0.03) 100%);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 1rem;
}

.pro-tip-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.pro-tip-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.pro-tip-content strong {
    color: hsl(var(--foreground));
}

/* ========== Brief Mode Styles ========== */
.tips-brief-container {
    max-width: 700px;
    margin: 0 auto;
}

.tips-brief-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
}

.tips-brief-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.tips-brief-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.tips-brief-list .tip-bullet {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--success));
}

.tips-learn-more-wrapper {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border) / 0.3);
    text-align: center;
}

.tips-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all 0.2s ease;
}

.tips-learn-more:hover {
    color: hsl(var(--primary) / 0.8);
    text-decoration: underline;
}

/* ========== section_troubleshooting ========== */
/* ========== Section: Troubleshooting ========== */
.section-troubleshooting {
    background: hsl(var(--background));
}

/* Issues List */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Issue Item */
.issue-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    border-left: 4px solid hsl(45 93% 47%);
}

.issue-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.issue-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.issue-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
    line-height: 1.4;
}

/* Solution */
.issue-solution {
    padding-left: 2.25rem;
}

.solution-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(142 76% 36%);
    margin-bottom: 0.25rem;
}

.issue-solution p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Solution Steps */
.solution-steps {
    margin: 1rem 0 0 2.25rem;
    padding-left: 1.25rem;
}

.solution-steps li {
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.solution-steps li::marker {
    color: hsl(var(--primary));
    font-weight: 600;
}

/* Help Callout */
.help-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: 1rem;
}

.help-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.help-callout p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* ========== Brief Mode Styles ========== */
.troubleshooting-brief-container {
    max-width: 700px;
    margin: 0 auto;
}

.troubleshooting-brief-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.troubleshooting-brief-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, hsl(45 93% 47%) 0%, hsl(35 93% 45%) 100%);
    color: white;
    font-size: 1.5rem;
}

.troubleshooting-brief-text {
    font-size: 1rem;
    line-height: 1.7;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.25rem;
}

.troubleshooting-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--primary));
    text-decoration: none;
    transition: all 0.2s ease;
}

.troubleshooting-learn-more:hover {
    color: hsl(var(--primary) / 0.8);
    text-decoration: underline;
}

/* ========== section_use_cases ========== */
/* ========== Section: Use Cases ========== */
.section-use-cases {
    background: hsl(var(--background));
}

/* Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.use-case-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 8px 24px hsl(var(--primary) / 0.08);
    transform: translateY(-2px);
}

/* Icon */
.use-case-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 1.25rem;
}

/* Title */
.use-case-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

/* Scenario & Solution */
.use-case-scenario,
.use-case-solution {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.use-case-scenario strong,
.use-case-solution strong {
    color: hsl(var(--foreground));
}

/* Example Quote */
.use-case-example {
    padding: 0.75rem 1rem;
    background: hsl(var(--muted) / 0.3);
    border-left: 3px solid hsl(var(--primary));
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1rem;
}

.use-case-example p {
    font-size: 0.8125rem;
    font-style: italic;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Metrics */
.use-case-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.metric {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    background: hsl(var(--primary) / 0.05);
    border-radius: 0.5rem;
    flex: 1;
    min-width: 70px;
}

.metric-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

/* Industries Section */
.industries-section {
    margin-top: 3rem;
    padding: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 1rem;
}

.industries-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    text-align: center;
}

.industries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.industry-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.industry-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.industry-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
}


/* ========== ADDITIONAL COMPONENT STYLES (Extracted 2025-12-31) ========== */

/* ========== setting_radio_group ========== */
/* Radio group styling - selected state */
.setting-radio-option:has(.radio-input:checked) {
    border-color: hsl(var(--primary));
    border-width: 2px;
    background-color: hsl(var(--primary) / 0.05);
}

.setting-radio-option:has(.radio-input:checked) .radio-circle {
    border-color: hsl(var(--primary));
}

.setting-radio-option:has(.radio-input:checked) .radio-dot {
    display: block;
}

/* ========== image_card ========== */
/* Image Card Hover Effects */
.image-card .card-actions {
    opacity: 0;
    transition: opacity 200ms ease;
}
.image-card:hover .card-actions {
    opacity: 1;
}

/* ========== settings_card_floating ========== */
/* ========== BASE CONTAINER ========== */
.floating-settings-card {
    position: fixed !important;
    z-index: 10002 !important; /* Above preview modal (10001) */
    background: hsl(var(--card) / 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 -10px 40px hsl(var(--foreground) / 0.1);
    transition: all 0.3s ease;
}

.floating-settings-card:not(.hidden) {
    display: block;
}

/* ========== MOBILE: Position at bottom ========== */
.floating-settings-card {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 1rem 1rem 0 0;
    border-bottom: none;
}

/* ========== LEVEL 0: Quality + All Buttons ========== */
.settings-level-0 {
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.level0-drag-handle {
    width: 36px;
    height: 4px;
    background: hsl(var(--border));
    border-radius: 2px;
    margin: 0 auto 0.625rem;
}

/* Quality Slider Row */
.level0-quality-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.level0-quality-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.level0-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    background: linear-gradient(to right, hsl(var(--primary)) 0%, hsl(var(--primary)) 75%, hsl(var(--border)) 75%, hsl(var(--border)) 100%);
    cursor: pointer;
}

.level0-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: hsl(var(--primary));
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.level0-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: hsl(var(--primary));
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.level0-quality-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--primary));
    min-width: 2.5rem;
    text-align: right;
}

/* All Buttons Row */
.level0-buttons-row {
    display: flex;
    gap: 0.5rem;
}

.level0-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
}

.level0-btn:active {
    transform: scale(0.96);
}

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

.level0-btn svg {
    flex-shrink: 0;
}

.level0-btn span {
    line-height: 1;
}

/* Download - Green */
.level0-btn-download {
    background: linear-gradient(135deg, hsl(var(--success)) 0%, hsl(142 71% 40%) 100%);
    color: white;
}

/* Save - Primary */
.level0-btn-save {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Apply All - Muted */
.level0-btn-all {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

/* More - Subtle */
.level0-btn-more {
    background: hsl(var(--muted) / 0.5);
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border) / 0.5);
}

.level0-status-loading {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.level0-status-success {
    background: hsl(var(--success));
    color: white;
}

.level0-status-warning {
    background: hsl(var(--warning));
    color: white;
}

/* Pulsating animation */
@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

.level0-status-loading {
    animation: pulse-status 1.5s ease-in-out infinite;
}

.level0-download {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--success)) 0%, hsl(142 71% 40%) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.level0-download:not(:disabled):active {
    transform: scale(0.95);
}

.level0-expand {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: all 0.2s ease;
}

.level0-expand:active {
    transform: scale(0.95);
}

/* Progress bar */
.level0-progress {
    height: 3px;
    background: hsl(var(--border));
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.level0-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--success)));
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* ========== LEVEL 1: Minimal Expanded ========== */
.settings-level-1 {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.level1-header {
    padding: 0.75rem 1rem 0;
    border-bottom: 1px solid hsl(var(--border) / 0.3);
    padding-bottom: 0.75rem;
}

.level1-drag-handle {
    width: 36px;
    height: 4px;
    background: hsl(var(--border));
    border-radius: 2px;
    margin: 0 auto 0.5rem;
}

.level1-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level1-filename {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.level1-collapse {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level1-collapse:active {
    transform: scale(0.95);
}

.level1-section {
    padding: 0.75rem 1rem;
}

.level1-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

/* Format Pills */
.level1-format-pills {
    display: flex;
    gap: 0.375rem;
}

.format-pill {
    flex: 1;
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-pill:active {
    transform: scale(0.98);
}

.format-pill.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Quality Slider */
.level1-quality-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.level1-quality-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.level1-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    background: linear-gradient(to right, hsl(var(--primary)) 0%, hsl(var(--primary)) 75%, hsl(var(--border)) 75%, hsl(var(--border)) 100%);
    cursor: pointer;
}

.level1-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: hsl(var(--primary));
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.level1-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: hsl(var(--primary));
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.level1-quality-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.375rem;
}

/* Result Section */
.level1-result {
    padding: 0.75rem;
    background: linear-gradient(135deg, hsl(var(--muted) / 0.3) 0%, hsl(var(--muted) / 0.15) 100%);
    border-radius: 0.625rem;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 2px 8px hsl(var(--foreground) / 0.05);
    transition: all 0.3s ease;
}

/* Pulsating animation during compression */
@keyframes result-pulse {
    0%, 100% { 
        opacity: 1;
        border-color: hsl(var(--border));
        box-shadow: 0 2px 8px hsl(var(--foreground) / 0.05);
    }
    50% { 
        opacity: 0.85;
        border-color: hsl(var(--primary) / 0.6);
        box-shadow: 0 4px 20px hsl(var(--primary) / 0.25), 0 0 0 2px hsl(var(--primary) / 0.1);
    }
}

.level1-result.compressing {
    animation: result-pulse 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.15) 0%, hsl(var(--muted) / 0.3) 100%);
}

.level1-size-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level1-original {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.level1-arrow {
    color: hsl(var(--muted-foreground) / 0.6);
}

.level1-compressed {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.level1-badge {
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    transition: all 0.2s ease;
}

.level1-badge.success {
    background: hsl(var(--success));
    color: white;
}

.level1-badge.warning {
    background: hsl(var(--warning));
    color: white;
}

.level1-status-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--border) / 0.3);
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.level1-status-row.loading {
    animation: pulse-status 1.5s ease-in-out infinite;
}

/* Advanced Toggle */
.level1-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0;
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.2s ease;
}

.level1-advanced-toggle:hover {
    color: hsl(var(--foreground));
}

.level1-advanced-chevron {
    transition: transform 0.2s ease;
}

.level1-advanced-chevron.rotated {
    transform: rotate(90deg);
}

.level1-advanced-content {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: hsl(var(--muted) / 0.3);
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border) / 0.3);
}

.level1-advanced-loading {
    text-align: center;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    padding: 0.5rem;
}

/* Action Buttons */
.level1-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--muted) / 0.2);
    border-top: 1px solid hsl(var(--border) / 0.3);
}

.level1-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.level1-action-btn:active {
    transform: scale(0.98);
}

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

.level1-download-btn {
    flex: 1.5;
    background: linear-gradient(135deg, hsl(var(--success)) 0%, hsl(142 71% 40%) 100%);
    color: white;
}

.level1-save-btn {
    flex: 1;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.level1-apply-btn {
    flex: 0.8;
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

/* ========== MOBILE: Show Level 0 or Level 1 ========== */
.floating-settings-card.expanded .settings-level-0 {
    display: none;
}

.floating-settings-card.expanded .settings-level-1 {
    display: block;
}

.floating-settings-card:not(.expanded) .settings-level-0 {
    display: block;
}

.floating-settings-card:not(.expanded) .settings-level-1 {
    display: none;
}

/* Hide desktop panel on mobile */
.settings-desktop-panel {
    display: none;
}

/* ========== DESKTOP (min-width: 769px) ========== */
@media (min-width: 769px) {
    .floating-settings-card {
        width: 340px !important;
        max-height: calc(100vh - 100px);
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        border-radius: 1rem;
        border: 1px solid hsl(var(--border) / 0.5);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    
    /* Hide mobile levels on desktop */
    .settings-level-0,
    .settings-level-1 {
        display: none !important;
    }
    
    /* Show desktop panel */
    .settings-desktop-panel {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 140px);
        overflow: hidden;
    }
    
    #settings-card-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #settings-action-buttons {
        flex-shrink: 0;
    }
    
    /* Header border-radius - expanded state (top corners only) */
    .settings-card-header {
        border-radius: 1rem 1rem 0 0;
    }
    
    /* Desktop collapse state */
    .floating-settings-card.collapsed #settings-card-body,
    .floating-settings-card.collapsed #settings-action-buttons {
        display: none;
    }
    
    /* When collapsed, header should have all corners rounded */
    .floating-settings-card.collapsed .settings-card-header {
        border-radius: 1rem !important;
    }
    
    /* Desktop slider styling */
    #floating-quality-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: hsl(var(--primary));
        border: 3px solid white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }
    
    #floating-quality-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: hsl(var(--primary));
        border: 3px solid white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }
}

/* ========== COMMON: Advanced chevron rotation ========== */
#advanced-chevron.rotate-90 {
    transform: rotate(90deg);
}

/* ========== COMMON: Touch-friendly ========== */
button {
    min-height: 44px;
    touch-action: manipulation;
}

/* Safe area insets */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .level1-actions {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
}

/* ========== preview_modal ========== */
/* Modal z-index - must be above navbar (100) and mobile elements (9998-9999) */
#preview-modal {
    z-index: 10001 !important;
}

/* Modal animations */
#preview-modal.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Theme-aware checkerboard background */
.canvas-checkerboard {
    background-color: hsl(var(--muted));
    background-image: 
        linear-gradient(45deg, hsl(var(--border)) 25%, transparent 25%),
        linear-gradient(-45deg, hsl(var(--border)) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, hsl(var(--border)) 75%),
        linear-gradient(-45deg, transparent 75%, hsl(var(--border)) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* ========== Unified Top Toolbar ========== */
.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    /* Mobile default positioning */
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 10000; /* Above settings card on all screen sizes */
}

/* Left section - Original label */
.toolbar-left {
    flex-shrink: 0;
}

/* Center section - Zoom controls */
.toolbar-center {
    flex-shrink: 0;
}

/* Right section */
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* Note: .toolbar-compressed-desktop hide rule is after .toolbar-item for specificity */

/* Badge styling for reduction percentage */
.toolbar-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: hsl(142 76% 36% / 0.15);
    color: hsl(142 76% 36%);
}

/* Common toolbar item styling - Mobile first (smaller) */
.toolbar-item {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
    background: hsl(var(--card) / 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
}

/* Hide compressed label in toolbar on mobile (must be after .toolbar-item) */
.toolbar-item.toolbar-compressed-desktop {
    display: none !important;
}

/* Original Label - Mobile first */
.toolbar-label {
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.toolbar-label-text {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: hsl(var(--foreground));
}

.toolbar-label-size {
    font-size: 0.625rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

/* Zoom Controls - Mobile first */
.toolbar-zoom {
    padding: 0.0625rem;
    gap: 0;
}

.zoom-control-btn {
    width: 28px;
    height: 28px;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: hsl(var(--foreground));
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.zoom-control-btn:hover {
    background: hsl(var(--muted));
}

.zoom-control-btn:active {
    transform: scale(0.95);
}

.zoom-icon {
    width: 12px;
    height: 12px;
}

.zoom-level-display {
    min-width: 2rem;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    padding: 0 0.0625rem;
}

/* Close Button - Mobile first */
.toolbar-close {
    width: 32px;
    height: 32px !important;
    min-height: 32px;
    max-height: 32px;
    justify-content: center;
    cursor: pointer;
    color: hsl(var(--foreground));
    transition: all 0.15s ease;
    padding: 0;
}

.toolbar-close:hover {
    background: hsl(var(--destructive) / 0.15);
    color: hsl(var(--destructive));
    border-color: hsl(var(--destructive) / 0.3);
    border-color: hsl(var(--destructive) / 0.3);
}

/* ========== Comparison Slider Bar ========== */
.comparison-slider-bar {
    background: hsl(var(--foreground) / 0.6);
    box-shadow: 0 0 15px hsl(var(--foreground) / 0.3);
    pointer-events: all;
}

.comparison-slider-bar:hover {
    background: hsl(var(--primary) / 0.9);
}

/* Slider drag button - Theme-aware, touch-friendly */
.slider-drag-btn {
    width: 48px;
    height: 48px;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border: 2px solid hsl(var(--border));
}

.slider-drag-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    border-color: hsl(var(--primary));
}

.slider-drag-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
    cursor: grabbing !important;
}

/* ========== Labels - Theme-aware ========== */
.preview-label {
    background: hsl(var(--card) / 0.9);
    color: hsl(var(--foreground));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid hsl(var(--border));
    pointer-events: none;
    transition: all 0.15s ease-out;
}

/* Label size and badge styling */
.label-size {
    font-weight: 400;
    opacity: 0.9;
    margin-left: 0.25rem;
}

.label-badge {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    background: hsl(var(--success));
    color: white;
}

.label-badge.warning {
    background: hsl(var(--warning));
}

/* Pulsating animation for compressed label during compression */
@keyframes label-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(0.98);
    }
}

.preview-label-mobile.compressing {
    animation: label-pulse 1.2s ease-in-out infinite;
}

.preview-label-mobile.compressing .label-size {
    background: hsl(var(--primary) / 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    animation: label-pulse 1.2s ease-in-out infinite;
}

/* ========== MOBILE (default - horizontal slider, top/bottom split) ========== */
/* Mobile compressed label - bottom left (above settings card) */
.preview-label-mobile {
    display: flex; /* Show on mobile */
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.5rem;
    height: 32px;
    border-radius: 0.375rem;
    bottom: 9.5rem; /* Above settings card */
    left: 1rem;
    top: auto;
    right: auto;
    background: hsl(var(--card) / 0.9);
    color: hsl(var(--foreground));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.5);
}

/* Rotate arrow icon for vertical drag on mobile */
.slider-arrows-icon {
    transform: rotate(90deg);
}

/* ========== DESKTOP (min-width: 769px) - vertical slider, left/right split ========== */
@media (min-width: 769px) {
    /* Toolbar spans full width, close button at far right corner */
    .preview-toolbar {
        left: 1rem;
        right: 1rem; /* Full width - same as left margin */
        top: 1rem;
        gap: 0.5rem;
    }
    
    /* Larger toolbar items on desktop */
    .toolbar-item {
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        border-radius: 0.5rem;
    }
    
    .toolbar-label {
        padding: 0 0.75rem;
        gap: 0.375rem;
    }
    
    .toolbar-label-text {
        font-size: 0.6875rem;
    }
    
    .toolbar-label-size {
        font-size: 0.6875rem;
    }
    
    .toolbar-zoom {
        padding: 0.125rem;
    }
    
    .zoom-control-btn {
        width: 32px;
        height: 32px;
        border-radius: 0.375rem;
    }
    
    .zoom-level-display {
        min-width: 2.5rem;
        font-size: 0.6875rem;
    }
    
    .zoom-icon {
        width: 14px;
        height: 14px;
    }
    
    .toolbar-close {
        width: 36px;
        height: 36px !important;
        min-height: 36px;
        max-height: 36px;
    }
    
    /* Show desktop compressed label in toolbar */
    .toolbar-item.toolbar-compressed-desktop {
        display: flex !important;
    }
    
    /* Hide mobile compressed label on desktop */
    .preview-label-mobile {
        display: none !important;
    }
    
    /* Arrow icon horizontal for left/right drag */
    .slider-arrows-icon {
        transform: rotate(0deg);
    }
}

.slider-drag-btn > div:active {
    cursor: grabbing !important;
}

/* Canvas cursor states */
#canvas-container {
    cursor: default;
    touch-action: none;
}

#canvas-container.draggable {
    cursor: grab;
}

#canvas-container.dragging {
    cursor: grabbing !important;
}

#canvas-container.dragging * {
    cursor: grabbing !important;
}

/* Canvas smooth transitions */
#original-canvas,
#compressed-canvas {
    transition: transform 0.3s ease, clip-path 0.1s linear;
}

/* Floating zoom controls styling (future) */
.zoom-control-btn {
    position: relative;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
}

.zoom-control-btn:hover {
    background: hsl(var(--primary) / 0.2) !important;
    transform: scale(1.1);
}

.zoom-control-btn:active {
    transform: scale(0.95);
}

/* Zoom level display */
.zoom-level-display {
    user-select: none;
    font-variant-numeric: tabular-nums;
}

/* ========== download_section_fullscreen ========== */
/* ========== Download Section Container ========== */
.download-section {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .download-section {
        padding: 3rem 2rem;
    }
}

/* ========== Success Icon (Theme-aware) ========== */
.success-icon-wrapper {
    width: 80px;
    height: 80px;
    position: relative;
}

@media (min-width: 768px) {
    .success-icon-wrapper {
        width: 100px;
        height: 100px;
    }
}

.success-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.7) 100%);
    border-radius: 24px;
    box-shadow: 
        0 10px 40px hsl(var(--primary) / 0.3),
        0 0 0 1px hsl(var(--primary) / 0.1);
    animation: success-pulse 2s ease-in-out infinite;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@media (min-width: 768px) {
    .success-icon svg {
        width: 50px;
        height: 50px;
    }
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 10px 40px hsl(var(--primary) / 0.3),
            0 0 0 1px hsl(var(--primary) / 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 15px 50px hsl(var(--primary) / 0.4),
            0 0 0 1px hsl(var(--primary) / 0.2);
    }
}

/* ========== Title (Theme-aware) ========== */
.download-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .download-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

.download-title-highlight {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Stats Badges (Theme-aware) ========== */
.stats-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .stats-badges {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: hsl(var(--card) / 0.8);
    border: 1px solid hsl(var(--border));
    border-radius: 100px;
    backdrop-filter: blur(8px);
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s ease;
}

.stats-badge:hover {
    background: hsl(var(--card));
    border-color: hsl(var(--primary) / 0.3);
}

.stats-badge svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Highlighted badge (theme-aware) */
.stats-badge-highlight {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.stats-badge-highlight svg {
    opacity: 1;
    color: hsl(var(--primary));
}

/* Increase warning (file got bigger) */
.stats-badge-warning {
    background: hsl(38 92% 50% / 0.1);
    border-color: hsl(38 92% 50% / 0.2);
    color: hsl(38 92% 50%);
}

.stats-badge-warning svg {
    opacity: 1;
    color: hsl(38 92% 50%);
}

/* ========== Download Actions (Theme-aware) ========== */
.download-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .download-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.download-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 20px hsl(var(--primary) / 0.3),
        0 0 0 1px hsl(var(--primary) / 0.1);
}

.download-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px hsl(var(--primary) / 0.4),
        0 0 0 1px hsl(var(--primary) / 0.2);
}

.download-btn-primary:active {
    transform: translateY(0);
}

.download-btn-primary svg {
    width: 22px;
    height: 22px;
}

.download-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    background: hsl(var(--card) / 0.8);
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.download-btn-secondary:hover {
    background: hsl(var(--card));
    border-color: hsl(var(--primary) / 0.3);
    transform: translateY(-1px);
}

.download-btn-secondary svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* ========== Individual File Cards with Thumbnails ========== */
.file-cards-grid {
    display: grid;
    /* Use auto-fit with min/max to enable centering when items don't fill row */
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .file-cards-grid {
        gap: 1rem;
    }
}

/* For single item, ensure it doesn't stretch too wide */
.file-cards-grid:has(.file-card:only-child) {
    grid-template-columns: minmax(280px, 400px);
}

.file-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: hsl(var(--card) / 0.8);
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.file-card:hover {
    background: hsl(var(--card));
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 4px 20px hsl(var(--foreground) / 0.05);
}

/* Image Thumbnail */
.file-card-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: hsl(var(--muted));
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.file-card-thumb:hover {
    transform: scale(1.05);
}

.file-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zoom icon overlay on hover */
.file-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: hsl(var(--foreground) / 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    border-radius: 8px;
}

.file-card-thumb:hover::after {
    background: hsl(var(--foreground) / 0.3);
}

/* Fallback icon when no thumbnail */
.file-card-thumb-fallback {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.file-card-thumb-fallback svg {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

.file-card-details {
    flex: 1;
    min-width: 0;
}

.file-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.file-card-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Reduction badge (file got smaller - good) */
.file-card-reduction {
    color: hsl(142 76% 36%);
    font-weight: 600;
}

/* Increase badge (file got bigger - warning) */
.file-card-increase {
    color: hsl(38 92% 50%);
    font-weight: 600;
}

.file-card-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--primary) / 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-card-btn:hover {
    background: hsl(var(--primary));
}

.file-card-btn svg {
    width: 18px;
    height: 18px;
    color: hsl(var(--primary));
    transition: color 0.2s ease;
}

.file-card-btn:hover svg {
    color: white;
}


/* ========== Image Preview Modal ========== */
.preview-overlay {
    position: fixed;
    inset: 0;
    background: hsl(var(--background) / 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.preview-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px hsl(var(--foreground) / 0.2);
}


/* ========== Gallery Preview (Video + Image) ========== */
/* Created: 2026-01-08 - Enhanced preview with navigation */

.gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

/* Header with close button and counter */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

.gallery-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.gallery-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Main content area */
.gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    min-height: 0;
    position: relative;
}

/* Navigation buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Media container */
.gallery-media-container {
    max-width: calc(100% - 120px);
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.gallery-video {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    background: #000;
}

/* Footer with file info and download */
.gallery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    gap: 1rem;
}

.gallery-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gallery-filename {
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

.gallery-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-download:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.gallery-download svg {
    width: 18px;
    height: 18px;
}

/* Video thumbnail play icon overlay */
.file-card-thumb-video {
    position: relative;
}

.file-card-thumb-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.file-card-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.file-card-thumb-video:hover .file-card-play-icon {
    background: rgba(0, 0, 0, 0.5);
}

.file-card-play-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.file-card-thumb-video:hover .file-card-play-icon svg {
    transform: scale(1.15);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .gallery-header {
        padding: 0.75rem 1rem;
    }
    
    .gallery-close {
        width: 40px;
        height: 40px;
    }
    
    .gallery-close svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev {
        left: 0.5rem;
    }
    
    .gallery-next {
        right: 0.5rem;
    }
    
    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-media-container {
        max-width: calc(100% - 100px);
    }
    
    .gallery-image,
    .gallery-video {
        max-height: calc(100vh - 180px);
    }
    
    .gallery-footer {
        flex-direction: column;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .gallery-info {
        align-items: center;
    }
    
    .gallery-download {
        width: 100%;
        justify-content: center;
    }
}
