/* ============================================================
   HERO TOOL (Homepage Featured Tool)
============================================================ */
.hero-tool{background:var(--brand);padding:48px 0 40px;position:relative;overflow:hidden;}
.hero-tool__inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:flex-start;}
.hero-tool__info{color:#fff;}
.hero-tool__badge-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
.hero-tool__title-row{display:flex;align-items:center;gap:14px;margin-bottom:12px;}
.hero-tool__icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:28px;flex-shrink:0;}
.hero-tool__title{color:#fff;font-size:clamp(22px,3.5vw,34px);line-height:1.2;}
.hero-tool__desc{color:rgba(255,255,255,0.8);font-size:15px;line-height:1.7;margin-bottom:20px;}
.hero-tool__how{background:rgba(255,255,255,0.1);border-radius:var(--radius-lg);padding:16px 20px;}
.hero-tool__how h3{color:#fff;font-size:14px;font-weight:600;margin-bottom:10px;}

/* How Steps */
.how-steps{display:flex;flex-direction:column;gap:8px;}
.how-step{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:rgba(255,255,255,0.85);}
.how-step__num{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,0.2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0;}
.how-steps--lg .how-step{font-size:15px;color:var(--text-secondary);}
.how-steps--lg .how-step__num{background:var(--brand-light);color:var(--brand);width:28px;height:28px;font-size:13px;}
.how-steps--lg .how-step p{margin:0;}

/* ============================================================
   TOOL EMBED BOX
============================================================ */
.hero-tool__embed-wrap{display:flex;align-items:flex-start;}
.tool-embed-box{background:#fff;border-radius:var(--radius-xl);overflow:hidden;box-shadow:0 8px 40px rgba(44,44,42,0.2);width:100%;}
.tool-embed-box__header{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;}
.tool-embed-box__title{font-size:14px;font-weight:600;color:var(--text-primary);}
.tool-embed-box__actions{display:flex;gap:6px;}
.tool-action-btn{width:28px;height:28px;border-radius:var(--radius-sm);background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-muted);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all var(--transition);}
.tool-action-btn:hover{background:var(--brand-light);color:var(--brand);border-color:var(--brand);}
.tool-embed-box__body{padding:20px;min-height:300px;}
.tool-embed-box__ad{padding:0 16px 12px;}
.tool-embed-box--fullscreen{position:fixed;inset:0;z-index:9999;border-radius:0;overflow:auto;}

/* Tool Placeholder */
.tool-placeholder{text-align:center;padding:40px 20px;color:var(--text-muted);}
.tool-placeholder__icon{font-size:56px;margin-bottom:16px;}
.tool-placeholder h3{font-size:18px;color:var(--text-primary);margin-bottom:8px;}
.tool-placeholder p{font-size:14px;margin-bottom:20px;}

/* ============================================================
   TOOL PAGE
============================================================ */
.tool-page-header{background:var(--brand);padding:32px 0;}
.tool-page-header__inner{display:flex;align-items:flex-start;gap:20px;margin-top:12px;}
.tool-page-header__icon{width:64px;height:64px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:32px;flex-shrink:0;}
.tool-page-header__badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px;}
.tool-page-header__title{color:#fff;font-size:clamp(20px,3vw,30px);line-height:1.2;}
.tool-page-header__desc{color:rgba(255,255,255,0.8);font-size:14px;margin-top:6px;}

.tool-page-wrap{padding:32px 0;}
.tool-page-layout{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:flex-start;}
.tool-page-main{min-width:0;}

/* Tool Section */
.tool-section{margin-top:32px;padding:28px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-xl);}
.tool-section__title{font-size:18px;font-weight:600;margin-bottom:20px;color:var(--text-primary);}
.tool-content{font-size:15px;line-height:1.8;color:var(--text-secondary);}
.tool-content h2,.tool-content h3{color:var(--text-primary);margin:20px 0 10px;}
.tool-content p{margin-bottom:14px;}
.tool-content ul,.tool-content ol{padding-left:20px;margin-bottom:14px;}
.tool-content li{margin-bottom:6px;}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:8px;}
.faq-item{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;}
.faq-item__q{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--bg);border:none;text-align:left;font-size:14px;font-weight:500;color:var(--text-primary);cursor:pointer;transition:background var(--transition);}
.faq-item__q:hover{background:var(--bg-secondary);}
.faq-item__q[aria-expanded=true]{background:var(--brand-light);color:var(--brand);}
.faq-item__arrow{transition:transform var(--transition);flex-shrink:0;}
.faq-item__a{padding:12px 16px;background:var(--bg-secondary);border-top:1px solid var(--border);}
.faq-item__a p{font-size:14px;color:var(--text-secondary);margin:0;}

