/* ============================================================
   A to Z SEO Tools — Modern Theme v2
   ============================================================ */

:root {
    /* RankWise "Signal" theme — see rankwise-themes.css for the full token spec */
    --primary:        #1d4ed8;
    --primary-dark:   #1740b6;
    --primary-light:  #3b82f6;
    --primary-glow:   rgba(29,78,216,.18);
    --accent:         #0e7490;
    --accent-dark:    #0b5b71;
    --hero-from:      #0a0f1e;
    --hero-mid:       #0f2d5e;
    --hero-to:        #1a3a7a;
    --footer-dark:    #070d1a;
    --footer-mid:     #0f1a2e;
    --text:           #0f1b30;
    --text-light:     #4a5a75;
    --border:         #c6d6eb;
    --bg:             #f4f7fc;
    --card-bg:        #ffffff;
    --radius:         14px;
    --radius-sm:      10px;
    --radius-xs:      6px;
    --transition:     all .2s cubic-bezier(.4,0,.2,1);
    --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:      0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:      0 12px 40px rgba(0,0,0,.15);
    --shadow-primary: 0 8px 25px var(--primary-glow);
    --shadow-primary-h: 0 12px 35px rgba(29,78,216,.3);
}

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Skip-to-content link: visually hidden until keyboard-focused */
.skip-to-content {
    position: absolute; top: -60px; left: 8px; z-index: 10000;
    background: var(--primary); color: #fff !important;
    padding: 10px 18px; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
    text-decoration: none !important;
    transition: top .15s ease;
}
.skip-to-content:focus { top: 8px; }

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

/* ── Navbar ─────────────────────────────────────────────── */
.navbar-default {
    background: rgba(255,255,255,.95) !important;
    background-image: none !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 0;
    transition: box-shadow .25s ease, background .25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-default.nav-scrolled {
    box-shadow: var(--shadow-md) !important;
    background: rgba(255,255,255,.98) !important;
}

.navbar-default .navbar-nav > li > a {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 13.5px;
    padding: 7px 14px !important;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
    position: relative;
    line-height: 1.4;
}

.navbar-default .navbar-nav > li > a::after { display: none; }

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: var(--primary) !important;
    background: rgba(29,78,216,.1) !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover {
    color: var(--primary) !important;
    background: rgba(29,78,216,.1) !important;
}

.navbar-brand { padding: 12px 15px !important; margin: 0 !important; height: auto; }
.atoz_seo_tools_logo, .themeLogoImg { max-height: 40px; padding: 0; display: block; }

.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand { margin-left: 0; }

/* ── Navbar: single-line layout — [logo][nav links]···[search] */
@media(min-width: 768px) {
    .navbar .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
    }
    .navbar-header { flex-shrink: 0; }
    /* Match Bootstrap's .navbar-collapse.collapse specificity so flex wins */
    .navbar-collapse,
    .navbar-collapse.collapse {
        display: flex !important;
        align-items: center;
        flex: 1;
        padding: 0;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        height: auto !important;
        width: auto !important;
    }
    /* Search grows to fill middle space */
    .nav-search-wrap {
        float: none;
        flex: 1;
        max-width: 520px;
        margin: 0 20px;
    }
    .nav-search-inner { width: 100%; }
    .nav-search-input { width: 100% !important; box-sizing: border-box; }
    .nav-search-input:focus { width: 100% !important; }
    /* Nav links pushed to far right */
    .navbar-right {
        float: none !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .navbar-nav {
        display: flex;
        align-items: center;
        float: none;
        margin: 0;
    }
    .navbar-nav > li { float: none; }
}

/* ── Navbar search ───────────────────────────────────────── */
.nav-search-wrap {
    position: relative; margin: 0 8px 0 16px; flex-shrink: 0;
}
.nav-search-inner {
    position: relative; display: flex; align-items: center;
}
.nav-search-icon {
    position: absolute; left: 10px; font-size: 12px; color: #94a3b8;
    pointer-events: none; z-index: 1;
}
.nav-search-input {
    height: 32px; width: 200px; padding: 0 28px 0 30px;
    border: 1.5px solid var(--border, #e2e8f0); border-radius: 8px;
    background: #f8fafc; color: #334155; font-size: 13px; outline: none;
    transition: border-color .15s, width .2s, box-shadow .15s;
}
.nav-search-input::placeholder { color: #94a3b8; }
.nav-search-input:focus {
    border-color: #2563eb; background: #fff; width: 240px;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.nav-search-clear {
    position: absolute; right: 6px; background: none; border: none;
    color: #94a3b8; cursor: pointer; padding: 4px 5px; font-size: 11px;
    display: none; align-items: center; line-height: 1; border-radius: 4px;
}
.nav-search-clear:hover { color: #334155; background: #f1f5f9; }
.nav-search-drop {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 270px; background: #fff; border-radius: 10px; z-index: 1060;
    box-shadow: 0 8px 32px rgba(0,0,0,.13); border: 1px solid #e2e8f0;
    overflow: hidden;
}
.nsr-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; font-size: 13px; color: #334155;
    text-decoration: none; border-bottom: 1px solid #f1f5f9;
    transition: background .1s;
}
.nsr-item:last-child { border-bottom: none; }
.nsr-item:hover { background: #eff6ff; color: #2563eb; text-decoration: none; }
.nsr-item img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.nsr-item mark { background: none; color: #2563eb; font-weight: 700; padding: 0; }
.nsr-empty { padding: 11px 14px; font-size: 13px; color: #94a3b8; text-align: center; }
html.dark-mode .nav-search-input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #e2e8f0; }

html.dark-mode .nav-search-input::placeholder { color: #475569; }
html.dark-mode .nav-search-input:focus { background: rgba(255,255,255,.1); border-color: #2563eb; }
html.dark-mode .nav-search-drop { background: #1e293b; border-color: rgba(255,255,255,.08); }
html.dark-mode .nsr-item { color: #cbd5e1; border-bottom-color: rgba(255,255,255,.06); }
html.dark-mode .nsr-item:hover { background: rgba(29,78,216,.12); color: #60a5fa; }
@media(max-width:767px){
    .nav-search-wrap { float: none; margin: 4px 0; padding: 0 15px; }
    .nav-search-input { width: 100%; box-sizing: border-box; }
    .nav-search-input:focus { width: 100%; }
    .nav-search-drop { width: 100%; min-width: unset; }
}

.navbar-nav > li.dropdown .dropdown-menu {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-sm) !important;
    border-top: 3px solid var(--primary) !important;
    margin-top: 0;
    padding: 6px 0;
}
.navbar-nav > li.dropdown .dropdown-menu a {
    color: var(--text) !important;
    font-size: 13px;
    padding: 9px 18px;
}
.navbar-nav > li.dropdown .dropdown-menu a:hover {
    background: #f0f7ff !important;
    color: var(--primary) !important;
}

/* ── Hero (homepage) ────────────────────────────────────── */
.masthead {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 50%, var(--hero-to) 100%);
    min-height: 380px;
    padding: 72px 0 116px;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Animated grid mesh */
.masthead-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Animated glow orbs */
.masthead::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(29,78,216,.28) 0%, transparent 65%);
    animation: orbPulse 7s ease-in-out infinite;
    pointer-events: none;
}
.masthead::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(6,182,212,.18) 0%, transparent 65%);
    animation: orbPulse 9s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50%       { transform: scale(1.12) translate(24px, -24px); }
}

.seobannerBig { position: relative; z-index: 2; margin-top: 0; }

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50px;
    padding: 6px 16px 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    letter-spacing: .02em;
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(74,222,128,.25);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
    50%       { box-shadow: 0 0 0 6px rgba(74,222,128,.1); }
}

.seobannerh1 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 46px;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -.03em;
}
.seobannerh1 .gradient-text {
    background: linear-gradient(135deg, #60a5fa, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seobannerp {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 460px;
}

/* Hero stats row */
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    transition: var(--transition);
}
.hero-stat:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
}
.hero-stat-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: var(--accent);
    flex-shrink: 0;
}
.hero-stat-text strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.hero-stat-text span {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-action-row { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.hero-action-row #getStarted { margin-right: 0; flex-shrink: 0; }
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 58px;
    box-sizing: border-box;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 0 20px;
    border-radius: 14px;
    transition: var(--transition);
    text-decoration: none !important;
    backdrop-filter: blur(8px);
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}
.hero-secondary-btn:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-2px);
}
.hero-cta-note { font-size: 12.5px; color: rgba(255,255,255,.65); font-family: 'Inter', sans-serif; margin: -6px 0 0; }

@media (max-width: 767px) {
    .hero-action-row { flex-direction: column; align-items: stretch; }
    .hero-action-row #getStarted,
    .hero-action-row .hero-secondary-btn { width: 100%; text-align: center; justify-content: center; }
}

.masthead .visible-lg, .masthead .visible-md {
    filter: drop-shadow(0 24px 48px rgba(0,0,0,.4));
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin-top: 10px;
}

/* ── Sub-page hero ──────────────────────────────────────── */
.submasthead {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 100%);
    min-height: 0;
    padding: 28px 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}
