/**
 * AI Pulse Directory - High-End AIxploria UI/UX Design System
 * Supports Dark & Light Modes, Multi-Language, Social Share Modals & Interactive Upvoting
 */

:root,
:root[data-theme="dark"] {
    --bg-main: #080b12;
    --bg-surface: #0e1422;
    --bg-card: rgba(16, 23, 38, 0.75);
    --bg-card-hover: rgba(23, 32, 54, 0.95);
    --bg-input: #121929;
    --bg-glass: rgba(14, 20, 34, 0.8);
    --bg-dropdown: #0f172a;
    --bg-ribbon: rgba(255, 255, 255, 0.03);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.45);
    --border-focus: #6366f1;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #818cf8;

    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-gold: #f59e0b;

    --glow-primary: 0 0 35px rgba(99, 102, 241, 0.3);
    --glow-card: 0 14px 40px -10px rgba(0, 0, 0, 0.7);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-dropdown: #ffffff;
    --bg-ribbon: rgba(0, 0, 0, 0.03);

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(99, 102, 241, 0.45);
    --border-focus: #4f46e5;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-accent: #4f46e5;

    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    --glow-primary: 0 0 25px rgba(79, 70, 229, 0.15);
    --glow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[dir="rtl"] {
    text-align: right;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

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

/* Text Alignment Utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Layout Containers */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999999 !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.site-main-logo {
    height: 38px;
    width: auto;
    max-width: 190px;
    aspect-ratio: 608 / 152;
    object-fit: contain;
    display: block;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.brand-logo:hover .site-main-logo {
    transform: scale(1.03);
}

/* Light / Dark Mode logo switching */
html[data-theme="dark"] .logo-light-mode {
    display: none !important;
}

html[data-theme="dark"] .logo-dark-mode {
    display: block !important;
}

html[data-theme="light"] .logo-light-mode {
    display: block !important;
}

html[data-theme="light"] .logo-dark-mode {
    display: none !important;
}

/* Fallback when data-theme is not yet loaded */
:root:not([data-theme="light"]) .logo-light-mode {
    display: none;
}

:root:not([data-theme="light"]) .logo-dark-mode {
    display: block;
}

/* Footer Logo Size */
.footer-logo .site-main-logo {
    height: 42px;
    max-width: 210px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brand-name span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap !important;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link:focus {
    background: rgba(0, 0, 0, 0.04);
}

.bookmarks-link {
    position: relative;
}

.bookmark-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    line-height: 1.3;
    margin-left: 3px;
    min-width: 18px;
    text-align: center;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000000 !important;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

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

/* Explore Dropdown Menu */
.explore-menu {
    min-width: 320px;
    padding: 8px;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .explore-menu {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

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

.explore-nav-item:hover {
    background: rgba(99, 102, 241, 0.09);
}

.explore-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.explore-nav-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.explore-nav-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.explore-nav-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: normal;
}

.explore-nav-pill {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pill-purple {
    background: rgba(192, 132, 252, 0.2);
    color: #c084fc;
}

.pill-amber {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-login-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-login-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-login-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.header-submit-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* UI Controls: Theme Switcher & Language Switcher */
.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.1);
}

.lang-selector-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: var(--transition);
}

.lang-selector-btn:hover {
    border-color: var(--border-hover);
}

.lang-flag {
    font-size: 14px;
    line-height: 1;
}

.lang-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.lang-dropdown {
    min-width: 190px;
    right: 0;
    left: auto;
}

.user-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px 12px 3px 3px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--border-hover);
    color: var(--primary);
}

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

.btn-lg {
    padding: 13px 28px;
    font-size: 15.5px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   AIXPLORIA-INSPIRED HERO & HEADER SECTION
   ========================================================================== */
.aix-hero-wrapper {
    text-align: center;
    padding: 45px 0 25px;
}

.aix-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {

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

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

.hero-pill-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 16px auto;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-accent);
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.aix-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.aix-mascot {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.45);
    animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {

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

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

.aix-hero-heading {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.aix-count-pill {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.aix-slogan {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.aix-slogan .star {
    color: #fbbf24;
}

/* ==========================================================================
   CATEGORY HERO ABSTRACT WAVE & GLOW BACKDROP
   ========================================================================== */
.category-hero-abstract {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 50px 24px 44px;
    margin: 16px auto 32px;
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.35), 0 0 40px rgba(99, 102, 241, 0.08);
    text-align: center;
}

.hero-abstract-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.abstract-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(65px);
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
}

.abstract-orb.orb-1 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.38) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 80%);
    top: -90px;
    left: 10%;
    animation: orbFloat1 9s ease-in-out infinite alternate;
}

.abstract-orb.orb-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.32) 0%, rgba(6, 182, 212, 0.18) 50%, transparent 80%);
    bottom: -110px;
    right: 10%;
    animation: orbFloat2 11s ease-in-out infinite alternate;
}

.abstract-orb.orb-3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(99, 102, 241, 0.12) 60%, transparent 80%);
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation: orbFloat3 7s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(35px, 25px) scale(1.1);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, -20px) scale(1.12);
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(-50%, 0) scale(1);
    }

    100% {
        transform: translate(-50%, -15px) scale(1.18);
    }
}

.abstract-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.45;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}

[data-theme="light"] .abstract-grid-pattern {
    background-image: radial-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px);
    opacity: 0.6;
}

.abstract-waves-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    opacity: 0.85;
    pointer-events: none;
}

.category-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

/* ==========================================================================
   AIXPLORIA TOOLBAR & FILTERS
   ========================================================================== */
.filter-section {
    position: relative;
    z-index: 20;
}

.aix-toolbar,
.aix-toolbar-card {
    position: relative;
    z-index: 20;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aix-toolbar-top {
    position: relative;
    z-index: 21;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.aix-search-box {
    position: relative;
    z-index: 22;
    flex: 1 1 280px;
    min-width: 220px;
    display: flex;
    align-items: center;
    background: var(--bg-input, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 5px 8px 5px 14px;
    gap: 8px;
    transition: var(--transition);
}

.aix-search-box:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    background: var(--bg-card);
}

.aix-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14.5px;
    padding: 7px 0;
}

.aix-search-box input::placeholder {
    color: var(--text-muted);
}

.search-shortcut-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    user-select: none;
    line-height: 1;
}

