/* ==========================================================================
   ToolsvibePro.com - Core Theme & Layout Styles
   Fast, accessible, mobile-first, and Google AdSense compliant
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #4f46e5;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-main: #0b0f19;
    --bg-card: #131b2e;
    --bg-alt: #1a243b;
    --border-color: #23304d;
    --border-hover: #33446b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --primary-light: #1e293b;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
}

/* 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-main);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

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

/* Container & Grid System */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 20px; }
.gap-4 { gap: 30px; }

.py-1 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 12px; padding-bottom: 12px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 48px; padding-bottom: 48px; }
.py-5 { padding-top: 80px; padding-bottom: 80px; }

.my-1 { margin-top: 6px; margin-bottom: 6px; }
.my-2 { margin-top: 16px; margin-bottom: 16px; }
.my-3 { margin-top: 28px; margin-bottom: 28px; }
.my-4 { margin-top: 48px; margin-bottom: 48px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 32px; }
.mt-3 { margin-top: 20px; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: #ffffff !important; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   Announcement Bar (Top Notice)
   ========================================================================== */
.top-announcement-bar {
    background: #090d16;
    color: #e2e8f0;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 0;
    position: relative;
    z-index: 1001;
}
.announcement-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.announcement-msg {
    color: #cbd5e1;
    font-weight: 500;
}
.announcement-msg strong {
    color: #fff;
    font-weight: 700;
}
.top-voice-pill {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.top-voice-pill:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(6, 182, 212, 0.35));
    color: #fff !important;
    transform: translateY(-1px);
}
.top-nav-links a {
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.top-nav-links a:hover {
    color: #38bdf8;
}

@media (max-width: 860px) {
    .top-announcement-bar .top-nav-links { display: none; }
    .top-announcement-bar .container { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .announcement-badge { display: none; }
    .announcement-msg { font-size: 11.5px; }
}

/* ==========================================================================
   Main Site Header & Navigation
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
body.dark-mode .site-header {
    background: rgba(11, 15, 26, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-header.is-scrolled {
    padding: 7px 0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}
body.dark-mode .site-header.is-scrolled {
    box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Brand Logo */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-logo:hover {
    opacity: 0.95;
    transform: scale(1.02);
}
.site-logo-img {
    height: 38px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: height 0.2s ease;
}
.site-logo-img.logo-light { display: block; }
.site-logo-img.logo-dark { display: none; }
body.dark-mode .site-logo-img.logo-light { display: none; }
body.dark-mode .site-logo-img.logo-dark { display: block; }

@media (max-width: 992px) {
    .site-logo-img { height: 34px; max-width: 160px; }
}
@media (max-width: 480px) {
    .site-logo-img { height: 30px; max-width: 140px; }
}

/* Desktop Instant Search Bar */
.header-search-container {
    position: relative;
    width: clamp(220px, 22vw, 360px);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-search-container:focus-within {
    width: clamp(280px, 28vw, 420px);
}
.header-search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search-box input {
    width: 100%;
    padding: 9px 58px 9px 36px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-main);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-search-box input:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(37, 99, 235, 0.08);
}
body.dark-mode .header-search-box input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .header-search-box input:focus {
    background: rgba(15, 20, 36, 0.95);
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), 0 4px 15px rgba(139, 92, 246, 0.15);
}
.header-search-box .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.search-clear-btn {
    position: absolute;
    right: 48px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s ease;
}
.search-clear-btn:hover { color: var(--text-main); }
.header-search-box .search-kbd {
    position: absolute;
    right: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Dropdown Search Results Card */
.header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.03);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: searchDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes searchDropdownFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
body.dark-mode .header-search-results {
    background: rgba(15, 20, 36, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.7);
}
.header-search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 18px;
}
body.dark-mode .search-result-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}
.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
body.dark-mode .search-result-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

