/* ==========================================================================
   CompressX — Ultra-Modern SaaS Design System (2026 Edition)
   ========================================================================== */

:root {
    /* Color Palette - Light Mode Default */
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-glow: rgba(20, 184, 166, 0.25);

    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #06b6d4 50%, #3b82f6 100%);
    --accent-gradient-glow: linear-gradient(135deg, rgba(20, 184, 166, 0.3) 0%, rgba(6, 182, 212, 0.3) 50%, rgba(59, 130, 246, 0.3) 100%);

    --bg-page: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-subtle: #f1f5f9;
    --bg-inset: #e2e8f0;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --text-white: #ffffff;

    --border: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(20, 184, 166, 0.4);
    --border-card: rgba(226, 232, 240, 0.6);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 25px rgba(20, 184, 166, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 72px;
}

[data-theme="dark"] {
    --primary: #14b8a6;
    --primary-light: #2dd4bf;
    --primary-dark: #0f766e;
    --primary-glow: rgba(45, 212, 191, 0.2);

    --bg-page: #090d16;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(24, 33, 53, 0.85);
    --bg-subtle: #111827;
    --bg-inset: #1f2937;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(45, 212, 191, 0.4);
    --border-card: rgba(255, 255, 255, 0.06);

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 35px rgba(20, 184, 166, 0.3);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image:
        radial-gradient(at 15% 10%, rgba(20, 184, 166, 0.08) 0px, transparent 50%),
        radial-gradient(at 85% 20%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(59, 130, 246, 0.05) 0px, transparent 60%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==========================================================================
   Typography & Accents
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   Site Header & Sticky Glass Navbar
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease;
}

.brand:hover .brand-logo-wrap {
    transform: scale(1.05) rotate(3deg);
}

.brand-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 2px);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

/* Navigation & Dropdowns */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-main);
    background: var(--bg-subtle);
}

.nav-link.active {
    color: #ffffff !important;
    background: var(--accent-gradient) !important;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
    font-weight: 700;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    font-family: inherit;
}

.dropdown-trigger.active {
    color: #ffffff !important;
    background: var(--accent-gradient) !important;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.4);
    font-weight: 700;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 12px;
    min-width: 380px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown.is-open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: var(--bg-subtle);
    border-color: var(--border);
}

.dropdown-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.dropdown-item.active h4 {
    color: var(--primary);
}

.dropdown-icon {
    font-size: 1.25rem;
}

.dropdown-text h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.dropdown-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status Indicator */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

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

/* Burger Button (Hidden on laptop/desktop, shown on mobile) */
.burger-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: none; /* Hidden on laptop/desktop */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.burger-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.burger-line {
    width: 18px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Off-Canvas Drawer Overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Off-Canvas Drawer Container */
.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
}

.drawer-menu.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.drawer-body {
    padding: 16px 14px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-section {
    display: flex;
    flex-direction: column;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 10px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
    background: var(--bg-subtle);
    transform: translateX(4px);
}

.drawer-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.drawer-nav-item:hover .drawer-item-icon {
    transform: scale(1.1);
}

.icon-bg-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.icon-bg-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.icon-bg-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.icon-bg-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.icon-bg-pink {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.icon-bg-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.icon-bg-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.icon-bg-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
}

.icon-bg-neutral {
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.drawer-item-text {
    display: flex;
    flex-direction: column;
}

.drawer-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.drawer-item-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.drawer-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.drawer-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.drawer-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}


/* ==========================================================================
   Hero Section & Category Tabs
   ========================================================================== */

.hero {
    padding: 48px 0 24px;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
}

/* Category Switcher Tabs */
.category-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    overflow-x: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
}

.category-tabs {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: var(--radius-full);
    gap: 4px;
    box-shadow: var(--shadow-md);
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cat-tab:hover {
    color: var(--text-main);
    background: var(--bg-subtle);
}

.cat-tab.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

/* ==========================================================================
   Compressor Workstation / Main Panel
   ========================================================================== */

.compressor-section {
    padding: 10px 0 60px;
}

.workbench-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.workbench-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.workbench-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    min-height: 520px;
}