.aix-search-btn {
    background: var(--primary-gradient, linear-gradient(135deg, #6366f1, #4f46e5));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.aix-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.aix-selects-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aix-cat-select {
    background: var(--bg-input, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 9px 14px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 175px;
}

.aix-cat-select:focus,
.aix-cat-select:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: var(--bg-card);
}

.aix-cat-select option {
    background: var(--bg-dropdown, #0f172a);
    color: var(--text-primary, #fff);
}

.aix-toolbar-divider {
    height: 1px;
    background: var(--border-subtle);
    width: 100%;
}

.aix-toolbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.aix-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}

.aix-chips-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aix-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface, rgba(255, 255, 255, 0.03));
    color: var(--text-secondary);
    transition: all 0.2s ease;
    user-select: none;
}

.aix-chip:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

/* Unified High-Contrast Active State */
.aix-chip.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    font-weight: 700;
    transform: translateY(-1px);
}

.aix-toolbar-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}

.aix-toolbar-count strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Stats Ribbon */
.aix-stats-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0 20px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.aix-stat strong {
    color: var(--text-primary);
}

.aix-stat-dot {
    width: 4px;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 50%;
}

/* Category Page Badges (Wrapping, STRICTLY NON-SCROLLING) */
.aix-category-slider,
.category-badges-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    padding: 4px 0 16px !important;
    max-width: 1040px !important;
    margin: 0 auto 20px !important;
}

.aix-cat-pill,
.category-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 9999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.aix-cat-pill:hover,
.category-badge-pill:hover {
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.aix-cat-pill.active,
.category-badge-pill.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: #6366f1 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.cat-pill-count,
.category-badge-pill .pill-count {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.aix-cat-pill.active .cat-pill-count,
.category-badge-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ==========================================================================
   AIXPLORIA-INSPIRED TOOL CARDS
   ========================================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.aix-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.aix-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(99, 102, 241, 0.15);
}

.aix-card-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-accent);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.aix-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    position: relative;
}

/* Ensure title never overlaps ribbon badge */
.aix-card.has-ribbon .aix-card-header,
.aix-card:has(.aix-card-ribbon) .aix-card-header {
    padding-right: 140px;
}

.aix-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.aix-avatar img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.aix-tool-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.aix-tool-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.aix-tool-title a {
    color: inherit;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: break-word;
}

.aix-tool-title a:hover {
    color: var(--primary);
}

.verified-badge {
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    vertical-align: middle;
}

.aix-category-name {
    font-size: 12px;
    color: var(--text-accent);
    font-weight: 600;
    text-decoration: none;
}

.aix-category-name:hover {
    text-decoration: underline;
}

/* Quoted Excerpt */
.aix-quote-box {
    margin: 10px 0 12px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    font-style: italic;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Card Meta Tags / Pills */
.tool-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tag-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.tag-pill:hover {
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.1);
}

/* Interactive Card Middle Bar: Upvotes & Share */
.aix-card-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.aix-upvote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.aix-upvote-btn:hover,
.aix-upvote-btn.upvoted {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.aix-meta-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.aix-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

.aix-icon-btn.active {
    color: var(--accent-rose);
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.1);
}

/* Ensure card with open dropdown stays above all neighboring cards */
.aix-card:has(.share-dialog.active),
.aix-card.dropdown-open {
    z-index: 100 !important;
}

/* Social Share Dialog Wrapper */
.tool-share-wrap {
    position: relative;
    display: inline-flex;
}

/* Base Social Share Dialog */
.share-dialog {
    position: absolute;
    background: var(--bg-dropdown, #181d2f);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 12px);
    padding: 8px;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border-subtle);
    z-index: 99999;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 185px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Single Tool Page Header: Opens Downward */
.tool-hero-actions .tool-share-wrap .share-dialog {
    top: calc(100% + 10px);
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* AI Tool Cards (Home, Category, Bookmarks Grid):
   Opens UPWARD (Dropup) cleanly above the share button so it never gets clipped or buried by lower cards */
.aix-card .tool-share-wrap .share-dialog,
.aix-card .share-dialog {
    bottom: calc(100% + 8px);
    top: auto;
    right: 0;
    left: auto;
    transform: none;
    transform-origin: bottom right;
}

/* Pointer arrow on dropup */
.aix-card .tool-share-wrap .share-dialog::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 11px;
    width: 9px;
    height: 9px;
    background: var(--bg-dropdown, #181d2f);
    border-right: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    transform: rotate(45deg);
}

@keyframes dropupFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.97);
    }

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

