/* Enhanced Hero Section Styles - Round 5 (Compact & Visible) */

/* Body Background - Yellow to prevent white space */
body {
    background: #FFD54F;
}

/* Hero Section - Plain Yellow & Compact */
.hero {
    background: #FFD54F;
    /* Plain, vibrant yellow */
    color: var(--text-primary);
    padding: 0;
    /* Removed padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    height: calc(100vh - var(--nav-height));
    height: calc(100svh - var(--nav-height));
    /* Mobile-friendly */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Internal Centering */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* New Branding Style - Clean White Pill */
.hero-brand-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: #ffffff;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    /* Reduced margin */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-brand-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #111827;
    letter-spacing: 2px;
    font-size: 0.9rem;
    /* Slightly smaller */
    text-transform: uppercase;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Tagline */
.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* Typography & Animations */
.hero h1 {
    font-size: 3.25rem;
    /* Reduced from 4rem */
    font-weight: 900;
    color: #111827;
    margin-bottom: 1.5rem;
    /* Adjusted margin */
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: none;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #1D63FF 0%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero h1 .highlight-white {
    color: #FFFFFF;
    position: relative;
    display: inline-block;
}

/* Shadow/underline effect removed from Automation text */

.hero p {
    font-size: 1.2rem;
    /* Slightly smaller */
    margin-bottom: 2rem;
    /* Reduced margin */
    color: #374151;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
    /* Reduced margin to show USPs */
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Enhanced Button Styles */
.btn-primary {
    background: #2563EB;
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0.875rem 2rem;
    /* Compact buttons */
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: white;
    color: #2563EB;
    border: 2px solid #2563EB;
    padding: 0.875rem 2rem;
    /* Compact buttons */
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05);
    color: #1D4ED8;
    border-color: #1D4ED8;
}

/* USP Cards - New Design (Slightly Reduced) */
.hero-usps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 850px;
    margin: 2.5rem auto 0;
    padding: 0;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.usp-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.usp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.usp-icon {
    font-size: 1.75rem;
    margin-bottom: 0.2rem;
}

.usp-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
}

.usp-desc {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Tool Cards */
.tool-card {
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Enhanced Feature Cards */
.feature-card:hover {
    border-color: var(--primary);
    background: #f9fafb;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Removed .hero override to allow full height */

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-usps {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .usp-divider {
        display: none;
    }
}

/* --- NEW HEADER STYLES (Split Glass Header) --- */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.5rem 0;
    height: auto;
    z-index: 1000;
}


.nav-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

/* Glass Style for Nav Elements */
.nav-links {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    transition: all 0.3s ease;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    margin: 0;
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

.logo {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
}

.menu-toggle {
    pointer-events: auto;
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}



/* Scrolled State: DISABLED - No changes on scroll */
/* nav.scrolled styles removed as per user request */


/* ---------------------------------- */

.logo {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo .text-primary {
    color: var(--primary);
}

.logo .text-dark {
    color: var(--text-primary);
}

.nav-links {
    border-radius: 50px;
    padding: 0.5rem 2rem;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Mobile Menu Toggle - Glass Button */
.menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 12px;
    /* Rounded square for button */
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 15px);
        right: 0;
        /* Align to right */
        width: 250px;
        /* Compact width */
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        border-radius: 20px;
        gap: 1rem;

        /* Hide by default with transform */
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        visibility: hidden;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    .nav-links li a {
        font-size: 1rem;
        display: block;
        width: 100%;
    }
}

/* ========================================== */
/* TDS SUMMARIZER TOOL PAGE STYLES */
/* ========================================== */

/* Tool Page Hero Section - Yellow Background */
.tool-page-hero {
    background: #FFD54F;
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    padding: 3rem 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.tool-page-hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

/* Two Column Layout */
.tool-two-column {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 3.5rem;
    width: 100%;
    align-items: center;
    padding: 0;
}

/* Left Column - Information Section */
.tool-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    padding: 0;
    overflow: visible;
}

.tool-title-section {
    margin-bottom: 0;
    overflow: visible;
}

/* Title Badge */
.title-badge {
    display: inline-block;
    background: white;
    color: #111827;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Gradient Title */
.gradient-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1D63FF 0%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: visible;
    padding-right: 0.25rem;
}

/* Enhanced Subtitle */
.tool-subtitle-enhanced {
    font-size: 1.125rem;
    color: #111827;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 100%;
}

/* Enhanced Disclaimer Card */
.disclaimer-card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 2px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg, #FFD54F, #FFA726);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition);
}

.disclaimer-card-enhanced:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Plan Header */
.plan-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.plan-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(255, 206, 50, 0.4));
}

