/* ========================================================= */
/* SINGLE TOOL PAGE */
/* ========================================================= */

.tool-layout{
    max-width:1400px;
    margin:0 auto;
    padding:40px 24px 80px;
    display:block !important;
}

.tool-main{
    width:100%;
}

.tool-container{
    max-width:980px;
    margin:0 auto;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:26px;
    padding:34px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

/* Tool logo */

.tool-container > .tool-logo{
    width:96px !important;
    height:96px !important;
    object-fit:contain !important;
    margin-bottom:22px;
}

/* Tool title */

.tool-container h1{
    font-size:44px;
    line-height:1.15;
    margin-bottom:12px;
    color:#111827;
}

.tool-subtitle{
    font-size:18px;
    color:#6b7280;
    margin-bottom:24px;
}

/* Tool stats */

.tool-stats-bar{
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr)) !important;
    gap:16px !important;
    margin:26px 0 !important;
}

.tool-stat{
    background:#ffffff !important;
    border:1px solid #e5e7eb !important;
    border-radius:18px !important;
    padding:18px !important;
    box-shadow:0 6px 20px rgba(15,23,42,.04) !important;
}

.stat-label{
    display:block;
    font-size:13px;
    color:#777;
    margin-bottom:8px;
}

.stat-value{
    font-size:20px;
    font-weight:700;
    color:#111;
}

.stat-value.score{
    color:#16a34a;
}

/* Tool badges */

.tool-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0;
}

.tool-badges .badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:0 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    background:#f3f4f6;
    color:#111827;
}

.tool-badges .badge.trial{
    background:#dcfce7;
    color:#166534;
}

/* Rating stars */

.star-rating{
    margin:18px 0 24px;
}

.rating-number{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:800;
    color:#111827;
    margin-bottom:8px;
}

.rating-number span{
    font-weight:600;
    color:#6b7280;
    font-size:14px;
}

.stars-outer{
    position:relative;
    display:inline-block;
    color:#d1d5db;
    font-size:22px;
    line-height:1;
}

.stars-outer::before{
    content:"★★★★★";
}

.stars-inner{
    position:absolute;
    top:0;
    left:0;
    overflow:hidden;
    white-space:nowrap;
    color:#f59e0b;
}

.stars-inner::before{
    content:"★★★★★";
}

/* CTA */

.cta-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:54px;
    padding:0 26px;
    border-radius:16px;
    background:#000000;
    color:#ffffff !important;
    font-weight:800;
    text-decoration:none !important;
    transition:.2s ease;
}

.cta-btn:hover{
    background:#111827;
    transform:translateY(-2px);
}

.affiliate-note{
    margin-top:12px;
    color:#6b7280;
    font-size:13px;
}

/* Content */

.tool-container h2{
    font-size:30px;
    line-height:1.25;
    margin:34px 0 14px;
    color:#111827;
}

.tool-container p{
    color:#374151;
    font-size:16px;
    line-height:1.8;
}

.tool-container ul{
    margin:12px 0 20px 22px;
}

.tool-container li{
    color:#374151;
    font-size:16px;
    line-height:1.8;
    margin-bottom:8px;
}

.tool-container hr{
    border:0;
    border-top:1px solid #e5e7eb;
    margin:34px 0;
}

/* Reviews */

.reviews-section{
    margin-top:34px;
}

/* Related / similar / viewed sections */

.related-tools-section,
.users-viewed-section,
.explore-more-tools-section{
    max-width:1200px;
    margin:56px auto 0 !important;
    padding:0 !important;
}

.related-tools-section .section-head,
.users-viewed-section .section-head,
.explore-more-tools-section .section-head{
    display:block !important;
    margin-bottom:24px !important;
}

.related-tools-section .section-head h2,
.users-viewed-section .section-head h2,
.explore-more-tools-section .section-head h2{
    font-size:34px !important;
    line-height:1.2 !important;
    margin-bottom:8px !important;
}

.related-tools-section .section-head p,
.users-viewed-section .section-head p,
.explore-more-tools-section .section-head p{
    color:#6b7280 !important;
    font-size:15px !important;
}

.related-tools-grid,
#recently-viewed-tools{
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;
    gap:22px !important;
    align-items:stretch !important;
}

/* Alternatives / collections pages related to tools */

.alternatives-hero,
.collection-hero{
    margin:40px 0 60px;
}

.alternatives-hero h1,
.collection-hero h1{
    font-size:48px;
    line-height:1.2;
    margin-bottom:20px;
}

.collection-hero h1{
    font-size:52px;
}

.alternatives-hero p,
.collection-hero p{
    font-size:18px;
    color:#555;
    max-width:850px;
    line-height:1.8;
}

/* Mobile */

@media(max-width:768px){

    .tool-layout{
        padding:24px 14px 70px !important;
    }

    .tool-container{
        padding:24px !important;
        border-radius:22px !important;
    }

    .tool-container h1{
        font-size:30px !important;
        line-height:1.2 !important;
    }

    .tool-subtitle{
        font-size:16px;
    }

    .related-tools-grid,
    #recently-viewed-tools{
        grid-template-columns:1fr !important;
    }

    .related-tools-section .section-head h2,
    .users-viewed-section .section-head h2,
    .explore-more-tools-section .section-head h2{
        font-size:28px !important;
    }

    .alternatives-hero h1,
    .collection-hero h1{
        font-size:34px;
    }
}