.share-dialog.active {
    display: flex;
    animation: dropupFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.share-item .share-icon-svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.share-item:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.share-item:hover .share-icon-svg {
    color: var(--primary);
}

/* Card Bottom Footer */
.aix-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.deal-claim-btn {
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.deal-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
    opacity: 0.95;
}

.tool-pricing-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.pricing-Free {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pricing-Freemium {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.pricing-Paid {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pricing-Free-Trial {
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   TOOL DETAIL & REVIEWS (AIXPLORIA STYLE)
   ========================================================================== */
.tool-detail-section {
    padding: 30px 0 80px;
}

.tool-header-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    margin-bottom: 30px;
    box-shadow: var(--glow-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.tool-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-header-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.tool-header-avatar img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.tool-header-title {
    font-size: 30px;
    margin-bottom: 6px;
}

.tool-header-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.tool-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.content-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.content-box h2 {
    font-size: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-editorial-content {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.85;
}

.tool-editorial-content h3 {
    font-size: 19px;
    color: var(--text-primary);
    margin: 30px 0 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.tool-editorial-content h4 {
    font-size: 16.5px;
    color: var(--text-primary);
    margin: 22px 0 10px;
    font-weight: 600;
}

.tool-editorial-content p {
    margin-bottom: 18px;
    line-height: 1.85;
}

.tool-editorial-content ul,
.tool-editorial-content ol {
    margin: 14px 0 22px 24px;
}

.tool-editorial-content li {
    margin-bottom: 9px;
    line-height: 1.75;
}

.tool-editorial-content blockquote {
    background: rgba(99, 102, 241, 0.08);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 22px 0;
    color: var(--text-primary);
    font-style: italic;
}

.tool-editorial-content .editorial-callout {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid #10b981;
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin: 24px 0;
}

.tool-editorial-content .editorial-callout-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   UNIVERSAL RESPONSIVE TABLE STYLES (Supports CKEditor, Markdown & HTML)
   ========================================================================== */
.table-responsive,
.tool-table-wrap,
.tool-editorial-content figure.table,
figure.table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 24px 0 !important;
    border-radius: var(--radius-lg, 12px) !important;
}

figure.table {
    display: block !important;
}

.tool-editorial-content table,
.tool-content-rich table,
.table-styled,
figure.table table {
    width: 100% !important;
    min-width: 480px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    background: var(--bg-surface) !important;
    border-radius: var(--radius-lg, 12px) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

.tool-editorial-content table th,
.tool-content-rich table th,
.table-styled th,
figure.table table th {
    background: rgba(99, 102, 241, 0.09) !important;
    color: var(--text-primary) !important;
    padding: 14px 18px !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.02em !important;
    border-bottom: 2px solid var(--border-subtle) !important;
    border-right: 1px solid var(--border-subtle) !important;
    white-space: nowrap !important;
}

[data-theme="light"] .tool-editorial-content table th,
[data-theme="light"] .tool-content-rich table th,
[data-theme="light"] .table-styled th,
[data-theme="light"] figure.table table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.tool-editorial-content table th:last-child,
.tool-content-rich table th:last-child,
.table-styled th:last-child,
figure.table table th:last-child {
    border-right: none !important;
}

.tool-editorial-content table td,
.tool-content-rich table td,
.table-styled td,
figure.table table td {
    padding: 13px 18px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-right: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
    vertical-align: middle !important;
}

[data-theme="light"] .tool-editorial-content table td,
[data-theme="light"] .tool-content-rich table td,
[data-theme="light"] .table-styled td,
[data-theme="light"] figure.table table td {
    color: #334155 !important;
}

.tool-editorial-content table td:last-child,
.tool-content-rich table td:last-child,
.table-styled td:last-child,
figure.table table td:last-child {
    border-right: none !important;
}

.tool-editorial-content table tbody tr:last-child td,
.tool-content-rich table tbody tr:last-child td,
.table-styled tbody tr:last-child td,
figure.table table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Zebra striping for table rows */
.tool-editorial-content table tbody tr:nth-child(even),
.tool-content-rich table tbody tr:nth-child(even),
.table-styled tbody tr:nth-child(even),
figure.table table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="light"] .tool-editorial-content table tbody tr:nth-child(even),
[data-theme="light"] .tool-content-rich table tbody tr:nth-child(even),
[data-theme="light"] .table-styled tbody tr:nth-child(even),
[data-theme="light"] figure.table table tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

.tool-editorial-content table tbody tr:hover,
.tool-content-rich table tbody tr:hover,
.table-styled tbody tr:hover,
figure.table table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06) !important;
}

.pro-con-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pros-box,
.cons-box {
    padding: 20px;
    border-radius: var(--radius-md);
}

.pros-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pros-box h3 {
    color: #34d399;
    font-size: 15.5px;
    margin-bottom: 12px;
}

.cons-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cons-box h3 {
    color: #f87171;
    font-size: 15.5px;
    margin-bottom: 12px;
}

.feature-list,
.faq-list {
    margin-top: 14px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.faq-question {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-info-row:last-child {
    border-bottom: none;
}

.sidebar-info-row span:first-child {
    color: var(--text-muted);
}

.sidebar-info-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Toast Notification */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Breadcrumbs */
.tool-breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    font-size: 13.5px;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    margin: 0 4px;
    color: var(--text-muted);
}

.breadcrumb-item.active span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Legal, Blog, Forms */
.legal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 44px;
    max-width: 900px;
    margin: 20px auto 60px;
}

.legal-card h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.legal-card .last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-card h2 {
    font-size: 20px;
    margin: 26px 0 12px;
}

.legal-card p,
.legal-card li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-card ul {
    margin: 10px 0 20px 20px;
    list-style: disc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.article-container {
    width: 100%;
    max-width: 1320px;
    margin: 20px auto 70px;
    padding: 0 24px;
}

.article-title {
    font-size: 38px;
    margin-bottom: 14px;
    text-align: left;
}

.article-body {
    width: 100%;
    font-size: 16.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 30px;
}

.article-body h2 {
    font-size: 24px;
    margin: 34px 0 14px;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 18px;
}

.article-body ul {
    margin: 14px 0 20px 24px;
    list-style: disc;
}

.article-body li {
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 14.5px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* Ad Placeholders */
.ad-container {
    margin: 26px auto;
    text-align: center;
    position: relative;
    max-width: 100%;
}

.ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ad-placeholder {
    background: var(--bg-ribbon);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-muted);
}

.ad-leaderboard {
    min-height: 90px;
    max-width: 728px;
    width: 100%;
}

.ad-infeed-card {
    min-height: 250px;
    width: 100%;
    padding: 24px;
    background: rgba(99, 102, 241, 0.04);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
}

.ad-rectangle {
    min-height: 250px;
    max-width: 600px;
    width: 100%;
}

.ad-medium-rectangle {
    min-height: 250px;
    max-width: 300px;
    width: 100%;
}

.ad-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    font-size: 13px;
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    margin-top: 70px;
}

.footer-top {
    padding: 50px 0 35px;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 36px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 340px;
    line-height: 1.6;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

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

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 62px;
        left: 0;
        width: 100%;
        background: var(--bg-dropdown);
        border-bottom: 1px solid var(--border-subtle);
        padding: 18px 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .aix-hero-heading {
        font-size: 32px;
    }

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

    .pro-con-grid {
        grid-template-columns: 1fr;
    }

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

    .aix-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Toast Notification */
.aix-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--bg-dropdown);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.aix-toast.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tool Real Favicon / Logo Avatar */
.aix-avatar img.aix-avatar-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Quick Trending Tag Pills */
.quick-tag-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.quick-tag-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Floating Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dropdown);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Subtle background radial hero glow */
.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Editorial & Blog Post Modern Styles
   ========================================================================== */
.article-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.article-hero {
    margin-bottom: 36px;
    text-align: left;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 9999px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.article-lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border-left: 3px solid var(--primary);
    padding-left: 18px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.article-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.article-meta-sub {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.article-share-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-1px);
}

.takeaways-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 36px;
}

.takeaways-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 14px;
}

.takeaways-list {
    margin: 0;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.takeaways-list li {
    margin-bottom: 8px;
}

.article-body {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.article-body h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 44px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
}

.article-body h3 {
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 14px;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.7;
}

.article-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
}

.article-body th {
    background: var(--bg-secondary);
    padding: 14px 18px;
    font-weight: 700;
    text-align: left;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
}

.article-body td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 14.5px;
}

.article-body tr:last-child td {
    border-bottom: none;
}

.article-body tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.article-body code {
    background: var(--bg-secondary);
    color: var(--primary-light);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
}

.article-body pre {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow-x: auto;
    margin: 24px 0;
}

.editorial-trust-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.related-guides-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.related-guide-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.related-guide-card h4 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-guide-card p {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-guide-card .read-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Editorial Blog Landing Page Magazine Styles
   ========================================================================== */
.blog-index-hero {
    text-align: center;
    max-width: 820px;
    margin: 10px auto 40px;
    position: relative;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 18px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.blog-hero-title {
    font-size: clamp(34px, 5vw, 50px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.blog-hero-desc {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto;
}

/* Featured Story Hero Card */
.blog-featured-card {
    background: var(--bg-surface);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    transition: var(--transition);
    text-decoration: none;
}

.blog-featured-card:hover {
    border-color: #818cf8;
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.25);
}

.blog-featured-media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

.blog-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured-card:hover .blog-featured-media img {
    transform: scale(1.05);
}

.blog-featured-fallback {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0.15) 50%, #0f172a 100%);
    position: relative;
    padding: 30px;
    text-align: center;
}

.blog-featured-badge-overlay {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.blog-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.blog-featured-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
    transition: color 0.2s ease;
}

.blog-featured-card:hover .blog-featured-title {
    color: #818cf8;
}

.blog-featured-excerpt {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.blog-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

/* Articles Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--glow-card);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.15);
}

.blog-card-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #1e1b4b;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.06);
}

.blog-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(236, 72, 153, 0.15) 100%);
    font-size: 40px;
}

.blog-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
    color: #818cf8;
    z-index: 2;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.blog-card-cta {
    font-size: 13.5px;
    font-weight: 600;
    color: #818cf8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-cta {
    gap: 8px;
    color: #a5b4fc;
}

@media (max-width: 900px) {
    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-media {
        min-height: 240px;
    }

    .blog-featured-content {
        padding: 24px;
    }
}

/* ==========================================================================
   Categories Mega Menu Styles
   ========================================================================== */
.has-dropdown.has-mega-menu {
    position: static;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999999 !important;
}

.header-container {
    position: relative;
    z-index: 999999 !important;
}

.dropdown-menu.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-dropdown);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000000 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

/* Invisible bridge so mouse hover is never lost when moving from header to dropdown */
.dropdown-menu.mega-menu::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
}

.has-dropdown:hover .dropdown-menu.mega-menu,
.has-dropdown:focus-within .dropdown-menu.mega-menu,
.dropdown-menu.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.mega-menu-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.mega-menu-all-link {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.mega-menu-all-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 16px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 6px;
}

.mega-menu-grid::-webkit-scrollbar {
    width: 5px;
}

.mega-menu-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.mega-menu-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    min-width: 0;
}

.mega-menu-item:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(3px);
}

