@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Color Palette - Modern Deep Tech Slate */
    --bg-main: #080b12;
    --bg-secondary: #0e131f;
    --bg-surface: #131929;
    --bg-surface-elevated: #182035;
    --bg-glass: rgba(19, 25, 41, 0.75);
    --bg-glass-card: rgba(22, 30, 49, 0.6);
    --bg-glass-hover: rgba(30, 41, 67, 0.75);
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-accent: rgba(56, 189, 248, 0.35);
    --border-active: rgba(56, 189, 248, 0.7);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    /* Tech Accents */
    --accent-blue: #0284c7;
    --accent-sky: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-violet: #8b5cf6;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    --grad-primary-hover: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #4338ca 100%);
    --grad-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --grad-card-overlay: linear-gradient(180deg, rgba(8, 11, 18, 0) 0%, rgba(8, 11, 18, 0.85) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);
    --shadow-button: 0 8px 25px rgba(37, 99, 235, 0.35);

    /* Radius & Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 85% 60%, rgba(99, 102, 241, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 15% 40%, rgba(6, 182, 212, 0.06), transparent);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

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

a:hover {
    color: #7dd3fc;
}

/* Utility Containers */
.site-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 11, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.brand-accent {
    color: var(--accent-sky);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.nav-link.active {
    color: var(--accent-sky);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-history-btn,
.nav-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-history-btn:hover,
.nav-home-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.nav-sponsor-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-sky);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-sponsor-btn:hover {
    background: var(--accent-sky);
    color: var(--text-inverse);
    border-color: var(--accent-sky);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: 0.4rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-medium);
    color: var(--accent-sky);
}

/* ==========================================================================
   HERO / EXPLORER SECTION
   ========================================================================== */
.hero-section {
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-sky);
    margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title .title-accent {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto 2.25rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Category Filter Tabs */
.category-filter-wrapper {
    max-width: 860px;
    margin: 0 auto 2rem;
}

.category-filter-label {
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.chip-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-medium);
}

.chip-btn.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-sky);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
    font-weight: 600;
}

/* Main Action Controls */
.hero-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--grad-primary);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.1rem 3.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary-explore:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55), 0 0 20px rgba(56, 189, 248, 0.35);
    color: #ffffff;
}

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

.btn-primary-explore .btn-icon {
    font-size: 1.35rem;
    transition: transform var(--transition-fast);
}

.btn-primary-explore:hover .btn-icon {
    transform: translateX(4px) rotate(10deg);
}

.hero-sub-options {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mode-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
}

.mode-toggle-label input[type="checkbox"] {
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* ==========================================================================
   LIVE DISCOVERY REVEAL MODAL / CARD
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.discovery-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-smooth);
    position: relative;
}

.modal-overlay.active .discovery-modal-card {
    transform: scale(1) translateY(0);
}

.modal-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-body {
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.discovery-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.discovery-icon-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.discovery-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.discovery-url-display {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 1.25rem;
    word-break: break-all;
}

.discovery-category-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
    border: 1px solid var(--border-subtle);
}

.discovery-description {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    max-width: 440px;
}

.discovery-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-launch-site {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--grad-primary);
    color: white;
    font-weight: 700;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.btn-launch-site:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: white;
}

.btn-roll-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-roll-next:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-copy-url {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.btn-copy-url:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   RECOMMENDED & POPULAR SECTION STYLES (Clean, Unified & Compact)
   ========================================================================== */
.section-wrapper {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-subtle);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-group {
    max-width: 600px;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-sky);
    margin-bottom: 0.4rem;
    display: block;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

/* Unified Tool Cards Grid */
.recommended-grid,
.popular-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tool-card-eyebrow {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.tool-card-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    width: 100%;
}

.tool-brand-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
}

.tool-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.tool-card:hover .tool-icon-box {
    border-color: rgba(56, 189, 248, 0.4);
    transform: scale(1.04);
}

.tool-icon-box img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.tool-fallback-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    user-select: none;
    border-radius: 11px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.tool-hero-icon .tool-fallback-avatar {
    font-size: 1.85rem;
    border-radius: 14px;
}