/* Desktop Navigation Links */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-navigation .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-navigation .nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}
.main-navigation .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}
body.dark-mode .main-navigation .nav-link:hover,
body.dark-mode .main-navigation .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Voice AI Pill Button in Nav */
.voice-ai-nav-link {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #8b5cf6 !important;
}
.voice-ai-nav-link:hover, .voice-ai-nav-link.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2)) !important;
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}
body.dark-mode .voice-ai-nav-link {
    color: #c4b5fd !important;
    border-color: rgba(139, 92, 246, 0.45);
}
body.dark-mode .voice-ai-nav-link:hover,
body.dark-mode .voice-ai-nav-link.active {
    color: #fff !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}
.nav-new-pill {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Mega Categories Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.nav-dropdown-btn:hover, .nav-dropdown.open .nav-dropdown-btn {
    color: var(--primary);
    background: var(--primary-light);
}
body.dark-mode .nav-dropdown-btn:hover,
body.dark-mode .nav-dropdown.open .nav-dropdown-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.nav-dropdown-btn .caret-icon {
    font-size: 11px;
    transition: transform 0.25s ease;
}
.nav-dropdown:hover .caret-icon,
.nav-dropdown.open .caret-icon {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
    padding: 14px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: navDropdownFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes navDropdownFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
body.dark-mode .nav-dropdown .dropdown-menu {
    background: rgba(15, 20, 36, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 65px -10px rgba(0, 0, 0, 0.7);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    display: block;
}
.dropdown-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 10px 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}
.dropdown-item:hover {
    background: var(--bg-alt);
    color: var(--primary);
    transform: translateX(2px);
}
body.dark-mode .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.item-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.dropdown-item:hover .item-icon-box {
    transform: scale(1.1);
}
body.dark-mode .item-icon-box {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}
.item-title {
    line-height: 1.25;
}

/* Header Action Controls (Theme, Mobile Search & Hamburger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.nav-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.nav-action-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
body.dark-mode .nav-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}
body.dark-mode .nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Theme Toggle Button Specific */
.theme-toggle-btn:hover {
    transform: rotate(15deg);
}
body.dark-mode .dark-icon { display: none; }
body.dark-mode .light-icon { display: inline-block; color: #f59e0b; }
body:not(.dark-mode) .dark-icon { display: inline-block; color: #6366f1; }
body:not(.dark-mode) .light-icon { display: none; }

/* Mobile Search Button */
.mobile-search-toggle {
    display: none;
}
@media (max-width: 992px) {
    .mobile-search-toggle { display: inline-flex; }
}

/* Mobile Hamburger Button with 3 animated bars */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
}
@media (max-width: 992px) {
    .mobile-menu-toggle { display: inline-flex; }
}
.hamburger-bar {
    width: 17px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Mobile Slide-Down Search Bar */
.mobile-search-bar {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.mobile-search-bar.open {
    max-height: 480px;
    opacity: 1;
    padding: 12px 0 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.mobile-search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.mobile-search-box .search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}
.mobile-search-box input {
    width: 100%;
    padding: 11px 44px 11px 40px;
    border-radius: 9999px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border 0.2s ease;
}
.mobile-search-box input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.mobile-search-close {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
}
.mobile-search-results {
    margin-top: 10px;
    max-height: 280px;
    overflow-y: auto;
    border-radius: 12px;
}

/* ==========================================================================
   Mobile Side Drawer (Modern App-Style Sheet)
   ========================================================================== */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 86vw);
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.dark-mode .mobile-drawer {
    background: #0f1422;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.drawer-close:hover {
    background: var(--border-hover);
    color: var(--text-main);
}
body.dark-mode .drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.drawer-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; }

.drawer-search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.drawer-search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
}
.drawer-search-box input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border-radius: 10px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13.5px;
    outline: none;
}
.drawer-search-box input:focus {
    border-color: var(--primary);
}
.drawer-search-results {
    margin-top: 8px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.drawer-section-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 4px;
}
.drawer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-nav-list li {
    margin-bottom: 3px;
}
.drawer-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.drawer-nav-list li a:hover {
    background: var(--bg-alt);
    color: var(--primary);
    transform: translateX(3px);
}
.drawer-nav-list li a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}
body.dark-mode .drawer-nav-list li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
body.dark-mode .drawer-nav-list li a.active {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-alt);
}
body.dark-mode .drawer-footer {
    background: rgba(0, 0, 0, 0.25);
    border-top-color: rgba(255, 255, 255, 0.08);
}
.drawer-theme-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.drawer-theme-toggle:hover {
    border-color: var(--primary);
}
.theme-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* ==========================================================================
   Responsive Breakpoints for Header & Navigation
   ========================================================================== */