.mega-menu-item .cat-icon {
    font-size: 17px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.mega-menu-item .cat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mega-menu-item .cat-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 7px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.mega-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12.5px;
    color: var(--text-muted);
}

.mega-menu-footer a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.mega-menu-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .mega-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dropdown-menu.mega-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        border-radius: var(--radius-md);
        padding: 14px;
        display: none;
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-menu.mega-menu.active {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Pagination Component (Frontend & Admin)
   ========================================================================== */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 6px 10px;
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-item {
    display: inline-block;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    transition: var(--transition);
}

.page-link:hover:not(.ellipsis) {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    border-color: transparent;
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-link.prev-link,
.page-link.next-link {
    padding: 0 14px;
    font-size: 13.5px;
}

.page-link.ellipsis {
    cursor: default;
    min-width: 24px;
}

.pagination-summary {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ==========================================================================
   LIVE AJAX SEARCH DROPDOWN
   ========================================================================== */
.tools-grid-section,
.tools-grid,
.aix-card {
    position: relative !important;
    z-index: 1 !important;
}

.aix-search-dropdown {
    position: fixed !important;
    background: #0f172a !important;
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(99, 102, 241, 0.35);
    z-index: 999999999 !important;
    max-height: 440px;
    overflow-y: auto;
    display: none;
    animation: dropFadeIn 0.18s ease-out;
}

[data-theme="light"] .aix-search-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.aix-search-dropdown.active {
    display: block;
}

@keyframes dropFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.aix-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 700;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(99, 102, 241, 0.05);
}

.aix-dropdown-list {
    display: flex;
    flex-direction: column;
}

.aix-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease, transform 0.15s ease;
}

.aix-dropdown-item:last-child {
    border-bottom: none;
}

.aix-dropdown-item:hover,
.aix-dropdown-item.selected {
    background: rgba(99, 102, 241, 0.12);
    color: #ffffff;
}

.aix-drop-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aix-drop-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.aix-drop-initial {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.aix-drop-info {
    flex: 1;
    min-width: 0;
}

.aix-drop-title {
    display: flex;
    align-items: center;
    font-size: 14.5px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.aix-drop-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aix-drop-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}

.aix-drop-cat {
    font-size: 11.5px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Star rating selector */
.star-rating-select .star-item {
    transition: transform 0.15s ease;
}

.star-rating-select .star-item:hover {
    transform: scale(1.2);
}

.popular-compare-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .compare-header-grid {
        grid-template-columns: 1fr !important;
    }

    .rating-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .rating-score-col {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 20px;
    }

    .newsletter-grid {
        grid-template-columns: 1fr !important;
        padding: 24px !important;
    }
}

/* ==========================================================================
   CKEDITOR 5 FRONTEND DESIGN SYSTEM INTEGRATION
   Adaptive for Dark & Light Themes
   ========================================================================== */
.ck.ck-editor {
    width: 100% !important;
    margin-top: 6px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    font-family: var(--font-sans) !important;
}

.ck.ck-toolbar {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-bottom: none !important;
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
    padding: 6px 8px !important;
}

.ck.ck-toolbar .ck-button {
    color: var(--text-primary) !important;
    cursor: pointer;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition);
}

.ck.ck-toolbar .ck-button:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: var(--primary) !important;
}

