/* ===== style.css ===== */
@import url("variables.css");
@import url("header.css");
@import url("home.css");
@import url("tools.css");
@import url("categories.css");
@import url("footer.css");
@import url("responsive.css");

/* ===== header.css ===== */
/* ==========================================
   TOOLCRAFT V2
   PROFESSIONAL HEADER
========================================== */


/* ==========================================
   PROGRESS BAR
========================================== */

#progress-bar {
    position: fixed;

    top: 0;
    left: 0;

    height: 3px;
    width: 0%;

    background: #2563eb;

    z-index: 9999;
}


/* ==========================================
   HEADER
========================================== */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.05);
}


/* ==========================================
   HEADER CONTAINER
========================================== */

.header-container {
    width: 100%;

    max-width: 1280px;

    min-height: 76px;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    box-sizing: border-box;
}


/* ==========================================
   LOGO
========================================== */

.logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;

    min-width: 0;

    text-decoration: none;
}


/* IMPORTANT:
   Logo must fit INSIDE the 76px header.
*/

.logo img {
    display: block;

    width: auto;

    height: 48px;

    max-width: 210px;

    object-fit: contain;

    object-position: center;
}


/* If logo contains text beside/inside image */

.logo span {
    color: #111827;

    font-size: 21px;

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}


/* ==========================================
   NAVIGATION
========================================== */

.nav-menu {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    margin-left: auto;
}


.nav-menu a {
    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 40px;

    color: #111827;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}


.nav-menu a:hover {
    color: #2563eb;
}


/* ==========================================
   NAVIGATION UNDERLINE
========================================== */

.nav-menu a::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: 1px;

    width: 0;

    height: 2px;

    border-radius: 2px;

    background: #2563eb;

    transition:
        width 0.25s ease;
}


.nav-menu a:hover::after {
    width: 100%;
}


/* ==========================================
   ACTIVE MENU
========================================== */

.nav-menu a.active {
    color: #2563eb;
}


.nav-menu a.active::after {
    width: 100%;
}


/* ==========================================
   HEADER BUTTON
========================================== */

.header-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 10px 19px;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff !important;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.header-btn:hover {
    background: #1d4ed8;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.20);
}


/* Don't create underline on button */

.header-btn::after {
    display: none !important;
}


/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;

    color: #111827;

    font-size: 23px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}


.menu-toggle:hover {
    background: #eff6ff;

    border-color: #bfdbfe;

    color: #2563eb;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

    .header-container {
        min-height: 72px;

        padding: 0 18px;

        gap: 20px;
    }


    .logo img {
        height: 44px;

        max-width: 190px;
    }


    .nav-menu {
        gap: 19px;
    }


    .nav-menu a {
        font-size: 13px;
    }


    .header-btn {
        padding: 9px 15px;

        font-size: 13px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .header-container {
        min-height: 66px;

        padding: 0 14px;

        gap: 12px;
    }


    /* REAL FIX FOR YOUR MISSING LOGO */

    .logo {
        flex: 1;

        min-width: 0;
    }


    .logo img {
        height: 40px;

        width: auto;

        max-width: 175px;
    }


    .logo span {
        font-size: 18px;
    }


    /* Hide desktop navigation */

    .nav-menu {
        display: none;
    }


    /* Show mobile menu button */

    .menu-toggle {
        display: flex;

        flex-shrink: 0;
    }


    .header-btn {
        display: none;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .header-container {
        min-height: 62px;

        padding: 0 12px;
    }


    .logo img {
        height: 36px;

        max-width: 155px;
    }


    .logo span {
        font-size: 17px;
    }


    .menu-toggle {
        width: 40px;
        height: 40px;

        font-size: 21px;
    }
}


/* ==========================================
   VERY SMALL PHONES
========================================== */

@media (max-width: 360px) {

    .header-container {
        padding: 0 10px;
    }


    .logo img {
        height: 33px;

        max-width: 140px;
    }


    .menu-toggle {
        width: 38px;
        height: 38px;
    }
}

/* ===== home.css ===== */
/* ==========================================
   DAILY WISHES HUB
   PROFESSIONAL HOME PAGE
========================================== */


/* ==========================================
   HERO
========================================== */

.hero {
    position: relative;
    overflow: hidden;

    padding: 92px 20px 82px;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(96, 165, 250, 0.22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #f8fafc 48%,
            #eef2ff 100%
        );

    color: #111827;
    text-align: center;

    border-bottom: 1px solid #e5e7eb;
}


/* Decorative background */

.hero::before {
    content: "";

    position: absolute;
    width: 320px;
    height: 320px;

    top: -150px;
    left: -120px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.08);
}

.hero::after {
    content: "";

    position: absolute;
    width: 280px;
    height: 280px;

    right: -120px;
    bottom: -140px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.08);
}


/* Hero content */

.hero > * {
    position: relative;
    z-index: 1;
}


/* ---------- HERO BADGE ---------- */

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 16px;

    margin-bottom: 22px;

    border: 1px solid #bfdbfe;
    border-radius: 50px;

    background: #ffffff;
    color: #2563eb;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 5px 18px rgba(37, 99, 235, 0.08);
}


/* ---------- HERO TITLE ---------- */

.hero h1 {
    max-width: 900px;

    margin: 0 auto 20px;

    color: #111827;

    font-size: 56px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}


/* ---------- HERO TEXT ---------- */

.hero p {
    max-width: 760px;

    margin: 0 auto;

    color: #4b5563;

    font-size: 19px;
    line-height: 1.8;
}


/* ==========================================
   SEARCH
========================================== */

.search-box {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    width: min(850px, 100%);

    margin: 38px auto 0;

    gap: 10px;
}


.search-box input {
    width: 100%;
    height: 58px;

    padding: 0 24px;

    border: 1px solid #dbe3ef;
    border-radius: 14px;

    outline: none;

    background: #ffffff;
    color: #111827;

    font-size: 16px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.search-box input:focus {
    border-color: #60a5fa;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10),
        0 8px 30px rgba(15, 23, 42, 0.08);
}


.search-box button {
    flex-shrink: 0;

    height: 58px;

    padding: 0 28px;

    border: none;
    border-radius: 14px;

    background: #2563eb;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.search-box button:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.26);
}


/* ==========================================
   HERO TAGS
========================================== */

.hero-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 26px;
}