/* ============================================================
   SIDEBAR
============================================================ */
.tool-page-sidebar{}
.sidebar-sticky{position:sticky;top:80px;display:flex;flex-direction:column;gap:16px;}
.sidebar-sticky.is-sticky{top:80px;}
.sidebar-widget{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px;overflow:hidden;}
.sidebar-widget__title{font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--border);}
.sidebar-tools-list{display:flex;flex-direction:column;gap:2px;}
.sidebar-tool-item a{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:var(--radius-sm);font-size:13px;color:var(--text-primary);transition:background var(--transition);text-decoration:none;}
.sidebar-tool-item a:hover{background:var(--brand-light);color:var(--brand);}
.sidebar-tool-item__icon{font-size:16px;flex-shrink:0;}
.sidebar-tool-item__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sidebar-widget--cta{background:var(--brand-light);border-color:var(--brand);}
.sidebar-widget--cta p{font-size:13px;color:var(--brand-dark);font-weight:500;margin-bottom:10px;}

/* ============================================================
   WHY GRID
============================================================ */
.why-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;}
.why-grid--2{grid-template-columns:repeat(2,1fr);}
.why-card{display:flex;align-items:flex-start;gap:12px;padding:16px;background:var(--bg-secondary);border-radius:var(--radius-lg);border:1px solid var(--border);}
.why-card__icon{font-size:24px;flex-shrink:0;}
.why-card__title{font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:4px;}
.why-card__desc{font-size:13px;color:var(--text-muted);}
.home-bottom-layout{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:flex-start;}
.home-bottom-sidebar{position:sticky;top:80px;}

/* ============================================================
   TOOLS GRID AD SLOT
============================================================ */
.tools-grid__ad{grid-column:1/-1;}

