@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   File Converter - Tool Styles
   ============================================ */

/* CSS Variables */
:root {
    --sidebar-width: 300px;
    --primary-color: #2DD4BF;
    --primary-hover: #14B8A6;
    --bg-dark: #0A0A0A;
    --bg-sidebar: #161616;
    --bg-section: #111111;
    --bg-elevated: #1A1A1A;
    --text-primary: #EDEDED;
    --text-secondary: #888888;
    --text-muted: #555555;
    --border-color: #1F1F1F;
    --border-light: #333333;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #FBBF24;
    --action-bar-height: 64px;
}

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

html, body {
    height: 100%;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* App Container */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

/* Home Button */
.home-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.home-button:hover {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(-2px);
}

.home-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-sidebar);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.sidebar-header .subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section h2 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* User Account */
.user-account {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.auth-view.hidden { display: none; }

.btn-login {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #0A0A0A;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-login:hover { background: var(--primary-hover); }

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.user-email {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credit-balance {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(45, 212, 191, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.btn-buy-credits {
    flex: 1;
    padding: 8px 12px;
    background: rgba(72, 187, 120, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-buy-credits:hover { background: rgba(72, 187, 120, 1); }

.btn-logout {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-logout:hover { background: rgba(255, 255, 255, 0.1); }

/* Subscription Banner */
.subscription-banner {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.pro-icon {
    color: #ffd700;
}

.pro-badge-inline {
    display: inline-block;
    padding: 1px 6px;
    background: var(--primary-color);
    color: white;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.subscription-credit-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    margin-top: 4px;
}

.sub-separator {
    opacity: 0.4;
}

/* Credit Cost Info */
.credit-cost-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 10px 12px;
    background: rgba(72, 187, 120, 0.08);
    border: 1px solid rgba(72, 187, 120, 0.15);
    border-radius: 6px;
}

.pricing-headline {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-scale {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
}

.scale-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 2px 4px;
    border-radius: 3px;
}

.scale-row.highlight {
    color: var(--success-color);
    background: rgba(72, 187, 120, 0.06);
}

.pricing-note {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
}

/* How It Works */
.how-it-works {
    list-style: none;
    padding: 0;
}

.how-it-works li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.how-it-works li:last-child { margin-bottom: 0; }

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Format Categories */
.format-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.format-cat {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.format-cat strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ============================================
   Dropzone
   ============================================ */

.dropzone {
    margin: 24px 32px;
    padding: 48px 32px;
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(252, 76, 2, 0.04);
    box-shadow: 0 0 24px rgba(252, 76, 2, 0.08);
}

.dropzone:hover::before {
    background: var(--primary-color);
    opacity: 0.4;
}

.dropzone.dragging {
    border-color: var(--primary-color);
    background: rgba(252, 76, 2, 0.08);
    box-shadow: 0 0 32px rgba(252, 76, 2, 0.15);
    transform: scale(1.01);
}

.dropzone.dragging::before {
    background: var(--primary-color);
    opacity: 0.6;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dropzone-icon {
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.3s, transform 0.3s;
}

.dropzone:hover .dropzone-icon {
    color: var(--primary-color);
    transform: translateY(-4px);
}

.dropzone.dragging .dropzone-icon {
    color: var(--primary-color);
    transform: translateY(-6px) scale(1.1);
}

.dropzone-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropzone-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-browse {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

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

.dropzone-hint {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px;
}

/* ============================================
   File Queue
   ============================================ */

.file-queue {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-queue::-webkit-scrollbar {
    width: 6px;
}

.file-queue::-webkit-scrollbar-track {
    background: transparent;
}

.file-queue::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
}

.file-queue::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* File Row */
.file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.file-row:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.file-row.done {
    border-color: rgba(72, 187, 120, 0.3);
}

.file-row.error {
    border-color: rgba(252, 129, 129, 0.3);
}

/* File Icon */
.file-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.file-row.done .file-icon {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.file-row.error .file-icon {
    background: rgba(252, 129, 129, 0.1);
    color: var(--error-color);
}

/* File Info */
.file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.file-error {
    font-size: 0.65rem;
    color: var(--error-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Format Select Wrapper */
.format-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Conversion Label (shown during/after conversion) */
.conversion-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* File Controls */
.file-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* File Actions */
.file-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-client {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-color);
}

.badge-server {
    background: rgba(246, 173, 85, 0.15);
    color: var(--warning-color);
}

/* Format Dropdown */
.format-select {
    padding: 6px 28px 6px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.2s;
    min-width: 90px;
}

.format-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(252, 76, 2, 0.15);
}

.format-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* Arrow between formats */
.format-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Quality Slider */
.quality-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.quality-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.quality-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 3px;
    background: var(--bg-dark);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-section);
    transition: transform 0.15s;
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.quality-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-section);
}

.quality-value {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    min-width: 28px;
    text-align: right;
}

/* Status Icon */
.file-status {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.file-status.pending {
    color: var(--text-muted);
}

.file-status.converting {
    color: var(--warning-color);
    animation: spin 1s linear infinite;
}

.file-status.done {
    color: var(--success-color);
}

.file-status.error {
    color: var(--error-color);
}

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

/* Download Button */
.btn-download {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.2);
    border-radius: 6px;
    color: var(--success-color);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-download:hover {
    background: rgba(72, 187, 120, 0.2);
    border-color: var(--success-color);
    transform: translateY(-1px);
}

.btn-download.hidden {
    display: none;
}

/* Remove Button */
.btn-remove {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: rgba(252, 129, 129, 0.1);
    border-color: rgba(252, 129, 129, 0.3);
    color: var(--error-color);
}

/* ============================================
   Progress Bar (per file row)
   ============================================ */

.file-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

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

.file-row.done .file-progress-fill {
    background: var(--success-color);
    width: 100%;
}

.file-row.error .file-progress-fill {
    background: var(--error-color);
    width: 100%;
}

/* Indeterminate progress animation */
.file-progress-fill.indeterminate {
    width: 30%;
    animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   Action Bar
   ============================================ */

.action-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    height: var(--action-bar-height);
}

.action-bar.hidden {
    display: none;
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.total-cost {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* Pricing Breakdown */
.cost-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cost-discounted {
    color: var(--success-color);
    font-weight: 700;
}

.cost-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
}

.cost-savings {
    color: var(--success-color);
    font-size: 0.65rem;
    font-weight: 500;
}

.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.pricing-breakdown.hidden {
    display: none;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.breakdown-saving {
    color: var(--success-color);
    font-size: 0.6rem;
}

.btn-clear-all {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-clear-all:hover {
    background: rgba(252, 129, 129, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.action-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-download-zip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(72, 187, 120, 0.12);
    border: 1px solid rgba(72, 187, 120, 0.25);
    border-radius: 6px;
    color: var(--success-color);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download-zip:hover {
    background: rgba(72, 187, 120, 0.2);
    border-color: var(--success-color);
}

.btn-download-zip.hidden {
    display: none;
}

.btn-convert {
    padding: 10px 24px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-convert:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 16px rgba(252, 76, 2, 0.3);
    transform: translateY(-1px);
}

.btn-convert:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(252, 76, 2, 0.2);
}

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

/* ============================================
   Status Message
   ============================================ */

.status-message {
    padding: 12px 20px;
    font-size: 0.8rem;
    text-align: center;
}

.status-message.hidden { display: none; }

.status-message.success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.status-message.error {
    background-color: rgba(252, 129, 129, 0.1);
    color: var(--error-color);
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
        min-width: 280px;
    }

    .dropzone {
        margin: 20px 24px;
        padding: 36px 24px;
    }

    .file-queue {
        padding: 0 24px;
    }

    .action-bar {
        padding: 14px 24px;
    }

    .quality-control {
        min-width: 80px;
    }

    .quality-slider {
        width: 48px;
    }
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        max-height: none;
        height: auto;
        border-right: none;
        overflow-y: visible;
        flex-shrink: 0;
    }

    .sidebar-header {
        padding: 16px;
        position: relative;
    }

    .sidebar-header h1 {
        font-size: 1.1rem;
    }

    .sidebar-section {
        padding: 12px 16px;
    }

    .main-content {
        min-height: 70vh;
        overflow-y: visible;
    }

    .dropzone {
        margin: 16px;
        padding: 32px 16px;
    }

    .file-queue {
        padding: 0 16px;
    }

    /* File rows stack vertically */
    .file-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .file-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .file-info {
        flex: 1;
        min-width: calc(100% - 80px);
    }

    .format-select {
        flex: 1;
        min-width: 0;
        order: 5;
    }

    .format-arrow {
        order: 4;
    }

    .quality-control {
        order: 6;
        width: 100%;
    }

    .quality-slider {
        flex: 1;
        width: auto;
    }

    .file-status {
        order: 1;
    }

    .btn-download {
        order: 2;
    }

    .btn-remove {
        order: 3;
    }

    .action-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
        height: auto;
    }

    .action-bar-left,
    .action-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .btn-convert {
        flex: 1;
    }

    .user-info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .user-email {
        max-width: 120px;
    }
}

/* ============================================
   Responsive Design - Small Phone
   ============================================ */

@media (max-width: 480px) {
    .sidebar-header h1 {
        font-size: 1rem;
    }

    .sidebar-header .subtitle {
        font-size: 0.7rem;
    }

    .user-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-buy-credits,
    .btn-logout {
        width: 100%;
    }

    .dropzone {
        padding: 24px 12px;
    }

    .dropzone-icon {
        width: 36px;
        height: 36px;
    }

    .dropzone-content h3 {
        font-size: 1rem;
    }

    .file-row {
        padding: 10px;
    }

    .file-name {
        font-size: 0.75rem;
    }

    .action-bar-right {
        flex-direction: column;
    }

    .btn-download-zip,
    .btn-convert {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ============================================
   SEO Content Section (conversion landing pages)
   ============================================ */

.seo-content {
    grid-column: 1 / -1;
    padding: 48px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.seo-content-inner {
    max-width: 720px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.seo-content > .seo-content-inner > p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* FAQ Section */
.seo-faq {
    margin-bottom: 32px;
}

.seo-faq h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.faq-item h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.faq-item p {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Related Conversions */
.related-conversions h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-grid a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.related-grid a:hover {
    background: var(--bg-section);
    border-color: var(--primary-color);
}

/* Light theme overrides — BrandKit v2.1 */
[data-theme="light"] .seo-content {
    background: #F3F3EF;
}

[data-theme="light"] .faq-item {
    border-color: #E0E0DB;
}

[data-theme="light"] .related-grid a {
    background: #FFFFFF;
    border-color: #E0E0DB;
}

[data-theme="light"] .related-grid a:hover {
    background: #F3F3EF;
}

@media (max-width: 768px) {
    .seo-content {
        padding: 32px 20px;
    }
}