@media (max-width: 1100px) {
    .header-search-container { width: 220px; }
    .header-search-container:focus-within { width: 270px; }
    .nav-links-wrap { gap: 2px; }
    .main-navigation .nav-link { padding: 7px 9px; font-size: 13px; }
    .nav-dropdown-btn { padding: 7px 9px; font-size: 13px; }
}

@media (max-width: 992px) {
    .header-search-container { display: none; }
    .nav-links-wrap { display: none; }
    .site-header { padding: 8px 0; }
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-main);
}
.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 32px;
}

/* Hero Search Box */
.hero-search-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}
.hero-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-full);
}
.hero-search-input-box input {
    width: 100%;
    padding: 18px 24px 18px 54px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius-full);
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}
.hero-search-input-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.hero-search-input-box .hero-search-icon {
    position: absolute;
    left: 20px;
    font-size: 20px;
    color: var(--primary);
}
.hero-search-counter {
    position: absolute;
    right: 18px;
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* Category Filter Tabs */
.category-filter-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 36px;
}
.filter-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Tools Grid & Cards
   ========================================================================== */
.tools-section-title-wrap {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tools-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.15);
}
.tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}
.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s ease;
}
.tool-card:hover .tool-card-icon {
    transform: scale(1.08);
}
.tool-badge-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-popular { background: #fef3c7; color: #b45309; }
.badge-ai { background: #ede9fe; color: #6d28d9; }
.badge-pro { background: #dbeafe; color: #1d4ed8; }
.badge-new { background: #dcfce7; color: #15803d; }
.badge-seo { background: #fce7f3; color: #be185d; }

.tool-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}
.tool-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}
.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-light);
}
.tool-views { display: inline-flex; align-items: center; gap: 4px; }
.tool-arrow {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.tool-card:hover .tool-arrow {
    background: var(--primary);
    color: #fff;
    transform: translateX(3px);
}

/* ==========================================================================
   Single Tool Page Layout
   ========================================================================== */
.breadcrumbs-bar {
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumbs-bar a { color: var(--text-muted); }
.breadcrumbs-bar a:hover { color: var(--primary); }
.breadcrumbs-separator { margin: 0 8px; color: var(--text-light); }

.tool-header-block {
    margin-bottom: 28px;
}
.tool-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tool-page-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.tool-page-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}
.tool-page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 820px;
}

/* Tool Workspace Container */
.tool-workspace-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 28px;
    margin-bottom: 32px;
}
.tool-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.tool-toolbar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-group {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}
.btn-secondary {
    background: var(--bg-alt);
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: var(--border-hover);
}
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: var(--radius-md); }
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover, .btn-outline-primary.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--border-hover);
    color: var(--text-main);
}
.qr-type-btn {
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.qr-type-btn.active {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Form Controls */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}
.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

/* Stats Counter Badges */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.stat-box-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
}
.stat-box-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Results Box */
.result-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 350px;
    overflow-y: auto;
    position: relative;
}

/* ==========================================================================
   Google AdSense Compliance Containers
   ========================================================================== */
.adsense-slot-wrapper {
    margin: 20px auto;
    text-align: center;
    width: 100%;
}
.adsense-disclosure {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 700;
}
.adsense-content-block {
    display: inline-block;
    max-width: 100%;
    min-height: 90px;
}

/* ==========================================================================
   SEO Article & Guide Text (High-Word Count Compliance)
   ========================================================================== */
.article-seo-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
    line-height: 1.8;
    color: var(--text-main);
}
.article-seo-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 24px 0 12px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}
.article-seo-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0 10px;
}
.article-seo-content p {
    margin-bottom: 16px;
    color: var(--text-main);
}
.article-seo-content ul, .article-seo-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.article-seo-content li {
    margin-bottom: 8px;
}

