/* ============================================================
   1. ROOT VARIABLES & THEMES
   ============================================================ */
:root {
    /* 🌟 THE FOXIX PREMIUM ORANGE BRAND PALETTE */
    --primary-color: #ff7300;
    /* Core Fierce Thunder Orange */
    --primary-dark: #cc5c00;
    /* Deep Shadow Amber Hover */
    --primary-light: #ff8c33;
    /* Balanced Soft Bright Accent */
    --secondary-color: #ff9c26;
    /* Light Sun Secondary Accent */
    --accent-color: #ffa842;
    /* Radiant Highlight Tone */

    /* Map missing variables */
    --primary: var(--primary-color);
    --secondary: var(--secondary-color);
    --accent: var(--accent-color);
    --text: var(--text-primary);
    --text-muted: var(--text-secondary);
    --card-bg: var(--bg-secondary);
    --transition: all var(--transition-normal);

    /* Default Light Mode Base Surfaces */
    --bg-primary: #fdf0e0;
    /* Soft Premium Bone White background */
    --bg-secondary: #fef5ec;
    /* Structural card background layer */
    --bg-tertiary: #e5e7eb;
    /* Tool inner wells / blocks */
    --text-primary: #0f172a;
    /* Deep slate charcoal text (super crisp) */
    --text-secondary: #475569;
    /* Classy slate secondary text descriptions */
    --text-tertiary: #94a3b8;
    /* Subtle utility details / placeholders */
    --border-color: #e2e8f0;
    /* Clean hairline separation borders */

    /* Glass Panels - Light Mode Accent Tones */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 115, 0, 0.08);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(255, 115, 0, 0.06);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);

    /* Spacing (Untouched) */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius (Untouched) */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions (Untouched) */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;

    /* Font (Untouched) */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
}

/* 🌙 Premium Space Dark Mode Override */
body.dark-theme {
    --bg-primary: #0b0f17;
    /* High-end Deep Cyber Space Black */
    --bg-secondary: #09101F;
    /* Sleek card containers panels */
    --bg-tertiary: #1e293b;
    /* Focused dark active tabs / inner fields */
    --text-primary: #f8fafc;
    /* Clear high-contrast clean ice white */
    --text-secondary: #94a3b8;
    /* Clean soft description details text */
    --text-tertiary: #64748b;
    /* Understated muted tags / shortcuts labels */
    --border-color: #1e293b;
    /* Midnight slate element divider borders */

    /* Map missing variables */
    --primary: var(--primary-color);
    --secondary: var(--secondary-color);
    --accent: var(--accent-color);
    --text: var(--text-primary);
    --text-muted: var(--text-secondary);
    --card-bg: var(--bg-secondary);
    --transition: all var(--transition-normal);

    /* Glass Panels - Dark Mode Accent Glows */
    --glass-bg: rgba(11, 15, 23, 0.8);
    --glass-border: rgba(255, 115, 0, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   2. GLOBAL STYLES
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

/* Prevent layout shift on scrollbar */
html {
    overflow-y: scroll;
}

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

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 115, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 115, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-card {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
}

.btn-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#sub-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
    text-align: center;
}

/* ============================================================
   5. NAVBAR
   ============================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 40px;
    /* Sets a perfect, clean size inside the navbar */
    width: auto;
    /* Maintains your logo's exact aspect ratio */
    object-fit: contain;
    display: block;
}

.logo-icon {
    font-size: var(--font-size-2xl);
}

.nav-links {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

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

.navbar-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-xl);
    transition: transform var(--transition-normal);
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
}

.tool-search {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    width: 200px;
    transition: all var(--transition-normal);
}

.tool-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: var(--spacing-xs);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

/* ============================================================
   6. PREMIUM SIDEBAR UTILITY ELEMENTS
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: 30px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.premium-card {
    /* 🌐 Uses your dynamic container colors */
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out;
    /* 🌐 Switches hairline colors seamlessly */
    border: 2px solid var(--border-color);
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.premium-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.merge-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.merge-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.explore-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
}

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

.features-list {
    list-style: none;
    margin-top: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.features-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.features-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-lg);
}

.features-list li a {
    /* 🌐 Dynamic link shift */
    color: var(--text-secondary);
    text-decoration: underline dotted;
}

.features-list li a:hover {
    font-weight: bold;
    transform: translateY(-2px);
}

.features-list li:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}


/* Hero Section */
.hero {
    padding: 8rem 0 1rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

/* Three-color gradient for special emphasis */
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 720px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 115, 0, 0.05);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 115, 0, 0.15);
    }
}

