/* ==========================================
   FileConvert Pro - Ultra-Premium Design System
   Enterprise-grade visual experience
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================
   CSS Custom Properties - Ultra Premium Palette
   ========================================== */
:root {
    /* Cursor tracking for 3D effects */
    --cursor-x: 0;
    --cursor-y: 0;
    --tx: 0px;
    --ty: 0px;

    /* Primary Gradient - Refined */
    --primary-gradient: linear-gradient(135deg,
            #3a86ff 0%,
            #6a8eff 25%,
            #9a9aff 50%,
            #6a8eff 75%,
            #3a86ff 100%);
    --primary-gradient-animated: linear-gradient(90deg,
            #3a86ff, #00d4ff, #a855f7, #ff6b6b, #3a86ff);

    /* Core Colors */
    --primary-deep: #0a0f1f;
    --primary-electric: #3a86ff;
    --primary-vivid: #00d4ff;
    --primary-neon: #6a8eff;

    /* Accent Colors */
    --accent-coral: #ff6b6b;
    --accent-emerald: #2ecc71;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;

    /* Glass & Surface - Enhanced */
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --glass-bg-solid: rgba(20, 25, 40, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.25);

    /* Neon Glow */
    --neon-glow: 0 0 20px rgba(58, 134, 255, 0.3);
    --neon-glow-strong: 0 0 40px rgba(58, 134, 255, 0.5);
    --neon-glow-intense: 0 0 60px rgba(58, 134, 255, 0.7);

    /* Background */
    --bg-primary: #0a0f1f;
    --bg-secondary: rgba(20, 25, 40, 0.7);
    --bg-tertiary: #1f2937;
    --bg-card: rgba(17, 24, 39, 0.8);

    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Depth Shadows - Premium */
    --depth-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 -2px 0 rgba(0, 0, 0, 0.1) inset;
    --shadow-glow: 0 0 40px rgba(58, 134, 255, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(58, 134, 255, 0.5);
    --shadow-elevated:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(31, 38, 135, 0.2);
    --shadow-neon:
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(58, 134, 255, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions - Buttery Smooth */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-magnetic: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing - Enhanced for Desktop */
    --spacexa: 4px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 80px;
}

/* Light mode removed - Dark mode only for premium experience */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Radial Gradient Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(58, 134, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================
   Animated Background - Premium Particles
   ========================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.08;
    filter: blur(40px);
    animation: float-particle 25s infinite ease-in-out;
    will-change: transform;
}

.particle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 75%;
    animation-delay: -6s;
}

.particle:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 75%;
    left: 15%;
    animation-delay: -12s;
}

.particle:nth-child(4) {
    width: 350px;
    height: 350px;
    top: 15%;
    left: 65%;
    animation-delay: -18s;
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(50px, -40px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
    }
}

/* Geometric Shapes - Subtle */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border: 1px solid rgba(58, 134, 255, 0.15);
    animation: float-shape 20s infinite ease-in-out;
    will-change: transform, opacity;
}

.shape.triangle {
    width: 0;
    height: 0;
    border: none;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid rgba(58, 134, 255, 0.06);
}

.shape.square {
    width: 30px;
    height: 30px;
    transform: rotate(45deg);
    background: rgba(58, 134, 255, 0.03);
}

.shape.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.04);
}

.shape:nth-child(1) {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    top: 22%;
    right: 12%;
    animation-delay: -4s;
}

.shape:nth-child(3) {
    bottom: 35%;
    left: 18%;
    animation-delay: -8s;
}

.shape:nth-child(4) {
    bottom: 25%;
    right: 22%;
    animation-delay: -12s;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.7;
    }
}

/* ==========================================
   Header - Flowing Gradient
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: linear-gradient(90deg,
            rgba(10, 15, 31, 0.95),
            rgba(26, 43, 74, 0.95),
            rgba(10, 15, 31, 0.95));
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    transition: all var(--transition-normal);
}

/* Light mode header styles removed */

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.header.scrolled {
    padding: var(--space-sm) 0;
    box-shadow: var(--depth-shadow);
}

.header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    justify-self: start;
    margin-left: -20px;
}

.logo svg {
    filter: drop-shadow(0 0 15px rgba(58, 134, 255, 0.5));
    transition: filter var(--transition-normal);
}

.logo:hover svg {
    filter: drop-shadow(0 0 25px rgba(58, 134, 255, 0.8));
}

.logo span {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    justify-self: center;
}

.header-actions {
    justify-self: end;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme toggle removed - Dark mode only */

/* Support Button - Blue Theme */
.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    min-height: 48px;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(58, 134, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.support-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3a86ff, #00d4ff);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.support-btn:hover {
    border-color: #3a86ff;
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.3);
}

.support-btn:hover::before {
    opacity: 0.15;
}