.hero-tags a {
    display: inline-flex;
    align-items: center;

    padding: 8px 14px;

    border: 1px solid #dbeafe;
    border-radius: 50px;

    background: #ffffff;
    color: #2563eb;

    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.hero-tags a:hover {
    background: #eff6ff;

    transform: translateY(-2px);
}


/* ==========================================
   HERO STATS
========================================== */

.hero-stats {
    max-width: 900px;

    margin: 50px auto 0;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}


.hero-stats .stat-box {
    padding: 20px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.85);

    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}


.hero-stats h3 {
    margin-bottom: 4px;

    color: #2563eb;

    font-size: 28px;
    font-weight: 800;
}


.hero-stats p {
    color: #6b7280;

    font-size: 13px;
}


/* ==========================================
   CATEGORY SECTION
========================================== */

.category-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}


.category-card {
    position: relative;

    padding: 28px 22px;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    background: #ffffff;

    text-align: center;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.category-card:hover {
    transform: translateY(-7px);

    border-color: #bfdbfe;

    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.09);
}


.category-card .icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 18px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 30px;
}


.category-card h3 {
    margin-bottom: 9px;

    color: #111827;

    font-size: 20px;
    font-weight: 750;
}


.category-card p {
    color: #6b7280;

    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================
   TOOLS
========================================== */

.tool-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}


.tool-card {
    position: relative;

    padding: 28px;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    background: #ffffff;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.tool-card:hover {
    transform: translateY(-7px);

    border-color: #bfdbfe;

    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
}


.tool-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 16px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 29px;
}


.tool-card h3 {
    margin-bottom: 9px;

    color: #111827;

    font-size: 20px;
    font-weight: 750;
}


.tool-card p {
    color: #6b7280;

    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================
   FEATURE SECTION
========================================== */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


.feature-card {
    padding: 30px 22px;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    background: #ffffff;

    text-align: center;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.feature-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}


.feature-card > .icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    border-radius: 50%;

    background: #eff6ff;
    color: #2563eb;

    font-size: 28px;
}


.feature-card h3 {
    margin: 16px 0 9px;

    color: #111827;

    font-size: 19px;
    font-weight: 750;
}


.feature-card p {
    color: #6b7280;

    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================
   CTA
========================================== */

.cta {
    position: relative;

    overflow: hidden;

    padding: 82px 20px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.15),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: #ffffff;

    text-align: center;
}


.cta::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    top: -150px;

    border-radius: 50%;

    background: rgba(255,255,255,.08);
}


.cta > * {
    position: relative;
    z-index: 1;
}


.cta h2 {
    margin-bottom: 16px;

    font-size: 40px;
    font-weight: 800;

    line-height: 1.2;
}


.cta p {
    max-width: 680px;

    margin: 0 auto 30px;

    color: rgba(255,255,255,.90);

    font-size: 17px;
    line-height: 1.7;
}