.ck.ck-toolbar .ck-button.ck-on {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.ck .ck-editor__main > .ck-editor__editable,
.ck.ck-editor__main > .ck-editor__editable,
.ck-editor__editable,
.ck-editor__editable_inline,
.ck.ck-content.ck-editor__editable {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-bottom-left-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
    font-size: 14.5px;
    line-height: 1.7;
    padding: 16px 20px !important;
    min-height: 280px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ck .ck-editor__main > .ck-editor__editable:focus,
.ck .ck-editor__main > .ck-editor__editable.ck-focused,
.ck.ck-editor__main > .ck-editor__editable:focus,
.ck.ck-editor__main > .ck-editor__editable.ck-focused,
.ck-editor__editable:focus,
.ck-editor__editable.ck-focused {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    min-height: 280px !important;
}

/* 1,000 words mandatory description editor on submit page */
#toolDescription + .ck.ck-editor .ck-editor__editable,
#toolDescription + .ck.ck-editor .ck-editor__editable:focus,
#toolDescription + .ck.ck-editor .ck-editor__editable.ck-focused,
#toolDescriptionGroup .ck-editor__editable,
#toolDescriptionGroup .ck-editor__editable:focus,
#toolDescriptionGroup .ck-editor__editable.ck-focused {
    min-height: 320px !important;
}

.ck.ck-dropdown__panel {
    background: var(--bg-dropdown) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--glow-card) !important;
    border-radius: var(--radius-sm) !important;
}

.ck.ck-list__item {
    color: var(--text-primary) !important;
}

.ck.ck-list__item:hover,
.ck.ck-list__item .ck-button:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: var(--primary) !important;
}

/* Tool Editorial Rich Text Content */
.tool-editorial-content p {
    margin-bottom: 14px;
}

.tool-editorial-content p:last-child {
    margin-bottom: 0;
}

.tool-editorial-content ul,
.tool-editorial-content ol {
    margin: 12px 0 16px 24px;
    padding-left: 8px;
}

.tool-editorial-content li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.tool-editorial-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.tool-editorial-content h2,
.tool-editorial-content h3,
.tool-editorial-content h4 {
    color: var(--text-primary);
    margin: 20px 0 10px;
    font-weight: 700;
}

/* ==========================================================================
   MOBILE OFFCANVAS NAVIGATION DRAWER
   ========================================================================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.offcanvas-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.offcanvas-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 86vw;
    height: 100vh;
    background: var(--bg-dropdown, #0f172a);
    border-left: 1px solid var(--border-subtle);
    z-index: 10000001;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

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

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

.offcanvas-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: #ef4444;
}

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

.offcanvas-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offcanvas-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.offcanvas-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}

.offcanvas-highlight-link {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.12));
    border-color: rgba(99, 102, 241, 0.3);
    color: #818cf8;
}

.offcanvas-link-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.offcanvas-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
}

/* Offcanvas Categories Accordion */
.offcanvas-accordion-item {
    display: flex;
    flex-direction: column;
}

.offcanvas-accordion-toggle .offcanvas-chevron {
    margin-left: auto;
    transition: transform 0.25s ease;
}

.offcanvas-accordion-item.open .offcanvas-chevron {
    transform: rotate(180deg);
}

.offcanvas-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-top: 4px;
}

.offcanvas-accordion-item.open .offcanvas-accordion-content {
    max-height: 380px;
    overflow-y: auto;
}

.offcanvas-cat-grid {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offcanvas-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    text-decoration: none;
    transition: var(--transition);
}

.offcanvas-cat-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}

.offcanvas-cat-item .sublink-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

/* Offcanvas Language Section */
.offcanvas-lang-box {
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.offcanvas-section-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.offcanvas-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.offcanvas-lang-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 12.5px;
    text-decoration: none;
    transition: var(--transition);
}

.offcanvas-lang-chip.active,
.offcanvas-lang-chip:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
}

/* Offcanvas Footer & Auth */
.offcanvas-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.offcanvas-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

/* Intermediate Screen Responsive Handling (992px - 1180px) */
@media (max-width: 1180px) {
    .nav-links {
        gap: 10px;
    }
    .nav-link {
        font-size: 13.5px;
        padding: 6px 8px;
    }
    .spotlight-trigger-label {
        display: none;
    }
    .header-actions {
        gap: 8px;
    }
}

/* Responsive Trigger Breakpoint (Mobile & Small Tablets) */
@media (max-width: 991px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none !important;
    }

    .nav-login-link,
    .header-actions .btn-outline,
    .header-actions .btn-primary,
    .header-submit-btn {
        display: none !important;
    }
}

/* ==========================================================================
   LIVE INSTANT SEARCH AUTOCOMPLETE DROPDOWN
   Glassmorphic, Adaptive Dark/Light Theme with Keyboard Selection
   ========================================================================== */
.aix-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-surface, #111827);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 1050;
    overflow: hidden;
    text-align: left;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .aix-search-dropdown {
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.search-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.search-dropdown-list {
    max-height: 380px;
    overflow-y: auto;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: background 0.15s ease, border-left 0.15s ease;
    cursor: pointer;
}

[data-theme="light"] .search-dropdown-item {
    border-bottom-color: #f1f5f9;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
    background: rgba(99, 102, 241, 0.09);
    border-left: 3px solid var(--primary, #6366f1);
}

.search-item-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-item-avatar img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.search-item-avatar span {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.search-item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-highlight {
    background: rgba(250, 204, 21, 0.3);
    color: #fde047;
    padding: 0 2px;
    border-radius: 3px;
}

[data-theme="light"] .search-highlight {
    background: #fef08a;
    color: #854d0e;
}

.badge-featured-mini {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    text-transform: uppercase;
}

.badge-verified-mini {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 800;
}

.search-item-tagline {
    font-size: 12.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.search-item-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.search-badge-cat {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 4px;
}

[data-theme="light"] .search-badge-cat {
    background: #f1f5f9;
}

.search-badge-pricing {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.search-badge-pricing.pricing-free {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.search-badge-pricing.pricing-freemium {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.search-badge-pricing.pricing-paid {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.search-badge-pricing.pricing-free-trial {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.search-badge-rating {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 700;
}

.search-item-arrow {
    color: var(--text-muted);
    font-size: 16px;
    opacity: 0.4;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.search-dropdown-item:hover .search-item-arrow,
.search-dropdown-item.selected .search-item-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--primary);
}

.search-dropdown-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

.search-dropdown-footer kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10.5px;
    font-family: inherit;
}

[data-theme="light"] .search-dropdown-footer kbd {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

.search-view-all-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.search-view-all-link:hover {
    text-decoration: underline;
}

.search-empty-state {
    padding: 30px 20px;
    text-align: center;
}

.editorial-lead-section {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-style: italic;
}

.editorial-lead-section span {
    background-color: transparent !important;
    font-weight: 600;
}

.tool-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(99, 102, 241, 0.15);
}

/* =========================================================================
   Global Spotlight Quick Search (Ctrl + K / Cmd + K)
   ========================================================================= */
.spotlight-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.spotlight-trigger-btn:hover {
    border-color: #818cf8;
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}
.spotlight-trigger-label {
    display: inline-block;
}
.spotlight-trigger-kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 11px;
    padding: 1px 5px;
    color: var(--text-muted);
    font-family: inherit;
}
@media (max-width: 768px) {
    .spotlight-trigger-label, .spotlight-trigger-kbd {
        display: none;
    }
    .spotlight-trigger-btn {
        padding: 8px;
    }
}

.spotlight-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    animation: spotlightFadeIn 0.2s ease;
}
@keyframes spotlightFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spotlight-dialog {
    background: var(--bg-surface);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.2);
    overflow: hidden;
    animation: spotlightScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes spotlightScaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.spotlight-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}
.spotlight-search-icon {
    color: #818cf8;
    flex-shrink: 0;
}
#spotlightInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
}
.spotlight-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s ease;
}
.spotlight-close-btn:hover {
    color: var(--text-primary);
}

.spotlight-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 12px;
}
.spotlight-empty-state {
    text-align: center;
    padding: 30px 20px;
}
.spotlight-quick-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.spotlight-tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.spotlight-tag:hover {
    border-color: #818cf8;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
}

.spotlight-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.spotlight-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}
.spotlight-result-item:hover,
.spotlight-result-item.active {
    background: rgba(99, 102, 241, 0.15);
}
.spotlight-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.spotlight-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.spotlight-item-meta {
    flex: 1;
    min-width: 0;
}
.spotlight-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spotlight-item-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spotlight-item-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    flex-shrink: 0;
}