.support-btn .heart-icon {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(58, 134, 255, 0.5));
    transition: transform var(--transition-bounce);
}

.support-btn:hover .heart-icon {
    transform: scale(1.1);
}

.support-btn span {
    position: relative;
    z-index: 1;
}


/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 160px 0 100px;
    /* Increased top padding */
    text-align: center;
    /* min-height removed to allow content to flow naturally, or adjusted */
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* For background glow */
}

/* Background Glow */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
    /* Fallback */

    /* Simplified Gradient - High Contrast */
    background: linear-gradient(to right, #ffffff 0%, #e0f2fe 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    /* Removed shimmer to isolate issue */
}

/* Reusable Shimmer Class */
.shimmer-text {
    background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 30%, #e9d5ff 60%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.gradient-text {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    border-radius: 4px;
    opacity: 0.6;
    filter: blur(2px);
}

.hero-subtitle {
    font-size: 1.5rem;
    /* Larger subtitle */
    color: var(--text-secondary);
    max-width: 800px;
    /* Wider to avoid cramping */
    margin: 0 auto 60px;
    /* Spacing before tools */
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Upload Area - Ultra Premium Glassmorphism
   ========================================== */
/* Upload Area Removed */

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* Inner Glow */
.upload-area::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.08) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.upload-area:hover {
    box-shadow:
        var(--shadow-neon),
        var(--neon-glow-strong);
}

.upload-area:hover::after {
    opacity: 1;
}

.upload-area.drag-over {
    transform: scale(1.03);
    box-shadow:
        var(--shadow-neon),
        var(--neon-glow-intense);
}

.upload-area.drag-over::before {
    animation-duration: 2s;
}

.upload-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.upload-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 3s ease-in-out infinite;
    will-change: filter, transform;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(58, 134, 255, 0.5));
        transform: translateY(0) scale(1);
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(58, 134, 255, 0.9));
        transform: translateY(-12px) scale(1.05);
    }
}

.upload-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.file-input {
    display: none;
}

/* ==========================================
   Buttons - Magnetic & Premium
   ========================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: 18px 40px;
    min-height: 48px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    overflow: hidden;
    transition: all var(--transition-magnetic);
    will-change: transform;
}

/* Magnetic Effect */
.btn.magnetic {
    transform: scale(1) translate(var(--tx, 0), var(--ty, 0));
}

.btn.magnetic:hover {
    /* No transform on hover */
}

/* Liquid Fill Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    color: white;
    box-shadow: 0 4px 20px rgba(58, 134, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 35px rgba(58, 134, 255, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-emerald), var(--primary-vivid));
    color: white;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
}

.btn-success:hover {
    box-shadow: 0 8px 35px rgba(46, 204, 113, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary-electric);
    background: rgba(58, 134, 255, 0.1);
    box-shadow: var(--neon-glow);
}

/* Specific fix for Convert Another File button visibility */
#convertAnother {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

#convertAnother:hover {
    border-color: var(--primary-electric);
    background: rgba(58, 134, 255, 0.15);
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.4);
}

/* ==========================================
   Format Badges - Glow Pulse
   ========================================== */
.supported-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.format-badge {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-bounce);
    cursor: default;
}

.format-badge:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.4);
    animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(58, 134, 255, 0.4);
    }

    50% {
        box-shadow: 0 6px 30px rgba(58, 134, 255, 0.7);
    }
}

/* ==========================================
   File Preview - Glass Card
   ========================================== */
.file-preview {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
    box-shadow: var(--shadow-neon);
}