.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 13px 27px;

    border-radius: 12px;

    background: #ffffff;
    color: #2563eb;

    font-weight: 750;

    box-shadow: 0 8px 25px rgba(15,23,42,.15);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.cta-btn:hover {
    background: #eff6ff;

    transform: translateY(-2px);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .hero h1 {
        font-size: 48px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .hero {
        padding: 65px 16px 60px;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 17px;
    }

    .search-box {
        flex-direction: column;
        width: 100%;
    }

    .search-box input {
        height: 54px;
    }

    .search-box button {
        width: 100%;
        height: 52px;
    }

    .category-grid,
    .tool-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats h3 {
        font-size: 24px;
    }

    .cta {
        padding: 65px 18px;
    }

    .cta h2 {
        font-size: 32px;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .hero {
        padding: 52px 14px 48px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-tags {
        gap: 7px;
    }

    .hero-tags a {
        font-size: 12px;
        padding: 7px 11px;
    }

    .cta h2 {
        font-size: 28px;
    }
}

/* ===== footer.css ===== */
/* =========================================================
   TOOLCRAFT - NEW FOOTER
   UNIQUE CLASS NAMES
   ========================================================= */

.tc-footer {
    width: 100% !important;

    margin-top: 70px !important;

    background: #0f172a !important;

    color: #ffffff !important;

    box-sizing: border-box !important;

    border-top: 1px solid #1e293b !important;
}


.tc-footer *,
.tc-footer *::before,
.tc-footer *::after {
    box-sizing: border-box !important;
}


/* =========================================================
   INNER
   ========================================================= */

.tc-footer-inner {
    width: 100% !important;

    max-width: 1200px !important;

    margin: 0 auto !important;

    padding: 0 24px !important;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.tc-footer-grid {
    width: 100% !important;

    display: grid !important;

    grid-template-columns:
        minmax(260px, 1.7fr)
        minmax(140px, 1fr)
        minmax(140px, 1fr)
        minmax(180px, 1fr) !important;

    gap: 45px !important;

    padding: 60px 0 50px !important;

    margin: 0 !important;

    text-align: left !important;
}


/* =========================================================
   BRAND
   ========================================================= */

.tc-footer-brand {
    width: auto !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    text-align: left !important;
}


.tc-footer-logo {
    display: inline-block !important;

    margin: 0 0 16px !important;

    color: #ffffff !important;

    font-size: 25px !important;

    font-weight: 800 !important;

    line-height: 1.2 !important;

    text-decoration: none !important;
}


.tc-footer-brand p {
    max-width: 350px !important;

    margin: 0 !important;

    color: #94a3b8 !important;

    font-size: 14px !important;

    line-height: 1.7 !important;
}


/* =========================================================
   SOCIAL
   ========================================================= */

.tc-footer-social {
    display: flex !important;

    align-items: center !important;

    gap: 9px !important;

    margin-top: 20px !important;
}


.tc-footer-social a {
    width: 35px !important;

    height: 35px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    border: 1px solid #334155 !important;

    border-radius: 8px !important;

    background: #172235 !important;

    color: #cbd5e1 !important;

    font-size: 14px !important;

    font-weight: 700 !important;

    text-decoration: none !important;
}


.tc-footer-social a:hover {
    background: #2563eb !important;

    border-color: #2563eb !important;

    color: #ffffff !important;
}


/* =========================================================
   COLUMNS
   ========================================================= */

.tc-footer-column {
    width: auto !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    text-align: left !important;
}


.tc-footer-column h3 {
    margin: 0 0 18px !important;

    padding: 0 !important;

    color: #ffffff !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    line-height: 1.3 !important;
}


.tc-footer-column a {
    display: block !important;

    width: fit-content !important;

    margin: 0 0 11px !important;

    padding: 0 !important;

    color: #94a3b8 !important;

    font-size: 13px !important;

    line-height: 1.5 !important;

    text-decoration: none !important;
}


.tc-footer-column a:hover {
    color: #ffffff !important;
}


/* =========================================================
   BOTTOM
   ========================================================= */

.tc-footer-bottom {
    width: 100% !important;

    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    gap: 20px !important;

    padding: 20px 0 !important;

    border-top: 1px solid #1e293b !important;
}


.tc-footer-bottom p {
    margin: 0 !important;

    padding: 0 !important;

    color: #64748b !important;

    font-size: 12px !important;
}


.tc-footer-legal {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-end !important;

    flex-wrap: wrap !important;

    gap: 8px 18px !important;
}


.tc-footer-legal a {
    display: inline-block !important;

    margin: 0 !important;

    padding: 0 !important;

    color: #64748b !important;

    font-size: 12px !important;

    text-decoration: none !important;
}


.tc-footer-legal a:hover {
    color: #ffffff !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .tc-footer-grid {
        grid-template-columns:
            1.5fr
            1fr
            1fr !important;

        gap: 35px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .tc-footer {
        margin-top: 50px !important;
    }


    .tc-footer-inner {
        padding: 0 18px !important;
    }


    .tc-footer-grid {
        display: grid !important;

        grid-template-columns: 1fr 1fr !important;

        gap: 32px 22px !important;

        padding: 42px 0 35px !important;

        text-align: left !important;
    }


    .tc-footer-brand {
        grid-column: 1 / -1 !important;
    }


    .tc-footer-brand p {
        max-width: 100% !important;

        font-size: 13px !important;
    }


    .tc-footer-column h3 {
        margin-bottom: 13px !important;

        font-size: 14px !important;
    }


    .tc-footer-column a {
        margin-bottom: 8px !important;

        font-size: 12px !important;
    }


    .tc-footer-bottom {
        display: block !important;

        padding: 18px 0 22px !important;
    }


    .tc-footer-bottom p {
        margin-bottom: 12px !important;
    }


    .tc-footer-legal {
        justify-content: flex-start !important;

        gap: 8px 15px !important;
    }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 400px) {

    .tc-footer-inner {
        padding: 0 15px !important;
    }


    .tc-footer-grid {
        grid-template-columns: 1fr 1fr !important;

        gap: 26px 15px !important;
    }


    .tc-footer-logo {
        font-size: 22px !important;
    }


    .tc-footer-brand p {
        font-size: 12px !important;
    }


    .tc-footer-column h3 {
        font-size: 13px !important;
    }


    .tc-footer-column a {
        font-size: 11.5px !important;
    }

}

/* ===== responsive.css ===== */
/* ==========================================
   TOOLCRAFT V2
   RESPONSIVE
========================================== */


/* ==========================================
   LARGE
========================================== */

@media (max-width: 1200px) {

    .container {
        max-width: 1100px;
    }

    .hero h1 {
        font-size: 50px;
    }
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

    .container {
        max-width: 960px;
    }


    /* HEADER */

    .header-container {
        min-height: 72px;
    }

    .logo img {
        height: 44px;
        max-width: 190px;
    }

    .nav-menu {
        gap: 20px;
    }


    /* HERO */

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 18px;
    }


    /* GRIDS */

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }


    /* FOOTER */

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


/* ==========================================
   MOBILE / TABLET
========================================== */

@media (max-width: 768px) {

    .container {
        width: 100%;
        max-width: 100%;

        padding-left: 16px;
        padding-right: 16px;
    }


    /* ======================================
       HEADER
    ====================================== */

    .header-container {
        min-height: 66px;

        padding-left: 14px;
        padding-right: 14px;

        gap: 12px;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo img {
        display: block;

        height: 40px;

        width: auto;

        max-width: 175px;

        object-fit: contain;
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;

        flex-shrink: 0;

        width: 42px;
        height: 42px;

        align-items: center;
        justify-content: center;
    }


    /* ======================================
       HERO
    ====================================== */

    .hero {
        padding: 65px 18px;
    }

    .hero h1 {
        font-size: 36px;

        line-height: 1.3;
    }

    .hero p {
        font-size: 17px;
    }


    /* ======================================
       SEARCH
    ====================================== */

    .search-box {
        flex-direction: column;

        align-items: center;
    }

    .search-box input {
        width: 100%;
        max-width: 100%;
    }

    .search-box button {
        width: 100%;
        max-width: 250px;
    }


    /* ======================================
       HERO TAGS
    ====================================== */

    .hero-tags {
        justify-content: center;
    }

    .hero-tags a {
        font-size: 13px;

        padding: 8px 13px;
    }


    /* ======================================
       STATS
    ====================================== */

    .hero-stats {
        grid-template-columns: 1fr 1fr;

        gap: 12px;
    }


    /* ======================================
       CATEGORY
    ====================================== */

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


    /* ======================================
       TOOLS
    ====================================== */

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


    /* ======================================
       FEATURES
    ====================================== */

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


    /* ======================================
       TOOL PAGE
    ====================================== */

    .tool-box {
        padding: 22px;
    }

    .button-group {
        flex-direction: column;
    }

    .tool-box button {
        width: 100%;
    }


    /* ======================================
       COUNTER
    ====================================== */

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


    /* ======================================
       FOOTER
       IMPORTANT:
       2 COLUMNS ON MOBILE
    ====================================== */

    .footer-grid {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 30px 20px;

        text-align: left;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        margin: 0;

        max-width: 100%;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

    .footer-bottom-links {
        flex-direction: row;

        flex-wrap: wrap;

        justify-content: flex-start;

        gap: 10px 16px;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 576px) {

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }


    /* HERO */

    .hero {
        padding: 55px 15px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }


    /* SECTION */

    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }


    /* CARDS */

    .category-card,
    .tool-card,
    .feature-card {
        padding: 20px;
    }


    /* STATS */

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }


    /* TOOL COUNTERS */

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


    /* FOOTER */

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

        gap: 25px 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-column h4 {
        font-size: 14px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-bottom-links {
        flex-direction: row;

        flex-wrap: wrap;
    }
}


/* ==========================================
   VERY SMALL PHONE
========================================== */

@media (max-width: 380px) {

    .logo img {
        height: 34px;

        max-width: 145px;
    }

    .menu-toggle {
        width: 39px;
        height: 39px;
    }


    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }


    .category-grid,
    .tool-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }


    .hero-stats {
        grid-template-columns: 1fr;
    }


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


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

/* ===== tools.css ===== */
/* ToolCraft Final Tool UI */
.tool-box,.json-tool-box,.editor-box,.formatter-box,.validator-box,.sql-validator-box,.markdown-editor-box,.base64-box,.xml-tool-box,.yaml-tool-box{box-sizing:border-box}
.tool-box textarea,.tool-box input,.tool-box select,
.json-tool-box textarea,.json-tool-box input,.json-tool-box select,
.validator-box textarea,.validator-box input,.validator-box select{
    max-width:100%;box-sizing:border-box;
}
.tool-box textarea,.validator-box textarea{width:100%;min-height:300px;padding:16px;border:1px solid #cbd5e1;border-radius:12px;font:14px/1.7 Consolas,Monaco,"Courier New",monospace;resize:vertical;outline:0}
.tool-box textarea:focus,.validator-box textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.button-group,.validator-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.button-group button,.validator-buttons button{border:0;border-radius:10px;padding:12px 18px;font-weight:700;cursor:pointer;background:#2563eb;color:#fff}
.button-group button:hover,.validator-buttons button:hover{filter:brightness(.95);transform:translateY(-1px)}
@media(max-width:768px){.button-group,.validator-buttons{flex-direction:column}.button-group button,.validator-buttons button{width:100%}}


/* ===== categories.css ===== */
/* ToolCraft final category/search library */
.category-header{background:linear-gradient(135deg,#f8fbff,#eef5ff);padding:70px 20px;border-bottom:1px solid #e2e8f0}
.category-header .container{max-width:1180px;margin:auto}
.breadcrumb{display:flex;justify-content:center;gap:10px;margin-bottom:20px;color:#64748b;font-size:14px}
.breadcrumb a{color:#2563eb;text-decoration:none}
.category-tools{padding:70px 0}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.category-card{display:block;padding:28px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;text-decoration:none;box-shadow:0 8px 25px rgba(15,23,42,.05);transition:.2s}
.category-card:hover{transform:translateY(-4px);border-color:#bfdbfe;box-shadow:0 15px 30px rgba(15,23,42,.09)}
.category-card h3{font-size:21px;color:#0f172a;margin:8px 0 12px}
.category-card p{color:#64748b;line-height:1.7;margin:0 0 18px}
.open-tool{color:#2563eb;font-weight:800}
.category-info{padding:55px 20px;background:#f8fafc}
.category-info .container{max-width:900px;margin:auto}
.category-info h2{color:#0f172a;margin-top:28px}
.category-info p,.category-info li{color:#475569;line-height:1.8}
.section-heading{text-align:center;max-width:760px;margin:0 auto 32px}
.section-heading h2{font-size:34px;color:#0f172a;margin:0 0 10px}
.section-heading p{color:#64748b;line-height:1.7}
.search-large{display:flex;max-width:820px;margin:0 auto 35px;gap:10px}
.search-large input{flex:1;height:52px;padding:0 16px;border:1px solid #cbd5e1;border-radius:12px;font-size:16px;outline:0}
.search-large input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.search-large button{height:52px;padding:0 24px;border:0;border-radius:12px;background:#2563eb;color:#fff;font-weight:800;cursor:pointer}
.search-summary{margin:0 0 20px;color:#64748b;font-weight:700}
.search-empty{max-width:700px;margin:30px auto;padding:45px;text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:18px}
.search-empty h2{color:#0f172a}
.search-empty p{color:#64748b;line-height:1.7}
.search-empty a{color:#2563eb;font-weight:700}
.tools-page-search{max-width:650px;margin:25px auto 0}
@media(max-width:900px){.category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.category-grid{grid-template-columns:1fr}.search-large{flex-direction:column}.search-large input,.search-large button{width:100%}}

/* Final category alignment overrides */
.category-header .container,
.category-tools > .container,
.category-info > .container { width:100%; box-sizing:border-box; }
.category-card { display:flex; flex-direction:column; }
.category-card .open-tool { margin-top:auto; }


/* ===== global-enhancements.css ===== */
/* ToolCraft Final Global Enhancements */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid #e5e7eb}
.header-container{min-height:72px;display:flex;align-items:center;gap:24px}
.logo img{display:block;max-height:38px;width:auto}
.nav-menu{display:flex;align-items:center;gap:24px;margin-left:auto}
.nav-menu a{font-weight:600;color:#111827;text-decoration:none}
.nav-menu a:hover{color:#2563eb}
.site-search{display:flex;gap:7px;align-items:center}
.site-search input{width:170px;height:40px;padding:0 12px;border:1px solid #dbe2ea;border-radius:10px;outline:0}
.site-search input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.site-search button{height:40px;padding:0 14px;border:0;border-radius:10px;background:#2563eb;color:#fff;font-weight:700;cursor:pointer}
.menu-toggle{border:0;background:transparent;font-size:24px;cursor:pointer;display:none}
#progress-bar{position:fixed;left:0;top:0;height:3px;width:0;background:#2563eb;z-index:2000}

.related-tools{padding:70px 0;background:#f8fafc;border-top:1px solid #e5e7eb}
.related-heading{text-align:center;max-width:760px;margin:0 auto 30px}
.section-kicker{display:inline-block;color:#2563eb;font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.related-heading h2{font-size:32px;color:#111827;margin:0 0 10px}
.related-heading p{color:#64748b;line-height:1.7}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.related-card{display:block;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:22px;text-decoration:none;box-shadow:0 6px 20px rgba(15,23,42,.04);transition:.2s}
.related-card:hover{transform:translateY(-3px);border-color:#bfdbfe;box-shadow:0 12px 28px rgba(15,23,42,.08)}
.related-category{font-size:12px;color:#2563eb;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.related-card h3{color:#111827;font-size:19px;margin:9px 0}
.related-card p{color:#64748b;line-height:1.6;font-size:14px;margin:0 0 15px}
.related-link{font-weight:700;color:#2563eb;font-size:14px}

.site-footer{background:#0f172a;color:#cbd5e1;padding:65px 0 0}
.footer-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:45px;padding-bottom:45px}
.footer-brand p{max-width:340px;line-height:1.8;color:#94a3b8}
.footer-logo img{max-height:42px;width:auto;display:block;margin-bottom:18px}
.footer-column h3{font-size:15px;color:#fff;margin:0 0 18px}
.footer-column ul{list-style:none;padding:0;margin:0}
.footer-column li{margin-bottom:11px}
.footer-column a{color:#94a3b8;text-decoration:none}
.footer-column a:hover{color:#fff}
.footer-socials{display:flex;gap:9px;margin-top:18px}
.footer-socials a{width:36px;height:36px;display:grid;place-items:center;border:1px solid #334155;border-radius:9px;color:#cbd5e1;text-decoration:none;font-weight:700}
.footer-bottom{border-top:1px solid #1e293b;padding:20px 0;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:13px}
.footer-bottom p{margin:0;color:#64748b}
.footer-bottom a{color:#64748b;text-decoration:none;margin-left:18px}
.footer-bottom a:hover{color:#fff}

.page-header,.category-header{background:linear-gradient(135deg,#f8fbff,#eef5ff);padding:72px 20px;text-align:center;border-bottom:1px solid #e2e8f0}
.page-header h1,.category-header h1{font-size:48px;color:#0f172a;margin:0 0 15px}
.page-header p,.category-header p{max-width:760px;margin:auto;color:#52647a;font-size:18px;line-height:1.8}
.section{padding:70px 0}
.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tool-card{display:block;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:25px;text-decoration:none;box-shadow:0 7px 25px rgba(15,23,42,.05);transition:.2s}
.tool-card:hover{transform:translateY(-4px);border-color:#bfdbfe;box-shadow:0 14px 30px rgba(15,23,42,.09)}
.tool-card h3{color:#0f172a;margin:0 0 10px;font-size:20px}
.tool-card p{color:#64748b;line-height:1.65;margin:0 0 14px}
.tool-card span{color:#2563eb;font-weight:700}
.result-box{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:30px;text-align:center}

@media(max-width:1050px){
    .site-search input{width:130px}
    .nav-menu{gap:14px}
    .footer-top{grid-template-columns:repeat(2,1fr)}
    .tool-grid,.related-grid{grid-template-columns:repeat(2,1fr)}
    .tool-seo-columns{grid-template-columns:1fr}
}
@media(max-width:800px){
    .header-container{padding:0 18px}
    .nav-menu{display:none;position:absolute;left:0;right:0;top:72px;background:#fff;padding:18px;flex-direction:column;align-items:stretch;border-bottom:1px solid #e5e7eb;box-shadow:0 12px 25px rgba(15,23,42,.08)}
    .nav-menu.is-open{display:flex}
    .site-search{margin-left:auto}
    .site-search input{width:130px}
    .menu-toggle{display:block}
    .page-header h1,.category-header h1{font-size:36px}
    .tool-grid,.related-grid,.footer-top{grid-template-columns:1fr}
    .footer-bottom{flex-direction:column;align-items:flex-start}
    .footer-bottom a{margin:0 14px 0 0}
}
@media(max-width:520px){
    .site-search{display:none}
    .page-header,.category-header{padding:55px 18px}
    .section{padding:50px 0}
}

.tool-seo-content{padding:65px 0;background:#fff;border-top:1px solid #e5e7eb}
.tool-seo-copy{max-width:1000px;margin:0 auto}
.tool-seo-copy h2{font-size:32px;color:#0f172a;margin:0 0 14px}
.tool-seo-copy>p{max-width:850px;color:#475569;line-height:1.8}
.tool-seo-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:28px}
.tool-seo-columns>div{padding:24px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}
.tool-seo-columns h3{color:#0f172a;margin:0 0 12px}
.tool-seo-columns li{color:#475569;line-height:1.7;margin-bottom:8px}


/* ===== layout-fix.css ===== */
/* ToolCraft Final Layout Alignment Fix
   Keeps category pages visually consistent with the global site shell. */

html, body { overflow-x: hidden; }

.site-header { width: 100%; }
.header-container {
    width: 100%;
    max-width: 1280px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-width: 118px;
    height: 44px;
}

.logo img {
    display: block;
    width: 118px;
    max-width: 118px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.nav-menu {
    margin-left: auto;
    flex: 0 0 auto;
}

.site-search { flex: 0 0 auto; }

/* Category hero: use the same left content rhythm as the rest of the site. */
.category-header {
    padding: 64px 24px 68px;
    text-align: left;
    background:
        radial-gradient(circle at 8% 20%, rgba(37,99,235,.07) 0 105px, transparent 106px),
        radial-gradient(circle at 96% 100%, rgba(37,99,235,.055) 0 95px, transparent 96px),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.category-header .container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.category-header .breadcrumb {
    justify-content: flex-start;
    margin: 0 0 24px;
}

.category-header .section-kicker {
    display: block;
    margin: 0 0 10px;
}

.category-header h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.category-header p {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
}

.category-tools {
    padding: 72px 24px;
}

.category-tools > .container,
.category-info > .container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.category-grid {
    align-items: stretch;
}

.category-card {
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.category-card h3,
.category-card p {
    text-align: left;
}

.category-info {
    padding: 64px 24px;
}

.category-info h2,
.category-info p,
.category-info ul,
.category-info li {
    text-align: left;
}

@media (max-width: 1050px) {
    .header-container { padding: 0 20px; }
    .logo { min-width: 105px; }
    .logo img { width: 105px; max-width: 105px; }
}

@media (max-width: 800px) {
    .header-container { min-height: 70px; padding: 0 18px; }
    .logo { min-width: 100px; }
    .logo img { width: 100px; max-width: 100px; max-height: 36px; }
    .category-header { padding: 52px 20px 56px; }
    .category-header .breadcrumb { margin-bottom: 20px; }
    .category-header p { font-size: 16px; }
    .category-tools { padding: 52px 20px; }
    .category-info { padding: 52px 20px; }
}

@media (max-width: 520px) {
    .category-header { padding: 44px 18px 48px; }
    .category-header h1 { font-size: 34px; }
    .category-header p { font-size: 15.5px; }
}


/* ===== pro-site.css ===== */
/* ToolCraft PRO — final visual system, loaded last */
:root{
 --tc-primary:#2563eb;
 --tc-primary-dark:#1d4ed8;
 --tc-ink:#0f172a;
 --tc-muted:#64748b;
 --tc-soft:#f8fafc;
 --tc-border:#e2e8f0;
 --tc-radius:18px;
 --tc-shadow:0 10px 30px rgba(15,23,42,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f8fafc;color:var(--tc-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}
a{color:inherit}
.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.narrow-content{max-width:900px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#progress-bar{height:3px!important;background:linear-gradient(90deg,#2563eb,#6366f1)!important}

/* Header */
.site-header{position:sticky!important;top:0;z-index:1000;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(16px);border-bottom:1px solid rgba(226,232,240,.9)!important;box-shadow:0 4px 18px rgba(15,23,42,.04)}
.header-container{width:min(1280px,calc(100% - 40px));min-height:72px;margin:auto;padding:0;display:flex;align-items:center;gap:24px}
.logo{display:inline-flex!important;align-items:center!important;width:180px!important;height:54px!important;min-width:180px!important}
.logo img{width:180px!important;max-width:180px!important;height:65px!important;max-height:65px!important;object-fit:contain!important;display:block!important}
.nav-menu{display:flex!important;align-items:center!important;gap:26px!important;margin-left:auto!important}
.nav-menu a{position:relative;padding:26px 0!important;color:#111827!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important}
.nav-menu a:after{content:"";position:absolute;left:0;right:0;bottom:18px;height:2px;background:var(--tc-primary);transform:scaleX(0);transform-origin:center;transition:.2s}
.nav-menu a:hover,.nav-menu a.active{color:var(--tc-primary)!important}
.nav-menu a:hover:after,.nav-menu a.active:after{transform:scaleX(1)}
.site-search{display:flex!important;align-items:center!important;gap:8px!important}
.site-search input{width:175px!important;height:42px!important;border:1px solid #d8e0ea!important;border-radius:11px!important;padding:0 13px!important;background:#fff!important;color:#111827!important}
.site-search button{height:42px!important;padding:0 16px!important;border:0!important;border-radius:11px!important;background:var(--tc-primary)!important;color:#fff!important;font-weight:800!important;cursor:pointer!important}
.menu-toggle{display:none!important}

/* Common page headers */
.page-header,.category-header{position:relative;overflow:hidden;padding:76px 20px!important;text-align:center!important;background:linear-gradient(135deg,#f8fbff,#edf5ff)!important;border-bottom:1px solid var(--tc-border)!important}
.page-header:before,.category-header:before{content:"";position:absolute;width:280px;height:280px;left:-130px;top:-170px;border-radius:50%;background:rgba(37,99,235,.08)}
.page-header:after,.category-header:after{content:"";position:absolute;width:250px;height:250px;right:-130px;bottom:-160px;border-radius:50%;background:rgba(99,102,241,.07)}
.page-header .container,.category-header .container{position:relative;z-index:1}
.page-header h1,.category-header h1{font-size:clamp(38px,5vw,58px)!important;line-height:1.08!important;letter-spacing:-.035em!important;margin:8px 0 16px!important}
.page-header p,.category-header p{max-width:790px!important;margin:0 auto!important;color:#52647a!important;font-size:18px!important;line-height:1.75!important}
.section-kicker{display:inline-block!important;margin-bottom:7px!important;color:var(--tc-primary)!important;font-size:12px!important;font-weight:900!important;letter-spacing:.1em!important;text-transform:uppercase!important}
.section{padding:78px 0!important}
.section-title{text-align:center;max-width:760px;margin:0 auto 36px}
.section-title-left{text-align:left;max-width:none;margin-bottom:30px}
.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;text-align:left;max-width:none}
.section-title h2{margin:0 0 9px!important;font-size:34px!important;line-height:1.15!important;letter-spacing:-.025em}
.section-title p{margin:0;color:var(--tc-muted);line-height:1.75}
.text-link{color:var(--tc-primary);font-weight:800;text-decoration:none}
.text-link:hover{text-decoration:underline}

/* Homepage */
.hero{padding:96px 20px 80px!important}
.hero-inner{position:relative;z-index:1}
.hero h1{font-size:clamp(42px,6vw,70px)!important;letter-spacing:-.045em!important;max-width:980px!important}
.hero h1 span{color:var(--tc-primary)}
.hero p{max-width:760px!important}
.home-search{width:min(820px,100%);margin:34px auto 0;display:grid;grid-template-columns:1fr auto;gap:10px}
.home-search input{height:58px;border:1px solid #d8e2ef;border-radius:14px;padding:0 20px;font-size:16px;box-shadow:0 8px 28px rgba(15,23,42,.07);outline:none}
.home-search input:focus{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.home-search button{height:58px;padding:0 25px;border:0;border-radius:14px;background:var(--tc-primary);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(37,99,235,.18)}
.hero-stats{max-width:860px!important}
.hero-stats .stat-box{min-height:95px;display:flex;flex-direction:column;justify-content:center}
.hero-stats .stat-box h3{margin:0!important}
.hero-stats .stat-box p{margin:0!important}
.home-categories{background:#fff}
.category-grid{grid-template-columns:repeat(3,1fr)!important;align-items:stretch}
.category-card{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;height:100%!important;text-align:left!important;padding:28px!important}
.category-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:#eff6ff;color:var(--tc-primary);font-weight:900;font-size:18px;margin-bottom:20px}
.category-label,.tool-category{display:block;color:var(--tc-primary);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.category-card h3,.category-card h2{margin:8px 0 9px!important;font-size:21px!important}
.category-card p{margin:0 0 20px!important}
.category-card strong,.open-tool,.tool-open{margin-top:auto;color:var(--tc-primary);font-size:14px;font-weight:800}
.category-card.is-coming{background:#fbfdff}
.tool-grid{grid-template-columns:repeat(3,1fr)!important;align-items:stretch}
.tool-card{height:100%;display:flex!important;flex-direction:column!important;padding:27px!important;text-decoration:none!important}
.tool-card .tool-category{margin-bottom:16px}
.tool-icon{margin:0 0 17px!important;width:50px!important;height:50px!important;border-radius:14px!important;font-size:13px!important;font-weight:900!important;background:#eff6ff!important;color:var(--tc-primary)!important}
.tool-card h3,.tool-card h2{font-size:20px!important;line-height:1.3!important;margin:0 0 10px!important}
.tool-card p{margin:0 0 18px!important}
.tool-open{margin-top:auto}
.home-popular{background:#f3f7fc}
.workflow{background:#fff}
.feature-grid{grid-template-columns:repeat(4,1fr)!important}
.feature-card{height:100%;padding:28px!important}
.feature-icon{width:50px;height:50px;margin:0 auto 16px;display:grid;place-items:center;border-radius:14px;background:#eff6ff;color:var(--tc-primary);font-size:22px}
.discovery-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:50px;align-items:center}
.discovery-grid h2{font-size:38px;line-height:1.15;letter-spacing:-.03em}
.discovery-grid p{color:var(--tc-muted);max-width:650px;line-height:1.8}
.discovery-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.discovery-links a{padding:10px 14px;border:1px solid #dbe5f1;border-radius:10px;background:#fff;color:var(--tc-primary);font-weight:800;text-decoration:none}
.discovery-card{padding:32px;border:1px solid #dbe5f1;border-radius:22px;background:#fff;box-shadow:var(--tc-shadow)}
.mini-label{font-size:12px;color:var(--tc-primary);font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.discovery-card h3{font-size:25px;line-height:1.25}
.discovery-card p{font-size:15px}
.primary-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:11px;background:var(--tc-primary);color:#fff!important;font-weight:800;text-decoration:none;border:0}
.primary-btn:hover{background:var(--tc-primary-dark)}
.cta-light{background:#fff!important;color:var(--tc-ink)!important;border-top:1px solid var(--tc-border)}
.cta-light h2{color:var(--tc-ink)!important}
.cta-light p{color:var(--tc-muted)!important}

/* Category/library */
.category-header{text-align:left!important}
.category-header .container{max-width:1180px!important}
.category-header .breadcrumb{display:flex;justify-content:flex-start;gap:10px;margin:0 0 22px;color:var(--tc-muted);font-size:14px}
.category-header .breadcrumb a{color:var(--tc-primary);font-weight:700;text-decoration:none}
.category-header h1{max-width:900px;margin-left:0!important}
.category-header p{margin-left:0!important}
.category-tools{padding:72px 0!important;background:#fff}
.category-info{padding:72px 0!important;background:#f8fafc;border-top:1px solid var(--tc-border)}
.narrow-content h2{font-size:30px;line-height:1.2;margin:30px 0 12px}
.narrow-content p{color:#475569;line-height:1.85}
.coming-soon-card{max-width:760px;margin:0 auto;padding:50px;text-align:center;border:1px solid var(--tc-border);border-radius:22px;background:#fff;box-shadow:var(--tc-shadow)}
.coming-soon-card h2{font-size:34px;margin:10px 0}
.coming-soon-card p{color:var(--tc-muted);line-height:1.8}
.library-group{margin-bottom:70px}
.search-large{width:min(820px,100%);margin:0 auto 45px;display:grid;grid-template-columns:1fr auto;gap:10px}
.search-large input{height:54px;padding:0 16px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;outline:none;font-size:16px}
.search-large button{height:54px;padding:0 22px;border:0;border-radius:12px;background:var(--tc-primary);color:#fff;font-weight:800}
.search-summary{margin-bottom:20px;color:var(--tc-muted);font-weight:800}
.search-empty{max-width:700px;margin:20px auto;padding:50px 30px;text-align:center;background:#fff;border:1px solid var(--tc-border);border-radius:22px;box-shadow:var(--tc-shadow)}
.empty-icon{width:58px;height:58px;margin:0 auto 16px;display:grid;place-items:center;border-radius:16px;background:#eff6ff;color:var(--tc-primary);font-size:25px;font-weight:900}
.search-empty h2{margin:0 0 8px;font-size:28px}
.search-empty p{color:var(--tc-muted);line-height:1.75}

/* Tool SEO */
.tool-seo-content{padding:72px 0!important;background:#fff!important;border-top:1px solid var(--tc-border)!important}
.tool-seo-copy{max-width:1000px!important}
.tool-seo-copy h2{font-size:34px!important}
.tool-seo-copy>p{font-size:16px!important;line-height:1.85!important}
.tool-seo-columns{gap:22px!important}
.tool-seo-columns>div{background:#f8fafc!important}
.related-tools{padding:72px 0!important;background:#f3f7fc!important}
.related-grid{grid-template-columns:repeat(3,1fr)!important}
.related-card{height:100%;display:flex!important;flex-direction:column!important}
.related-card h3{margin:8px 0!important}
.related-link{margin-top:auto}

/* Blog */
.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.blog-card{overflow:hidden;border:1px solid var(--tc-border);border-radius:20px;background:#fff;box-shadow:var(--tc-shadow)}
.blog-card img{width:100%;height:210px;object-fit:cover;background:#eef5ff}
.blog-card-body{padding:25px}
.blog-card h2{margin:8px 0 10px;font-size:23px;line-height:1.3}
.blog-card p{color:var(--tc-muted);line-height:1.75}
.blog-meta{display:block;color:var(--tc-muted);font-size:13px;font-weight:700}
.article-header{padding:65px 0;background:#f8fbff;border-bottom:1px solid var(--tc-border)}
.article-header .back-link{display:inline-block;margin-bottom:25px;color:var(--tc-primary);font-weight:800;text-decoration:none}
.article-header h1{font-size:clamp(38px,5vw,58px);line-height:1.1;letter-spacing:-.035em;margin:8px 0 15px}
.article-header p{font-size:18px;color:var(--tc-muted);line-height:1.8}
.article-content{padding:60px 0;background:#fff}
.article-cover{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:18px;margin-bottom:38px;background:#eef5ff}
.prose{font-size:17px;color:#334155;line-height:1.9}
.prose h2{font-size:30px;line-height:1.25;color:var(--tc-ink);margin:42px 0 12px}
.prose a{color:var(--tc-primary);font-weight:800}
.prose li{margin:8px 0}
.article-cta{margin-top:55px;padding:30px;border:1px solid #dbe5f1;border-radius:18px;background:#f8fbff}
.article-cta h2{margin:0 0 8px}

/* Contact */
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.contact-card{padding:30px;border:1px solid var(--tc-border);border-radius:18px;background:#fff;box-shadow:var(--tc-shadow)}
.contact-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:#eff6ff;color:var(--tc-primary);font-size:20px}
.contact-card h2{font-size:22px}
.contact-card p{color:var(--tc-muted);line-height:1.75}

/* Footer */
.site-footer{margin-top:0!important;background:#0b1324!important;color:#cbd5e1!important;padding:0!important}
.footer-top{padding:62px 0 48px!important}
.footer-brand{min-width:0}
.footer-logo{display:inline-flex!important;margin-bottom:15px!important}
.footer-logo img{width:180px!important;height:65px!important;object-fit:contain!important}
.footer-brand p{max-width:340px!important;color:#94a3b8!important}
.footer-column a{font-size:13px!important}
.footer-bottom{padding:19px 0!important}
.footer-legal{display:flex;gap:18px;flex-wrap:wrap}
.footer-legal a{margin:0!important}

/* Mobile */
@media(max-width:1050px){
 .header-container{width:min(100% - 28px,1180px)}
 .nav-menu{gap:17px!important}
 .site-search input{width:140px!important}
 .category-grid,.tool-grid,.related-grid{grid-template-columns:repeat(2,1fr)!important}
 .feature-grid{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:800px){
 .header-container{min-height:68px}
 .logo{width:145px!important;min-width:145px!important}
 .logo img{width:145px!important;height:52px!important}
 .nav-menu{display:none!important;position:absolute;left:14px;right:14px;top:68px;padding:10px!important;background:#fff;border:1px solid var(--tc-border);border-radius:0 0 15px 15px;box-shadow:0 15px 30px rgba(15,23,42,.1);flex-direction:column!important;align-items:stretch!important;gap:0!important}
 .nav-menu.is-open{display:flex!important}
 .nav-menu a{padding:13px 12px!important}
 .nav-menu a:after{bottom:7px;left:12px;right:auto;width:25px}
 .site-search{margin-left:auto!important}
 .site-search input{width:120px!important}
 .menu-toggle{display:block!important}
 .hero{padding:68px 18px 60px!important}
 .hero-stats{grid-template-columns:repeat(2,1fr)!important}
 .category-grid,.tool-grid,.related-grid,.contact-grid,.blog-grid,.discovery-grid{grid-template-columns:1fr!important}
 .feature-grid{grid-template-columns:1fr 1fr!important}
 .section{padding:58px 0!important}
 .section-title-row{align-items:flex-start;flex-direction:column}
 .page-header,.category-header{padding:58px 18px!important}
 .category-header{text-align:left!important}
 .category-header .breadcrumb{justify-content:flex-start}
 .search-large,.home-search{grid-template-columns:1fr!important}
 .search-large button,.home-search button{width:100%}
 .footer-top{grid-template-columns:1fr 1fr!important}
 .footer-brand{grid-column:1/-1}
}
@media(max-width:520px){
 .container{width:min(100% - 30px,1180px)}
 .site-search{display:none!important}
 .logo{width:135px!important;min-width:135px!important}
 .logo img{width:135px!important}
 .hero h1{font-size:36px!important}
 .hero-stats{grid-template-columns:1fr!important}
 .feature-grid{grid-template-columns:1fr!important}
 .footer-top{grid-template-columns:1fr!important}
 .footer-brand{grid-column:auto}
 .footer-bottom{align-items:flex-start!important;flex-direction:column!important}
 .footer-legal{gap:8px 14px}
 .coming-soon-card{padding:34px 22px}
}


/* ToolCraft PRO — shared tool SEO/content layer */
.tc-seo-guide{max-width:1180px;margin:0 auto;padding:0 20px 72px;color:#0f172a}.tc-seo-inner{border-top:1px solid #e2e8f0;padding-top:42px}.tc-seo-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#2563eb;margin-bottom:8px}.tc-seo-guide h2{margin:0 0 14px;font-size:30px;line-height:1.25}.tc-seo-guide h3{margin:0 0 10px;font-size:20px}.tc-seo-guide p{color:#475569;line-height:1.8}.tc-seo-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}.tc-seo-columns article,.tc-seo-note,.tc-faq{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:24px}.tc-seo-note{margin-top:18px;background:#f8fafc}.tc-seo-note p{margin-bottom:0}.tc-seo-related{margin-top:34px}.tc-seo-related>div:first-child{margin-bottom:15px}.tc-seo-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tc-seo-link{display:flex;flex-direction:column;gap:7px;text-decoration:none!important;color:#0f172a!important;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px;transition:.2s ease}.tc-seo-link:hover{border-color:#93c5fd;transform:translateY(-2px);box-shadow:0 10px 25px rgba(15,23,42,.07)}.tc-seo-link span{font-size:13px;line-height:1.55;color:#64748b}.tc-faq{margin-top:34px}.tc-faq h3{margin-bottom:12px}.tc-faq details{border-top:1px solid #e2e8f0;padding:14px 0}.tc-faq details:first-of-type{border-top:0}.tc-faq summary{cursor:pointer;font-weight:700;color:#1e293b}.tc-faq p{margin:10px 0 0}.tc-seo-guide a{color:#2563eb}@media(max-width:800px){.tc-seo-columns,.tc-seo-related-grid{grid-template-columns:1fr}}@media(max-width:600px){.tc-seo-guide{padding:0 15px 55px}.tc-seo-inner{padding-top:32px}.tc-seo-guide h2{font-size:25px}.tc-seo-columns article,.tc-seo-note,.tc-faq{padding:19px}}

.tc-guides{margin-top:34px;padding:26px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px}.tc-guides h3{margin:0 0 14px}.tc-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.tc-guide-link{display:flex;flex-direction:column;gap:7px;text-decoration:none!important;color:#0f172a!important;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:17px}.tc-guide-link:hover{border-color:#93c5fd;box-shadow:0 8px 22px rgba(15,23,42,.06)}.tc-guide-link span{font-size:13px;line-height:1.55;color:#64748b}@media(max-width:800px){.tc-guide-grid{grid-template-columns:1fr}}

.category-guides,.article-related-guides{padding:56px 0}.category-guides .blog-grid,.article-related-guides .blog-grid{margin-top:24px}@media(max-width:700px){.category-guides,.article-related-guides{padding:40px 0}}

/* =========================================================
   PHASE 5 - PERFORMANCE / ACCESSIBILITY HARDENING
   ========================================================= */
img{max-width:100%;}
img[loading="lazy"]{content-visibility:auto;}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:3px}


/* Phase 8 performance layer */
.logo picture,.footer-logo picture{display:block}
.logo picture{width:180px;height:65px}
.logo img,.footer-logo img{display:block}
.tool-seo-content,.related-tools,.category-guides,.workflow,.home-discovery{content-visibility:auto;contain-intrinsic-size:600px}
img{max-width:100%;height:auto}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .tool-card,.related-card,.category-card{transition:none!important}
}

.search-suggestions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:22px}
.search-suggestions a{display:inline-flex;align-items:center;padding:10px 14px;border:1px solid #dbe5f1;border-radius:999px;background:#fff;color:#2563eb;font-weight:800;text-decoration:none}
.search-suggestions a:hover{border-color:#93c5fd;background:#eff6ff}

.category-crosslinks{padding:70px 0;background:#f8fafc;border-top:1px solid #e2e8f0}
.category-crosslink-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-crosslink{display:flex;flex-direction:column;gap:6px;padding:22px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;text-decoration:none;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.category-crosslink:hover{border-color:#bfdbfe;transform:translateY(-2px)}
.category-crosslink span{font-size:11px;color:#2563eb;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.category-crosslink strong{font-size:18px;color:#0f172a}
.category-crosslink small{margin-top:auto;color:#64748b}
@media(max-width:1050px){.category-crosslink-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.category-crosslink-grid{grid-template-columns:1fr}}