.plan-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.plan-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}

/* Usage Meter */
.usage-meter {
    margin-bottom: 1rem;
}

.usage-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.usage-label>span:first-child {
    color: var(--text-secondary);
    font-weight: 600;
}

.usage-count {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.875rem;
}

.usage-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Upgrade Banner */
.upgrade-banner {
    background: linear-gradient(135deg, #FFF9E6, #FFE5B4);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px dashed #FFD54F;
}

.upgrade-text-enhanced {
    margin: 0;
    font-size: 0.8125rem;
    color: #374151;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.upgrade-text-enhanced a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    transition: var(--transition);
}

.upgrade-text-enhanced a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Right Column - Upload Section */
.tool-right-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

/* FIXED SIZE WRAPPER - Enforces consistent size across all states */
.upload-container-wrapper {
    width: 95%;
    max-width: 550px;
    height: 420px; /* FIXED HEIGHT - never changes - EXTRA REDUCED */
    position: relative;
    margin: 0 auto;
}

/* Upload Card Enhancements - All cards inherit wrapper size */
.upload-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: 100%; /* Takes full wrapper height */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(29, 99, 255, 0.1);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.upload-card-header {
    text-align: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.upload-heading {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #1D63FF 0%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-subheading {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Upload Area - Enhanced with Better Colors and REDUCED HEIGHT */
.upload-area {
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem 0.875rem;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0; /* Allow flex shrinking */
    max-height: 280px; /* Limit height */
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(29, 99, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-area:hover::before,
.upload-area.dragover::before {
    opacity: 1;
}

.upload-area:hover,
.upload-area.dragover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--primary-dark);
    box-shadow: 0 0 30px rgba(29, 99, 255, 0.3), inset 0 0 20px rgba(29, 99, 255, 0.15);
    transform: translateY(-3px) scale(1.01);
}

/* Upload Icon with Background Animation */
.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.375rem;
}

.upload-icon {
    font-size: 1.75rem;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.upload-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(29, 99, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.upload-area:hover .upload-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(-5px);
    }

    75% {
        transform: translateY(-8px);
    }
}

/* Upload Text Styles */
.upload-text-primary {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-weight: 600;
}

/* Enhanced Upload Button */
.btn-upload {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 4px 15px rgba(29, 99, 255, 0.3);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1D63FF, #4A7FFF);
    border: none;
    color: white;
}

/* Upload Help Section */
.upload-help-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(29, 99, 255, 0.1);
    text-align: center;
    flex-shrink: 0;
}

.upload-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid rgba(29, 99, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #374151;
    font-size: 0.6875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.upload-help-link:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #1D63FF;
    color: #1D63FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 99, 255, 0.15);
}

.help-icon {
    font-size: 0.875rem;
    line-height: 1;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 99, 255, 0.4);
    background: linear-gradient(135deg, #1450E0, #1D63FF);
}

.btn-upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(29, 99, 255, 0.3);
}

.btn-icon {
    font-size: 1.125rem;
    line-height: 1;
}



.upload-area .btn {
    margin-top: 0.5rem;
}

/* Progress Section - Enhanced with FIXED SIZE */
.progress-section {
    border-color: rgba(29, 99, 255, 0.2) !important;
}

.progress-section h3 {
    font-size: 1.125rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1D63FF 0%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    text-align: center;
}

.log-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.625rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1D63FF, #4A7FFF, #1D63FF);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(29, 99, 255, 0.5);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.status-text {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin: 0 0 0.625rem;
    font-weight: 600;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.log-list {
    height: 100%;
    overflow-y: auto;
    text-align: left;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.625rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.5625rem;
    list-style: none;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 99, 255, 0.3) rgba(0, 0, 0, 0.05);
}

/* Modern Webkit Scrollbar for Log List */
.log-list::-webkit-scrollbar {
    width: 6px;
}