.wb-panel {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.wb-panel-left {
    border-right: 1px solid var(--border);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title svg {
    color: var(--primary);
}

/* ==========================================================================
   Dropzone & Upload Area
   ========================================================================== */

.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.dz-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.dropzone:hover .dz-icon-wrap {
    transform: scale(1.1);
    color: var(--accent-cyan);
}

.dz-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.dz-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.format-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.format-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* File Uploaded Meta Bar */
.file-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 14px;
}

.file-meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.file-meta-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-neutral {
    background: var(--bg-inset);
    color: var(--text-muted);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Presets Toolbar & Settings Controls
   ========================================================================== */

.settings-box {
    margin-top: 24px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.settings-box-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.presets-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.preset-btn {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.preset-btn span {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.75;
}

.preset-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.preset-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

.preset-btn.active span {
    color: rgba(255, 255, 255, 0.9);
}

/* Form Controls & Range Slider */
.form-group {
    margin-bottom: 16px;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-chip {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-inset);
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease;
}

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

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-select,
.form-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition);
}

.form-select:focus,
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-ghost {
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border);
}

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

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Results Panel & Before / After Split Slider
   ========================================================================== */

.result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.result-placeholder svg {
    margin-bottom: 16px;
    color: var(--text-subtle);
}

.result-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* Interactive Before / After Split Slider */
.split-viewer-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-lg);
    user-select: none;
    -webkit-user-select: none;
}

.split-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090d16;
}

.split-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid #ffffff;
}

.split-before-wrap .split-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.split-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    cursor: ew-resize;
    pointer-events: none;
}

.split-badge {
    position: absolute;
    top: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    backdrop-filter: blur(8px);
    z-index: 5;
}

.split-badge-before {
    left: 12px;
}

.split-badge-after {
    right: 12px;
}

.savings-banner {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 5;
}

/* Comparison Metric Cards */
.metrics-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.metric-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
    min-width: 0;
}

.metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-val {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    word-break: break-word;
}

.metric-val-accent {
    color: #10b981;
}

.metrics-arrow {
    color: var(--text-subtle);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.result-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.result-actions-row #downloadSingleBtn {
    flex: 2;
    padding: 10px 18px;
    font-size: 0.90rem;
}

.result-actions-row #resetSingleBtn {
    flex: 1;
    padding: 10px 18px;
    font-size: 0.90rem;
}

/* ==========================================================================
   Multi-File Batch Queue List
   ========================================================================== */

.batch-queue {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.batch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.batch-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.batch-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-inset);
}

.batch-name {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.batch-sizes {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    align-items: center;
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bulk ZIP Banner */
.bulk-zip-card {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(20, 184, 166, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bulk-zip-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
}

.bulk-zip-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Category Tools Showcase Grid
   ========================================================================== */

.section-padding {
    padding: 80px 0;
}

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

.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 12px;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.tool-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1);
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================================================
   Live Stats Bar & Comparison Table
   ========================================================================== */

.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item summary {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-col-right {
    margin-left: auto;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .workbench-grid {
        grid-template-columns: 1fr;
    }

    .wb-panel-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 880px) {
    .main-nav {
        display: none !important;
    }

    .burger-btn {
        display: flex !important;
    }

    .presets-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .wb-panel {
        padding: 24px 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Dedicated Styles for Static Pages (About, Features, Connect, Privacy)
   ========================================================================== */

.page-hero {
    padding: 56px 0 36px;
    text-align: center;
    position: relative;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Generic Content Card */
.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

/* About Page Specific Styles */
.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 36px 0;
}

.about-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.tech-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Features Deep Dive & Matrix */
.feature-deep-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin: 40px 0;
}

.feature-deep-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.feature-deep-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-deep-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-deep-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-glow);
}

.feature-deep-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.feature-deep-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.feature-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.feature-points li svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Comparison Table */
.table-responsive {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-subtle);
    font-weight: 800;
    color: var(--text-main);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(20, 184, 166, 0.04);
}

.check-yes {
    color: #10b981;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.check-no {
    color: #ef4444;
    font-weight: 800;
    opacity: 0.6;
}

/* Connect / Contact Page */
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    margin: 32px 0 60px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.contact-method-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-method-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-method-text p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.contact-method-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

.contact-method-text a:hover {
    text-decoration: underline;
}

/* Google Play App Banner Card */
.play-store-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.play-store-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.play-store-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    white-space: nowrap;
}