.file-preview.active {
    display: block;
    /* animation: morphIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

@keyframes morphIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-xl);
}

.file-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    box-shadow: var(--depth-shadow);
    position: relative;
    overflow: hidden;
}

.file-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.file-icon.pdf {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.file-icon.doc,
.file-icon.docx {
    background: linear-gradient(135deg, #3a86ff, #2563eb);
}

.file-icon.xls,
.file-icon.xlsx {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.file-icon.ppt,
.file-icon.pptx {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.file-icon.jpg,
.file-icon.jpeg,
.file-icon.png,
.file-icon.gif {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.file-icon.txt {
    background: linear-gradient(135deg, #64748b, #475569);
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    word-break: break-all;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-remove {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.conversion-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}

.convert-option {
    position: relative;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-bounce);
}

.convert-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.convert-option:hover {
    border-color: rgba(58, 134, 255, 0.5);
    box-shadow: var(--neon-glow);
}

.convert-option:hover::before {
    opacity: 0.15;
}

.convert-option-label {
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================
   Progress Section - 3D Rotating
   ========================================== */
.progress-section {
    display: none;
    max-width: 520px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.progress-section.active {
    display: block;
    /* animation: morphIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

.progress-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    box-shadow: var(--shadow-neon);
}

.progress-ring {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-xl);
}

.progress-ring svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 25px rgba(58, 134, 255, 0.6));
    animation: rotate3D 10s linear infinite;
}

@keyframes rotate3D {
    0% {
        filter: drop-shadow(0 0 25px rgba(58, 134, 255, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(58, 134, 255, 0.9));
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(58, 134, 255, 0.6));
    }
}

.progress-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(58, 134, 255, 0.9));
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

/* ==========================================
   Success Section - Celebration
   ========================================== */
.success-section {
    display: none;
    max-width: 520px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.success-section.active {
    display: block;
    /* animation: successPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.7) rotateX(20deg);
    }

    50% {
        transform: scale(1.08) rotateX(-5deg);
    }

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

.success-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    box-shadow: var(--shadow-neon);
}

.success-icon {
    margin-bottom: var(--space-xl);
    animation: bounce-glow 2.5s ease-in-out infinite;
}

@keyframes bounce-glow {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 25px rgba(46, 204, 113, 0.5));
    }

    50% {
        transform: translateY(-15px) scale(1.05);
        filter: drop-shadow(0 0 45px rgba(46, 204, 113, 0.9));
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-emerald), var(--primary-vivid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.success-info {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.success-content .btn {
    margin: var(--space-sm);
}

/* ==========================================
   Tools Section - Premium Cards
   ========================================== */
.tools-section {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: var(--space-2xl);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    perspective: 1000px;
}

.tool-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* transform-style: preserve-3d; removed for static look */
    /* will-change: transform; removed */
    /* Neon glow effect */
    box-shadow:
        0 0 15px rgba(0, 212, 255, 0.15),
        0 0 30px rgba(58, 134, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
            rgba(58, 134, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.tool-card:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(58, 134, 255, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-icon {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    transition: transform var(--transition-bounce);
}

.tool-icon svg {
    width: 100px;
    height: 100px;
}

.tool-card:hover .tool-icon {
    filter: drop-shadow(0 5px 15px rgba(58, 134, 255, 0.3));
}

.tool-title {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.tool-desc {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    padding: var(--space-3xl) 0;
    /* Increased from xl for "lower" positioning */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    /* Increased from lg */
}

.feature-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    /* Increased padding for "bigger" size */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    /* Static Neon Glow matched to Tool Cards */
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        0 0 15px rgba(0, 212, 255, 0.15),
        0 0 30px rgba(58, 134, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.6);
    /* Intensify glow on hover matched to Tool Cards */
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(58, 134, 255, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 72px;
    /* Increased from 56px */
    height: 72px;
    /* Increased from 56px */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    /* Increased margin */
    transition: all var(--transition-bounce);
}

.feature-icon svg {
    width: 36px;
    /* Increased from 28px */
    height: 36px;
    /* Increased from 28px */
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: var(--neon-glow);
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon svg path,
.feature-card:hover .feature-icon svg circle,
.feature-card:hover .feature-icon svg rect {
    stroke: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    /* Increased from 1rem */
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    /* Increased from 0.85rem */
    line-height: 1.6;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-secondary);
    border-top: var(--glass-border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-electric);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   Confetti / Celebration
   ========================================== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    animation: confetti-fall 4s linear forwards;
    will-change: transform;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(1080deg) scale(0.5);
        opacity: 0;
    }
}

/* Sonar Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(58, 134, 255, 0.5);
    animation: sonar-ripple 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes sonar-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        margin-top: -150px;
        margin-left: -150px;
    }
}

/* ==========================================
   Skeleton Loading
   ========================================== */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ==========================================
   Keyboard Shortcut Hint
   ========================================== */
.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Mobile - Swipeable Carousel
   ========================================== */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .nav {
        display: none;
    }

    .tools-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        -webkit-overflow-scrolling: touch;
    }

    .tools-grid::-webkit-scrollbar {
        display: none;
    }

    .tool-card {
        flex: 0 0 280px;
        scroll-snap-align: center;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }

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

    .upload-area {
        padding: var(--space-2xl) var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--space-2xl) 0;
        min-height: auto;
    }

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

    .tool-card {
        flex: 0 0 250px;
    }
}

/* ==========================================
   Reduced Motion Support
   ========================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle,
    .shape {
        animation: none !important;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* GPU Optimization */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ==========================================
   Header Actions - Support Button
   ========================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.support-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(108, 99, 255, 0.15));
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.support-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    padding: 1px;
    background: linear-gradient(135deg, #FF6B9D, #6C63FF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.support-btn .heart-icon {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

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

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

.support-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(108, 99, 255, 0.25));
}

.support-btn:hover .heart-icon {
    animation: heartbeat-fast 0.8s ease-in-out infinite;
}

@keyframes heartbeat-fast {

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

    50% {
        transform: scale(1.2);
    }
}

/* ==========================================
   Split PDF Modal
   ========================================== */
.split-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.split-overlay.active {
    opacity: 1;
    visibility: visible;
}

.split-modal {
    position: relative;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface-elevated);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 32px;
    border: 1px solid var(--border-light);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(58, 134, 255, 0.15);
    padding: 32px 32px;
}

/* Show scrollbar with styling */
.split-modal::-webkit-scrollbar {
    width: 8px;
}

.split-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.split-modal::-webkit-scrollbar-thumb {
    background: rgba(58, 134, 255, 0.5);
    border-radius: 4px;
}

.split-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 134, 255, 0.7);
}