.tool-name-col {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex-grow: 1;
    min-width: 0;
}

.card-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    width: fit-content;
}

.badge-featured {
    color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-recommended {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge-staffpick {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tool-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    word-break: break-word;
}

.tool-domain {
    font-size: 0.8rem;
    color: var(--accent-sky);
    font-family: monospace;
    line-height: 1.2;
    word-break: break-all;
}

.tool-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-category-tag {
    font-size: 0.725rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.tool-visit-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-sky);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform var(--transition-fast);
}

.tool-card:hover .tool-visit-link {
    transform: translateX(2px);
    color: #7dd3fc;
}

/* ==========================================================================
   POPULAR SEARCH BAR
   ========================================================================== */
.popular-search-bar-wrapper {
    margin-bottom: 1.75rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.search-input-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.search-input-box input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    padding: 0.7rem 1.25rem 0.7rem 2.6rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.search-input-box input:focus {
    border-color: var(--accent-sky);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: var(--bg-surface-elevated);
}

.search-input-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.popular-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* ==========================================================================
   PAGINATION CONTROLS
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.pagination-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-surface);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.page-btn:hover:not(:disabled) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-subtle);
}

.page-btn.active {
    background: var(--grad-primary);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn-nav {
    padding: 0 0.85rem;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 0.25rem;
    font-size: 0.85rem;
    user-select: none;
}

/* ==========================================================================
   ABOUT / INFO SECTION ON HOME
   ========================================================================== */
.about-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.feature-box {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-box:hover {
    border-color: var(--border-medium);
    background: var(--bg-glass-hover);
}

.feature-box-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.feature-box h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   HISTORY & BOOKMARKS SIDE DRAWER
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

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

.history-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-medium);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

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

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

.drawer-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.drawer-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.history-item:hover {
    border-color: var(--border-medium);
}

.history-item-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.history-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.history-item-url {
    font-family: monospace;
    font-size: 0.775rem;
    color: var(--accent-sky);
}

.history-empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   SUBPAGE STYLES (About, Contact, Privacy)
   ========================================================================== */
.subpage-container {
    max-width: 860px;
    margin: 3.5rem auto;
    padding: 0 1.5rem;
}

.subpage-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.subpage-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.subpage-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.content-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 2.25rem;
}

/* ==========================================================================
   ENRICHED TOOL DETAIL PAGE STYLES (High-Quality SEO Layout)
   ========================================================================== */
.tool-detail-container {
    max-width: 920px;
    margin: 2.5rem auto 4.5rem;
    padding: 0 1.25rem;
}

.tool-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.tool-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tool-breadcrumbs a:hover {
    color: var(--accent-sky);
}

.tool-breadcrumbs span {
    color: var(--text-primary);
    font-weight: 600;
}

.tool-hero-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.tool-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tool-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.tool-hero-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tool-hero-title-group {
    flex: 1;
    min-width: 260px;
}

.tool-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.tool-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.tool-hero-domain {
    font-size: 0.9rem;
    color: var(--accent-sky);
    font-family: monospace;
}

.tool-hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.tool-actions-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-launch-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-launch-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    color: #ffffff !important;
}

.btn-alt-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.btn-alt-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-accent);
    color: #ffffff !important;
}

/* Feature Cards Grid */
.tool-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.tool-feature-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    transition: all var(--transition-fast);
}

.tool-feature-box:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.tool-feature-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-feature-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Detailed Editorial Overview Section */
.tool-overview-section {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2.25rem;
}

.tool-overview-section h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.tool-overview-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.15rem;
}

.tool-overview-section p:last-child {
    margin-bottom: 0;
}

/* Alternatives Table Card */
.tool-table-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2.25rem;
    overflow: hidden;
}

.tool-table-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tool-table-card p.table-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tool-comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(8, 12, 20, 0.7);
}

.tool-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.tool-comparison-table th {
    background: rgba(56, 189, 248, 0.08);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-subtle);
}