/* ============================================================
   PAGINATION
============================================================ */
.pagination{display:flex;flex-wrap:wrap;gap:6px;}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:var(--radius-md);border:1px solid var(--border);font-size:14px;color:var(--text-secondary);transition:all var(--transition);}
.pagination .page-numbers:hover,.pagination .page-numbers.current{background:var(--brand);color:#fff;border-color:var(--brand);}

/* ============================================================
   NO POSTS
============================================================ */
.no-posts{text-align:center;padding:60px 20px;}
.no-posts h2{font-size:22px;color:var(--text-primary);margin:12px 0 8px;}

/* ============================================================
   FOOTER
============================================================ */
.footer-newsletter{background:var(--brand-light);padding:28px 0;border-top:1px solid var(--border);}
.footer-newsletter__inner{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.footer-newsletter__inner h3{font-size:16px;font-weight:600;color:var(--brand-dark);}
.footer-newsletter__inner p{font-size:13px;color:var(--brand);margin-top:4px;}
.footer-newsletter__form{display:flex;gap:8px;flex-wrap:wrap;}
.footer-newsletter__form input{padding:9px 14px;border:1.5px solid rgba(83,74,183,0.3);border-radius:var(--radius-md);font-size:14px;background:#fff;outline:none;width:220px;transition:border-color var(--transition);}
.footer-newsletter__form input:focus{border-color:var(--brand);}

.footer-main{background:#2C2C2A;padding:44px 0 36px;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:36px;}
.footer-logo{font-size:18px;font-weight:700;color:#fff;display:inline-block;margin-bottom:10px;}
.footer-logo span{color:#5DCAA5;}
.footer-logo em{font-style:normal;color:rgba(255,255,255,0.4);font-size:14px;}
.footer-brand-col__desc{font-size:13px;color:#888780;line-height:1.7;margin-bottom:10px;}
.footer-main-link{font-size:12px;color:#534AB7;background:rgba(83,74,183,0.12);padding:6px 12px;border-radius:99px;display:inline-block;}
.footer-col h4{font-size:12px;font-weight:600;color:#D3D1C7;margin-bottom:14px;text-transform:uppercase;letter-spacing:0.06em;}
.footer-col ul li{margin-bottom:8px;}
.footer-col ul li a{font-size:13px;color:#888780;transition:color var(--transition);}
.footer-col ul li a:hover{color:#fff;}
.footer-bottom{background:#222220;padding:14px 0;}
.footer-bottom__inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;}
.footer-bottom p{font-size:12px;color:#5F5E5A;}
.footer-bottom a{color:#534AB7;}

/* ============================================================
   RESPONSIVE
============================================================ */
@media(max-width:1024px){
  .hero-tool__inner{grid-template-columns:1fr;}
  .tool-page-layout{grid-template-columns:1fr;}
  .tool-page-sidebar{display:none;}
  .home-bottom-layout{grid-template-columns:1fr;}
  .home-bottom-sidebar{display:none;}
}
@media(max-width:768px){
  .hero-tool{padding:32px 0 24px;}
  .tool-page-header__inner{flex-direction:column;}
  .footer-grid{grid-template-columns:1fr 1fr;gap:24px;}
  .why-grid--2{grid-template-columns:1fr;}
}
@media(max-width:500px){
  .footer-grid{grid-template-columns:1fr;}
  .footer-newsletter__inner{flex-direction:column;}
  .footer-newsletter__form input{width:100%;}
}

/* ============================================================
   TOOL HEADER — Compact (Fix)
============================================================ */
.tool-page-header__compact {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.tool-page-header__icon-sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.tool-page-header__title-sm {
    color: #fff;
    font-size: clamp(18px, 2.5vw, 26px);
    line-height: 1.2;
    margin-bottom: 4px;
    font-weight: 600;
}
.tool-page-header__desc-sm {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}
.tool-page-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
/* Override old large title */
.tool-page-header__title { font-size: clamp(18px,2.5vw,26px) !important; }

/* ============================================================
   TOOL EMBED BOX — Header Actions Fix
============================================================ */
.tool-embed-box__actions { display: flex; gap: 6px; align-items: center; }
.tool-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.tool-action-btn:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: var(--brand);
}

/* ============================================================
   FULLSCREEN MODAL
============================================================ */
.tool-fullscreen-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tool-fullscreen-modal[hidden] { display: none; }
.tool-fullscreen-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44,44,42,0.7);
    backdrop-filter: blur(4px);
}
.tool-fullscreen-modal__box {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(44,44,42,0.25);
}
.tool-fullscreen-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.tool-fullscreen-modal__close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.tool-fullscreen-modal__close:hover { background: rgba(255,255,255,0.35); }
.tool-fullscreen-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ============================================================
   SIDEBAR TOOLS LIST — Improved Clickable
============================================================ */
.sidebar-tools-list { list-style: none; padding: 0; margin: 0; }
.sidebar-tool-item { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 2px; }
.sidebar-tool-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}
.sidebar-tool-item a:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: var(--brand-light);
}
.sidebar-tool-item--active a {
    background: var(--brand);
    color: #fff !important;
    border-color: var(--brand);
    font-weight: 500;
}
.sidebar-tool-item--active a:hover {
    background: var(--brand-dark);
    color: #fff !important;
}
.sidebar-tool-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.sidebar-tool-item__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-tool-badge { font-size: 12px; flex-shrink: 0; }
.sidebar-widget--ad { padding: 0; border: none; background: transparent; }

/* ============================================================
   AD WRAP — Clean (no label when empty)
============================================================ */
.ad-wrap { padding: 12px 0; display: flex; justify-content: center; }
.ad-slot { border-radius: var(--radius-md); overflow: hidden; }

/* ============================================================
   TOOL PAGE HEADER — Compact padding
============================================================ */
.tool-page-header { background: var(--brand); padding: 20px 0 24px; }

/* ============================================================
   TOOL HEADER — New Compact Single Line
============================================================ */
.tool-page-header { background: var(--brand); padding: 16px 0 20px; }

.tool-hdr-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.tool-hdr-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.tool-hdr-info { flex: 1; min-width: 0; }
.tool-hdr-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.tool-hdr-title {
    color: #fff !important;
    font-size: clamp(16px, 2.2vw, 22px) !important;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 !important;
}
.tool-hdr-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.tool-hdr-desc {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   ADVERTISEMENT TEXT — Remove completely
============================================================ */
.ad-slot::before { display: none !important; content: none !important; }
.ad-wrap--labeled::before { display: none !important; content: none !important; }

/* ============================================================
   FULL PREVIEW MODAL
============================================================ */
.fs-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fs-modal[hidden] { display: none !important; }
.fs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44,44,42,0.75);
    backdrop-filter: blur(6px);
}
.fs-modal__box {
    position: relative;
    width: 100%;
    max-width: 1060px;
    max-height: 92vh;
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(44,44,42,0.3);
}
.fs-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.fs-modal__close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.fs-modal__close:hover { background: rgba(255,255,255,0.35); }
.fs-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ============================================================
   TOOL ACTION BTN — Full Preview style
============================================================ */
.tool-action-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 12px !important;
    width: auto !important;
    height: auto !important;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.tool-action-btn:hover {
    background: var(--brand-light) !important;
    color: var(--brand) !important;
    border-color: var(--brand) !important;
}

/* Sidebar widget ad — no border/bg */
.sidebar-widget--ad {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ============================================================
   HOMEPAGE — 2 Column Layout
============================================================ */
.hp-wrap { padding: 0 0 48px; }

.hp-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.hp-title-bar__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.hp-title-bar__sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.hp-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: flex-start;
}

/* ── Left Tools Column ── */
.hp-tools-col {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--border-dark) transparent;
}
.hp-tools-col::-webkit-scrollbar { width: 4px; }
.hp-tools-col::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 99px; }

.hp-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}
.hp-tools-count {
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 99px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
}
.hp-tools-list { list-style: none; padding: 6px; margin: 0; }

.hp-tool-item {
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    cursor: pointer;
    transition: all var(--transition);
}
.hp-tool-item > * {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}
.hp-tool-item:hover { background: var(--brand-light); }
.hp-tool-item:hover > * { color: var(--brand); }
.hp-tool-item--active { background: var(--brand) !important; border-radius: var(--radius-md); }
.hp-tool-item--active > * { color: #fff !important; font-weight: 500; }
.hp-tool-item--active:hover { background: var(--brand-dark) !important; }

.hp-tool-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.hp-tool-item--active .hp-tool-icon { background: rgba(255,255,255,0.2) !important; color: #fff !important; }

.hp-tool-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.hp-tool-badge {
    font-size: 10px;
    flex-shrink: 0;
    border-radius: 99px;
    padding: 1px 6px;
}
.hp-tool-badge--hot { background: #FAECE7; color: #993C1D; }
.hp-tool-badge--new { background: var(--brand-light); color: var(--brand); }
.hp-tool-item--active .hp-tool-badge { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Right Preview Column ── */
.hp-preview-col { min-width: 0; }

.hp-tool-hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--brand);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}
.hp-tool-hdr-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.hp-tool-hdr-title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.2;
}
.hp-tool-hdr-desc {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    margin: 0 0 6px;
    line-height: 1.4;
}
.hp-tool-fulllink {
    font-size: 12px;
    color: #9FE1CB;
    font-weight: 500;
    transition: color var(--transition);
}
.hp-tool-fulllink:hover { color: #fff; }

/* Embed Box */
.hp-embed-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.hp-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}
.hp-fs-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--brand-light);
    color: var(--brand);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.hp-fs-btn:hover { background: var(--brand); color: #fff; }
.hp-embed-body { padding: 20px; min-height: 280px; }

/* Why section */
.hp-why { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 20px; }
.hp-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-why-item { display: flex; align-items: flex-start; gap: 10px; }
.hp-why-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.hp-why-item strong { font-size: 13px; color: var(--text-primary); display: block; margin-bottom: 2px; }
.hp-why-item p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ============================================================
   TOOL PAGE — 3 Column Layout
============================================================ */
.tp-wrap { padding: 0 0 48px; }
.tp-layout {
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    gap: 20px;
    align-items: flex-start;
    padding-top: 20px;
}

/* Left column */
.tp-left { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; scrollbar-width: thin; }
.tp-left__inner { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tp-tools-header {
    padding: 11px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}
.tp-tools-list { list-style: none; padding: 6px; margin: 0; }
.tp-tool-item { border-radius: var(--radius-md); margin-bottom: 2px; }
.tp-tool-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition);
}
.tp-tool-item a:hover { background: var(--brand-light); color: var(--brand); }
.tp-tool-item--active a { background: var(--brand); color: #fff; font-weight: 500; }
.tp-tool-item--active a:hover { background: var(--brand-dark); color: #fff; }
.tp-tool-icon {
    width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.tp-tool-item--active .tp-tool-icon { background: rgba(255,255,255,0.2) !important; color: #fff !important; }
.tp-tool-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-hot { font-size: 12px; flex-shrink: 0; }
.tp-tool-arrow { flex-shrink: 0; opacity: 0.7; }

/* Center main */
.tp-main { min-width: 0; }

/* Compact header */
.tp-hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.tp-hdr-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.tp-hdr-title {
    font-size: 18px !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    margin: 0 0 4px !important;
    line-height: 1.2;
    text-decoration: none !important;
    border: none !important;
}
.tp-hdr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-hdr-desc { font-size: 12px; color: var(--text-muted); }

/* Tool embed */
.tp-embed-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.tp-embed-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 500; color: var(--text-primary);
}
.tp-fs-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px;
    background: var(--brand-light); color: var(--brand);
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
    cursor: pointer; border: none; transition: all var(--transition);
}
.tp-fs-btn:hover { background: var(--brand); color: #fff; }
.tp-embed-body { padding: 20px; min-height: 300px; }
.tp-placeholder { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.tp-placeholder div { font-size: 48px; margin-bottom: 12px; }
.tp-placeholder h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 8px; }

/* Tool sections */
.tp-section { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px; }
.tp-section__title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }

/* Right sidebar */
.tp-right { position: sticky; top: 72px; }
.tp-right__sticky { display: flex; flex-direction: column; gap: 14px; }

/* Remove h1 underline from browser default */
.tp-hdr-title { text-decoration: none !important; border-bottom: none !important; }
h1.tp-hdr-title { all: unset; font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media(max-width:1024px){
    .tp-layout { grid-template-columns: 200px 1fr; }
    .tp-right { display: none; }
    .hp-layout { grid-template-columns: 200px 1fr; }
}
@media(max-width:768px){
    .tp-layout { grid-template-columns: 1fr; }
    .tp-left { position: static; max-height: none; }
    .hp-layout { grid-template-columns: 1fr; }
    .hp-tools-col { position: static; max-height: 200px; }
    .hp-why-grid { grid-template-columns: 1fr; }
}