.split-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 134, 255, 0.5) rgba(255, 255, 255, 0.05);
}

/* transform: translateY(0) scale(1); */
/* opacity: 1; */

.split-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.split-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    /* Use main gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.split-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.split-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: var(--space-xl);
    overflow-y: auto;
    overflow-x: hidden;
    /* Scroll internal content if needed */
    flex-shrink: 1;
    /* Allow options to shrink */
    padding-right: 4px;
    /* Space for potential scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.split-options::-webkit-scrollbar {
    display: none;

}

.split-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.split-option:hover {
    transform: translateX(4px);
}

.split-option input[type="radio"] {
    display: none;
}

.split-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-option input[type="radio"]:checked+.split-option-content {
    border-color: rgba(58, 134, 255, 0.6);
    background: linear-gradient(90deg,
            rgba(58, 134, 255, 0.15) 0%,
            rgba(58, 134, 255, 0.05) 100%);
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.15);
    transform: translateX(8px);
}

.split-option:hover .split-option-content {
    border-color: rgba(58, 134, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.split-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(58, 134, 255, 0.1);
    color: #3a86ff;
    transition: all 0.3s ease;
}

.split-option input[type="radio"]:checked+.split-option-content .split-icon-wrapper {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4);
}

.split-text strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.split-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.split-input-group {
    padding: 16px 24px;
    margin-top: -10px;
    margin-bottom: 8px;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(58, 134, 255, 0.3);
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.split-input-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.split-input-group input {
    flex: 1;
    min-width: 80px;
    max-width: 150px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.split-input-group input:focus {
    border-color: rgba(155, 89, 182, 0.5);
    background: rgba(155, 89, 182, 0.05);
}

.split-input-group span {
    color: var(--text-muted);
}

.split-submit {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.split-submit:hover {
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
    transform: none !important;
}

.split-submit:active {
    transform: none !important;
}

/* Split PDF Modal - New Dropzone Style */
.split-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    border: 2px dashed rgba(155, 89, 182, 0.4);
    border-radius: var(--radius-xl);
    background: rgba(155, 89, 182, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--space-lg);
}

.split-dropzone:hover {
    border-color: rgba(155, 89, 182, 0.6);
    background: rgba(155, 89, 182, 0.1);
}

.split-dropzone.dragover {
    border-color: #9b59b6;
    background: rgba(155, 89, 182, 0.15);
    transform: scale(1.01);
}

.split-dropzone svg {
    color: #9b59b6;
    margin-bottom: var(--space-md);
}

.split-dropzone p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.split-dropzone span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Split File Preview */
.split-file-preview {
    margin-bottom: var(--space-lg);
}

.split-file-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: var(--radius-lg);
}

.split-file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.split-file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.split-file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.split-file-remove {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-md);
    padding: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.split-file-remove:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

/* Split Mode Section */
.split-mode-section {
    margin-bottom: var(--space-lg);
}

.split-mode-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.split-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.split-mode-card {
    cursor: pointer;
}

.split-mode-card input[type="radio"] {
    display: none;
}

.split-mode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.split-mode-content svg {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
}

.split-mode-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.split-mode-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.split-mode-card:hover .split-mode-content {
    border-color: rgba(58, 134, 255, 0.4);
    background: rgba(58, 134, 255, 0.05);
}

.split-mode-card input[type="radio"]:checked+.split-mode-content {
    border-color: rgba(58, 134, 255, 0.6);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15), rgba(58, 134, 255, 0.05));
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.15);
}

.split-mode-card input[type="radio"]:checked+.split-mode-content svg {
    color: #3a86ff;
}

/* Split Input Area */
.split-input-area {
    margin-top: var(--space-md);
}

.split-range-inputs {
    display: flex;
    align-items: flex-end;
    gap: var(--space-md);
}

.split-input-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.split-input-field.full-width {
    width: 100%;
}