.play-store-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Contact Form */
.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-xl);
}

.contact-form-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.contact-form-panel p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    resize: vertical;
    transition: var(--transition);
}

.contact-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-card);
}

/* Privacy Policy Layout */
.privacy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    margin: 32px 0 60px;
    align-items: start;
}

.privacy-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-sidebar h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 10px;
}

.privacy-nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.privacy-nav-link:hover {
    color: var(--text-main);
    background: var(--bg-subtle);
}

.privacy-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.legal-section {
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.legal-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.callout-box {
    background: var(--bg-subtle);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.92rem;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .about-grid-3 {
        grid-template-columns: 1fr;
    }

    .feature-deep-grid {
        grid-template-columns: 1fr;
    }

    .connect-grid {
        grid-template-columns: 1fr;
    }

    .privacy-layout {
        grid-template-columns: 1fr;
    }

    .privacy-sidebar {
        display: none;
    }

    .play-store-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Switch Toggle & Auth Modal Styles
   ========================================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background: #6366f1;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.modal-overlay {
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* Modal Core Components */
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header-tabs {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    position: relative;
}

.modal-tabs-track {
    display: flex;
    flex: 1;
    margin-right: 50px;
}

.auth-tab {
    flex: 1;
    padding: 16px 14px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.auth-tab:hover {
    color: var(--text-main);
}

.auth-tab.active {
    color: var(--text-main);
    border-bottom: 2px solid #6366f1;
    background: var(--bg-card);
}

.modal-close-icon-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-icon-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: var(--bg-subtle);
    transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   Mobile & Small Screen Optimizations
   ========================================================================== */

/* Tool Tabs Bar */
.tool-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tool-tabs-bar::-webkit-scrollbar {
    display: none;
}

.tool-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.tool-tab-btn.active {
    background: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        gap: 8px;
    }

    .brand-badge {
        display: none !important;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-logo-wrap {
        width: 32px;
        height: 32px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-auth-wrap #openLoginModalBtn {
        display: none !important;
    }

    .header-auth-wrap .upgrade-badge-btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }

    .theme-toggle,
    .burger-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .hero {
        padding: 32px 0 20px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-sub {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 14px;
        padding: 0 10px;
    }

    .hero-pill {
        font-size: 0.75rem;
        padding: 6px 12px;
        max-width: 95%;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #liveQuotaBanner {
        font-size: 0.78rem;
        padding: 6px 12px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        max-width: 95%;
        margin-top: 10px;
        line-height: 1.4;
    }

    .tool-tabs-bar {
        padding: 8px 12px;
        gap: 6px;
    }

    .tool-tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .workbench-card {
        border-radius: var(--radius-lg);
        margin: 0 -4px;
    }

    .wb-panel {
        padding: 16px 12px;
    }

    .dropzone {
        padding: 28px 14px;
    }

    .presets-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .preset-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .result-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ==========================================================================
   Pricing & Plans Page Styles (Light & Dark Mode Adaptive)
   ========================================================================== */

.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.25);
    margin-bottom: 16px;
}

.pricing-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 16px;
}

.pricing-hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Billing Toggle */
.pricing-toggle-wrap {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.pricing-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}

.pricing-toggle-btn:hover {
    color: var(--text-main);
}

.pricing-toggle-btn.active {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.pricing-save-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.toggle-text-short {
    display: none;
}

/* Pricing Grid & Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto 80px auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
}

.pricing-card-header {
    margin-bottom: 24px;
}

.pricing-plan-badge {
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.badge-basic {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-pro {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-enterprise {
    background: rgba(236, 72, 153, 0.12);
    color: #db2777;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.pricing-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 14px;
    margin-bottom: 6px;
}

.pricing-card-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.pricing-amount {
    margin-bottom: 24px;
}

.pricing-amount-row {
    display: flex;
    align-items: baseline;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.pricing-cycle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-left: 6px;
    font-weight: 600;
}

/* Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.88rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.pricing-features li.disabled {
    color: var(--text-subtle);
}

.pricing-features li.disabled span:last-child {
    text-decoration: line-through;
}

.pricing-features .icon-check {
    color: #10b981;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-features .icon-star {
    color: #6366f1;
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-features .icon-pink {
    color: #ec4899;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-features .icon-cross {
    color: var(--text-subtle);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Featured Card (Pro Creator) */
.pricing-card.featured {
    border: 2px solid #6366f1;
    box-shadow: 0 20px 40px -8px rgba(99, 102, 241, 0.2);
    position: relative;
    background: var(--bg-card);
}

[data-theme="dark"] .pricing-card.featured {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.pricing-card.featured .pricing-price {
    color: var(--text-main);
}

[data-theme="dark"] .pricing-card.featured .pricing-price {
    color: #ffffff;
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Action Buttons in Cards */
.pricing-card .plan-btn {
    width: 100%;
    border-radius: var(--radius-md);
    font-weight: 700;
    padding: 14px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
}

.pricing-card .btn-current {
    background: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.pricing-card .btn-current:hover {
    background: var(--bg-inset);
}

.pricing-card .btn-pro {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.pricing-card .btn-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.5);
}

.pricing-card .btn-enterprise {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1.5px solid var(--border);
}

.pricing-card .btn-enterprise:hover {
    border-color: #ec4899;
    color: #ec4899;
    background: rgba(236, 72, 153, 0.05);
}

/* Feature Comparison Table */
.comparison-section {
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.comparison-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 32px;
}

.comparison-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.comparison-table thead {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    padding: 16px 20px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.88rem;
}

.comparison-table td {
    padding: 14px 20px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-subtle);
}

.comparison-table .col-feature {
    font-weight: 600;
    color: var(--text-main);
}

.comparison-table .col-center {
    text-align: center;
}

.comparison-table .col-pro {
    text-align: center;
    color: #6366f1;
    font-weight: 700;
}

.comparison-table .col-enterprise {
    text-align: center;
    color: #ec4899;
    font-weight: 700;
}

.comparison-table .icon-table-check {
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .comparison-table-wrap {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 580px;
    }

    .pricing-toggle-wrap {
        width: 100%;
        max-width: 360px;
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-toggle-btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.82rem;
        gap: 5px;
    }

    .pricing-save-badge {
        font-size: 0.64rem;
        padding: 2px 6px;
    }

    .metrics-row {
        gap: 6px;
        margin: 10px 0 12px 0;
    }

    .metric-box {
        padding: 6px 8px;
    }

    .metric-label {
        font-size: 0.60rem;
    }

    .metric-val {
        font-size: 0.86rem;
    }

    .metrics-arrow {
        width: 16px;
        height: 16px;
    }

    .result-actions-row {
        gap: 8px;
        margin-top: 10px;
    }

    .result-actions-row #downloadSingleBtn,
    .result-actions-row #resetSingleBtn {
        padding: 9px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .toggle-text-full {
        display: none;
    }

    .toggle-text-short {
        display: inline;
    }

    .pricing-toggle-wrap {
        max-width: 280px;
    }

    .pricing-toggle-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}