/*
Theme Name: ToolGoAI Theme
Theme URI: https://toolgoai.com
Author: Muhammad Afzal 1
Author URI: https://toolgoai.com
Description: A modern, responsive WordPress theme for ToolGoAI - featuring 200+ online tools, calculators, and utilities. Optimized for SEO, AdSense, and performance.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toolgoai-theme
Tags: two-columns, right-sidebar, custom-menu, custom-logo, featured-images, sticky-post, translation-ready, blog, tools, calculator

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */

:root {
    /* --- PALETTE PRESETS (Uncomment one to activate) --- */

    /* OPTION 1: Modern Indigo (Vibrant, Premium, AI-Feel) - ACTIVE */
    --brand-primary: #6366f1;
    --brand-primary-light: #818cf8;
    --brand-primary-dark: #4f46e5;
    --brand-secondary: #0f172a;
    --brand-accent: #f43f5e;
    /* Rose 500 for a more modern pop */

    /* RGB VARIANTS for glass/gradients */
    --brand-primary-rgb: 99, 102, 241;
    --brand-secondary-rgb: 15, 23, 42;
    --brand-accent-rgb: 244, 63, 94;

    /* Status Colors */
    --success: #10b981;
    --danger: #ef4444;
    /* --- UTILITY CLEAN COLOR SYSTEM --- */
    --bg-main: #fcfcfc;
    --utility-blue: #007bff;
    --utility-green: #28a745;
    --utility-border: #e6e6e6;
    --utility-text: #333333;
    --utility-text-muted: #6c757d;
    --utility-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* --- Base Colors (Light Mode) --- */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;

    /* Borders */
    --border-color: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.4);

    /* --- Shadows (Premium Soft) --- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(var(--brand-primary-rgb), 0.3);

    /* --- Typography --- */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

    /* --- Spacing & Radius --- */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* --- Transitions --- */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    background-color: var(--bg-main) !important;
}

/* ==========================================================================
   PERFORMANCE & CLS OPTIMIZATION
   ========================================================================== */

/* Reserved space for Ad Containers to prevent CLS */
.ad-header-container,
.ad-container.ad-header,
.ad-container.ad-bottom {
    min-height: 100px; /* Minimum mobile height */
    margin: 1.5rem auto;
    background: rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (min-width: 768px) {
    .ad-header-container,
    .ad-container.ad-header {
        min-height: 90px; /* Standard leaderboard */
    }
}

@media (min-width: 992px) {
    .ad-header-container,
    .ad-container.ad-header {
        min-height: 250px; /* Large Header Ads */
    }
}

/* Reserve space for sidebars */
.tool-sidebar {
    min-height: 500px;
}

.tool-sidebar .widget {
    min-height: 200px;
}

/* Fix Header Jump */
.site-header.glass-header {
    height: 90px; /* Explicit height to prevent jump */
}

.site-header.glass-header.scrolled {
    height: 70px;
}

/* Prevent icon/image layout shifts */
.logo-icon-wrapper i {
    width: 1em;
    height: 1em;
    display: inline-block;
}

.icon-box i {
    width: 1em;
    height: 1em;
}

/* Tool container min-height for loading state */
.ai-tool-view-wrapper {
    min-height: 400px;
    background: rgba(var(--bg-surface-alt), 0.5);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

/* Ensure all tool components within the wrapper take full width */
.ai-tool-view-wrapper > div {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Breadcrumbs reserved space */
.ai-breadcrumbs {
    min-height: 38px;
}

/* Tool Header Title Gradient fix for CLS */
.utility-title.text-gradient {
    min-height: 1.25em;
}

/* ==========================================================================
   THEME MODES & OVERRIDES (Rewritten for Consistency)
   ========================================================================== */

/* --- Light Mode Explicit Override --- */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --border-color: #e2e8f0;

    /* Bootstrap Overrides (Light) */
    --bs-body-bg: var(--bg-body);
    --bs-body-color: var(--text-primary);
}

/* --- Dark Mode Variables (Pure Black / OLED) --- */
[data-theme="dark"] {
    --bg-body: #000000;
    /* Pure Black */
    --bg-surface: #0a0a0a;
    /* Neutral 950 */
    --bg-surface-alt: #171717;
    /* Neutral 900 */
    --bg-glass: rgba(10, 10, 10, 0.9);

    --text-primary: #ffffff;
    /* White */
    --text-secondary: #a3a3a3;
    /* Neutral 400 */
    --text-tertiary: #737373;
    /* Neutral 500 */

    --border-color: #262626;
    /* Neutral 800 */
    --border-glass: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.8);
    --glow-primary: 0 0 30px rgba(79, 70, 229, 0.3);
    /* switch glow to indigo */

    /* Bootstrap Overrides (Dark) */
    --bs-body-bg: var(--bg-body);
    --bs-body-color: var(--text-primary);
    --bs-heading-color: var(--text-primary);
    --bs-border-color: var(--border-color);
}

/* ==========================================================================
   THEME CONSISTENCY ENFORCEMENT
   ========================================================================== */

/* 1. Base Body Transition */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 2. Background Utilities Override */
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-light-subtle,
[data-theme="dark"] .bg-body {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary); /* Removed !important to allow utility classes */
}

[data-theme="dark"] .bg-surface-alt {
    background-color: var(--bg-surface-alt) !important;
}

