@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.btn-format {
    background: #111827;
    border: 1px solid #374151;
    color: #f3f4f6;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-weight: 500;
}

.btn-format:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    border-color: #60a5fa;
}

.premium-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.quality-toggle {
    margin-bottom: 25px;
    background: #1f2937;
    padding: 5px;
    border-radius: 12px;
    display: inline-flex;
}

.q-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #9ca3af;
    transition: 0.3s;
}

.q-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.st-bg-10b981-imp {
    background: #10b981 !important;
}

.st-fs-60px-c-10b981-mb-20px {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.st-hidden {
    display: none;
}

.st-bg-3b82f6-w-0pct-h-100pct-tr-width-0-3s {
    background: #3b82f6;
    width: 0%;
    height: 100%;
    transition: width 0.3s;
}

.st-bg-374151-h-8px-br-4px-ov-hidden-mt-15px {
    background: #374151;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.st-c-60a5fa-mb-15px {
    color: #60a5fa;
    margin-bottom: 15px;
}

.st-fs-60px-c-3b82f6-mb-20px {
    font-size: 60px;
    color: #3b82f6;
    margin-bottom: 20px;
}

.st-c-94a3b8-mb-30px {
    color: #94a3b8;
    margin-bottom: 30px;
}

:root {
    --st-bg: #0a0e17;
    --st-surface: #111827;
    --st-surface-2: #1a2236;
    --st-border: #2a3550;
    --st-border-strong: #475569;
    --st-text: #f1f5f9;
    --st-muted: #a3b1c6;
    --st-primary: #3b82f6;
    --st-primary-hover: #2563eb;
    --st-success: #10b981;
    --st-success-hover: #059669;
    --st-danger: #f87171;
    --st-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--st-bg);
    color: var(--st-text);
    line-height: 1.6;
}

i.fas {
    font-family: "Font Awesome 6 Free";
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px;
    text-align: center;
}

.breadcrumb {
    font-size: 14px;
    color: var(--st-muted);
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--st-text);
}

.drop-zone {
    background: var(--st-surface);
    border: 2px dashed var(--st-border);
    border-radius: var(--st-radius);
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
    transition: border-color .2s, background .2s;
}

.drop-zone:hover {
    border-color: var(--st-primary);
    background: var(--st-surface-2);
}

.button-group {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--st-primary);
    color: #fff;
    border: 1px solid var(--st-primary);
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}

.btn-main:hover {
    background: var(--st-primary-hover);
    border-color: var(--st-primary-hover);
    transform: translateY(-1px);
}

.btn-main:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn-main:focus-visible, .btn-outline:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 10px;
    background: var(--st-bg);
    border: 1px solid var(--st-border-strong);
    border-radius: 20px;
    margin: 20px auto;
    overflow: hidden;
}

.loader {
    border: 4px solid var(--st-border);
    border-top: 4px solid var(--st-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#processingUI p {
    color: var(--st-muted);
}

.seo-content {
    max-width: 680px;
    margin: 40px auto 10px;
    text-align: left;
    line-height: 1.7;
}

.seo-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 32px 0 12px;
}

.seo-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 20px 0 6px;
}

.seo-content p, .seo-content li {
    color: var(--st-muted);
    font-size: .95rem;
}

.seo-content p {
    margin: 0 0 10px;
}

.seo-content ol, .seo-content ul {
    padding-left: 22px;
    margin: 0 0 8px;
}

.seo-content li {
    margin-bottom: 6px;
}

.seo-content strong {
    color: #e2e8f0;
    font-weight: 600;
}

@media (max-width: 480px) {
    .drop-zone {
        padding: 28px 14px;
    }

    .btn-main {
        padding: 13px 18px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loader {
        animation-duration: 3s;
    }

    .btn-main, .btn-outline, .drop-zone {
        transition: none;
    }
}

.btn-format, .q-btn {
    background: var(--st-surface-2);
    color: var(--st-text);
    border: 1px solid var(--st-border-strong);
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.btn-format:hover:not(:disabled), .q-btn:hover {
    background: var(--st-primary);
    border-color: var(--st-primary);
    color: #fff;
}

.btn-format small {
    color: inherit;
    opacity: .8;
}

.q-btn.active, .btn-format.active {
    background: var(--st-primary);
    border-color: var(--st-primary);
    color: #fff;
}

.btn-format:disabled {
    border-color: #991b1b;
    color: #9ca3af;
    opacity: .5;
    cursor: not-allowed;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--st-surface-2);
    color: #e2e8f0;
    border: 1px solid var(--st-border-strong);
    border-radius: 8px;
    padding: 10px 22px;
    margin-top: 18px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.btn-outline:hover {
    background: #223049;
    border-color: #60a5fa;
    color: #fff;
}

.btn-outline:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

/* outline buttons: same light blue tint as option cards */
button.btn-outline:not(:hover) {
    background: rgba(59, 130, 246, .12);
    border-color: rgba(59, 130, 246, .45);
    color: #e2e8f0;
}
button.btn-outline:hover:not(:disabled) {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

/* ST-TEXT-RESPONSIVE */
.description,
.seo-content {
    box-sizing: border-box;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1100px;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
.seo-content { margin-top: 40px; margin-bottom: 10px; }
.description { margin-top: 0; margin-bottom: 25px; }
.seo-content h2 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.seo-content p, .seo-content li { font-size: clamp(.9rem, 1.4vw, 1rem); }
@media (min-width: 900px) {
    .seo-content ol, .seo-content ul { padding-left: 28px; }
}