.split-input-field label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.split-input-field input {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.split-input-field input:focus {
    border-color: rgba(155, 89, 182, 0.5);
    background: rgba(155, 89, 182, 0.05);
}

.split-range-divider {
    color: var(--text-muted);
    padding-bottom: 12px;
}

.split-every-input {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.split-every-input input {
    width: 80px;
}

.split-every-input span {
    color: var(--text-muted);
}

/* Split Actions */
.split-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.split-actions .btn-outline {
    flex: 1;
}

.split-actions .split-submit {
    flex: 2;
}

.split-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   Donation Modal & Overlay - Enhanced Layout
   ========================================== */
.donation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.donation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.donation-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 95vh;
    /* Responsive constraint */
    display: flex;
    /* Use flexbox for layout */
    flex-direction: column;
    overflow: hidden;
    /* Prevent outer scrolling */
    overflow-x: hidden;
    background: linear-gradient(180deg,
            rgba(10, 15, 31, 0.98) 0%,
            rgba(15, 20, 35, 0.99) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 28px;
    border: 1px solid rgba(58, 134, 255, 0.2);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(58, 134, 255, 0.15),
        0 0 120px rgba(0, 212, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.donation-overlay.active .donation-modal {
    /* transform: translateY(0) scale(1); */
    /* opacity: 1; */
}

[data-theme="light"] .donation-modal {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(248, 245, 255, 0.99) 100%);
    border-color: rgba(255, 107, 157, 0.25);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(255, 107, 157, 0.1);
}

/* Hide scrollbar for cleaner look */
.donation-modal::-webkit-scrollbar {
    width: 6px;
}

.donation-modal::-webkit-scrollbar-track {
    background: transparent;
}

.donation-modal::-webkit-scrollbar-thumb {
    background: rgba(58, 134, 255, 0.3);
    border-radius: 3px;
}

.donation-view {
    padding: 40px 36px;
    overflow-y: auto;
    /* Allow internal scrolling */
    flex-shrink: 1;
    /* Allow view to shrink */
    max-height: 100%;
    /* Fill available space */
}

.donation-view.donation-main {
    display: block;
}

.donation-view.donation-success {
    display: none;
    text-align: center;
}

.donation-view.donation-success.active {
    display: block;
    /* animation: successBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); */
}

@keyframes successBounce {
    0% {
        transform: scale(0.7) translateY(30px);
        opacity: 0;
    }

    60% {
        transform: scale(1.03) translateY(-5px);
    }

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

/* Close Button - Improved */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(58, 134, 255, 0.15);
    border-color: rgba(58, 134, 255, 0.4);
    color: #3a86ff;
    transform: rotate(90deg) scale(1.05);
}

/* Donation Header - Enhanced Typography */
.donation-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 8px;
}

.donation-heart-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-heart 4s ease-in-out infinite;
}

@keyframes float-heart {

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

    50% {
        transform: translateY(-12px) scale(1.05);
    }
}

.donation-heart {
    filter: drop-shadow(0 0 25px rgba(58, 134, 255, 0.7)) drop-shadow(0 5px 15px rgba(0, 212, 255, 0.4));
}

.donation-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #3a86ff 0%, #6a8eff 50%, #00d4ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.donation-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Custom Amount Input - Premium Style */
.custom-amount {
    margin-top: 32px;
    margin-bottom: 24px;
}

.custom-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.custom-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 32px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    max-width: 280px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-input-wrapper:focus-within {
    border-color: #3a86ff;
    background: rgba(58, 134, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.15),
        0 0 30px rgba(58, 134, 255, 0.2);
}

.currency-symbol {
    font-size: 2rem;
    font-weight: 700;
    color: #3a86ff;
}

.custom-input {
    width: 120px;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    outline: none;
    font-family: var(--font-primary);
    letter-spacing: -0.02em;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 500;
}

/* Payment Notice - Subtle */
.payment-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg,
            rgba(58, 134, 255, 0.08) 0%,
            rgba(0, 212, 255, 0.06) 100%);
    border: 1px solid rgba(58, 134, 255, 0.15);
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.payment-notice svg {
    flex-shrink: 0;
    color: #3a86ff;
    opacity: 0.8;
}


