/* Project-specific additions on top of the TownHub design system. Tokens reuse TownHub colours. */
:root { --c-primary: #4DB7FE; --c-secondary: #384F95; --c-green: #5ECFB1; --c-text: #878C9F; --c-dark: #50596E; --c-line: #eee; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* brand */
.brand-logo { display: inline-flex; align-items: center; gap: 10px; height: 34px; font-family: 'Space Grotesk', sans-serif; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--c-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.brand-text { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.brand-text b { color: var(--c-primary); }
.brand-logo.light .brand-text { color: #fff; }
.main-header .logo-holder { display: block; height: 34px; top: 23px; }
.main-header .logo-holder img { display: none; }

/* header extras */
.main-header button { font-family: inherit; }
.header-search_btn { background: none; border: 0; }
.cart-btn { background: none; border: 0; }
.user-menu { float: right; position: relative; z-index: 30; }
.user-chip { background: none; border: 0; padding: 0; font-weight: 600; color: #fff; font-size: 12px; margin-right: 40px; top: 24px !important; white-space: nowrap; }
.user-initial { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--c-primary); color: #fff; align-items: center; justify-content: center; margin-right: 8px; font-weight: 700; }
.user-dropdown { position: absolute; right: 30px; top: 70px; z-index: 40; width: 210px; background: #fff; border-radius: 8px; box-shadow: 0 6px 30px rgba(0,0,0,.14); padding: 8px 0; }
.user-dropdown a, .user-dropdown button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 18px; color: var(--c-dark); font-size: 13px; font-weight: 600; }
.user-dropdown a:hover, .user-dropdown button:hover { color: var(--c-primary); background: #f7f9fb; }
.user-dropdown i { width: 22px; color: var(--c-primary); }
.suggest-box { position: absolute; left: 4px; right: 4px; top: 54px; background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.2); z-index: 50; overflow: hidden; }
.suggest-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--c-dark); font-size: 14px; border-bottom: 1px solid #f2f2f2; }
.suggest-row:hover { background: #f4f9ff; }
.suggest-row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--c-text); }
.suggest-row .tool-logo { border-radius: 8px; }
.popular-searches { color: #fff; margin-top: 14px; font-size: 13px; clear: both; padding-left: 4px; }
.popular-searches span { opacity: .7; margin-right: 8px; }
.popular-searches a { display: inline-block; margin: 2px 4px; padding: 3px 12px; border-radius: 20px; background: rgba(255,255,255,.14); color: #fff; }
.popular-searches a:hover { background: rgba(255,255,255,.3); }
.mob-nav ul { padding: 0; }
@media (max-width: 1053px) { .user-chip { margin-right: 14px; } .user-chip { font-size: 0; } .user-chip .user-initial { font-size: 14px; margin: 0; } .user-chip .fa-caret-down { display: none; } }

/* tool logo + cards */
.tool-logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; font-weight: 800; font-family: 'Space Grotesk', sans-serif; letter-spacing: -.5px; flex-shrink: 0; }
.tool-grid { display: grid; gap: 22px; width: 100%; float: left; }
.tool-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tool-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tool-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tool-grid.is-list { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .tool-grid.cols-3, .tool-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tool-grid.cols-2, .tool-grid.cols-3, .tool-grid.cols-4 { grid-template-columns: 1fr; } }
.tool-card-wrap { width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; }
.tool-card { position: relative; background: #fff; border-radius: 10px; box-shadow: 0 6px 30px rgba(58,87,135,.09); padding: 22px; height: 100%; display: flex !important; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(58,87,135,.16); }
.tool-card.tier-featured { box-shadow: 0 0 0 2px rgba(77,183,254,.55), 0 6px 30px rgba(58,87,135,.09); }
.tool-card.tier-sponsored { box-shadow: 0 0 0 2px rgba(248,189,56,.7), 0 6px 30px rgba(58,87,135,.09); }
.tool-card-top { display: flex; gap: 14px; align-items: center; }
.tool-card-title { flex: 1; min-width: 0; }
.tool-card-title h3 { font-size: 17px; margin: 0 0 3px; float: none; display: block; }
.tool-card-title h3 a { color: var(--c-secondary); }
.tool-card-title h3 a:hover { color: var(--c-primary); }
.tool-card-meta { font-size: 12px; color: var(--c-text); }
.tool-card-meta strong { color: var(--c-dark); }
.stars { color: #F8BD38; letter-spacing: 1px; }
.tool-card .geodir-js-favorite_btn, .fav-btn { position: static !important; background: #f3f6fa; color: var(--c-dark); border: 0; border-radius: 50%; width: 38px; height: 38px; flex-shrink: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; opacity: 1 !important; font-size: 15px; transform: none; }
.fav-btn.with-label { width: auto; border-radius: 30px; padding: 0 16px; gap: 8px; height: 42px; }
.fav-btn.is-fav { background: #ffe9ef; color: #F75C96; }
.fav-btn span { display: none; }
.fav-btn.with-label span { display: inline; font-size: 13px; font-weight: 600; }
.tool-card-body { padding: 14px 0 0 !important; flex: 1; }
.tool-card-body .small-text { font-size: 14px; line-height: 22px; color: var(--c-text); min-height: 44px; margin-bottom: 12px; }
.tool-card-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.price-badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .4px; }
.soft-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 4px; background: #eef5fc; color: var(--c-secondary); }
.soft-new { background: #e8f9f3; color: #1d9a76; }
.placement { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.placement-featured { background: #e7f4ff; color: #1b88d4; }
.placement-sponsored { background: #fff4d6; color: #a97800; }
.tool-card .geodir-category-footer { border-top: 1px solid var(--c-line); margin-top: 16px; padding: 14px 0 0 !important; display: flex !important; align-items: center; justify-content: space-between; position: static; height: auto; }
.tool-card .geodir-category-footer .listing-item-category-wrap { position: static; }
.tool-card-price { font-weight: 700; color: var(--c-secondary); font-size: 13px; }
.tool-card-list .tool-card { flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; }
.tool-card-list .tool-card-top { flex: 0 0 300px; }
.tool-card-list .tool-card-body { flex: 1; padding: 0 !important; min-width: 220px; }
.tool-card-list .geodir-category-footer { border: 0; margin: 0; padding: 0 !important; flex: 0 0 220px; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 900px) { .tool-card-list .tool-card { flex-direction: column; align-items: stretch; } .tool-card-list .tool-card-top, .tool-card-list .geodir-category-footer { flex: initial; } }

/* misc ui */
.empty-state { text-align: center; padding: 70px 20px; background: #fff; border-radius: 10px; width: 100%; float: left; }
.empty-state > i { font-size: 44px; color: #cbd5e1; margin-bottom: 16px; display: block; }
.empty-state h3 { float: none; color: var(--c-secondary); margin-bottom: 8px; }
.empty-state .btn { margin-top: 18px; float: none; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 5000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #2b3a67; color: #fff; padding: 12px 18px; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.25); font-size: 14px; animation: toastin .25s ease; }
.toast-err { background: #c0392b; }
.toast i { margin-right: 6px; color: var(--c-green); }
@keyframes toastin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.form-err { color: #e0434f; font-size: 12px; margin: 4px 0 8px; float: left; width: 100%; }
.form-ok { color: #1d9a76; font-size: 13px; }
.demo-note { margin: 18px 30px 0; padding: 12px; background: #f4f9ff; border-radius: 8px; font-size: 12px; float: left; width: calc(100% - 60px); }
.demo-note strong { display: block; margin-bottom: 6px; color: var(--c-secondary); }
.demo-note button { display: block; background: none; border: 0; color: var(--c-primary); padding: 2px 0; text-align: left; font-size: 12px; }
.main-register-holder .main-register { overflow: visible; }
.main-register-holder .custom-form { padding: 0 30px; }
.custom-form input, .custom-form textarea, .custom-form select { font-family: inherit; }
.chip { display: inline-block; padding: 5px 12px; margin: 0 6px 6px 0; border-radius: 20px; background: #eef5fc; color: var(--c-secondary); font-size: 13px; font-weight: 500; }
a.chip:hover { background: var(--c-primary); color: #fff; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status-approved, .status-published, .status-active, .status-ok { background: #e3f8f1; color: #1a8f6d; }
.status-pending { background: #fff4d6; color: #a97800; }
.status-draft, .status-archived { background: #eceff4; color: #5a6477; }
.status-rejected, .status-suspended, .status-err { background: #ffe6ea; color: #c4334a; }
.btn-plain { background: none; border: 0; color: var(--c-primary); font-weight: 600; padding: 0; }
.btn-plain.danger { color: #e0434f; }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs-row button { border: 1px solid #dfe6ee; background: #fff; color: var(--c-dark); border-radius: 30px; padding: 8px 18px; font-size: 13px; font-weight: 600; }
.tabs-row button.on, .tabs-row button:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.content > section { position: relative; }
.pad-sec { padding: 70px 0; float: left; width: 100%; }
.fl-wrap.gap-top { margin-top: 24px; }
.cta-band { background: linear-gradient(135deg, #4DB7FE, #384F95); color: #fff; border-radius: 12px; padding: 40px; text-align: center; float: left; width: 100%; }
.cta-band h3 { color: #fff; float: none; font-size: 26px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.cta-band .btn { float: none; display: inline-block; }

/* home */
.home-hero { padding: 150px 0 90px; float: left; width: 100%; position: relative; overflow: hidden; }
.home-hero .intro-item h1 { font-size: 46px; line-height: 56px; margin-bottom: 14px; }
.home-hero .intro-item h3 { font-size: 15px; line-height: 24px; font-weight: 500; opacity: .92; max-width: 640px; margin: 0 auto; float: none; }
.home-hero .hl { color: #5ECFB1; }
.hero-search-box { margin-top: 40px; position: relative; z-index: 5; }
.hero-search-form { background: #fff; border-radius: 8px; box-shadow: 0 0 0 8px rgba(255,255,255,.2); display: flex; align-items: center; padding: 6px 6px 6px 18px; gap: 10px; }
.hero-search-form > i { color: var(--c-primary); font-size: 18px; }
.hero-search-form input { flex: 1; border: 0; height: 50px; min-width: 0; padding: 0 6px; font-size: 15px; background: none; float: none; }
.hero-search-form select { border: 0; border-left: 1px solid #eee; height: 50px; padding: 0 10px; background: none; color: var(--c-dark); max-width: 190px; font-size: 14px; }
.hero-search-form .main-search-button { border: 0; border-radius: 6px; color: #fff; font-weight: 600; flex-shrink: 0; }
@media (max-width: 768px) { .hero-search-form { flex-wrap: wrap; padding: 10px; } .hero-search-form input { flex: 1 1 70%; } .hero-search-form select { max-width: none; flex: 1; border: 1px solid #eee; border-radius: 6px; } .hero-search-form .main-search-button { width: 100% !important; } .home-hero .intro-item h1 { font-size: 30px; line-height: 40px; } }
.home-hero .hero-categories { margin-top: 36px; }
.stat-strip { display: flex; justify-content: space-around; padding: 26px 0; flex-wrap: wrap; gap: 16px; }
.stat-strip li { text-align: center; }
.stat-strip strong { display: block; font-size: 30px; color: var(--c-secondary); font-family: 'Space Grotesk', sans-serif; font-weight: 800; }
.stat-strip span { font-size: 13px; color: var(--c-text); }
.home-stats { float: left; width: 100%; border-bottom: 1px solid #eee; background: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; float: left; width: 100%; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(58,87,135,.07); transition: transform .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(58,87,135,.15); }
.cat-ico { width: 44px; height: 44px; border-radius: 10px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 8px; }
.cat-name { font-weight: 700; color: var(--c-secondary); font-size: 15px; font-family: 'Space Grotesk', sans-serif; }
.cat-count { font-size: 12px; color: var(--c-text); }
.collection-card { display: block; background: #fff; border-radius: 10px; padding: 26px; box-shadow: 0 6px 30px rgba(58,87,135,.09); transition: transform .2s; }
.collection-card:hover { transform: translateY(-3px); }
.collection-logos { display: flex; margin-bottom: 14px; }
.collection-logos .tool-logo { border: 3px solid #fff; margin-right: -8px; }
.collection-card h3 { float: none; font-size: 19px; color: var(--c-secondary); margin-bottom: 6px; }
.collection-card p { font-size: 14px; margin-bottom: 10px; }
.collection-count { font-size: 13px; font-weight: 600; color: var(--c-primary); }
.chip-lg { font-size: 14px; padding: 8px 18px; margin: 5px; }
.article-card { display: block; background: #fff; border-radius: 10px; padding: 26px; box-shadow: 0 6px 30px rgba(58,87,135,.09); transition: transform .2s; }
.article-card:hover { transform: translateY(-3px); }
.article-card h3 { float: none; font-size: 18px; color: var(--c-secondary); margin: 8px 0; line-height: 25px; }
.article-card p { font-size: 14px; margin-bottom: 12px; }
.article-card small { color: var(--c-text); }
.article-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--c-primary); letter-spacing: .6px; }

/* #main is faded in by TownHub's jQuery; we do it in CSS and let it grow with content */
#main { opacity: 1; position: relative; height: auto; min-height: 100vh; float: left; }

/* template button resets / hero contrast */
.show-reg-form, .nav-button-wrap, .main-header button.avatar-img { background: none; border: 0; font-family: inherit; }
.nav-button-wrap { background: #4DB7FE; }
.home-hero .hero-categories li a, .home-hero .hero-categories li a i { color: #fff; }
.home-hero .hero-categories li a:hover, .home-hero .hero-categories li a:hover i { color: #5ECFB1; }

/* directory */
.filter-panel { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 6px 30px rgba(58,87,135,.08); float: left; width: 100%; }
.filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--c-secondary); }
.filter-group { margin-bottom: 20px; float: left; width: 100%; }
.filter-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--c-text); margin-bottom: 10px; }
.filter-tags ul li { width: 100%; }
.filter-group .nice-select { width: 100%; float: none; height: 44px; line-height: 42px; }
.filter-group .nice-select .list { max-height: 260px; overflow-y: auto; }
.mob-nav-content-btn { display: none; }
@media (max-width: 1064px) { .mob-nav-content-btn.show-list-wrap-search { display: block; width: 100%; border: 0; margin-bottom: 14px; } .filters-wrap { display: none; } .filters-wrap.open { display: block; margin-bottom: 16px; float: left; width: 100%; } }
.dir-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px !important; margin-bottom: 8px; }
.dir-search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.dir-search > i { position: absolute; left: 14px; color: var(--c-primary); }
.dir-search input { width: 100%; height: 46px; padding: 0 40px 0 40px; border: 1px solid #e5eaf0; border-radius: 6px; float: none; background: #f7f9fb; }
.clear-q { position: absolute; right: 8px; background: none; border: 0; color: var(--c-text); width: 30px; height: 30px; }
.dir-opts { display: flex; align-items: center; gap: 10px; }
.dir-opts .nice-select { width: 150px; float: none; height: 44px; line-height: 42px; }
.grid-opt { float: none; margin: 0; }
.grid-btn { width: 40px; height: 40px; border: 0; background: #f3f6fa; border-radius: 6px; color: var(--c-dark); }
.grid-btn.act-grid-opt { background: var(--c-primary); color: #fff; }
.grid-opt ul { display: flex; gap: 6px; }
.result-meta { margin: 8px 2px 16px; float: left; width: 100%; font-size: 14px; }
.sponsor-note { color: var(--c-text); font-size: 12px; }
.subcat-row { float: left; width: 100%; margin-bottom: 14px; }
.tool-card .geodir-category-footer .listing-item-category-wrap span { font-size: 12px; }

/* category cards */
.cat-card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 6px 30px rgba(58,87,135,.08); }
.cat-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cat-card-head h3 { float: none; font-size: 18px; color: var(--c-secondary); margin: 0; }
.cat-card-head small { color: var(--c-text); }
.cat-card p { font-size: 14px; margin-bottom: 12px; }
.cat-card-head .cat-ico { margin: 0; }

/* tool detail */
.tool-hero { padding: 120px 0 40px; float: left; width: 100%; position: relative; overflow: hidden; color: #fff; }
.tool-hero-preview { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tool-hero-preview iframe { display: block; width: 100%; height: max(100%, 680px); border: 0; opacity: .72; }
.tool-hero-preview::after { content: ""; position: absolute; inset: 0; background: rgba(15, 34, 70, .76); }
.tool-hero-preview + .container { position: relative; }
.tool-hero .breadcrumbs a, .tool-hero .breadcrumbs span { color: rgba(255,255,255,.85); }
.tool-hero-inner { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; position: relative; z-index: 3; }
.tool-hero-inner .tool-logo { border: 4px solid rgba(255,255,255,.35); border-radius: 22px; }
.tool-hero-text { flex: 1; min-width: 260px; }
.tool-hero-text h1 { font-size: 34px; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 800; margin-bottom: 6px; float: none; }
.tool-hero-text p { color: rgba(255,255,255,.92); font-size: 16px; margin-bottom: 12px; }
.tool-hero-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; }
.tool-hero-meta .stars { color: #ffd76a; }
.tool-hero-cta { text-align: right; }
.visit-btn { float: none !important; display: inline-block; margin-bottom: 12px; background: #fff !important; color: #384F95 !important; }
.cta-row { display: flex; gap: 8px; justify-content: flex-end; }
.cta-row .fav-btn { background: rgba(255,255,255,.2); color: #fff; width: auto; }
.cta-row .fav-btn.is-fav { background: #fff; color: #F75C96; }
.cta-row .fav-btn span { display: inline; font-size: 13px; font-weight: 600; margin-left: 6px; }
.cta-row .fav-btn { padding: 0 16px; border-radius: 30px; height: 42px; width: auto; }
.status-banner { background: rgba(255,255,255,.95); color: #8a5b00; border-radius: 6px; padding: 10px 16px; margin-bottom: 16px; font-size: 14px; position: relative; z-index: 3; }
.detail-card { background: #fff; border-radius: 10px; padding: 26px; margin-bottom: 22px; box-shadow: 0 6px 30px rgba(58,87,135,.07); float: left; width: 100%; }
.detail-card h3, .detail-card h4 { float: none; color: var(--c-secondary); margin-bottom: 14px; font-size: 18px; }
.detail-card h4 { font-size: 15px; }
.detail-card h3 i, .detail-card h4 i { color: var(--c-primary); margin-right: 8px; }
.detail-card p { margin-bottom: 12px; font-size: 15px; line-height: 26px; }
.detail-side .detail-card { padding: 22px; }
.check-list li { padding: 6px 0; font-size: 15px; }
.check-list i { color: var(--c-green); margin-right: 8px; }
.pc-title { font-size: 14px; margin-bottom: 8px; font-weight: 700; }
.pc-pro { color: #1a8f6d; } .pc-con { color: #d4574c; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f3f6; font-size: 13px; }
.kv li span { color: var(--c-text); } .kv li b { color: var(--c-dark); text-align: right; font-weight: 600; }
.price-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 22px; color: var(--c-secondary); }
.note-small { font-size: 12px !important; color: var(--c-text); line-height: 18px !important; margin: 10px 0 !important; }
.report-link { background: none; border: 0; color: var(--c-text); font-size: 13px; padding: 4px 0; }
.report-link:hover { color: #e0434f; }
.chip.tag { background: #f4f6f9; color: var(--c-dark); }
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .shots-grid { grid-template-columns: 1fr; } }
.shot-btn { padding: 0; border: 0; background: none; border-radius: 8px; overflow: hidden; }
.shot-btn img { width: 100%; display: block; }
.shot { border-radius: 8px; display: flex; align-items: flex-end; padding: 10px; color: #fff; font-size: 12px; font-weight: 600; }
.rating-summary { display: flex; gap: 30px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.big-score { text-align: center; } .big-score strong { display: block; font-size: 42px; color: var(--c-secondary); font-family: 'Space Grotesk', sans-serif; }
.dist { flex: 1; min-width: 200px; } .dist > div { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 3px 0; }
.dist .bar { flex: 1; height: 7px; background: #eef1f5; border-radius: 4px; overflow: hidden; } .dist .bar i { display: block; height: 100%; background: #F8BD38; }
.review-list { margin-bottom: 20px; } .review-list li { border-top: 1px solid #f0f2f5; padding: 16px 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .review-head > div { flex: 1; } .review-head small { display: block; color: var(--c-text); }
.review-head .user-initial { margin: 0; }
.review-list h5 { color: var(--c-secondary); margin-bottom: 4px; }
.review-form { border-top: 1px solid #f0f2f5; padding-top: 18px; float: left; width: 100%; }
.review-form h4 { float: none; margin-bottom: 10px; }
.star-input { margin-bottom: 12px; } .star-input button { background: none; border: 0; font-size: 26px; color: #cfd6df; padding: 0 3px; } .star-input button.on { color: #F8BD38; }
.review-form textarea { width: 100%; }
.review-form .btn { float: none; margin-top: 8px; }

.tool-hero-inner { float: left; clear: both; width: 100%; }
.tool-hero .breadcrumbs { float: left; width: 100%; }


.detail-card, .tool-hero-text, .tool-hero-text *, .empty-state, .filter-panel, .cat-card, .article-card, .collection-card { text-align: left; }
.empty-state { text-align: center; }
.tool-hero .breadcrumbs:before, .tool-hero .breadcrumbs:after { display: none; }
.fav-btn.with-label span { margin-left: 4px; }


.faq-item { border-bottom: 1px solid #eef0f4; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 16px 0; font-weight: 700; color: var(--c-secondary); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.faq-q.open, .faq-q:hover { color: var(--c-primary); }
.faq-a { padding: 0 0 16px; color: var(--c-text); line-height: 26px; }
.prose h3 { margin-top: 10px; }
.prose .lead { font-size: 18px; color: var(--c-secondary); }
.plan { position: relative; } .plan-hl { box-shadow: 0 0 0 2px var(--c-primary), 0 10px 40px rgba(58,87,135,.15); }
.plan-flag { position: absolute; top: -12px; right: 20px; background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.plan-price { margin-bottom: 14px; } .plan-price strong { font-size: 36px; color: var(--c-secondary); font-family: 'Space Grotesk', sans-serif; } .plan-price span { color: var(--c-text); font-size: 13px; }
.plan .check-list { margin-bottom: 18px; }

/* tool form */
.tool-form fieldset { border: 0; border-top: 1px solid #eef0f4; padding: 22px 0 6px; margin: 0; float: left; width: 100%; }
.tool-form fieldset:first-child { border-top: 0; padding-top: 0; }
.tool-form legend { font-weight: 800; color: var(--c-secondary); font-family: 'Space Grotesk', sans-serif; font-size: 17px; margin-bottom: 14px; float: left; width: 100%; }
.tf-field { margin-bottom: 14px; } .tf-field > label { display: block; margin-bottom: 6px; }
.tf-field small { color: var(--c-text); font-weight: 400; }
.tool-form input[type=text], .tool-form input[type=number], .tool-form input[type=date], .tool-form input:not([type]), .tool-form textarea { width: 100%; }
.list-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .list-row input { flex: 1; margin: 0; }
.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid #dfe6ee; background: #fff; color: var(--c-dark); padding: 6px 14px; border-radius: 20px; font-size: 13px; }
.chip-btn.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tag-box { display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid #eee; background: #f7f9fb; border-radius: 6px; padding: 6px; }
.tag-box input { border: 0 !important; background: none !important; flex: 1; min-width: 140px; width: auto !important; height: 34px !important; }
.tag-box .chip { margin: 0; } .tag-box .chip button { background: none; border: 0; color: inherit; font-size: 16px; padding: 0 0 0 4px; }
.logo-pick { display: flex; gap: 14px; align-items: center; }
.shots-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.shots-edit > div { position: relative; width: 120px; height: 80px; } .shots-edit img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.shots-edit button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; }
.shot-add { width: 120px; height: 80px; border: 2px dashed #cdd6e0; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--c-text); cursor: pointer; }
.form-actions { float: left; width: 100%; padding: 20px 0 4px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid #eef0f4; margin-top: 10px; }
.form-actions .btn { float: none; margin: 0; }
.tf-err { float: none; }

/* dashboard */
.dash-menu-wrap { float: left; width: 100%; }
@media (max-width: 1064px) { .dash-menu-wrap { display: none; } .dash-menu-wrap.open { display: block; margin-bottom: 16px; } .mob-nav-content-btn.init-dsmen { display: block; width: 100%; margin-bottom: 12px; } }
.main-dashboard-sec .col-md-9 { padding-bottom: 60px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; float: left; width: 100%; }
@media (max-width: 800px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 6px 30px rgba(58,87,135,.08); display: flex; flex-direction: column; gap: 4px; }
.stat-card i { color: var(--c-primary); font-size: 22px; } .stat-card strong { font-size: 30px; color: var(--c-secondary); font-family: 'Space Grotesk', sans-serif; } .stat-card span { font-size: 13px; color: var(--c-text); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 16px; background: #f7f9fb; color: var(--c-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-top: 1px solid #f0f2f5; vertical-align: middle; }
.data-table tr:hover td { background: #fafcff; }
.row-actions { white-space: nowrap; } .row-actions > * { margin-right: 12px; }
.reject-note { display: block; color: #c4334a; font-size: 12px; margin-top: 2px; max-width: 320px; white-space: normal; }
.coll-tools { margin: 12px 0; } .coll-tools li { display: inline-flex; align-items: center; gap: 6px; background: #eef5fc; border-radius: 20px; padding: 4px 6px 4px 14px; margin: 0 6px 6px 0; font-size: 13px; }
.dashboard-title h3 { float: none; }

/* admin */
.admin-shell { display: flex; min-height: calc(100vh - 80px); float: left; width: 100%; padding-top: 80px; background: #f4f6fa; }
.admin-side { width: 240px; background: #2e3f6e; color: #fff; flex-shrink: 0; padding: 20px 0; position: sticky; top: 80px; align-self: flex-start; min-height: calc(100vh - 80px); }
.admin-side-head { padding: 0 24px 16px; font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.admin-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 24px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; }
.admin-side nav a i { width: 18px; text-align: center; color: #4DB7FE; }
.admin-side nav a:hover, .admin-side nav a.on { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 3px 0 0 #4DB7FE; }
.admin-side nav a b { margin-left: auto; background: #F75C96; font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.admin-exit { display: block; padding: 18px 24px; color: rgba(255,255,255,.6); font-size: 13px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-main { flex: 1; min-width: 0; padding: 28px 32px 80px; }
.admin-burger { display: none; }
@media (max-width: 900px) { .admin-shell { flex-direction: column; } .admin-side { display: none; width: 100%; position: static; min-height: 0; } .admin-side.open { display: block; } .admin-burger { display: block; width: 100%; background: #2e3f6e; color: #fff; border: 0; padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; text-align: left; } .admin-main { padding: 16px 16px 60px; } }
.admin-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-title h1 { font-size: 26px; color: var(--c-secondary); font-family: 'Space Grotesk', sans-serif; font-weight: 800; float: none; margin: 0 0 4px; }
.admin-title p { margin: 0; font-size: 14px; }
.admin-title .btn { float: none; margin: 0; }
.admin-main .detail-card { margin-bottom: 20px; }
.admin-main .detail-card h4 { font-size: 15px; }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; float: left; width: 100%; }
@media (max-width: 800px) { .admin-cards { grid-template-columns: repeat(2, 1fr) !important; } }
.admin-card { background: #fff; border: 0; text-align: left; border-radius: 10px; padding: 20px; box-shadow: 0 4px 20px rgba(58,87,135,.07); display: flex; flex-direction: column; gap: 2px; }
.admin-card i { color: var(--c-primary); font-size: 20px; margin-bottom: 4px; } .admin-card strong { font-size: 28px; color: var(--c-secondary); font-family: 'Space Grotesk', sans-serif; } .admin-card span { font-size: 13px; color: var(--c-text); }
.admin-card.warn { box-shadow: 0 0 0 2px #F8BD38; }
.admin-main .row { margin-left: -10px; margin-right: -10px; }
.admin-main .row > [class*=col-] { padding-left: 10px; padding-right: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0; } .bar-row > span { width: 150px; flex-shrink: 0; } .bar-row .bar { flex: 1; height: 9px; background: #eef1f5; border-radius: 5px; overflow: hidden; } .bar-row .bar i { display: block; height: 100%; background: var(--c-primary); }
.activity li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #f0f2f5; font-size: 14px; } .activity li i { color: var(--c-primary); width: 18px; } .activity li small { margin-left: auto; color: var(--c-text); white-space: nowrap; }
.admin-filters { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.admin-filters input { flex: 1; min-width: 220px; height: 44px; padding: 0 14px; border: 1px solid #e5eaf0; border-radius: 6px; background: #fff; float: none; }
.admin-filters .nice-select { width: 190px; float: none; height: 44px; line-height: 42px; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #2e3f6e; color: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.bulk-bar button { background: rgba(255,255,255,.14); color: #fff; border: 0; padding: 6px 12px; border-radius: 4px; font-size: 13px; } .bulk-bar button:hover { background: rgba(255,255,255,.28); } .bulk-bar .danger { background: #c0392b; }
.th-btn { background: none; border: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; padding: 0; } .th-btn i { margin-left: 4px; font-size: 10px; }
.cell-tool { display: flex; align-items: center; gap: 10px; } .cell-tool small { display: block; color: var(--c-text); font-size: 11px; }
.flags { white-space: nowrap; } .flag { background: none; border: 0; color: #d3d9e2; font-size: 17px; padding: 2px 4px; } .flag.on { color: #F8BD38; } .flag.on:nth-child(2) { color: #5ECFB1; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 14px; } .pager button { border: 1px solid #dfe6ee; background: #fff; border-radius: 6px; padding: 7px 16px; } .pager button:disabled { opacity: .4; }
.data-table select { height: 34px; border: 1px solid #dfe6ee; border-radius: 6px; background: #fff; padding: 0 8px; }
.queue-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .queue-head .btn { padding: 0 16px; height: 38px; line-height: 38px; }
.cat-dot { display: inline-flex; width: 28px; height: 28px; border-radius: 7px; color: #fff; align-items: center; justify-content: center; font-size: 13px; vertical-align: middle; margin-right: 6px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #f0f2f5; gap: 14px; } .switch-row small { display: block; color: var(--c-text); font-size: 12px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; } .switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; float: none; }
.switch i { position: absolute; inset: 0; background: #cfd6df; border-radius: 12px; transition: .2s; } .switch i:after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.switch input:checked + i { background: var(--c-primary); } .switch input:checked + i:after { left: 23px; } .switch input:focus-visible + i { outline: 2px solid var(--c-secondary); }
.stepper { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; flex-wrap: wrap; float: left; width: 100%; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text); padding: 6px 14px 6px 6px; background: #fff; border-radius: 30px; } .stepper li span { width: 24px; height: 24px; border-radius: 50%; background: #e4e9f0; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper li.on { color: var(--c-secondary); font-weight: 700; } .stepper li.on span { background: var(--c-primary); } .stepper li.done span { background: var(--c-green); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #c6d3e3; border-radius: 12px; padding: 44px 20px; cursor: pointer; background: #f9fbfe; text-align: center; float: left; width: 100%; } .dropzone:hover { border-color: var(--c-primary); } .dropzone i { font-size: 38px; color: var(--c-primary); } .dropzone strong { color: var(--c-secondary); }
.compliance { margin-top: 18px; padding: 16px 18px; background: #fffaf0; border-radius: 8px; font-size: 13px; float: left; width: 100%; } .compliance ul { margin: 8px 0 0 18px; list-style: disc; } .compliance li { margin-bottom: 4px; }
.map-table td.sample { color: var(--c-text); font-size: 12px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-err td { background: #fff8f8; } .v-err { color: #c4334a; font-size: 12px; } .v-warn { color: #a97800; font-size: 12px; } .v-dup { color: #5b4bc4; font-size: 12px; } .v-ok { color: #1a8f6d; font-size: 12px; } .err-line { font-size: 13px; color: #c4334a; padding: 3px 0; }
.mode-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; } .mode-row label { display: inline-flex; gap: 6px; align-items: center; } .mode-row input { float: none; width: auto; height: auto; }
.data-table input[type=checkbox], .mode-row input[type=radio] { width: 16px; height: 16px; float: none; }

/* fixes after first visual pass */
.tool-card, .tool-card * { text-align: left; }
.tool-card .fav-btn, .tool-card .geodir-js-favorite_btn { background: #f3f6fa !important; color: var(--c-dark) !important; box-shadow: none; }
.tool-card .fav-btn.is-fav { background: #ffe9ef !important; color: #F75C96 !important; }
.tool-card .fav-btn i { color: inherit !important; font-size: 15px; position: static; margin: 0; line-height: 1; }
.breadcrumbs:before, .breadcrumbs:after { display: none !important; }
.breadcrumbs.inline-breadcrumbs { padding-left: 0; }
.tool-card-top .tool-card-title h3 { text-align: left; }
.geodir-category-listing.tool-card:hover { transform: translateY(-3px); }
.tool-card .fav-btn i, .fav-btn i { background: none !important; width: auto !important; height: auto !important; border-radius: 0 !important; line-height: 1 !important; color: inherit !important; }
.tool-card .fav-btn.is-fav i { color: #F75C96 !important; }
.fav-btn.with-label i { margin: 0; }

/* unified form controls (template only styled input[type=text] with icon padding) */
.custom-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]), .custom-form textarea, .custom-form select, .admin-filters input {
  display: block; float: none; width: 100%; border: 1px solid #e5e7f2; background: #f9f9f9; border-radius: 4px; padding: 13px 16px; color: #50596E; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; -webkit-appearance: none; appearance: none; margin-bottom: 12px; box-sizing: border-box; height: 48px; }
.custom-form textarea { height: auto; min-height: 90px; }
.custom-form input:focus, .custom-form textarea:focus, .custom-form select:focus { border-color: #4DB7FE; background: #fff; }
.custom-form select { background-image: none; padding-right: 30px; }
.custom-form label { display: block; float: none; width: 100%; text-align: left; margin-bottom: 6px; font-size: 13px; color: #878C9F; font-weight: 500; }
.custom-form label span { color: #e0434f; }
.custom-form .filter-tags label, .custom-form .switch label { display: inline-block; width: auto; }
.custom-form .filter-tags input, .data-table input[type=checkbox] { display: none; }
.data-table input[type=checkbox] { display: inline-block; }
.tag-box input { margin: 0 !important; border: 0 !important; background: none !important; height: 34px !important; padding: 0 8px !important; }
.list-row input { margin-bottom: 0 !important; }
.custom-form .tf-field input[type=color] { width: 60px; height: 36px; padding: 2px; }
.custom-form .btn { float: none; margin-top: 8px; }
.admin-filters input { margin: 0; flex: 1; }
.dir-search input { margin: 0 !important; padding: 0 40px !important; }
.review-form .btn, .custom-form .float-btn { float: none; }

.status-banner { clear: both; float: left; width: 100%; margin: 14px 0; }
.main-dashboard-sec .col-md-9::after, .admin-main::after { content: ""; display: table; clear: both; }
.dashboard-title { float: left; width: 100%; margin-bottom: 18px; }
.dashboard-title h3 { text-align: left; }
.tool-hero .status-banner { margin-top: 0; }
.detail-card .btn.border-btn, .form-actions .btn.border-btn, .admin-title .btn.border-btn, .empty-state .btn.border-btn { color: #384F95; border-color: #4DB7FE; background: #fff; }
.detail-card .btn.border-btn:hover, .form-actions .btn.border-btn:hover, .admin-title .btn.border-btn:hover { background: #4DB7FE; color: #fff; }
.btn.border-btn { height: 44px; line-height: 40px; }

/* mobile header */
@media (max-width: 600px) {
  .brand-text { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .main-header .show-reg-form { font-size: 0; margin-right: 12px; }
  .main-header .show-reg-form i { font-size: 17px; margin: 0; }
  .main-header .show-reg-form:before { display: none; }
  .user-menu { margin-right: 0; }
  .user-dropdown { right: -10px; }
  .main-header .cart-btn { margin-right: 8px; }
}
@media (max-width: 380px) { .brand-text { font-size: 14px; } .brand-logo { gap: 6px; } }

.tool-card .listing-item-category-wrap { display: flex; align-items: center; gap: 10px; float: none; }
.tool-card .listing-item-category { position: static !important; width: 34px; height: 34px; line-height: 34px; border-radius: 50%; float: none; margin: 0; font-size: 14px; text-align: center !important; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.tool-card .listing-item-category i { margin: 0; line-height: 1; }
.tool-card .listing-item-category-wrap span { position: static; padding: 0; float: none; font-size: 12px; color: var(--c-text); }
.sort-select { margin-left: 4px; }

.fav-btn.with-label span { display: inline !important; opacity: 1 !important; visibility: visible !important; position: static !important; width: auto; background: none; color: inherit; transform: none; }
.fav-btn.with-label i { margin-right: 6px; }
.fav-btn:not(.with-label) span { display: none !important; }

/* =====================================================================
   UX/UI audit pass (2026-11). Everything below only refines existing
   components; it adds no new colours or fonts.
   ===================================================================== */

/* --- Cards: the whole card is one click target (stretched title link) --- */
.tool-card-title h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
.tool-card .fav-btn, .tool-card .geodir-js-favorite_btn { position: relative !important; z-index: 2; }
.tool-card .geodir-category-footer .listing-item-category-wrap, .tool-card .verified-badge { position: relative; z-index: 2; }
.tool-card:focus-within { box-shadow: 0 0 0 2px var(--c-primary), 0 6px 30px rgba(58,87,135,.09); }
.tool-card-body .small-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 66px; }

/* --- Active filter chips above results --- */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; float: left; width: 100%; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfe6fb; background: #eef7ff; color: var(--c-secondary); border-radius: 20px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.filter-chip i { font-size: 11px; opacity: .7; }
.filter-chip:hover { background: #e0f0ff; border-color: var(--c-primary); }
.filter-chip:hover i { opacity: 1; color: #e0434f; }

/* --- Forms: consistent error / hint / disabled states --- */
.custom-form input[aria-invalid="true"], .custom-form textarea[aria-invalid="true"] { border-color: #e0434f !important; background: #fff8f9 !important; }
.custom-form input[aria-invalid="true"]:focus, .custom-form textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(224,67,79,.15); }
.form-err { display: flex; align-items: flex-start; gap: 6px; color: #c4334a; font-size: 13px; line-height: 18px; margin: 4px 0 10px; }
.field-hint { clear: both; float: left; width: 100%; font-size: 12px; line-height: 18px; color: var(--c-text); margin: 4px 0 10px; }
.form-note { float: left; width: 100%; margin: 0 0 18px; padding: 10px 14px; background: #f4f9ff; border-left: 3px solid var(--c-primary); border-radius: 4px; font-size: 13px; color: var(--c-dark); }
.form-note .req { color: #e0434f; font-weight: 700; }
.tf-field small.over { color: #c4334a; font-weight: 700; }
.pw-wrap { position: relative; float: left; width: 100%; }
.pw-wrap input { padding-right: 52px !important; }
.pw-toggle { position: absolute; top: 0; bottom: 0; right: 0; width: 48px; background: none; border: 0; color: var(--c-text); font-size: 16px; }
.pw-toggle:hover { color: var(--c-primary); }
.btn:disabled, button.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.btn-danger { background: #e0434f; color: #fff; }
.btn.btn-danger:hover { background: #c4334a; }

/* --- Confirm dialog --- */
.confirm-body { padding: 4px 4px 0; }
.confirm-body p { font-size: 15px; line-height: 24px; color: var(--c-dark); margin: 4px 0 22px; float: none; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions .btn { float: none; margin: 0; }

/* --- Loading --- */
.page-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 180px 20px; color: var(--c-text); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #dbe7f3; border-top-color: var(--c-primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Select: visible keyboard focus + highlighted option --- */
.nice-select:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.nice-select .option.focus { background: #f0f7ff; color: var(--c-secondary); }

/* --- Touch devices: reach the 44px minimum on small controls --- */
@media (pointer: coarse) {
  .fav-btn, .grid-btn, .btn-plain, .pw-toggle, .close-reg { min-width: 44px; min-height: 44px; }
  .chip-btn, .filter-chip { min-height: 40px; }
  .pagination a { min-width: 44px; min-height: 44px; }
}

/* --- Small screens: keep the primary form action reachable --- */
@media (max-width: 640px) {
  .form-actions { position: sticky; bottom: 0; z-index: 5; background: #fff; margin: 10px -4px 0; padding: 12px 4px; box-shadow: 0 -8px 16px rgba(58,87,135,.08); }
  .form-actions .btn { flex: 1 1 auto; text-align: center; }
  .confirm-actions .btn { flex: 1 1 100%; }
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .tool-card:hover, .cat-tile:hover, .collection-card:hover, .article-card:hover { transform: none; }
}

/* --- Search suggestions: visible keyboard focus --- */
.suggest-row:focus, .suggest-row:focus-visible { background: #f4f9ff; outline: none; box-shadow: inset 3px 0 0 var(--c-primary); }

/* --- Tool page: in-page jump links --- */
.page-jump { display: flex; flex-wrap: wrap; gap: 8px; float: left; width: 100%; margin: 0 0 18px; }
.page-jump a { background: #fff; border: 1px solid #e5eaf0; color: var(--c-secondary); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.page-jump a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ===== Verified tick, video, mobile pass (UX audit round 2) ===== */
.verified-badge { display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle; width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 10px; line-height: 1; position: relative; top: -1px; }
.verified-badge i { margin: 0 !important; font-size: 10px; line-height: 1; transform: none; }
.brand-mark svg { display: block; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0f1b3d; }
.video-frame iframe, .video-frame video, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; background: linear-gradient(135deg, #4DB7FE, #3A6FE0); cursor: pointer; border-radius: 0; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: relative; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .2s; }
.video-play i { margin-left: 4px; }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { transform: scale(1.08); }
.video-poster:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.cat-card .chip.is-empty { opacity: .6; }

@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  /* inner-page heroes */
  .parallax-section.single-par { padding: 96px 0 44px !important; }
  .parallax-section .section-title h2 { font-size: 26px; line-height: 1.25; }
  .parallax-section .section-title h4 { font-size: 15px; line-height: 1.5; }
  .gradient-bg-figure { display: none; }
  /* breadcrumbs: plain, wrapping, no template icon box */
  .breadcrumbs.block-breadcrumbs, .breadcrumbs.inline-breadcrumbs { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 2px 0; border-radius: 8px; border-top: 1px solid #e5e7f2; margin-bottom: 14px; }
  .breadcrumbs.inline-breadcrumbs:before, .top-breadcrumbs .container:before { display: none; }
  .breadcrumbs.inline-breadcrumbs a, .breadcrumbs.inline-breadcrumbs span { float: none; font-size: 13px; }
  /* tool detail hero */
  .tool-hero { padding: 90px 0 26px; }
  .tool-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tool-hero-text { min-width: 0; width: 100%; }
  .tool-hero-text h1 { font-size: 26px; line-height: 1.2; }
  .tool-hero-text p { font-size: 15px; }
  .tool-hero-meta { gap: 8px 14px; }
  .tool-hero-cta { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .tool-hero-cta .visit-btn { float: none; width: 100%; margin: 0; text-align: center; }
  .tool-hero-cta .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-hero-cta .cta-row .fav-btn { width: 100%; justify-content: center; margin: 0; }
  .page-jump { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .page-jump a { white-space: nowrap; flex: 0 0 auto; }
  /* directory */
  .dir-opts { width: 100%; justify-content: space-between; }
  .dir-opts .nice-select, .dir-opts .sort-select { flex: 1 1 auto; min-width: 0; width: auto; }
  /* home hero */
  .home-hero { padding-top: 96px; }
  .hero-categories { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .hero-categories_title { width: 100%; float: none; margin: 0 0 4px; text-align: center; font-size: 13px; }
  .hero-search-form .nice-select, .hero-search-form select { max-width: 100%; }
  /* tabs / filter rows scroll instead of overflowing */
  .tabs-row { flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; padding: 0 4px 6px; scrollbar-width: none; }
  .tabs-row button { flex: 0 0 auto; white-space: nowrap; }
  /* cards */
  .tool-card-body .small-text { min-height: 0; }
  .cat-card { padding: 18px; }
  .detail-card { padding: 20px 16px; }
  .section-title h2 { font-size: 24px; }
}
@media (max-width: 400px) {
  .tool-hero-cta .cta-row { grid-template-columns: 1fr; }
}
.dir-opts > span:first-child { margin: 0 !important; padding: 0 !important; float: none !important; line-height: 1.2; align-self: center; white-space: nowrap; }

/* ===== Round 3: issues found on a real phone ===== */
/* template draws a curved shadow under every card; we use a normal box-shadow */
.tool-card.geodir-category-listing::after, .tool-card.geodir-category-listing::before { display: none !important; }
/* template paragraphs are floats; keep empty-state copy above its button */
.empty-state p { float: none !important; display: block; width: auto; max-width: 440px; margin: 0 auto; }
.empty-state .btn { display: inline-block; position: relative; }
/* footer newsletter: template styles only match #subscribe, our form uses classes */
.subcribe-form { position: relative; float: left; width: 100%; }
.subcribe-form .enteremail { display: block; width: 100%; height: 50px; line-height: 50px; border: 0; border-radius: 30px; background: #fff; padding: 0 64px 0 22px; box-sizing: border-box; font-size: 15px; color: var(--c-dark); }
.subcribe-form .enteremail::placeholder { color: #8a97ab; font-weight: 500; font-size: 14px; }
.subcribe-form .subscribe-button { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.subcribe-form .subscribe-button:before { display: none; }
.subcribe-form .subscribe-button i { color: #fff; font-size: 17px; padding: 0; margin: 0; }
.subcribe-form .enteremail:focus-visible, .subcribe-form .subscribe-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 1053px) {
  /* header: one solid colour (template splits it in two halves) */
  .main-header:before { display: none !important; }
  .main-header { padding: 0 16px; }
}
@media (max-width: 767px) {
  .dashboard-header-sec { padding: 92px 0 22px !important; }
  .dashboard-header_title h1 { font-size: 22px; line-height: 1.3; }
  .dashboard-breadcrumbs { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-bottom: 14px; float: none; width: 100%; }
  .dashboard-breadcrumbs a, .dashboard-breadcrumbs span { float: none; }
  .tabs-row { float: none; clear: both; width: 100%; max-width: 100%; display: flex; flex-direction: row; }
  .tabs-row button { height: auto; min-height: 40px; line-height: 1.2; }
}
.subcribe-form #subscribe-button { right: 4px; top: 4px; width: 42px; height: 42px; line-height: 1; border-radius: 50%; background: var(--c-primary); }
.subcribe-form #subscribe-button:before { display: none; }
.subcribe-form #subscribe-button i, .subcribe-form #subscribe-button:hover i { color: #fff; padding: 0; }
.subcribe-form #subscribe-button:hover i:before { content: "\f0e0"; }

/* ===== Round 4 ===== */
.home-hero .intro-item { float: none; display: flow-root; }
.hero-search-box { clear: both; display: flow-root; margin-top: 32px; }
.home-hero .hl { color: #fff; background: linear-gradient(transparent 62%, rgba(94,207,177,.9) 62%); padding: 0 4px; }
@media (max-width: 767px) {
  .home-hero .intro-item h1 { font-size: 32px; line-height: 40px; }
  .home-hero .intro-item h3 { font-size: 15px; margin-bottom: 4px; }
  .header-search_container { top: 80px; bottom: auto !important; height: auto; max-height: calc(100vh - 80px); overflow-y: auto; padding: 16px 0 22px; }
  .header-search_container:before { display: none; }
  .header-search-input-wrap { padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
  .header-search-input, .header-search-input[style] { width: 100% !important; float: none; padding: 0; }
  .header-search-input input { float: none; display: block; padding-right: 14px; font-size: 15px; }
  .header-search-input .suggest-box {
    position: static;
    margin-top: 8px;
    max-height: min(190px, 30dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
  }
  .header-search-input .suggest-row > span { min-width: 0; overflow-wrap: anywhere; }
  .header-search-input .suggest-row > .tool-logo { overflow-wrap: normal; }
  .header-search-input .suggest-row em { display: none; }
  .header-search-input input::placeholder { font-size: 14px; }
  .header-search-button { position: static; width: 100%; height: 48px; line-height: 48px; }
  .header-search_close { display: none; }
  .popular-searches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; float: none; width: 100%; }
  .popular-searches > span { align-self: center; margin-right: 2px; }
}

/* ===== Round 5: admin / submit form polish ===== */
.tool-form .tf-switch { display: inline-flex; align-items: center; gap: 10px; float: none; width: auto; margin: 0 24px 12px 0; padding: 0; cursor: pointer; color: var(--c-dark); font-size: 14px; font-weight: 500; line-height: 1.3; }
.tool-form .tf-switch:before, .tool-form .tf-switch:after { display: none; }
.tool-form .tf-switch span { color: inherit; font-size: inherit; margin: 0; }
.tool-form .tf-switch .switch { width: 44px; height: 24px; display: inline-block; }
.tool-form .tf-switch .switch i { position: absolute; }
/* media */
.tool-form label.btn { color: #fff !important; float: none; width: auto; margin: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; }
.tool-form .shot-add { float: none; margin: 0; color: var(--c-text); font-size: 13px; gap: 2px; background: #fafcfe; }
.tool-form .shot-add span { color: inherit; font-size: 13px; position: static; margin: 0; }
.tool-form .shot-add i { position: static; margin: 0; font-size: 18px; color: var(--c-primary); }
.tool-form .shots-edit > div, .tool-form .shot-add { flex: 0 0 auto; }
.tool-form .logo-pick { flex-wrap: wrap; }
.tool-form .tf-field > label, .tool-form .tf-field > label span { float: none; }
.tool-form .tf-field > label span { color: #e0434f; }
.tool-form .list-row .btn-plain { flex: 0 0 40px; height: 40px; }
.tool-form .tf-field > .btn-plain { margin-top: 2px; }
.admin-main .form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; float: left; width: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px solid #eef0f4; }
.admin-main .form-actions .btn { float: none; margin: 0; }
/* tool page hero breadcrumbs + CTA row */
.tool-hero .breadcrumbs, .tool-hero .breadcrumbs.block-breadcrumbs { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 0 14px !important; margin: 0; }
.tool-hero .cta-row .fav-btn { height: 46px; box-sizing: border-box; }

/* drop-downs inside forms (admin editor, submit form, filters) */
.tool-form .nice-select, .admin-main .nice-select, .custom-form .tf-field .nice-select { float: none; display: block; width: 100%; height: 48px; line-height: 46px; box-sizing: border-box; }
.admin-filters .nice-select { width: 190px; }
.tool-form .nice-select .current, .admin-main .nice-select .current { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nice-select .list { left: 0 !important; right: 0; width: 100%; min-width: 100%; box-sizing: border-box; margin: 4px 0 0; max-height: 280px; overflow-y: auto !important; overscroll-behavior: contain; border-radius: 8px; box-shadow: 0 12px 40px rgba(46,63,110,.22); z-index: 60; }
.nice-select .list .option { white-space: pre-wrap; line-height: 1.35; min-height: 40px; padding: 10px 18px; display: flex; align-items: center; }
.nice-select.open { z-index: 61; }
.tool-form .tf-field:has(.nice-select.open), .tool-form .tf-field:has(.nice-select.open) .nice-select { position: relative; z-index: 62; }
@media (max-width: 767px) { .nice-select .list { max-height: 50vh; } }
.nice-select .list { padding: 0 !important; }
.nice-select .list .option { float: none !important; width: 100%; box-sizing: border-box; margin: 0; }

/* ===== Round 6: category cards, home CTA ===== */
.cat-card .cat-card-head { display: flex !important; flex-direction: row !important; align-items: center; gap: 14px; text-align: left !important; float: none; width: 100%; }
.cat-card .cat-card-head > div { flex: 1 1 auto; min-width: 0; text-align: left !important; }
.cat-card .cat-card-head h3 { text-align: left !important; margin: 0 0 2px !important; font-size: 18px; line-height: 1.25; }
.cat-card .cat-card-head small { display: block; text-align: left; }
.cat-card .cat-card-head .cat-ico { flex: 0 0 auto; margin: 0; }
.cta-band { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.cta-band h3, .cta-band p { flex: 1 1 100%; margin-left: 0; margin-right: 0; }
.cta-band .btn { margin: 0 !important; height: 48px; line-height: 44px; padding: 0 26px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cta-band .btn.border-btn { line-height: 44px; border: 2px solid #fff; }
@media (max-width: 767px) {
  .cta-band { padding: 28px 18px; }
  .cta-band h3 { font-size: 22px; }
  .cta-band .btn { flex: 1 1 100%; width: 100%; }
}

/* Home category tiles: icon, name and count centered */
.cat-tile { align-items: center; text-align: center; min-width: 0; }
.cat-tile .cat-ico { flex: 0 0 auto; }
.cat-tile .cat-name, .cat-tile .cat-count { display: block; width: 100%; text-align: center; overflow-wrap: anywhere; }

/* Tool card heart: template offsets (left/top 20px) pushed it outside the card padding */
.tool-card .fav-btn, .tool-card .geodir-js-favorite_btn { left: auto !important; top: auto !important; right: auto; margin: 0 !important; flex: 0 0 auto; }
.tool-card-top { width: 100%; box-sizing: border-box; }

/* Hero Save / Share: identical box, icon and label centered the same way */
.tool-hero .cta-row .fav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0 !important; left: auto; top: auto; line-height: 1; }
.tool-hero .cta-row .fav-btn i { margin: 0 !important; float: none; }
.tool-hero .cta-row .fav-btn span { margin: 0 !important; line-height: 1; position: static !important; }
.tool-hero .visit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tool-hero .visit-btn i { position: static; margin: 0; float: none; }

/* In-page tabs wrap instead of hiding "Reviews" off-screen */
@media (max-width: 991px) {
  .page-jump { flex-wrap: wrap; overflow: visible; }
  .page-jump a { flex: 0 1 auto; }
}

.rv-pending { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 12px; background: #fff4d6; color: #8a6200; font-size: 11px; font-weight: 600; vertical-align: middle; }
.tool-hero .cta-row .fav-btn span, .tool-hero .cta-row .fav-btn:hover span { float: none; left: 0; top: 0; height: auto; line-height: 1; padding: 0; background: none; border-radius: 0; transition: none; }

/* ===== Admin (mobile + general) ===== */
.admin-title > div:first-child { flex: 1 1 200px; min-width: 0; }
.admin-title h1, .admin-title p { text-align: left; }
.admin-title-actions:empty { display: none; }

/* switches: .custom-form label (display:block; width:100%) was stretching them */
.custom-form label.switch, label.switch { display: block !important; position: relative; width: 44px !important; height: 24px; margin: 0 !important; flex: 0 0 44px; float: none; }
.switch-row > span { flex: 1 1 auto; min-width: 0; color: var(--c-dark); font-size: 14px; font-weight: 500; line-height: 1.35; text-align: left; }
.switch-row:first-child { border-top: 0; }

/* tabs in admin pages (Settings, Content) as pills */
.admin-main .tabs-menu { display: flex; flex-wrap: wrap; gap: 8px; float: none; width: 100%; margin: 0 0 6px; padding: 0; list-style: none; position: static; background: none; border: 0; box-shadow: none; }
.admin-main .tabs-menu li { float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; position: static; }
.admin-main .tabs-menu li::before, .admin-main .tabs-menu li::after, .admin-main .tabs-menu li a::before, .admin-main .tabs-menu li a::after { display: none !important; }
.admin-main .tabs-menu li a { display: block; float: none; border: 1px solid #dfe6ee; background: #fff; color: var(--c-dark); border-radius: 30px; padding: 8px 18px; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.admin-main .tabs-menu li.current a, .admin-main .tabs-menu li a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* buttons inside admin cards: text vertically centered */
.admin-main .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; float: none; }
.admin-main .detail-card .btn { margin-top: 8px; }
.custom-form label.switch i, label.switch i { position: absolute !important; inset: 0 !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; padding: 0 !important; font-size: 0; border-radius: 12px; }
.custom-form label.switch input:checked + i { background: var(--c-primary); }
.switch-row { align-items: center; }

/* admin: spacing after card grid, filter row, icon buttons */
.admin-cards { float: none; margin-bottom: 22px; }
.admin-cards::after { content: ""; display: table; clear: both; }
.admin-main .row { clear: both; }
.admin-filters .nice-select { flex: 1 1 160px; width: auto; min-width: 0; }
.admin-main .btn { padding: 0 24px; height: 46px; line-height: 1.2; }
.admin-main .btn i { position: static !important; float: none; margin: 0 !important; line-height: 1; }
.admin-main .btn.border-btn { height: 46px; }
.admin-main .btn i { top: auto !important; right: auto !important; width: auto; height: auto; margin: 0 !important; line-height: 1 !important; border-radius: 0; background: none; }

/* ===== User dashboard + account menu ===== */
.user-dropdown { width: 220px; }
.user-dropdown li { float: none; width: 100%; }
.user-dropdown a, .user-dropdown button { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.user-dropdown i { float: none; width: 20px; height: auto; margin: 0; line-height: 1; text-align: center; flex: 0 0 20px; font-size: 15px; position: static; }
@media (max-width: 600px) { .user-dropdown { top: 92px; right: -6px; } }

.dashboard-header_title h1 { text-align: left; padding: 0; float: none; width: 100%; }
.dashboard-header_conatiner { text-align: left; padding-left: 0; }
.dashboard-title h3 { float: none; margin: 0; }
.dashboard-title::before, .dashboard-title::after, .dashboard-title h3::before, .dashboard-title h3::after { display: none !important; }
.dashboard-title { gap: 12px; flex-wrap: wrap; }

.main-dashboard-sec .btn, .detail-card .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; height: 46px; line-height: 1.2; float: none; }
.main-dashboard-sec .btn i, .detail-card .btn i { position: static !important; top: auto !important; right: auto !important; width: auto; height: auto; margin: 0 !important; line-height: 1 !important; background: none; border-radius: 0; }
.main-dashboard-sec .logout_btn { display: flex; width: 100%; }
.main-dashboard-sec .tabs-row { flex-wrap: wrap; overflow: visible; margin-left: 0; padding: 0; }

/* submissions table: stacked rows on phones instead of clipped actions */
@media (max-width: 600px) {
  .main-dashboard-sec .data-table, .main-dashboard-sec .data-table tbody { display: block; }
  .main-dashboard-sec .data-table thead { display: none; }
  .main-dashboard-sec .data-table tr { display: block; padding: 14px 16px; border-top: 1px solid #f0f2f5; }
  .main-dashboard-sec .data-table tr:first-child { border-top: 0; }
  .main-dashboard-sec .data-table td { display: block; border: 0; padding: 3px 0; }
  .main-dashboard-sec .data-table .reject-note { max-width: none; }
  .main-dashboard-sec .row-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; white-space: normal; padding-top: 8px; }
  .main-dashboard-sec .row-actions > * { margin-right: 0; }
}
@media (max-width: 600px) { .main-dashboard-sec .data-table td.row-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; white-space: normal; padding-top: 8px; } }

/* ===== Round 7: tool form switches/chips, dashboard hero, open selects, header search ===== */
/* Switch track: template ".custom-form label i" turned it into a thin bar */
.custom-form .switch, .tool-form .tf-switch .switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; }
.custom-form .switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 2; cursor: pointer; }
.custom-form .switch i, .custom-form label .switch i { position: absolute !important; inset: 0 !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; font-size: 0; border-radius: 12px; background: #cfd6df; }
.custom-form .switch input:checked + i { background: var(--c-primary); }
.custom-form .switch i::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.custom-form .switch input:checked + i::after { left: 23px; }
.tool-form .tf-switch { display: flex; width: 100%; margin: 0 0 12px; }
.tool-form .tf-switch > span:last-child { color: var(--c-dark); font-size: 14px; font-weight: 500; line-height: 1.3; }

/* Chip buttons: template ".custom-form button" removed borders and added a 20px top margin */
.custom-form .chip-btn, .tool-form .chip-btn { margin: 0 !important; border: 1px solid #dfe6ee; background: #fff; color: var(--c-dark); padding: 7px 14px; line-height: 1.2; }
.custom-form .chip-btn.on, .tool-form .chip-btn.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.chip-pick { gap: 8px; }
.custom-form .chip-pick .cat-dot { margin-top: 0; }
.custom-form input[type=date] { line-height: normal; min-height: 48px; }

/* Dashboard hero: breadcrumbs back in the normal flow (template pins them 100px above) */
.dashboard-breadcrumbs { position: static !important; display: flex; flex-wrap: wrap; gap: 4px 6px; width: fit-content; max-width: 100%; margin: 0 0 14px; float: none; }
.dashboard-breadcrumbs a { margin-right: 0; padding-right: 22px; }
.dashboard-header_conatiner { padding-top: 0; padding-bottom: 0; }
.dashboard-header_title { margin-bottom: 0; }
@media (max-width: 767px) { .dashboard-header-sec { padding: 100px 0 24px !important; } }

/* Open custom select must stack above the next card (filters, sort bar) */
.filter-panel:has(.nice-select.open), .dir-bar:has(.nice-select.open), .detail-card:has(.nice-select.open) { position: relative; z-index: 70; overflow: visible; }
.dir-opts { display: flex; align-items: center; gap: 10px; }
.dir-opts .price-opt-title { margin: 0; white-space: nowrap; }
.dir-opts .nice-select { flex: 1 1 auto; min-width: 0; }
.dir-opts .grid-opt { flex: 0 0 auto; }

/* Header search panel: keep the Popular row clear of the Search button */
.header-search-input-wrap { margin-bottom: 4px; }
.header-search_container .popular-searches { margin-top: 0; padding: 24px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; float: none; width: 100%; clear: both; }
.header-search_container .popular-searches a { margin: 0; }
.header-search_container .popular-searches > span { margin: 0 4px 0 0; }

/* Round 7b: open select above following column; "Sort by:" label no longer pushed down by template top:14px */
.filters-wrap:has(.nice-select.open), .col-md-3:has(.nice-select.open) { position: relative; z-index: 160; }
.dir-bar:has(.nice-select.open) { z-index: 170; }
.dir-opts .price-opt-title { position: static !important; top: auto !important; float: none !important; padding: 0 !important; align-self: center; }

/* Tool detail: floated cards must be contained so later content never overlaps/clips the review form */
.col-md-8::after, .col-md-4::after, .detail-side::after, .gray-bg > .container::after, .row::after { content: ""; display: table; clear: both; }
.detail-card { position: relative; z-index: 1; }
.review-form { position: relative; z-index: 5; }

/* ===== Login / Register modal ===== */
.main-register-holder .main-register > div:not(.main-register_title) { padding-left: 24px !important; padding-right: 24px !important; }
.main-register-holder .custom-form { padding: 0 !important; float: none; width: 100%; text-align: left; }
.main-register-holder .tabs-menu { width: 100%; margin: 0 0 6px; padding: 0; }
.main-register-holder .custom-form form { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.main-register-holder .custom-form label { display: block; width: 100%; float: none; margin: 14px 0 6px; padding: 0; text-align: left; line-height: 1.3; }
.main-register-holder .custom-form label:first-child { margin-top: 0; }
.main-register-holder .custom-form input[type=text], .main-register-holder .custom-form input[type=email], .main-register-holder .custom-form input[type=password] { float: none; width: 100%; height: 48px; margin: 0; padding: 0 16px; box-sizing: border-box; display: block; }
.main-register-holder .pw-wrap { float: none; width: 100%; position: relative; }
.main-register-holder .pw-wrap input { padding-right: 52px !important; }
.main-register-holder .pw-toggle { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; width: 48px; margin: 0 !important; padding: 0; display: flex; align-items: center; justify-content: center; }
.main-register-holder .pw-toggle i { position: static !important; margin: 0 !important; line-height: 1; }
.main-register-holder .field-hint { float: none; text-align: left; margin: 6px 0 0; }
.main-register-holder .form-err { float: none; margin: 6px 0 0; }
.main-register-holder .filter-tags { float: none; width: 100%; display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0 !important; text-align: left; }
.main-register-holder .filter-tags input[type=checkbox] { display: block !important; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--c-primary); position: static; opacity: 1; }
.main-register-holder .filter-tags label { margin: 0; width: auto; flex: 1; font-size: 13px; font-weight: 500; line-height: 1.4; }
.main-register-holder .filter-tags label::before, .main-register-holder .filter-tags label::after { display: none !important; }
.main-register-holder .custom-form button[type=submit].btn { float: none; width: 100%; margin: 20px 0 0; height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.main-register-holder .custom-form button[type=submit].btn i { position: static !important; margin: 0 !important; }
.main-register-holder .lost_password { float: none; width: 100%; text-align: center; margin: 16px 0 0; }
.main-register-holder .lost_password a { float: none; }
.main-register-holder .demo-note { float: none; clear: both; width: 100%; box-sizing: border-box; margin: 20px 0 0; text-align: left; }
.main-register-holder .demo-note button { margin: 0; padding: 4px 0; float: none; width: 100%; }
.main-register-holder .tab-content { padding: 14px 0 0 !important; }
.main-register-holder .custom-form label { margin-bottom: 4px; font-size: 14px; }
.main-register-holder .custom-form input { margin-bottom: 0 !important; }
.main-register-holder .tabs-menu, .main-register-holder .tabs-container, .main-register-holder .tab, .main-register-holder .tab-content { float: none; display: block; width: 100% !important; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box; }
.main-register-holder .tabs-menu { display: flex; }
.main-register-holder .tabs-menu li { flex: 1 1 50%; float: none; width: auto; }
.main-register-holder .tabs-menu li a { white-space: nowrap; }
.main-register-holder .lost_password { margin: 16px 0 6px; }
.main-register-holder .custom-form::after, .main-register-holder .tab-content::after { content: ""; display: table; clear: both; }
.main-register-holder .tabs-menu:before { left: 0 !important; right: 0 !important; }
.main-register-holder .main-register_title { padding-left: 24px; }


/* Brand logo (new mark) */
.brand-mark { background: none !important; width: 34px; height: 34px; border-radius: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text .brand-me { font-style: normal; color: #5ECFB1; }
@media (max-width: 767px) { .brand-mark { width: 30px; height: 30px; } }


/* Session-ending warning */
.sgbar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:6000;width:min(560px,calc(100vw - 24px));background:#fff;border:1px solid #cfe3f7;border-radius:12px;box-shadow:0 12px 36px rgba(20,50,100,.28);padding:14px 16px;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
.sgbar .sgtx{margin:0;flex:1 1 240px;font-size:14px;line-height:1.45;color:#2b3a67}
.sgbar .sgbtn{display:flex;gap:8px;flex-wrap:wrap}
.sgbar button{border:0;border-radius:8px;padding:10px 14px;font-size:14px;font-weight:600;cursor:pointer;min-height:42px;background:#2f6fd6;color:#fff}
.sgbar button.sgout{background:#eef3fb;color:#2b3a67}

/* Tablet / landscape phone: columns that stop floating must still contain their floated children (menu button etc.) */
[class^="col-md-"], [class*=" col-md-"] { display: flow-root; }
.tabs-row { clear: both; width: 100%; box-sizing: border-box; }

/* --- Buttons: no native button border/shadow; secondary buttons readable everywhere --- */
button.btn { border: 0; -webkit-appearance: none; appearance: none; box-shadow: none; font-family: inherit; }
button.btn.border-btn { border: 2px solid #4DB7FE; background: #fff; color: #384F95; padding-top: 0; padding-bottom: 0; height: 44px; line-height: 40px; }
button.btn.border-btn:hover { background: #4DB7FE; color: #fff; }
.btn.color2-bg, button.btn.btn-danger { padding-top: 0; padding-bottom: 0; height: 44px; line-height: 44px; }
.empty-state .btn, .confirm-actions .btn { display: inline-block; text-align: center; }

/* --- Admin: cards and pager must not float next to each other --- */
.admin-main .detail-card { float: none; width: 100%; box-sizing: border-box; clear: both; max-width: 100%; }
.pager { clear: both; flex-wrap: wrap; width: 100%; }
.pager span { white-space: nowrap; }
@media (max-width: 600px) { .admin-main { padding: 20px 14px 70px; } .pager { gap: 8px; } .pager button { padding: 8px 12px; } }

/* Aurora backdrop for tool headers without a live website preview and for the 404 page. */
.aurora-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #203f72;
  background: linear-gradient(135deg, #eaf5ff 0%, #b7dbff 54%, #dceeff 100%);
}
.aurora-bg::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 27% 35%, #fff 0%, transparent 48%),
    radial-gradient(ellipse at 68% 66%, #66aff9 0%, transparent 46%),
    radial-gradient(ellipse at 78% 24%, #f8fcff 0%, transparent 49%);
  animation: tool-aurora-drift 16s ease-in-out infinite alternate;
}
@keyframes tool-aurora-drift {
  from { transform: translate3d(-7%, -5%, 0) rotate(-8deg); }
  to { transform: translate3d(8%, 5%, 0) rotate(9deg); }
}
.aurora-bg .breadcrumbs a,
.aurora-bg .breadcrumbs span,
.aurora-bg .tool-hero-text h1,
.aurora-bg .tool-hero-text p,
.aurora-bg .cta-row .fav-btn,
.aurora-bg.not-found-hero h1,
.aurora-bg.not-found-hero h3,
.aurora-bg.not-found-hero p { color: #203f72; }
.aurora-bg .cta-row .fav-btn { background: rgba(255, 255, 255, .7); }
.aurora-bg .cta-row .fav-btn.is-fav { color: #b2215a; }
@media (prefers-reduced-motion: reduce) {
  .aurora-bg::before { animation: none; }
}

.tool-card-actions { position: relative; z-index: 2; display: flex; gap: 8px; padding-top: 12px; clear: both; }
.tool-details-link, .tool-visit-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 36px; padding: 6px 10px; border-radius: 7px; font-weight: 700;
}
.tool-details-link { color: var(--c-secondary); border: 1px solid #dbe4f0; background: #fff; }
.tool-card-list .tool-card-actions { flex-basis: 100%; }
.tool-card-actions .tool-details-link { flex: 1; }
.tool-visit-link { color: #fff; background: var(--c-secondary); }
.tool-visit-link:hover { color: #fff; background: #263e76; }
.tool-details-link:hover { color: #203c77; border-color: #92aad0; }
.compare-page { text-align: left; }
.compare-slots, .compare-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.compare-slot { display: flex; min-width: 0; background: #fff; border: 2px dashed #b5c9e4; border-radius: 12px; }
.compare-select { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 10px; min-height: 100px; padding: 12px; border: 0; background: transparent; color: var(--c-secondary); font-weight: 700; overflow-wrap: anywhere; }
.compare-select small { display: block; margin-top: 4px; font-weight: 400; }
.compare-remove { align-self: flex-start; padding: 6px 10px; font-size: 22px; color: var(--c-secondary); }
.compare-page h2 { margin: 24px 0 12px; color: var(--c-secondary); font-size: 22px; font-weight: 700; }
.compare-pairs .collection-card { display: flex; justify-content: space-between; gap: 8px; }
.compare-results { padding: 0; overflow: hidden; }
.compare-picker { padding: 16px; }
.compare-picker ul { max-height: min(360px, 45vh); overflow-y: auto; }
.compare-picker .suggest-row { width: 100%; border: 0; border-bottom: 1px solid #e5edf6; background: #fff; text-align: left; }
.compare-picker .suggest-row:hover { background: #f4f9ff; }
.stat-strip .animated-count span[aria-hidden] { display: inline; font: inherit; color: inherit; }
@media (max-width: 560px) {
  .compare-slots, .compare-pairs { grid-template-columns: 1fr; }
  .dir-opts { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .tool-card-wrap, .collection-card, .cat-tile, .compare-slot, .compare-results,
  .modal_main.vis_mr, .home-stats .stat-strip { animation: toastin .25s ease; }
}

/* Registration, header search and page navigation */
.custom-form .auth-terms { display: flex; align-items: center; gap: 9px; margin: 10px 0 16px; }
.custom-form .auth-terms input[type="checkbox"] {
  appearance: auto; accent-color: var(--c-secondary); cursor: pointer;
  flex: 0 0 auto; width: 18px; height: 18px; margin: 0; padding: 0;
}
.custom-form .auth-terms label, .main-register-holder .custom-form .auth-terms label { float: none; width: auto; margin: 0; padding: 0; line-height: 1.45; color: #404c69; cursor: pointer; }
.auth-terms label a { color: var(--c-secondary); text-decoration: underline; }
.main-header::before { display: none; }
.main-header .header-search_container {
  top: 100%; bottom: auto; z-index: 0; background: #304372;
  padding: 18px 0; max-height: calc(100dvh - 80px); overflow-y: auto;
  transition: opacity .2s ease, visibility .2s ease;
}
.main-header .header-search_container::before { display: none; }
.main-header .header-search-input-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  gap: 12px; padding: 0; margin: 0;
}
.main-header .header-search-input { width: 100%; min-width: 0; padding: 0; float: none; }
.main-header .header-search-input input { display: block; float: none; }
.main-header .header-search-input .suggest-box { position: static; margin-top: 8px; max-height: min(230px, 34dvh); overflow-y: auto; }
.main-header .header-search-button { position: static; margin: 0; box-shadow: none; }
.main-header .header-search_container .popular-searches { padding: 12px 0 0; }
.breadcrumbs.inline-breadcrumbs.block-breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  padding: 12px 16px; border: 1px solid #e5e7f2; border-radius: 8px;
}
.breadcrumbs.inline-breadcrumbs.block-breadcrumbs > :is(a, span) { float: none; padding: 0; margin: 0; color: #4b5874; }
.breadcrumbs.inline-breadcrumbs.block-breadcrumbs a { display: inline-flex; align-items: center; gap: 10px; color: var(--c-secondary); }
.breadcrumbs.inline-breadcrumbs.block-breadcrumbs a::before { display: none; }
.breadcrumbs.inline-breadcrumbs.block-breadcrumbs a::after { content: ""; width: 5px; height: 5px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.breadcrumbs.inline-breadcrumbs.block-breadcrumbs a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .main-header .header-search-input-wrap { grid-template-columns: minmax(0, 1fr); }
}

.custom-form .auth-terms ~ button:disabled { opacity: .55; cursor: not-allowed; }

/* --- Inner page headers use the same soft aurora as the tool page --- */
.page-hero.aurora-bg { float: left; width: 100%; }
.page-hero .section-title h2, .page-hero .section-title h2 span, .page-hero .section-title h4,
.page-hero .section-title p, .page-hero .section-title .breadcrumbs a, .page-hero .section-title .breadcrumbs span,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4, .page-hero p, .page-hero a:not(.btn) { color: #203f72; }
.page-hero .section-separator { background: #4DB7FE; }
.page-hero .section-separator:before { background: #203f72; }
.page-hero .hero-search-form, .page-hero .btn.color2-bg { color: #fff; }
.page-hero .breadcrumbs a, .page-hero .breadcrumbs span, .page-hero h1 span, .page-hero .dashboard-breadcrumbs a, .page-hero .dashboard-breadcrumbs span { color: #203f72; }
.page-hero .breadcrumbs a:before { color: #4a6aa0; }

/* ===== Blog ===== */
.article-card { display: flex; flex-direction: column; height: 100%; border: 1px solid #e6edf6; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(58,87,135,.16); }
.article-card .article-cat { align-self: flex-start; background: #e8f4ff; color: var(--c-secondary); padding: 4px 10px; border-radius: 20px; }
.article-card h3 { font-size: 19px; line-height: 1.35; margin: 14px 0 10px; }
.article-card p { color: #5d6b82; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid #eef2f8; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #7c8aa3; }
.article-meta i { color: var(--c-primary); margin-right: 3px; }
.tool-grid.cols-3 .article-card { float: none; width: auto; }

.post { padding: 34px 38px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: #7c8aa3; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #eef2f8; }
.post-meta i { color: var(--c-primary); margin-right: 5px; }
.post .lead { font-size: 20px; line-height: 1.6; color: var(--c-secondary); font-weight: 500; padding-left: 18px; border-left: 4px solid var(--c-primary); margin: 0 0 30px; }
.post p { font-size: 17px; line-height: 1.8; color: #3c4a63; margin: 0 0 18px; float: none; }
.post .post-block { float: none; width: 100%; padding: 0; margin: 38px 0 0; scroll-margin-top: 90px; }
.post .post-block:first-of-type { margin-top: 10px; }
.post h2 { float: none; font-size: 26px; line-height: 1.3; color: #1f2f55; margin: 0 0 14px; padding-top: 6px; }
.post ul, .post ol { padding-left: 22px; margin: 0 0 20px; }
.post li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; color: #3c4a63; list-style: disc; }
.post a { color: var(--c-secondary); text-decoration: underline; text-decoration-color: rgba(77,183,254,.6); text-underline-offset: 3px; }
.post-sources { background: #f5f9ff; border-radius: 10px; padding: 22px 24px !important; }
.post-sources h2 { font-size: 20px; }
.post-sources li { font-size: 15.5px; }
.post-side { position: sticky; top: 90px; }
.post-side .detail-card { margin-bottom: 16px; padding: 22px; }
.post-side h4 { margin: 0 0 12px; font-size: 16px; }
.post-toc { margin: 0; padding: 0; }
.post-toc li { margin: 0; padding: 9px 0; border-top: 1px solid #eef2f8; font-size: 14.5px; line-height: 1.45; }
.post-toc li:first-child { border-top: 0; }
.post-toc a { color: var(--c-secondary); text-decoration: none; font-weight: 500; }
.post-cta { clear: both; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 24px 28px; border-radius: 12px; background: linear-gradient(135deg, #eaf5ff, #cfe6ff); }
.post-cta strong { display: block; font-size: 18px; color: #1f2f55; }
.post-cta span { color: #4a5d80; font-size: 14.5px; }
.post-cta .btn { float: none; margin: 0; }
@media (max-width: 1064px) { .post-side { position: static; margin-top: 20px; } }
@media (max-width: 600px) { .post { padding: 22px 18px; } .post .lead { font-size: 18px; } .post p, .post li { font-size: 16.5px; } .post h2 { font-size: 22px; } }

/* ===== Home: quick filters, how we choose, card polish ===== */
.quick-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; clear: both; }
.quick-filters a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 24px; background: #fff; color: var(--c-secondary); font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgba(58,87,135,.12); transition: transform .2s, box-shadow .2s; }
.quick-filters a i { color: var(--c-primary); }
.quick-filters a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(58,87,135,.2); }
.how-we-choose { float: left; width: 100%; }
.hwc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; float: left; width: 100%; }
.hwc-grid > div { background: #fff; border: 1px solid #e6edf6; border-radius: 12px; padding: 24px; text-align: left; }
.hwc-grid span { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: #e8f4ff; color: var(--c-primary); font-size: 20px; margin-bottom: 12px; }
.hwc-grid h4 { margin: 0 0 6px; font-size: 17px; float: none; }
.hwc-grid p { margin: 0; color: #5d6b82; font-size: 14.5px; line-height: 1.6; float: none; }
@media (max-width: 800px) { .hwc-grid { grid-template-columns: 1fr; } }
.tool-card { border: 1px solid #edf2f8; }
.tool-card:hover { border-color: rgba(77,183,254,.5); }
@media (max-width: 520px) { .quick-filters a { padding: 8px 13px; font-size: 13px; } .home-hero .intro-item h1 { font-size: 34px; line-height: 42px; } }

/* ===== Compare queue ===== */
.compare-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 7px; font-weight: 700; font-size: inherit; color: var(--c-secondary); border: 1px solid #dbe4f0; background: #fff; cursor: pointer; }
.compare-btn:hover { border-color: #92aad0; color: #203c77; }
.compare-btn.is-on { background: #e8f4ff; border-color: var(--c-primary); color: var(--c-secondary); }
.compare-btn.is-on i { color: var(--c-primary); }
.tool-card-actions { flex-wrap: wrap; }
.tool-card-actions .compare-btn { flex: 1; }
.tool-hero-cta .compare-btn { min-height: 0; height: auto; }
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid #dbe4f0; box-shadow: 0 -8px 30px rgba(58,87,135,.18); padding: 10px 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.compare-tray-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.compare-tray ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; flex: 1; min-width: 0; }
.compare-tray li { display: inline-flex; align-items: center; gap: 6px; background: #e8f4ff; color: var(--c-secondary); border-radius: 20px; padding: 5px 6px 5px 12px; font-size: 13.5px; font-weight: 600; max-width: 100%; }
.compare-tray li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.compare-tray li button { border: 0; background: #fff; color: var(--c-secondary); width: 22px; height: 22px; border-radius: 50%; line-height: 1; padding: 0; font-size: 15px; cursor: pointer; }
.compare-tray-actions { display: flex; align-items: center; gap: 12px; }
.compare-tray-count { font-size: 13px; color: #7c8aa3; }
.compare-tray-clear { border: 0; background: none; color: #d9433f; font-weight: 600; cursor: pointer; padding: 4px; }
.compare-tray-hint { font-size: 13px; color: #7c8aa3; }
.compare-tray .btn { float: none; margin: 0; height: 40px; line-height: 40px; padding: 0 20px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body:has(.compare-tray) { padding-bottom: 70px; }
@media (max-width: 560px) { .compare-tray-inner { flex-direction: column; align-items: stretch; } .compare-tray-actions { justify-content: space-between; } .compare-tray li span { max-width: 110px; } }

/* ===== Compare page ===== */
.compare-page .compare-slot { background: #fff; border: 2px dashed #b5c9e4; border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.compare-page .compare-slot:hover { border-color: var(--c-primary); box-shadow: 0 8px 24px rgba(58,87,135,.12); }
.compare-select { justify-content: flex-start; text-align: left; min-height: 84px; padding: 14px 16px; cursor: pointer; }
.compare-select > span:first-child:not(:only-child) { display: block; }
.compare-slots { gap: 16px; }
.compare-results { border-radius: 14px; box-shadow: 0 6px 30px rgba(58,87,135,.09); border: 1px solid #e6edf6; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #edf2f8; font-size: 14.5px; line-height: 1.6; color: #3c4a63; overflow-wrap: break-word; word-break: normal; hyphens: none; }
.compare-table tbody tr:nth-child(even) > * { background: #fafcff; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tr > :first-child { position: sticky; left: 0; z-index: 2; width: 150px; background: #f4f8fd; box-shadow: 1px 0 0 #e1eaf5; }
.compare-table tbody th { color: var(--c-secondary); font-weight: 700; font-size: 13.5px; }
.compare-table tbody th i { color: var(--c-primary); width: 18px; margin-right: 4px; }
.compare-table thead th { background: #fff; border-bottom: 2px solid #e1eaf5; vertical-align: top; }
.compare-table thead .cmp-corner { background: #f4f8fd; color: #7c8aa3; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; vertical-align: bottom; }
.cmp-head-top { display: flex; align-items: center; gap: 12px; color: var(--c-secondary); font-weight: 700; font-size: 17px; line-height: 1.3; margin-bottom: 12px; }
.cmp-head-top span { min-width: 0; overflow-wrap: anywhere; }
.cmp-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-head-actions .tool-details-link, .cmp-head-actions .tool-visit-link { flex: 1; min-width: 80px; font-size: 13px; }
.cmp-list { margin: 0; padding: 0; list-style: none; }
.cmp-list li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.cmp-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }
.cmp-list.pro li::before { background: #1d9a76; }
.cmp-list.con li::before { background: #d9433f; }
.cmp-yes { color: #1d9a76; font-weight: 700; }
.cmp-no { color: #98a4b8; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-chips span { background: #e8f4ff; color: var(--c-secondary); border-radius: 14px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.compare-pairs .collection-card { border-radius: 12px; font-weight: 600; color: var(--c-secondary); }
@media (max-width: 560px) {
  .compare-table th, .compare-table td { padding: 12px; font-size: 14px; }
  .compare-table tr > :first-child { width: 110px; }
  .cmp-head-top { font-size: 15px; }
}

/* ===== How we choose (exciting version) ===== */
.how-we-choose { background: linear-gradient(180deg, #fff 0%, #eef6ff 100%); position: relative; overflow: hidden; }
.how-we-choose::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(77,183,254,.22), transparent 70%); pointer-events: none; }
.how-we-choose .container { position: relative; }
.hwc-grid { gap: 22px; position: relative; }
.hwc-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #e1ecf8 !important; border-radius: 18px !important; padding: 30px 26px 28px !important; box-shadow: 0 10px 34px rgba(58,87,135,.09); transition: transform .3s, box-shadow .3s, border-color .3s; }
.hwc-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #4DB7FE, #5ECFB1); transform: scaleX(.25); transform-origin: left; transition: transform .4s; }
.hwc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(58,87,135,.18); border-color: rgba(77,183,254,.6) !important; }
.hwc-card:hover::after { transform: scaleX(1); }
.hwc-num { position: absolute; right: 18px; top: 4px; font-family: 'Space Grotesk', sans-serif; font-size: 78px; line-height: 1; font-weight: 700; color: #4DB7FE; opacity: .1; user-select: none; }
.hwc-ico { display: inline-flex !important; width: 58px !important; height: 58px !important; align-items: center; justify-content: center; border-radius: 16px !important; background: linear-gradient(135deg, #4DB7FE, #3a57d6) !important; color: #fff !important; font-size: 24px !important; margin-bottom: 18px !important; box-shadow: 0 10px 22px rgba(77,183,254,.4); transition: transform .3s; }
.hwc-card:hover .hwc-ico { transform: rotate(-6deg) scale(1.08); }
.hwc-card h4 { font-size: 19px !important; color: #1f2f55; margin-bottom: 8px !important; }
.hwc-card p { font-size: 15px !important; }
@media (max-width: 800px) {
  .hwc-grid { gap: 16px; }
  .hwc-card { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; padding: 22px 20px !important; }
  .hwc-card .hwc-ico { grid-row: 1 / span 2; margin: 0 !important; }
  .hwc-card h4 { margin-bottom: 4px !important; align-self: end; }
  .hwc-num { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) { .hwc-card, .hwc-card::after, .hwc-ico { transition: none; } }

/* ===== Design refresh: one look for the whole site (same spirit as "How we choose") ===== */
:root { --r-card: 18px; --grad-accent: linear-gradient(90deg, #4DB7FE, #5ECFB1); --grad-ico: linear-gradient(135deg, #4DB7FE, #3a57d6); --ink: #1f2f55; --line-soft: #e1ecf8; }
h1, h2, h3, h4 { letter-spacing: -.01em; }

/* Cards: rounded, soft border, lift and a growing accent line on hover */
.cat-tile, .collection-card, .article-card, .tool-card, .cat-card, .stat-card, .admin-card, .compare-slot, .detail-card {
  border-radius: var(--r-card); border: 1px solid var(--line-soft); box-shadow: 0 10px 34px rgba(58,87,135,.08);
}
.cat-tile, .collection-card, .article-card, .tool-card, .cat-card, .stat-card, .admin-card { position: relative; transition: transform .3s, box-shadow .3s, border-color .3s; }
.cat-tile::after, .collection-card::after, .article-card::after, .tool-card::after, .cat-card::after, .admin-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-accent) left top / 0% 4px no-repeat; transition: background-size .4s; pointer-events: none;
}
.cat-tile:hover, .collection-card:hover, .article-card:hover, .tool-card:hover, .cat-card:hover, .admin-card:hover {
  transform: translateY(-5px); box-shadow: 0 22px 48px rgba(58,87,135,.17); border-color: rgba(77,183,254,.55);
}
.cat-tile:hover::after, .collection-card:hover::after, .article-card:hover::after, .tool-card:hover::after, .cat-card:hover::after, .admin-card:hover::after { background-size: 100% 4px; }
.tool-card.tier-featured, .tool-card.tier-sponsored { border-color: transparent; }
.detail-card { padding: 28px; }
.detail-card h3, .detail-card h4 { color: var(--ink); }

/* Icon tiles with depth */
.cat-ico, .cat-dot { background-image: linear-gradient(135deg, rgba(255,255,255,.28), rgba(0,0,0,.1)); box-shadow: 0 8px 18px rgba(58,87,135,.22); transition: transform .3s; }
.cat-ico { width: 52px; height: 52px; border-radius: 15px; font-size: 22px; margin-bottom: 12px; }
.cat-tile:hover .cat-ico, .cat-card:hover .cat-ico { transform: rotate(-6deg) scale(1.08); }
.cat-tile { padding: 24px 22px; gap: 5px; }
.cat-name { color: var(--ink); font-size: 16px; }
.cat-count { color: #7c8aa3; font-size: 12.5px; }
.stat-card i, .admin-card i { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 13px; background: var(--grad-ico); color: #fff; font-size: 19px; box-shadow: 0 8px 18px rgba(77,183,254,.35); margin-bottom: 8px; }

/* Section headings */
.section-title h2 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.section-title .section-separator, .section-separator { width: 64px !important; height: 5px !important; border-radius: 4px; background: var(--grad-accent) !important; border: 0 !important; }
.section-title p { color: #5d6b82; }

/* Section backgrounds: soft instead of flat grey */
.gray-bg { background: linear-gradient(180deg, #f3f8ff 0%, #eaf3ff 100%); }
.home-stats { background: #fff; }
.stat-strip strong { background: linear-gradient(135deg, #3a57d6, #4DB7FE 60%, #5ECFB1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 36px; font-weight: 700; }
.stat-strip span { color: #5d6b82; font-weight: 500; }

/* Buttons, chips, tabs */
.btn { border-radius: 12px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.color2-bg, button.btn.color2-bg { background-image: linear-gradient(135deg, #4DB7FE, #3a7bd6); box-shadow: 0 10px 22px rgba(77,183,254,.38); }
.btn.color2-bg:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(77,183,254,.5); }
.btn.border-btn { border-radius: 12px; }
.chip, .chip-btn, .tabs-row button { transition: transform .2s, background .2s, color .2s, border-color .2s; }
.chip-lg { border: 1px solid var(--line-soft); background: #fff; box-shadow: 0 4px 14px rgba(58,87,135,.07); font-weight: 600; }
.chip-lg:hover { transform: translateY(-2px); background: #e8f4ff; border-color: rgba(77,183,254,.6); }
.tabs-row button.on, .tabs-row button:hover { background-image: var(--grad-ico); border-color: transparent; box-shadow: 0 8px 18px rgba(77,183,254,.35); }
.chip-btn.on { background-image: var(--grad-ico); border-color: transparent; }

/* Call-to-action band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 54px 30px; background: linear-gradient(135deg, #4DB7FE 0%, #3a57d6 60%, #384F95 100%); box-shadow: 0 24px 60px rgba(58,87,135,.3); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.cta-band::before { width: 300px; height: 300px; right: -90px; top: -120px; }
.cta-band::after { width: 200px; height: 200px; left: -60px; bottom: -90px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 { font-size: 30px; }

/* Forms and dialogs */
.custom-form input:not([type="checkbox"]):not([type="radio"]), .custom-form textarea, .custom-form select { border-radius: 12px; border-color: #dbe4f0; transition: border-color .2s, box-shadow .2s; }
.custom-form input:focus, .custom-form textarea:focus, .custom-form select:focus { border-color: #4DB7FE; box-shadow: 0 0 0 4px rgba(77,183,254,.18); outline: 0; }
.hero-search-form { border-radius: 16px; box-shadow: 0 0 0 8px rgba(255,255,255,.22), 0 20px 50px rgba(30,60,120,.25); }
.suggest-box { border-radius: 14px; }
.toast { border-radius: 14px; }

/* Badges */
.verified-badge { box-shadow: 0 4px 10px rgba(77,183,254,.4); }
.soft-badge, .price-badge { border-radius: 20px; }

@media (prefers-reduced-motion: reduce) {
  .cat-tile, .collection-card, .article-card, .tool-card, .cat-card, .admin-card, .cat-ico, .btn, .chip-lg { transition: none; }
  .cat-tile::after, .collection-card::after, .article-card::after, .tool-card::after, .cat-card::after, .admin-card::after { transition: none; }
}
@media (max-width: 560px) { .cta-band { padding: 40px 20px; border-radius: 20px; } .cta-band h3 { font-size: 24px; } .stat-strip strong { font-size: 30px; } }

/* Plain divider lines under headings are removed everywhere (the animated card accent lines stay) */
.section-separator, .section-title .section-separator { display: none !important; }

/* ===== Screen fixes ===== */
/* Dashboard overview cards: icon, number and label share one left edge */
.stat-card { align-items: flex-start; text-align: left; }
.stat-card strong, .stat-card span { text-align: left; }
/* Admin sign-in check: card wraps its content, spaced fields and buttons */
.mfa-card { display: flow-root; float: none; max-width: 520px; margin: 40px auto; padding: 28px; }
.mfa-card h1 { float: none; font-size: 26px; color: var(--ink); margin: 0 0 18px; }
.mfa-card .custom-form input { float: none; width: 100%; margin-bottom: 16px; letter-spacing: 4px; font-size: 18px; }
.mfa-card .mfa-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mfa-card .mfa-actions .btn { float: none; margin: 0; }
/* Dialog forms: label sits clear of the field above it */
.custom-form label { margin-top: 14px; }
.custom-form > label:first-child, .custom-form > :first-child > label:first-child { margin-top: 0; }
.custom-form .auth-terms label, .custom-form label.switch { margin-top: 0; }
.custom-form textarea { display: block; width: 100%; margin-bottom: 16px; }

/* ===== Dropdown menus: same look as the input fields, no stray menu icon ===== */
.nice-select { border-radius: 12px; border: 1px solid #dbe4f0; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; padding-left: 16px; padding-right: 40px; height: 48px; line-height: 46px; transition: border-color .2s, box-shadow .2s; }
.nice-select:before { display: none !important; }
.nice-select:hover { border-color: #b9cde6; }
.nice-select.open, .nice-select:focus { border-color: #4DB7FE; box-shadow: 0 0 0 4px rgba(77,183,254,.18); }
.nice-select .current { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-form .nice-select { float: none; display: block; width: 100%; margin-bottom: 16px; }
.nice-select .list { border-radius: 14px; border: 1px solid var(--line-soft); box-shadow: 0 18px 44px rgba(58,87,135,.2); overflow: hidden; background: #fff; }
.nice-select .list .option { font-size: 14.5px; color: #3c4a63; font-weight: 500; transition: background .15s, color .15s; }
.nice-select .list .option:hover, .nice-select .list .option.focus { background: #eef6ff; color: var(--c-secondary); }
.nice-select .list .option.selected { background: #e1f0ff; color: var(--c-secondary); font-weight: 700; }

/* ===== Install the app ===== */
.install-menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 0; }
.install-menu-item i { margin-right: 8px; }
.install-steps { padding-left: 20px; margin: 0; }
.install-steps li { margin-bottom: 10px; font-size: 15px; line-height: 1.6; list-style: decimal; }
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 950; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: 0 18px 50px rgba(30,50,100,.28); animation: toastin .3s ease; }
.install-banner img { border-radius: 11px; flex-shrink: 0; }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; gap: 2px; }
.install-text strong { color: var(--ink); font-size: 14.5px; }
.install-text span { color: #5d6b82; font-size: 12.5px; }
.install-banner .install-go { float: none; margin: 0; height: 40px; line-height: 40px; padding: 0 18px; flex-shrink: 0; }
.install-close { border: 0; background: none; font-size: 24px; line-height: 1; color: #7c8aa3; padding: 4px 6px; cursor: pointer; }
body:has(.compare-tray) .install-banner { bottom: 96px; }
.install-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 16px; cursor: pointer; transition: background .2s, transform .2s; vertical-align: middle; }
.install-icon:hover { background: var(--c-primary); border-color: var(--c-primary); transform: translateY(-2px); }
.sub-footer .container, .sub-footer .container .subfooter-nav { position: static; }
.sub-footer .container { position: relative; }
.sub-footer .copyright { padding-right: 52px; }
.subfooter-nav .install-li { position: absolute; right: 15px; top: 0; margin: 0; }

/* ===== Design review (polish) ===== */
/* Card accent line: hidden at rest, grows on hover only (no stray stubs on every card) */
.cat-tile::after, .collection-card::after, .article-card::after, .tool-card::after, .cat-card::after, .admin-card::after { background-size: 0% 4px; }
.hwc-card::after { transform: scaleX(0); }
/* Section subtitle gets a little air under its heading */
.section-title h2 + p { clear: both; padding-top: 10px; font-size: 15px; line-height: 1.55; }
/* Collection descriptions in the same muted tone as other card text */
.collection-card p { color: #5d6b82; line-height: 1.6; }
/* Numbers strip on phones: tidy 2 x 2 instead of 3 + 1 */
@media (max-width: 600px) {
  .stat-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
}

/* ===== Phone app shell (≤768px): bottom tabs, catalogue sheet, compact cards, sticky tool action ===== */
.tabbar, .dir-filter-btn, .filter-sheet-root, .tool-sticky-cta { display: none; }
@media (max-width: 768px) {
  :root { --tabbar: calc(58px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--tabbar); }
  /* bottom tabs */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); box-shadow: 0 -6px 24px rgba(58,87,135,.1); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: #7c8aa3; font-size: 11px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tabbar a i { font-size: 19px; line-height: 1; }
  .tabbar a.on { color: var(--c-secondary); }
  .tabbar a.on i { color: var(--c-primary); }
  /* things that float at the bottom sit above the tabs */
  .compare-tray { bottom: var(--tabbar); padding-bottom: 10px; }
  body:has(.compare-tray) { padding-bottom: calc(var(--tabbar) + 120px); }
  .install-banner { bottom: calc(var(--tabbar) + 10px); }
  body:has(.compare-tray) .install-banner { bottom: calc(var(--tabbar) + 130px); }
  .toast-stack { right: 12px; left: 12px; bottom: calc(var(--tabbar) + 12px); }
  .to-top { right: 14px; bottom: calc(var(--tabbar) + 14px); }
  .page-hero, .parallax-section.single-par.page-hero { padding: 26px 0 20px !important; }

  /* catalogue: search first, filters in a bottom sheet */
  .mob-nav-content-btn.show-list-wrap-search, .filters-wrap, .filters-wrap.open { display: none !important; }
  .dir-bar { gap: 10px; padding: 10px !important; border-radius: 16px; flex-wrap: nowrap; }
  .dir-search { flex: 1 1 auto; min-width: 0; }
  .dir-search input { height: 46px; border-radius: 12px; font-size: 16px; }
  .dir-opts { display: none; }
  .dir-filter-btn { display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 46px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: var(--c-secondary); color: #fff; font-size: 17px; cursor: pointer; }
  .dir-filter-btn b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 11px; line-height: 20px; box-shadow: 0 0 0 2px #fff; }
  .result-meta { margin: 6px 2px 10px; font-size: 13px; }
  .active-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -15px 12px; padding: 0 15px 2px; width: calc(100% + 30px); -webkit-overflow-scrolling: touch; }
  .active-filters::-webkit-scrollbar { display: none; }
  .active-filters > * { flex: 0 0 auto; white-space: nowrap; }
  .filter-chip { min-height: 34px; }

  .filter-sheet-root { display: block; position: fixed; inset: 0; z-index: 1300; }
  .filter-sheet-backdrop { position: absolute; inset: 0; background: rgba(20,30,60,.5); animation: sheetfade .2s ease; }
  .filter-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(20,30,60,.3); animation: sheetup .28s cubic-bezier(.2,.8,.2,1); text-align: left; }
  .filter-sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 12px; border-bottom: 1px solid #eef2f8; flex: 0 0 auto; }
  .filter-sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d5deeb; }
  .filter-sheet-head strong { font-size: 18px; color: var(--ink); }
  .filter-sheet-head button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f6fa; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
  .filter-sheet-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 18px 18px; }
  .filter-sheet-body > .filter-group { float: none; width: 100%; display: flow-root; margin-bottom: 18px; }
  .filter-sheet-body .filter-panel { float: none; padding: 0; box-shadow: none; border: 0; border-radius: 0; display: flow-root; }
  .filter-sheet-body .filter-head { display: none; }
  .filter-sheet-body .nice-select { float: none; display: block; width: 100%; }
  .filter-sheet-foot { flex: 0 0 auto; display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eef2f8; background: #fff; }
  .filter-sheet-foot .btn { float: none; margin: 0; height: 48px; line-height: 48px; padding: 0 18px; text-align: center; }
  .filter-sheet-foot .btn.color2-bg { flex: 1; }
  .filter-sheet-foot .btn.border-btn { line-height: 44px; }

  /* compact, scannable cards: the whole card opens the tool */
  .tool-grid { gap: 12px; }
  .tool-card { padding: 14px 14px 12px; border-radius: 16px; }
  .tool-card:hover { transform: none; }
  .tool-card-top { gap: 12px; }
  .tool-card-logo img, .tool-card-logo .tool-logo { width: 44px !important; height: 44px !important; font-size: 17px !important; }
  .tool-card-title h3 { font-size: 16px; }
  .tool-card-title h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .tool-card .fav-btn, .tool-card .listing-item-category-wrap { position: relative !important; z-index: 2; }
  .tool-card-body { padding-top: 8px !important; position: static !important; z-index: auto; }
  .tool-card-body .small-text { font-size: 13.5px; line-height: 19px; margin-bottom: 8px; padding: 0; max-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tool-card .geodir-category-footer { margin-top: 10px; padding-top: 10px !important; }
  .tool-card .listing-item-category { width: 26px; height: 26px; line-height: 26px; font-size: 11px; }
  .tool-card .listing-item-category-wrap span { top: 4px; margin-left: 8px; font-size: 12.5px; }
  .tool-card-actions { padding-top: 10px; flex-wrap: nowrap; }
  .tool-card-actions .tool-details-link { display: none; }
  .tool-card-actions .compare-btn, .tool-card-actions .tool-visit-link { flex: 1 1 0; min-height: 40px; }

  /* tool page: main action pinned above the tabs */
  .tool-sticky-cta { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: var(--tabbar); z-index: 880; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line-soft); box-shadow: 0 -8px 26px rgba(58,87,135,.14); }
  .tool-sticky-cta .btn { flex: 1 1 auto; float: none; margin: 0; height: 46px; line-height: 46px; padding: 0 14px; text-align: center; white-space: nowrap; }
  .tool-sticky-cta .fav-btn { width: 46px; height: 46px; flex: 0 0 46px; }
  .tool-sticky-cta .compare-btn { height: 46px; flex: 0 0 auto; }
  .tool-sticky-cta > :only-child, .tool-sticky-cta .compare-btn:nth-child(2) { flex: 1 1 auto; }
  body:has(.tool-sticky-cta) { padding-bottom: calc(var(--tabbar) + 66px); }
  body:has(.tool-sticky-cta) .compare-tray { bottom: calc(var(--tabbar) + 66px); }
  body:has(.tool-sticky-cta):has(.compare-tray) { padding-bottom: calc(var(--tabbar) + 186px); }
  body:has(.tool-sticky-cta) .install-banner, body:has(.tool-sticky-cta) .toast-stack, body:has(.tool-sticky-cta) .to-top { bottom: calc(var(--tabbar) + 78px); }
  .tool-hero-cta .visit-btn, .tool-hero-cta .cta-row > :not(.hero-share) { display: none; }
  .tool-hero-cta .cta-row { display: flex; justify-content: flex-start; }
  .tool-hero-cta .cta-row .hero-share { width: auto; }
}
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .filter-sheet, .filter-sheet-backdrop { animation: none; } }

/* Phones: Saved and Profile live in the bottom tabs, so the header keeps only search and the menu */
@media (max-width: 768px) {
  #main:has(> .tabbar) .main-header .cart-btn,
  #main:has(> .tabbar) .main-header .user-menu,
  #main:has(> .tabbar) .main-header > .show-reg-form,
  #main:has(> .tabbar) .main-header .header-modal { display: none !important; }
  #main:has(> .tabbar) .main-header .header-search_btn { float: right; margin: 0 10px 0 0; top: 22px; }
  #main:has(> .tabbar) .main-header .nav-button-wrap { margin-right: 0; }
}

/* Phones: the Categories tab replaces the category shortcuts in the hero */
@media (max-width: 768px) {
  #main:has(> .tabbar) .home-hero .hero-categories { display: none; }
}

/* Phones: back button on inner pages, 44px touch targets, comfortable forms */
.m-back { display: none; }
@media (max-width: 768px) {
  .main-header .m-back { display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 6px; top: 18px; height: 44px; min-width: 44px; padding: 0 12px 0 8px; border: 0; background: none; color: #fff; font-weight: 600; font-size: 16px; line-height: 1; font-family: inherit; z-index: 5; -webkit-tap-highlight-color: transparent; }
  .main-header .m-back i { font-size: 18px; }
  .main-header .m-back span { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main-header:has(.m-back) .logo-holder { display: none; }
  .main-header .header-search_btn, .main-header .nav-button-wrap { min-width: 44px; min-height: 44px; }
  .tool-card .geodir-js-favorite_btn, .fav-btn { width: 44px; height: 44px; }
  .filter-sheet-head button { min-width: 44px; min-height: 44px; font-size: 26px; }
  .filter-sheet-foot .btn { min-height: 44px; }
  .tabbar a { min-height: 44px; }
  /* 16px text stops the phone from zooming into a field; fields stay visible above the keyboard */
  .custom-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]), .custom-form textarea, .custom-form select,
  .header-search-input input, .dir-search input { font-size: 16px; min-height: 44px; scroll-margin-bottom: 24px; }
  body:has(input:is([type=text],[type=email],[type=password],[type=search],[type=url],[type=number],[type=tel],:not([type])):focus, textarea:focus) .tabbar,
  body:has(input:is([type=text],[type=email],[type=password],[type=search],[type=url],[type=number],[type=tel],:not([type])):focus, textarea:focus) .tool-sticky-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Phones, account area: the menu is always open. On the account home it is a full list; on the other pages it is a strip of tabs at the top. */
@media (max-width: 768px) {
  .mob-nav-content-btn.init-dsmen { display: none !important; }
  .dash-menu-wrap, .dash-menu-wrap.open { display: block; margin-bottom: 16px; }
  .dash-menu-wrap .user-profile-menu a { display: flex; align-items: center; min-height: 48px; }
  .dash-menu-wrap.as-strip .user-profile-menu h3, .dash-menu-wrap.as-strip .logout_btn { display: none; }
  .dash-menu-wrap.as-strip .user-profile-menu-wrap { padding: 0; background: none; box-shadow: none; border: 0; }
  .dash-menu-wrap.as-strip .user-profile-menu { padding: 0; }
  .dash-menu-wrap.as-strip .user-profile-menu ul { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
  .dash-menu-wrap.as-strip .user-profile-menu ul::-webkit-scrollbar { display: none; }
  .dash-menu-wrap.as-strip .user-profile-menu li { flex: 0 0 auto; float: none; width: auto; margin: 0; }
  .dash-menu-wrap.as-strip .user-profile-menu a { white-space: nowrap; padding: 0 16px; min-height: 44px; border-radius: 30px; background: #fff; border: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; }
  .dash-menu-wrap.as-strip .user-profile-menu a.user-profile-act { background: var(--c-secondary); color: #fff; border-color: var(--c-secondary); }
  .dash-menu-wrap.as-strip .user-profile-menu a i { margin-right: 8px; position: static; }
  .dash-menu-wrap.as-list .logout_btn { min-height: 48px; }
}
@media (max-width: 768px) {
  .dash-menu-wrap.as-strip .user-profile-menu li, .dash-menu-wrap.as-strip .user-profile-menu li:first-child { border: 0; }
  .dash-menu-wrap.as-strip .user-profile-menu li a i { float: none; width: auto; top: 0; }
  .dash-menu-wrap.as-strip .user-profile-menu li a span { position: static; width: auto; min-width: 20px; height: 20px; margin: 0 0 0 8px; padding: 0 6px; background: #eef5fc; color: var(--c-secondary); font-size: 11px; font-weight: 700; border-radius: 10px; }
  .dash-menu-wrap.as-strip .user-profile-menu li a.user-profile-act span { background: rgba(255,255,255,.25); color: #fff; }
  .dash-menu-wrap.as-strip .user-profile-menu li a::before { display: none; }
  .dash-menu-wrap.as-list .user-profile-menu li a span { background: #eef5fc; color: var(--c-secondary); font-weight: 700; }
}
@media (max-width: 1064px) { .dash-menu-wrap.open .user-profile-menu-wrap { display: block; } }
@media (max-width: 768px) { .dash-menu-wrap .user-profile-menu-wrap { display: block; } }
@media (max-width: 768px) { .dash-menu-wrap.as-list .logout_btn { float: none; width: calc(100% - 40px); margin: 6px 20px 4px; justify-content: center; gap: 8px; padding: 0 16px; } }
@media (max-width: 768px) { .dash-menu-wrap.as-list .logout_btn { height: 48px; line-height: 1; align-items: center; } }

/* Директория: подсказките при търсене с лога (като на началната страница) */
.dir-search .suggest-box { max-height: min(60dvh, 420px); overflow-y: auto; }
.dir-search .suggest-row > span { min-width: 0; overflow-wrap: anywhere; }
.dir-search .suggest-row > .tool-logo { flex: none; overflow-wrap: normal; }
.dir-search .suggest-row > i { width: 28px; text-align: center; flex: none; }
.dir-search .suggest-row > span { flex: 0 1 auto; }
.dir-search .suggest-row em { flex: 1 1 0; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-search .suggest-row em:is(:last-child) { max-width: 46%; }

/* Хиксът на отвореното меню — точно в средата на квадратчето */
.nav-button-wrap.vismobmenu_btn:before { top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* ===== Home: calm hero, one clear action (impeccable critique pass) ===== */
.home-hero { background: linear-gradient(180deg, #eaf5ff 0%, #ffffff 100%) !important; padding: 140px 0 56px; }
.home-hero::before, .home-hero::after, .home-hero .gradient-bg-figure { display: none !important; }
.home-hero .intro-item h1 { color: var(--c-secondary); text-shadow: none; }
.home-hero .intro-item h3 { color: var(--c-dark); text-shadow: none; opacity: 1; }
.home-hero .hl { color: var(--c-secondary); background: linear-gradient(transparent 62%, rgba(94,207,177,.55) 62%); }
.hero-search-wrap { position: relative; }
.hero-search-form { box-shadow: 0 6px 30px rgba(58,87,135,.14); border: 1px solid #e1ecf8; }
.hero-search-form .main-search-button { position: static; width: 150px; height: 50px; background: var(--c-primary); transition: background .2s; }
.hero-search-form .main-search-button:hover { background: var(--c-secondary); }
.hero-search-wrap .suggest-box { top: calc(100% + 6px); left: 0; right: 0; text-align: left; }
.home-hero .popular-searches { color: var(--c-dark); text-shadow: none; text-align: center; margin-top: 18px; }
.home-hero .popular-searches span { opacity: 1; }
.home-hero .popular-searches a { background: #fff; color: var(--c-secondary); border: 1px solid #e1ecf8; min-height: 32px; line-height: 24px; }
.home-hero .popular-searches a:hover { background: var(--c-chip, #eef5fc); color: var(--c-primary); }
@media (max-width: 768px) { .home-hero { padding: 110px 0 40px; } .home-hero .popular-searches { justify-content: center; } }
.usecase-cloud { text-align: center; }
.pad-sec-flush { padding-top: 0; }
.placement-inline { margin-left: 8px; }
.cta-band .btn.cta-light { background: #fff !important; color: #384F95 !important; }
.cta-band .btn.border-btn { border-color: #fff; color: #fff; }
.home-hero { height: auto !important; min-height: 0 !important; }
.usecase-cloud .btn { float: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; line-height: 1; padding: 0 26px; box-sizing: border-box; }
/* Search suggestions must never be clipped by the hero, and must scroll when long */
.home-hero { overflow: visible; z-index: 3; }
.hero-search-wrap .suggest-box { max-height: min(380px, max(170px, calc(100dvh - 600px))); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* Hero colour: sky and mint glows on a cool wash, tinted shadow (static, calm) */
.home-hero { background:
  radial-gradient(60% 70% at 12% 0%, rgba(77,183,254,.34), rgba(77,183,254,0) 70%),
  radial-gradient(50% 60% at 92% 18%, rgba(94,207,177,.26), rgba(94,207,177,0) 70%),
  linear-gradient(180deg, #dcefff 0%, #eef7ff 62%, #ffffff 100%) !important; }
.home-hero .hl { background: linear-gradient(transparent 60%, rgba(94,207,177,.7) 60%); }
.hero-search-form { border-color: #bfdcf7; box-shadow: 0 10px 34px rgba(56,79,149,.18); transition: box-shadow .2s, border-color .2s; }
.hero-search-form:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(77,183,254,.35), 0 10px 34px rgba(56,79,149,.18); }
.home-hero .popular-searches a { border-color: #bfdcf7; }
.home-hero .popular-searches a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.hero-search-form input:focus, .hero-search-form input:focus-visible { outline: none; box-shadow: none; border: 0; }
/* Hero: the highlighter on "seconds" is drawn once on arrival */
.home-hero .hl { background-repeat: no-repeat; background-position: left bottom; background-size: 100% 100%; animation: hl-draw .8s cubic-bezier(.22,1,.36,1) .25s both; }
@keyframes hl-draw { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .home-hero .hl { animation: none; } }
/* Hero polish: balanced headline, one-row search on tablets, comfortable touch targets */
.home-hero .intro-item h1 { text-wrap: balance; }
.home-hero .intro-item h3 { text-wrap: pretty; }
.home-hero .hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-search-form .main-search-button { font-size: 14px; }
@media (min-width: 561px) and (max-width: 768px) {
  .hero-search-form { flex-wrap: nowrap; padding: 6px 6px 6px 18px; }
  .hero-search-form input { flex: 1 1 auto; }
  .hero-search-form .main-search-button { width: 140px !important; }
}
@media (max-width: 768px) { .home-hero .popular-searches a { min-height: 40px; line-height: 30px; padding: 4px 14px; } }
/* ===== Hero v2: soft sky + ink violet + warm coral, bigger type ===== */
.home-hero { padding: 170px 0 96px;
  background:
    radial-gradient(55% 75% at 8% 0%, rgba(77,183,254,.5), rgba(77,183,254,0) 70%),
    radial-gradient(48% 70% at 96% 6%, rgba(150,130,255,.3), rgba(150,130,255,0) 70%),
    radial-gradient(46% 40% at 62% 68%, rgba(255,150,110,.3), rgba(255,150,110,0) 72%),
    linear-gradient(180deg, #e2f1ff 0%, #f1f8ff 60%, #ffffff 100%) !important; }
.home-hero .intro-item h1 { color: #2b2766; font-size: clamp(40px, 6vw, 74px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.home-hero .intro-item h3 { color: #4a4a72; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; max-width: 680px; }
.home-hero .hl { color: #2b2766; background-image: linear-gradient(transparent 58%, rgba(255,122,89,.55) 58%); padding: 0 6px; }
.hero-search-box { margin-top: 44px; }
.hero-search-form { border-radius: 18px; padding: 8px 8px 8px 22px; border-color: #cfd3fb; box-shadow: 0 18px 50px rgba(70,60,160,.2); }
.hero-search-form input { height: 56px; font-size: 17px; }
.hero-search-form .main-search-button { height: 56px; border-radius: 12px; width: 160px; }
.hero-search-form:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(77,183,254,.35), 0 18px 50px rgba(70,60,160,.2); }
.home-hero .popular-searches { color: #4a4a72; }
.home-hero .popular-searches a { color: #2b2766; border-color: #cfd3fb; }
@media (max-width: 768px) { .home-hero { padding: 112px 0 56px; } .hero-search-form input { height: 52px; font-size: 16px; } .hero-search-form .main-search-button { height: 52px; } .hero-search-box { margin-top: 32px; } }
@media (min-width: 561px) and (max-width: 768px) { .hero-search-form .main-search-button { width: 140px !important; } }

/* ===== Light chrome: the dark navy surfaces are now soft light blue ===== */
:root { --c-chrome: #E8F3FF; --c-chrome-2: #D6EAFF; --c-chrome-line: #D3E6FA; --c-chrome-text: #2f4678; }
body, .loader-wrap { background: #EEF5FF; }
.main-header { background: var(--c-chrome); box-shadow: 0 1px 0 var(--c-chrome-line), 0 8px 24px rgba(58,87,135,.08); }
.main-header .brand-text, .main-header nav ul li a, .main-header .user-chip, .main-header .header-search_btn,
.main-header button.avatar-img, .main-header .show-reg-form, .main-header .fa-heart, .main-header a .fa-heart,
.main-header .header-search_btn i, .main-header .nav-button-wrap, .main-header .wishlist-link { color: var(--c-chrome-text); }
.main-header .brand-text b { color: var(--c-primary); }
.brand-text .brand-me { color: #1FA98A; }
.main-header .add-list, .main-header .add-list i { color: #fff; }
.main-header .header-search_container { background: var(--c-chrome); }
.main-header .header-search_container h4, .main-header .popular-searches > span { color: var(--c-chrome-text); }
.main-header .header-search-button, .main-header .header-search-button i, .main-header .btn.color2-bg { color: #fff; }
.color2-bg { background: linear-gradient(135deg, #4DB7FE, #3A6FE0) !important; }
.header-modal-top { background: var(--c-chrome); }
.header-modal-top, .header-modal-top h4, .header-modal-top i { color: var(--c-chrome-text); }
.to-top { background: var(--c-chrome); color: var(--c-chrome-text); }
.main-footer { background: var(--c-chrome); }
.sub-footer { background: var(--c-chrome-2); }
.main-footer, .main-footer h3, .main-footer p, .main-footer a, .main-footer .footer-link, .main-footer i,
.main-footer .copyright, .sub-footer .copyright, .main-footer .footer-social span, .brand-logo.light .brand-text { color: var(--c-chrome-text); }
.main-footer .subcribe-form #subscribe-button i { color: #fff; }
.main-footer .footer-contacts a, .main-footer .footer-contacts li { background: #fff; }
.admin-side { background: var(--c-chrome); }
.admin-side, .admin-side a, .admin-side button, .admin-side li { color: var(--c-chrome-text); }
.admin-side a.active, .admin-side button.active, .admin-side a:hover, .admin-side button:hover { background: rgba(58,87,135,.1); }
.bulk-bar { background: var(--c-chrome); color: var(--c-chrome-text); }
.bulk-bar button { background: #fff; color: var(--c-chrome-text); }
.bulk-bar button:hover { background: var(--c-chrome-2); }
.cta-band { background: linear-gradient(135deg, #DCEEFF 0%, #CDE4FF 100%) !important; box-shadow: 0 18px 44px rgba(58,87,135,.14); }
.cta-band h3, .cta-band p { color: var(--c-chrome-text) !important; }
.cta-band .btn.border-btn { border-color: #384F95 !important; color: #384F95 !important; }
/* Hero back to the soft sky and mint look */
.home-hero { background:
    radial-gradient(55% 75% at 10% 0%, rgba(77,183,254,.34), rgba(77,183,254,0) 70%),
    radial-gradient(48% 60% at 94% 14%, rgba(94,207,177,.24), rgba(94,207,177,0) 70%),
    linear-gradient(180deg, #dcefff 0%, #eef7ff 62%, #ffffff 100%) !important; }
.home-hero .intro-item h1, .home-hero .hl { color: #384F95; }
.home-hero .intro-item h3, .home-hero .popular-searches { color: #50596E; }
.home-hero .hl { background-image: linear-gradient(transparent 58%, rgba(94,207,177,.6) 58%); }
.hero-search-form { border-color: #bfdcf7; box-shadow: 0 14px 40px rgba(58,87,135,.18); }
.home-hero .popular-searches a { color: #384F95; border-color: #bfdcf7; }
.hero-search-form .main-search-button { background: var(--c-primary); }
.hero-search-form .main-search-button:hover { background: #384F95; }
.main-footer, .main-footer * { color: var(--c-chrome-text) !important; }
.main-footer #subscribe-button, .main-footer #subscribe-button * { color: #fff !important; }
.main-footer .footer-link:hover, .main-footer a:hover { color: #3A6FE0 !important; }
.sub-footer .copyright, .sub-footer .copyright * { color: var(--c-chrome-text) !important; }
.sub-footer a { color: #2a57c4 !important; }
.main-footer .subtitle-footer, .main-footer .footer-widget p { opacity: 1; }
/* Mint = the green dot of the logo (#5ECFB1): ".me" and the highlighter */
.brand-text .brand-me, .main-footer .brand-text .brand-me { color: #5ECFB1 !important; }
.home-hero .hl { background-image: linear-gradient(transparent 58%, #5ECFB1 58%); }
/* Phone: search box has equal padding, button fills the width */
@media (max-width: 560px) {
  .hero-search-form { padding: 10px; gap: 8px; }
  .hero-search-form > i { margin-left: 6px; }
  .hero-search-form .main-search-button { width: 100% !important; margin: 0; }
}

/* Buttons and badges that were dark indigo -> the site's light blue */
.tool-visit-link, .dir-filter-btn, .dash-menu-wrap.as-strip .user-profile-menu a.user-profile-act { background: linear-gradient(135deg, #4DB7FE, #3A6FE0); border-color: transparent; color: #fff; }
.tool-visit-link:hover { background: linear-gradient(135deg, #3A6FE0, #3A6FE0); color: #fff; }
.price-badge.dark-blue-bg, .dark-blue-bg { background: #DCEEFF !important; color: #384F95 !important; }
.main-search-button:hover { background: #3A6FE0; }

/* Header search panel on the light header: readable field, chips and button */
.main-header .header-search_container { box-shadow: 0 16px 32px rgba(58,87,135,.16); border-bottom: 1px solid var(--c-chrome-line); }
.main-header .header-search-input { background: #fff; border: 1px solid #cfe6fb; border-radius: 12px; }
.main-header .header-search-input input { background: transparent; color: var(--c-chrome-text); }
.main-header .header-search-input input::placeholder { color: #6f7c99; opacity: 1; }
.main-header .header-search-input i { color: var(--c-primary); }
.main-header .header-search_container .popular-searches a { background: #fff; color: #384F95; border: 1px solid #cfe6fb; }
.main-header .header-search_container .popular-searches a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.main-header .header-search-button { background: linear-gradient(135deg, #4DB7FE, #3A6FE0) !important; }
/* Tablet/landscape: the Submit button and the menu button must not touch */
@media (min-width: 560px) and (max-width: 1064px) { .main-header .add-list { margin-right: 14px; } }

/* ===== Hero: floating, moving gradient (sky + mint, always light so the text stays readable) ===== */
.home-hero { isolation: isolate; overflow-x: clip;
  background: linear-gradient(115deg, #d3eaff 0%, #e6f6ff 24%, #d2f3e9 50%, #dcebff 76%, #d3eaff 100%) !important;
  background-size: 300% 300% !important; animation: hero-sweep 14s ease-in-out infinite !important; }
.hero-bg::before, .hero-bg::after { display: block !important; content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(46px); will-change: transform; }
.hero-bg::before { width: min(620px, 95vw); height: min(620px, 95vw); left: -10%; top: -30%; background: radial-gradient(circle at 40% 40%, rgba(77,183,254,.7), rgba(77,183,254,0) 70%); animation: hero-drift-a 10s ease-in-out infinite alternate; }
.hero-bg::after { width: min(680px, 100vw); height: min(680px, 100vw); right: -12%; bottom: -42%; background: radial-gradient(circle at 55% 55%, rgba(94,207,177,.6), rgba(94,207,177,0) 70%); animation: hero-drift-b 12s ease-in-out infinite alternate; }
.home-hero .gradient-bg-figure { display: block !important; position: absolute; z-index: -1; width: min(380px, 70vw); height: min(380px, 70vw); left: 38%; top: 8%; border-radius: 50%; filter: blur(40px); background: radial-gradient(circle, rgba(58,111,224,.34), rgba(58,111,224,0) 68%) !important; animation: hero-drift-c 9s ease-in-out infinite alternate; }
@keyframes hero-sweep { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes hero-drift-a { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(34vw, 120px) scale(1.25); } }
@keyframes hero-drift-b { 0% { transform: translate(0,0) scale(1.1); } 100% { transform: translate(-32vw, -110px) scale(.9); } }
@keyframes hero-drift-c { 0% { transform: translate(-18vw, 30px) scale(.9); } 100% { transform: translate(20vw, 90px) scale(1.2); } }
@media (max-width: 767px) { .hero-bg::before, .hero-bg::after, .home-hero .gradient-bg-figure { filter: blur(34px); } }
@media (prefers-reduced-motion: reduce) { .home-hero, .hero-bg::before, .hero-bg::after { animation: none !important; } }
.home-hero > .container { position: relative; z-index: 1; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }

/* ===== Mobile navigation: sliding pill, springy icons, badge, hide on scroll, menu motion ===== */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
.page-in { animation: page-in .22s ease-out; }
@keyframes tab-pop { 0% { transform: translateY(5px) scale(.7); } 55% { transform: translateY(-6px) scale(1.28); } 100% { transform: translateY(-2px) scale(1.12); } }
@keyframes badge-pop { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes menu-item { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes burger-spin { from { transform: rotate(-90deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-button-wrap.vismobmenu_btn:before { animation: burger-spin .3s cubic-bezier(.34,1.56,.64,1); }
@media (max-width: 1064px) {
  .main-menu.vismobmenu nav ul li, .main-menu.vismobmenu .menusb > ul > li { animation: menu-item .34s cubic-bezier(.22,1,.36,1) both; }
  .main-menu.vismobmenu nav ul li:nth-child(1) { animation-delay: 40ms; } .main-menu.vismobmenu nav ul li:nth-child(2) { animation-delay: 80ms; }
  .main-menu.vismobmenu nav ul li:nth-child(3) { animation-delay: 120ms; } .main-menu.vismobmenu nav ul li:nth-child(4) { animation-delay: 160ms; }
  .main-menu.vismobmenu nav ul li:nth-child(5) { animation-delay: 200ms; } .main-menu.vismobmenu nav ul li:nth-child(n+6) { animation-delay: 240ms; }
}
@media (max-width: 768px) {
  .tabbar { overflow: visible; background: rgba(255,255,255,.88); transition: transform .34s cubic-bezier(.22,1,.36,1); }
  .tabbar.is-hidden { transform: translateY(112%); }
  .tabbar .tab-pill { position: absolute; top: 6px; left: 0; width: 20%; height: calc(var(--tabbar) - 12px - env(safe-area-inset-bottom, 0px)); pointer-events: none;
    transform: translateX(calc(var(--i, 0) * 100%)) scale(var(--on, 1)); opacity: var(--on, 1);
    transition: transform .5s cubic-bezier(.34,1.45,.64,1), opacity .2s; }
  .tabbar .tab-pill::before { content: ""; position: absolute; inset: 0 9px; border-radius: 16px; background: linear-gradient(180deg, rgba(77,183,254,.26), rgba(77,183,254,.1)); box-shadow: inset 0 0 0 1px rgba(77,183,254,.25); }
  .tabbar a { position: relative; z-index: 1; transition: color .25s; }
  .tabbar a::after { content: ""; position: absolute; inset: 6px 9px; border-radius: 16px; background: rgba(77,183,254,.28); opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s; pointer-events: none; }
  .tabbar a:active::after { opacity: 1; transform: scale(1); transition-duration: .06s; }
  .tabbar .tab-ico { position: relative; display: inline-flex; transition: transform .32s cubic-bezier(.34,1.56,.64,1); }
  .tabbar a.on .tab-ico { transform: translateY(-2px) scale(1.12); animation: tab-pop .5s cubic-bezier(.34,1.56,.64,1); }
  .tabbar a:active .tab-ico { transform: scale(.82); }
  .tabbar .tab-label { transition: transform .3s cubic-bezier(.22,1,.36,1), color .25s; }
  .tabbar a.on .tab-label { transform: translateY(-1px); font-weight: 700; }
  .tabbar .tab-badge { position: absolute; top: -7px; right: -13px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #3A6FE0; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; animation: badge-pop .45s cubic-bezier(.34,1.56,.64,1); }
}
@media (prefers-reduced-motion: reduce) {
  .page-in, .nav-button-wrap.vismobmenu_btn:before, .main-menu.vismobmenu nav ul li, .tabbar .tab-badge, .tabbar a.on .tab-ico { animation: none !important; }
  .tabbar, .tabbar .tab-pill, .tabbar .tab-ico, .tabbar .tab-label, .tabbar a::after { transition: none !important; }
}

/* ===== Floating tab bar ===== */
@media (max-width: 768px) {
  :root { --tabbar-h: 58px; --tabbar-gap: 12px; --tabbar: calc(var(--tabbar-h) + var(--tabbar-gap) + 10px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { left: var(--tabbar-gap); right: var(--tabbar-gap); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: var(--tabbar-h); padding-bottom: 0; border-radius: 26px;
    background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.75); box-shadow: 0 14px 34px rgba(58,87,135,.26), 0 2px 6px rgba(58,87,135,.12), inset 0 1px 0 rgba(255,255,255,.9); }
  .tabbar.is-hidden { transform: translateY(calc(100% + 34px)); }
  .tabbar .tab-pill { top: 6px; height: calc(var(--tabbar-h) - 14px); }
  .tabbar .tab-pill::before { border-radius: 20px; inset: 0 8px; }
  .tabbar a::after { border-radius: 20px; inset: 6px 8px; }
}

/* ===== Tab bar: floating bubble in a curved notch (phones) ===== */
@media (max-width: 768px) {
  .tabbar { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; filter: drop-shadow(0 10px 18px rgba(58,87,135,.22)) drop-shadow(0 2px 3px rgba(58,87,135,.1)); }
  .tabbar .tab-bg { position: absolute; inset: 0; border-radius: 26px; background: rgba(255,255,255,.97);
    -webkit-mask-image: radial-gradient(circle at 50% 0, #000 30px, transparent 31px), linear-gradient(#000, #000);
    mask-image: radial-gradient(circle at 50% 0, #000 30px, transparent 31px), linear-gradient(#000, #000);
    -webkit-mask-size: 20% 100%, 100% 100%; mask-size: 20% 100%, 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: calc(var(--i, 0) * 25%) 0, 0 0; mask-position: calc(var(--i, 0) * 25%) 0, 0 0;
    -webkit-mask-composite: xor; mask-composite: exclude;
    transition: -webkit-mask-position .5s cubic-bezier(.34,1.3,.64,1), mask-position .5s cubic-bezier(.34,1.3,.64,1); }
  .tabbar .tab-pill { top: -26px; height: 52px; z-index: 0; }
  .tabbar .tab-pill::before { inset: auto; left: 50%; top: 0; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; background: var(--grad-btn); box-shadow: 0 6px 14px rgba(58,111,224,.4), inset 0 1px 0 rgba(255,255,255,.35); }
  .tabbar a::after { display: none; }
  .tabbar a.on .tab-ico { animation: none; transform: translateY(-21px) scale(1.12); }
  .tabbar a.on i { color: #fff; }
  .tabbar a.on .tab-label { opacity: 0; transform: translateY(4px); }
  .tabbar .tab-label { transition: transform .3s cubic-bezier(.22,1,.36,1), color .25s, opacity .2s; }
}
@media (prefers-reduced-motion: reduce) { .tabbar .tab-bg { transition: none !important; } }

/* Admin menu on the light theme: readable links, light-blue active state, blue menu button on phones */
.admin-side-head { color: var(--c-chrome-text); border-bottom-color: rgba(58,87,135,.15); }
.admin-side nav a { color: var(--c-chrome-text); }
.admin-side nav a:hover, .admin-side nav a.on { background: rgba(77,183,254,.16); color: #384F95; box-shadow: inset 3px 0 0 #4DB7FE; }
.admin-side nav a b { color: #fff; }
.admin-side-back, .admin-side .back-link, .admin-side > a { color: var(--c-chrome-text); }
@media (max-width: 900px) {
  .admin-burger { background: linear-gradient(135deg, #4DB7FE, #3A6FE0); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(58,111,224,.25); }
  .admin-side { border: 1px solid var(--c-chrome-line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
}

/* ===== My collections ===== */
.mc-sky { background: linear-gradient(135deg, #4DB7FE, #3A6FE0); }
.mc-mint { background: linear-gradient(135deg, #5ECFB1, #2FA98A); }
.mc-amber { background: linear-gradient(135deg, #F8BD38, #F08A24); }
.mc-coral { background: linear-gradient(135deg, #FF8A6B, #F75C96); }
.mycoll-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 4px; }
@media (max-width: 760px) { .mycoll-grid { grid-template-columns: minmax(0, 1fr); } }
.mycoll { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 6px 30px rgba(58,87,135,.1); display: flex; flex-direction: column; gap: 12px; text-align: left; transition: box-shadow .25s, transform .25s; }
.mycoll:hover { box-shadow: 0 12px 38px rgba(58,87,135,.16); }
.mycoll-head { display: flex; align-items: center; gap: 14px; }
.mycoll-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; box-shadow: 0 8px 18px rgba(58,111,224,.22); }
.mycoll-title { flex: 1; min-width: 0; }
.mycoll-title h3 { float: none; margin: 0 0 2px; font-size: 18px; line-height: 1.25; color: var(--c-secondary); overflow-wrap: anywhere; }
.mycoll-count { display: inline-block; font-size: 12px; font-weight: 700; color: #3A6FE0; background: #eef5fc; border-radius: 20px; padding: 2px 10px; }
.mycoll-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f3f6fa; color: var(--c-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s, color .2s, transform .15s; }
.icon-btn:hover { background: #e3eefb; color: #3A6FE0; }
.icon-btn:active { transform: scale(.9); }
.icon-btn.danger:hover { background: #fde6e9; color: #e0434f; }
.mycoll-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--c-text); overflow-wrap: anywhere; }
.mycoll .collection-logos { margin: 2px 0 0; align-items: center; }
.mycoll-more { margin-left: 12px; font-size: 13px; font-weight: 700; color: #3A6FE0; }
.mycoll-drop { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border: 2px dashed #cfe3f8; background: #f7fbff; color: #3A6FE0; border-radius: 12px; font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s; }
.mycoll-drop:hover { background: #eaf4ff; border-color: #4DB7FE; }
.mycoll-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.btn-soft { flex: 1 1 130px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: #eef5fc; color: #384F95; font-weight: 600; font-size: 14px; padding: 0 14px; transition: background .2s, transform .15s; }
.btn-soft:hover:not(:disabled) { background: #dfeefc; }
.btn-soft:active:not(:disabled) { transform: scale(.97); }
.btn-soft:disabled { opacity: .5; cursor: default; }
.btn-soft.primary { background: linear-gradient(135deg, #4DB7FE, #3A6FE0); color: #fff; }
.btn-soft.primary:hover { background: linear-gradient(135deg, #3A6FE0, #3A6FE0); }
.mycoll-list { margin: 0; padding: 4px 0 0; border-top: 1px solid #eef2f7; }
.mycoll-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f4f8; }
.mycoll-list li a { flex: 1; min-width: 0; font-weight: 600; color: var(--c-secondary); overflow-wrap: anywhere; }
.mycoll-add { background: #f7fbff; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mycoll-add strong { color: var(--c-secondary); font-size: 14px; }
.mycoll-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mycoll-pick .chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.mycoll-pick .chip-btn .fa-plus { color: #3A6FE0; font-size: 12px; }
.mycoll-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 20px; text-align: center; }
.mycoll-empty .mycoll-ico { width: 64px; height: 64px; font-size: 26px; border-radius: 20px; }
.mycoll-empty h3 { float: none; margin: 0; }
.mycoll-empty p { margin: 0; max-width: 420px; }
.mycoll-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mycoll-ideas .chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; }
.mycoll-ideas .chip-btn i { color: #3A6FE0; }
.mycoll-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.mycoll-icons button { aspect-ratio: 1; border: 2px solid #e6edf6; background: #fff; border-radius: 12px; color: var(--c-dark); font-size: 18px; transition: border-color .2s, background .2s; }
.mycoll-icons button.on { border-color: #4DB7FE; background: #eef7ff; color: #3A6FE0; }
.mycoll-colors { display: flex; gap: 10px; margin-bottom: 14px; }
.mycoll-colors button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #dbe6f3; }
.mycoll-colors button.on { box-shadow: 0 0 0 3px #3A6FE0; }
@media (prefers-reduced-motion: reduce) { .mycoll, .icon-btn, .btn-soft { transition: none; } }

/* My collections fills the column; toasts match the light theme */
.mycoll-grid, .mycoll-empty, .dash-content .mycoll-grid { width: 100%; box-sizing: border-box; float: left; clear: both; }
.toast { background: #fff; color: #384F95; border: 1px solid #d3e6fa; box-shadow: 0 12px 34px rgba(58,87,135,.22); font-weight: 600; }
.toast i { color: #1FA98A; }
.toast-err { background: #fff5f5; color: #b42332; border-color: #f5c6cb; }
.toast-err i { color: #e0434f; }
.btn.color2-bg i { color: #fff; }

/* Windows on phones: the floating menu steps aside, the window scrolls, and the main button stays in view */
body.hid-body .tabbar { transform: translateY(calc(100% + 40px)); pointer-events: none; }
@media (max-width: 768px) {
  .main-register-wrap.modal { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .main-register-wrap.modal .main-register { max-height: calc(100dvh - 24px); overflow-y: auto !important; overscroll-behavior: contain; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important; }
  .mycoll-form button[type=submit] { position: sticky; bottom: 0; z-index: 2; width: 100%; margin-top: 14px; box-shadow: 0 -14px 16px 6px #fff; }
}
@media (max-width: 768px) {
  .main-register-wrap.modal .main-register-holder { position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; transform: none !important; z-index: 2; }
  .main-register-wrap.modal .main-register { max-height: 88dvh; border-radius: 20px 20px 0 0; margin: 0 !important; width: 100% !important; box-shadow: 0 -18px 50px rgba(58,87,135,.28); }
}
@media (max-width: 480px) {
  .mycoll-icons { gap: 6px; margin-bottom: 8px; }
  .mycoll-icons button { aspect-ratio: auto; height: 44px; font-size: 17px; }
  .mycoll-colors { margin-bottom: 8px; }
}
/* Window title bar in the site's blue (was the old slate blue) */
.main-register_title, .main-register-wrap .main-register_title { background: linear-gradient(135deg, #4DB7FE, #3A6FE0) !important; color: #fff; }
.main-register_title span, .main-register_title strong { color: #fff !important; }

/* ===== One clean window for the whole platform (confirmations, forms, login) ===== */
.modal-clean .main-register { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 70px rgba(31,47,85,.3); }
.modal-clean .main-register_title, .main-register-wrap.modal-clean .main-register_title { background: none !important; color: #1f2f55 !important; font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 800; line-height: 1.3; text-align: center; text-transform: none; letter-spacing: 0; padding: 28px 60px 6px !important; height: auto; }
.modal-clean .main-register_title span, .modal-clean .main-register_title strong { color: inherit !important; text-transform: none; }
.modal-clean .main-register_title span strong:first-child { color: #3A6FE0 !important; }
.modal-clean .main-register_title:before, .modal-clean .main-register_title:after { display: none !important; }
.modal-clean .close-reg { top: 14px !important; right: 14px !important; left: auto !important; width: 38px; height: 38px; border-radius: 50% !important; background: #f3f6fa !important; color: #50596E !important; display: inline-flex; align-items: center; justify-content: center; line-height: 1; transition: background .2s; }
.modal-clean .close-reg:hover { background: #e3eefb !important; }
.modal-clean .close-reg i { position: static !important; margin: 0 !important; color: inherit !important; font-size: 17px; }
.sheet-handle { display: none; }
@media (max-width: 768px) { .modal-clean .sheet-handle { display: block; width: 44px; height: 4px; border-radius: 4px; background: #d5dfeb; margin: 10px auto 0; } .modal-clean .main-register_title { padding-top: 14px !important; } }

/* confirmation */
.confirm-body { padding: 8px 4px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.confirm-ico { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e8f3ff; color: #3A6FE0; font-size: 26px; margin: 2px 0 6px; }
.confirm-ico.danger { background: #fde6e9; color: #e0434f; }
.confirm-body p { font-size: 15px; line-height: 24px; color: var(--c-dark); margin: 6px 0 22px; max-width: 360px; overflow-wrap: anywhere; }
.confirm-actions { width: 100%; display: flex; gap: 10px; justify-content: stretch; flex-wrap: nowrap; }
.confirm-actions .btn { flex: 1 1 0; float: none; margin: 0; height: 50px; min-width: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px !important; border-radius: 12px; text-align: center; line-height: 1; }
@media (max-width: 560px) { .confirm-actions { flex-direction: column-reverse; } .confirm-actions .btn { flex: 0 0 auto; width: 100%; } }

/* text-only buttons are centred everywhere (the template leaves room for an icon on the right) */
.btn:not(:has(i)) { padding-left: 24px; padding-right: 24px; text-align: center; }
.modal-clean .main-register { padding-top: 0 !important; }
.modal-clean .main-register_title, .main-register-wrap.modal-clean .main-register_title { position: relative !important; line-height: 1.3 !important; width: auto !important; left: auto; top: auto; }
.modal-clean .main-register > div:not(.main-register_title) { padding-top: 4px !important; }
.confirm-body { padding-top: 0; }
.confirm-ico { margin: 0 0 4px; }
@media (max-width: 768px) { body.hid-body .toast-stack { bottom: auto; top: 12px; } }

/* ===== Floating header: detached rounded bar, follows the light chrome theme ===== */
.main-header {
  top: 12px; left: 14px; right: 14px; width: auto; max-width: 1480px; margin: 0 auto;
  border-radius: 20px; padding: 0 22px;
  background: color-mix(in srgb, var(--c-chrome) 86%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid var(--c-chrome-line);
  box-shadow: 0 10px 30px rgba(58, 87, 135, .16), 0 1px 0 rgba(255, 255, 255, .7) inset;
}
.main-header .header-search_container {
  top: calc(100% + 8px); border-radius: 20px; border: 1px solid var(--c-chrome-line); padding: 18px 20px;
  background: color-mix(in srgb, var(--c-chrome) 94%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(58, 87, 135, .2); max-height: calc(100dvh - 110px);
}
.main-header .header-search_container .container { width: 100%; max-width: none; padding: 0; }
@media (max-width: 1053px) { .main-header { padding: 0 14px; } }
@media (max-width: 767px) {
  .main-header { top: 8px; left: 10px; right: 10px; border-radius: 18px; padding: 0 10px; }
  .main-header .header-search_container { padding: 14px; max-height: calc(100dvh - 96px); }
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .main-header, .main-header .header-search_container { background: var(--c-chrome); }
}
@media (prefers-reduced-transparency: reduce) {
  .main-header, .main-header .header-search_container { background: var(--c-chrome); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ===== One palette: new elements use these tokens, never the old navy (#2e3f6e / #384F95 fills) ===== */
:root { --grad-btn: linear-gradient(135deg, #4DB7FE, #3A6FE0); --shadow-btn: 0 10px 22px rgba(77,183,254,.38); --accent-deep: #2f4678; }
.btn.color-bg, .btn.gradient-bg, a.btn.color-bg { background-image: var(--grad-btn); background-color: #4DB7FE; box-shadow: var(--shadow-btn); }
.switch input:checked + i { background: var(--grad-btn); }
.video-play { color: #3A6FE0; }
.verified-badge { background: var(--grad-btn); }
.page-jump a:hover, .page-jump a:focus-visible { background: #eef5fc; border-color: #bfdcf7; color: #2f4678; }
.list-widget-social li a:hover, .down-btn:hover, .new-dashboard-item:hover, .cc-btn:hover, .accordion a.toggle.act-accordion { background: var(--grad-btn); }

/* ===== Categories drop-down: same look, compact so every category fits on screen ===== */
.nav-holder nav li > a[href="/categories"] + ul { width: 280px; padding: 6px 0; top: 62px; }
.nav-holder nav li > a[href="/categories"] + ul > li > a { display: block; padding: 6px 16px; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-holder nav li > a[href="/categories"] + ul > li > a i { float: right; margin-top: 3px; transform: rotate(90deg); }
.nav-holder nav li > a[href="/categories"] + ul li ul { max-width: none; min-width: 230px; left: 100%; margin-left: 4px; top: -6px; }
.nav-holder nav li > a[href="/categories"] + ul li ul a { padding: 6px 16px; font-size: 13px; line-height: 1.25; }
@media (max-height: 720px) {
  .nav-holder nav li > a[href="/categories"] + ul > li > a { padding: 4px 16px; }
}

/* =====================================================================
   Phones & tablets: menus open from the side
   ===================================================================== */
.side-head, .side-scrim { display: none; }
@keyframes side-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1064px) {
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 1190; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(32,37,45,.45); animation: side-fade .2s ease; cursor: default; }
  /* Main menu: drawer from the right */
  .main-header .main-menu { position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(86vw, 340px); height: 100dvh; padding: 0 0 24px; margin: 0; z-index: 1200;
    background: #fff; border: 0; border-radius: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(104%); opacity: 1; visibility: hidden; transition: transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s; box-shadow: none; }
  .main-header .main-menu.vismobmenu { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.22,1,.36,1), visibility 0s; box-shadow: -18px 0 48px rgba(32,37,45,.22); }
  .side-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 12px 12px 12px 20px; background: #fff; border-bottom: 1px solid #E3E6EB; font-weight: 700; font-size: 16px; color: #20252D; }
  .side-head button, .side-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #F1F3F6; color: #20252D; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
  .main-menu .menusb a { font-size: 16px; line-height: 22px; padding: 12px 5px; color: #20252D; min-height: 44px; }
  .main-menu .menusb li { border-bottom: 1px solid #F1F3F6; }
  .main-menu .menusb a.act-link { color: #4DB7FE; }
  .main-menu .menusb li ul li a { font-size: 15px; font-weight: 500; color: #3B4350; }
  .main-menu .menusb li i { top: 16px; }
  /* header button now sits above the drawer only visually; the drawer has its own close */
  body:has(.main-menu.vismobmenu) { overflow: hidden; }
}

/* Filters: drawer from the right instead of a bottom sheet */
@media (max-width: 768px) {
  .filter-sheet-backdrop { background: rgba(32,37,45,.45); }
  .filter-sheet { left: auto; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); max-height: none; height: 100dvh; border-radius: 0; box-shadow: -18px 0 48px rgba(32,37,45,.25); animation: side-in-right .3s cubic-bezier(.22,1,.36,1); }
  .filter-sheet-head { padding: 14px 12px 12px 18px; border-bottom-color: #E3E6EB; }
  .filter-sheet-head::before { display: none; }
  .filter-sheet-foot { border-top-color: #E3E6EB; }
  .filter-sheet-head button { background: #F1F3F6; }
}
@keyframes side-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes side-in-left { from { transform: translateX(-100%); } to { transform: none; } }

/* Admin menu: drawer from the left */
@media (max-width: 900px) {
  .admin-scrim { z-index: 1290; }
  .admin-side, .admin-side.open { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: min(84vw, 300px); min-height: 0; height: 100dvh; margin: 0; z-index: 1300; border: 0; border-radius: 0; overflow-y: auto; transform: translateX(-104%); visibility: hidden; transition: transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s; }
  .admin-side.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.22,1,.36,1), visibility 0s; box-shadow: 18px 0 48px rgba(32,37,45,.22); }
  .admin-side-head { display: flex; align-items: center; justify-content: space-between; padding-right: 12px; }
  .side-close { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .main-header .main-menu, .admin-side, .filter-sheet, .side-scrim { transition: none !important; animation: none !important; }
}

/* Drawer needs the header to be a plain (non-transformed) box so "fixed" means the whole screen */
@media (max-width: 1064px) {
  .main-header { transform: none; -webkit-transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-chrome); z-index: 1250; }
}

/* Logo text: grey, only the 4 is blue */
.brand-text, .main-header .brand-text, .main-footer .brand-text, .brand-logo.light .brand-text, .main-footer .brand-text .brand-me, .brand-text .brand-me { color: #50596E !important; }
.brand-text b, .main-header .brand-text b, .main-footer .brand-text b { color: #4DB7FE !important; }

/* Menu (burger) icon: centred in its button */
.nav-button-wrap .nav-button { margin-top: -7px; }
@media (max-width: 768px) { .main-header .nav-button-wrap { top: 20px; } }

/* Account menu on phones: drawer from the left (opened with the "Dashboard menu" button) */
@media (max-width: 768px) {
  body .mob-nav-content-btn.init-dsmen { display: block !important; width: 100%; margin-bottom: 12px; }
  body .dash-menu-wrap, body .dash-menu-wrap.open { display: block; float: none; position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: min(84vw, 320px); height: 100dvh; margin: 0; z-index: 1300; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-104%); visibility: hidden; transition: transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s; }
  body .dash-menu-wrap.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.22,1,.36,1), visibility 0s; box-shadow: 18px 0 48px rgba(32,37,45,.22); }
  .dash-menu-wrap + .side-scrim, .col-md-3 > .side-scrim { z-index: 1290; }
  .dash-menu-wrap .dash-side-head { display: flex; }
  body .dash-menu-wrap.as-strip .user-profile-menu h3, body .dash-menu-wrap.as-strip .logout_btn { display: block; }
  body .dash-menu-wrap.as-strip .user-profile-menu-wrap { padding: 0 0 16px; }
  body .dash-menu-wrap.as-strip .user-profile-menu { padding: 8px 0; }
  body .dash-menu-wrap.as-strip .user-profile-menu ul { display: block; overflow: visible; margin: 0; padding: 0; }
  body .dash-menu-wrap.as-strip .user-profile-menu li { display: block; width: 100%; border-bottom: 1px solid #F1F3F6; }
  body .dash-menu-wrap.as-strip .user-profile-menu a { border: 0; border-radius: 0; background: none; padding: 0 20px; font-size: 15px; white-space: normal; color: var(--c-dark); }
  body .dash-menu-wrap.as-strip .user-profile-menu a.user-profile-act { background: #EAF2FF; color: #20252D; box-shadow: inset 3px 0 0 #4DB7FE; }
  body .dash-menu-wrap.as-strip .user-profile-menu li a span { margin-left: auto; }
  body .dash-menu-wrap.as-strip .logout_btn, body .dash-menu-wrap.as-list .logout_btn { float: none; width: calc(100% - 40px); margin: 10px 20px 4px; min-height: 48px; justify-content: center; }
  body:has(.dash-menu-wrap.open) { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .dash-menu-wrap { transition: none !important; } }
@media (min-width: 769px) { .dash-menu-wrap .dash-side-head { display: none; } }