/* Responsive adaptations for new hero */
@media (max-width: 768px) {

    /* ============================================================
   17. RESPONSIVE DESIGN
   ============================================================ */

        /* Layout Alignment for Mobile Header Row */
        .navbar-content {
            display: flex;
            justify-content: flex-start;
            /* Aligns hamburger and logo to the left */
            align-items: center;
            gap: var(--spacing-md);
            position: relative;
        }

        .hamburger {
            display: flex;
        }

        /* FIX: Force menu items to hide vertically, NOT show horizontally */
        .nav-links {
            display: none !important;
            /* Forces it to be completely hidden on mobile by default */
            position: absolute;
            top: 70px;
            /* Adjust this based on your navbar height */
            left: 0;
            right: 0;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            flex-direction: column !important;
            /* Stack links vertically */
            gap: var(--spacing-lg);
            padding: var(--spacing-lg);
            border-bottom: 1px solid var(--glass-border);
            align-items: flex-start;
            width: 100%;
            z-index: 999;
        }

        /* When active (clicked), drop down the full menu smoothly */
        .nav-links.active {
            display: flex !important;
            /* Forces it to show up when clicked! */
        }

        /* Hide search tool input field on tablets and phones */
        .tool-search {
            display: none !important;
        }

        /* Push the theme toggle to the absolute far right boundary */
        .navbar-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
        }

        /* Preserving your original layout updates below */
        .main-container {
            grid-template-columns: 1fr !important;
            padding: var(--spacing-md) !important;
            /* Reduces outer margin gaps */
            gap: var(--spacing-xl) !important;
            margin-top: 80px !important;
            /* Gives perfect breathing space below navbar */
        }

        /* FIXED: Removes the padding compressing the card from both sides */
        .merge-section {
            padding: 0 !important;
            /* Stops the squishing side forces completely */
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }

        /* Reduces inner padding slightly for mobile so input area looks vast */
        .tool-header {
            padding: var(--spacing-lg) var(--spacing-md) !important;
        }

        .mode-content {
            padding: var(--spacing-lg) var(--spacing-md) !important;
        }

        /* Makes action buttons look sleek stacked on top of each other on mobile devices */
        .button-action-row {
            flex-direction: column !important;
            gap: var(--spacing-sm) !important;
        }

        .action-btn {
            width: 100% !important;
            /* Full width tap target buttons */
        }

        .section-title {
            font-size: var(--font-size-2xl) !important;
        }

        .hero-content {
            grid-template-columns: 1fr;
            gap: var(--spacing-2xl);
        }

        .hero-title {
            font-size: 2rem;
        }

        .hero-subtitle {
            font-size: var(--font-size-base);
        }

        .hero-buttons {
            flex-direction: column;
        }

        .hero-stats {
            flex-direction: column;
            gap: var(--spacing-lg);
        }

        .illustration {
            display: none;
        }

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

        .testimonial-card {
            flex: 0 0 100%;
        }

        .slider-nav {
            width: 35px;
            height: 35px;
            font-size: var(--font-size-base);
        }

        .newsletter-form {
            flex-direction: column;
        }

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

        .modal-content {
            max-height: 90vh;
        }

        .tool-actions {
            flex-direction: column;
        }

        .hero {
            padding: var(--spacing-2xl) 0;
            min-height: auto;
        }

        h1 {
            font-size: var(--font-size-2xl);
        }

        h2 {
            font-size: var(--font-size-xl);
        }

        .tools-section {
            padding: var(--spacing-2xl) 0;
        }

        .why-choose-us,
        .testimonials,
        .faq,
        .blog,
        .newsletter,
        .footer {
            padding: var(--spacing-2xl) 0;
        }
    }


    .hero {
        padding: 8rem 0 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }


/* Tool Section */
.tool-section {
    padding: 5rem 0;
}

.tool-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 620px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: var(--transition);
}

body.dark-theme .tool-container {
    background: rgba(9, 16, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.tool-sidebar {
    padding: 2.5rem;
    border-right: 1px solid var(--glass-border);
}

.tool-output {
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

body.dark-theme .glass-input {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.glass-input:hover {
    border-color: rgba(255, 115, 0, 0.3);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.15);
}

select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

select.glass-input option {
    background-color: #0b0f17;
    color: #f8fafc;
}

body.light-theme select.glass-input option {
    background-color: #fef5ec;
    color: #0f172a;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Dynamic float placeholder */
.placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 3rem;
}

.placeholder::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 115, 0, 0.08) 0%, rgba(255, 0, 127, 0.02) 60%, transparent 100%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
    animation: pulseSphere 4s infinite ease-in-out alternate;
}

body.dark-theme .placeholder::before {
    background: radial-gradient(circle, rgba(255, 115, 0, 0.1) 0%, rgba(255, 0, 127, 0.03) 70%, transparent 100%);
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
    animation: floatIcon 4s infinite ease-in-out alternate;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 115, 0, 0.3));
}