/* Donate Button */
.btn-donate {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.btn-donate:hover {
    box-shadow: 0 12px 35px rgba(58, 134, 255, 0.6);
}

.btn-donate .heart-beat {
    animation: heartbeat 1s ease-in-out infinite;
}

/* Text Button */
.btn-text {
    display: block;
    width: 100%;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

/* Supporter Stats Removed */

/* Success View */
.donation-success-icon {
    text-align: center;
    margin-bottom: var(--space-lg);
    animation: bounce-scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounce-scale {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.donation-success-icon svg {
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.6));
}

.donation-success-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.donation-success-message {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.donation-success-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

/* Heart Confetti Container */
.success-heart-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.heart-confetti {
    position: absolute;
    font-size: 20px;
    animation: heart-fall 3s ease-out forwards;
}

@keyframes heart-fall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0);
        opacity: 1;
    }

    10% {
        transform: translateY(0) rotate(15deg) scale(1);
    }

    100% {
        transform: translateY(400px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* Mobile Responsive for Donation */
@media (max-width: 480px) {
    .support-btn span {
        display: none;
    }

    .donation-modal {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }

    .donation-view {
        padding: var(--space-xl) var(--space-lg);
    }

    .donation-view {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* Modal Height Responsiveness */
@media (max-height: 800px) {
    .split-modal {
        padding: 20px;
    }

    .split-header {
        margin-bottom: 20px;
    }

    .split-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .split-options {
        gap: 8px;
        margin-bottom: 20px;
    }

    .split-option-content {
        padding: 12px 16px;
        gap: 12px;
    }

    .split-icon-wrapper {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .split-text strong {
        font-size: 1rem;
    }

    .split-text p {
        font-size: 0.85rem;
    }
}

/* ==========================================
   Split PDF Modal Customizations
   ========================================== */
.split-title {
    color: white !important;
}

.split-submit {
    background: var(--primary-gradient) !important;
    border: none;
    color: white;
    font-weight: 600;
}

.split-submit:hover {
    box-shadow: var(--neon-glow);
}

/* ==========================================
   Donation Input Polish
   ========================================== */
.custom-input-wrapper {
    /* Static Neon Glow */
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15),
        0 0 30px rgba(58, 134, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.custom-input-wrapper:hover,
.custom-input-wrapper:focus-within {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(58, 134, 255, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Fix "Support Now" button movement */
#donateBtn:hover,
.btn-donate:hover {
    transform: none !important;
    /* Keep other effects if needed, but stop movement */
}

/* Fix for Success Modal Buttons - Static Behavior */
.btn-success:hover,
.btn-success:active,
.btn-outline:hover,
.btn-outline:active {
    transform: none !important;
}

/* ==========================================
   About Us Section - RTL Support
   ========================================== */
.about-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(58, 134, 255, 0.03) 50%,
            transparent 100%);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.university-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.owner-info {
    display: flex;
    justify-content: center;
}

.owner-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    direction: ltr;
}

.owner-avatar {
    width: 64px;
    height: 64px;
    background: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.owner-details {
    text-align: left;
}

.owner-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.owner-affiliation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.owner-email {
    font-size: 0.9rem;
    color: var(--primary-electric);
    text-decoration: none;
    transition: var(--transition-fast);
}

.owner-email:hover {
    color: var(--primary-vivid);
    text-decoration: underline;
}

/* ==========================================
   Modern Footer Design
   ========================================== */
.footer-modern {
    background: linear-gradient(180deg, rgba(15, 20, 35, 0.98) 0%, rgba(10, 15, 25, 1) 100%);
    border-top: 1px solid rgba(58, 134, 255, 0.1);
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(58, 134, 255, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-col {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    margin-bottom: var(--space-md);
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-btn.email:hover {
    background: var(--primary-electric);
    border-color: var(--primary-electric);
    color: white;
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.footer-nav a:hover {
    color: var(--primary-electric);
    transform: translateX(4px);
}

/* Developer Info - Polished Card Style */
.developer-info {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid rgba(58, 134, 255, 0.4);
    margin-top: 12px;
}

.developer-info:first-of-type {
    margin-top: 20px;
}

/* Reset all margins inside developer-info */
.developer-info p,
.developer-info h5,
.developer-info a {
    margin: 0 !important;
    padding: 0 !important;
}

.dev-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 !important;
    line-height: 1.4;
}

.dev-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 !important;
    line-height: 1.4;
}

.dev-university {
    font-size: 0.875rem;
    color: var(--primary-electric);
    margin: 0 !important;
    line-height: 1.4;
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dev-university:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--primary-electric);
    margin: 0 !important;
    width: fit-content;
}

.dev-license {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 !important;
    line-height: 1.4;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

.dev-social,
.developer-info .footer-social {
    display: flex;
    gap: 8px;
    margin-top: 8px !important;
}

.developer-info .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.developer-info .social-btn svg {
    width: 16px;
    height: 16px;
}

.developer-info .social-btn:hover {
    transform: translateY(-2px);
}

.developer-info .social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.35);
}

.developer-info .social-btn.email:hover {
    background: var(--primary-electric);
    border-color: var(--primary-electric);
    color: white;
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.35);
}

.dev-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dev-social-btn:hover {
    transform: translateY(-2px);
}

.dev-social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.35);
}

.dev-social-btn.email:hover {
    background: var(--primary-electric);
    border-color: var(--primary-electric);
    color: white;
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.35);
}

/* Footer Bottom */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: var(--space-lg);
}

.footer-bottom-modern {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom-modern .copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Policy Modal */
.policy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-lg);
}

.policy-overlay.active {
    opacity: 1;
    visibility: visible;
}

.policy-modal {
    background: linear-gradient(135deg, rgba(25, 30, 45, 0.98) 0%, rgba(15, 20, 35, 0.99) 100%);
    border: 1px solid rgba(58, 134, 255, 0.2);
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(58, 134, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

/* Custom scrollbar for policy modal */
.policy-modal::-webkit-scrollbar {
    width: 6px;
}

.policy-modal::-webkit-scrollbar-track {
    background: transparent;
}

.policy-modal::-webkit-scrollbar-thumb {
    background: rgba(58, 134, 255, 0.3);
    border-radius: 3px;
}

.policy-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 134, 255, 0.5);
}

.policy-overlay.active .policy-modal {
    transform: translateY(0);
}

.policy-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.policy-close:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.policy-content {
    padding: 32px 28px;
}

.policy-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
    padding-right: 50px;
}

.policy-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.policy-content h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.policy-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.policy-content .last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================
   UNIFIED TOOL MODAL FRAMEWORK
   All tool modals (Merge, Split, Compress, Convert)
   share these consistent styles
   ========================================== */

/* Tool Modal Overlay - Glassmorphism backdrop */
.tool-overlay,
.merge-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.tool-overlay.active,
.merge-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Tool Modal Card - Unified glassmorphism container */
.tool-modal,
.merge-modal {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(58, 134, 255, 0.2);
    border-radius: 24px;
    padding: var(--space-2xl);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 0 40px rgba(58, 134, 255, 0.15),
        0 0 80px rgba(0, 212, 255, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Consistent scrollbar for all modals */
.tool-modal::-webkit-scrollbar,
.merge-modal::-webkit-scrollbar {
    width: 8px;
}

.tool-modal::-webkit-scrollbar-track,
.merge-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.tool-modal::-webkit-scrollbar-thumb,
.merge-modal::-webkit-scrollbar-thumb {
    background: rgba(58, 134, 255, 0.4);
    border-radius: 4px;
}

.tool-modal::-webkit-scrollbar-thumb:hover,
.merge-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 134, 255, 0.6);
}

/* Firefox scrollbar */
.tool-modal,
.merge-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(58, 134, 255, 0.4) rgba(255, 255, 255, 0.05);
}