/* 3. Text Utilities Override */
[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-body,
[data-theme="dark"] .text-black {
    color: var(--text-primary);
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

/* 4. Element Specific Overrides */
[data-theme="dark"] .card,
[data-theme="dark"] .site-header {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* 5. Form Inputs (Critical for visibility) */
[data-theme="dark"] input:not([type="submit"]):not([type="button"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] ::placeholder {
    color: var(--text-tertiary) !important;
    opacity: 1;
}

/* 6. Links */
[data-theme="dark"] a:not(.btn):not(.nav-link) {
    color: var(--brand-primary-light);
}

[data-theme="dark"] a:not(.btn):not(.nav-link):hover {
    color: var(--brand-primary);
}

/* 7. Tool Specific Dark Mode Adjustments */
[data-theme="dark"] .upload-zone, 
[data-theme="dark"] .upload-area,
[data-theme="dark"] .qr-advanced-container .glass-panel,
[data-theme="dark"] .pdf-tool-container .option-card {
    background-color: var(--bg-surface-alt) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .btn-premium-share {
    background: rgba(var(--brand-primary-rgb), 0.2) !important;
    color: var(--brand-primary-light) !important;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.3) !important;
}

[data-theme="dark"] .btn-premium-share:hover {
    background: var(--brand-primary) !important;
    color: white !important;
}

[data-theme="dark"] .qr-type-item {
    background-color: var(--bg-surface) !important;
    border-color: transparent !important;
}

[data-theme="dark"] .qr-type-item:hover {
    background-color: var(--bg-surface-alt) !important;
    border-color: var(--brand-primary) !important;
}

[data-theme="dark"] .qr-type-item.active {
    background-color: rgba(var(--brand-primary-rgb), 0.1) !important;
    border-color: var(--brand-primary) !important;
}

[data-theme="dark"] .upload-zone:hover {
    background-color: rgba(var(--brand-primary-rgb), 0.05) !important;
    border-color: var(--brand-primary) !important;
}

/* 8. Global Contrast Safety Net (Fixes white-on-white in dark mode) */
[data-theme="dark"] .section-light,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white-forced {
    color: var(--text-on-light, #111827) !important;
}

[data-theme="dark"] .section-light p,
[data-theme="dark"] .section-light span,
[data-theme="dark"] .section-light li,
[data-theme="dark"] .section-light label,
[data-theme="dark"] .bg-white p,
[data-theme="dark"] .bg-white span,
[data-theme="dark"] .bg-white li,
[data-theme="dark"] .bg-white label {
    color: inherit !important; /* Allow the parent's forced dark color to propagate */
}

/* QR Tool Specific - Ensure labels are visible if background didn't switch */
[data-theme="dark"] .qr-type-item span {
    color: var(--text-sec-dark, #9CA3AF) !important;
}

/* If the card stayed white, force the text back to dark */
[data-theme="dark"] .bg-white .qr-type-item span {
    color: var(--text-sec-light, #475569) !important;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--brand-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. UTILITIES & HELPERS
   ========================================================================== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.single-tool-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* Desktop/Mobile Utility Visibility */
@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }

    .d-md-inline {
        display: inline !important;
    }

    .d-md-none {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-flex {
        display: flex !important;
    }

    .d-xl-block {
        display: block !important;
    }

    .d-xl-none {
        display: none !important;
    }
}

/* Effect Utilities */
.glass-card {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.glass-header {
    background: rgba(var(--brand-secondary-rgb), 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- WIDTH UTILITIES --- */
.max-w-400 {
    max-width: 400px;
}

.max-w-500 {
    max-width: 500px;
}

.max-w-600 {
    max-width: 600px;
}

.max-w-700 {
    max-width: 700px;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.max-w-1000 {
    max-width: 1000px;
}

.max-w-1200 {
    max-width: 1200px;
}

.w-100 {
    width: 100% !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- BACKGROUND UTILITIES --- */
.bg-soft-primary {
    background: rgba(var(--brand-primary-rgb), 0.1);
    color: var(--brand-primary);
}

.bg-soft-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.bg-soft-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.bg-soft-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.bg-soft-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.bg-soft-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

/* --- ICON SHAPES --- */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-shape-sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   4. COMPONENTS: BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   5. COMPONENTS: CARDS
   ========================================================================== */
.card,
.tool-card,
.cat-card,
.tool-card-min {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

/* Hover Effect: Premium Lift & Glow */
.card:hover,
.tool-card:hover,
.cat-card:hover,
.tool-card-min:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-primary);
    border-color: var(--brand-primary-light);
    z-index: 5;
}

/* Tool Card Specifics */
.tool-card {
    padding: 2rem;
    height: 100%;
}

.tool-card-min {
    padding: 1.25rem;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}

/* Premium Icon Wrapper */
.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.1) 0%, rgba(var(--brand-primary-rgb), 0.05) 100%);
    color: var(--brand-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-base);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
    flex-shrink: 0;
}

.tool-card:hover .tool-icon-wrapper,
.tool-card-min:hover .tool-icon-wrapper {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 16px rgba(var(--brand-primary-rgb), 0.3);
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.tool-desc-short {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stretched Link Fix */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    content: "";
}

/* Tool Metadata in Cards */
.tool-meta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-category i {
    color: var(--brand-primary);
    opacity: 0.7;
}

/* Category Card Specifics */
.cat-card {
    padding: 1.5rem;
    align-items: center;
    text-align: center;
    text-decoration: none;
    height: 100%;
}

.cat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    transition: all var(--transition-fast);
}

.cat-card:hover .cat-icon {
    background: var(--brand-primary);
    color: white;
    transform: rotateY(180deg);
}

.cat-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cat-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cat-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-surface-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    color: var(--text-secondary);
}

/* Category Colors */
.color-blue {
    color: #3b82f6;
}

.color-blue:hover {
    background: #3b82f6;
}

.color-green {
    color: #10b981;
}

.color-green:hover {
    background: #10b981;
}

.color-orange {
    color: #f97316;
}

.color-orange:hover {
    background: #f97316;
}

.color-purple {
    color: #a855f7;
}

.color-purple:hover {
    background: #a855f7;
}

.color-red {
    color: #ef4444;
}

.color-red:hover {
    background: #ef4444;
}

.color-indigo {
    color: #6366f1;
}

.color-indigo:hover {
    background: #6366f1;
}

/* ==========================================================================
   6. HEADER & NAVIGATION (Redesigned)
   ========================================================================== */
.site-header.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.0);
    /* Start transparent */
    padding: 1.25rem 0;
}

/* Scrolled State (Sticky) */
.site-header.glass-header.scrolled,
.site-header.glass-header:hover {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-header.glass-header.scrolled,
[data-theme="dark"] .site-header.glass-header:hover {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 1. Logo */
.site-branding .logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* 2. Centered Nav */
.main-navigation.centered-nav .primary-menu {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-surface);
    padding: 0.5rem 1.75rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.main-navigation a:hover {
    color: var(--brand-primary);
}

/* Glass Dropdown */
.sub-menu.glass-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    transition: all 0.2s;
    z-index: 1001;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.sub-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.sub-menu li a:hover {
    background: var(--bg-surface-alt);
    color: var(--brand-primary);
}

/* 3. Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--bg-surface-alt);
    color: var(--brand-primary);
}

/* --- Premium Mobile Drawer Redesign --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--background-glass);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-glass);
    z-index: 2100;
    transition: all 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100dvh; /* Use dynamic viewport height for better mobile support */
}

[data-theme="dark"] .mobile-drawer {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.05);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-glass);
}

.drawer-logo {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    border: none;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: var(--brand-primary);
    color: white;
    transform: rotate(90deg);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

.mobile-search-premium .input-group {
    background: var(--bg-surface-alt);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.mobile-search-premium .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    padding-left: 1rem;
}

.mobile-search-premium .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0.95rem;
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-item {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-drawer.active .drawer-item,
.mobile-drawer.open .drawer-item {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered entry */
.drawer-item:nth-child(1) { transition-delay: 0.1s; }
.drawer-item:nth-child(2) { transition-delay: 0.15s; }
.drawer-item:nth-child(3) { transition-delay: 0.2s; }
.drawer-item:nth-child(4) { transition-delay: 0.25s; }
.drawer-item:nth-child(5) { transition-delay: 0.3s; }

.drawer-item > a,
.drawer-submenu-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.drawer-item > a i {
    width: 24px;
    font-size: 1.1rem;
    color: var(--brand-primary);
}

.drawer-item > a:hover,
.drawer-submenu-toggle:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-primary);
}

.drawer-submenu-toggle {
    cursor: pointer;
    width: 100%;
    border: none;
    background: transparent;
}

.drawer-submenu-toggle i:last-child {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.has-submenu.active .drawer-submenu-toggle i:last-child {
    transform: rotate(180deg);
}

.drawer-submenu {
    list-style: none;
    padding: 0.5rem 0 0.5rem 3.5rem;
    display: none;
}

.has-submenu.active .drawer-submenu {
    display: block;
}

.drawer-submenu a {
    display: block;
    padding: 0.6rem 0;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.drawer-submenu a:hover {
    color: var(--brand-primary);
}

.drawer-footer {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--border-glass);
}

.drawer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.social-icon:hover {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.drawer-copyright {
    text-align: center;
}

.drawer-copyright p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

body.drawer-open {
    overflow: hidden;
}



#theme-toggle {
    z-index: 9999;
    position: relative;
    cursor: pointer !important;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white !important;
    border: none;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, #fbbf24, #b45309);
}

.action-btn:hover {
    background: var(--bg-surface-alt);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* Language Selector Wrapper */
.lang-selector-wrapper {
    position: relative;
    /* Ensure dropdown is anchored to this */
    display: inline-block;
}

/* Language Button Redesign (Glass & Gold) */
.lang-btn-premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    font-weight: 700;
    color: var(--brand-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lang-btn-premium:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.lang-btn-premium .lang-code {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Dropdown Panel - Properly Positioned 'Inside' Context */
.lang-glass-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    /* Just below button */
    right: 0;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    z-index: 1000;

    /* Hidden State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Show when Active */
.lang-glass-dropdown.active,
.lang-selector-wrapper.active .lang-glass-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: left;
}

.lang-link:hover,
.lang-link.active {
    background: var(--bg-surface-alt);
    color: var(--brand-primary);
}

[data-theme="dark"] .lang-btn-premium {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .lang-btn-premium:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

[data-theme="dark"] .lang-glass-dropdown {
    background: #1e293b;
    /* Slate 800 */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Enhanced Scroll To Top (Modern Squircle) */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: var(--bg-surface);
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: 12px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
    border-color: transparent;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* ==========================================================================
   7. SECTIONS & LAYOUT
   ========================================================================== */
/* Cleaned empty ruleset */
.home-section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Grids */
.tool-grid,
.category-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Benefits Section Specifics */
.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    background: var(--bg-surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works (Steps) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.1);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background: #0f172a;
    /* Always dark slate for premium look */
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    position: relative;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--brand-primary);
    color: white;
    transform: rotate(360deg);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   9. ANIMATIONS
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-header {
        padding: 0.5rem 0;
    }

    .main-navigation {
        display: none;
    }

    /* Handled by JS mobile menu */

    .btn-lg {
        width: 100%;
    }
}

/* ==========================================================================
   11. MODERN HERO SECTION (REWRITE)
   ========================================================================== */

/* --- MODERN HERO SECTION (REWRITE) --- */
.hero-modern {
    position: relative;
    /* Reduced padding for compact height */
    padding: 3rem 0;
    overflow: hidden;
    /* Updated Premium Light Background: Subtle cool grey/blue tint */
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: var(--text-primary);
}

/* Updated Premium Animated Background Mesh */
.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
    filter: blur(80px);
    animation: gradientMove 20s ease infinite;
    z-index: 0;
}

@keyframes gradientMove {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-2%, -2%);
    }

    100% {
        transform: translate(0, 0);
    }
}

[data-theme="dark"] .hero-modern {
    /* Updated Premium Dark Background: Deeper, richer slate */
    background: radial-gradient(circle at top right, #0f172a, #020617);
}

[data-theme="dark"] .hero-modern::before {
    background:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
    animation: gradientMoveDark 30s ease infinite alternate;
}

@keyframes gradientMoveDark {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Dynamic Mesh Blobs */
.hero-modern::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--brand-primary-rgb), 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: float 10s ease-in-out infinite alternate;
}

/* Dark Mode: Deep Modern Mesh */
[data-theme="dark"] .hero-modern {
    background: #020617;
    /* Deepest Slate */
}

[data-theme="dark"] .hero-modern::before {
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 0%, transparent 100%);
    animation: rotateMesh 30s linear infinite;
}

@keyframes rotateMesh {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.hero-modern .container {
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}

/* --- Split Layout Redesign --- */

.hero-content-left {
    padding-right: 3rem;
    /* More space */
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Remove old glass card styles if unused or redefine */
/* Cleaned empty ruleset */

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    /* Light mode adjust */
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-badge-modern {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-primary);
}

.hero-title-modern {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    /* Slightly smaller for split */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: left;
    color: #1e293b;
    /* Dark slate */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-title-modern {
    color: #f1f5f9;
}

.hero-text-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899);
    /* Modern blue-purple-pink gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Removed old card style for cleaner look */
.hero-glass-card {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 !important;
    /* Remove internal padding */
}

/* .hero-glass-card {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-glass-card {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
} */

.hero-desc-modern {
    font-size: clamp(1rem, 2vw, 1.15rem);
    /* Larger intro text */
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 0 1.5rem 0;
    /* More breathing room */
    line-height: 1.6;
    text-align: left;
    font-weight: 400;
}

.hero-btns-modern {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2.5rem;
}

.tags-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* --- Right Side Visuals --- */
.hero-visual-right {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* perspective: 1000px; */
}

/* Abstract Shapes */
.hero-abstract-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    opacity: 0.1;
    animation: morphShape 10s ease-in-out infinite;
}

.shape-main {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    filter: blur(40px);
}

.shape-sub {
    bottom: 20%;
    left: 20%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
    filter: blur(30px);
    animation-direction: reverse;
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(360deg);
    }
}

/* Floating Icon Grid */
.hero-icon-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.icon-card {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: 20%;
    transform: rotate(5deg);
    animation-delay: 0s;
}


.card-2 {
    top: 50%;
    right: 50%;
    transform: rotate(-5deg);
    color: var(--brand-secondary);
    animation-delay: 1s;
}

@media (max-width: 768px) {

    /* Force Bento Icons Visible on Mobile */
    .bento-icon-wrapper,
    .bento-icon,
    .bento-item .bento-icon-wrapper,
    .bento-item .bento-icon {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 40px;
        /* Ensure size */
        height: 40px;
    }

    .bento-icon-wrapper i,
    .bento-item i {
        font-size: 1.25rem !important;
        color: var(--brand-primary) !important;
        display: inline-block !important;
    }
}

.card-3 {
    bottom: 20%;
    right: 15%;
    transform: rotate(10deg);
    color: var(--brand-accent);
    animation-delay: 2s;
}

/* Button & Tag Updates */
/* Button & Tag Updates */
.btn-glow {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.6);
    color: white;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn-glass:hover {
    background: var(--bg-surface);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-glass {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Floating 3D Elements */
.floating-element {
    position: absolute;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.float-1 {
    top: 10%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 15px;
    transform: rotate(-15deg);
}

.float-2 {
    bottom: 15%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
    border-radius: 50%;
    opacity: 0.8;
    animation-delay: 1s;
}

.float-3 {
    top: 20%;
    right: 10%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
    border-radius: 10px;
    transform: rotate(15deg);
    animation-delay: 2s;
}

.float-4 {
    bottom: 25%;
    left: 10%;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation-delay: 3s;
}

/* Tags */
.hero-tags-modern {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1s backwards;
}

.tag-glass {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   BENTO GRID SYSTEM
   ========================================================================== */

/* Nav Wrapper (Sticky-ish) */
.bento-nav-wrapper {
    position: sticky;
    top: 70px;
    /* Below fixed header */
    z-index: 900;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .bento-nav-wrapper {
    background: rgba(15, 23, 42, 0.8);
}

.bento-nav {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Scrollbar space */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.bento-nav::-webkit-scrollbar {
    display: none;
}

.bento-pill {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    user-select: none;
}

.bento-pill:hover,
.bento-pill.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Grid Layout */
.bento-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 140px;
    /* Base row height */
    gap: 1.5rem;
    padding-bottom: 4rem;
}

/* Item Spanning */
.bento-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
}

/* Feature Large: 2x2 */
.feature-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Feature Medium: 2x1 */
.feature-medium {
    grid-column: span 2;
    grid-row: span 1;
}

/* Standard: 1x1 */
.standard {
    grid-column: span 1;
    grid-row: span 1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .bento-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-large,
    .feature-medium {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .bento-grid-container {
        grid-template-columns: 1fr;
        /* Stack all */
    }

    .feature-large,
    .feature-medium,
    .standard {
        grid-column: span 1;
        grid-row: auto;
        min-height: 140px;
    }

    .feature-large {
        min-height: 280px;
    }
}

/* Card Styles */
.bento-card,
.bento-card-min {
    width: 100%;
    height: 100%;
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Cleaned empty ruleset */

/* Feature Card Styling */
.card-featured {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    color: white;
    padding: 2rem;
    flex-direction: column;
    justify-content: space-between;
    border: none;
}

.card-featured h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.card-featured p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.badge-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-bento-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #4f46e5;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: transform 0.2s;
}

.btn-bento-action:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.bento-visual {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-10deg);
}

/* Gradient Card */
.card-gradient-1 {
    background: linear-gradient(135deg, #f97316, #fca5a5);
    color: white;
    padding: 1.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border: none;
}

.card-gradient-1 h3,
.card-gradient-1 .bento-icon {
    color: white;
}

.card-gradient-1 .bento-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Min Card (Standard) */
.bento-card-min {
    flex-direction: column;
    padding: 1.25rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.bento-card-min:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--bg-surface-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
    transition: background 0.3s;
}

.bento-card-min:hover .bento-icon-wrapper {
    background: var(--brand-primary);
    color: white;
}

.bento-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.bento-info span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: block;
    line-height: 1.3;
}

.view-more-tile .more-card {
    background: var(--bg-surface-alt);
    border-style: dashed;
}

.view-more-tile .more-card:hover {
    background: var(--bg-surface);
    border-style: solid;
}

/* ==========================================================================
   12. GOOGLE TRANSLATE HIDE (PREMIUM LOADER)
   ========================================================================== */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

/* Hide the tooltip/popups */
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}

/* Hide broken X button if it appears */
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure no spacing */
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* Hide "Suggest an edit" popup */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   12. BOOTSTRAP DARK MODE COMPATIBILITY
   ========================================================================== */
html[data-theme="dark"] .card,
body[data-theme="dark"] .card {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-control {
    background-color: var(--bg-surface-alt);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-surface);
    border-color: var(--brand-primary);
    color: var(--text-primary);
}

html[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
}

html[data-theme="dark"] .dropdown-item,
body[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

html[data-theme="dark"] .dropdown-item:hover,
body[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--bg-surface-alt);
    color: var(--brand-primary);
}

html[data-theme="dark"] .list-group-item,
body[data-theme="dark"] .list-group-item {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .modal-content,
body[data-theme="dark"] .modal-content {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .table,
body[data-theme="dark"] .table {
    color: var(--text-primary);
    border-color: var(--border-color);
}

html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th,
body[data-theme="dark"] .table td,
body[data-theme="dark"] .table th {
    border-color: var(--border-color);
}

/* ==========================================================================
   13. MOBILE MENU
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: block;
    /* Override d-none if needed, but d-xl-none handles responsiveness */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: var(--bg-surface);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
    display: block !important;
    /* Force show */
}

.mobile-menu-close:hover {
    color: var(--danger);
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-list a:hover {
    color: var(--brand-primary);
    padding-left: 10px;
}

/* Submenu Styles */
.mobile-menu-list .sub-menu {
    display: none;
    padding-left: 1.5rem;
    background: var(--bg-surface-alt);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-menu-list .sub-menu li {
    border-bottom: none;
}

.mobile-menu-list .sub-menu a {
    font-size: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.dropdown-toggle {
    float: right;
    padding: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: transform 0.3s;
}


/* ==========================================================================
   14. TOOL CARD METADATA (FIX)
   ========================================================================== */
.tool-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.tool-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-surface-alt);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tool-card:hover .tool-category {
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
}

.tool-category svg,
.tool-category i {
    opacity: 0.7;
}

/* ==========================================================================
   15. AUDIT FIXES (Mobile & Accessibility)
   ========================================================================== */

/* Better mobile spacing */
@media (max-width: 768px) {

    .section-spacing,
    .recent-tools-section,
    .tools-grid-section {
        padding: 2rem 0 !important;
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Touch targets for mobile */
@media (max-width: 768px) {

    button,
    .btn,
    .nav-link,
    .mobile-menu-list a {
        min-height: 44px;
        display: flex;
        /* Helps centering if needed */
        align-items: center;
    }
}

/* Accessibility: Darker text for better contrast in light mode */
body {
    color: #1e293b;
    /* Slate 800 - darker than original slate 600 */
}

p {
    color: #334155;
    /* Slate 700 */
}

/* Accessibility: Focus states */
/* ==========================================================================
   16. UI/UX & LAYOUT FIXES (Anti-Gravity & Dark Mode)
   ========================================================================== */

/* --- 1. Dark Mode Enforcement for Elementor --- */
[data-theme="dark"] .elementor-section,
[data-theme="dark"] .elementor-column,
[data-theme="dark"] .elementor-widget {
    background-color: transparent !important;
    /* Let theme bg show through unless specific */
    color: var(--text-primary) !important;
}

[data-theme="dark"] .elementor-heading-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .elementor-text-editor {
    color: var(--text-secondary) !important;
}

/* Fix Elementor backgrounds that might be hardcoded white */
[data-theme="dark"] .elementor-background-overlay {
    background-color: var(--bg-body) !important;
    opacity: 0.9;
}

/* --- 2. "Anti-Gravity" Layout Fixes (Card Stability) --- */
.tool-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Force equal height in flex row */
}

/* Ensure cards have a solid structure */
.card,
.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Contains child floats/margins */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    will-change: transform;
    /* Hint for compositor */
    position: relative;
    z-index: 1;
}

/* Prevent overlap on hover */
.card:hover,
.tool-card:hover {
    z-index: 10;
    transform: translateY(-5px);
    /* Lift up */
    box-shadow: var(--shadow-xl);
}

/* Fix content spacing inside cards */
.card-body {
    flex: 1 1 auto;
    /* Grow to fill space */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Footer/Action area sticks to bottom */
.card-footer {
    margin-top: auto;
    background: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* --- 3. Grid Stability --- */
.row {
    margin-left: -1rem;
    margin-right: -1rem;
}

.col-12,
.col-md-4,
.col-lg-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- 4. Z-index & Overlay Fixes --- */
/* Ensure overlays interact correctly */
.mobile-menu-overlay {
    z-index: 10000;
    /* Topmost */
}

/* Fix sticky header overlap */
.sticky-header {
    z-index: 9999;
}

/* --- 5. Text Visibility in Dark Mode --- */
[data-theme="dark"] .card,
[data-theme="dark"] .tool-card {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span {
    color: var(--text-secondary);
}


/* --- 6. Header & Search Dark Mode Enforcement --- */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .site-header {
    background-color: var(--bg-surface);
    /* Ensures it swaps to dark slate */
    border-bottom-color: var(--border-color);
}

/* Sticky Header Glass Effect Override for Dark Mode */
.sticky-header {
    background: var(--bg-glass);
    /* Uses rgba(30, 41, 59, 0.7) in dark mode */
}

/* Search Bar & Inputs */
input[type="text"],
input[type="search"],
input[type="email"],
textarea,
select {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--bg-surface-alt);
    /* Slate 700 */
    color: var(--text-primary);
    /* White */
    border-color: var(--border-color);
}

[data-theme="dark"] ::placeholder {
    color: var(--text-tertiary);
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

[data-theme="dark"] .mobile-menu-panel {
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-color);
}

/* Icons in Header */
.action-btn {
    color: var(--text-primary);
    background: transparent;
}

/* ==========================================================================
   17. GLOBAL ELEMENTOR OVERRIDES (Color System Integration)
   ========================================================================== */

/* Force Elementor Global Colors to match Theme Variables 
   (This overrides Elementor's Kit settings at the CSS level) 
*/
:root {
    /* Elementor Primary */
    --e-global-color-primary: var(--brand-primary);
    /* Elementor Secondary */
    --e-global-color-secondary: var(--text-secondary);
    /* Often used for subheadings */
    /* Elementor Text */
    --e-global-color-text: var(--text-primary);
    /* Elementor Accent */
    --e-global-color-accent: var(--brand-accent);
}

/* Ensure Elementor internal variables adapt to Dark Mode */
[data-theme="dark"] {
    --e-global-color-primary: var(--brand-primary-light);
    /* Lighter in dark mode for visibility */
    --e-global-color-secondary: var(--text-secondary);
    --e-global-color-text: var(--text-primary);
    --e-global-color-accent: var(--brand-accent);
}

/* Fix Elementor Widget Backgrounds */
[data-theme="dark"] .elementor-element {
    --e-global-color-background: transparent;
}

/* Specific Fix for Elementor Cards/Icon Boxes */
.elementor-widget-icon-box .elementor-icon-box-wrapper,
.elementor-widget-image-box .elementor-image-box-wrapper {
    transition: all var(--transition-base);
}

[data-theme="dark"] .elementor-widget-icon-box .elementor-icon-box-title,
[data-theme="dark"] .elementor-widget-image-box .elementor-image-box-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .elementor-widget-icon-box .elementor-icon-box-description,
[data-theme="dark"] .elementor-widget-image-box .elementor-image-box-description {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   18. DEEP CLEAN: AGGRESSIVE TEXT COLOR ENFORCEMENT
   ========================================================================== */

/* 1. General Text Reset for Dark Mode (High Specificity) */
[data-theme="dark"] body,
[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span:not(.badge):not(.btn) {
    color: var(--text-secondary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

/* 2. Elementor Specific Overrides (Fighting Hardcoded Colors) */
[data-theme="dark"] .elementor-heading-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .elementor-text-editor {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .elementor-text-editor strong,
[data-theme="dark"] .elementor-text-editor b {
    color: var(--text-primary) !important;
}

/* 3. Links (Ensure they are visible) */
[data-theme="dark"] a {
    color: var(--brand-primary-light);
}

[data-theme="dark"] a:hover {
    color: var(--brand-accent);
}

/* 4. Inputs & Placeholders (Crucial for Forms) */
[data-theme="dark"] ::-webkit-input-placeholder {
    color: var(--text-tertiary) !important;
    opacity: 1;
}

[data-theme="dark"] :-moz-placeholder {
    color: var(--text-tertiary) !important;
    opacity: 1;
}

[data-theme="dark"] ::-moz-placeholder {
    color: var(--text-tertiary) !important;
    opacity: 1;
}

[data-theme="dark"] :-ms-input-placeholder {
    color: var(--text-tertiary) !important;
    opacity: 1;
}

/* 5. Icon Boxes & Lists */
[data-theme="dark"] .elementor-icon {
    color: var(--brand-primary-light) !important;
}

[data-theme="dark"] .elementor-icon-list-text {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .elementor-icon-list-icon {
    color: var(--brand-primary) !important;
}

/* 6. Accordions & Toggles */
[data-theme="dark"] .elementor-accordion-title,
[data-theme="dark"] .elementor-toggle-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .elementor-accordion-content,
[data-theme="dark"] .elementor-toggle-content {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .elementor-tab-title {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .elementor-tab-title.elementor-active {
    color: var(--brand-primary) !important;
}

/* All Tools Hero Fix */
.all-tools-hero {
    background: var(--bg-body);
    padding-top: 100px;
}

.badge-gold {
    background: rgba(217, 119, 6, 0.1);
    color: var(--brand-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #d97706, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-gold {
    box-shadow: 0 10px 40px -10px rgba(217, 119, 6, 0.2) !important;
}

.card-hover-gold {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
    display: block;
    height: 100%;
    border-radius: 12px;
    background: var(--bg-surface);
    text-decoration: none;
}

.card-hover-gold:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.15);
    border-color: var(--brand-primary);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-soft-gold {
    background: rgba(217, 119, 6, 0.1);
}

.text-gold {
    color: var(--brand-primary);
}

.container-narrow {
    max-width: 900px;
}

.bento-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-pill {
    border: none;
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-pill:hover,
.nav-pill.active {
    background: var(--brand-primary);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* Force Dark Mode Button Visibility */
[data-theme='dark'] .theme-toggle-btn i {
    color: var(--brand-primary-light);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

[data-theme='dark'] .shadow-gold {
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.15) !important;
}

[data-theme='light'] body,
[data-theme='light'] #page {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

[data-theme='dark'] {
    --brand-secondary: #94a3b8;
}

[data-theme='dark'] .hero-modern h1,
[data-theme='dark'] .hero-modern h2,
[data-theme='dark'] .hero-modern p,
[data-theme='dark'] .all-tools-hero h1,
[data-theme='dark'] .all-tools-hero p {
    color: #f8fafc !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

[data-theme='dark'] .text-muted {
    color: #cbd5e1 !important;
}

.all-tools-hero .text-muted,
.tool-item .text-muted,
[data-theme='dark'] .tool-item p {
    color: #888 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme='dark'] .tool-item .text-muted {
    color: #cbd5e1 !important;
}

.tool-item p,
.tool-item .small,
.tool-item .text-muted {
    color: #555 !important;
}

[data-theme='dark'] .tool-item p,
[data-theme='dark'] .tool-item .small,
[data-theme='dark'] .tool-item .text-muted {
    color: #e2e8f0 !important;
    opacity: 0.9;
}

.tool-item p,
.tool-item .small {
    color: #333 !important;
    font-weight: 600 !important;
}

.tool-item p,
.tool-item .small {
    color: #d97706 !important;
    font-weight: 500;
}

[data-theme='dark'] .tool-item p,
[data-theme='dark'] .tool-item .small {
    color: #fbbf24 !important;
}

/* ==========================================================================
   MEGA MENU STYLES
   ========================================================================== */
.mega-menu-parent {
    position: relative !important;
}

.sub-menu.mega-dropdown {
    width: 600px;
    padding: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: none;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    /* Ensure z-index is sufficient */
}

/* Hover State */
.mega-menu-parent:hover .mega-dropdown {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Grid Layouts */
.mega-grid-4,
.mega-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
    grid-auto-flow: column;
    /* Try to fill columns evenly */
    gap: 1.5rem;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

/* Heading Style */
.mega-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Basic Links */
.mega-col>a:not(.btn):not(.mega-link-icon) {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.mega-col>a:not(.btn):not(.mega-link-icon):hover {
    background: var(--bg-surface-alt);
    color: var(--brand-primary);
    transform: translateX(3px);
}

/* Icon Links (Popular/New) */
.mega-link-icon {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.mega-link-icon i {
    font-size: 1.25rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.mega-link-icon div {
    display: flex;
    flex-direction: column;
}

.mega-link-icon strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.mega-link-icon small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.3;
}

.mega-link-icon:hover {
    background: var(--bg-surface-alt);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Slight lift */
    transform: translateY(-2px);
}

.mega-link-icon:hover strong {
    color: var(--brand-primary);
}

/* Ensure mega menus work on desktop only, otherwise fallback to simple list on mobile */
@media (max-width: 1199px) {
    .sub-menu.mega-dropdown {
        width: 100%;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        opacity: 1;
        /* For mobile drawer toggle */
        display: none;
        /* Hidden by default until toggled via JS */
    }

    .mega-grid-4,
    .mega-grid-3 {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding-left: 1rem;
    }

    .mega-menu-parent:hover .mega-dropdown {
        /* Remove hover effect on mobile */
        display: none;
    }

    /* Re-apply display block only when .open class is added via JS */
    .menu-item-has-children.open .mega-dropdown {
        display: block !important;
    }
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    /* Deep Dark backdrop */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 650px;
    padding: 1.5rem;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal-overlay.active .search-modal-content {
    transform: translateY(0) scale(1);
}

/* Glass panel inside modal */
.search-modal-content .glass-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.search-form-modal .input-group-text {
    padding-left: 1.5rem;
}

.search-form-modal .form-control {
    font-size: 1.25rem;
    padding: 1rem;
    box-shadow: none !important;
}

.search-form-modal .btn {
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================================================
   FIX: Mobile Category Scroll (Horizontal Swipe)
   ========================================================================== */
@media (max-width: 991px) {

    /* Container: Allow horizontal scroll */
    .bento-nav-wrapper .container {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    /* Flex Container: Force single row */
    .bento-nav {
        display: flex;
        flex-wrap: nowrap !important;
        /* Prevent wrapping */
        overflow-x: auto;
        /* Enable scroll */
        justify-content: flex-start !important;
        /* Align left */
        padding: 1rem 1rem;
        /* Better touch target */
        white-space: nowrap;
        gap: 10px;
        /* Spacing between pills */
        -webkit-overflow-scrolling: touch;
        /* Smooth iOS scroll */
        scrollbar-width: none;
        /* Hide Scrollbar Firefox */
    }

    /* Hide Scrollbar Chrome/Safari */
    .bento-nav::-webkit-scrollbar {
        display: none;
    }

    /* Fix Pill Sizing */
    .bento-nav .nav-pill,
    .bento-nav .filter-pill,
    .bento-nav .bento-pill {
        flex: 0 0 auto;
        /* Don't shrink */
        width: auto !important;
        margin: 0 !important;
        /* Managed by gap */
        border-radius: 50px;
        padding: 8px 16px;
        font-size: 0.9rem;
        background: var(--bg-surface-alt);
        border: 1px solid var(--border-color);
        box-shadow: none;
    }

    /* Active State Fix */
    .bento-nav .nav-pill.active,
    .bento-nav .filter-pill.active {
        background: var(--brand-primary);
        color: white;
        border-color: var(--brand-primary);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    /* Make background solid to cover content underneath */
    .bento-nav-wrapper {
        background-color: var(--bg-body) !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
}

/* Related Tools Section (Refined & Compact) */
.related-tools-section {
    position: relative;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.related-tools-section .section-title-sm {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

/* Fix Missing Grid */
.related-tools-section .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .related-tools-section .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    .related-tools-section .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Design (Minimal & Clean) */
.related-tools-section .tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    text-decoration: none;
    width: 100%;
    /* Force full width of grid cell */
    min-width: 0;
    /* Critical for flex/grid items to shrink/wrap correctly */
}

.related-tools-section .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.related-tools-section .tool-icon-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    background: var(--bg-surface-alt);
    border-radius: 12px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.related-tools-section .tool-card:hover .tool-icon-wrapper {
    background: var(--brand-primary);
    color: white;
}

.related-tools-section .tool-content {
    width: 100%;
    flex: 1;
}

.related-tools-section .entry-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
    /* Allow normal wrapping */
    overflow-wrap: break-word;
}

/* Fix title link color and stretched link */
.related-tools-section .entry-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.related-tools-section .entry-title a.stretched-link::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    z-index: 2;
}

.related-tools-section .tool-card:hover .entry-title a {
    color: var(--brand-primary);
}

.related-tools-section .entry-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.related-tools-section .entry-summary p {
    margin: 0;
    font-size: inherit;
    color: inherit;
}

/* Breadcrumb Premium Pill Styles */
.ai-bread-btn {
    text-decoration: none;
    background: var(--bg-surface-alt);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-bread-btn:hover {
    background: var(--brand-primary);
    color: white !important;
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.2);
}

.ai-sep {
    color: var(--text-tertiary);
    opacity: 0.4;
    font-size: 0.7rem;
}

.ai-current-page {
    font-weight: 600;
    color: var(--brand-primary);
    padding: 8px 12px;
}

/* Fix Lints */
.tool-desc-short {
    line-clamp: 2;
    /* Compatibility */
}

.hero-text-gradient {
    background-clip: text;
    /* Compatibility */
}

/* Tool Header Enhancements */
.tool-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tool-title-large {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-title-large i {
    font-size: 0.85em;
    max-width: 1.2em;
}

.tool-description-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

/* AI Tool SPA Grid */
.ai-grid-2-col-custom {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1400px) {
    .ai-grid-2-col-custom {
        grid-template-columns: 400px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .ai-grid-2-col-custom {
        grid-template-columns: 1fr;
    }
}

/* Sidebar & Content Layout */
.ai-main-grid-wrapper {
    align-items: start;
}

@media (max-width: 991px) {
    .tool-title-large {
        font-size: 2rem;
    }

    .tool-header {
        text-align: center;
    }

    .tool-title-large {
        justify-content: center;
    }
}

[data-theme="dark"] .related-tools-section .tool-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="dark"] .related-tools-section .tool-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .related-tools-section .entry-summary {
    color: var(--text-secondary);
}

/* ==========================================================================
   FORCE PREMIUM DARK FOOTER (High Contrast Fix)
   ========================================================================== */
.site-footer {
    background-color: #0f172a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 4rem;
    color: #e2e8f0 !important;
    /* Light Slate - High Visibility */
}

/* Headings */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .footer-heading,
.site-footer .widget-title {
    color: #ffffff !important;
    font-weight: 700;
}

/* Text Content */
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .footer-bio {
    color: #cbd5e1 !important;
    /* Light Gray */
}

/* Links */
.site-footer a,
.site-footer .footer-links-list a,
.site-footer .menu-item a {
    color: #cbd5e1 !important;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer .footer-links-list a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    padding-left: 5px;
}

/* Social Icons */
.site-footer .social-link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.site-footer .social-link:hover {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    /* Slate 400 */
}

/* SEARCH MODAL OVERLAY */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal-overlay.active {
    display: flex !important;
    opacity: 1;
}

/* Lower search content on mobile */
@media (max-width: 768px) {
    .search-modal-overlay {
        align-items: flex-start !important;
        padding-top: 15vh;
    }
}

.search-modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal-overlay.active .search-modal-content {
    transform: scale(1);
}

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s;
}

.search-modal-close:hover {
    transform: rotate(90deg);
    color: var(--brand-primary);
}

/* ==========================================================================
   20. RESPONSIVE ICON ADJUSTMENTS (GLOBAL)
   ========================================================================== */

/* 1. Large Feature Card Icon */
.bento-card.card-featured .bento-visual {
    position: absolute;
    bottom: -15px;
    right: -15px;
    display: flex;
    /* Default visible */
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    transform: rotate(-10deg);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0;
}

.bento-card.card-featured .bento-visual i,
.bento-card.card-featured .bento-visual svg {
    font-size: 140px;
    /* Large default */
    color: white;
    display: block;
}

/* Hover Effect */
.bento-card.card-featured:hover .bento-visual {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.25;
    bottom: -10px;
    right: -10px;
}


/* 2. Medium Feature Card Icon */
.bento-card.card-gradient-1 .bento-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    /* Default visible */
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: white;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.bento-card.card-gradient-1:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}


/* 3. Standard Tool Cards Icons */
.bento-item.standard .bento-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--bg-surface-alt);
    border-radius: 12px;
    display: flex;
    /* Default visible */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.bento-item.standard:hover .bento-icon-wrapper {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}


/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991px) {
    /* Tablet & Mobile Adjustments */

    .bento-card.card-featured .bento-visual i,
    .bento-card.card-featured .bento-visual svg {
        font-size: 100px;
        /* Reduce size slightly */
    }
}

@media (max-width: 768px) {
    /* Mobile Constraints */

    .bento-card.card-featured .bento-visual {
        bottom: -10px;
        right: -10px;
        opacity: 0.2;
        /* Slightly more visible on mobile */
    }

    .bento-card.card-featured .bento-visual i,
    .bento-card.card-featured .bento-visual svg {
        font-size: 80px;
        /* Smaller to fit card */
    }

    .bento-card.card-gradient-1 .bento-icon {
        width: 48px;
        height: 48px;
        /* Compact */
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    /* Force visibility override */
    .bento-visual,
    .bento-icon,
    .bento-icon-wrapper {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--brand-primary, #4f46e5);
    /* Fallback color */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 99999;
    /* Ensure it's on top of everything */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--brand-secondary, #4338ca);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top i {
    font-size: 20px;
    line-height: 1;
    color: #ffffff;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   ARCHIVE TOOLS GRID LAYOUT
   ========================================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.tools-grid .tool-card {
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tools-grid .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   TOOL SPECIFIC STYLES: UNIT CONVERTER
   ========================================================================== */
.type-btn {
    background: rgba(var(--brand-primary-rgb), 0.05);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}

.type-btn:hover {
    background: rgba(var(--brand-primary-rgb), 0.1);
}

.type-btn.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(var(--brand-primary-rgb), 0.2);
}

.unit-box {
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
}

[data-theme="dark"] .unit-box {
    background: rgba(255, 255, 255, 0.02);
}

.unit-result-display {
    height: 50px;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    border-bottom: 2px solid rgba(var(--brand-primary-rgb), 0.1);
}

.btn-swap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(var(--brand-primary-rgb), 0.3);
}

.btn-swap:hover {
    transform: rotate(180deg);
}

/* ==========================================================================
   TOOL SPECIFIC STYLES: FAST CONVERTERS
   ========================================================================== */
.converter-hub .hub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.converter-hub .hub-card i {
    font-size: 2rem;
    color: var(--brand-primary);
}

.converter-hub .hub-card span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.converter-hub .hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(var(--brand-primary-rgb), 0.15);
    border-color: var(--brand-primary);
}

.converter-hub .hub-card.active {
    background: var(--brand-gradient);
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(var(--brand-primary-rgb), 0.3);
}

.converter-hub .hub-card.active i,
.converter-hub .hub-card.active span {
    color: white;
}

.btn-icon-premium {
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    color: var(--brand-primary);
}

.btn-icon-premium:hover {
    transform: rotate(180deg);
    background: var(--brand-primary);
    color: white;
}

[data-theme="dark"] .btn-icon-premium {
    background: #1e293b;
    border-color: #334155;
    color: white;
}

/* ==========================================================================
   TOOL SPECIFIC STYLES: ROBOTS TXT
   ========================================================================== */
.robots-output-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    height: 400px;
    overflow-y: auto;
}

[data-theme="dark"] .robots-output-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.disallow-row input {
    flex-grow: 1;
}

.bg-light-soft {
    background: rgba(var(--brand-primary-rgb), 0.05);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR TOOLS
   ========================================================================== */
@media (max-width: 768px) {

    /* Unit Converter */
    .conversion-types {
        gap: 0.5rem !important;
    }

    .type-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        white-space: nowrap;
    }

    /* Fast Converters */
    .converter-hub .hub-card {
        padding: 1rem;
    }

    .converter-hub .hub-card i {
        font-size: 1.5rem;
    }

    .converter-hub .hub-card span {
        font-size: 0.8rem;
    }

    /* General Input Groups */
    .input-group-lg>.form-control,
    .input-group-lg>.form-select,
    .input-group-lg>.input-group-text,
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   TOOL SPECIFIC STYLES: META TAG GENERATOR
   ========================================================================== */
.search-preview-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

[data-theme="dark"] .search-preview-box {
    background: #202124;
    border: 1px solid #3c4043;
}

.search-preview-title {
    color: #1a0dab;
    font-size: 1.25rem;
    line-height: 1.3;
}

[data-theme="dark"] .search-preview-title {
    color: #8ab4f8;
}

.search-preview-desc {
    color: #4d5156;
    line-height: 1.5;
}

[data-theme="dark"] .search-preview-desc {
    color: #bdc1c6;
}

.code-output-container {
    position: relative;
    background: rgba(var(--brand-primary-rgb), 0.03);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.1);
    border-radius: 15px;
    height: 350px;
    overflow-y: auto;
}

.btn-copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 1px solid #eee;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-code:hover {
    background: var(--brand-primary);
    color: white;
}

[data-theme="dark"] .btn-copy-code {
    background: #1e293b;
    border-color: #334155;
    color: white;
}

.char-counter {
    color: var(--text-tertiary);
}

.char-danger {
    color: #ef4444;
    font-weight: 700;
}

/* ==========================================================================
   TOOL SPECIFIC STYLES: WALL DECOR CALCULATOR
   ========================================================================== */
.decor-calc-container {
    max-width: 1000px;
    margin: 0 auto;
}

.calc-card {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.result-card {
    background: var(--bg-surface-alt);
    padding: 25px;
    border-radius: 24px;
    border: 2px solid var(--brand-primary);
    position: sticky;
    top: 100px;
}

.site-header {
    padding: 10px 0;
    border-bottom:
        1px solid var(--utility-border);
    margin-bottom: 20px;
}

.big-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
}

.panel-breakdown table td {
    vertical-align: middle;
    padding: 12px 8px;
    color: var(--text-secondary);
}

.panel-breakdown .h5 {
    color: var(--text-primary);
    font-weight: 700;
}

.form-control-sm {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .result-card {
        margin-top: 20px;
        position: static;
    }
}

/* ==========================================================================
   RELATED TOOLS SECTION (Matches Home Page Grid)
   ========================================================================== */
.related-tools-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-tools-section .section-title-sm {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-tools-section .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Ensure tool-card styles are consistent */
.related-tools-section .tool-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.related-tools-section .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}


/* ==========================================================================
   GLOBAL RESPONSIVE UTILITIES FOR TOOLS (Fixes Layout Issues)
   ========================================================================== */
.calculator-container,
.tool-container,
.currency-converter-container,
.yt-downloader-container,
.ocr-tool-container,
.wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

@media (min-width: 992px) {

    .calculator-container,
    .yt-downloader-container,
    .ocr-tool-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .container,
    .tool-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .input-group,
    .d-flex.gap-3,
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .btn,
    .form-control,
    .form-select {
        width: 100%;
        margin-bottom: 10px !important;
    }

    /* Ensure content doesn't overflow */
    img,
    iframe,
    video {
        max-width: 100%;
        height: auto;
    }

    /* Specific Tool Fixes */
    #cc-swap {
        transform: rotate(90deg);
        margin: 10px auto;
        display: block;
    }
}

/* Navigation & CTA Buttons - Premium */
.btn-all-tools.ai-bread-btn {
    font-size: 0.9rem;
    color: var(--utility-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.ai-bread-btn:hover {
    color: var(--utility-blue);
    text-decoration: underline;
}

.ai-sep {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0 4px;
}

.ai-current-page {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--utility-text);
}

.btn-all-tools-premium {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface-alt, #f8f9fa);
    color: var(--text-primary, #333);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--border-color, #e0e0e0);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-all-tools-premium:hover {
    background: var(--brand-primary, #4F46E5);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary, #4F46E5);
}

.btn-all-tools-premium i {
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 576px) {
    .btn-all-tools-premium {
        width: 100% !important;
        justify-content: center;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   UTILITY CLEAN OVERHAUL
   ========================================================================== */

.single-tool-page {
    padding: 2rem 0 4rem;
    color: var(--utility-text);
}

.utility-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.utility-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 900px;
}

.utility-card {
    background: #ffffff !important;
    border: 1px solid var(--utility-border) !important;
    box-shadow: var(--utility-shadow) !important;
    border-radius: 8px !important;
    backdrop-filter: none !important;
}

.utility-sidebar-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #444 !important;
    border-bottom: 1px solid var(--utility-border);
    padding-bottom: 12px;
    margin-bottom: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cleanup: Removing Immersive Phase 2 Effects */
.immersive-particles,
.epic-tool-hero,
.epic-hero-bg,
.hero-icon-wrapper,
.pulse-bg {
    display: none !important;
}

@media (max-width: 768px) {
    .utility-title {
        font-size: 1.75rem;
    }
}

/* --- BREADCRUMBS STYLING --- */
.ai-breadcrumbs {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ai-bread-btn {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.ai-bread-btn:hover {
    color: var(--brand-primary);
}

.ai-sep {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.ai-current-page {
    font-weight: 600;
    color: var(--text-primary);
}

[data-theme="dark"] .ai-breadcrumbs {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
}

[data-theme="dark"] .ai-bread-btn {
    color: var(--text-tertiary);
}

[data-theme="dark"] .ai-bread-btn:hover {
    color: var(--brand-primary);
}

[data-theme="dark"] .ai-current-page {
    color: var(--text-primary);
}

/* --- FIX HEADER OVERLAP --- */
.single-tool-page {
    padding-top: 60px;
}

.single-tool-page {
    padding-top: 90px;
}

/* --- GLOBAL FULL WIDTH OVERRIDES --- */
.single-tool-page .max-w-1000,
.single-tool-page .max-w-800,
.single-tool-page .container {
    max-width: 100% !important;
    width: 100% !important;
}

.single-tool-page .row {
    margin-left: 0;
    margin-right: 0;
}

.tool-container-premium {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.tool-header-premium {
    position: relative;
    margin-bottom: 3rem;
}

/* --- GLOBAL TOOL WRAPPER CONSTRAINT --- */
.ai-tool-view-wrapper {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   SEARCH MODAL STYLES (Fixed)
   ========================================================================== */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-modal-overlay.active .search-modal-content {
    transform: scale(1);
}

.search-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
}

.search-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

/* ==========================================================================
   FOOTER HEIGHT REDUCTION (User Request)
   ========================================================================== */
.site-footer,
.footer {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
}

.footer-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.footer-col {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-col {
        margin-bottom: 0;
    }
}


/* ==========================================================================
   FIX: HERO & HOME SECTIONS COLOR CORRECTION
   ========================================================================== */

/* 1. Benefits Section (100% Free Tools) */
.benefit-item {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: var(--brand-primary);
    color: white;
    transform: rotateY(180deg);
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Grid Layout for Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 2. How It Works Section (Steps) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.step-card {
    background: var(--bg-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.step-num {
    display: block;
    width: 50px;
    height: 50px;
    background: var(--brand-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    line-height: 50px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(var(--brand-primary-rgb), 0.3);
}

.step-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 991px) {
    .process-steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}