.spotlight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}
.spotlight-footer kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 10.5px;
}

/* ========================================================
   SPONSORED ADS & PARTNERSHIP BANNERS (LIGHT & DARK THEMES)
   ======================================================== */
.sponsored-hero-container {
    margin: 0 auto 30px;
    max-width: 1140px;
    padding: 0 16px;
}
.sponsored-hero-card {
    position: relative;
    background: var(--bg-surface);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-xl, 18px);
    padding: 22px 28px;
    box-shadow: 0 12px 35px -10px rgba(245, 158, 11, 0.18), 0 0 20px rgba(245, 158, 11, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
.sponsored-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #6366f1);
}
.sponsored-hero-card:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 16px 45px -10px rgba(245, 158, 11, 0.28), 0 0 25px rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}
.sponsored-pill-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sponsored-slot-avail {
    font-size: 11.5px;
    color: #10b981;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
}
.btn-sponsored-cta {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 12px 22px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    white-space: nowrap !important;
}
.btn-sponsored-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
    color: #000 !important;
}

/* In-Feed Native Sponsored Card */
.sponsored-feed-card {
    border: 2px dashed rgba(245, 158, 11, 0.5) !important;
    background: linear-gradient(160deg, var(--bg-card), rgba(245, 158, 11, 0.05)) !important;
    position: relative;
}
.sponsored-feed-card:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 16px 35px -10px rgba(245, 158, 11, 0.25) !important;
}
.sponsored-avatar-glow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.15)) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sponsored-card-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.sponsored-card-perks span {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
}
.btn-sponsored-buy {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.btn-sponsored-buy:hover {
    opacity: 0.95;
    color: #000 !important;
}

/* Category & Tool Page Banners */
.sponsored-category-banner {
    margin: 0 auto 30px;
    width: 100%;
}
.sponsored-category-inner {
    position: relative;
    background: var(--bg-surface);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-xl, 16px);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px -8px rgba(56, 189, 248, 0.15);
    overflow: hidden;
}
.sponsored-category-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}
.sponsored-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.sponsored-leaderboard-banner {
    margin: 35px auto 25px;
    background: var(--bg-surface);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-xl, 16px);
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}
.sponsored-leaderboard-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ec4899);
}

/* =============================================================
   Global AI Tools Directory Authority Showcase (Theme Aware: Light & Dark)
   ============================================================= */
.global-directory-showcase {
    position: relative;
    border-radius: var(--radius-xl, 26px);
    padding: 60px 40px 50px;
    margin: 55px 0 60px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.global-directory-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, #ec4899, transparent);
}

.showcase-ambient-glow {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    height: 440px;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    transition: var(--transition);
}

.showcase-header-wrap {
    position: relative;
    z-index: 3;
    max-width: 840px;
    margin: 0 auto;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 7px 18px;
    border-radius: 99px;
    margin-bottom: 20px;
    border: 1.5px solid;
    transition: var(--transition);
}

.showcase-main-title {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    line-height: 1.25;
    transition: color 0.25s ease;
}

.showcase-title-highlight {
    display: inline-block;
    padding: 3px 16px;
    border-radius: 10px;
    transition: var(--transition);
}

.showcase-subtitle {
    font-size: 16.5px;
    line-height: 1.75;
    max-width: 740px;
    margin: 0 auto 30px;
    font-weight: 400;
    transition: color 0.25s ease;
}

.globe-showcase-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px auto 40px;
    max-width: 480px;
    min-height: 320px;
}

.globe-orbit-ring {
    position: absolute;
    width: 330px;
    height: 330px;
    border-width: 1.5px;
    border-style: dashed;
    border-radius: 50%;
    animation: spinOrbit 35s linear infinite;
    pointer-events: none;
    z-index: 2;
    transition: border-color 0.25s ease;
}

.globe-orbit-ring-reverse {
    position: absolute;
    width: 370px;
    height: 370px;
    border-width: 1px;
    border-style: dotted;
    border-radius: 50%;
    animation: spinOrbitReverse 45s linear infinite;
    pointer-events: none;
    z-index: 2;
    transition: border-color 0.25s ease;
}

.globe-image-frame {
    position: relative;
    z-index: 3;
    border-radius: 50%;
    overflow: hidden;
    width: 260px;
    height: 260px;
    border-width: 3px;
    border-style: solid;
    animation: floatMascot 4.5s ease-in-out infinite;
    transition: var(--transition);
}

.globe-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-chip {
    position: absolute;
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
    transition: var(--transition);
    border: 1.5px solid;
}

.floating-chip span {
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.floating-chip:hover {
    transform: translateY(-2px);
}

.chip-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.chip-shield-icon {
    font-size: 15px;
}

.floating-chip-left {
    left: -20px;
    top: 35%;
}

.floating-chip-right {
    right: -20px;
    bottom: 25%;
}

.directory-pillars-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    text-align: left;
    margin-bottom: 38px;
}