.placeholder h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    z-index: 1;
}

.placeholder p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.5;
    z-index: 1;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes pulseSphere {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

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

/* Toggle Switch */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.toggle-container span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--primary-color);
    border-color: rgba(255, 115, 0, 0.3);
}

input:checked+.slider:before {
    transform: translateX(22px);
    background-color: white;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Button layouts & spacing inside sidebar */
.btn-full {
    width: 100%;
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 115, 0, 0.35);
    border: 1px solid rgba(255, 115, 0, 0.2);
    padding: 0.95rem var(--spacing-lg);
    border-radius: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 115, 0, 0.45);
    border-color: rgba(255, 115, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.95rem var(--spacing-lg);
    border-radius: 12px;
    transition: var(--transition);
}

body.dark-theme .btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.btn-outline:hover {
    background: rgba(255, 115, 0, 0.05);
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.headline-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.dark-theme .headline-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.headline-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 115, 0, 0.15);
}

.headline-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-right: 40px;
}

.card-metrics {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.metric-label {
    color: var(--text-muted);
}

.card-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

body.dark-theme .icon-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.icon-btn:hover {
    background: rgba(255, 115, 0, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.icon-btn.copied {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* SEO Content */
.seo-content {
    padding: 5rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ============================================================
   10. FAQ SECTION
   ============================================================ */

.faq {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-secondary);
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    margin-bottom: 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
}

/* ============================================================
   11. BLOG SECTION
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    text-align: center;
    color: var(--text-secondary);
}

.blog {
    padding: var(--spacing-3xl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-3xl);
    width: 100%;
    margin-top: var(--spacing-xl);
    /* 🌐 Fix: Prevents the left box from stretching vertically */
    align-items: start;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    transition: all var(--transition-normal);
    cursor: pointer;

    /* 🌐 Fix: Structural Sizing Locks */
    width: 100%;
    /* Allows it to completely fill its 350px grid track */
    max-width: 350px;
    /* Hard-locks its horizontal growth ceiling */
    height: auto;
    /* Snaps its height perfectly around its text content */
}

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

.blog-image {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
}

.blog-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.blog-card p {
    margin-bottom: var(--spacing-lg);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.blog-date {
    font-weight: 500;
}

.blog-category {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ============================================================
   MAIN BLOG CONTAINER
   ============================================================ */

.main-blog {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    transition: all var(--transition-normal);

    width: 100%;

    /* Scrollable */
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar */

.main-blog::-webkit-scrollbar {
    width: 8px;
}

.main-blog::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.main-blog::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.main-blog::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================================
   BLOG TYPOGRAPHY
   ============================================================ */

.main-blog h2 {
    margin-bottom: 25px;
    line-height: 1.4;
}

.main-blog h3 {
    margin-top: 35px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.main-blog h4 {
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.main-blog p {
    margin-bottom: 18px;
    line-height: 1.9;
}

.main-blog ul {
    margin: 18px 0 25px 30px;
}

.main-blog li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.main-blog strong {
    color: var(--text-primary);
}

.main-blog a {
    color: var(--primary-color);
}

.main-blog a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   12. NEWSLETTER SECTION
   ============================================================ */

.newsletter {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

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

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-2xl);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
}

.newsletter-form button {
    padding: var(--spacing-md) var(--spacing-2xl);
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.form-message {
    font-size: var(--font-size-sm);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.form-message.show {
    opacity: 1;
}

/* ============================================================
   13. FOOTER
   ============================================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.footer-section p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-md);
}

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

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Ensure the link container handles the inline SVG properly */
.social-links a.insta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Match the exact vector stroke to your white text color */
.insta-icon {
    width: 18px;
    /* Micro-adjusted to match the visual height of text icons */
    height: 18px;
    stroke: currentColor;
    /* Automatically forces the SVG color to match 'white' from your parent class */
    transition: transform var(--transition-normal);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-2xl);
}

.footer-bottom p {
    margin: var(--spacing-md) 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}


/* Responsive */
@media (max-width: 1024px) {
    .tool-container {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .hero-title {
        font-size: 3rem;
    }

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

@media (max-width: 768px) {

    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }

    .blog-card,
    .main-blog {
        max-width: 100%;
        width: 100%;
    }

    .main-blog {
        height: 400px;
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .main-blog h2 {
        font-size: 1.5rem;
    }

    .main-blog h3 {
        font-size: 1.3rem;
    }

    .main-blog h4 {
        font-size: 1.1rem;
    }

    .main-blog p {
        line-height: 1.8;
    }

    .main-blog ul {
        margin-left: 22px;
    }

    .hamburger {
        display: flex;
        z-index: 1010;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1009;
        padding: 2rem;
    }

    .nav-links.active {
        display: flex !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

.hidden {
    display: none !important;
}

/* ==========================================
   PREMIUM UPGRADE & NEW FEATURE STYLES
   ========================================== */

/* Progress Bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    width: 0%;
    z-index: 2000;
    transition: width 0.1s ease-out;
}

/* Ambient Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.5s ease-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    right: -100px;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body.light-theme .glow-orb {
    opacity: 0.06;
}

/* Favorites Header Button */
.favorites-btn {
    position: relative;
    padding: 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.favorites-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

body.light-theme .favorites-btn {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .favorites-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.favorites-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff007f, var(--secondary));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(255, 0, 127, 0.4);
    min-width: 18px;
    text-align: center;
}

/* Favorites Drawer */
.favorites-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    /* Hidden offscreen by default */
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2005;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorites-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favorite-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    transition: var(--transition);
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
}

body.light-theme .favorite-item {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .favorite-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.favorite-item p {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding-right: 40px;
    word-break: break-word;
    color: var(--text);
}

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

.favorite-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
}

.no-favorites {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 3rem 0;
    line-height: 1.5;
}

.drawer-footer {
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2002;
    transition: opacity 0.3s ease;
}

/* Circular SVG Metric Chart Styles */
.metric-circle-box {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-circle-box svg {
    width: 54px;
    height: 54px;
    transform: rotate(-90deg);
}

.metric-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
}

body.light-theme .metric-circle-bg {
    stroke: rgba(0, 0, 0, 0.05);
}

.metric-circle-val {
    fill: none;
    stroke: var(--metric-color, var(--primary));
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 157.08;
    /* 2 * pi * r where r = 25 */
    stroke-dashoffset: 157.08;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-circle-text {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.card-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

body.light-theme .metric-row {
    background: rgba(0, 0, 0, 0.01);
}

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

.metric-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-info-value {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Previews Overhaul */
.preview-section {
    padding: 5rem 0;
}

.preview-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.preview-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 14px;
}

body.light-theme .preview-tabs {
    background: rgba(0, 0, 0, 0.02);
}

.preview-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.preview-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-h), var(--primary-s), 40%, 0.2);
}

.preview-container {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.preview-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.preview-platform-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Device & Social Toggles */
.serp-toggle-device,
.social-toggle-platform {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 3px;
    border-radius: 8px;
}

body.light-theme .serp-toggle-device,
body.light-theme .social-toggle-platform {
    background: rgba(0, 0, 0, 0.02);
}

.device-btn,
.platform-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.device-btn.active,
.platform-btn.active {
    background: var(--primary);
    color: white;
}

/* Google SERP Preview Style */
.serp-preview-box {
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
}

.serp-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.serp-favicon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f3f4;
    color: #1a0dab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid #dadce0;
}

.serp-meta {
    display: flex;
    flex-direction: column;
}

.serp-domain {
    font-size: 0.85rem;
    color: #202124;
    line-height: 1.2;
}

body.dark-theme .serp-domain {
    color: #e8eaed;
}

.serp-breadcrumbs {
    font-size: 0.75rem;
    color: #5f6368;
}

body.dark-theme .serp-breadcrumbs {
    color: #bdc1c6;
}

.serp-title {
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a0dab;
    margin-bottom: 0.4rem;
    cursor: pointer;
    line-height: 1.3;
}

.serp-title:hover {
    text-decoration: underline;
}

body.dark-theme .serp-title {
    color: #8ab4f8;
}

.serp-desc {
    font-family: Arial, sans-serif;
    font-size: 0.875rem;
    color: #4d5156;
    line-height: 1.5;
}

body.dark-theme .serp-desc {
    color: #bdc1c6;
}

/* Mobile SERP Adaptations */
.serp-preview-box.mobile {
    max-width: 375px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .serp-preview-box.mobile {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.serp-preview-box.mobile .serp-title {
    font-size: 1.1rem;
}

/* Social Preview Box Styles */
.social-preview-box {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.social-preview-box.facebook {
    background: #ffffff;
    color: #1c1e21;
}

body.dark-theme .social-preview-box.facebook {
    background: #242526;
    color: #e4e6eb;
}

.social-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.social-author-info {
    display: flex;
    flex-direction: column;
}

.social-author {
    font-weight: 700;
    font-size: 0.9rem;
}

.social-time {
    font-size: 0.75rem;
    color: #65676b;
}

body.dark-theme .social-time {
    color: #b0b3b8;
}

.social-post-caption {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.social-card-inner {
    border: 1px solid #dddfe2;
    border-radius: 8px;
    overflow: hidden;
}

body.dark-theme .social-card-inner {
    border-color: #3e4042;
}

.social-img-placeholder {
    height: 200px;
    background: #f0f2f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .social-img-placeholder {
    background: #18191a;
}

.social-img-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-h), 20%, 0.1), rgba(var(--secondary-h), 20%, 0.1));
}

.social-img-icon {
    font-size: 3rem;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.social-card-content {
    padding: 0.8rem 1rem;
}

.social-site {
    font-size: 0.75rem;
    color: #606770;
    text-transform: uppercase;
}

body.dark-theme .social-site {
    color: #b0b3b8;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.2rem 0;
    line-height: 1.3;
}

.social-meta-desc {
    font-size: 0.8rem;
    color: #606770;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-theme .social-meta-desc {
    color: #b0b3b8;
}

/* Twitter/X Specific Tweaks */
.social-preview-box.twitter {
    background: #ffffff;
    color: #0f1419;
    border-radius: 16px;
    border-color: #e1e8ed;
}

body.dark-theme .social-preview-box.twitter {
    background: #000000;
    color: #e7e9ea;
    border-color: #2f3336;
}

.social-preview-box.twitter .social-avatar {
    width: 36px;
    height: 36px;
    background: #1d9bf0;
}

.social-preview-box.twitter .social-card-inner {
    border-radius: 16px;
}

.social-preview-box.twitter .social-site {
    text-transform: lowercase;
}

/* YouTube Preview Card Style */
.youtube-preview-box {
    max-width: 480px;
    margin: 0 auto;
}

.youtube-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
}

body.dark-theme .youtube-card {
    background: #0f0f0f;
    border-color: #272727;
    box-shadow: none;
}

.youtube-thumbnail {
    height: 240px;
    background: linear-gradient(135deg, #111, #333);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
}

.youtube-thumb-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    filter: blur(15px);
}

.youtube-thumb-play {
    color: #ff0000;
    font-size: 2.5rem;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.youtube-card:hover .youtube-thumb-play {
    transform: scale(1.1);
}

.youtube-details {
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.75rem;
}

.youtube-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff0000;
}

.youtube-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.youtube-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f0f0f;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-theme .youtube-title {
    color: #f1f1f1;
}

.youtube-channel {
    font-size: 0.8rem;
    color: #606060;
}

body.dark-theme .youtube-channel {
    color: #aaa;
}

.youtube-views {
    font-size: 0.8rem;
    color: #606060;
}

body.dark-theme .youtube-views {
    color: #aaa;
}

/* Email Inbox Preview Style */
.email-preview-box {
    max-width: 450px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-theme .email-preview-box {
    background: #1a1a1a;
}

.email-inbox-header {
    background: #f2f6fc;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 700;
    font-size: 0.9rem;
    color: #444746;
}

body.dark-theme .email-inbox-header {
    background: #202124;
    border-color: #3c4043;
    color: #e8eaed;
}

.email-message-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
}

body.dark-theme .email-message-item {
    border-color: #3c4043;
}

.email-message-item.unread {
    background: #f8fafd;
}

body.dark-theme .email-message-item.unread {
    background: rgba(var(--primary-h), var(--primary-s), 40%, 0.05);
}

.email-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c2e7ff;
    color: #001d35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

body.dark-theme .email-avatar-circle {
    background: #004b75;
    color: #c2e7ff;
}

.email-content-block {
    flex: 1;
    overflow: hidden;
}

.email-sender-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.email-sender-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1f1f1f;
}

body.dark-theme .email-sender-name {
    color: #e8eaed;
}

.email-date {
    font-size: 0.75rem;
    color: #5e5e5e;
}

body.dark-theme .email-date {
    color: #9aa0a6;
}

.email-subject {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-theme .email-subject {
    color: #e8eaed;
}

.email-snippet {
    font-size: 0.8rem;
    color: #5e5e5e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-theme .email-snippet {
    color: #9aa0a6;
}

/* Animations & Interactive Touches */
@keyframes float {

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

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

.save-btn.active {
    color: #ffb700 !important;
}

.save-btn.active svg {
    fill: #ffb700 !important;
    stroke: #ffb700 !important;
}

/* Smooth Drawer Overlays */
body.drawer-open {
    overflow: hidden;
}

.drawer-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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