.tool-comparison-table td {
    padding: 0.95rem 1.25rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.tool-comparison-table tr:last-child td {
    border-bottom: none;
}

.tool-comparison-table tr:hover td {
    background: rgba(56, 189, 248, 0.03);
}

/* Tool FAQ Accordions */
.tool-faq-section {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2.25rem;
}

.tool-faq-section h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.tool-faq-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.tool-faq-card[open] {
    border-color: var(--border-accent);
}

.tool-faq-card summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-faq-card summary::-webkit-details-marker {
    display: none;
}

.tool-faq-card summary::after {
    content: "+";
    color: var(--accent-sky);
    font-size: 1.2rem;
    font-weight: 700;
}

.tool-faq-card[open] summary::after {
    content: "−";
}

.tool-faq-body {
    padding: 0 1.25rem 1.15rem;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* Extension Promo Banner */
.tool-promo-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%), #0c1220;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tool-promo-info {
    flex: 1;
    min-width: 280px;
}

.tool-promo-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.tool-promo-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}


.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.35rem;
    color: var(--accent-sky);
    margin-bottom: 0.85rem;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.75;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.content-section ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
}

.content-section ul li::before {
    content: "•";
    color: var(--accent-sky);
    position: absolute;
    left: 0.35rem;
    font-weight: bold;
}

.content-section ol {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.content-section ol li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-section ol li strong {
    color: var(--text-primary);
}

.content-section h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

/* ==========================================================================
   BLOG & CONVERSION CTA STYLES
   ========================================================================== */
.blog-post-container {
    max-width: 820px;
    margin: 2.5rem auto 4.5rem;
    padding: 0 1.25rem;
}

.blog-post-header {
    text-align: left;
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.blog-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.blog-breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-breadcrumb-nav a:hover {
    color: var(--accent-sky);
}

.blog-post-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.blog-post-lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.blog-post-meta, .blog-meta-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.blog-author-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--accent-sky);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-sky);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-post-body {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    .blog-post-body {
        padding: 1.75rem 1.25rem;
    }
}

.blog-post-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.35rem;
}

.blog-post-body h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent-sky);
    line-height: 1.3;
}

.blog-post-body h2:first-of-type {
    margin-top: 0.5rem;
}

.blog-post-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.blog-post-body ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.65rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.blog-post-body ul li::before {
    content: "•";
    color: var(--accent-sky);
    position: absolute;
    left: 0.45rem;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
}

.blog-post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-body ol li {
    margin-bottom: 0.65rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.blog-post-body strong {
    color: #f1f5f9;
    font-weight: 600;
}

.blog-callout-box, .blog-pro-tip {
    background: rgba(15, 23, 42, 0.75);
    border-left: 4px solid var(--accent-sky);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    border-right: 1px solid rgba(56, 189, 248, 0.2);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.blog-callout-box strong, .blog-pro-tip strong {
    color: #f8fafc;
}

/* CTA Card */
.blog-cta-card, .blog-cta-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(37, 99, 235, 0.12) 100%), #0c1220;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    margin: 2.75rem 0;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.12);
    position: relative;
    overflow: hidden;
}

.blog-cta-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: #ffffff;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

.blog-cta-icon-wrapper img, .blog-cta-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.blog-cta-card-title, .blog-cta-box h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.015em;
}

.blog-cta-card-desc, .blog-cta-box p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}

.blog-cta-buttons, .blog-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary, .blog-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.85rem 1.85rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-primary:hover, .blog-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    color: #ffffff !important;
}

.btn-cta-secondary, .blog-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.btn-cta-secondary:hover, .blog-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

/* Comparison Tables */
.blog-table-container, .blog-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(8, 12, 20, 0.7);
}

.blog-editorial-table, .blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.blog-editorial-table th, .blog-table th {
    background: rgba(56, 189, 248, 0.08);
    color: #f8fafc;
    padding: 1rem 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-medium);
}

.blog-editorial-table td, .blog-table td {
    padding: 0.95rem 1.25rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.55;
}

.blog-editorial-table tr:last-child td, .blog-table tr:last-child td {
    border-bottom: none;
}