.directory-pillar-card {
    border-radius: var(--radius-lg, 18px);
    padding: 32px 28px;
    display: flex;
    gap: 22px;
    transition: var(--transition);
    border: 1.5px solid;
}

.directory-pillar-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid;
    transition: var(--transition);
}

.directory-pillar-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.directory-pillar-text {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    transition: color 0.25s ease;
}

.directory-pillar-highlights {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.directory-pillar-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.directory-stats-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 34px;
    padding-top: 6px;
}

.directory-stat-box {
    border-radius: var(--radius-md, 14px);
    padding: 22px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1.5px solid;
}

.directory-stat-box strong {
    font-size: 30px;
    font-weight: 900;
    display: block;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    transition: color 0.25s ease;
}

.directory-stat-box span {
    font-size: 14px;
    display: block;
    transition: color 0.25s ease;
}

.directory-action-pills {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =============================================================
   LIGHT MODE STYLING ([data-theme="light"])
   ============================================================= */
[data-theme="light"] .global-directory-showcase {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .showcase-ambient-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.07) 40%, transparent 70%);
}

[data-theme="light"] .showcase-badge {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
}

[data-theme="light"] .showcase-main-title {
    color: #0f172a !important;
}

[data-theme="light"] .showcase-title-highlight {
    background: #e0f2fe;
    color: #0369a1 !important;
    border: 1.5px solid #7dd3fc;
    border-bottom: 3.5px solid #0284c7;
    text-shadow: none;
}

[data-theme="light"] .showcase-subtitle {
    color: #475569 !important;
}

[data-theme="light"] .showcase-subtitle strong {
    color: #0f172a;
}

[data-theme="light"] .showcase-subtitle .hl-stat {
    color: #0284c7;
}

[data-theme="light"] .globe-orbit-ring {
    border-color: rgba(14, 165, 233, 0.35);
}

[data-theme="light"] .globe-orbit-ring-reverse {
    border-color: rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .globe-image-frame {
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.25), 0 0 70px rgba(99, 102, 241, 0.15);
    border-color: #38bdf8;
    background: #0b1120;
}

[data-theme="light"] .floating-chip {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .floating-chip span {
    color: #0f172a !important;
}

[data-theme="light"] .floating-chip-left {
    border-color: #a7f3d0;
}

[data-theme="light"] .floating-chip-right {
    border-color: #c7d2fe;
}

[data-theme="light"] .floating-chip:hover {
    border-color: #38bdf8;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .directory-pillar-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .directory-pillar-card:hover {
    background: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

[data-theme="light"] .directory-pillar-title {
    color: #0f172a !important;
}

[data-theme="light"] .directory-pillar-text {
    color: #334155 !important;
}

[data-theme="light"] .pillar-icon-cyan {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0284c7;
}

[data-theme="light"] .pillar-icon-purple {
    background: #f3e8ff;
    border-color: #e9d5ff;
    color: #9333ea;
}

[data-theme="light"] .hl-cyan {
    color: #0369a1;
}

[data-theme="light"] .hl-badge-cyan {
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    border-radius: 6px;
}

[data-theme="light"] .hl-badge-purple {
    color: #7e22ce;
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
    padding: 2px 8px;
    border-radius: 6px;
}

[data-theme="light"] .directory-pillar-highlights li {
    color: #1e293b !important;
}

[data-theme="light"] .directory-pillar-highlights strong {
    color: #0f172a;
}

[data-theme="light"] .hl-check-cyan {
    color: #0284c7;
    font-weight: 800;
}

[data-theme="light"] .hl-check-purple {
    color: #9333ea;
    font-weight: 800;
}

[data-theme="light"] .directory-stat-box {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .directory-stat-box:hover {
    background: #f8fafc;
    border-color: #38bdf8;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

[data-theme="light"] .directory-stat-box strong {
    color: #0f172a;
}

[data-theme="light"] .stat-number-cyan {
    color: #0284c7 !important;
}

[data-theme="light"] .stat-number-purple {
    color: #9333ea !important;
}

[data-theme="light"] .stat-number-emerald {
    color: #059669 !important;
}

[data-theme="light"] .stat-number-amber {
    color: #d97706 !important;
}

[data-theme="light"] .directory-stat-box span {
    color: #475569 !important;
    font-weight: 600;
}

[data-theme="light"] .action-pill-cyan {
    color: #0284c7 !important;
    border-color: #7dd3fc !important;
    background: #ffffff !important;
    font-weight: 600;
}

[data-theme="light"] .action-pill-cyan:hover {
    background: #e0f2fe !important;
}

[data-theme="light"] .action-pill-amber {
    color: #d97706 !important;
    border-color: #fcd34d !important;
    background: #ffffff !important;
    font-weight: 600;
}

[data-theme="light"] .action-pill-amber:hover {
    background: #fef3c7 !important;
}

[data-theme="light"] .action-pill-outline {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    font-weight: 600;
}

[data-theme="light"] .action-pill-outline:hover {
    background: #f1f5f9 !important;
}

/* =============================================================
   DARK MODE STYLING ([data-theme="dark"] / Default Fallback)
   ============================================================= */
[data-theme="dark"] .global-directory-showcase,
:root:not([data-theme="light"]) .global-directory-showcase {
    background: #0b1120;
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.08);
}

[data-theme="dark"] .showcase-ambient-glow,
:root:not([data-theme="light"]) .showcase-ambient-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.15) 40%, transparent 70%);
}