.log-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.log-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1D63FF, #4A7FFF);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.log-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1450E0, #1D63FF);
}

.log-list li {
    margin-bottom: 0.25rem;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    line-height: 1.25;
}

.log-list li:hover {
    background: rgba(255, 255, 255, 0.5);
}

.log-list li.success {
    color: var(--success);
    font-weight: 600;
}

.log-list li.error {
    color: var(--danger);
    font-weight: 600;
}

/* Results Section - Enhanced with FIXED SIZE */
.results-section {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.results-content-wrapper {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.results-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 0.375rem;
    text-align: center;
    flex-shrink: 0;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.875rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.15);
    flex-shrink: 0;
}

.stat-item {
    text-align: center;
    position: relative;
    flex: 1;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--border);
}

.stat-item:last-child::after {
    display: none;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1D63FF 0%, #4A7FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.375rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-full {
    width: 100%;
    margin-top: 0;
    padding: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-secondary {
    background: linear-gradient(135deg, #FFD54F, #FFA726);
    color: #111827;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 165, 38, 0.3);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn-secondary::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.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #FFA726, #FF9800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 38, 0.4);
}

.btn-secondary span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    font-weight: 700;
}

/* Results Log Section */
.results-log-section {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(29, 99, 255, 0.1);
    flex-shrink: 0;
}

.btn-toggle-log {
    background: white;
    border: 2px solid rgba(29, 99, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-toggle-log:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #1D63FF;
    color: #1D63FF;
    box-shadow: 0 4px 12px rgba(29, 99, 255, 0.15);
    transform: translateY(-2px);
}

/* Advertisement Section */
.section-ad {
    background: var(--bg-secondary);
    padding: 2rem 0;
}

.ad-placeholder {
    background: #e5e7eb;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px dashed #cbd5e1;
    color: #64748b;
}

.ad-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

/* Fade-in Animations */
.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsiveness - CONSOLIDATED */
@media (max-width: 768px) {
    /* Mobile styles for enhanced title */
    .gradient-title {
        font-size: 1.625rem;
        white-space: normal;
    }

    .title-badge {
        font-size: 0.625rem;
        padding: 0.35rem 0.75rem;
    }

    .tool-subtitle-enhanced {
        font-size: 0.9375rem;
        max-width: 100%;
    }

    /* Mobile styles for enhanced disclaimer */
    .disclaimer-card-enhanced {
        padding: 1rem;
    }

    .plan-header {
        gap: 0.625rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
    }

    .plan-icon {
        font-size: 1.25rem;
    }

    .plan-title {
        font-size: 0.9375rem;
    }

    .plan-subtitle {
        font-size: 0.75rem;
    }

    .usage-meter {
        margin-bottom: 0.875rem;
    }

    .upgrade-banner {
        padding: 0.625rem;
    }

    .upgrade-text-enhanced {
        font-size: 0.75rem;
    }

    .tool-right-column {
        min-height: auto;
    }

    .upload-card-wrapper {
        max-width: 100%;
    }

    .upload-area {
        padding: 2rem 1.5rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .disclaimer-card {
        padding: 1.25rem;
    }

    .upload-card-wrapper {
        padding: 1.5rem;
    }

    .upload-heading {
        font-size: 1.125rem;
    }
}

/* ========================================== */
/* PRICING PAGE STYLES */
/* ========================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(29, 99, 255, 0.15);
}

.pricing-card.featured:hover {
    box-shadow: 0 12px 40px rgba(29, 99, 255, 0.2);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-secondary);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-cta {
    margin-top: auto;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-accent {
    background-color: var(--accent);
    color: #111827;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
}


/* Compact Hero (for Pricing/Legal pages) */
.hero.hero-compact {
    height: auto !important;
    min-height: auto !important;
    padding: 1.5rem 0 2rem 0;
    align-items: flex-start;
}

.hero.hero-compact .hero-content {
    margin-top: 0;
}

.hero.hero-compact h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    font-weight: 900;
}

.hero.hero-compact p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    display: block;
    line-height: 1.5;
    color: #374151;
}

.hero.hero-compact .hero-brand-wrapper {
    margin-bottom: 1rem;
    padding: 0.5rem 1.25rem;
}

.hero.hero-compact .hero-brand-text {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

/* Enhanced Pricing Hero */
.pricing-hero .pricing-subtitle {
    font-weight: 500;
}

.pricing-value-props {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.value-prop-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.value-prop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.value-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.value-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

/* Enhanced Pricing Section */
.pricing-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}

.pricing-section .pricing-grid {
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    grid-template-columns: repeat(3, 1fr);
}

/* Pricing Card Styles */
.pricing-card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1D63FF, #4A7FFF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(29, 99, 255, 0.15);
    border-color: rgba(29, 99, 255, 0.3);
}

/* Card Icons */
.pricing-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Featured Card */
.pricing-card-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(29, 99, 255, 0.2);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card-featured::before {
    opacity: 1;
    height: 5px;
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 50px rgba(29, 99, 255, 0.25);
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: linear-gradient(135deg, #FFD54F, #FFA726);
    color: #111827;
    padding: 0.5rem 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 165, 38, 0.3);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.badge-star {
    font-size: 1rem;
    line-height: 1;
}

/* Pricing Header */
.pricing-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.pricing-price {
    font-size: 2.25rem;
    margin-bottom: 0.375rem;
    color: var(--primary);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #1D63FF 0%, #4A7FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price-custom {
    font-size: 1.375rem !important;
    font-weight: 800;
}

.pricing-period {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Pricing Features */
.pricing-features {
    list-style: none;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Pricing CTA */
.pricing-cta {
    margin-top: auto;
}

.btn-pricing {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-featured {
    background: linear-gradient(135deg, #1D63FF, #4A7FFF);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(29, 99, 255, 0.3);
}

.btn-featured:hover {
    background: linear-gradient(135deg, #1450E0, #1D63FF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 99, 255, 0.4);
}

.btn-arrow {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-pricing:hover .btn-arrow {
    transform: translateX(4px);
}

/* FAQ Section */
.pricing-faq {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.faq-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1D63FF 0%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 950px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 1.25rem;
    border-radius: 14px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(29, 99, 255, 0.1);
    transform: translateY(-4px);
}

.faq-question {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-answer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

/* Footer Logo - Remove Bubble Styling */
footer .logo {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

footer .logo a {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* ========================================== */
/* ENHANCED TDS SUMMARIZER TOOL PAGE */
/* ========================================== */

/* Unified Info Section - One Viewport */
.unified-info-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    padding: 2.5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Unified Grid Layout */
.unified-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Left Column - How It Works */
.unified-left {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(29, 99, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.unified-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(29, 99, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.unified-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1D63FF 0%, #4A7FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.unified-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1D63FF, #4A7FFF);
    border-radius: 2px;
}

/* Compact Steps */
.steps-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid rgba(29, 99, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-compact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1D63FF, #4A7FFF);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.step-compact:hover::before {
    transform: scaleY(1);
}

.step-compact:hover {
    transform: translateX(8px);
    border-color: #1D63FF;
    box-shadow: 0 6px 20px rgba(29, 99, 255, 0.2);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1D63FF, #4A7FFF);
    color: white;
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(29, 99, 255, 0.3);
    transition: all 0.3s ease;
}

.step-compact:hover .step-num {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 16px rgba(29, 99, 255, 0.5);
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.step-text strong {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
}

.step-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Feature Badges */
.features-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    position: relative;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF9E6 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 206, 50, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.feature-badge:hover::before {
    left: 100%;
}

.feature-badge:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 6px 20px rgba(255, 206, 50, 0.4);
    border-color: #FFA726;
}

.badge-icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.feature-badge:hover .badge-icon {
    transform: scale(1.2);
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Right Column - Security Info */
.unified-right {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF9E6 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 206, 50, 0.4);
    position: relative;
    overflow: hidden;
}

.unified-right::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 206, 50, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.security-heading {
    font-size: 1.375rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFD54F 0%, #FFA726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.security-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FFD54F, #FFA726);
    border-radius: 2px;
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.security-point {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(255, 206, 50, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.security-point::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FFD54F, #FFA726);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.security-point:hover::before {
    transform: scaleY(1);
}

.security-point:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(255, 165, 38, 0.3);
    border-color: #FFA726;
}

.security-point:hover .point-icon {
    transform: scale(1.15) rotate(5deg);
}

.point-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.point-content strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.point-content p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Enhanced Upload Card */
.upload-card-enhanced {
    position: relative;
    overflow: visible;
}

.upload-card-enhanced::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #1D63FF, #4A7FFF, #FFD54F);
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-card-enhanced:hover::after {
    opacity: 0.15;
}



/* Enhanced Progress Section - Matching Upload Style with FIXED SIZE */
.progress-section {
    background: white;
    border: 2px solid rgba(29, 99, 255, 0.15);
    justify-content: flex-start;
}

.progress-header {
    text-align: center;
    margin-bottom: 0.625rem;
    padding: 1rem 0.875rem 0.875rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.progress-icon-animated {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
    animation: rotate 2s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(29, 99, 255, 0.3));
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.progress-header h3 {
    font-size: 0.9375rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1D63FF 0%, #111827 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.progress-subtitle {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Progress Bar Styles - Already defined above, keeping this for reference */

/* Enhanced Results Section - Yellow/Blue Theme - No Scroll Needed */
.results-section {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF9E6 100%);
    border: 2px solid rgba(255, 206, 50, 0.3);
    justify-content: center;
}

.results-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.results-success-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.375rem;
    animation: scaleIn 0.5s ease-out, pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 206, 50, 0.4));
    flex-shrink: 0;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.results-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1D63FF 0%, #4A7FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.results-subtitle {
    text-align: center;
    font-size: 0.75rem;
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Enhanced Stats - Yellow/Blue Theme - EXTRA COMPACT */
.stats {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.625rem 0;
    padding: 0.875rem;
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid rgba(29, 99, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.stat-item {
    text-align: center;
    position: relative;
    flex: 1;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(29, 99, 255, 0.2), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-item-success .stat-icon {
    background: linear-gradient(135deg, #1D63FF, #4A7FFF);
    color: white;
}

.stat-item-skipped .stat-icon {
    background: linear-gradient(135deg, #FFD54F, #FFA726);
    color: #111827;
}

.stat-value {
    font-size: 1.625rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1D63FF 0%, #4A7FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-item-skipped .stat-value {
    background: linear-gradient(135deg, #FFD54F 0%, #FFA726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.625rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Actions - Side by Side Layout */
.results-actions-row {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.btn-half {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
}

.btn-download {
    background: linear-gradient(135deg, #1D63FF, #4A7FFF);
    border: none;
    box-shadow: 0 4px 15px rgba(29, 99, 255, 0.3);
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-download::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.5s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    background: linear-gradient(135deg, #1450E0, #1D63FF);
    box-shadow: 0 6px 20px rgba(29, 99, 255, 0.4);
    transform: translateY(-2px);
}

.btn-download span {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 1.125rem;
    line-height: 1;
}

/* Mobile Responsive for Unified Section */
@media (max-width: 968px) {
    .unified-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .unified-left,
    .unified-right {
        padding: 1.5rem;
    }
    
    .unified-title,
    .security-heading {
        font-size: 1.25rem;
    }
    
    .features-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Mobile Responsiveness for Tool Page */
@media (max-width: 768px) {
    .tool-page-hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .tool-page-hero .container {
        padding: 0 1rem;
    }

    .tool-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tool-left-column {
        gap: 1.25rem;
    }

    .upload-container-wrapper {
        height: 420px; /* Slightly smaller on mobile but still fixed */
        margin: 0;
    }
    
    .upload-card {
        padding: 1.25rem 1rem;
    }
    
    .upload-container-wrapper {
        width: 100%;
        max-width: 100%;
        height: 360px;
    }
    
    .tool-right-column {
        padding: 0;
    }
    
    .upload-card {
        padding: 1rem 0.875rem;
    }
    
    .upload-heading {
        font-size: 0.9375rem;
    }
    
    .upload-subheading {
        font-size: 0.625rem;
    }
    
    .upload-icon {
        font-size: 1.75rem;
    }
    
    .upload-text-primary {
        font-size: 0.75rem;
    }
    
    .btn-upload {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .progress-icon-animated {
        font-size: 1.5rem;
    }
    
    .progress-header h3 {
        font-size: 0.875rem;
    }
    
    .results-success-icon {
        font-size: 1.75rem;
    }
    
    .results-title {
        font-size: 0.9375rem;
    }
    
    .log-list {
        max-height: 180px;
        font-size: 0.5rem;
    }
    
    .stats {
        gap: 0.625rem;
        padding: 0.625rem;
    }
    
    .stat-icon {
        width: 22px;
        height: 22px;
        font-size: 0.6875rem;
    }
    
    .stat-value {
        font-size: 1.375rem;
    }
    
    .stat-label {
        font-size: 0.5rem;
    }
    
    .btn-full {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .results-actions-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-half {
        width: 100%;
        padding: 0.625rem;
        font-size: 0.75rem;
    }
    
    .upload-area {
        max-height: 240px;
        padding: 0.875rem 0.75rem;
    }
    
    .upload-help-link {
        font-size: 0.625rem;
        padding: 0.375rem 0.625rem;
    }
    
    .help-icon {
        font-size: 0.75rem;
    }

    .unified-info-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .step-compact {
        padding: 0.875rem;
    }
    
    .step-num {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .step-text strong {
        font-size: 0.875rem;
    }
    
    .step-text span {
        font-size: 0.6875rem;
    }
    
    .feature-badge {
        padding: 0.625rem;
    }
    
    .badge-icon {
        font-size: 1.25rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .security-point {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .point-icon {
        font-size: 1.75rem;
    }
    
    .point-content strong {
        font-size: 0.875rem;
    }
    
    .point-content p {
        font-size: 0.75rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item {
        max-width: 100%;
    }

    .stat-value {
        font-size: 2rem;
    }

    .results-success-icon {
        font-size: 2.5rem;
    }

    .results-title {
        font-size: 1.25rem;
    }

    .how-to-title {
        font-size: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Responsive Pricing */
@media (max-width: 1024px) {
    .pricing-section .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    .pricing-card-featured:hover {
        transform: translateY(-8px);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero.hero-compact h1 {
        font-size: 2rem;
    }

    .hero.hero-compact p {
        font-size: 1rem;
    }

    .pricing-value-props {
        gap: 1rem;
    }

    .value-prop-item {
        padding: 0.5rem 1rem;
    }

    .pricing-card {
        padding: 1.75rem 1.5rem;
    }

    .pricing-price {
        font-size: 2.25rem;
    }

    .faq-title {
        font-size: 1.5rem;
    }
}
/* ==
======================================== */
/* FIXED CONTAINER OVERRIDES - CRITICAL */
/* ========================================== */

/* Ensure all card states respect the fixed wrapper size */
.upload-container-wrapper .upload-card,
.upload-container-wrapper .progress-section,
.upload-container-wrapper .results-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Upload card specific sizing */
#upload-card {
    display: flex;
    flex-direction: column;
}

/* Progress section layout */
#progress-section {
    display: flex;
    flex-direction: column;
}

#progress-section .progress-header {
    flex-shrink: 0;
}

#progress-section .progress-bar-container {
    flex-shrink: 0;
}

#progress-section .status-text {
    flex-shrink: 0;
}

#progress-section .log-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#progress-section .log-list {
    height: 100%;
}

/* Results section layout */
#result-section {
    display: flex;
    flex-direction: column;
}

#result-section .results-content-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* No scrollbar needed - using modal for details */

/* Enhanced button styling */
.btn-download,
.btn-upload {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download:active,
.btn-upload:active {
    transform: scale(0.98);
}

/* Mobile adjustments for fixed container */
@media (max-width: 768px) {
    .upload-container-wrapper {
        height: 520px;
    }
    
    #result-section .results-content-wrapper {
        padding-right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .upload-container-wrapper {
        height: 500px;
    }
}

/* ========================================== */
/* MODAL OVERLAY STYLES */
/* ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    border: 2px solid rgba(29, 99, 255, 0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid rgba(29, 99, 255, 0.1);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1D63FF 0%, #4A7FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-actions {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.btn-copy {
    background: linear-gradient(135deg, #1D63FF, #4A7FFF);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 4px 15px rgba(29, 99, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: linear-gradient(135deg, #1450E0, #1D63FF);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 99, 255, 0.4);
}

.btn-copy:active {
    transform: translateY(0);
}

.modal-log-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(29, 99, 255, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.modal-log-container .log-list {
    background: transparent;
    border: none;
    padding: 1rem;
    max-height: none;
    height: auto;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-log-container {
        max-height: 300px;
    }
    
    .btn-copy {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}