/* FAQ Accordion */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
}
.faq-section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    background: var(--bg-alt);
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-answer {
    padding: 16px 20px;
    background: var(--bg-card);
    display: none;
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}
.faq-chevron {
    transition: transform 0.2s ease;
    font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col-brand .footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
}
.footer-col-title {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-links-list {
    list-style: none;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links-list a:hover {
    color: #38bdf8;
    transform: translateX(3px);
}
.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}
.footer-social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.footer-bottom-bar {
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copyright strong { color: #f8fafc; }
.badge-pill {
    background: #1e293b;
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #0f172a;
    color: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .footer-top-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 34px; }
}

@media (max-width: 640px) {
    .footer-top-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-page-title { font-size: 24px; }
    .tool-workspace-card { padding: 18px; }
    .article-seo-content { padding: 20px; }
    .faq-section { padding: 20px; }
}

/* ==========================================================================
   PDF & Image Tools Components
   ========================================================================== */
.file-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 35px 20px;
    text-align: center;
    background: var(--bg-alt);
    cursor: pointer;
    transition: all 0.2s ease;
}
.file-dropzone:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.04);
}
.dropzone-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}
.page-thumb-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.page-thumb-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.crop-ratio-btn.active {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ==========================================================================
   SEOWriting AI Components & Content Editor
   ========================================================================== */
.score-circle-sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.score-circle-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0%, var(--primary) 78%, var(--border-color) 78% 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    position: relative;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.score-circle-lg::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    background: var(--bg-card);
    border-radius: 50%;
    z-index: 1;
}
.score-circle-lg span {
    position: relative;
    z-index: 2;
    color: var(--text-main);
}

.editor-content-area {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.75;
    color: var(--text-main);
    background: var(--bg-card);
}
.editor-content-area h1, .editor-content-area h2, .editor-content-area h3 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}
.editor-content-area h1 { font-size: 26px; }
.editor-content-area h2 { font-size: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.editor-content-area h3 { font-size: 16px; }
.editor-content-area p { margin-bottom: 1.2em; font-size: 15px; }
.editor-content-area ul, .editor-content-area ol { padding-left: 24px; margin-bottom: 1.2em; }
.editor-content-area li { margin-bottom: 6px; font-size: 15px; }

/* Generated Comparison Tables in Articles */
.editor-content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.editor-content-area table th, .editor-content-area table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}
.editor-content-area table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.editor-content-area blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-alt);
    margin: 18px 0;
    padding: 12px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}
.editor-content-area .faq-block {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 24px;
}
.editor-content-area .cta-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(79, 70, 229, 0.08));
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin: 24px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.checklist-item.passed {
    color: #10b981;
}
.checklist-item.failed {
    color: #ef4444;
}

.serp-preview-box {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ==========================================================================
   Google AdSense & GDPR Cookie Consent Banner
   ========================================================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 980px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cookieSlideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-consent-content {
    flex: 1;
}
.cookie-consent-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.cookie-consent-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.cookie-consent-desc a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}
.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 16px 20px;
        gap: 16px;
    }
    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-consent-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}





/* =========================================================================
   Voice AI Studio Homepage Spotlight Banner
   ========================================================================= */
.voice-studio-spotlight-banner {
    background: linear-gradient(135deg, rgba(20, 24, 42, 0.95), rgba(15, 18, 30, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 20px;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.12);
    margin-bottom: 24px;
}
.voice-studio-spotlight-banner::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.spotlight-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
@media (max-width: 900px) {
    .spotlight-content-row {
        flex-direction: column;
        align-items: stretch;
    }
}
.spotlight-left {
    flex: 1;
}
.spotlight-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.25;
}
.spotlight-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 580px;
}
.spotlight-features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}
.spotlight-features-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.spotlight-right {
    flex: 0 0 340px;
}
@media (max-width: 900px) {
    .spotlight-right { flex: 1; }
}
.spotlight-preview-card {
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.preview-voice-tag {
    font-size: 12px;
    font-weight: 700;
    color: #c4b5fd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.preview-badge-free {
    background: #10b981;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
}
.preview-waveform-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    height: 38px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 12px;
    border-radius: 8px;
}
.waveform-bar {
    width: 4px;
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    border-radius: 4px;
    animation: barPulse 1.4s ease-in-out infinite alternate;
}
@keyframes barPulse {
    0% { transform: scaleY(0.4); opacity: 0.6; }
    100% { transform: scaleY(1); opacity: 1; }
}
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { animation-delay: 0.7s; }
.preview-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.preview-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.preview-play-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
.preview-text-info {
    overflow: hidden;
}
.preview-text-line {
    display: block;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.preview-text-sub {
    display: block;
    font-size: 10px;
    color: #94a3b8;
}