.blog-editorial-table tr:hover td, .blog-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* FAQ Details Item */
.blog-faq-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.blog-faq-card[open] {
    border-color: rgba(56, 189, 248, 0.4);
}

.blog-faq-card summary {
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: 1.02rem;
    color: #f8fafc;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-faq-card summary::-webkit-details-marker {
    display: none;
}

.blog-faq-card summary::after {
    content: "+";
    color: var(--accent-sky);
    font-size: 1.25rem;
    font-weight: 700;
}

.blog-faq-card[open] summary::after {
    content: "−";
}

.blog-faq-body {
    padding: 0 1.25rem 1.15rem;
    color: #94a3b8;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* Related Guides Section */
.blog-related-wrapper, .blog-related-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.blog-related-heading, .blog-related-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1.35rem;
    text-align: center;
}

.blog-related-cards-grid, .blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.blog-related-item, .blog-related-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.blog-related-item:hover, .blog-related-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-related-item h4, .blog-related-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0.5rem 0 0.4rem;
    line-height: 1.35;
}

.blog-related-item p, .blog-related-card p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.blog-back-btn-container {
    text-align: center;
    margin-top: 2.75rem;
}

/* ==========================================================================
   AD CONTAINERS
   ========================================================================== */
.ad-container {
    margin: 2rem auto;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: rgba(19, 25, 41, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Hide empty ad placeholders until AdSense fills them */
.ad-container:not(:has(iframe)) {
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: rgba(8, 11, 18, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-sky);
}

.footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.825rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FAQ ACCORDION SECTION (SEO & USER GUIDE)
   ========================================================================== */
.faq-container {
    max-width: 860px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

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

.faq-item.active {
    background: var(--bg-surface-elevated);
    border-color: var(--border-active);
    box-shadow: var(--shadow-sm);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.faq-question-btn:hover {
    color: var(--accent-sky);
}

.faq-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-sky);
    font-size: 1.1rem;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform var(--transition-smooth), background var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    background: rgba(56, 189, 248, 0.2);
}

.faq-answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-item.active .faq-answer-content {
    max-height: 350px;
    padding: 0 1.5rem 1.35rem 1.5rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(8, 11, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem 1.25rem;
        gap: 0.35rem;
        border-bottom: 1px solid var(--border-medium);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
        margin: 0;
        animation: navSlideDown 0.2s ease-out;
        z-index: 1000;
    }
    .nav-links.open .nav-link {
        display: flex;
        align-items: center;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 64px;
        padding: 0 1rem;
        gap: 0.4rem;
    }
    .nav-links.open {
        top: 64px;
    }
    .nav-brand {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    .brand-logo-img {
        width: 30px;
        height: 30px;
    }
    .nav-actions {
        gap: 0.35rem;
    }
    .nav-history-btn,
    .nav-home-btn {
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    .nav-history-btn .nav-btn-text,
    .nav-home-btn .nav-btn-text {
        display: none;
    }
    .nav-history-btn .nav-btn-icon,
    .nav-home-btn .nav-btn-icon {
        display: inline-block;
        font-size: 1.05rem;
        line-height: 1;
    }
    .nav-sponsor-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.78rem;
    }
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
        margin-left: 0.25rem;
    }
    .hero-section {
        padding: 3rem 0 2rem;
    }
    .btn-primary-explore {
        font-size: 1.15rem;
        padding: 1rem 2rem;
        width: 100%;
        max-width: 320px;
    }
    .recommended-grid,
    .popular-tools-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .content-card {
        padding: 1.5rem;
    }
    .discovery-modal-card {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.65rem;
        gap: 0.25rem;
    }
    .nav-brand {
        font-size: 1.02rem;
        gap: 0.35rem;
    }
    .brand-logo-img {
        width: 28px;
        height: 28px;
    }
    .nav-sponsor-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.74rem;
        gap: 0.25rem;
    }
    .nav-history-btn,
    .nav-home-btn,
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 380px) {
    .nav-home-btn {
        display: none;
    }
    .nav-brand span {
        font-size: 0.95rem;
    }
}