/* Tool Modal Header - Unified typography hierarchy */
.tool-header,
.merge-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.tool-header svg,
.merge-header svg {
    margin-bottom: var(--space-xs);
}

/* Tool Card Title */
.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

/* Modal Title - White text */
.merge-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-md) 0 var(--space-xs);
}

/* Tool Subtitle - Subtle gray */
.tool-subtitle,
.merge-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Unified Dropzone - File upload area */
.tool-dropzone,
.merge-dropzone {
    border: 2px dashed rgba(58, 134, 255, 0.3);
    border-radius: 16px;
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    margin-bottom: var(--space-lg);
    background: rgba(58, 134, 255, 0.03);
}

.tool-dropzone:hover,
.tool-dropzone.dragover,
.merge-dropzone:hover,
.merge-dropzone.dragover {
    border-color: var(--primary-electric);
    background: rgba(58, 134, 255, 0.08);
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.15);
}

.tool-dropzone svg,
.merge-dropzone svg {
    color: var(--primary-electric);
    margin-bottom: var(--space-sm);
}

.tool-dropzone p,
.merge-dropzone p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.tool-dropzone span,
.merge-dropzone span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Unified File List */
.tool-file-list,
.merge-file-list {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
}

/* Unified File Item */
.tool-file-item,
.merge-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(58, 134, 255, 0.15);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    transition: var(--transition-fast);
}

.tool-file-item:hover,
.merge-file-item:hover {
    border-color: rgba(58, 134, 255, 0.3);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%);
}

.tool-file-item .file-info,
.merge-file-item .file-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.tool-file-item .file-icon,
.merge-file-item .file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
}

.tool-file-item .file-name,
.merge-file-item .file-name {
    font-weight: 500;
    color: var(--text-primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-file-item .file-size,
.merge-file-item .file-size {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
    margin-right: var(--space-md);
}

/* Remove button */
.tool-file-item .remove-btn,
.merge-file-item .remove-btn,
.remove-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: #ef4444;
}

.tool-file-item .remove-btn:hover,
.merge-file-item .remove-btn:hover,
.remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Unified Actions Footer */
.tool-actions,
.merge-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

/* Primary Action Button - Gradient */
.tool-btn-primary,
.merge-submit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary-gradient);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: 12px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-medium);
}

.tool-btn-primary:hover,
.merge-submit:hover {
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.tool-btn-primary:disabled,
.merge-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary/Cancel Button - Ghost style */
.tool-btn-secondary,
.btn-outline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-md) var(--space-xl);
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-medium);
}

.tool-btn-secondary:hover,
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Empty State Hint */
.tool-hint,
.merge-hint {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    padding: var(--space-lg);
}