.submasthead::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(29,78,216,.2) 0%, transparent 70%);
    pointer-events: none;
}
.seobannerSmall { margin-top: 0; position: relative; z-index: 1; }
.sub_seobannerh1 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* ── Features strip ─────────────────────────────────────── */
.features-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px;
    border-right: 1px solid var(--border);
    transition: background .2s ease;
    position: relative;
}
.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20px; right: 20px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .2s ease;
}
.feature-item:hover::after { transform: scaleX(1); }
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: #f8fafc; }
.feature-icon-wrap {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.feature-item:hover .feature-icon-wrap { transform: scale(1.1) rotate(-4deg); }
.feature-icon-wrap.blue   { background: linear-gradient(135deg,#eff6ff,#dbeafe); color: var(--primary); }
.feature-icon-wrap.teal   { background: linear-gradient(135deg,#f0fdfa,#ccfbf1); color: #0d9488; }
.feature-icon-wrap.purple { background: linear-gradient(135deg,#faf5ff,#ede9fe); color: #7c3aed; }
.feature-icon-wrap.orange { background: linear-gradient(135deg,#fff7ed,#fed7aa); color: #ea580c; }
.feature-text strong { display: block; font-size: 15px; font-weight: 800; color: #1e293b; line-height: 1.3; }
.feature-text span   { display: block; font-size: 12.5px; color: #475569; margin-top: 3px; }
a.feature-item, a.feature-item:hover, a.feature-item:focus { text-decoration: none !important; color: #1e293b !important; outline: none; }
a.feature-item .feature-text strong { color: #1e293b !important; font-weight: 800 !important; transition: color .2s ease; }
a.feature-item .feature-text span { color: #475569 !important; }
a.feature-item:hover .feature-text strong { color: var(--primary) !important; }
html.dark-mode .features-strip { background: #0f1a2e !important; border-color: rgba(255,255,255,.07) !important; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
html.dark-mode .feature-item { border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .feature-item:hover { background: #132038 !important; }
html.dark-mode .feature-text strong, html.dark-mode a.feature-item .feature-text strong { color: #e2e8f0 !important; }
html.dark-mode .feature-text span, html.dark-mode a.feature-item .feature-text span { color: #94a3b8 !important; }
html.dark-mode a.feature-item, html.dark-mode a.feature-item:hover, html.dark-mode a.feature-item:focus { color: #e2e8f0 !important; }

/* ── Floating search card ────────────────────────────────── */
.main-container {
    margin-top: 32px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

#searchSec {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(29,78,216,.08), 0 1px 4px rgba(0,0,0,.05);
    padding: 24px 28px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    position: relative;
}

#sidebarSc { padding: 14px; position: relative; }

.form-control {
    background: #f8fafc;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    height: auto;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1) !important;
    outline: none;
}
#search, #sidebarsearch { box-shadow: none !important; }
.search-green {
    background: var(--primary) !important;
    color: #fff;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    padding: 0 18px;
}
.input-group.green.shadow { box-shadow: 0 2px 12px rgba(29,78,216,.12); }
.input-group .input-group-addon { background: #f1f5f9; border-color: var(--border); }

.search-results {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 48px rgba(0,0,0,.13);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    padding: 6px;
    top: calc(100% + 6px);
    width: 100%;
    z-index: 200;
    position: absolute;
    animation: srchFadeIn .15s ease;
}
@keyframes srchFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Legacy match style (sidebar / fallback) */
.search-results .match { display: inline-block; padding: 4px; width: 50%; box-sizing: border-box; }
.search-results .match a { border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--text); display: block; padding: 7px 10px; text-decoration: none; transition: var(--transition); font-size: 13px; }
.search-results .match a:hover { background: #f0f7ff; border-color: #bfdbfe; color: var(--primary); box-shadow: none; }
/* Enhanced search result items */
.srch-count { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px 6px; }
.srch-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; text-decoration: none !important; color: var(--text) !important; transition: background .12s ease; }
.srch-item:hover, .srch-item.srch-active { background: #f0f7ff; color: var(--primary) !important; }
.srch-icon { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.srch-name { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.3; }
.srch-name mark { background: none; color: var(--primary); font-weight: 700; padding: 0; }
.srch-arrow { font-size: 10px; color: var(--text-light); flex-shrink: 0; opacity: 0; transition: opacity .12s; }
.srch-item:hover .srch-arrow, .srch-item.srch-active .srch-arrow { opacity: 1; }
.srch-empty { padding: 18px 12px; font-size: 14px; color: var(--text-light); text-align: center; }
/* Clear button */
.search-clear-btn { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: #e2e8f0; border: none; border-radius: 50%; width: 22px; height: 22px; display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; color: var(--text-light); z-index: 5; transition: background .15s; padding: 0; }
.search-clear-btn:hover { background: #cbd5e1; color: var(--text); }
@media (max-width: 767px) { .search-clear-btn { right: 12px; } }
#sidebar-results { padding: 4px !important; font-size: 13px !important; }
.sidebarmatch { width: 100% !important; }

/* ── Search shortcut badge ──────────────────────────────── */
.search-shortcut {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 3px;
    pointer-events: none;
}
.search-shortcut kbd {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 0 var(--border);
    line-height: 1.5;
}
.search-input-group-wrap { position: relative; }
.search-input-group-wrap .form-control { padding-right: 90px; }
@media (max-width: 767px) { .search-shortcut { display: none; } }

.category-pills, .category-pill { display: none !important; }

/* ── Main content area ──────────────────────────────────── */
.main-index {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

/* ── Category headings ──────────────────────────────────── */
.category_heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
    padding: 2px 0 10px 16px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 6px;
    position: relative;
}
.category_heading::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 10px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}

.category_des { font-family: 'Lora', Georgia, serif; color: var(--text-light); font-size: 14px; margin: 0 0 20px 16px; line-height: 1.55; }
.category_box { margin-bottom: 8px; display: flex; flex-wrap: wrap; row-gap: 20px; }
.category_box > [class*="col-"] { display: flex; }
.cat-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 24px 20px 12px;
}
html.dark-mode .cat-section {
    background: linear-gradient(135deg, #0c2016 0%, #0d261a 100%);
    border-color: #166534;
}
.cat-section--spaced { margin-top: 48px; }
.cat-section { scroll-margin-top: 90px; }

/* ── Jump-to-category nav — the homepage has 15-20 sections below, so this
   lets visitors jump directly to one instead of scrolling through all of them ── */
.cat-jump-nav {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 0 0 24px;
    padding: 4px 8px;
}
.cat-jump-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: thin;
}
.cat-jump-nav-inner::-webkit-scrollbar { height: 4px; }
.cat-jump-nav-inner a {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg-2, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    white-space: nowrap;
    transition: var(--transition);
}
.cat-jump-nav-inner a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
html.dark-mode .cat-jump-nav {
    background: rgba(15,23,42,.97) !important;
    border-color: rgba(255,255,255,.08) !important;
}
html.dark-mode .cat-jump-nav-inner a {
    background: #0f1a2e !important;
    border-color: rgba(255,255,255,.1) !important;
    color: #e2e8f0 !important;
}
html.dark-mode .cat-jump-nav-inner a:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ── Per-container accent colors — each category/subgroup box cycles through
   these so they're visually distinguishable at a glance instead of all-green ── */
.cat-color-2 { background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%); border-color: #bfdbfe; }
html.dark-mode .cat-color-2 { background: linear-gradient(135deg, #0f1b2e 0%, #12172e 100%); border-color: #1e40af; }

.cat-color-3 { background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%); border-color: #ddd6fe; }
html.dark-mode .cat-color-3 { background: linear-gradient(135deg, #201a2e 0%, #1c1730 100%); border-color: #6d28d9; }

.cat-color-4 { background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%); border-color: #fed7aa; }
html.dark-mode .cat-color-4 { background: linear-gradient(135deg, #2b1c0e 0%, #2a220c 100%); border-color: #c2410c; }

.cat-color-5 { background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 100%); border-color: #fbcfe8; }
html.dark-mode .cat-color-5 { background: linear-gradient(135deg, #2b1520 0%, #2a121a 100%); border-color: #be185d; }

.cat-color-6 { background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%); border-color: #99f6e4; }
html.dark-mode .cat-color-6 { background: linear-gradient(135deg, #0c2422 0%, #0b2226 100%); border-color: #0f766e; }

.cat-color-7 { background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%); border-color: #fde68a; }
html.dark-mode .cat-color-7 { background: linear-gradient(135deg, #2a2408 0%, #2b220c 100%); border-color: #a16207; }

.cat-color-8 { background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%); border-color: #fecaca; }
html.dark-mode .cat-color-8 { background: linear-gradient(135deg, #2b1414 0%, #2a1216 100%); border-color: #b91c1c; }

/* Games & Fun gets its own fixed, distinctive color rather than the auto-cycling
   scheme, so it can never accidentally land on the same color as a neighboring
   section (as it did when it auto-cycled onto the same red as Developer Tools). */
.cat-color-games { background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%); border-color: #fcd34d; }
html.dark-mode .cat-color-games { background: linear-gradient(135deg, #2b2408 0%, #2b1c0c 100%); border-color: #d97706; }
.fav-section { margin-top: 28px; }
.fav-cats-section { margin-top: 28px; }

/* ── Tool cards ─────────────────────────────────────────── */
.thumbnail {
    background: linear-gradient(150deg, #ffffff 0%, #f7faff 45%, #e9f1fd 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 0 18px 0;
    text-align: center;
    transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.thumbnail .seotoollink { display: flex; flex-direction: column; flex: 1; }
.thumbnail .caption { flex: 1; display: flex; align-items: center; justify-content: center; }
.tool-card-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 16px 10px;
    min-height: 78px;
}
.tool-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 -1px 3px rgba(15,23,42,.05);
}
.tool-icon-badge .seotoolimg {
    width: 19px;
    height: 19px;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
    display: block;
}
.tool-card-head .caption {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    text-align: left;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 !important;
}
.category_box > [class*="col-"] > .thumbnail .tool-card-head .caption { margin-top: 0 !important; }
.thumbnail:hover {
    box-shadow: 0 16px 32px rgba(29,78,216,.14), 0 3px 10px rgba(15,23,42,.06) !important;
    border-color: #93c5fd;
    transform: translateY(-4px);
}
html.dark-mode .thumbnail {
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
}
html.dark-mode .thumbnail:hover {
    box-shadow: 0 18px 44px rgba(29,78,216,.28), 0 4px 14px rgba(0,0,0,.4) !important;
}

/* Top-edge accent bar on hover */
.thumbnail::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity .22s ease;
}
.thumbnail:hover::after { opacity: 1; }

/* Icon sits beside the title in .tool-card-head; only the small icon badge carries
   the tinted background now — the card body itself stays plain white/neutral. */
.thumbnail:hover .tool-icon-badge .seotoolimg { transform: scale(1.1); }
.tool-icon-badge .seotoolimg { transition: transform .28s ease; }

/* Each card in a row cycles through 8 distinct color identities (icon badge tint,
   permanent top accent bar, and hover glow all match) so neighbouring tools read as
   visually distinct instead of a uniform repeating block. Selector list covers every
   grid-column class actually used across the homepage/category grids. */
.category_box > [class*="col-"]:nth-child(8n+1) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.category_box > [class*="col-"]:nth-child(8n+2) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); }
.category_box > [class*="col-"]:nth-child(8n+3) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #faf5ff, #ede9fe); }
.category_box > [class*="col-"]:nth-child(8n+4) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.category_box > [class*="col-"]:nth-child(8n+5) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #fdf2f8, #fbcfe8); }
.category_box > [class*="col-"]:nth-child(8n+6) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); }
.category_box > [class*="col-"]:nth-child(8n+7) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #fefce8, #fde68a); }
.category_box > [class*="col-"]:nth-child(8n+8) .thumbnail .tool-icon-badge { background: linear-gradient(135deg, #fef2f2, #fecaca); }

/* Permanent top accent bar (subtle at rest, brightens on hover) matching each card's color */
.category_box > [class*="col-"]:nth-child(8n+1) .thumbnail::after { background: linear-gradient(to right, #2563eb, #60a5fa); opacity: .35; }
.category_box > [class*="col-"]:nth-child(8n+2) .thumbnail::after { background: linear-gradient(to right, #0d9488, #2dd4bf); opacity: .35; }
.category_box > [class*="col-"]:nth-child(8n+3) .thumbnail::after { background: linear-gradient(to right, #7c3aed, #a78bfa); opacity: .35; }
.category_box > [class*="col-"]:nth-child(8n+4) .thumbnail::after { background: linear-gradient(to right, #ea580c, #fb923c); opacity: .35; }
.category_box > [class*="col-"]:nth-child(8n+5) .thumbnail::after { background: linear-gradient(to right, #db2777, #f472b6); opacity: .35; }
.category_box > [class*="col-"]:nth-child(8n+6) .thumbnail::after { background: linear-gradient(to right, #16a34a, #4ade80); opacity: .35; }
.category_box > [class*="col-"]:nth-child(8n+7) .thumbnail::after { background: linear-gradient(to right, #ca8a04, #facc15); opacity: .35; }
.category_box > [class*="col-"]:nth-child(8n+8) .thumbnail::after { background: linear-gradient(to right, #dc2626, #f87171); opacity: .35; }
.category_box > [class*="col-"] .thumbnail:hover::after { opacity: 1 !important; }

/* Related Tools widget: bands shown at full strength always, not just on hover,
   since this section has no surrounding grid context to make the subtle default read clearly. */
.widget_tool_box .category_box > [class*="col-"] .thumbnail::after { opacity: 1; }

/* Hover glow matches each card's color identity */
.category_box > [class*="col-"]:nth-child(8n+1) .thumbnail:hover { box-shadow: 0 12px 32px rgba(29,78,216,.18) !important; border-color: #93c5fd; }
.category_box > [class*="col-"]:nth-child(8n+2) .thumbnail:hover { box-shadow: 0 12px 32px rgba(13,148,136,.18) !important; border-color: #5eead4; }
.category_box > [class*="col-"]:nth-child(8n+3) .thumbnail:hover { box-shadow: 0 12px 32px rgba(124,58,237,.18) !important; border-color: #c4b5fd; }
.category_box > [class*="col-"]:nth-child(8n+4) .thumbnail:hover { box-shadow: 0 12px 32px rgba(234,88,12,.15) !important; border-color: #fdba74; }
.category_box > [class*="col-"]:nth-child(8n+5) .thumbnail:hover { box-shadow: 0 12px 32px rgba(219,39,119,.16) !important; border-color: #f9a8d4; }
.category_box > [class*="col-"]:nth-child(8n+6) .thumbnail:hover { box-shadow: 0 12px 32px rgba(22,163,74,.16) !important; border-color: #86efac; }
.category_box > [class*="col-"]:nth-child(8n+7) .thumbnail:hover { box-shadow: 0 12px 32px rgba(202,138,4,.16) !important; border-color: #fde047; }
.category_box > [class*="col-"]:nth-child(8n+8) .thumbnail:hover { box-shadow: 0 12px 32px rgba(220,38,38,.16) !important; border-color: #fca5a5; }

/* Tool lock badge — amber/gold reads clearly on both light and dark card
   backgrounds without needing separate dark-mode overrides */
.tool-lock-badge {
    position: absolute;
    top: 8px; right: 8px;
    height: 20px;
    padding: 0 7px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    box-shadow: 0 1px 4px rgba(217,119,6,.4);
    z-index: 3;
    opacity: .92;
    transition: opacity .15s ease, transform .15s ease;
}
.thumbnail:hover .tool-lock-badge { opacity: 1; transform: scale(1.05); }
/* Reserve room for the badge so it never sits over the tool name, no matter how many lines it wraps to */
.thumbnail.has-pro-badge .tool-card-head .caption { padding-right: 42px; }
/* The favourite heart button lives in the same corner as the PRO badge — shift it
   left so the two never overlap on a gated + favourited card. */
.thumbnail.has-pro-badge .tool-fav-btn { right: 46px; }

.tool-free-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
    text-transform: uppercase;
}
html.dark-mode .tool-free-badge { background: linear-gradient(135deg, #15803d, #16a34a); }

.caption {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin: 0 10px;
    transition: color .18s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
    overflow: hidden;
    min-height: 33px;
}
.seotoollink { text-decoration: none !important; color: inherit !important; display: block; }
.thumbnail:hover .caption { color: var(--primary); }
.seotoolimg { margin: 0; }

.tool-card-blurb {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.5;
    margin: 2px 16px 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.dark-mode .tool-card-blurb { color: #94a3b8; }

/* ── Mid-page CTA banner ────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f2e4a 100%);
    border-radius: 16px;
    padding: 40px 48px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(6,182,212,.18) 0%, transparent 65%);
    pointer-events: none;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(29,78,216,.14) 0%, transparent 65%);
    pointer-events: none;
}
.cta-banner-left { position: relative; z-index: 1; }
.cta-banner-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 14px;
}
.cta-banner h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}
.cta-banner p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    max-width: 380px;
}
.cta-banner-right { position: relative; z-index: 1; flex-shrink: 0; text-align: center; }
.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 6px 24px rgba(6,182,212,.38);
    transition: var(--transition);
    white-space: nowrap;
}
.cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(6,182,212,.52);
}
.cta-banner-note {
    display: block;
    font-size: 11px;
    color: #475569;
    margin-top: 8px;
    text-align: center;
}

/* ── Browse more button ─────────────────────────────────── */
.moreToolsBut { margin: 24px 0; }
.btn-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 30px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}
.btn-info:hover, .btn-info:focus {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    color: #fff;
    box-shadow: var(--shadow-primary-h);
    transform: translateY(-1px);
}
.hideAll { display: none; }
.moreToolsBut .btn-info .fa { margin-right: 6px; }

/* ── Sidebar ─────────────────────────────────────────────── */
.widget-box {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.widget-header {
    background: linear-gradient(to right, #f8fafc, #f0f7ff);
    border-bottom: 1px solid var(--border);
    color: var(--primary);
    min-height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-header > .widget-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: var(--text);
    display: inline;
    line-height: 44px;
}
.widget-body { background: #fff; }
.widget-main { padding: 14px; }

.widget_tool_box ul { margin: 0; padding: 0; }
.widget_tool_box ul .popular-seo-t h3 {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 42px;
    color: #fff;
    margin: 0;
    letter-spacing: .03em;
}
.widget_tool_box ul li {
    list-style: none;
    height: 50px;
    float: left;
    width: 100%;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 14px;
    background: #fff;
    transition: background .15s ease;
}
.widget_tool_box ul li:hover { background: #f0f7ff; }
.widget_tool_box ul li a {
    display: block;
    font-size: 13px;
    line-height: 34px;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease;
}
.widget_tool_box ul li:hover a { color: var(--primary); }
.widget_tool_box .icon_image {
    display: block; width: 34px; height: 34px;
    float: left; margin-right: 10px;
    padding: 7px; font-size: 16px;
    color: var(--primary);
}
.border-bottom { border-bottom: 1px solid #f1f5f9 !important; }

.popluarTools {
    background: var(--primary);
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: #fff;
    float: left;
    font-size: 20px;
    height: 42px;
    text-align: center;
    line-height: 38px;
    transition: var(--transition);
    width: 42px;
    margin-right: 14px;
    margin-bottom: 10px;
}

/* ── Well ────────────────────────────────────────────────── */
.well {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    margin-bottom: 20px;
    padding: 18px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: var(--radius-xs);
    padding: 9px 22px;
    transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-default { font-family: 'Inter', sans-serif; font-size: 14px; border-radius: var(--radius-xs); transition: var(--transition); }

/* ── Pre-footer CTA strip ───────────────────────────────── */
.prefooter-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #1e3a8a 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.prefooter-strip::before {
    content: '';
    position: absolute;
    top: -80px; right: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 65%);
    pointer-events: none;
}
.prefooter-strip h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}
.prefooter-strip p {
    color: rgba(255,255,255,.65);
    font-size: 15px;
    margin: 0 auto 28px;
    max-width: 500px;
    line-height: 1.7;
}
.prefooter-strip .prefooter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    transition: var(--transition);
}
.prefooter-strip .prefooter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,.32);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    padding: 0;
    background: var(--footer-dark);
    border-top: 3px solid;
    border-image: linear-gradient(to right, var(--primary), var(--accent)) 1;
}

.b-widgets {
    background: var(--footer-mid) !important;
    color: #94a3b8;
    padding: 56px 40px 40px;
}
.b-widgets h1, .b-widgets h2, .b-widgets h3,
.b-widgets h4, .b-widgets h5, .b-widgets h6 { color: #f1f5f9; }
.b-widgets h3 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 20px;
}
.footer-title::after {
    content: '';
    display: block;
    height: 2px;
    margin-top: 8px;
    width: 28px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.b-list { list-style: none; margin: 0; padding: 0; }
.b-list li { margin-bottom: 4px; }
.just-links li { line-height: 28px; }
.just-links.m-dark a, .just-links a {
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    display: block;
    transition: color .15s ease, padding-left .15s ease;
}
.just-links.m-dark a:hover, .just-links a:hover { color: var(--accent); padding-left: 5px; }
.b-list a { color: inherit; text-decoration: none; }
.b-twitter.m-footer a { color: var(--accent); }
.b-twitter.m-footer a:hover { color: #67e8f9; }
.b-twitter.m-footer p { color: #64748b; font-size: 14px; line-height: 1.7; }

.footerCopyright { margin: 16px 0; font-size: 13px; color: #334155; }
.footerCopyright a { color: #475569; transition: color .15s ease; }
.footerCopyright a:hover { color: var(--accent); }

/* Social icons */
.ultm { background-position: center; background-repeat: no-repeat; display: inline-block; margin-right: 8px; border-radius: 8px; transition: var(--transition); }
.ultm-32 { height: 32px; width: 32px; }
.ultm-color-to-gray { transition: var(--transition); }
.ultm-facebook, .ultm-facebook.ultm-gray-to-color:hover { background-color: #1877f2; }
.ultm-twitter,  .ultm-twitter.ultm-gray-to-color:hover  { background-color: #1da1f2; }
.ultm-google-plus-1, .ultm-google-plus-1.ultm-gray-to-color:hover { background-color: #0073b1; }
.ultm-color-to-gray:hover { background-color: #334155; opacity: .9; }
.ultm-32.ultm-facebook   { background-image: url("../img/facebook.png"); }
.ultm-32.ultm-twitter    { background-image: url("../img/twitter.png"); }
.ultm-32.ultm-google-plus-1 { background-image: url("../img/gp.png"); }
.top10 { margin-top: 14px; }
.row-item { display: inline-block; vertical-align: top; text-align: left; }
.layout { padding: 0 15px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alertNew { border-radius: var(--radius-sm); font-size: 14px; }
.alertNew-block { padding: 14px 12px; }
.alertNew-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alertNew-danger, .alertNew-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-danger, .alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; border-radius: var(--radius-sm); }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; border-radius: var(--radius-sm); }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; border-radius: var(--radius-sm); }
.alertNew .close { font-size: 16px; line-height: 20px; position: relative; left: -21px; top: -2px; }

.green { color: #16a34a; }
.red   { color: #dc2626; }

/* ── Maintenance alert ───────────────────────────────────── */
.alert-error.text-center { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: var(--radius-sm); margin: 20px 0 !important; }

/* ── Modern Login modal ──────────────────────────────────── */
.loginme { font-family: 'Inter', sans-serif; font-size: 13px; }
.loginme label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--text); font-size: 13px; }
.loginme .alert { display: none; }
.loginme .nav-pills { display: none; }
.loginme .info { display: none; }
.loginme .alert ul { margin: 0; padding: 0 0 0 15px; }

/* Modal backdrop */
.modal-backdrop { background: #0a0f1e; }
.modal-backdrop.in { opacity: .65; }

/* Modal dialog */
.modal-dialog {
    margin: 5% auto;
    max-width: 440px;
}

/* Modal card */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
}

/* Modal header redesign */
.modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-bottom: none;
    border-radius: 0;
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}
.modal-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(29,78,216,.25) 0%, transparent 65%);
    pointer-events: none;
}
.modal-header .close {
    position: absolute;
    top: 18px; right: 20px;
    color: rgba(255,255,255,.5);
    opacity: 1;
    font-size: 20px;
    text-shadow: none;
    transition: color .15s ease;
}
.modal-header .close:hover { color: #fff; }
.modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff !important;
    position: relative;
    z-index: 1;
}
.modal-header .modal-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
    font-weight: 400;
}

/* Modal body */
.modal-body {
    padding: 24px 28px;
    background: #fff;
}

/* Social login button */
.modal-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}
.modal-google-btn:hover {
    background: #f8fafc;
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.modal-google-btn img { width: 18px; height: 18px; }

/* Divider */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}
.modal-divider::before, .modal-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Form inputs in modal */
.loginme .form-group { margin-bottom: 14px; }
.loginme .form-input {
    width: 100% !important;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: #f8fafc;
    color: var(--text);
    transition: var(--transition);
    margin-top: 0;
}
.loginme .form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
    outline: none;
}

/* Modal footer */
.modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 16px 28px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 28px;
    box-shadow: 0 4px 14px rgba(29,78,216,.3);
    transition: var(--transition);
}
.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(29,78,216,.4);
}
.modal-footer a {
    font-size: 12.5px;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.5;
}
.modal-footer a:hover { color: var(--primary); }

/* Social connect buttons (legacy) */
.connect-with { padding-bottom: 0; border-bottom: none; overflow: hidden; margin: 0 0 4px !important; }
.connect-with .connect { display: block; font-size: 13px; font-weight: 600; color: #fff !important; text-decoration: none !important; height: 38px; line-height: 24px; text-align: center; padding: 7px 13px 7px 44px; border-radius: 10px; float: left; margin-top: 5px; margin-left: 20px; transition: var(--transition); }
.connect.facebook { background: #1877f2 url(../img/connect-with.png) no-repeat; }
.connect.google   { background: #DC4D28 url(../img/connect-with.png) no-repeat 0 -40px; }
.connect.twitter  { background: #1da1f2 url(../img/connect-with.png) no-repeat 0 -80px; }
.connect:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

.form-input { display: inline-block; padding: 9px 14px; font-weight: 400; line-height: 20px; color: var(--text); border-radius: var(--radius-xs); vertical-align: middle; background: #f8fafc; border: 1.5px solid var(--border); width: 96%; margin-top: 2px; font-family: 'Inter', sans-serif; transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
select.form-input { width: 100%; }

/* ── Login / register page ───────────────────────────────── */
.loginpage { margin-top: 20px; }
.login-footer { margin-bottom: 20px; }
.loginpage label { display: block; }
.loginpage .form-input { height: auto; }
.width96 { width: 96% !important; }

/* ── Tag cloud ───────────────────────────────────────────── */
.b-tag-cloud { font-size: 0; margin-bottom: 20px; }
.b-tag-cloud a { background: #f1f5f9; border: 1px solid var(--border); border-radius: 4px; color: var(--text); display: inline-block; font-size: 11px; line-height: 28px; margin: 0 8px 8px 0; padding: 0 12px; text-decoration: none; transition: var(--transition); }
.b-tag-cloud a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.b-tag-cloud.m-dark a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #94a3b8; }
.b-tag-cloud.m-dark a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Content misc ────────────────────────────────────────── */
.main-index img  { max-width: 100% !important; }
.contentLayer img { max-width: 100% !important; }
.csContent { margin-top: 20px; }
.sideXd { text-align: center; }
.xd_top_box { display: block; height: auto; max-width: 100%; text-align: center; padding-bottom: 18px; }
.iconBig { font-size: 28px; }
.pn { padding: 0 !important; }
.mn { margin: 0 !important; }
.mb10 { margin-bottom: 10px; }
.mb25 { margin-bottom: 25px; }
.mt25 { margin-top: 25px; }
.mt35 { margin-top: 35px; }
.p10 { padding: 10px !important; }
.box_shadow_border { margin-bottom: 8px; box-shadow: var(--shadow-sm); background: #fff; padding: 15px; overflow: hidden; border-radius: var(--radius-sm); }
.tableHr { margin: 5px 0; }
.color-grey { color: #94a3b8; margin-right: 5px; }
.color_grap { color: var(--text); font-weight: 700; }
.color_text_in { color: var(--text-light); margin-right: 30px; }
.font_14 { font-size: 14px; }
.posts_1 { margin-top: 12px; }
.posts_1 h5 { color: var(--text); font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.mr_top30 { margin-top: 25px; margin-bottom: 30px; }
.divider_h, .hr_horiznt_dotted { border-bottom: 1px dotted var(--border); }
.percentbox { text-align: center; font-size: 18px; margin: 18px; }
.percentimg { text-align: center; display: none; }
.result-line { line-height: 20px; margin-top: 1px; padding: 5px; }
.col-md-4, .col-md-8 { padding-left: 15px; }
.pull-left  { float: left; }
.pull-right { float: right; }
.align-right { text-align: right; }
.close { float: right; font-size: 21px; font-weight: 700; line-height: 1; color: #64748b; text-shadow: none; opacity: .5; cursor: pointer; margin-top: -1px; }
.close:hover { opacity: .9; color: #1e293b; }
button.close { padding: 0; background: 0; border: 0; }
.form-group { margin-bottom: 12px; }
h4, .h4 { font-size: 20px; }
h4.smaller { font-size: 16px; }
.panel-heading a:hover { color: #fff; font-size: 15px; }
.fa.fa-refresh { transition: transform .5s ease; }
.fa.fa-refresh:hover { transform: rotate(90deg); }

/* Date boxes */
.text_word { color: #fff; font-size: 32px; text-align: center; }
.date_down, .date_down2 { background: var(--primary); height: 46px; width: 60px; }
.date_up, .date_up2     { background: var(--primary-dark); height: 22px; width: 60px; }
.date, .date_1 { height: 68px; width: 60px; }
.center2 { text-align: center; }
.feb2 { color: #fff; font-size: 12px; font-weight: 700; padding-top: 2px; }
.version { color: var(--text); margin-top: 11px; }
.version a { color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none; }

/* Input/textarea wraps */
.input-wrap, .select-wrap { display: block; margin: 0 0 12px; position: relative; }
.textarea-wrap { margin-bottom: 12px; position: relative; }
.textarea-wrap textarea { box-sizing: border-box; display: block; font-size: 13px; height: 110px; max-width: 100%; min-width: 100%; padding: 8px 14px; width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-xs); font-family: 'Inter', sans-serif; transition: var(--transition); }
.textarea-wrap textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.input-wrap i, .textarea-wrap i { color: #94a3b8; left: 11px; position: absolute; top: 12px; }
.input-wrap i + input, .textarea-wrap i + textarea { padding-left: 32px; }

/* Social share colors */
.bg-facebook   { background: #1877f2; border-radius: 4px; color: #fff; cursor: pointer; }
.bg-twitter    { background: #1da1f2; border-radius: 4px; cursor: pointer; }
.bg-google-plus{ background: #ea4335; border-radius: 4px; cursor: pointer; }
.bg-pinterest  { background: #e60023; border-radius: 4px; cursor: pointer; }
.bg-stumbleupon{ background: #EB4923; border-radius: 4px; cursor: pointer; }
.bg-linkedin   { background: #0077b5; border-radius: 4px; cursor: pointer; }

/* Captcha */
#capImg { width: 150px; height: 55px; }
.phpCap { width: 150px !important; }
#scode  { box-shadow: none !important; }
.captchaCode { margin-bottom: 10px; }
.reloadCap   { cursor: pointer; }
.capInput    { margin-top: 7px; width: 15%; display: inline; }
.imagever    { border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 1px rgba(0,0,0,.3), 0 0 30px rgba(0,0,0,.2) inset; transition: var(--transition); }

/* Spinner */
#spinningSquaresG { position: relative; width: 200px; height: 24px; }
.spinningSquaresG { position: absolute; top: 0; background-color: #fff; width: 24px; height: 24px; transform: scale(.3); animation: bounce_spinningSquaresG 1.3s infinite linear; }
#spinningSquaresG_1 { left: 0;    animation-delay: .52s; }
#spinningSquaresG_2 { left: 25px; animation-delay: .65s; }
#spinningSquaresG_3 { left: 50px; animation-delay: .78s; }
#spinningSquaresG_4 { left: 75px; animation-delay: .91s; }
#spinningSquaresG_5 { left: 100px; animation-delay: 1.04s; }
#spinningSquaresG_6 { left: 125px; animation-delay: 1.17s; }
#spinningSquaresG_7 { left: 150px; animation-delay: 1.30s; }
#spinningSquaresG_8 { left: 175px; animation-delay: 1.43s; }
@keyframes bounce_spinningSquaresG {
    0%   { transform: scale(1);    background-color: #fff; }
    100% { transform: scale(.3) rotate(90deg); background-color: #94a3b8; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .seobannerh1 { font-size: 32px; }
    .masthead { padding: 48px 0 104px; }
    .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
    .category_heading { font-size: 18px; }
    .cta-banner { flex-direction: column; padding: 28px 24px; text-align: center; }
    .cta-banner p { max-width: 100%; }
    .cta-banner-right { width: 100%; }
    .hero-stats { gap: 18px; }
}
@media (max-width: 767px) {
    .navbar-default .navbar-nav > li > a { padding: 12px 16px; }
    .navbar-default .navbar-nav > li > a::after { display: none; }
    .seobannerh1 { font-size: 26px; }
    .seobannerp  { font-size: 14px; }
    .hero-badge  { font-size: 11px; padding: 5px 12px 5px 6px; }
    .masthead { padding: 36px 0 90px; }
    .main-container { margin-top: 24px; }
    #searchSec { padding: 16px 18px; }
    .b-widgets { padding: 36px 20px 28px; }
    .feature-item { padding: 12px 16px; }
    .hero-stats { gap: 16px; }
    .prefooter-strip h2 { font-size: 22px; }
    .prefooter-strip p { font-size: 14px; }
    #scrollTop { bottom: 16px; right: 16px; }
}
@media (max-width: 450px) {
    .connect.google { padding-left: 67px; }
    .atoz_seo_tools_logo { max-height: 36px; }
    .hero-stats { flex-wrap: wrap; }
}

/* ── Tool Gate Overlay ──────────────────────────────────────── */
.tool-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 1035;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: gateFadeIn .3s ease;
}
@keyframes gateFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.tool-gate-card {
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px 36px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,.28);
    animation: gateSlideUp .35s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.tool-gate-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}
.tool-gate-close:hover { background: #e2e8f0; color: var(--text); }
html.dark-mode .tool-gate-close { background: #1e293b; color: #94a3b8; }
html.dark-mode .tool-gate-close:hover { background: #334155; color: #e2e8f0; }
@keyframes gateSlideUp {
    from { transform: translateY(28px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.tool-gate-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--primary);
    margin: 0 auto 20px;
}
.tool-gate-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 22px;
    color: var(--text); margin: 0 0 10px;
}
.tool-gate-card p {
    font-size: 14px; color: var(--text-light);
    line-height: 1.65; margin: 0 0 24px;
}
.tool-gate-btn {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: opacity .2s;
    margin-bottom: 14px;
}
.tool-gate-btn:hover { opacity: .9; color: #fff !important; }
.tool-gate-btn .fa { margin-right: 8px; }
.tool-gate-login {
    display: block;
    font-size: 13px; color: var(--text-light);
    text-decoration: none !important;
    margin-top: 10px;
}
.tool-gate-login:hover { color: var(--primary); }
.tool-gate-login strong { color: var(--primary); }
body.gate-active { overflow: hidden; }
body.gate-active .main-container { filter: blur(3px); pointer-events: none; user-select: none; }
body.gate-active .footer, body.gate-active .prefooter-strip { filter: blur(3px); pointer-events: none; }
.tool-gate-overlay { overflow-y: auto; align-items: flex-start; padding: 40px 0; }

/* The gate overlay is position:fixed/inset:0, so it was intercepting clicks
   on the navbar and sidebar too (search box, popular tools, free-account CTA)
   — not just the gated tool content. Only the actual gate card needs to be
   clickable; letting clicks fall through the rest of the overlay restores the
   navbar, and explicitly re-enabling the sidebar undoes its blur/pointer-events
   lockout, while the gated tool content itself stays blurred and disabled. */
.tool-gate-overlay { pointer-events: none; }
.tool-gate-card { pointer-events: auto; }
body.gate-active .main-container #rightCol {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}
.tool-gate-card { max-height: calc(100vh - 80px); overflow-y: auto; }

/* Gate badge & benefits */
.tool-gate-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.tool-gate-benefits {
    list-style: none;
    padding: 0; margin: 0 0 22px;
    text-align: left;
}
.tool-gate-benefits li {
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tool-gate-benefits li .fa {
    color: #16a34a;
    font-size: 13px;
    flex-shrink: 0;
}

/* ── Nav Auth Buttons ───────────────────────────────────── */
.btn-nav-login {
    border: 1.5px solid var(--border) !important;
    background: #fff !important;
    color: var(--text) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 18px !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
    transition: all .2s ease !important;
    line-height: 1.4 !important;
}
.btn-nav-login:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: #f0f7ff !important;
}
.btn-nav-signup {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 18px !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
    margin-left: 6px !important;
    border: none !important;
    transition: opacity .2s !important;
    line-height: 1.4 !important;
}
.btn-nav-signup:hover { opacity: .9 !important; color: #fff !important; }

/* ── Auth Modal ─────────────────────────────────────────── */
.loginme.modal .modal-dialog { max-width: 420px; margin: 56px auto; }
.loginme.modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
    overflow: hidden;
}
.loginme.modal .modal-header {
    background: linear-gradient(135deg, var(--hero-from), var(--hero-mid));
    border: none;
    padding: 30px 30px 22px;
    position: relative;
}
.loginme.modal .modal-header .modal-title {
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    font-family: 'Inter', sans-serif;
}
.loginme.modal .modal-header .close {
    color: #fff;
    opacity: .5;
    font-size: 22px;
    margin-top: -4px;
}
.loginme.modal .modal-header .close:hover { opacity: 1; }
.loginme.modal .modal-body { padding: 26px 30px 8px; }
.loginme.modal .modal-footer {
    border: none;
    padding: 8px 30px 26px;
}
.loginme.modal .info {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
    margin-top: 4px;
}
.loginme.modal .form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .05em;
    width: 100%;
}
.loginme.modal .form-input {
    height: 46px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    padding: 0 14px !important;
    width: 100% !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text) !important;
    transition: border .2s !important;
    margin-top: 6px;
    box-shadow: none !important;
}
.loginme.modal .form-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1) !important;
    outline: none !important;
}
.loginme.modal .btn-primary {
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 0 28px !important;
    box-shadow: none !important;
    transition: opacity .2s !important;
}
.loginme.modal .btn-primary:hover { opacity: .9 !important; }
.loginme.modal .connect-with { margin-bottom: 16px; }
.loginme.modal .connect-with .info { margin-bottom: 10px; }
.loginme.modal .connect {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-right: 6px !important;
}
.loginme.modal .alert { border-radius: 8px !important; font-size: 13px !important; }
.loginme.modal .modal-footer a { font-size: 13px; color: var(--text-light); }
.loginme.modal .modal-footer a:hover { color: var(--primary); }

/* ── 5-col tool grid on homepage (lg screens) ──────────── */
.col-lg-2half {
    position: relative;
    min-height: 1px;
    padding-right: 8px;
    padding-left: 8px;
}
@media (min-width: 1200px) {
    .col-lg-2half { width: 20%; float: left; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .col-lg-2half { width: 25%; float: left; }
}
/* Tighten gutter in full-width grid */
#seoTools.col-md-12 .col-lg-2half,
#seoTools.col-md-12 .col-md-3,
#seoTools.col-md-12 .col-sm-4 {
    padding-left: 8px;
    padding-right: 8px;
}

/* ── Scroll progress bar (id matches JS-created element) ── */
#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    z-index: 9999;
    transition: width .1s linear;
    pointer-events: none;
}

/* ── Navbar logo ────────────────────────────────────────── */
.themeLogoText {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -.02em;
}
.themeLogoText .iconBig {
    font-size: 22px;
    color: var(--accent);
}
.navbar-brand { padding: 12px 0 !important; display: inline-flex !important; align-items: center; gap: 10px; }
.rw-logo-mark {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px var(--primary-glow);
}

/* ── Card reveal (animation injected by custom.js) ──────── */
.thumbnail.revealed { opacity: 1; }
.thumbnail:hover { transform: translateY(-5px) scale(1.015) !important; }

/* ── Result / output tables ─────────────────────────────── */
.table {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table th {
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
    vertical-align: middle;
    word-break: break-word;
}
.table-striped > tbody > tr:nth-child(odd) td { background: #fafbfc; }
.table-hover > tbody > tr:hover td { background: #f0f7ff; }
.table-responsive { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; }
.table-responsive .table { margin: 0; }
.table-responsive .table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table-responsive .table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.table tbody tr:last-child td { border-bottom: none; }

/* ── Tool page ──────────────────────────────────────────── */
.contentLayer {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text);
}
.contentLayer h2, .contentLayer h3 {
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 10px;
}
.contentLayer h2 { font-size: 20px; }
.contentLayer h3 { font-size: 17px; }
.contentLayer p  { margin-bottom: 14px; }
.contentLayer ul, .contentLayer ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.contentLayer li { margin-bottom: 6px; }

/* About Tool section */
.posts_1 {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 32px;
}
.posts_1 h5 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 18px !important;
}

/* Tool result highlight boxes */
.box_shadow_border {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    padding: 16px 20px !important;
    background: #fff !important;
    margin-bottom: 12px;
}
.box_shadow_border .color_grap { font-weight: 700; color: var(--text); }
.box_shadow_border .color-grey { color: var(--text-light); }

/* Percentage display */
.percentbox {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    font-size: 36px;
    font-weight: 800;
}

/* ── Scroll to top ──────────────────────────────────────── */
#scrollTop {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(29,78,216,.35);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(29,78,216,.5); }

/* ── Breadcrumbs ────────────────────────────────────────── */
.breadcrumb {
    background: transparent;
    padding: 8px 0 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}
.breadcrumb > li + li::before { color: var(--text-light); }
.breadcrumb > li a { color: var(--primary); text-decoration: none; }
.breadcrumb > .active { color: var(--text-light); }

/* ── Pagination ─────────────────────────────────────────── */
.pagination > li > a, .pagination > li > span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border-color: var(--border);
    border-radius: 8px !important;
    margin: 0 3px;
    padding: 7px 13px;
    transition: var(--transition);
}
.pagination > li > a:hover { background: #f0f7ff; border-color: var(--primary); }
.pagination > .active > a, .pagination > .active > span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
}
.pagination > .disabled > a { color: var(--text-light); }

/* ── Code / pre output ──────────────────────────────────── */
pre, code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    border-radius: var(--radius-sm);
}
pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px 20px;
    border: none;
    overflow-x: auto;
    line-height: 1.65;
}
code {
    background: #f1f5f9;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
}
pre code { background: transparent; color: inherit; padding: 0; }

/* ── Tool loading spinner ───────────────────────────────── */
.tool-spinner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}
.tool-spinner::before {
    content: '';
    width: 18px; height: 18px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Result badge ───────────────────────────────────────── */
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.result-badge-ok      { background: #dcfce7; color: #166534; }
.result-badge-warn    { background: #fef9c3; color: #854d0e; }
.result-badge-danger  { background: #fee2e2; color: #991b1b; }
.result-badge-info    { background: #dbeafe; color: #1e40af; }

/* ── Link override in results ───────────────────────────── */
.contentLayer a, .main-index a:not(.seotoollink):not(.thumbnail) {
    color: var(--primary);
    text-decoration: none;
}
.contentLayer a:hover, .main-index a:not(.seotoollink):not(.thumbnail):hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* ── Search result match highlight ─────────────────────── */
.search-results .match a mark,
.search-results .match a b {
    background: rgba(6,182,212,.15);
    color: var(--primary);
    font-weight: 700;
    border-radius: 3px;
    padding: 0 2px;
}

/* ── Navbar scrolled state (transparent → white) ───────── */
.nav-scrolled .navbar-default {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,.08);
}
.nav-scrolled .navbar-nav > li > a { color: var(--text) !important; }
.nav-scrolled .navbar-brand { color: var(--text) !important; }

/* ── Tool form submit button enhancement ────────────────── */
input[type="submit"].btn,
button[type="submit"].btn {
    min-width: 140px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    transition: var(--transition);
}
.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}
.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #15803d, #166534);
    border-color: #166534;
    color: #fff;
    box-shadow: 0 4px 14px rgba(22,163,74,.35);
}

/* ── Sidebar ad placeholder ─────────────────────────────── */
.xd_top_box { text-align: center; }

/* ── Sidebar tools list ─────────────────────────────────── */
.sidebar-tools-list { margin: 0; padding: 0; list-style: none; }
.sidebar-tools-list li {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s ease;
    display: flex;
    align-items: center;
    padding: 0;
}
.sidebar-tools-list li:last-child { border-bottom: none; }
.sidebar-tools-list li:hover { background: #f0f7ff; }
.sidebar-tools-list li .icon_image {
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: var(--accent);
    margin-left: 12px;
}
.sidebar-tools-list li a {
    flex: 1;
    display: block;
    padding: 10px 12px 10px 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: color .15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-tools-list li:hover a { color: var(--primary); }
html.dark-mode .sidebar-tools-list li { border-color: rgba(255,255,255,.06) !important; }

/* ── Signup modal enhancements ──────────────────────────── */
.modal-dialog-signup { max-width: 460px; }

.signup-modal-badge {
    display: inline-block;
    background: rgba(6,182,212,.18);
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(6,182,212,.3);
    margin-bottom: 10px;
}

.signup-benefits {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.signup-benefit-item {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.signup-benefit-item .fa {
    color: #16a34a;
    font-size: 14px;
    flex-shrink: 0;
}

.btn-block-signup {
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px !important;
    padding: 13px 28px !important;
    border-radius: 10px !important;
}
.btn-block-signup .fa { font-size: 14px; }

/* ── Nav auth buttons ────────────────────────────────────── */
.navbar-default .navbar-nav > li > a.signin {
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 7px 18px !important;
    margin-top: 0 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--text) !important;
    transition: all .2s ease !important;
}
.navbar-default .navbar-nav > li > a.signin::after { display: none !important; }
.navbar-default .navbar-nav > li > a.signin:hover,
.navbar-default .navbar-nav > li > a.signin:focus {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: #f0f7ff !important;
}

.navbar-default .navbar-nav > li > a.signup {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 7px 18px !important;
    margin-top: 0 !important;
    margin-left: 6px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(29,78,216,.28) !important;
    transition: opacity .2s ease, transform .2s ease !important;
}
.navbar-default .navbar-nav > li > a.signup::after { display: none !important; }
.navbar-default .navbar-nav > li > a.signup:hover,
.navbar-default .navbar-nav > li > a.signup:focus {
    opacity: .88 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

/* ── Profile Page ───────────────────────────────────────── */
.profile-page-wrap { padding: 36px 0 48px; }
.profile-msg { margin-bottom: 20px; }

.profile-hero-card {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 60%, var(--hero-to) 100%);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.profile-hero-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(6,182,212,.2) 0%, transparent 65%);
    pointer-events: none;
}
.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.profile-avatar-ring {
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.22);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.08);
}
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-info { flex: 1; min-width: 0; }
.profile-display-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 22px;
    color: #fff; margin: 0 0 10px; line-height: 1.2;
}
.profile-meta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.profile-plan-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(6,182,212,.18);
    border: 1px solid rgba(6,182,212,.3);
    color: #67e8f9;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 4px 12px; border-radius: 50px;
}
.profile-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-family: 'Inter', sans-serif; font-size: 13px; color: #94a3b8;
}
.profile-meta-item .fa { color: #64748b; font-size: 12px; }
.profile-hero-stats { display: flex; gap: 14px; flex-shrink: 0; }
.profile-hero-stat {
    text-align: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 14px 20px; min-width: 68px;
}
.profile-hero-stat strong {
    display: block; font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 18px; color: #fff; line-height: 1.2;
}
.profile-hero-stat span {
    font-size: 10px; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .07em; font-weight: 600;
}
.profile-hero-stat-streak { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); }
.profile-hero-stat-streak strong { color: #fca5a5; }
.profile-hero-stat-streak strong .fa-fire { color: #f97316; font-size: 15px; }

/* Profile tabs */
.profile-tab-nav {
    display: flex !important;
    gap: 6px;
    background: #fff !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    margin-bottom: 24px !important;
    list-style: none;
    border-bottom: 1.5px solid var(--border) !important;
}
.profile-tab-nav > li { flex: 1; margin: 0 !important; border: none !important; }
.profile-tab-nav > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 13.5px;
    color: var(--text-light) !important;
    background: transparent !important;
    transition: var(--transition);
    margin: 0 !important;
}
.profile-tab-nav > li > a:hover {
    color: var(--primary) !important;
    background: #f0f7ff !important;
}
.profile-tab-nav > li.active > a {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(29,78,216,.3);
}
.profile-tab-body { margin-bottom: 32px; }
.profile-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: rgba(29,78,216,.12); color: var(--primary);
    border-radius: 9px; font-size: 10.5px; font-weight: 800;
}
.profile-tab-nav > li.active > a .profile-tab-count { background: rgba(255,255,255,.25); color: #fff; }
.pf-fav-grid { margin-top: 4px; }

/* Profile info display */
.profile-info-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
}
.profile-info-avatar-col {
    background: linear-gradient(135deg, #f8fafc, #f0f7ff);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 36px 28px; min-width: 190px; gap: 10px;
}
.profile-info-avatar-img {
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 3px solid var(--border);
    object-fit: cover; display: block;
}
.profile-info-avatar-label {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; color: var(--text);
}
.profile-info-free-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: #dcfce7; color: #166534;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 50px;
}
.profile-info-fields { flex: 1; padding: 8px 0; }

.pf-activity-card { display: block !important; padding: 24px; margin-top: 20px; }
.pf-activity-list { list-style: none; margin: 0; padding: 0; }
.pf-activity-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f8fafc; }
.pf-activity-item:last-child { border-bottom: none; }
.pf-activity-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 12px;
}
.pf-activity-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-activity-tool {
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
    color: var(--text); text-decoration: none;
}
.pf-activity-tool:hover { color: var(--primary); text-decoration: none; }
.pf-activity-time { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.pf-activity-empty { color: var(--text-light); font-size: 14px; margin: 0; padding: 8px 0; }
.pf-field {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid #f8fafc;
    transition: background .15s ease;
}
.pf-field:last-child { border-bottom: none; }
.pf-field:hover { background: #fafbff; }
.pf-field-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 13px; flex-shrink: 0;
}
.pf-field-label {
    display: block;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em; color: var(--text-light);
}
.pf-field-value {
    display: block;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
    color: var(--text); margin-top: 2px;
}
.pf-empty { color: #cbd5e1; font-style: italic; font-weight: 400; }

/* Profile forms */
.profile-form-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}
.pf-section-title {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; color: var(--text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.pf-section-title .fa { color: var(--primary); }
.pf-section-title + .row + .pf-section-title { margin-top: 28px; }
.profile-form-card .form-group label {
    font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-light); margin-bottom: 6px; display: block;
}
.pf-input {
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important; font-size: 14px !important;
    padding: 10px 14px !important; height: auto !important; width: 100% !important;
    background: #f8fafc !important; transition: var(--transition) !important;
    color: var(--text) !important;
}
.pf-input:focus {
    border-color: var(--primary) !important; background: #fff !important;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1) !important; outline: none !important;
}
.pf-input-disabled { opacity: .55; cursor: not-allowed !important; }
.pf-note { font-size: 11px; color: var(--text-light); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.pf-form-footer {
    display: flex; justify-content: flex-end;
    padding-top: 24px; margin-top: 24px;
    border-top: 1px solid var(--border);
}
.pf-btn-save {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important; border: none !important; border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important; font-weight: 700 !important;
    font-size: 14px !important; padding: 11px 28px !important;
    display: inline-flex !important; align-items: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(29,78,216,.3) !important;
    transition: var(--transition) !important;
}
.pf-btn-save:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,78,216,.4) !important; color: #fff !important; }
.pf-btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #fff !important; border: none !important; border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important; font-weight: 700 !important;
    font-size: 14px !important; padding: 11px 28px !important;
    display: inline-flex !important; align-items: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(220,38,38,.3) !important;
    transition: var(--transition) !important;
}
.pf-btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,.4) !important; color: #fff !important; }

/* Avatar upload */
.pf-avatar-preview-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.pf-avatar-preview { position: relative; width: 80px; height: 80px; border-radius: 12px; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.pf-avatar-img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; border: 2px solid var(--border); display: block; }
.pf-avatar-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; opacity: 0;
    transition: opacity .2s ease; border-radius: 12px;
}
.pf-avatar-preview:hover .pf-avatar-overlay { opacity: 1; }
.pf-file-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f1f5f9; border: 1.5px solid var(--border); border-radius: 8px;
    padding: 8px 14px; font-family: 'Inter', sans-serif; font-size: 13px;
    font-weight: 600; color: var(--text); cursor: pointer;
    transition: var(--transition);
}
.pf-file-label:hover { background: #e2e8f0; border-color: var(--primary); color: var(--primary); }
.pf-file-input { display: none !important; }
.pf-password-card { max-width: 520px; }

@media (max-width: 767px) {
    .profile-hero-inner { flex-direction: column; text-align: center; }
    .profile-meta-row { justify-content: center; }
    .profile-hero-stats { display: none; }
    .profile-info-card { flex-direction: column; }
    .profile-info-avatar-col { border-right: none; border-bottom: 1px solid var(--border); padding: 24px; }
    .profile-tab-nav > li > a { font-size: 12px !important; padding: 9px 10px !important; gap: 4px; }
    .profile-form-card { padding: 20px 16px; }
}

/* ── Welcome Toast ──────────────────────────────────────── */
#welcomeToast {
    position: fixed;
    top: 80px; right: 24px;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-family: 'Inter', sans-serif;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    pointer-events: none;
}

/* ── Footer logo text ───────────────────────────────────── */
.b-twitter.m-footer .themeLogoText {
    font-size: 20px;
    color: #f1f5f9 !important;
    margin-bottom: 10px;
    display: inline-flex;
}
.b-twitter.m-footer .themeLogoText .iconBig { color: var(--accent); }

/* ── Auth card (standalone account pages) ───────────────── */
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes authIconPop {
    0%   { transform: scale(.6); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}
.auth-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin: 24px 0 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    animation: authCardIn .38s ease both;
}
.auth-card-sm { max-width: 480px; margin-left: auto; margin-right: auto; }
.auth-card .auth-card-icon { animation: authIconPop .5s .1s cubic-bezier(.34,1.56,.64,1) both; }

.auth-card-header {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 60%, var(--hero-to) 100%);
    padding: 32px 32px 28px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.auth-card-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(6,182,212,.2) 0%, transparent 65%);
    pointer-events: none;
}
.auth-card-header-green {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
}
.auth-card-header-orange {
    background: linear-gradient(135deg, #431407 0%, #7c2d12 60%, #9a3412 100%);
}

.auth-card-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    margin: 0 auto 16px;
    position: relative; z-index: 1;
}
.auth-card-icon-green { background: rgba(255,255,255,.15); }
.auth-card-icon-orange { background: rgba(255,255,255,.15); }
.auth-card-icon-teal { background: rgba(6,182,212,.2); }

.auth-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 22px;
    color: #fff; margin: 0 0 8px;
    position: relative; z-index: 1;
}
.auth-card-sub {
    font-size: 13.5px;
    color: rgba(255,255,255,.58);
    margin: 0;
    position: relative; z-index: 1;
    line-height: 1.5;
}

/* Sign in / Create account tab switcher (shared login+register card) */
.auth-tabs {
    display: flex; gap: 4px; margin: 20px 32px 4px; padding: 4px;
    background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
}
.auth-tab {
    flex: 1; border: none; background: transparent; padding: 9px 0;
    font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 700;
    color: var(--text-light); border-radius: 7px; cursor: pointer;
    transition: var(--transition);
}
.auth-tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
html.dark-mode .auth-tabs { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
html.dark-mode .auth-tab { color: #64748b; }
html.dark-mode .auth-tab.active { background: #1a2640; color: #e2e8f0; }

.auth-row-between {
    display: flex; align-items: center; justify-content: space-between;
    margin: 2px 0 18px; flex-wrap: wrap; gap: 8px;
}
.auth-check {
    display: flex; align-items: center; gap: 7px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-light); cursor: pointer;
}
.auth-check input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.auth-inline-link {
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--primary); text-decoration: none;
}
.auth-inline-link:hover { text-decoration: underline; }

.auth-card-body {
    padding: 28px 32px 8px;
}
.auth-card-body .form-group label { display: none; }
.auth-label {
    display: block !important;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.auth-btn-primary {
    display: block !important;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 13px 24px !important;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(29,78,216,.3) !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-btn-primary:hover, .auth-btn-primary:focus {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(29,78,216,.4) !important;
    color: #fff !important;
    opacity: .95 !important;
}
.auth-btn-green {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    box-shadow: 0 4px 14px rgba(22,163,74,.3) !important;
}
.auth-btn-green:hover {
    box-shadow: 0 6px 20px rgba(22,163,74,.4) !important;
}

.auth-benefits {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.auth-benefit {
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600;
    color: #166534;
    padding: 4px 0;
    display: flex; align-items: center; gap: 9px;
}
.auth-benefit .fa { color: #16a34a; font-size: 14px; flex-shrink: 0; }

.auth-card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 16px 32px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--text-light);
}
.auth-card-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}
.auth-card-footer a:hover { color: var(--primary-dark); text-decoration: underline; }
.auth-footer-sep { margin: 0 10px; color: var(--border); }

/* Password show/hide toggle */
.pass-field-wrap { position: relative; }
.pass-field-wrap input { padding-right: 44px !important; }
.pass-toggle-btn {
    position: absolute;
    top: 50%; right: 4px;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.pass-toggle-btn:hover { color: var(--primary); background: rgba(29,78,216,.08); }
.pass-toggle-btn:focus { outline: none; color: var(--primary); }

/* Password strength meter */
.pw-strength-wrap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pw-strength { flex: 1; height: 5px; background: var(--border); border-radius: 4px; overflow: hidden; }
.pw-strength-bar { height: 100%; width: 0%; border-radius: 4px; background: #ef4444; transition: width .25s ease, background .25s ease; }
.pw-strength-bar[data-level="1"] { background: #ef4444; }
.pw-strength-bar[data-level="2"] { background: #f97316; }
.pw-strength-bar[data-level="3"] { background: #eab308; }
.pw-strength-bar[data-level="4"] { background: #22c55e; }
.pw-strength-bar[data-level="5"] { background: #16a34a; }
.pw-strength-label { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700; color: var(--text-light); white-space: nowrap; }

/* Password match hint */
.pw-match-hint { display: inline-block; margin-top: 7px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; }
.pw-match-hint.pw-match-ok { color: #16a34a; }
.pw-match-hint.pw-match-bad { color: #ef4444; }

/* Submit button loading spinner */
.auth-btn-primary:disabled, .auth-btn-primary.disabled { opacity: .75 !important; cursor: not-allowed; transform: none !important; }

/* Auth options grid */
.auth-options-wrap { padding: 24px 0; animation: authCardIn .38s ease both; }
.auth-options-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 15px;
    color: var(--text); margin-bottom: 18px;
}
.auth-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.auth-option-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding: 24px 16px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    text-align: center;
    text-decoration: none !important;
    color: var(--text) !important;
    transition: var(--transition);
}
.auth-option-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(29,78,216,.12);
    transform: translateY(-2px);
}
.auth-option-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--primary);
}
.auth-option-icon-green { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #16a34a; }
.auth-option-icon-orange { background: linear-gradient(135deg, #fff7ed, #fed7aa); color: #ea580c; }
.auth-option-card strong {
    display: block;
    font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 700;
    color: var(--text);
}
.auth-option-card span {
    font-size: 12px; color: var(--text-light);
    font-family: 'Inter', sans-serif;
}

@media (max-width: 600px) {
    .auth-options-grid { grid-template-columns: 1fr; }
    .auth-card-header { padding: 24px 20px 20px; }
    .auth-card-body { padding: 20px 20px 8px; }
    .auth-card-footer { padding: 14px 20px; }
    .auth-card-title { font-size: 19px; }
}

/* ── Page content header (page.php) ────────────────────── */
.page-content-header {
    padding: 24px 0 16px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.page-content-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.25;
}
.page-content-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 12px;
}
.page-content-date .fa { color: var(--primary); font-size: 12px; }
.csContent { font-family: 'Lora', Georgia, serif; font-size: 15px; line-height: 1.8; color: var(--text); }
.csContent h2, .csContent h3 { font-family: 'Inter', sans-serif; font-weight: 700; margin-top: 28px; margin-bottom: 10px; color: var(--text); }
.csContent h2 { font-size: 20px; }
.csContent h3 { font-size: 17px; }
.csContent p { margin-bottom: 14px; }
.csContent a { color: var(--primary); }
.csContent a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── Warning / restriction cards (warning.php) ──────────── */
.warning-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 44px 36px 36px;
    margin: 24px 0;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.warning-card-info  { border-color: #bae6fd; }
.warning-card-danger { border-color: #fecaca; }

.warning-card-icon {
    width: 80px; height: 80px;
    border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}
.warning-icon-blue  { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--primary); }
.warning-icon-red   { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #dc2626; }

.warning-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 22px;
    color: var(--text); margin: 0 0 12px;
}
.warning-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px; color: var(--text-light);
    line-height: 1.7; margin: 0 0 24px;
    max-width: 480px; margin-left: auto; margin-right: auto;
}
.warning-reason-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 12px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px; color: #9a3412;
    margin: 0 auto 24px;
    max-width: 460px;
    display: flex; align-items: center; gap: 8px;
}
.warning-reason-box .fa { flex-shrink: 0; }
.warning-card-hint {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px; color: var(--text-light);
}
.warning-card-hint a { color: var(--primary); font-weight: 600; text-decoration: none; }
.warning-card-hint a:hover { text-decoration: underline; }

.warning-btn-primary {
    display: inline-flex;
    align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 14px rgba(29,78,216,.3) !important;
    transition: var(--transition) !important;
}
.warning-btn-primary:hover { transform: translateY(-1px) !important; opacity: .9 !important; color: #fff !important; }

.warning-btn-secondary {
    display: inline-flex;
    align-items: center; gap: 8px;
    background: #fff !important;
    color: var(--text) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 11px 24px !important;
    transition: var(--transition) !important;
}
.warning-btn-secondary:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: #f0f7ff !important;
}

/* ── Contact page (contact.php) ─────────────────────────── */
.contact-page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0 18px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.contact-page-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--primary);
    flex-shrink: 0;
}
.contact-page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 22px;
    color: var(--text); margin: 0 0 4px;
}
.contact-page-sub {
    font-size: 13.5px; color: var(--text-light);
    font-family: 'Inter', sans-serif;
    margin: 0;
}
.contact-form-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px 24px;
}
.contact-intro {
    font-family: 'Inter', sans-serif;
    font-size: 14px; color: var(--text-light);
    line-height: 1.6; margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.contact-form-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.contact-send-btn {
    min-width: 160px;
    display: inline-flex !important;
    width: auto !important;
}

/* ── Tool output pages — global improvements ────────────── */
/* Better form-control inputs on all tool pages */
.main-index .form-control {
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    height: auto !important;
    background: #f8fafc !important;
    color: var(--text) !important;
    transition: var(--transition) !important;
    box-shadow: none !important;
}
.main-index .form-control:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1) !important;
    outline: none !important;
}
.main-index textarea.form-control { height: auto !important; }

/* Better btn-info for tool submit buttons */
.btn-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #fff !important;
    padding: 11px 28px !important;
    box-shadow: 0 4px 14px rgba(29,78,216,.28) !important;
    transition: var(--transition) !important;
}
.btn-info:hover, .btn-info:focus {
    opacity: .9 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(29,78,216,.38) !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

/* Tool page title */
.main-index h2#title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--text);
    margin: 0 0 0;
    padding: 0 0 14px 16px;
    border-bottom: 2px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.3;
}
.main-index h2#title::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 14px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 2px;
}
/* Free / Pro badge on title */
.tool-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.tool-page-badge--free {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.tool-page-badge--pro {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
/* Quick meta strip */
.tool-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 20px;
}
.tool-meta-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 12px;
    font-family: 'Inter', sans-serif;
}
.tool-meta-strip span .fa { color: var(--primary); font-size: 11px; }

/* About tool section */
.main-index h2.about_tool,
.main-index .about_tool {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    margin: 36px 0 12px;
    padding: 0 0 10px 16px;
    border-bottom: 1.5px solid var(--border);
    position: relative;
}
.main-index h2.about_tool::before,
.main-index .about_tool::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 10px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.about-tool-icon { color: var(--tool-accent, var(--accent)); margin-right: 8px; font-size: 16px; }
/* About body text */
.main-index .contentLayer p, .main-index > p {
    font-family: 'Lora', Georgia, serif;
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 14px;
}
.main-index .contentLayer h3, .main-index > h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    margin: 20px 0 8px;
}
.main-index .contentLayer ul, .main-index > ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.main-index .contentLayer li, .main-index > li {
    font-family: 'Lora', Georgia, serif;
    font-size: 14.5px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 4px;
}
/* Related tools heading */
.related-tools-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    background: linear-gradient(to right, #f8fafc, #f0f7ff) !important;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4 !important;
}
.related-tools-heading .fa { color: var(--primary); }

/* Tool error alert */
.main-index .alert-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #991b1b;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* Select in tool forms */
.main-index select.form-control {
    cursor: pointer;
    appearance: auto;
}

/* ── Tool URL input with clear button ──────────────────── */
.tool-url-wrap {
    position: relative;
    display: block;
    margin-bottom: 12px;
}
.tool-url-wrap .form-control {
    padding-right: 40px !important;
}
.tool-url-clear {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #94a3b8; cursor: pointer;
    padding: 4px 6px; line-height: 1;
    font-size: 13px;
    transition: color .15s ease, opacity .15s ease;
}
.tool-url-clear:hover { color: #dc2626; }

/* ── Sidebar search results ─────────────────────────────── */
#sidebar-results { position: relative; top: 0; }
.sidebar-search-results {
    list-style: none;
    margin: 8px 0 0; padding: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.sidebar-search-results li { border-bottom: 1px solid #f1f5f9; }
.sidebar-search-results li:last-child { border-bottom: none; }
.sidebar-search-results li a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 500;
    color: var(--text); text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.sidebar-search-results li a:hover {
    background: #f0f7ff;
    color: var(--primary);
}
.sidebar-search-results li a img {
    width: 22px; height: 22px;
    border-radius: 4px; object-fit: contain;
    flex-shrink: 0;
}

/* ── Tool page form improvements ────────────────────────── */
/* Tighten spacing around tool forms */
.main-index > form,
.main-index > p + form,
.main-index > br + form {
    margin-top: 16px;
}
/* Submit button group: no full-width by default */
.main-index form .text-center {
    margin-top: 14px;
    text-align: left !important;
}
.main-index form input[type="submit"].btn-info,
.main-index form button[type="submit"].btn-info {
    min-width: 140px;
}

/* ── Result table "click to copy" indicator ──────────────── */
.main-index table td:hover {
    background: #f0f7ff;
    position: relative;
}
.main-index table td::after {
    content: '\f0c5';
    font-family: 'FontAwesome';
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #cbd5e1;
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}
.main-index table td:hover::after { opacity: 1; }

/* ── Print styles ───────────────────────────────────────── */
@media print {
    .navbar, .footer, .prefooter-strip, .xd_top_box,
    .sidebar, #rightCol, .widget-box, .cta-banner,
    #scrollTop, #scrollProgress, .modal, .btn,
    .search-input-group-wrap,
    .features-strip, .masthead, .submasthead { display: none !important; }
    .col-md-8 { width: 100% !important; float: none !important; }
    .main-index { border: none !important; box-shadow: none !important; }
    body { font-family: serif; font-size: 12pt; }
    .table th, .table td { border: 1px solid #ccc !important; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 10pt; color: #666; }
}

/* ── Improved search bar on main page ───────────────────── */
.search-input-group-wrap {
    position: relative;
}
.search-shortcut {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    display: flex; gap: 3px; align-items: center;
    pointer-events: none;
}
.search-shortcut kbd {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 600;
    padding: 2px 6px;
    line-height: 1.4;
}
#searchSec .form-control.input-lg {
    padding-right: 80px !important;
    height: 52px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
}
#searchSec .input-group-addon.search-green {
    width: 52px;
    border-radius: 12px 0 0 12px;
    font-size: 16px;
}

/* ── Sidebar input ──────────────────────────────────────── */
#sidebarSc .input-group {
    display: flex !important;
}
#sidebarSc .input-group .form-control {
    flex: 1 1 auto;
    width: auto !important;
    height: 40px !important;
    font-size: 13px !important;
    border-radius: 0 8px 8px 0 !important;
}
#sidebarSc .input-group-addon {
    flex: 0 0 auto;
    border-radius: 8px 0 0 8px;
    font-size: 13px;
}

/* ── Sidebar free account CTA ───────────────────────────── */
.sidebar-cta-widget {
    overflow: hidden;
    border: none !important;
}
.sidebar-cta-inner {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-mid) 100%);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sidebar-cta-inner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(6,182,212,.25) 0%, transparent 65%);
    pointer-events: none;
}
.sidebar-cta-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    margin: 0 auto 14px;
    position: relative; z-index: 1;
}
.sidebar-cta-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 17px;
    color: #fff; margin: 0 0 8px;
    position: relative; z-index: 1;
}
.sidebar-cta-text {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; color: rgba(255,255,255,.65);
    line-height: 1.6; margin: 0 0 18px;
    position: relative; z-index: 1;
}
.sidebar-cta-btn {
    display: inline-flex;
    align-items: center; gap: 7px;
    background: #fff;
    color: var(--primary) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 13px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    transition: var(--transition);
    position: relative; z-index: 1;
}
.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    color: var(--primary-dark) !important;
}

/* ── Dark mode toggle button ────────────────────────────── */
.nav-dark-toggle { display: flex; align-items: center; }
.btn-dark-toggle {
    width: 36px; height: 36px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    cursor: pointer;
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 6px 0 0;
    transition: var(--transition);
}
.btn-dark-toggle:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* ── Dark mode ──────────────────────────────────────────── */
html.dark-mode {
    --bg:             #0a1120;
    --card-bg:        #121b2e;
    --border:         #2c3a58;
    --text:           #e9effc;
    --text-light:     #a4b3cf;
    --radius:         16px;
    /* Signal dark-mode primary/accent are lighter than their light-mode
       counterparts for contrast against the dark background — see the
       Signal dark tokens in rankwise-themes.css. --primary-dark keeps the
       existing "darker than --primary" convention used throughout this
       file's gradients/hovers, so it is not Signal's literal hover token. */
    --primary:        #5b93f6;
    --primary-dark:   #3a5ec7;
    --primary-light:  #7aa9f8;
    --primary-glow:   rgba(91,147,246,.25);
    --accent:         #38bcd6;
    --accent-dark:    #1f8fa3;
}

html.dark-mode body {
    background: var(--bg);
    color: var(--text);
}

/* Navbar */
html.dark-mode .navbar-default {
    background: rgba(11,18,33,.92) !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    backdrop-filter: blur(12px);
}
html.dark-mode .navbar-default.nav-scrolled {
    background: rgba(11,18,33,.97) !important;
}
html.dark-mode .navbar-default .navbar-nav > li > a {
    color: #94a3b8 !important;
}
/* .signup ("Join Membership" / "Sign Up") keeps solid white text on its blue
   gradient pill — the generic muted-gray nav link color above would otherwise
   win here (higher specificity, same !important) and make it hard to read. */
html.dark-mode .navbar-default .navbar-nav > li > a.signup,
html.dark-mode .navbar-default .navbar-nav > li > a.signup:hover,
html.dark-mode .navbar-default .navbar-nav > li > a.signup:focus {
    color: #fff !important;
}
html.dark-mode .navbar-default .navbar-nav > li > a:hover,
html.dark-mode .navbar-default .navbar-nav > li > a:focus {
    color: #e2e8f0 !important;
    background: rgba(255,255,255,.1) !important;
}
html.dark-mode .navbar-default .navbar-nav > .active > a,
html.dark-mode .navbar-default .navbar-nav > .active > a:hover {
    color: #60a5fa !important;
    background: rgba(96,165,250,.12) !important;
}
html.dark-mode .navbar-brand { filter: brightness(1.1); }
html.dark-mode .navbar-toggle .icon-bar { background: #94a3b8; }

/* Main cards */
html.dark-mode .main-index {
    background: var(--card-bg) !important;
    border-color: var(--border) !important;
}
html.dark-mode .main-container { background: transparent; }

/* Thumbnails (tool cards) */
html.dark-mode .thumbnail {
    background: linear-gradient(150deg, #16213a 0%, #131d30 55%, #101828 100%) !important;
    border-color: rgba(255,255,255,.07) !important;
}
html.dark-mode .thumbnail:hover { background: linear-gradient(150deg, #1a2848 0%, #17223c 55%, #131d30 100%) !important; }
html.dark-mode .thumbnail .caption { color: #c8d6e8 !important; }

/* Search */
html.dark-mode #searchSec {
    background: #131d30 !important;
    border-color: rgba(255,255,255,.08) !important;
}
html.dark-mode .form-control,
html.dark-mode .main-index .form-control,
html.dark-mode .pf-input {
    background: #0d1624 !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
}
html.dark-mode .form-control:focus,
html.dark-mode .main-index .form-control:focus,
html.dark-mode .pf-input:focus {
    background: #111e35 !important;
    border-color: var(--primary) !important;
}
html.dark-mode .form-control::placeholder { color: #4b607a !important; }

/* Tables */
html.dark-mode .table th {
    background: linear-gradient(to bottom, #1a2640, #131d30) !important;
    color: #94a3b8 !important;
    border-bottom-color: rgba(255,255,255,.08) !important;
}
html.dark-mode .table td {
    color: #e2e8f0 !important;
    border-bottom-color: rgba(255,255,255,.05) !important;
}
html.dark-mode .table-striped > tbody > tr:nth-child(odd) td { background: #0f1a2e !important; }
html.dark-mode .table-hover > tbody > tr:hover td { background: #1a2e4a !important; }
html.dark-mode .table-responsive { border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .main-index table td:hover { background: #1a2e4a !important; }

/* Alerts */
html.dark-mode .alert-success { background: #052e16 !important; border-color: #166534 !important; color: #4ade80 !important; }
html.dark-mode .alert-danger, html.dark-mode .alert-error { background: #2d0f0f !important; border-color: #7f1d1d !important; color: #f87171 !important; }
html.dark-mode .alert-info { background: #0c2340 !important; border-color: #1e3a5f !important; color: #7dd3fc !important; }
html.dark-mode .alert-warning { background: #2d1f00 !important; border-color: #78350f !important; color: #fbbf24 !important; }

/* Widgets (sidebar) */
html.dark-mode .widget-box { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .widget-body { background: #131d30 !important; }
html.dark-mode .widget-header { background: linear-gradient(to right, #1a2640, #131d30) !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .widget-title { color: #e2e8f0 !important; }
html.dark-mode .sidebar-tools-list li { border-color: rgba(255,255,255,.06) !important; }
html.dark-mode #sidebarSc .form-control {
    background: #0f1a2e !important;
    border-color: rgba(255,255,255,.1) !important;
    color: #e2e8f0 !important;
}
html.dark-mode #sidebarSc .form-control::placeholder { color: #64748b !important; }
html.dark-mode .sidebar-tools-list li a { color: #94a3b8 !important; }
html.dark-mode .sidebar-tools-list li:hover { background: #1a2640 !important; }
html.dark-mode .sidebar-tools-list li:hover a { color: var(--accent) !important; }

/* Modals */
html.dark-mode .modal-content { background: #131d30 !important; }
html.dark-mode .modal-body { background: #131d30 !important; }
html.dark-mode .modal-footer { background: #0f1a2e !important; border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .loginme .form-input {
    background: #0d1624 !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
}
html.dark-mode .modal-footer a { color: #64748b !important; }
html.dark-mode .modal-footer a:hover { color: var(--accent) !important; }

/* Profile page */
html.dark-mode .profile-info-card { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .profile-info-avatar-col { background: linear-gradient(135deg, #1a2640, #131d30) !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .pf-field:hover { background: #1a2640 !important; }
html.dark-mode .pf-field-value { color: #e2e8f0 !important; }
html.dark-mode .profile-form-card { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .profile-form-card .form-group label { color: #64748b !important; }
html.dark-mode .profile-tab-nav { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .profile-tab-nav > li > a { color: #64748b !important; }
html.dark-mode .profile-tab-nav > li > a:hover { background: #1a2640 !important; color: #94a3b8 !important; }
html.dark-mode .profile-hero-card { background: linear-gradient(135deg, #0b1221 0%, #0f2d5e 60%, #1a3a7a 100%) !important; }
html.dark-mode .profile-info-free-tag { background: rgba(34,197,94,.15) !important; color: #4ade80 !important; }
html.dark-mode .pf-field-icon { background: linear-gradient(135deg, rgba(29,78,216,.18), rgba(29,78,216,.1)) !important; }
html.dark-mode .pf-file-label { background: #1a2640 !important; border-color: rgba(255,255,255,.08) !important; color: #94a3b8 !important; }
html.dark-mode .pf-activity-card { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .pf-activity-item { border-bottom-color: rgba(255,255,255,.06) !important; }
html.dark-mode .pf-activity-icon { background: linear-gradient(135deg, rgba(29,78,216,.18), rgba(29,78,216,.1)) !important; }

/* Auth cards */
html.dark-mode .auth-card { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .auth-card-body { color: var(--text); }
html.dark-mode .auth-card-footer { background: #0f1a2e !important; border-color: rgba(255,255,255,.08) !important; color: #64748b !important; }
html.dark-mode .auth-label { color: #64748b !important; }
html.dark-mode .auth-option-card { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .auth-option-card:hover { border-color: var(--primary) !important; background: #1a2640 !important; }
html.dark-mode .auth-option-card strong { color: #e2e8f0 !important; }
html.dark-mode .auth-option-card span { color: #64748b !important; }
html.dark-mode .pass-toggle-btn { color: #64748b !important; }
html.dark-mode .pass-toggle-btn:hover { color: var(--primary) !important; background: rgba(29,78,216,.15) !important; }
html.dark-mode .pw-strength { background: rgba(255,255,255,.08) !important; }
html.dark-mode .pw-strength-label { color: #64748b !important; }

/* Contact / warning cards */
html.dark-mode .contact-form-card { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .contact-intro { color: #64748b !important; border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .contact-form-footer { border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .warning-card { background: #131d30 !important; border-color: rgba(255,255,255,.1) !important; }
html.dark-mode .warning-card-title { color: #e2e8f0 !important; }
html.dark-mode .warning-card-text { color: #94a3b8 !important; }

/* Well + boxes */
html.dark-mode .well { background: #0f1a2e !important; border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .box_shadow_border { background: #1a2640 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .posts_1 { background: #0f1a2e !important; border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .posts_1 h5 { color: #e2e8f0 !important; border-color: rgba(255,255,255,.08) !important; }
html.dark-mode h2#title, html.dark-mode h2.about_tool { color: #e2e8f0 !important; border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .page-content-header { border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .page-content-title { color: #e2e8f0 !important; }
html.dark-mode .page-content-date { background: #0f1a2e !important; border-color: rgba(255,255,255,.08) !important; color: #64748b !important; }
html.dark-mode .csContent { color: #c8d6e8 !important; }
html.dark-mode .csContent a { color: var(--accent) !important; }

/* Tool gate overlay */
html.dark-mode .tool-gate-card { background: #131d30 !important; }
html.dark-mode .tool-gate-card h3, html.dark-mode .tool-gate-card p { color: #94a3b8 !important; }

/* Dark mode navbar toggle button */
html.dark-mode .btn-dark-toggle {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
}

/* Search results in dark mode */
html.dark-mode .search-results { background: #131d30 !important; border-color: rgba(255,255,255,.08) !important; }
html.dark-mode .search-results a { color: #94a3b8 !important; }
html.dark-mode .search-results a:hover { color: var(--accent) !important; background: #1a2640 !important; }
html.dark-mode mark { background: rgba(6,182,212,.25) !important; color: var(--accent) !important; }

/* Pagination in dark mode */
html.dark-mode .pagination > li > a, html.dark-mode .pagination > li > span {
    background: #131d30; border-color: rgba(255,255,255,.08); color: #94a3b8;
}
html.dark-mode .pagination > li > a:hover { background: #1a2640; border-color: rgba(255,255,255,.15); color: #e2e8f0; }

/* Breadcrumbs */
html.dark-mode .breadcrumb { color: #64748b; }
html.dark-mode .breadcrumb > li a { color: var(--accent); }

/* Submasthead */
html.dark-mode .submasthead { background: linear-gradient(to right, #0b1221, #131d30) !important; }

/* Pre / code */
html.dark-mode pre { background: #050d1a !important; border: 1px solid rgba(255,255,255,.06) !important; }
html.dark-mode code { background: #1a2640 !important; color: #7dd3fc !important; }

/* Misc text */
html.dark-mode p, html.dark-mode li { color: #c8d6e8; }
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
html.dark-mode h4, html.dark-mode h5, html.dark-mode h6 { color: #e2e8f0; }
html.dark-mode .color-grey { color: #64748b !important; }
html.dark-mode .color_grap { color: #94a3b8 !important; }

@media (max-width: 767px) {
    html.dark-mode .btn-dark-toggle { margin: 6px 6px 0 0; }
}

/* ════════════════════════════════════════════════════════════════
   TOOL RESULT PAGES — PREMIUM ENHANCEMENTS
   ════════════════════════════════════════════════════════════════ */

/* ── Result widget-box as premium card ─────────────────────── */
.main-index .widget-box {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.08) !important;
    overflow: hidden;
    margin-bottom: 24px;
}
.main-index .widget-header {
    background: linear-gradient(135deg, var(--tool-accent, #2563eb) 0%, var(--tool-accent2, #0891b2) 100%) !important;
    color: #fff !important;
    padding: 14px 20px !important;
    border: none !important;
}
.main-index .widget-header h4,
.main-index .widget-header .widget-title {
    color: #fff !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    margin: 0 !important;
    text-shadow: none !important;
}
.main-index .widget-body { padding: 0 !important; }
.main-index .widget-main { padding: 20px !important; }

/* ── Post-tool "about" continuation note ─────────────────────
   The about-tool text is split after its first paragraph on tool pages;
   this holds the remainder (rendered right after the tool widget). */
.main-index .tool-post-note {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-family: 'Lora', Georgia, serif;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-light);
    text-align: left;
}
.main-index .tool-post-note p { margin: 0 0 10px; }
.main-index .tool-post-note p:last-child { margin-bottom: 0; }
.main-index .tool-post-note strong { color: var(--text); }
html.dark-mode .main-index .tool-post-note { background: #0f1a2e; border-color: rgba(255,255,255,.08); }

/* ── Bare result container spacing ───────────────────────────
   A handful of tools render results straight into #resultBox/#results
   without the widget-box card wrapper, and some pre-render a loading
   spinner inside on page load — a background/border treatment risks
   framing that idle state as a stray empty card, so this only adds
   breathing room under the submit button rather than a full card look. */
.main-index #resultBox,
.main-index #results,
.main-index #result,
.main-index .result,
.main-index .resultBox {
    margin-top: 18px;
}

/* ── Give bare tool forms & result tables their own "card" container ──
   Most vendor tool pages just float a <form> or <table> directly on the
   page background with no visual boundary — no border, shadow, or padding.
   This wraps them in the same card look as the widget-box results above,
   purely via CSS (no per-file HTML changes needed across 48+ tool files). */
.main-index > form {
    display: block;
    position: relative;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    margin-bottom: 16px;
    overflow: hidden;
}
.main-index table.table-bordered {
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    border-radius: 16px;
    background: #fff;
    margin-bottom: 16px;
    overflow: hidden;
}
/* Tables already inside a widget-box card shouldn't get a second nested card */
.main-index .widget-main table.table-bordered {
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}
html.dark-mode .main-index > form { background: #131d30 !important; border-color: rgba(255,255,255,.07) !important; }
html.dark-mode .main-index table.table-bordered { background: #131d30 !important; }

/* ── Per-tool color theme: each tool page gets a consistent accent color
   (deterministic from its URL slug) carried through its own containers ──── */
body.tool-color-1 { --tool-accent: #2563eb; --tool-accent2: #60a5fa; }
body.tool-color-2 { --tool-accent: #0d9488; --tool-accent2: #2dd4bf; }
body.tool-color-3 { --tool-accent: #7c3aed; --tool-accent2: #a78bfa; }
body.tool-color-4 { --tool-accent: #ea580c; --tool-accent2: #fb923c; }
body.tool-color-5 { --tool-accent: #db2777; --tool-accent2: #f472b6; }
body.tool-color-6 { --tool-accent: #16a34a; --tool-accent2: #4ade80; }
body.tool-color-7 { --tool-accent: #a16207; --tool-accent2: #d97706; }
body.tool-color-8 { --tool-accent: #dc2626; --tool-accent2: #f87171; }
body[data-tool-slug="word-counter"] { --tool-accent: #2563eb; --tool-accent2: #1e3a8a; }

.main-index > form::before,
.main-index table.table-bordered::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(to right, var(--tool-accent, var(--primary)), var(--tool-accent2, var(--accent)));
}
.main-index .widget-main table.table-bordered::before { content: none; }
.main-index > form { border-top: none; }
.main-index .about_tool::before { background: var(--tool-accent, var(--accent)) !important; }
.main-index .btn-info {
    background: linear-gradient(135deg, var(--tool-accent, var(--primary)), var(--tool-accent2, var(--accent))) !important;
    border-color: transparent !important;
}

/* ── Result tables ──────────────────────────────────────────── */
.main-index table.table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    width: 100%;
}
.main-index table.table-bordered { border: none !important; }
.main-index table.table-bordered > thead > tr > th {
    background: #f8fafc !important;
    color: #374151 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    border-color: #e5e7eb !important;
    padding: 11px 16px !important;
}
.main-index table.table-bordered > tbody > tr > td,
.main-index table.table-bordered > tbody > tr > th {
    border-color: #edf2f7 !important;
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: middle;
}
.main-index table.table-bordered > tbody > tr:first-child > td { border-top: none; }
/* Label column (first td, not spanning) */
.main-index table.table-bordered > tbody > tr > td:first-child:not([colspan]) {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    border-right: 1px solid #e5e7eb !important;
    white-space: nowrap;
    min-width: 120px;
}
.main-index table.table-bordered > tbody > tr:hover > td { background: rgba(239,246,255,.7) !important; }
.main-index table.table-bordered > tbody > tr:hover > td:first-child:not([colspan]) { background: #eff6ff !important; }
/* Strip inline widths added by templates */
.main-index table td[style*="width:200px"],
.main-index table td[style*="width: 200px"],
.main-index table td[style*="width:150px"],
.main-index table td[style*="width: 150px"] { width: auto !important; }

/* ── Status text ────────────────────────────────────────────── */
.main-index .green, span.green { color: #16a34a !important; font-weight: 600; }
.main-index .red,   span.red   { color: #dc2626 !important; font-weight: 600; }
.tableHr { border: none; border-top: 1px solid #edf2f7; margin: 8px 0; }

/* ── Value badges (AdminLTE-style bg-* classes used by several
   result tables — my_ip_address, my_browser_info, class_c_ip,
   domain_hosting, domain_ip, link_analyzer, avg_antivirus) ───── */
.main-index .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    color: #fff !important;
    background: #64748b;
    text-shadow: none;
    line-height: 1.6;
}
.main-index .badge.bg-green  { background: linear-gradient(135deg,#16a34a,#15803d); }
.main-index .badge.bg-aqua   { background: linear-gradient(135deg,#06b6d4,#0891b2); }
.main-index .badge.bg-purple { background: linear-gradient(135deg,#9333ea,#7c3aed); }
.main-index .badge.bg-orange { background: linear-gradient(135deg,#ea580c,#c2410c); }
.main-index .badge.bg-blue   { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
.main-index .badge.bg-red    { background: linear-gradient(135deg,#dc2626,#b91c1c); }
.main-index .badge.bg-maroon { background: linear-gradient(135deg,#9f1239,#831843); }
.main-index .badge.bg-olive  { background: linear-gradient(135deg,#65a30d,#4d7c0f); }

/* ── Raw layout tables used as form grids (robots_generator.php's
   #roboTable / table.nostyle) — CSS-only tidy-up, deliberately not
   restructuring the markup since the page's JS looks up fields by
   name/this.form and shouldn't be risked for a cosmetic pass ───── */
.main-index table.nostyle,
.main-index #roboTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.main-index table.nostyle td,
.main-index #roboTable td {
    padding: 5px 8px;
    vertical-align: middle;
    border: none;
}
.main-index table.nostyle td:first-child,
.main-index #roboTable td:first-child {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    white-space: nowrap;
}
.main-index table.nostyle select.form-control,
.main-index table.nostyle input.form-control,
.main-index #roboTable select.form-control,
.main-index #roboTable input.form-control {
    min-width: 160px;
}

/* ── Shared "generating…" loading state used inline by several
   AJAX tools (domain_authority_checker, backlink_maker, plagiarism_checker) */
.main-index .percentbox { text-align: center; font-size: 15px; color: var(--text-light); font-weight: 600; }
.main-index .percentimg { text-align: center; padding: 24px 0; }
.main-index .percentimg img { width: 32px; height: 32px; }

/* ── Multi-step wizard (privacy-policy-generator.php) ──────────── */
.main-index .wizard .nav-tabs { border-bottom: none; display: flex; gap: 8px; margin-bottom: 24px; }
.main-index .wizard .nav-tabs > li { flex: 1; float: none; }
.main-index .wizard .nav-tabs > li > a {
    border-radius: 10px !important;
    border: 1.5px solid var(--border) !important;
    background: #fff !important;
    color: var(--text-light) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    padding: 12px 8px !important;
    margin-right: 0 !important;
}
.main-index .wizard .nav-tabs > li.active > a,
.main-index .wizard .nav-tabs > li.active > a:hover,
.main-index .wizard .nav-tabs > li.active > a:focus {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark)) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.main-index .wizard .tab-pane { padding: 4px 0; }
html.dark-mode .main-index .wizard .nav-tabs > li > a { background: #0f1a2e !important; border-color: rgba(255,255,255,.1) !important; color: #94a3b8 !important; }

/* ── Tool-page alerts ───────────────────────────────────────── */
.main-index .alert-error {
    background: #fef2f2 !important; border: 1px solid #fecaca !important;
    border-radius: 12px !important; color: #991b1b !important; padding: 14px 18px !important;
}
.main-index .alert-success {
    background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important;
    border-radius: 12px !important; color: #166534 !important; padding: 14px 18px !important;
}

/* ── Progress bars ──────────────────────────────────────────── */
.main-index .progress {
    border-radius: 8px !important; height: 28px !important;
    background: #f1f5f9 !important; overflow: hidden;
}
.main-index .progress-bar {
    line-height: 28px !important; font-size: 12px !important;
    font-weight: 600 !important; font-family: 'Inter', sans-serif !important;
}
.main-index .progress-bar-success { background: linear-gradient(90deg,#16a34a,#4ade80) !important; }
.main-index .progress-bar-warning { background: linear-gradient(90deg,#d97706,#fbbf24) !important; }
.main-index .progress-bar-danger  { background: linear-gradient(90deg,#dc2626,#f87171) !important; }

/* Hide the vendor's unconfigured "no ad set" placeholder image instead of showing it to real visitors */
img.imageres[src*="dummy-xd"] { display: none !important; }
.xd_top_box:has(> img.imageres[src*="dummy-xd"]) { display: none !important; }

/* ── Ad container separator ─────────────────────────────────── */
.main-index .xd_top_box {
    margin: 20px auto;
    padding: 12px 0;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
    min-height: 20px;
    max-width: 364px;
}
.main-index .xd_top_box:not(:has(> img.imageres[src*="dummy-xd"]))::before {
    content: 'Advertisement';
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 8px;
}
html.dark-mode .main-index .xd_top_box::before { color: #475569; }

/* ── Export CSV button ──────────────────────────────────────── */
.tool-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all .15s ease;
    margin-bottom: 8px;
    text-decoration: none;
}
.tool-export-btn:hover {
    background: #eff6ff; color: #2563eb;
    border-color: #bfdbfe; text-decoration: none;
}
.tool-export-btn .fa { font-size: 11px; }

/* ── Tool feedback widget ───────────────────────────────────── */
.tool-feedback {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8eef5;
    margin: 20px 0 8px;
    font-family: 'Inter', sans-serif;
    flex-wrap: wrap;
}
.tool-feedback-label { font-size: 13px; color: #64748b; flex: 1; min-width: 150px; }
.tool-feedback-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 8px;
    border: 1px solid #e2e8f0; background: #fff;
    font-size: 13px; font-weight: 500; cursor: pointer;
    color: #475569; transition: all .15s ease;
    font-family: 'Inter', sans-serif;
}
.tool-feedback-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.tool-feedback-btn.active.up   { background: #dcfce7; border-color: #16a34a; color: #16a34a; }
.tool-feedback-btn.active.down { background: #fee2e2; border-color: #dc2626; color: #dc2626; }
.tool-feedback-thanks { font-size: 12.5px; color: #16a34a; font-weight: 600; display: none; }

/* ── Tool result verdict + explainer ("what this means") ───── */
.tool-verdict {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 18px; border-radius: 12px; margin: 18px 0;
    font-family: 'Inter', sans-serif; font-size: 14.5px; line-height: 1.5;
    border: 1px solid;
}
.tool-verdict-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.tool-verdict-text strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.tool-verdict.good { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.tool-verdict.good .tool-verdict-icon { color: #16a34a; }
.tool-verdict.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.tool-verdict.warn .tool-verdict-icon { color: #d97706; }
.tool-verdict.bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.tool-verdict.bad .tool-verdict-icon { color: #dc2626; }
html.dark-mode .tool-verdict.good { background: #0c2016; border-color: #166534; color: #86efac; }
html.dark-mode .tool-verdict.warn { background: #2a2408; border-color: #a16207; color: #fde68a; }
html.dark-mode .tool-verdict.bad  { background: #2b1414; border-color: #b91c1c; color: #fca5a5; }

/* ── Bulk DA/PA checker per-row verdict labels ("what this score means") ── */
.da-verdict {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em;
    padding: 2px 8px; border-radius: 999px; margin-left: 6px; text-transform: uppercase;
    font-family: 'Inter', sans-serif; vertical-align: middle;
}
.da-verdict-new         { background: #fef2f2; color: #991b1b; }
.da-verdict-established { background: #fffbeb; color: #92400e; }
.da-verdict-strong      { background: #eff6ff; color: #1d4ed8; }
.da-verdict-major       { background: #f0fdf4; color: #166534; }
html.dark-mode .da-verdict-new         { background: #2b1414; color: #fca5a5; }
html.dark-mode .da-verdict-established { background: #2a2408; color: #fde68a; }
html.dark-mode .da-verdict-strong      { background: #0f1b2e; color: #93c5fd; }
html.dark-mode .da-verdict-major       { background: #0c2016; color: #86efac; }

.tool-explainer { font-family: 'Lora', Georgia, serif; font-size: 14.5px; line-height: 1.7; color: var(--text-light); margin: 4px 0 20px; }
.tool-explainer p { margin: 0 0 12px; }
.tool-explainer strong { color: var(--text); }

/* ── "Continue your analysis" cross-link cards ─────────────── */
.tool-next-steps { margin: 8px 0 24px; }
.tool-next-steps-title {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
    color: var(--text); margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
.tool-next-steps-title .fa { color: var(--tool-accent, var(--accent)) !important; }
.tool-next-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-next-card {
    flex: 1 1 220px; display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--card-bg); text-decoration: none !important; transition: all .18s ease;
}
.tool-next-card:hover { border-color: var(--tool-accent, var(--primary)); box-shadow: 0 8px 22px rgba(29,78,216,.12); transform: translateY(-2px); }
.tool-next-card-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tool-accent, var(--primary)), var(--tool-accent2, var(--accent))); color: #fff; font-size: 16px;
}
.tool-next-card-text strong { display: block; font-size: 13.5px; color: var(--text); }
.tool-next-card-text span { font-size: 12px; color: var(--text-light); }

/* ── Example result preview (shown pre-submit, before a real check) ── */
.tool-example {
    border: 1.5px dashed var(--tool-accent, var(--border));
    border-radius: 12px;
    padding: 16px 18px; margin: 18px 0; position: relative;
    background: var(--card-bg);
}
.tool-example-tag {
    position: absolute; top: -11px; left: 14px; background: var(--bg, #f8fafc);
    padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--text-light);
}
html.dark-mode .tool-example-tag { background: #0f172a; }
.tool-example-body { opacity: .82; font-size: 14px; }
.tool-example-body table { margin-bottom: 0; }

/* ── Tool page FAQ accordion (also mirrored in FAQPage JSON-LD) ──── */
.tool-faq { margin: 28px 0 20px; }
.tool-faq > h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.tool-faq details {
    background: var(--card-bg); border: 1px solid var(--border); border-left: 3px solid var(--tool-accent, var(--border)); border-radius: 10px;
    padding: 13px 16px; margin-bottom: 10px;
    transition: border-color .18s ease;
}
.tool-faq details[open] { border-color: var(--tool-accent, var(--border)); }
.tool-faq summary {
    font-weight: 600; color: var(--text); cursor: pointer; font-size: 14.5px;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.tool-faq summary::-webkit-details-marker { display: none; }
.tool-faq summary::after { content: '\f107'; font-family: FontAwesome; color: var(--tool-accent, var(--text-light)); font-weight: 400; margin-left: 10px; }
.tool-faq details[open] summary::after { content: '\f106'; }
.tool-faq details p { font-family: 'Lora', Georgia, serif; margin: 10px 0 0; font-size: 13.5px; color: var(--text-light); line-height: 1.6; }

/* ── E-E-A-T byline strip ──────────────────────────────────── */
.tool-byline {
    display: flex; gap: 12px; align-items: center; margin: 24px 0 8px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.tool-byline-face {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--tool-accent, var(--primary)), var(--tool-accent2, var(--accent)));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.tool-byline p { font-family: 'Lora', Georgia, serif; font-size: 12.5px; color: var(--text-light); margin: 0; }
.tool-byline strong { color: var(--text); }

/* ── Recently viewed sidebar widget ────────────────────────── */
.sidebar-recent-list { margin: 0; padding: 0; list-style: none; }
.sidebar-recent-list li {
    border-bottom: 1px solid #f1f5f9;
    display: flex; align-items: center;
    transition: background .15s ease;
}
.sidebar-recent-list li:last-child { border-bottom: none; }
.sidebar-recent-list li:hover { background: #f0f7ff; }
.sidebar-recent-list li .fa {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--accent); margin-left: 12px;
}
.sidebar-recent-list li a {
    flex: 1; display: block;
    padding: 10px 12px 10px 6px;
    color: var(--text); font-size: 13px; font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .15s ease;
}
.sidebar-recent-list li:hover a { color: var(--primary); }

/* ── Dark mode: result pages ────────────────────────────────── */
html.dark-mode .main-index .widget-box { box-shadow: 0 4px 24px rgba(0,0,0,.35) !important; }
html.dark-mode .main-index .widget-header { background: linear-gradient(135deg, var(--tool-accent, #1d4ed8), var(--tool-accent2, #0e7490)) !important; }
html.dark-mode .main-index table.table-bordered > thead > tr > th {
    background: #1a2640 !important; color: #94a3b8 !important; border-color: rgba(255,255,255,.07) !important;
}
html.dark-mode .main-index table.table-bordered > tbody > tr > td,
html.dark-mode .main-index table.table-bordered > tbody > tr > th { border-color: rgba(255,255,255,.06) !important; }
html.dark-mode .main-index table.table-bordered > tbody > tr > td:first-child:not([colspan]) {
    background: rgba(255,255,255,.04) !important; color: #94a3b8 !important;
    border-right-color: rgba(255,255,255,.08) !important;
}
html.dark-mode .main-index table.table-bordered > tbody > tr:hover > td { background: rgba(29,78,216,.08) !important; }
html.dark-mode .main-index table.table-bordered > tbody > tr:hover > td:first-child:not([colspan]) {
    background: rgba(29,78,216,.12) !important;
}
html.dark-mode .main-index .alert-error { background: #2d1515 !important; border-color: rgba(220,38,38,.3) !important; color: #fca5a5 !important; }
html.dark-mode .main-index .alert-success { background: #0d2516 !important; border-color: rgba(22,163,74,.3) !important; color: #86efac !important; }
html.dark-mode .main-index .progress { background: #1a2640 !important; }
html.dark-mode .main-index .xd_top_box { border-color: rgba(255,255,255,.07); }
html.dark-mode .tableHr { border-color: rgba(255,255,255,.07); }
html.dark-mode .tool-export-btn { background: #1a2640; border-color: rgba(255,255,255,.1); color: #94a3b8; }
html.dark-mode .tool-export-btn:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
html.dark-mode .tool-feedback { background: #131d30; border-color: rgba(255,255,255,.08); }
html.dark-mode .tool-feedback-label { color: #64748b; }
html.dark-mode .tool-feedback-btn { background: #1a2640; border-color: rgba(255,255,255,.1); color: #94a3b8; }
html.dark-mode .tool-feedback-btn:hover { background: #1e3a6a; border-color: #2563eb; color: #93c5fd; }
html.dark-mode .sidebar-recent-list li { border-color: rgba(255,255,255,.06); }
html.dark-mode .sidebar-recent-list li:hover { background: rgba(29,78,216,.08); }

/* ── Breadcrumb on tool / sub pages ─────────────────────────── */
.sub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: .85;
}
.sub-breadcrumb a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color .15s ease;
}
.sub-breadcrumb a:hover { color: #fff; text-decoration: none; }
.sub-breadcrumb-sep { color: rgba(255,255,255,.4); font-size: 11px; }
.sub-breadcrumb span:last-child {
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    display: inline-block;
    vertical-align: middle;
}

/* ── Tool form intro paragraph ──────────────────────────────── */
.main-index > p:first-of-type,
.main-index form + p,
.main-index p.tool-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── Mobile responsiveness ──────────────────────────────────── */
@media (max-width: 767px) {
    /* 28px of horizontal padding on both sides eats a lot of a phone's
       width (56px total out of ~320-375px) — tighten it up on small screens. */
    .main-index { padding: 18px; }

    /* Tool result tables scroll horizontally */
    .main-index .widget-body { overflow-x: auto; }
    .main-index table.table { min-width: 340px; }
    .main-index table.table-bordered > tbody > tr > td:first-child:not([colspan]) {
        white-space: normal; min-width: 90px;
    }

    /* Tool form full-width button on mobile */
    .main-index .btn.btn-info { width: 100%; border-radius: 10px; }
    .main-index .tool-url-wrap { margin-bottom: 10px; }

    /* Feedback & export buttons full-width on mobile */
    .tool-feedback { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tool-export-btn { width: 100%; justify-content: center; }

    /* Auth options grid: single column on small screens */
    .auth-options-grid { grid-template-columns: 1fr 1fr; }

    /* Sidebar stacks below content — add breathing room */
    #rightCol { margin-top: 24px; }


    /* Hero stats: 3-up stays but smaller */
    .hero-stats { gap: 10px; }
    .hero-stat { flex: 1; }

    /* Submasthead breadcrumb truncate gracefully */
    .sub-breadcrumb { font-size: 12px; }
    .sub-breadcrumb span:last-child { max-width: 160px; }

    /* Scroll-to-top button: smaller + closer to edge on mobile */
    #scrollTop { width: 38px; height: 38px; bottom: 16px; right: 16px; font-size: 14px; }
}

@media (max-width: 480px) {
    .auth-options-grid { grid-template-columns: 1fr; }
    .hero-badge { font-size: 11px; padding: 5px 12px; }
    .seobannerh1 { font-size: 26px !important; }
    h2#title { font-size: 18px !important; }
    .features-strip .feature-item { padding: 12px 8px; }
    .features-strip .feature-text strong { font-size: 13px; }
    .tool-card-head { gap: 8px; padding: 12px 10px 8px; }
    .tool-icon-badge { width: 34px; height: 34px; border-radius: 9px; }
    .tool-icon-badge .seotoolimg { width: 19px; height: 19px; }
    .tool-card-head .caption { font-size: 12.5px; line-height: 1.25; }
}

/* ── Dark mode: breadcrumb ─────────────────────────────────── */
html.dark-mode .sub-breadcrumb a { color: rgba(255,255,255,.65); }
html.dark-mode .sub-breadcrumb a:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════════
   VISUAL POLISH
   ════════════════════════════════════════════════════════════════ */

/* ── Smooth page load ───────────────────────────────────────── */
.main-container { animation: pageFadeIn .45s ease both; }
@keyframes pageFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── Tool form card ─────────────────────────────────────────── */
.main-index > form,
.main-index > .br + form,
.main-index > br + form {
    background: linear-gradient(160deg,#fafcff 0%,#f0f7ff 100%);
    border: 1.5px solid #dbeafe;
    border-radius: 16px;
    padding: 28px 24px 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.main-index > form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 16px 16px 0 0;
}

/* ── Tool submit button — bigger & centered ─────────────────── */
.main-index form input[type="submit"].btn-info,
.main-index form button[type="submit"].btn-info {
    display: block !important;
    margin: 18px auto 4px !important;
    padding: 14px 52px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    box-shadow: 0 6px 20px rgba(29,78,216,.35) !important;
    border-radius: 50px !important;
    min-width: 180px !important;
}
.main-index form input[type="submit"].btn-info:hover,
.main-index form button[type="submit"].btn-info:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(29,78,216,.45) !important;
}
.main-index form .text-center { text-align: center !important; }

/* ── Tool caption — slightly larger ─────────────────────────── */
.caption { font-size: 12.5px; font-weight: 600; }

/* ── Tool card — shine on hover ──────────────────────────────── */
.thumbnail::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-15deg);
    transition: left .5s ease;
    pointer-events: none;
    z-index: 2;
}
.thumbnail:hover::before { left: 160%; }

/* ── About tool section — card ───────────────────────────────── */
.main-index h2.about_tool + p,
.main-index .about_tool + p {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    color: var(--text);
    line-height: 1.8;
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
}


/* ── Sidebar widget shadow ───────────────────────────────────── */
#rightCol .widget-box {
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    transition: box-shadow .2s ease;
}
#rightCol .widget-box:hover { box-shadow: 0 4px 24px rgba(0,0,0,.1); }

/* ── Sidebar CTA — vibrant gradient ─────────────────────────── */
.sidebar-cta-widget {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 50%, #0e7490 100%) !important;
    border: none !important;
    box-shadow: 0 8px 28px rgba(29,78,216,.3) !important;
    position: relative;
    overflow: hidden;
}
.sidebar-cta-widget::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 65%);
    pointer-events: none;
}
.sidebar-cta-widget::before {
    content: '';
    position: absolute;
    bottom: -40px; left: -20px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(6,182,212,.2) 0%, transparent 65%);
    pointer-events: none;
}
.sidebar-cta-inner { position: relative; z-index: 1; }
.sidebar-cta-icon {
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    color: #fff !important;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
    backdrop-filter: blur(8px);
}
.sidebar-cta-title { color: #fff !important; font-size: 18px !important; font-weight: 800 !important; margin: 0 0 8px !important; }
.sidebar-cta-text  { color: rgba(255,255,255,.8) !important; font-size: 13px !important; }
.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 11px 26px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.2) !important;
    transition: all .2s ease !important;
    margin-top: 4px;
}
.sidebar-cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;
    text-decoration: none !important;
}

/* ── Sidebar search — improved input ─────────────────────────── */
#sidebarSc .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s ease;
}
#sidebarSc .input-group:focus-within { box-shadow: 0 2px 12px rgba(29,78,216,.15); }
#sidebarSc .form-control {
    border: 1.5px solid var(--border) !important;
    border-left: none !important;
    border-radius: 0 !important;
    height: 42px !important;
    font-size: 13.5px !important;
    transition: border-color .2s ease !important;
}
#sidebarSc .form-control:focus { border-color: var(--primary) !important; outline: none; }
#sidebarSc .input-group-addon.search-green {
    height: 42px !important;
    width: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ── Floating label on tool page form inputs ─────────────────── */
.main-index .form-control {
    transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease !important;
}
.main-index .form-control:focus { transform: none; }

/* ── Result widget header with tool icon ─────────────────────── */
.main-index .widget-header i.fa {
    margin-right: 8px;
    font-size: 14px;
    opacity: .85;
}

/* ── Animated progress bar fill ─────────────────────────────── */
.main-index .progress-bar {
    animation: progressFill .8s ease both;
}
@keyframes progressFill { from { width: 0 !important; } }

/* ── Footer link hover arrow ─────────────────────────────────── */
.just-links.m-dark a::before {
    content: '›';
    display: inline-block;
    margin-right: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: all .15s ease;
    color: var(--accent);
    font-weight: 700;
}
.just-links.m-dark a:hover::before {
    opacity: 1;
    margin-right: 5px;
    transform: translateX(0);
}
.just-links.m-dark a:hover { padding-left: 0; }

/* ── Dark mode: visual polish ────────────────────────────────── */
html.dark-mode .main-index > form {
    background: linear-gradient(160deg, #131d30 0%, #0f1a2e 100%);
    border-color: rgba(29,78,216,.2);
}
html.dark-mode .main-index h2.about_tool + p,
html.dark-mode .main-index .about_tool + p {
    background: #131d30;
    border-color: rgba(255,255,255,.07);
    border-left-color: var(--accent);
    color: #c8d6e8;
}
html.dark-mode #rightCol .widget-box { box-shadow: 0 2px 16px rgba(0,0,0,.25); }
html.dark-mode .sidebar-cta-widget { box-shadow: 0 8px 28px rgba(0,0,0,.4) !important; }
html.dark-mode .thumbnail::before { background: linear-gradient(105deg, transparent, rgba(255,255,255,.08), transparent); }

/* ── Free tools intro heading (no box — each subgroup below is its own cat-section box) ── */
.free-tools-intro { margin-bottom: 4px; }

/* Float layouts wrap around taller siblings (e.g. a 2-line caption) instead of
   starting a clean new row, leaving visual gaps. Flexbox wraps evenly regardless
   of individual card height, and stretching the column makes every card in a
   row match the tallest one so rows stay flush. */
.category_box {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.category_box > [class*="col-"] {
    display: flex;
    float: none;
}
.category_box > [class*="col-"] > .thumbnail {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.category_box > [class*="col-"] > .thumbnail > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.category_box > [class*="col-"] > .thumbnail .caption {
    margin-top: auto;
}
.free-tools-subheading {
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
    color: #15803d; text-transform: uppercase; letter-spacing: .05em;
    margin: 0 0 12px; padding-left: 2px;
}
html.dark-mode .free-tools-subheading { color: #4ade80; }

/* ── How It Works section ─────────────────────────────────── */
.how-it-works {
    padding: 36px 28px 32px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f9ff 100%);
    border: 1px solid #e0eaff;
    border-radius: 16px;
    margin: 48px 0 32px;
    text-align: center;
}
.how-it-works-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--heading);
    margin: 0 0 6px;
    letter-spacing: -.3px;
}
.how-it-works-title span {
    position: relative;
    display: inline-block;
}
.how-it-works-title span::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.how-it-works-sub {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 12px 0 32px;
}
.hiw-steps { margin-top: 0; }
.hiw-step { text-align: center; padding: 0 20px; margin-bottom: 20px; }
.hiw-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #fff;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 800;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(29,78,216,.3);
}
.hiw-step-icon {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 10px;
    opacity: .8;
}
.hiw-step h4 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 8px;
}
.hiw-step p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}
html.dark-mode .how-it-works { background: linear-gradient(135deg, #0f1829 0%, #0a1628 100%); border-color: rgba(255,255,255,.08); }
html.dark-mode .how-it-works-sub,
html.dark-mode .hiw-step p { color: #94a3b8; }

/* Homepage FAQ */
.home-faq-section {
    padding: 36px 28px 32px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f9ff 100%);
    border: 1px solid #e0eaff;
    border-radius: 16px;
    margin: 32px 0;
    text-align: center;
}
.home-faq-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px; font-weight: 800; color: var(--heading);
    margin: 0 0 28px; letter-spacing: -.3px;
}
.home-faq-title span { position: relative; display: inline-block; }
.home-faq-title span::after {
    content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}
.home-faq-list { max-width: 760px; margin: 0 auto; text-align: left; }
.home-faq-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    margin-bottom: 10px; overflow: hidden;
}
.home-faq-q {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 15px 18px; background: none; border: none;
    text-align: left; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 700;
    color: var(--heading);
}
.home-faq-q i { color: var(--primary); transition: transform .2s ease; flex-shrink: 0; margin-left: 12px; }
.home-faq-item.open .home-faq-q i { transform: rotate(180deg); }
.home-faq-a {
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.home-faq-item.open .home-faq-a { max-height: 300px; }
.home-faq-a p {
    margin: 0; padding: 0 18px 16px;
    font-family: 'Inter', sans-serif; font-size: 13.5px; color: #64748b; line-height: 1.65;
}
html.dark-mode .home-faq-section { background: linear-gradient(135deg, #0f1829 0%, #0a1628 100%); border-color: rgba(255,255,255,.08); }
html.dark-mode .home-faq-item { background: #131d30; border-color: rgba(255,255,255,.08); }
html.dark-mode .home-faq-q { color: #e2e8f0; }
html.dark-mode .home-faq-a p { color: #94a3b8; }

/* ── Footer trust stats ────────────────────────────────── */
.footer-trust-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}
.footer-trust-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
}
.footer-trust-stat strong {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
}
.footer-trust-stat span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #475569;
}

/* ── Footer copyright bar ──────────────────────────────── */
.footerCopyright {
    border-top: 1px solid rgba(255,255,255,.05);
}
.footerCopyright-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
}
.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #334155;
}
@media (max-width: 767px) {
    .footerCopyright-bar { flex-direction: column; text-align: center; }
}

/* ── Category count badge ──────────────────────────────── */
.category-count-badge {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2px 9px;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
}
/* The admin-configurable "secondary theme color" feature (addtional.php) injects an
   inline !important rule for every span inside .category_heading, which otherwise
   overrides this badge with whatever bright accent color is configured — failing
   WCAG AA contrast against the badge's light background. Beat it with a more specific,
   !important color that's verified to pass 4.5:1 in both light and dark mode. */
.category_heading .category-count-badge { color: #5b6b82 !important; }
html.dark-mode .category-count-badge {
    background: #1e2e50;
    border-color: rgba(255,255,255,.1);
}
html.dark-mode .category_heading .category-count-badge { color: #94a3b8 !important; }

/* ── Password strength meter ────────────────────────────── */
.pw-strength-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.pw-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .3s ease, background .3s ease;
}
.pw-strength-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    min-width: 46px;
    transition: color .3s ease;
    text-align: right;
}
html.dark-mode .pw-strength-bar { background: rgba(255,255,255,.1); }

/* ── Tool share pill ───────────────────────────────────── */
.tool-share-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 12px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
}
.tool-share-pill:hover { color: var(--primary); background: #eff6ff; border-color: #bfdbfe; }
.tool-share-pill .fa { color: var(--primary); font-size: 11px; }
.tool-share-pill--ok { color: #16a34a !important; background: #f0fdf4 !important; border-color: #bbf7d0 !important; }
.tool-share-pill--ok .fa { color: #16a34a !important; }
html.dark-mode .tool-share-pill { background: #1e2e50; border-color: rgba(255,255,255,.1); color: #64748b; }
html.dark-mode .tool-share-pill:hover { background: #1e3a6e; border-color: #3b82f6; color: #60a5fa; }

/* ── Textarea word/char counter ───────────────────────── */
.textarea-counter {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
    margin-top: 4px;
    letter-spacing: .01em;
}
html.dark-mode .textarea-counter { color: #475569; }

/* ── Mobile navbar collapse polish ────────────────────── */
@media (max-width: 767px) {
    .navbar-default .navbar-collapse {
        border-top: 1px solid rgba(0,0,0,.08) !important;
        box-shadow: 0 10px 24px rgba(0,0,0,.1) !important;
        padding: 4px 0 8px !important;
    }
    .navbar-default .navbar-nav { margin: 0 !important; }
    .navbar-default .navbar-nav > li > a {
        border-bottom: 1px solid rgba(0,0,0,.05) !important;
        font-size: 14px !important;
    }
    .navbar-default .navbar-nav > li:last-child > a { border-bottom: none !important; }
    .navbar-default .navbar-nav > li > a.signup {
        margin: 8px 15px 4px !important;
        border-radius: 10px !important;
        text-align: center !important;
        border-bottom: none !important;
        display: block !important;
    }
    .navbar-default .navbar-nav > li > a.signin {
        margin: 2px 15px 0 !important;
        border-bottom: none !important;
        background: none !important;
        color: var(--primary) !important;
    }
    .nav-dark-toggle { border-bottom: 1px solid rgba(0,0,0,.05) !important; }
    .btn-dark-toggle {
        width: calc(100% - 30px) !important;
        margin: 4px 15px !important;
        border-radius: 8px !important;
        justify-content: center !important;
        font-size: 13px !important;
    }
}
html.dark-mode .navbar-default .navbar-collapse { border-top-color: rgba(255,255,255,.06) !important; box-shadow: 0 10px 24px rgba(0,0,0,.3) !important; }
html.dark-mode .navbar-default .navbar-nav > li > a { border-bottom-color: rgba(255,255,255,.05) !important; }
html.dark-mode .nav-dark-toggle { border-bottom-color: rgba(255,255,255,.05) !important; }

/* ── Tool result "Analysis Complete" header ───────────── */
.tool-results-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 9px 14px;
    margin-bottom: 14px;
}
.tool-results-header .fa { font-size: 14px; }
html.dark-mode .tool-results-header { background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.2); color: #4ade80; }

/* ── Post-result signup nudge (guests on free tools) ──── */
.tool-result-nudge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.trn-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; flex-shrink: 0;
}
.trn-text { flex: 1; min-width: 160px; }
.trn-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.trn-text span { font-size: 12.5px; color: var(--text-light); }
.trn-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important; text-decoration: none !important;
    font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif;
    padding: 9px 18px; border-radius: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(29,78,216,.3);
}
.trn-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(29,78,216,.4); }
html.dark-mode .tool-result-nudge { background: rgba(29,78,216,.06); border-color: rgba(29,78,216,.15); }

/* ── Mobile table scroll for tool results ─────────────── */
@media (max-width: 767px) {
    .main-index .table-bordered,
    .main-index .table-hover { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Cookie / GDPR consent bar ────────────────────────── */
.cookie-bar {
    position: fixed;
    bottom: -120px;
    left: 0; right: 0;
    z-index: 9995;
    padding: 12px 20px;
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,.35);
    transition: bottom .35s cubic-bezier(.22,.68,0,.99);
}
.cookie-bar--visible { bottom: 0; }
.cookie-bar--hide { bottom: -120px; }
.cookie-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-bar-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
}
.cookie-bar-text .fa { color: #60a5fa; font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.cookie-bar-text a { color: #60a5fa; text-decoration: underline; }
.cookie-bar-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn-decline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.65);
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 500;
    padding: 7px 16px; border-radius: 7px; cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.cookie-btn-decline:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.cookie-btn-accept {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600;
    padding: 7px 18px; border-radius: 7px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: box-shadow .15s ease, transform .1s ease;
    box-shadow: 0 2px 8px rgba(29,78,216,.4);
}
.cookie-btn-accept:hover { box-shadow: 0 4px 16px rgba(29,78,216,.5); transform: translateY(-1px); }
@media (max-width: 600px) {
    .cookie-bar-inner { flex-direction: column; align-items: flex-start; }
    .cookie-bar-btns { width: 100%; }
    .cookie-btn-decline, .cookie-btn-accept { flex: 1; justify-content: center; }
}

/* ── Page-navigation loading bar ──────────────────────── */
#plb {
    position: fixed;
    top: 0; left: -100%;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, #2563eb 30%, #06b6d4 70%, transparent 100%);
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
}
#plb.plb-run {
    opacity: 1;
    animation: plb-slide 1s ease-in-out infinite;
}
@keyframes plb-slide {
    0%   { left: -100%; }
    100% { left:  100%; }
}

/* ── Popular Tools sidebar: real tool icons ───────────── */
.sidebar-tools-list li .sidebar-tool-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 12px;
    background: #f8fafc;
}
html.dark-mode .sidebar-tools-list li .sidebar-tool-icon { background: #1e2e50; }

/* ── URL input history dropdown ───────────────────────── */
.tool-url-wrap { position: relative; }
.url-hist-drop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    z-index: 1050;
    list-style: none;
    margin: 0;
    padding: 4px 0 6px;
    max-height: 210px;
    overflow-y: auto;
    display: none;
}
.url-hist-drop li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background .12s;
    white-space: nowrap;
    overflow: hidden;
}
.url-hist-drop li:hover { background: #f1f5f9; }
.url-hist-drop li .fa { color: #94a3b8; font-size: 12px; flex-shrink: 0; }
.url-hist-drop li span { overflow: hidden; text-overflow: ellipsis; }
html.dark-mode .url-hist-drop { background: #1e293b; border-color: rgba(255,255,255,.08); }
html.dark-mode .url-hist-drop li:hover { background: rgba(255,255,255,.05); }

/* ── Static page content typography ───────────────────── */
.csContent {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
}
.csContent h1, .csContent h2, .csContent h3, .csContent h4, .csContent h5 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--heading, #0f172a);
    line-height: 1.3;
    font-family: 'Inter', Arial, sans-serif;
}
.csContent h1 { font-size: 28px; }
.csContent h2 {
    font-size: 21px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}
.csContent h3 { font-size: 17px; }
.csContent h4 { font-size: 15px; }
.csContent p { margin-bottom: 16px; }
.csContent a { color: #2563eb; text-decoration: none; font-weight: 500; }
.csContent a:hover { text-decoration: underline; }
.csContent ul, .csContent ol { padding-left: 22px; margin-bottom: 16px; }
.csContent li { margin-bottom: 6px; }
.csContent strong { font-weight: 700; color: var(--heading, #0f172a); }
.csContent blockquote {
    border-left: 4px solid #2563eb;
    margin: 20px 0;
    padding: 14px 20px;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}
.csContent table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}
.csContent table th, .csContent table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.csContent table th { background: #f1f5f9; font-weight: 600; }
.csContent code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 13px;
    font-family: 'Fira Code', 'Consolas', monospace;
    color: #0f172a;
}
.csContent pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 16px 0;
}
html.dark-mode .csContent { color: #cbd5e1; }
html.dark-mode .csContent h1, html.dark-mode .csContent h2,
html.dark-mode .csContent h3, html.dark-mode .csContent h4 { color: #e2e8f0; }
html.dark-mode .csContent h2 { border-bottom-color: rgba(255,255,255,.08); }
html.dark-mode .csContent strong { color: #e2e8f0; }
html.dark-mode .csContent blockquote { background: rgba(255,255,255,.04); color: #94a3b8; }
html.dark-mode .csContent table th { background: rgba(255,255,255,.05); }
html.dark-mode .csContent code { background: rgba(255,255,255,.07); color: #bae6fd; }
html.dark-mode .csContent a { color: #60a5fa; }

/* Page content header */
.page-content-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 28px;
}
.page-content-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--heading, #0f172a);
    margin: 0;
    font-family: 'Inter', sans-serif;
    flex: 1;
}
.page-content-date {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}
html.dark-mode .page-content-title { color: #e2e8f0; }
html.dark-mode .page-content-header { border-bottom-color: rgba(255,255,255,.08); }

/* ── Print styles ──────────────────────────────────────── */
@media print {
    .navbar-default, .footer, .b-widgets, #rightCol,
    .cookie-bar, #scrollTop, #scrollProgress, #plb,
    .tool-feedback, .tool-result-nudge, .xd_top_box,
    .prefooter-strip, .how-it-works, .modal, .modal-backdrop,
    .tool-export-btn, .tool-share-pill,
    .tool-meta-strip, .sidebar-cta-widget { display: none !important; }

    body { background: #fff !important; color: #000 !important; font-size: 11pt; }
    .main-container, .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
    .col-md-8, .col-md-12 { width: 100% !important; float: none !important; }
    .table { border-collapse: collapse !important; width: 100% !important; font-size: 10pt; }
    .table th, .table td { border: 1px solid #bbb !important; padding: 6px 10px !important; color: #000 !important; background: #fff !important; }
    .table thead th { background: #f0f0f0 !important; font-weight: 700; }
    .tool-results-header { background: #1e3a5f !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a { color: #000 !important; text-decoration: none; }
    h1, h2, h3 { page-break-after: avoid; }
    tr { page-break-inside: avoid; }
    .thumbnail { break-inside: avoid; }
}

/* ── "About this tool" visual separator ─────────────────
   Tool output pages have a <br/> right before this heading (it now
   follows the tool widget rather than the title), so the original
   36px margin + 24px padding stacked with that <br/> for 70px+ of
   dead space. Trimmed to sit right under the widget's own spacing. */
h2.about_tool {
    margin-top: 8px !important;
    padding-top: 16px !important;
    border-top: 2px solid var(--border) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text) !important;
}
html.dark-mode h2.about_tool { border-top-color: rgba(255,255,255,.08) !important; color: #e2e8f0 !important; }

/* ── Logged-in welcome bar ───────────────────────────────── */
.user-welcome-bar {
    background: linear-gradient(135deg,#eff6ff 0%,#f0fdfa 100%);
    border: 1.5px solid #bfdbfe; border-radius: 16px;
    margin-bottom: 28px; overflow: hidden;
}
.uwb-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; gap: 12px; flex-wrap: wrap;
}
.uwb-left { display: flex; align-items: center; gap: 14px; }
.uwb-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(29,78,216,.25);
}
.uwb-avatar-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; }
.uwb-name { font-size: 15px; font-weight: 700; color: var(--text,#1e293b); display: block; line-height: 1.3; margin-bottom: 2px; }
.uwb-sub  { font-size: 12px; color: #64748b; display: block; }
.uwb-right { display: flex; align-items: center; gap: 8px; }
.uwb-search-wrap { position: relative; }
.uwb-search-wrap .nav-search-input { width: 170px; }
.uwb-search-wrap .nav-search-input:focus { width: 200px; }
.uwb-search-wrap .nav-search-drop { right: 0; left: auto; }
.uwb-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1.5px solid #bfdbfe;
    color: #2563eb; border-radius: 9px; padding: 8px 16px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background .15s, color .15s, border-color .15s; white-space: nowrap;
}
.uwb-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; text-decoration: none; }
.uwb-recent-row {
    display: none; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 20px 14px;
    border-top: 1px solid rgba(191,219,254,.7);
}
.uwb-recent-row.has-items { display: flex; }
.uwb-recent-label { font-size: 11.5px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; flex-shrink: 0; }
.uwb-recent { display: flex; gap: 6px; flex-wrap: wrap; }
.uwb-recent-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 20px;
    padding: 5px 12px; font-size: 12px; color: #475569; text-decoration: none;
    transition: border-color .15s, color .15s, box-shadow .15s;
    white-space: nowrap; max-width: 210px; overflow: hidden; text-overflow: ellipsis;
}
.uwb-recent-pill:hover { border-color: #2563eb; color: #2563eb; box-shadow: 0 2px 8px rgba(29,78,216,.12); text-decoration: none; }
.uwb-recent-pill i { font-size: 10px; color: #94a3b8; flex-shrink: 0; }
.uwb-recent-when { color: #94a3b8; font-size: 10.5px; font-weight: 600; flex-shrink: 0; margin-left: 2px; }
/* dark mode */
html.dark-mode .user-welcome-bar { background: linear-gradient(135deg,rgba(29,78,216,.09),rgba(6,182,212,.06)); border-color: rgba(29,78,216,.25); }
html.dark-mode .uwb-name { color: #e2e8f0; }
html.dark-mode .uwb-sub  { color: #64748b; }
html.dark-mode .uwb-recent-row { border-top-color: rgba(255,255,255,.07); }
html.dark-mode .uwb-btn { background: rgba(255,255,255,.06); border-color: rgba(29,78,216,.3); }
html.dark-mode .uwb-btn:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
html.dark-mode .uwb-recent-pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #94a3b8; }
html.dark-mode .uwb-recent-pill:hover { border-color: #60a5fa; color: #60a5fa; }
html.dark-mode .uwb-recent-when { color: #64748b; }
html.dark-mode .uwb-search-wrap .nav-search-input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); color: #e2e8f0; }
html.dark-mode .uwb-search-wrap .nav-search-input::placeholder { color: #64748b; }
@media(max-width:600px){
    .uwb-top { padding: 14px 16px; }
    .uwb-name { font-size: 14px; }
    .uwb-right { width: 100%; flex-direction: column; align-items: stretch; }
    .uwb-btn { width: 100%; justify-content: center; }
    .uwb-search-wrap .nav-search-input,
    .uwb-search-wrap .nav-search-input:focus { width: 100%; box-sizing: border-box; }
    .uwb-search-wrap .nav-search-drop { left: 0; right: 0; }
    .uwb-recent-row { padding: 8px 0 12px 16px; flex-wrap: nowrap; }
    .uwb-recent-label { padding-right: 4px; }
    .uwb-recent {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
        padding-right: 16px;
    }
    .uwb-recent::-webkit-scrollbar { display: none; }
    .uwb-recent-pill { flex-shrink: 0; }
}
/* rank badge */
.uwb-rank-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: color-mix(in srgb, var(--rank-color) 12%, transparent);
    color: var(--rank-color); border: 1.5px solid color-mix(in srgb, var(--rank-color) 30%, transparent);
    border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 700;
    vertical-align: middle; margin-left: 6px; letter-spacing: .02em;
}
.uwb-rank-badge i { font-size: 10px; }
/* fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 10%, blue)) {
    .uwb-rank-badge { background: rgba(100,116,139,.12); border-color: rgba(100,116,139,.3); }
}
html.dark-mode .uwb-rank-badge { background: rgba(255,255,255,.06); }

.uwb-streak-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(249,115,22,.12); color: #ea580c;
    border: 1.5px solid rgba(249,115,22,.3);
    border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 700;
    vertical-align: middle; margin-left: 6px; letter-spacing: .02em;
}
.uwb-streak-badge i { font-size: 10px; color: #f97316; }
html.dark-mode .uwb-streak-badge { background: rgba(249,115,22,.16); color: #fb923c; }

/* ── Tool card heart / favourite button ──────────────────── */
.thumbnail { position: relative; }
.tool-fav-btn {
    position: absolute; top: 5px; right: 5px; z-index: 3;
    width: 26px; height: 26px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
    color: #cbd5e1; font-size: 12px; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s, background .15s, transform .12s; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.tool-fav-btn:hover { color: #ef4444; background: #fff; transform: scale(1.15); }
.tool-fav-btn.is-fav { color: #ef4444; background: #fff3f3; }
.tool-fav-btn.is-fav:hover { color: #b91c1c; }
html.dark-mode .tool-fav-btn { background: rgba(30,41,59,.85); color: #475569; }
html.dark-mode .tool-fav-btn.is-fav { background: rgba(239,68,68,.15); color: #ef4444; }

/* ── Category star / favourite button ───────────────────── */
.category_heading { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-fav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #e2e8f0;
    background: #fff; color: #cbd5e1; font-size: 13px; cursor: pointer; padding: 0;
    transition: color .15s, border-color .15s, background .15s, transform .12s;
    flex-shrink: 0; vertical-align: middle;
}
.cat-fav-btn:hover { color: #f59e0b; border-color: #fde68a; background: #fffbeb; transform: scale(1.15); }
.cat-fav-btn.is-fav { color: #f59e0b; border-color: #fde68a; background: #fffbeb; }
.cat-fav-btn.is-fav:hover { color: #b45309; }
html.dark-mode .cat-fav-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #475569; }
html.dark-mode .cat-fav-btn.is-fav { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); color: #f59e0b; }

/* ── My Favourites section ───────────────────────────────── */
.fav-section {
    background: #fff; border: 1.5px solid #fecaca; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 24px;
}
.fav-section-header {
    display: flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 700; color: #ef4444; margin-bottom: 14px;
}
.fav-section-header strong { color: #1e293b; }
.fav-section-count {
    margin-left: auto; font-size: 11px; font-weight: 700; background: #fef2f2;
    color: #ef4444; border: 1px solid #fecaca; border-radius: 12px; padding: 1px 8px;
}
.fav-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.fav-card {
    position: relative; width: 80px; text-align: center;
}
.fav-card-rm {
    top: -3px; right: -3px; width: 22px; height: 22px; font-size: 10px;
}
.fav-card-link {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    text-decoration: none; color: #334155;
    padding: 8px 4px 6px; border-radius: 10px; border: 1.5px solid #f1f5f9;
    background: #f8fafc; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.fav-card-link:hover { border-color: #bfdbfe; background: #eff6ff; text-decoration: none; color: #2563eb; box-shadow: 0 6px 16px rgba(29,78,216,.14); transform: translateY(-2px); }
.fav-card-img { width: 36px; height: 36px; object-fit: contain; }
.fav-card-name { font-size: 10px; font-weight: 600; line-height: 1.3; word-break: break-word; }
html.dark-mode .fav-section { background: rgba(239,68,68,.04); border-color: rgba(239,68,68,.2); }
html.dark-mode .fav-section-header strong { color: #e2e8f0; }
html.dark-mode .fav-card-link { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: #94a3b8; }
html.dark-mode .fav-card-link:hover { border-color: rgba(29,78,216,.4); background: rgba(29,78,216,.1); color: #60a5fa; }

/* ── My Favourite Categories section ────────────────────── */
.fav-cats-section {
    background: #fff; border: 1.5px solid #fde68a; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 24px;
}
.fav-cats-header {
    display: flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 700; color: #f59e0b; margin-bottom: 14px;
}
.fav-cats-header strong { color: #1e293b; }
.fav-cat-block { margin-bottom: 16px; }
.fav-cat-block:last-child { margin-bottom: 0; }
.fav-cat-block-hdr {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.fav-cat-block-hdr strong { font-size: 13px; color: #334155; }
.fav-cat-jump {
    font-size: 11.5px; color: #2563eb; text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.fav-cat-jump:hover { text-decoration: underline; }
.fav-cat-tools {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.fav-cat-tool-link {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 72px; text-decoration: none; color: #334155;
    padding: 7px 4px 5px; border-radius: 10px; border: 1.5px solid #f1f5f9;
    background: #f8fafc; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
    text-align: center;
}
.fav-cat-tool-link:hover { border-color: #bfdbfe; background: #eff6ff; color: #2563eb; text-decoration: none; box-shadow: 0 6px 16px rgba(29,78,216,.14); transform: translateY(-2px); }
.fav-cat-tool-img { width: 32px; height: 32px; object-fit: contain; }
.fav-cat-tool-name { font-size: 9.5px; font-weight: 600; line-height: 1.3; word-break: break-word; }
html.dark-mode .fav-cats-section { background: rgba(245,158,11,.04); border-color: rgba(245,158,11,.2); }
html.dark-mode .fav-cats-header strong { color: #e2e8f0; }
html.dark-mode .fav-cat-block-hdr strong { color: #cbd5e1; }
html.dark-mode .fav-cat-tool-link { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: #94a3b8; }
html.dark-mode .fav-cat-tool-link:hover { border-color: rgba(29,78,216,.4); background: rgba(29,78,216,.1); color: #60a5fa; }
@media(max-width:600px){
    .fav-cat-tool-link { width: 62px; }
    .fav-cat-tool-img { width: 28px; height: 28px; }
}

/* ── Leaderboard ─────────────────────────────────────────── */
.uwb-leaderboard {
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px;
    padding: 18px 20px; margin-bottom: 24px;
}
.uwb-lb-header {
    display: flex; align-items: center; margin-bottom: 14px; gap: 0;
    font-size: 14px; font-weight: 700; color: #1e293b;
}
.uwb-lb-sub { font-size: 12px; color: #94a3b8; font-weight: 400; margin-left: auto; }
.uwb-lb-list { display: flex; flex-direction: column; gap: 6px; }
.uwb-lb-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 9px;
    background: #f8fafc; transition: background .15s;
}
.uwb-lb-row:hover { background: #eff6ff; }
.uwb-lb-row.uwb-lb-me { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.uwb-lb-pos { font-size: 16px; width: 28px; text-align: center; flex-shrink: 0; }
.uwb-lb-user { flex: 1; font-size: 13px; font-weight: 600; color: #334155; }
.uwb-lb-rank { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.uwb-lb-count { font-size: 12px; color: #94a3b8; white-space: nowrap; margin-left: 8px; }
.uwb-lb-you { font-size: 10px; background: #2563eb; color: #fff; border-radius: 6px; padding: 1px 5px; margin-left: 5px; font-weight: 700; letter-spacing: .03em; }
html.dark-mode .uwb-leaderboard { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
html.dark-mode .uwb-lb-header { color: #e2e8f0; }
html.dark-mode .uwb-lb-row { background: rgba(255,255,255,.04); }
html.dark-mode .uwb-lb-row:hover, html.dark-mode .uwb-lb-row.uwb-lb-me { background: rgba(29,78,216,.1); border-color: rgba(29,78,216,.3); }
html.dark-mode .uwb-lb-user { color: #cbd5e1; }
html.dark-mode .uwb-lb-count { color: #475569; }
@media(max-width:600px){
    .uwb-leaderboard { padding: 14px 14px; }
    .uwb-lb-sub { display: none; }
}

/* ── Profile slide-out panel ─────────────────────────────── */
.profile-panel-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1050;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.profile-panel-overlay.is-open { opacity: 1; pointer-events: auto; }
.profile-panel {
    position: fixed; top: 0; right: 0; height: 100dvh; width: 270px;
    background: #fff; z-index: 1051; box-shadow: -4px 0 32px rgba(0,0,0,.13);
    transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.profile-panel.is-open { transform: translateX(0); }
body.pp-body-lock { overflow: hidden; }

.pp-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 14px 12px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.pp-avatar {
    position: relative;
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff; font-size: 17px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(29,78,216,.22);
}
.pp-avatar-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; }
.pp-online-dot {
    position: absolute; right: -1px; bottom: -1px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(34,197,94,.6);
    animation: ppOnlinePulse 2s ease-out infinite;
}
@keyframes ppOnlinePulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.pp-identity { flex: 1; min-width: 0; }
.pp-name { font-size: 13px; font-weight: 700; color: #1e293b; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-username { font-size: 11px; color: #94a3b8; display: block; }
.pp-online-status {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 600; color: #16a34a; margin-top: 2px;
}
.pp-online-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.pp-close {
    background: none; border: none; font-size: 14px; color: #94a3b8;
    cursor: pointer; padding: 4px 6px; border-radius: 6px;
    transition: background .15s, color .15s; flex-shrink: 0;
}
.pp-close:hover { background: #f1f5f9; color: #334155; }

.pp-rank-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 6px 8px;
    padding: 12px 14px 2px;
}
.pp-rank-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: color-mix(in srgb, var(--rank-color) 12%, transparent);
    color: var(--rank-color);
    border: 1.5px solid color-mix(in srgb, var(--rank-color) 30%, transparent);
    border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 700;
}
.pp-streak-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(249,115,22,.12); color: #ea580c;
    border: 1.5px solid rgba(249,115,22,.3);
    border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 700;
}
.pp-streak-badge i { color: #f97316; }
html.dark-mode .pp-streak-badge { background: rgba(249,115,22,.16); color: #fb923c; }

.pp-stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 14px 2px;
}
.pp-stat {
    background: #f8fafc; border: 1.5px solid #f1f5f9; border-radius: 10px;
    padding: 9px 10px; display: flex; flex-direction: column; gap: 2px;
}
.pp-stat-wide { grid-column: 1 / -1; }
.pp-stat-val { font-size: 17px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.pp-stat-val-text {
    font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-stat-label { font-size: 10.5px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
html.dark-mode .pp-stat { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
html.dark-mode .pp-stat-val { color: #e2e8f0; }

.pp-progress-wrap { padding: 10px 14px 2px; }
.pp-progress-labels { display: flex; justify-content: space-between; font-size: 10px; color: #94a3b8; margin-bottom: 5px; }
.pp-progress-bar { height: 6px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.pp-progress-fill { height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.pp-progress-hint { font-size: 10.5px; color: #94a3b8; margin-top: 5px; }
.pp-progress-hint-top { padding: 10px 14px 2px; font-size: 13px; text-align: center; }

.pp-divider { height: 1px; background: #f1f5f9; margin: 10px 0 2px; }

.pp-info-rows { padding: 6px 14px 2px; display: flex; flex-direction: column; gap: 8px; }
.pp-info-row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #475569; }
.pp-info-row i { font-size: 12px; color: #94a3b8; width: 14px; text-align: center; flex-shrink: 0; }

.pp-actions {
    padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 7px;
    margin-top: 12px; border-top: 1px solid #f1f5f9;
}
.pp-action-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.pp-action-primary { background: #eff6ff; color: #2563eb; border: 1.5px solid #bfdbfe; }
.pp-action-primary:hover { background: #2563eb; color: #fff; border-color: #2563eb; text-decoration: none; }
.pp-action-danger { background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }
.pp-action-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; text-decoration: none; }

/* dark mode */
html.dark-mode .profile-panel { background: #0f172a; border-left: 1px solid rgba(255,255,255,.08); }
html.dark-mode .pp-header { border-bottom-color: rgba(255,255,255,.06); }
html.dark-mode .pp-name { color: #e2e8f0; }
html.dark-mode .pp-close:hover { background: rgba(255,255,255,.07); color: #e2e8f0; }
html.dark-mode .pp-progress-bar { background: rgba(255,255,255,.07); }
html.dark-mode .pp-divider { background: rgba(255,255,255,.06); }
html.dark-mode .pp-info-row { color: #94a3b8; }
html.dark-mode .pp-actions { border-top-color: rgba(255,255,255,.06); }
html.dark-mode .pp-action-primary { background: rgba(29,78,216,.14); border-color: rgba(29,78,216,.35); }
html.dark-mode .pp-action-primary:hover { background: #2563eb; border-color: #2563eb; }
html.dark-mode .pp-online-dot { border-color: #0f172a; }
html.dark-mode .pp-action-danger { background: rgba(220,38,38,.1); border-color: rgba(220,38,38,.3); }
html.dark-mode .pp-action-danger:hover { background: #dc2626; border-color: #dc2626; }
@media(max-width:540px){ .profile-panel { width: 88%; } }

/* ── About page sections ─────────────────────────────────── */
.about-hero {
    background: linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%);
    border-radius: 16px; padding: 44px 40px; color: #fff;
    margin-bottom: 36px; text-align: center;
}
.about-hero-badge {
    display: inline-block; background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9); border-radius: 20px;
    padding: 5px 16px; font-size: 12px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.about-hero h2 {
    font-size: 30px; font-weight: 800; margin: 0 0 14px; color: #fff;
    font-family: 'Inter', sans-serif; line-height: 1.2;
}
.about-hero p {
    font-size: 16px; color: rgba(255,255,255,.82);
    margin: 0; line-height: 1.7; max-width: 520px; margin: 0 auto;
}
.about-stats-row {
    display: flex; gap: 0; margin: 36px 0;
    border: 1.5px solid var(--border,#e2e8f0);
    border-radius: 14px; overflow: hidden;
}
.about-stat {
    flex: 1; text-align: center; padding: 24px 16px;
    border-right: 1.5px solid var(--border,#e2e8f0);
}
.about-stat:last-child { border-right: none; }
.about-stat-num {
    font-size: 30px; font-weight: 800; color: #2563eb;
    font-family: 'Inter', sans-serif; display: block; line-height: 1;
}
.about-stat-label { font-size: 12.5px; color: #64748b; margin-top: 5px; display: block; }
.about-features-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin: 32px 0;
}
.about-feat {
    border: 1.5px solid var(--border,#e2e8f0);
    border-radius: 12px; padding: 20px;
    transition: border-color .2s, box-shadow .2s;
}
.about-feat:hover { border-color: #2563eb; box-shadow: 0 4px 20px rgba(29,78,216,.1); }
.about-feat-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #eff6ff; color: #2563eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; margin-bottom: 12px;
}
.about-feat h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; color: var(--text,#0f172a); }
.about-feat p  { font-size: 13px; color: #64748b; margin: 0; line-height: 1.5; }
.about-cta-strip {
    background: #f8fafc; border: 1.5px solid var(--border,#e2e8f0);
    border-radius: 14px; padding: 28px 32px;
    text-align: center; margin-top: 36px;
}
.about-cta-strip h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.about-cta-strip p  { font-size: 14px; color: #64748b; margin: 0 0 20px; }
.about-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff; border-radius: 10px; padding: 12px 28px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.about-cta-btn:hover { box-shadow: 0 8px 24px rgba(29,78,216,.35); transform: translateY(-2px); color: #fff; text-decoration: none; }
html.dark-mode .about-stat-num { color: #60a5fa; }
html.dark-mode .about-stat-label { color: #94a3b8; }
html.dark-mode .about-stat  { border-color: rgba(255,255,255,.08); }
html.dark-mode .about-stats-row { border-color: rgba(255,255,255,.08); }
html.dark-mode .about-feat  { border-color: rgba(255,255,255,.08); }
html.dark-mode .about-feat-icon { background: rgba(29,78,216,.2); }
html.dark-mode .about-feat h4 { color: #e2e8f0; }
html.dark-mode .about-cta-strip { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
@media(max-width:600px){
    .about-features-grid { grid-template-columns: 1fr; }
    .about-hero { padding: 30px 20px; }
    .about-hero h2 { font-size: 22px; }
    .about-stats-row { flex-wrap: wrap; }
    .about-stat { flex: 1 1 50%; border-bottom: 1.5px solid var(--border,#e2e8f0); }
    .about-cta-strip { padding: 22px 18px; }
}

/* ── Browse category bar ─────────────────────────────────── */
.browse-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 14px);
    padding: 10px 18px;
    margin-top: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    overflow: hidden;
}
.browse-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .7px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.browse-bar-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding-bottom: 2px;
}
.browse-bar-pills::-webkit-scrollbar { display: none; }
.browse-pill {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 13px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.browse-pill:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    text-decoration: none;
    transform: translateY(-1px);
}
.browse-pill.is-fav {
    color: #b45309;
    background: #fef3c7;
    border-color: #fde68a;
}
.browse-pill.is-fav:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}
html.dark-mode .browse-bar {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.09);
}
html.dark-mode .browse-pill {
    color: #94a3b8;
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.1);
}
html.dark-mode .browse-pill:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.browse-pill.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(29,78,216,.28);
    transform: translateY(-1px);
}
html.dark-mode .browse-pill.is-active { background: #1d4ed8; border-color: #3b82f6; }
.browse-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: rgba(29,78,216,.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    margin-left: 5px;
    flex-shrink: 0;
}
.browse-pill:hover .browse-pill-count,
.browse-pill.is-active .browse-pill-count { background: rgba(255,255,255,.25); color: #fff; }
html.dark-mode .browse-pill-count { background: rgba(96,165,250,.15); color: #60a5fa; }
@media(max-width:600px){
    .browse-bar { padding: 8px 12px; gap: 10px; }
}

/* ── Welcome bar nudge / milestone banner ─────────────────── */
.uwb-nudge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    background: rgba(29,78,216,.05);
    border-top: 1px solid rgba(29,78,216,.1);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}
.uwb-nudge-ico {
    font-size: 15px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.uwb-nudge-txt { flex: 1; }
.uwb-nudge-txt a { color: inherit; font-weight: 700; text-decoration: underline; }
.uwb-nudge-x {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.uwb-nudge-x:hover { color: #ef4444; background: rgba(239,68,68,.08); }
html.dark-mode .uwb-nudge {
    background: rgba(29,78,216,.08);
    border-top-color: rgba(29,78,216,.18);
    color: #cbd5e1;
}
html.dark-mode .uwb-nudge-x { color: #64748b; }
html.dark-mode .uwb-nudge-x:hover { color: #f87171; background: rgba(239,68,68,.12); }
@media(max-width:600px){
    .uwb-nudge { font-size: 12px; padding: 8px 12px; gap: 8px; }
}

/* ===== Shared utility styles for RankWise client-side tools (RW04-RW31) =====
   .rwt-tool is the outer frame around the whole tool (matches the soft blue
   "form card" look already used for bare vendor forms elsewhere on tool pages);
   .rwt-panel(s) inside it stay solid white, giving a layered container-in-
   container look instead of the panel(s) floating directly on the page bg. */
.rwt-tool {
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    /* bottom margin kept small — every tool page already has a manual <br/>
       right after this div closes, so a full margin here would double up */
    margin: 24px 0 4px;
    background: linear-gradient(160deg,#fafcff 0%,#f0f7ff 100%);
    border: 1.5px solid #dbeafe;
    border-radius: 18px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.rwt-tool::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}
html.dark-mode .rwt-tool { background: linear-gradient(160deg,rgba(29,78,216,.07) 0%,rgba(6,182,212,.05) 100%); border-color: rgba(29,78,216,.25); }
.rwt-panel { background:linear-gradient(150deg, #ffffff 0%, #f7faff 45%, #e9f1fd 100%); border:1.5px solid var(--border); border-radius:16px; padding:28px; }
.rwt-panel + .rwt-panel { margin-top:16px; }
.rwt-row { display:flex; gap:14px; flex-wrap:wrap; align-items:flex-end; }
.rwt-field { flex:1 1 160px; text-align:left; }
.rwt-field label { display:block; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-light); margin-bottom:6px; }
.rwt-field input, .rwt-field select, .rwt-field textarea { width:100%; border:1.5px solid var(--border); border-radius:10px; padding:11px 14px; font-size:15px; font-family:'Inter',sans-serif; background:#eef4ff; color:var(--text); box-sizing:border-box; }
.rwt-field input:focus, .rwt-field select:focus, .rwt-field textarea:focus { outline:none; border-color:var(--primary); background:#fff; }
.rwt-field textarea { resize:vertical; font-family:'SFMono-Regular',Consolas,Menlo,monospace; font-size:13.5px; line-height:1.6; }
.rwt-btn-row { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.rwt-btn { border:none; border-radius:10px; padding:13px 26px; font-weight:700; font-size:15px; cursor:pointer; transition:var(--transition); font-family:'Inter',sans-serif; display:inline-flex; align-items:center; gap:8px; }
.rwt-btn-primary { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; box-shadow:0 4px 14px rgba(29,78,216,.3); }
.rwt-btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(29,78,216,.4); color:#fff; }
.rwt-btn-green { background:linear-gradient(135deg,#16a34a,#15803d); color:#fff; box-shadow:0 4px 14px rgba(22,163,74,.3); }
.rwt-btn-green:hover { transform:translateY(-1px); color:#fff; }
.rwt-btn-ghost { background:#f1f5f9; color:var(--text); }
.rwt-btn-ghost:hover { background:#e2e8f0; color:var(--text); }
.rwt-btn:disabled { opacity:.4; cursor:not-allowed; transform:none !important; }
.rwt-result-box { margin-top:20px; background:linear-gradient(135deg,var(--hero-from) 0%,var(--hero-mid) 60%,var(--hero-to) 100%); border-radius:14px; padding:24px; text-align:center; }
.rwt-result-main { font-size:30px; font-weight:800; color:#fff; word-break:break-word; }
.rwt-result-sub { font-size:13px; color:rgba(255,255,255,.6); margin-top:6px; }
.rwt-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.rwt-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.rwt-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.rwt-tabs { display:flex !important; gap:6px; background:#fff !important; border:1.5px solid var(--border) !important; border-radius:14px !important; padding:6px !important; margin-bottom:20px !important; list-style:none; }
.rwt-tabs > li { flex:1; margin:0 !important; border:none !important; }
.rwt-tabs > li > a { display:flex !important; align-items:center; justify-content:center; gap:7px; padding:10px 14px !important; border:none !important; border-radius:10px !important; font-weight:700; font-size:13.5px; color:var(--text-light) !important; background:transparent !important; transition:var(--transition); cursor:pointer; }
.rwt-tabs > li > a:hover { color:var(--primary) !important; background:#f0f7ff !important; }
.rwt-tabs > li.active > a { background:linear-gradient(135deg,var(--primary),var(--primary-dark)) !important; color:#fff !important; box-shadow:0 4px 14px rgba(29,78,216,.3); }
.rwt-tab-pane { display:none; }
.rwt-tab-pane.active { display:block; animation:rwtFadeIn .25s ease; }
@keyframes rwtFadeIn { from{opacity:0;transform:translateY(4px);} to{opacity:1;transform:translateY(0);} }
.rwt-error { color:#dc2626; font-size:13px; margin-top:10px; }
.rwt-hint { color:var(--text-light); font-size:12.5px; margin-top:8px; }
.rwt-copy-btn { background:#f1f5f9; border:none; border-radius:8px; padding:8px 14px; font-size:13px; font-weight:700; color:var(--text); cursor:pointer; }
.rwt-copy-btn:hover { background:#e2e8f0; }
.rwt-copy-btn.copied { background:#dcfce7; color:#166534; }
.rwt-list { list-style:none; padding:0; margin:16px 0 0; max-height:260px; overflow-y:auto; text-align:left; }
.rwt-list-row { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border:1.5px solid var(--border); border-radius:10px; margin-bottom:8px; background:#eef4ff; font-size:14px; }

html.dark-mode .rwt-panel { background:linear-gradient(150deg, #16213a 0%, #131d30 55%, #101828 100%) !important; border-color:rgba(255,255,255,.07) !important; }
html.dark-mode .rwt-field input, html.dark-mode .rwt-field select, html.dark-mode .rwt-field textarea { background:#0f1a2e !important; border-color:rgba(255,255,255,.1) !important; color:#e2e8f0 !important; }
html.dark-mode .rwt-btn-ghost { background:#1a2640 !important; color:#94a3b8 !important; }
html.dark-mode .rwt-tabs { background:#131d30 !important; border-color:rgba(255,255,255,.07) !important; }
html.dark-mode .rwt-copy-btn { background:#1a2640 !important; color:#94a3b8 !important; }
html.dark-mode .rwt-list-row { background:#0f1a2e !important; border-color:rgba(255,255,255,.08) !important; }
@media(max-width:600px){
    .rwt-grid-3 { grid-template-columns:repeat(2,1fr); }
    .rwt-grid-4 { grid-template-columns:repeat(2,1fr); }
}

/* ── Site footer ────────────────────────────────────────────── */
.rw-footer { background:#0f172a; padding:48px 0 0; margin-top:40px; }
.rw-footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; padding-bottom:36px; }
.rw-footer-brand .rw-footer-logo { display:inline-flex; align-items:center; gap:8px; font-size:19px; font-weight:800; color:#fff; text-decoration:none; }
.rw-footer-brand .rw-footer-logo .fa { color:#38bdf8; }
.rw-footer-brand p { margin:14px 0 0; color:#94a3b8; font-size:14px; line-height:1.6; max-width:360px; }
.rw-footer-col h4 { color:#fff; font-size:14px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin:0 0 16px; }
.rw-footer-col a { display:block; color:#94a3b8; font-size:14px; text-decoration:none; margin-bottom:12px; transition:color .15s ease; }
.rw-footer-col a:hover { color:#38bdf8; }
.rw-footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding:20px 0; text-align:center; }
.rw-footer-bottom span { color:#64748b; font-size:13px; }
@media(max-width:768px){
    .rw-footer-grid { grid-template-columns:1fr; gap:28px; }
}

/* ── Catalog shell (homepage sidebar filters + toolbar) ─────────────── */
/* Functional layer only — cards/sections below keep the site's normal
   light styling untouched; no dark theme override here. */
.nv-catalog { margin: 0 0 40px; }
.nv-toolbar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.nv-toolbar-count { font-size: 15px; color: var(--text-light); white-space: nowrap; }
.nv-toolbar-count strong { color: var(--text); font-size: 18px; }
.nv-toolbar-search {
    flex: 1 1 320px; max-width: 520px;
    display: flex; align-items: center;
    background: #eef4ff; border: 1px solid var(--border); border-radius: 10px;
    padding: 0 14px;
}
.nv-toolbar-search i { color: var(--text-light); font-size: 13px; margin-right: 10px; }
.nv-toolbar-search input { background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14px; padding: 10px 0; width: 100%; }
.nv-toolbar-search input::placeholder { color: var(--text-light); }
.nv-toolbar-sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nv-toolbar-sort label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.nv-toolbar-sort select { background: #eef4ff; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.nv-layout { display: flex; gap: 26px; align-items: flex-start; }
.nv-sidebar {
    flex: 0 0 240px; width: 240px;
    background: linear-gradient(150deg, #ffffff 0%, #f7faff 45%, #e9f1fd 100%);
    border: 1.5px solid var(--border); border-radius: 12px;
    padding: 18px;
    position: sticky; top: 90px;
    order: 2;
    margin-left: 60px;
}
.nv-filter-group { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.nv-filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.nv-filter-group h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); font-weight: 700; margin: 0 0 12px; }
.nv-toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 400; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.nv-toggle-row:last-child { margin-bottom: 0; }
.nv-toggle { position: relative; width: 34px; height: 19px; flex-shrink: 0; }
.nv-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.nv-toggle-track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background-color .15s ease; }
.nv-toggle-track::before { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; background: #fff; border-radius: 50%; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.nv-toggle input:checked + .nv-toggle-track { background: var(--primary); }
.nv-toggle input:checked + .nv-toggle-track::before { transform: translateX(15px); }
.nv-check-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 400; color: var(--text); margin-bottom: 11px; cursor: pointer; }
.nv-check-row:last-child { margin-bottom: 0; }
.nv-check-row input { accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }
.nv-check-row span:nth-child(2) { flex: 1; }
.nv-check-count { color: var(--text-light); font-size: 12px; }
.nv-main { flex: 1 1 0; min-width: 0; order: 1; }
.nv-catalog .cat-jump-nav { display: none; }

.nv-stat-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.nv-stat-row:last-child { margin-bottom: 0; }
.nv-stat-row strong { color: var(--text); font-size: 14px; font-weight: 800; }
.nv-sidebar-cta {
    margin-top: 4px;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(150deg, rgba(29,78,216,.1), rgba(14,116,144,.08));
    border: 1px solid rgba(29,78,216,.22);
}
.nv-sidebar-cta p { font-size: 12.5px; color: var(--text-light); margin: 0 0 12px; line-height: 1.5; }
.nv-sidebar-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 10px 14px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important; font-size: 13px; font-weight: 700;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.nv-sidebar-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--primary-glow); }

html.dark-mode .nv-sidebar { background: linear-gradient(150deg, #16213a 0%, #131d30 55%, #101828 100%); }
html.dark-mode .nv-toolbar-search, html.dark-mode .nv-toolbar-sort select { background: #131d30; }

@media (max-width: 900px) {
    .nv-layout { flex-direction: column; }
    .nv-sidebar { position: static; width: 100%; flex: 1 1 auto; }
    .nv-toolbar-sort { margin-left: 0; }
}

/* Widen the page container on large screens so the tool grid has more
   breathing room now that the sidebar sits further right. Scoped to the
   homepage only (the only page with .nv-catalog) so tool detail pages
   elsewhere keep their normal container width. */
@media (min-width: 1200px) {
    .main-container:has(.nv-catalog) { width: 1400px; max-width: calc(100% - 40px); }
}
