/* ==========================================================================
   PingForge Image Suite — Dark Slate & Titanium Edition
   Modern, monochrome, glassmorphic UI (Vercel / Apple Pro Aesthetic)
   ========================================================================== */

:root {
    /* Color Palette — Deep Slate & Monochrome Dark Theme */
    --bg-main: #09090b;
    --bg-card: rgba(24, 24, 27, 0.65);
    --bg-card-hover: rgba(39, 39, 42, 0.75);
    --bg-panel: rgba(18, 18, 20, 0.75);
    
    --border-color: rgba(255, 255, 255, 0.12);
    --border-highlight: rgba(255, 255, 255, 0.35);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #e4e4e7; /* Platinum Silver */
    --accent-primary-hover: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.18);
    
    --accent-secondary: #a1a1aa;
    --accent-success: #22c55e;  /* Soft Emerald */
    --accent-warning: #eab308;  /* Amber */
    --accent-danger: #ef4444;   /* Red */
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.08);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-main: #fafafa;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-panel: rgba(244, 244, 245, 0.8);
    --border-color: rgba(0, 0, 0, 0.12);
    --border-highlight: rgba(0, 0, 0, 0.4);
    
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    
    --accent-primary: #18181b;
    --accent-primary-hover: #000000;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 0, 0, 0.06);
}

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

html, body {
    height: 100%;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Ambient Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    animation: floatOrb 14s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.orb-1 {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ffffff 0%, #a1a1aa 50%, transparent 70%);
}

.orb-2 {
    bottom: -150px;
    right: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, #71717a 0%, #27272a 50%, transparent 70%);
    animation-delay: -7s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.08); }
}

kbd {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    color: var(--text-primary);
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
}

/* App Wrapper */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Main Header */
.main-header {
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.82);
}

[data-theme="light"] .main-header {
    background: rgba(250, 250, 250, 0.85);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
    outline: none;
}

.brand *, .brand h1, .brand h2, .brand span {
    text-decoration: none !important;
}

.brand:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.brand-logo-img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.brand-text h1, .brand-text h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary) !important;
    margin: 0;
    padding: 0;
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-badge-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.stat-badge strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.online-badge i {
    color: #10b981;
    font-size: 0.85rem;
}

.month-badge i {
    color: #818cf8;
    font-size: 0.85rem;
}

.total-badge i {
    color: #38bdf8;
    font-size: 0.85rem;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Mini Admin Panel Modal Styles */
.admin-modal-card {
    max-width: 720px !important;
}

.admin-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    width: 100%;
}

.admin-stat-card {
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.admin-stat-info {
    display: flex;
    flex-direction: column;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-stat-value {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.text-success {
    color: var(--accent-success) !important;
    font-size: 0.95rem !important;
}

.admin-controls-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.admin-controls-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-counter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Icon Buttons */
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    color: #ffffff;
}

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

/* Main Container */
.main-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Dropzone Section */
.dropzone-section {
    width: 100%;
}

.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover) !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    pointer-events: none;
}

.dropzone-buttons {
    pointer-events: auto;
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.upload-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.upload-icon {
    font-size: 2.2rem;
    color: var(--text-primary);
}

.dropzone-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.dropzone-hint {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.supported-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.fmt-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.fmt-tag.doc-tag {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.fmt-tag.xls-tag {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.fmt-tag.heic-tag {
    background: rgba(236, 72, 153, 0.12);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.3);
}

/* Smart Presets Bar */
.presets-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.presets-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.presets-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.preset-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.preset-chip:hover, .preset-chip.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.text-accent {
    color: #f59e0b;
}

.btn-sm.pwa-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}

.btn-sm.pwa-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.35));
    color: #ffffff;
}

/* Button System */
.btn {
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: #f4f4f5;
    color: #09090b;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
}

.btn-success {
    background: #22c55e;
    color: #ffffff;
    font-weight: 700;
}

.btn-success:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--accent-danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-xs:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

.btn-xs.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-highlight);
    color: #ffffff;
    font-weight: 700;
}

.btn-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Tab Navigation System */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
    color: #ffffff;
}

.tab-content {
    display: none;
    padding-top: 1rem;
}

.tab-content.active {
    display: block;
}

/* Panels */
.panel {
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.counter-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.val-display {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Custom Select, Range, Inputs */
.custom-select, .custom-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(9, 9, 11, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}

.custom-select:focus, .custom-input:focus {
    border-color: var(--border-highlight);
    box-shadow: 0 0 12px var(--shadow-glow);
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-top: 0.4rem;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Custom Dimensions */
.custom-dimensions {
    grid-column: span 1;
}

.dim-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(9, 9, 11, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 0.5rem;
}

.input-with-label span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-with-label .custom-input {
    border: none;
    padding: 0.6rem 0.2rem;
    width: 70px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-color-input {
    -webkit-appearance: none;
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.custom-color-input::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.action-spacer {
    flex: 1;
}

/* Stats Summary Bar */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: var(--radius-md);
    padding: 1.1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item.highlight .stat-val {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Queue Item List */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.queue-item {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.4rem;
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    transition: var(--transition-normal);
}

.queue-item:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.item-thumb-wrapper {
    width: 74px;
    height: 74px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.item-filename {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.item-detail-tag {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Item Controls & Status */
.item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-badge.ready {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.status-badge.converting {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.status-badge.done {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.saving-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.saving-badge.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-success);
}

.saving-badge.negative {
    background: rgba(234, 179, 8, 0.15);
    color: var(--accent-warning);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-card {
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.comp-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: rgba(9, 9, 11, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.pane-badge {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.comp-pane img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comp-stats-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Commercial SaaS Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    padding: 3.5rem 2rem 2rem 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

/* Spinners */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .queue-item {
        grid-template-columns: 60px 1fr;
    }
    
    .item-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .security-badge {
        display: none;
    }
}