/* ==========================================
   UNIFIED LOADING/SUCCESS/ERROR STATES
   ========================================== */

/* Loading State */
.tool-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.tool-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(58, 134, 255, 0.2);
    border-top-color: var(--primary-electric);
    border-radius: 50%;
    animation: tool-spin 1s linear infinite;
    margin-bottom: var(--space-lg);
}

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

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

/* Success State */
.tool-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.tool-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: #22c55e;
}

.tool-success-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.tool-success-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Error State */
.tool-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.tool-error-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: #ef4444;
}

.tool-error-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.tool-error-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   Legacy Merge PDF Modal Styles (for backwards compatibility)
   ========================================== */
.merge-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.merge-overlay.active {
    opacity: 1;
    visibility: visible;
}

.merge-modal {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(58, 134, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(58, 134, 255, 0.15),
        0 0 80px rgba(0, 212, 255, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

.merge-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* .merge-title and .merge-subtitle are defined in the unified framework above */

.merge-dropzone {
    border: 2px dashed rgba(58, 134, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    margin-bottom: var(--space-lg);
    background: rgba(58, 134, 255, 0.03);
}

.merge-dropzone:hover,
.merge-dropzone.dragover {
    border-color: var(--primary-electric);
    background: rgba(58, 134, 255, 0.08);
    box-shadow: 0 0 30px rgba(58, 134, 255, 0.15);
}

.merge-dropzone svg {
    color: var(--primary-electric);
    margin-bottom: var(--space-sm);
}

.merge-dropzone p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.merge-dropzone span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.merge-file-list {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
}

.merge-hint {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

.merge-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(58, 134, 255, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: var(--transition-fast);
}

.merge-file-item:hover {
    border-color: rgba(58, 134, 255, 0.3);
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.12) 0%, rgba(0, 212, 255, 0.08) 100%);
}

.merge-file-item .file-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.merge-file-item .file-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.merge-file-item .file-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merge-file-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.merge-file-item .remove-btn:hover {
    color: #e74c3c;
}

.merge-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

.merge-submit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary-gradient);
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    transition: var(--transition-medium);
}

.merge-submit:hover:not(:disabled) {
    box-shadow: var(--neon-glow);
}

.merge-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Mobile Responsive for About & Footer */
@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1.1rem;
        text-align: center;
    }

    .owner-card {
        flex-direction: column;
        text-align: center;
    }

    .owner-details {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-brand-col {
        max-width: 100%;
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-nav {
        align-items: center;
    }

    .developer-info {
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 2px solid rgba(58, 134, 255, 0.3);
    }

    .dev-badge {
        justify-content: center;
    }

    .dev-social {
        justify-content: center;
    }

    .footer-bottom-modern {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ==========================================
   Compress PDF Options
   ========================================== */
.compress-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compress-levels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compress-option {
    cursor: pointer;
}

.compress-option input[type="radio"] {
    display: none;
}

.compress-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
}

.compress-option input:checked+.compress-option-content {
    border-color: var(--primary-electric);
    background: rgba(58, 134, 255, 0.1);
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.15);
}

.compress-option:hover .compress-option-content {
    border-color: rgba(58, 134, 255, 0.5);
    background: rgba(58, 134, 255, 0.05);
}

.compress-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.compress-icon-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.compress-glass {
    position: relative;
    overflow: hidden;
}

.compress-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.compress-glass-green::before {
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.1);
}

.compress-glass-orange::before {
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.1);
}

.compress-glass-blue::before {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.compress-option input:checked+.compress-glass-green {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.2);
}

.compress-option input:checked+.compress-glass-green::before {
    opacity: 1;
}

.compress-option input:checked+.compress-glass-orange {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.compress-option input:checked+.compress-glass-orange::before {
    opacity: 1;
}

.compress-option input:checked+.compress-glass-blue {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

.compress-option input:checked+.compress-glass-blue::before {
    opacity: 1;
}

.compress-option:hover .compress-glass-green {
    border-color: rgba(34, 197, 94, 0.4);
}

.compress-option:hover .compress-glass-orange {
    border-color: rgba(245, 158, 11, 0.4);
}

.compress-option:hover .compress-glass-blue {
    border-color: rgba(59, 130, 246, 0.4);
}

.compress-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compress-option-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.compress-option-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.compress-file-preview {
    margin: var(--space-lg) 0;
}

#tools-list {
    scroll-margin-top: 140px;
}

/* ==========================================
   Success Section Actions
   ========================================== */
.success-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    /* Closer gap */
    justify-content: center;
    flex-wrap: wrap;
    /* responsive wrapping */
    width: 100%;
    margin-top: var(--space-md);
}

.success-actions .btn {
    width: 240px;
    /* Fixed equal width */
    justify-content: center;
    /* Center text/icon inside */
    padding-left: 0;
    padding-right: 0;
}