[data-theme="dark"] .showcase-badge,
:root:not([data-theme="light"]) .showcase-badge {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

[data-theme="dark"] .showcase-main-title,
:root:not([data-theme="light"]) .showcase-main-title {
    color: #ffffff !important;
}

[data-theme="dark"] .showcase-title-highlight,
:root:not([data-theme="light"]) .showcase-title-highlight {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-bottom: 3.5px solid #0284c7;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

[data-theme="dark"] .showcase-subtitle,
:root:not([data-theme="light"]) .showcase-subtitle {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .showcase-subtitle strong,
:root:not([data-theme="light"]) .showcase-subtitle strong {
    color: #ffffff;
}

[data-theme="dark"] .showcase-subtitle .hl-stat,
:root:not([data-theme="light"]) .showcase-subtitle .hl-stat {
    color: #38bdf8;
}

[data-theme="dark"] .globe-orbit-ring,
:root:not([data-theme="light"]) .globe-orbit-ring {
    border-color: rgba(56, 189, 248, 0.45);
}

[data-theme="dark"] .globe-orbit-ring-reverse,
:root:not([data-theme="light"]) .globe-orbit-ring-reverse {
    border-color: rgba(168, 85, 247, 0.35);
}

[data-theme="dark"] .globe-image-frame,
:root:not([data-theme="light"]) .globe-image-frame {
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.45), 0 0 100px rgba(99, 102, 241, 0.35);
    border-color: rgba(56, 189, 248, 0.6);
    background: #000000;
}

[data-theme="dark"] .floating-chip,
:root:not([data-theme="light"]) .floating-chip {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .floating-chip span,
:root:not([data-theme="light"]) .floating-chip span {
    color: #ffffff !important;
}

[data-theme="dark"] .floating-chip-left,
:root:not([data-theme="light"]) .floating-chip-left {
    border-color: rgba(16, 185, 129, 0.5);
}

[data-theme="dark"] .floating-chip-right,
:root:not([data-theme="light"]) .floating-chip-right {
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .floating-chip:hover,
:root:not([data-theme="light"]) .floating-chip:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .directory-pillar-card,
:root:not([data-theme="light"]) .directory-pillar-card {
    background: #111a2e;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .directory-pillar-card:hover,
:root:not([data-theme="light"]) .directory-pillar-card:hover {
    background: #15223c;
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 18px 45px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.15);
    transform: translateY(-3px);
}

[data-theme="dark"] .directory-pillar-title,
:root:not([data-theme="light"]) .directory-pillar-title {
    color: #ffffff !important;
}

[data-theme="dark"] .directory-pillar-text,
:root:not([data-theme="light"]) .directory-pillar-text {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .pillar-icon-cyan,
:root:not([data-theme="light"]) .pillar-icon-cyan {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #38bdf8;
}

[data-theme="dark"] .pillar-icon-purple,
:root:not([data-theme="light"]) .pillar-icon-purple {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

[data-theme="dark"] .hl-cyan,
:root:not([data-theme="light"]) .hl-cyan {
    color: #38bdf8;
}

[data-theme="dark"] .hl-badge-cyan,
:root:not([data-theme="light"]) .hl-badge-cyan {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 7px;
    border-radius: 5px;
}

[data-theme="dark"] .hl-badge-purple,
:root:not([data-theme="light"]) .hl-badge-purple {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 2px 7px;
    border-radius: 5px;
}

[data-theme="dark"] .directory-pillar-highlights li,
:root:not([data-theme="light"]) .directory-pillar-highlights li {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .directory-pillar-highlights strong,
:root:not([data-theme="light"]) .directory-pillar-highlights strong {
    color: #ffffff;
}

[data-theme="dark"] .hl-check-cyan,
:root:not([data-theme="light"]) .hl-check-cyan {
    color: #38bdf8;
    font-weight: 800;
}

[data-theme="dark"] .hl-check-purple,
:root:not([data-theme="light"]) .hl-check-purple {
    color: #c084fc;
    font-weight: 800;
}

[data-theme="dark"] .directory-stat-box,
:root:not([data-theme="light"]) .directory-stat-box {
    background: #111a2e;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .directory-stat-box:hover,
:root:not([data-theme="light"]) .directory-stat-box:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: #15223c;
    transform: translateY(-2px);
}

[data-theme="dark"] .directory-stat-box strong,
:root:not([data-theme="light"]) .directory-stat-box strong {
    color: #ffffff;
}

[data-theme="dark"] .stat-number-cyan,
:root:not([data-theme="light"]) .stat-number-cyan {
    color: #38bdf8 !important;
}

[data-theme="dark"] .stat-number-purple,
:root:not([data-theme="light"]) .stat-number-purple {
    color: #c084fc !important;
}

[data-theme="dark"] .stat-number-emerald,
:root:not([data-theme="light"]) .stat-number-emerald {
    color: #34d399 !important;
}

[data-theme="dark"] .stat-number-amber,
:root:not([data-theme="light"]) .stat-number-amber {
    color: #fbbf24 !important;
}

[data-theme="dark"] .directory-stat-box span,
:root:not([data-theme="light"]) .directory-stat-box span {
    color: #cbd5e1 !important;
    font-weight: 600;
}

[data-theme="dark"] .action-pill-cyan,
:root:not([data-theme="light"]) .action-pill-cyan {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    font-weight: 600;
}

[data-theme="dark"] .action-pill-amber,
:root:not([data-theme="light"]) .action-pill-amber {
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    font-weight: 600;
}

[data-theme="dark"] .action-pill-outline,
:root:not([data-theme="light"]) .action-pill-outline {
    font-weight: 600;
}

@keyframes spinOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinOrbitReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@media (max-width: 768px) {
    .global-directory-showcase {
        padding: 40px 18px 34px;
        margin: 40px 0 45px;
    }
    .globe-showcase-stage {
        min-height: 260px;
    }
    .globe-image-frame {
        width: 210px;
        height: 210px;
    }
    .globe-orbit-ring {
        width: 250px;
        height: 250px;
    }
    .globe-orbit-ring-reverse {
        width: 280px;
        height: 280px;
    }
    .floating-chip {
        display: none;
    }
    .directory-pillar-card {
        flex-direction: column;
        padding: 24px 20px;
    }
}

/* ==========================================================================
   CODE BLOCK & SYNTAX FORMATTING (CKEditor & Markdown Support)
   ========================================================================== */
.code-block-wrapper {
    position: relative;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #070b14;
    overflow: hidden;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.6);
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-block-lang {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #818cf8;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.code-block-lang::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
}

.code-block-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 4px 11px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.code-block-copy-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    color: #ffffff;
}

.code-block-wrapper pre {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 18px 20px !important;
    box-shadow: none !important;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    color: #e2e8f0 !important;
}

.code-block-wrapper pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    white-space: pre;
}

/* Standalone pre code fallback */
.tool-editorial-content pre:not(.code-block-wrapper pre),
.article-body pre:not(.code-block-wrapper pre) {
    background: #0b0f19 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
    overflow-x: auto !important;
    margin: 20px 0 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #e2e8f0 !important;
}

/* Inline code tags styling */
.tool-editorial-content code:not(pre code),
.article-body code:not(pre code),
.ck-content code:not(pre code) {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 13px !important;
    font-weight: 500;
}