/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Inter+Tight:wght@500;600;700;800&display=swap');
:root{--bg:#fff;--surface:#fff;--surface-soft:#f7f8fc;--text:#10131b;--muted:#68738a;--muted-2:#91a0b6;--line:#e6eaf2;--line-strong:#d7ddea;--accent:#635bff;--accent-2:#7b73ff;--accent-soft:#f0efff;--success:#2da978;--danger:#d85863;--shadow:0 18px 50px rgba(25,35,65,.07);--radius:16px}
html[data-theme=dark]{--bg:#090d16;--surface:#0d1320;--surface-soft:#111a29;--text:#f7f8fc;--muted:#9ca8bc;--muted-2:#728096;--line:#1f2a3b;--line-strong:#2b384d;--accent:#7c70ff;--accent-2:#938aff;--accent-soft:#171a35;--shadow:0 18px 50px rgba(0,0,0,.22)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}body.mobile-menu-open{overflow:hidden}a{color:inherit}button,input,textarea{font:inherit}button{cursor:pointer}svg{display:block}
.container{width:min(1390px,calc(100% - 48px));margin:0 auto}.site-header{height:78px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--line);position:relative;z-index:30}.brand{display:inline-flex;align-items:center;width:max-content;text-decoration:none}.brand-logo{width:145px;height:auto;display:block}.desktop-nav{display:flex;align-items:center;gap:42px;height:100%}.desktop-nav-link{height:100%;display:flex;align-items:center;position:relative;text-decoration:none;font-size:12px;font-weight:600;color:var(--text)}.desktop-nav-link:after{content:"";position:absolute;left:0;right:0;bottom:20px;height:2px;background:transparent}.desktop-nav-link:hover:after,.desktop-nav-link.active-home:after{background:var(--accent)}.header-tools{justify-self:end;display:flex;align-items:center;gap:8px}.header-icon-btn,.theme-toggle{width:34px;height:34px;border:1px solid var(--line);background:var(--surface);border-radius:11px;display:grid;place-items:center;color:var(--text);text-decoration:none}.header-icon-btn svg,.theme-toggle svg{width:17px;height:17px}.header-icon-btn:hover,.theme-toggle:hover{border-color:var(--line-strong);background:var(--surface-soft)}.theme-icon-moon{display:none}.locale-picker{position:relative}.locale-trigger{min-width:86px;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);display:flex;align-items:center;gap:8px}.locale-trigger svg{width:13px;margin-left:auto}.locale-code{font-size:10px;font-weight:800;letter-spacing:.06em}.locale-name{font-size:11px;font-weight:600}.locale-native{font-size:10px;color:var(--muted)}.locale-menu{position:absolute;right:0;top:calc(100% + 8px);width:230px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);display:none;z-index:80}.locale-picker.open>.locale-menu{display:block}.locale-option{width:100%;display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:9px;border:0;background:transparent;border-radius:9px;text-align:left;color:var(--text)}.locale-option:hover,.locale-option.active{background:var(--surface-soft)}.locale-option .locale-name{font-weight:600}.mobile-burger{display:none;width:34px;height:34px;border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:8px}.mobile-burger span{display:block;height:1.5px;background:var(--text);margin:4px 0}.mobile-menu{position:fixed;inset:0;background:rgba(5,8,15,.55);opacity:0;pointer-events:none;transition:opacity .2s;z-index:100}.mobile-menu.open{opacity:1;pointer-events:auto}.mobile-menu-inner{margin-left:auto;width:min(390px,100%);height:100%;background:var(--surface);padding:24px;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .25s}.mobile-menu.open .mobile-menu-inner{transform:none}.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:24px;border-bottom:1px solid var(--line)}.mobile-menu-logo{width:126px}.mobile-menu-close{width:34px;height:34px;border:1px solid var(--line);background:transparent;border-radius:10px;position:relative}.mobile-menu-close span{position:absolute;left:9px;right:9px;top:16px;height:1.5px;background:var(--text)}.mobile-menu-close span:first-child{transform:rotate(45deg)}.mobile-menu-close span:last-child{transform:rotate(-45deg)}.mobile-menu-nav{display:grid;padding:18px 0}.mobile-menu-link{padding:15px 0;border-bottom:1px solid var(--line);font-size:16px;font-weight:650;text-decoration:none}.mobile-menu-controls{margin-top:auto;display:grid;gap:10px}.mobile-menu-theme,.mobile-locale .locale-trigger{width:100%;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);display:flex;align-items:center;gap:10px;padding:0 14px}.mobile-menu-theme svg{width:17px;height:17px}.mobile-locale .locale-trigger{min-width:0}.mobile-locale .locale-menu{position:absolute;width:100%;margin-top:-482px;}.mobile-locale .locale-option{grid-template-columns:32px 1fr auto}
.main-area{min-height:400px}.hero-stage{position:relative;overflow:hidden;padding:74px 0 20px}.hero-content{position:relative;z-index:2}.hero-wave{position:absolute;inset:0;width:100%;height:470px;pointer-events:none;opacity:.7}.hero-wave path{fill:none;stroke:var(--accent);stroke-width:1;opacity:.11}.hero-wave .wave-a{stroke-width:1.3}.hero-wave .wave-b{opacity:.08}.hero-wave .wave-c{opacity:.05}.hero-wave .dot{fill:var(--accent);opacity:.55}.hero-wave .dot2{fill:var(--muted-2);opacity:.35}.home-hero{width:min(720px,100%);padding:20px 0 25px}.hero-kicker,.section-kicker{color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.hero-kicker{display:flex;align-items:center;gap:8px;margin-bottom:14px}.hero-kicker-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}.hero-title{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:clamp(52px,5.2vw,76px);line-height:.98;letter-spacing:-.055em;margin:0;max-width:700px}.hero-title span{color:var(--accent)}.hero-subtitle{max-width:620px;margin:22px 0 0;color:var(--muted);font-size:15px;line-height:1.7}.search-shell{width:min(660px,100%);background:var(--surface);border:1px solid var(--line-strong);border-radius:18px;box-shadow:0 14px 36px rgba(38,51,88,.06);padding:4px}.search-form{margin:0}.search-row{min-height:48px;display:flex;align-items:center;gap:12px;padding:0 8px 0 15px}.search-row .search-icon,.search-icon{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;color:var(--muted);flex:0 0 19px}.search-row input,.search-row textarea{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}.search-row textarea{padding:14px 0;resize:none;line-height:1.5}.search-row input::placeholder,.search-row textarea::placeholder{color:var(--muted-2)}.btn-search{height:40px;padding:0 18px;border:0;border-radius:13px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:12px;white-space:nowrap}.btn-search svg{width:15px;height:15px}.btn-clear{width:32px;height:32px;display:none;place-items:center;border:0;background:transparent;color:var(--muted)}.hero-hints{margin:11px 0 44px;color:var(--muted-2);font-size:11px}.catalog-categories{padding:26px 0 52px}.catalog-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:17px}.catalog-head h2{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:24px;line-height:1.1;letter-spacing:-.035em;margin:0}.view-all{font-size:11px;font-weight:700;color:var(--accent);text-decoration:none}.category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.category-card{min-height:72px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;display:grid;grid-template-columns:40px 1fr;align-items:center;gap:11px;text-decoration:none;background:var(--surface);transition:border-color .18s,transform .18s,background .18s}.category-card:hover{border-color:var(--accent);transform:translateY(-1px);background:var(--surface-soft)}.category-icon{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;font-size:18px;color:var(--text)}.category-name{display:block;font-size:12px;font-weight:700}.category-count{display:block;margin-top:3px;color:var(--muted);font-size:10px}.homepage-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding-bottom:28px}.homepage-bots-section{min-width:0}.homepage-bots-page{border-top:1px solid var(--line)}.bot-tile{min-height:73px;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:11px;padding:11px 0;border-bottom:1px solid var(--line);text-decoration:none}.bot-tile-avatar{grid-row:1/4;width:40px;height:40px;border-radius:11px;background:var(--surface-soft);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;color:var(--muted)}.bot-tile-avatar img{width:100%;height:100%;object-fit:cover}.bot-tile-name{font-size:12px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:break-word}.bot-tile-meta{font-size:10px;color:var(--muted-2);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-tile-stats{grid-column:2;display:flex;gap:12px;margin-top:4px;color:var(--muted);font-size:10px}.bot-tile-stats span{display:inline-flex;align-items:center;gap:4px}.bot-tile-stats svg{width:12px;height:12px}.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);background:var(--surface-soft);border-radius:13px;overflow:hidden;margin:0 0 60px}.trust-strip>div{display:flex;gap:12px;padding:16px 20px;align-items:center}.trust-strip>div+div{border-left:1px solid var(--line)}.trust-strip b{width:30px;height:30px;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;color:var(--accent);font-size:15px}.trust-strip strong{display:block;font-size:11px}.trust-strip small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.results-area{padding:28px 0 70px;max-width:1000px;margin:auto}.results-toolbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:16px}.results-title{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:24px;font-weight:700;letter-spacing:-.03em}.results-count{margin-top:3px;color:var(--muted);font-size:11px}.sort-box{display:flex;gap:6px}.sort-box.hidden{display:none}.sort-icon{width:34px;height:34px;border:1px solid var(--line);background:var(--surface);border-radius:9px;color:var(--muted);display:grid;place-items:center}.sort-icon svg{width:15px;height:15px}.sort-icon.active,.sort-icon:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.bot-list{display:flex;flex-direction:column}.bot-row{display:flex;align-items:center;border-bottom:1px solid var(--line);min-height:86px}.bot-row-main{min-width:0;flex:1;display:grid;grid-template-columns:50px minmax(0,1fr);gap:14px;padding:15px 10px 15px 0;text-decoration:none}.bot-avatar-wrap{display:block}.bot-avatar{width:48px;height:48px;border-radius:13px;border:1px solid var(--line);background:var(--surface-soft);display:grid;place-items:center;color:var(--muted);object-fit:cover}.bot-avatar svg{width:25px;height:25px}.bot-info{min-width:0}.bot-title-line{display:flex;align-items:baseline;gap:8px;min-width:0}.bot-name{font-size:13px;font-weight:700}.bot-username{font-size:10px;color:var(--muted-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-desc{font-size:11px;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-meta{display:flex;gap:14px;color:var(--muted-2);font-size:10px;margin-top:7px}.bot-meta span{display:inline-flex;align-items:center;gap:4px}.bot-meta svg{width:12px;height:12px}.bot-arrow{width:42px;height:42px;display:grid;place-items:center;border-left:1px solid var(--line);color:var(--muted);text-decoration:none}.bot-arrow svg{width:18px;height:18px}.bot-arrow:hover{color:var(--accent)}.empty-state{text-align:center;padding:72px 20px;color:var(--muted)}.empty-icon{width:54px;height:54px;border:1px solid var(--line);border-radius:15px;display:grid;place-items:center;margin:0 auto 14px;color:var(--muted)}.empty-icon svg{width:24px;height:24px}.empty-state h3{margin:0;color:var(--text);font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:22px}.empty-state p{margin:6px 0 0}.loader{display:none;justify-content:center;padding:24px}.loader.active{display:flex}.spinner{width:20px;height:20px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.end-message{text-align:center;color:var(--muted-2);font-size:10px;padding:22px}.results-sentinel{height:1px}.content-block{padding:50px 0}.content-block-compact{padding-top:20px}.section-heading{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:36px;line-height:1.08;letter-spacing:-.045em;margin:8px 0 12px}.section-copy{max-width:690px;color:var(--muted);margin:0 0 24px;font-size:14px;line-height:1.7}.topics-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.topics-list,.seo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.topic-link,.seo-unit{border:1px solid var(--line);border-radius:12px;padding:15px;text-decoration:none}.topic-link:hover{border-color:var(--accent)}.seo-grid{grid-template-columns:repeat(3,1fr)}.seo-unit h2{font-size:14px;margin:0 0 7px}.seo-unit p{font-size:11px;color:var(--muted);margin:0;line-height:1.6}.faq-list{border-top:1px solid var(--line)}.faq-item{border-bottom:1px solid var(--line)}.faq-item summary{list-style:none;cursor:pointer;padding:17px 0;display:flex;gap:12px;align-items:center;font-weight:650}.faq-item summary::-webkit-details-marker{display:none}.faq-toggle{width:22px;height:22px;border:1px solid var(--line);border-radius:7px;position:relative;flex:0 0 22px}.faq-toggle i,.faq-toggle b{position:absolute;left:6px;right:6px;top:10px;height:1px;background:var(--text)}.faq-toggle b{transform:rotate(90deg);transition:transform .15s}.faq-item[open] .faq-toggle b{transform:rotate(0)}.faq-answer{padding:0 0 17px 34px;color:var(--muted);font-size:12px;line-height:1.65}.card{border:1px solid var(--line);border-radius:16px;background:var(--surface)}
/* add bot */.page-add-bot .main-area{max-width:900px;margin:auto}.page-add-bot .content-block:first-child{padding-top:64px}.page-add-bot .search-shell{width:100%;padding:8px;margin-top:28px}.page-add-bot .search-shell>.search-row{border-bottom:1px solid var(--line)}.page-add-bot .search-shell>.search-row:last-child{border-bottom:0}.page-add-bot .search-row{min-height:58px;padding-left:16px}.page-add-bot .search-status{min-height:0;padding:0 16px;color:var(--muted);font-size:11px}.page-add-bot .search-status.visible{padding:8px 16px}.page-add-bot .search-status.success{color:var(--success)}.page-add-bot .search-status.error{color:var(--danger)}.page-add-bot .search-status.loading{color:var(--accent)}.page-add-bot .locale-picker{width:100%}.page-add-bot .locale-trigger{width:100%;height:48px;border:0;border-radius:9px;padding:0}.page-add-bot .locale-menu{left:0;right:0;width:100%;max-height:280px;overflow:auto}.page-add-bot .locale-name.is-placeholder{color:var(--muted-2)}.page-add-bot #submitBtn{margin:0}.page-add-bot #submitBtn:disabled{opacity:.45;cursor:not-allowed}.form-message{margin:18px 0;padding:13px 15px;border-radius:10px;border:1px solid var(--line);font-size:12px}.form-message.success{color:var(--success);background:color-mix(in srgb,var(--success) 7%,var(--surface))}.form-message.error{color:var(--danger);background:color-mix(in srgb,var(--danger) 7%,var(--surface))}
/* bot profile */.page-bot-card .main-area{padding-bottom:30px}.profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;padding:60px 0 20px}.profile-card{padding:28px}.profile-top{display:flex;gap:22px}.profile-card .avatar{flex:0 0 auto;width:100px;height:100px;aspect-ratio:1 / 1;border-radius:24px;object-fit:cover;border:1px solid var(--line);background:var(--surface-soft);display:grid;place-items:center;overflow:hidden}.profile-card .avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-card .error-avatar svg{width:40px;height:40px;max-width:60%;max-height:60%}.profile-info{min-width:0}.profile-info .name{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:34px;font-weight:700;letter-spacing:-.045em;line-height:1.05}.profile-info .username{color:var(--accent);font-size:12px;margin-top:4px}.profile-info .desc{color:var(--muted);font-size:13px;line-height:1.7;margin-top:15px;max-width:650px}.actions{display:flex;gap:9px;margin-top:20px}.btn{min-height:40px;padding:0 15px;border-radius:10px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-size:12px;font-weight:700}.btn svg{width:15px;height:15px}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-outline{background:var(--surface);color:var(--text)}.btn-outline:hover{border-color:var(--accent)}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}.stat+.stat{border-left:1px solid var(--line);padding-left:20px}.stat-label{font-size:10px;color:var(--muted-2);text-transform:uppercase;letter-spacing:.1em;font-weight:700}.stat-value{font-size:18px;font-weight:700;margin-top:5px}.rating-card{padding:25px}.section-eyebrow{font-size:10px;color:var(--accent);font-weight:800;text-transform:uppercase;letter-spacing:.12em}.rating-title{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:22px;font-weight:700;letter-spacing:-.025em;margin-top:8px}.rating-stars{display:flex;gap:3px;margin:18px 0}.rating-stars .star{border:0;background:transparent;padding:0 2px;font-size:25px;color:var(--line-strong)}.rating-stars .star.active{color:var(--accent)}.rating-note{font-size:11px;color:var(--muted);line-height:1.6}.rating-message{font-size:11px;color:var(--accent);min-height:17px;margin-top:9px}.comments-card{padding:22px}.comment-form{display:grid;gap:9px;padding-bottom:22px;}.comment-form input,.comment-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);padding:11px 12px;outline:none;font-size:12px}.comment-form textarea{min-height:90px;resize:vertical}.comment-form input:focus,.comment-form textarea:focus{border-color:var(--accent)}.comment-form .btn{width:max-content}.comment{padding:18px 0;border-bottom:1px solid var(--line)}.comment-author{font-weight:700;font-size:12px}.comment-date{font-size:10px;color:var(--muted-2);margin-left:8px}.comment-text{font-size:12px;line-height:1.65;margin-top:8px;color:var(--muted)}.reply-btn{border:0;background:none;color:var(--accent);padding:8px 0;font-size:11px;font-weight:700}.reply-box{margin-top:8px}.comment-reply{margin:12px 0 0 24px;padding:12px 0 0 14px;border-left:2px solid var(--line)}
/* legal */.legal-main{max-width:850px;margin:auto;padding:70px 0}.legal-main h1{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:52px;line-height:1;letter-spacing:-.05em;margin:8px 0 16px}.legal-main .lead{max-width:700px;color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 45px}.legal-section{padding:25px 0;border-top:1px solid var(--line)}.legal-section h2{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:21px;margin:0 0 9px}.legal-section p{color:var(--muted);font-size:13px;line-height:1.75;margin:0}
/* footer */.site-footer{border-top:1px solid var(--line);padding:34px 0 18px;margin-top:20px}.footer-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:48px;align-items:center}.footer-brand-col{min-width:0}.footer-brand{display:inline-flex}.footer-brand img{width:128px}.footer-description{max-width:420px;color:var(--muted);font-size:11px;line-height:1.6;margin:12px 0 0}.footer-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;justify-content:flex-end}.footer-nav a{font-size:12px;font-weight:600;text-decoration:none;color:var(--muted);transition:color .15s}.footer-nav a:hover{color:var(--accent)}.footer-bottom{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);margin-top:26px;padding-top:14px;color:var(--muted-2);font-size:10px;white-space:nowrap}
@media (max-width:1100px){.container{width:min(100% - 32px,1100px)}.category-grid{grid-template-columns:repeat(3,1fr)}.homepage-columns{gap:20px}.hero-title{font-size:58px}.profile-grid{grid-template-columns:1fr 260px}}
@media (max-width:760px){.container{width:calc(100% - 28px)}.site-header{height:66px;grid-template-columns:1fr auto}.desktop-nav,.header-locale{display:none}.header-tools{gap:6px}.mobile-burger{display:block}.brand-logo{width:124px}.hero-stage{padding:46px 0 12px}.hero-wave{height:360px;opacity:.45}.hero-title{font-size:clamp(43px,12vw,58px);max-width:560px}.hero-subtitle{font-size:13px;line-height:1.6;margin-top:16px}.search-shell{border-radius:14px}.search-row{min-height:50px}.search-row input{font-size:12px}.btn-search{height:38px;padding:0 13px}.hero-hints{margin-bottom:28px}.catalog-categories{padding-top:25px}.catalog-head h2{font-size:21px}.category-grid{grid-template-columns:repeat(2,1fr);gap:8px}.category-card{min-height:64px;padding:10px}.category-icon{width:34px;height:34px}.homepage-columns{grid-template-columns:1fr;gap:28px}.trust-strip{grid-template-columns:1fr;margin-bottom:35px}.trust-strip>div+div{border-left:0;border-top:1px solid var(--line)}.results-area{padding-top:22px}.results-toolbar{align-items:flex-end}.results-title{font-size:21px}.bot-row-main{grid-template-columns:44px minmax(0,1fr);gap:10px}.bot-avatar{width:42px;height:42px;border-radius:11px}.bot-desc{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.bot-title-line{display:block}.bot-username{display:block;margin-top:2px}.bot-arrow{width:34px}.topics-layout,.seo-grid{grid-template-columns:1fr}.section-heading{font-size:30px}.profile-grid{grid-template-columns:1fr;padding-top:34px}.profile-card{padding:20px}.rating-card{padding:20px}.profile-top{gap:15px}.profile-card .avatar{width:76px;height:76px;border-radius:19px}.profile-card .error-avatar svg{width:30px;height:30px;max-width:60%;max-height:60%}.profile-info .name{font-size:27px}.profile-info .desc{font-size:12px}.stats{grid-template-columns:repeat(2,1fr);gap:15px}.stat:nth-child(3){border-left:0;padding-left:0}.stat:nth-child(3),.stat:nth-child(4){padding-top:12px;border-top:1px solid var(--line)}.actions{flex-wrap:wrap}.btn{min-height:38px}.page-add-bot .content-block:first-child{padding-top:38px}.page-add-bot .section-heading{font-size:32px}.legal-main{padding:45px 0}.legal-main h1{font-size:40px}.footer-main{grid-template-columns:1fr;gap:24px}.footer-nav{justify-content:flex-start;gap:8px 20px}.footer-bottom{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;font-size:9.5px}}.footer-bottom{display:grid;gap:6px}
@media (max-width:420px){.header-icon-btn{display:none}.category-card{grid-template-columns:32px 1fr;gap:8px}.category-icon{width:32px;height:32px}.category-name{font-size:11px}.category-count{font-size:9px}.homepage-columns .catalog-head h2{font-size:20px}.search-row{padding-left:11px;gap:8px}.btn-search{padding:0 10px;font-size:11px}.profile-top{align-items:flex-start}.profile-card .avatar{width:66px;height:66px}.profile-card .error-avatar svg{width:26px;height:26px;max-width:60%;max-height:60%}.profile-info .name{font-size:24px}.stat-value{font-size:16px}}
[dir=rtl] .locale-menu{right:auto;left:0}[dir=rtl] .desktop-nav-link:after{left:auto;right:0}[dir=rtl] .bot-arrow{border-left:0;border-right:1px solid var(--line)}[dir=rtl] .stat+.stat{border-left:0;border-right:1px solid var(--line);padding-left:0;padding-right:20px}

/* v3 homepage composition */
.hero-copy{max-width:650px;position:relative;z-index:3}.hero-stage{min-height:520px}.hero-content{min-height:500px;display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:center;column-gap:20px}.hero-content>.search-shell,.hero-content>.hero-hints{grid-column:1}.hero-mark{position:relative;min-height:330px;display:flex;align-items:center;justify-content:center}.hero-mark-circle{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;background:#0e121a;color:#fff;font-size:80px;line-height:1;transform:rotate(-18deg);box-shadow:0 18px 45px rgba(35,45,80,.12)}.hero-mark-ring{position:absolute;border:1px solid var(--accent);border-radius:50%;opacity:.14}.hero-mark-ring-a{width:230px;height:230px}.hero-mark-ring-b{width:290px;height:170px;transform:rotate(-34deg)}.hero-mark-note{position:absolute;right:0;bottom:30px;color:var(--muted);font-size:11px;line-height:1.5}.content-block-tight{padding:0 0 46px}.homepage-columns{grid-template-columns:1fr 1fr;gap:48px;padding-bottom:22px}.homepage-bots-section{min-width:0}.bot-tile{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;min-height:78px;padding:12px 0;column-gap:12px}.bot-tile-avatar{grid-row:auto}.bot-tile-main{min-width:0;display:grid}.bot-tile-desc{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}.bot-tile-stats{grid-column:auto;display:flex;align-items:center;gap:10px;margin:0;white-space:nowrap}.bot-tile-stats b{font-size:18px;font-weight:400;color:var(--muted-2);margin-left:3px}.bot-tile-stats svg{width:11px;height:11px}.topic-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.topic-link{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:11px;padding:13px 14px;font-size:12px;font-weight:650;text-decoration:none}.topic-link b{color:var(--accent);font-weight:500}.seo-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hero-stage+.catalog-categories{padding-top:0}
@media(max-width:760px){.hero-stage{min-height:0}.hero-content{display:block;min-height:0}.hero-copy{padding-bottom:22px}.hero-mark{display:none}.hero-content>.search-shell,.hero-content>.hero-hints{width:100%}.content-block-tight{padding-bottom:32px}.homepage-columns{grid-template-columns:1fr;gap:28px}.bot-tile{grid-template-columns:40px minmax(0,1fr);min-height:70px}.bot-tile-stats{grid-column:2;justify-content:flex-start;margin-top:4px}.topic-list,.seo-flow{grid-template-columns:1fr}}

/* v4 structural fixes */
.site-header{grid-template-columns:auto 1fr auto;min-width:0}
.desktop-nav{justify-self:center}
.header-tools{min-width:0}
.locale-trigger{white-space:nowrap}
.locale-menu{max-height:min(420px,70vh);overflow-y:auto;overscroll-behavior:contain}
.locale-option{white-space:nowrap}
.locale-option .locale-name,.locale-option .locale-native{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-icon-btn svg,.theme-toggle svg,.search-submit .search-icon{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important}
.search-submit{flex:0 0 40px;width:40px;padding:0!important}
.search-submit .search-icon{color:currentColor}
.search-row .search-icon{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;flex:0 0 19px}
.btn-clear{width:30px!important;min-width:30px!important;height:30px!important;font-size:22px;line-height:1;place-items:center;padding:0!important}
.home-search .btn-clear{display:none}
.search-page-main{max-width:1040px;margin:0 auto}
.search-page-head{padding:54px 0 26px}
.search-page-head .section-heading{margin-bottom:22px}
.search-page-form{width:100%;max-width:none;box-shadow:none;border-radius:13px}
.search-results-section{padding:18px 0 72px}
.sort-control{display:flex;align-items:center;gap:5px}
.sort-option{height:34px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap}
.sort-option:hover,.sort-option.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.bot-desc{white-space:normal!important;overflow:hidden;text-overflow:clip;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow-wrap:anywhere;max-width:100%}
.bot-info{min-width:0;max-width:100%}
.bot-title-line{min-width:0}
.bot-name{min-width:0;overflow-wrap:anywhere;word-break:break-word}
.bot-row-main{min-width:0}
.add-page-main{max-width:900px;margin:0 auto}
.add-intro{padding:58px 0 24px}
.add-intro .section-heading{max-width:720px}
.add-form-card{border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:8px}
.add-form{display:grid;gap:0}
.form-field{padding:18px 18px 17px;border-bottom:1px solid var(--line);min-width:0}
.form-field:last-of-type{border-bottom:0}
.form-field>label{display:block;margin-bottom:8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--muted-2)}
.form-field input,.form-field textarea{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:14px;line-height:1.5}
.form-field input::placeholder,.form-field textarea::placeholder{color:var(--muted-2)}
.form-field textarea{min-height:96px;resize:vertical}
.form-field:focus-within{background:var(--surface-soft)}
.category-picker{width:100%}
.category-picker .locale-trigger{width:100%;height:44px;border:0;border-radius:8px;padding:0;background:transparent}
.category-picker .locale-menu{left:0;right:0;width:100%;top:calc(100% + 7px);padding:5px}
.category-picker .locale-option{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:10px 11px}
.category-picker .locale-option .locale-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 12px 12px 18px}
.form-note{font-size:10px;color:var(--muted-2)}
.add-faq{padding-top:52px}
.status-listed{color:var(--success)!important;font-size:15px!important}
.comments-heading{font-family:'Brand','Inter Tight',Inter,sans-serif;font-size:22px;font-weight:700;letter-spacing:-.03em;margin-bottom:16px}
.bot-profile-section{padding-top:52px}
.profile-grid{align-items:start}
.profile-card,.rating-card,.comments-card{min-width:0}
.profile-info{min-width:0}
.profile-info .desc{overflow-wrap:anywhere;word-break:break-word}

@media(max-width:760px){
 .site-header{grid-template-columns:1fr auto;height:66px}.desktop-nav{display:none}.header-tools{justify-self:end}.header-icon-btn{display:grid}
 .search-page-head{padding:38px 0 18px}.search-page-head .section-heading{font-size:32px}
 .results-toolbar{gap:14px;align-items:flex-start}.sort-control{flex-wrap:wrap;justify-content:flex-end}.sort-option{font-size:10px;padding:0 9px}
 .search-results-section{padding-top:12px}.bot-row{align-items:stretch}.bot-row-main{padding:14px 8px 14px 0}.bot-desc{-webkit-line-clamp:3}.bot-title-line{display:block}.bot-username{display:block;margin-top:2px}
 .add-intro{padding:38px 0 20px}.add-form-card{padding:4px}.form-field{padding:16px 14px}.form-actions{padding:12px 10px;align-items:flex-end}.form-note{max-width:55%}
 .bot-profile-section{padding-top:32px}
}
@media(max-width:420px){.header-icon-btn{display:none}.search-page-head .section-heading{font-size:29px}.sort-control{width:100%;justify-content:flex-start}.results-toolbar{display:grid}.search-page-form .search-row{padding-right:5px}.search-submit{flex-basis:38px;width:38px}.form-actions{display:grid}.form-note{max-width:none}.form-actions .btn{width:100%}}

/* v5: search action + stable locale selector */
.search-action{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border:0;border-radius:12px;padding:0;margin:0;background:var(--accent);color:#fff}
.search-action svg{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important}
.search-clear{display:none;background:transparent;color:var(--text);font-size:25px;font-weight:300;line-height:1}
.search-clear span{display:block;transform:translateY(-1px)}
.search-row input{min-width:0;flex:1}
.search-row input::-ms-clear,.search-row input::-webkit-search-cancel-button{display:none!important;appearance:none;-webkit-appearance:none}
.site-header .header-locale{width:124px;min-width:124px;flex:0 0 124px}
.site-header .header-locale .locale-trigger{width:124px;min-width:124px;max-width:124px;overflow:hidden;display:flex;align-items:center}
.site-header .header-locale .locale-trigger .locale-name{min-width:0;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-header .header-locale .locale-menu{width:260px;max-width:calc(100vw - 32px);right:0}
.site-header .header-locale .locale-option{grid-template-columns:34px minmax(0,1fr) auto;min-width:0}
.site-header .header-locale .locale-option .locale-name,.site-header .header-locale .locale-option .locale-native{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-picker .locale-trigger{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between}
.category-picker .locale-trigger .locale-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.category-picker .locale-menu{z-index:100}
.category-picker .locale-option{min-width:0}
@media(max-width:760px){.site-header .header-locale{display:none}.header-tools{gap:7px}.search-action{width:38px;height:38px;flex-basis:38px}.site-header .mobile-burger{display:block}}
/* Dark theme logo swap (CSS-only fallback) */
html[data-theme=dark] .brand-logo,
html[data-theme=dark] .mobile-menu-logo,
html[data-theme=dark] .footer-brand img{
  content:url('/images/bc_nw.svg');
}
.bot-tags{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:11px;
    max-width:100%;
}

.bot-tag{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 9px;
    border:1px solid var(--line);
    border-radius:9px;
    background:var(--surface-soft);
    color:var(--muted);
    font-size:10px;
    line-height:1.2;
    font-weight:600;
    letter-spacing:.01em;
    white-space:nowrap;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.bot-tag:hover{
    border-color:var(--accent);
    background:var(--accent-soft);
    color:var(--accent);
    transform:translateY(-1px);
}
@media(max-width:760px){
    .bot-tags{
        gap:6px;
        margin-top:9px;
    }

    .bot-tag{
        min-height:26px;
        padding:4px 8px;
        font-size:9px;
        border-radius:8px;
    }
}
/* Category lower SEO blocks — same visual as homepage seo-flow */
.category-lower .seo-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.category-lower .seo-unit{border:1px solid var(--line);border-radius:12px;padding:15px;text-decoration:none}
.category-lower .seo-unit h2{font-size:14px;margin:0 0 7px}
.category-lower .seo-unit p{font-size:11px;color:var(--muted);margin:0;line-height:1.6}

@media(max-width:760px){
    .category-lower .seo-flow{grid-template-columns:1fr}
}
/* v6 — Hero live widget (Latest added, AJAX) */
.hero-content{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,510px);
    column-gap:28px;
    align-items:center;
    min-height:500px;
}
.hero-content>.hero-copy{grid-column:1;grid-row:1}
.hero-content>.search-shell{grid-column:1;grid-row:2}
.hero-content>.hero-hints{grid-column:1;grid-row:3}

.hero-widget{
    grid-column:2;
    grid-row:1 / 4;
    align-self:center;
    justify-self:end;
    margin-top:-50px;
    margin-right:50px;
    width:450px;
    height:430px;
    position:relative;
    padding:14px 4px 14px 14px;
    background:var(--surface);
    background:color-mix(in srgb, var(--surface) 88%, transparent);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:0 14px 36px rgba(38, 51, 88, .06);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}
.hw-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:2px 10px 12px 2px;
    border-bottom:1px solid var(--line);
    flex:0 0 auto;
}
.hw-title{
    display:flex;
    align-items:center;
    gap:9px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--text);
}
.hw-pulse{
    width:6px;height:6px;border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 0 0 rgba(99,91,255,.55);
    animation:hw-pulse 1.8s ease-out infinite;
}
@keyframes hw-pulse{
    0%   {box-shadow:0 0 0 0 rgba(99,91,255,.55)}
    70%  {box-shadow:0 0 0 8px rgba(99,91,255,0)}
    100% {box-shadow:0 0 0 0 rgba(99,91,255,0)}
}
.hw-list{
    flex:1 1 0;
    min-height:0;
    display:flex;
    flex-direction:column;
    padding:4px 6px 0 0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:var(--line-strong) transparent;
}
.hw-list::-webkit-scrollbar{width:6px}
.hw-list::-webkit-scrollbar-track{background:transparent}
.hw-list::-webkit-scrollbar-thumb{
    background:var(--line-strong);
    border-radius:3px;
    border:0;
}
.hw-list::-webkit-scrollbar-thumb:hover{background:var(--muted-2)}
.hw-item{
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    padding:10px 8px 10px 2px;
    text-decoration:none;
    color:inherit;
    flex:0 0 auto;
}
.hw-item + .hw-item{border-top:1px solid var(--line)}
.hw-item:hover{background:var(--surface-soft)}
.hw-item.is-new{animation:hw-fresh 3s ease-out forwards}
@keyframes hw-fresh{
    0%   {opacity:0;transform:translateY(-8px);background:var(--accent-soft)}
    15%  {opacity:1;transform:none;background:var(--accent-soft)}
    100% {opacity:1;transform:none;background:transparent}
}
.hw-avatar{
    width:38px;height:38px;
    border-radius:10px;
    background:var(--surface-soft);
    border:1px solid var(--line);
    display:grid;
    place-items:center;
    overflow:hidden;
    color:var(--muted);
}
.hw-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.hw-avatar svg{width:18px;height:18px}
.hw-info{min-width:0;display:grid;gap:2px}
.hw-name{
    font-size:12px;font-weight:700;
    overflow:hidden;text-overflow:ellipsis;white-space:break-word;
}
.hw-username{
    font-size:10px;color:var(--muted-2);
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.hw-meta{
    display:flex;align-items:center;gap:10px;
    color:var(--muted);font-size:10px;
    white-space:nowrap;
}
.hw-meta span{display:inline-flex;align-items:center;gap:3px}
.hw-meta svg{width:11px;height:11px}
.hw-empty{
    padding:60px 12px;
    color:var(--muted);
    font-size:12px;
    text-align:center;
}

@media(max-width:1000px){
    .hero-content{grid-template-columns:minmax(0,1fr)}
    .hero-content>.hero-copy,
    .hero-content>.search-shell,
    .hero-content>.hero-hints{grid-column:1}
    .hero-widget{display:none}
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
    box-shadow: 0 0 0 1000px var(--surface) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text) !important;
    transition: background-color 9999s ease-in-out 0s;
}
@media (max-width: 760px) {
    input,
    textarea,
    select,
    button,
    .locale-trigger,
    .locale-option,
    .sort-option,
    .btn,
    .reply-btn,
    .theme-toggle,
    .header-icon-btn,
    .mobile-burger,
    .mobile-menu-close,
    .mobile-menu-theme,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    input:focus,
    input:focus-visible,
    textarea:focus,
    textarea:focus-visible,
    select:focus,
    select:focus-visible,
    button:focus,
    button:focus-visible,
    .locale-trigger:focus,
    .locale-trigger:focus-visible,
    .sort-option:focus,
    .sort-option:focus-visible,
    .btn:focus,
    .btn:focus-visible {
        outline: none;
        box-shadow: none;
    }

    .comment-form input:focus,
    .comment-form textarea:focus,
    .form-field:focus-within {
        background: var(--surface);
    }
}
/* Locale dropdown scrollbar — same style as hero widget */
.locale-menu{
    scrollbar-width:thin;
    scrollbar-color:var(--line-strong) transparent;
    overscroll-behavior:contain;
}
.locale-menu::-webkit-scrollbar{width:6px}
.locale-menu::-webkit-scrollbar-track{background:transparent}
.locale-menu::-webkit-scrollbar-thumb{
    background:var(--line-strong);
    border-radius:3px;
    border:0;
}
.locale-menu::-webkit-scrollbar-thumb:hover{background:var(--muted-2)}
.suggest-wrap {
    position: absolute;
    z-index: 5000;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(25, 35, 65, .12);
    overflow: hidden;
    animation: suggest-in .14s ease-out;
}
html[data-theme=dark] .suggest-wrap {
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
@keyframes suggest-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}
.suggest-wrap[hidden] { display: none; }

.suggest-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    overscroll-behavior: contain;
}
.suggest-list::-webkit-scrollbar { width: 6px; }
.suggest-list::-webkit-scrollbar-track { background: transparent; }
.suggest-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.suggest-list::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

.suggest-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: background .12s;
}
.suggest-item.is-active { background: var(--surface-soft); }

.suggest-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.suggest-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-icon--category { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

.suggest-body {
    min-width: 0;
    display: grid;
    gap: 2px;
}
.suggest-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suggest-label mark {
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    padding: 0;
}
.suggest-sub {
    font-size: 11px;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suggest-sub mark {
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    padding: 0;
}
.suggest-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--surface-soft);
    color: var(--muted);
}
.suggest-tag--cat {
    background: var(--accent-soft);
    color: var(--accent);
}
.suggest-arrow {
    color: var(--muted-2);
    font-size: 18px;
    line-height: 1;
    padding-right: 4px;
}

.suggest-empty {
    padding: 18px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}
.suggest-empty-text { opacity: .85; }

.search-shell { position: relative; }

@media (max-width: 760px) {
    .suggest-wrap { border-radius: 12px; }
    .suggest-item { padding: 10px; min-height: 48px; }
    .suggest-icon { width: 32px; height: 32px; border-radius: 9px; }
    .suggest-label { font-size: 13.5px; }
    .suggest-sub { font-size: 11px; }
}

/* Brand font */
@font-face {
    font-family: 'Brand';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/Gilroy-Extrabold.woff2') format('woff2');
}


@font-face {
    font-family: 'Brand';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/Gilroy-Extrabold.woff2') format('woff2');
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Categories page */
.categories-page-main,
.languages-page-main {
    max-width: 1040px;
    margin: 0 auto;
}

.category-grid--page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 72px;
}

.category-grid--page .category-card {
    min-height: 76px;
}

/* Languages page */
.language-list {
    list-style: none;
    margin: 0;
    padding: 0 0 72px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.language-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .18s, background .18s, transform .18s;
}

.language-item:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
    transform: translateY(-1px);
}

.language-item.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.language-item a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text);
}

.language-code {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--muted);
}

.language-item.is-active .language-code {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--surface);
}

.language-body {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.language-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-native {
    font-size: 11px;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-arrow {
    color: var(--muted-2);
    font-size: 18px;
    line-height: 1;
    padding-right: 2px;
}

@media (max-width: 760px) {
    .category-grid--page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .language-list {
        grid-template-columns: 1fr;
    }
    .language-item a {
        padding: 13px 14px;
        min-height: 56px;
    }
}

@media (max-width: 420px) {
    .category-grid--page {
        grid-template-columns: 1fr;
    }
}
/* Search empty state */
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    max-width: 100%;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: border-color .15s, background .15s, color .15s;
}

.search-chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.search-empty-block {
    padding-top: 32px;
    padding-bottom: 32px;
}

.search-empty-block:first-of-type {
    padding-top: 12px;
}

@media (max-width: 760px) {
    .search-chips {
        gap: 6px;
        margin-top: 14px;
    }
    .search-chip {
        height: 32px;
        padding: 0 12px;
        font-size: 11.5px;
    }
    .search-empty-block {
        padding-top: 24px;
        padding-bottom: 24px;
    }
}
/* Search empty state: 5 columns for categories */
.search-empty-block .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.search-empty-block .category-card {
    min-height: 68px;
    padding: 10px 12px;
}

.search-empty-block .category-name {
    font-size: 11.5px;
}

.search-empty-block .category-count {
    font-size: 9.5px;
}
/* Search empty state: адаптивная сетка категорий как на главной */
@media (max-width: 1100px) {
    .search-empty-block .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .search-empty-block .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .search-empty-block .category-card {
        min-height: 64px;
        padding: 10px;
    }
    .search-empty-block .category-icon {
        width: 34px;
        height: 34px;
    }
    .search-empty-block .category-name {
        font-size: 11px;
    }
    .search-empty-block .category-count {
        font-size: 9px;
    }
}
/* Bot card extra blocks */
.bot-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 20px 0 4px;
    font-size: 11px;
    color: var(--muted-2);
}

.bot-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.bot-breadcrumbs a:hover {
    color: var(--accent);
}

.bot-breadcrumbs-sep {
    color: var(--line-strong);
}

.bot-breadcrumbs-current {
    color: var(--text);
    font-weight: 600;
}

.bot-facts-section {
    padding-top: 8px;
}

.bot-facts-card,
.bot-faq-card {
    padding: 26px 28px;
}

.bot-block-heading {
    font-family: 'Brand', 'Inter Tight', Inter, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 0 0 14px;
    color: var(--text);
}

.bot-block-heading + .bot-block-heading {
    margin-top: 28px;
}

.bot-about-text {
    font-size: 13px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 26px;
}

.bot-steps {
    margin: 0 0 26px;
    padding-left: 22px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--muted);
}

.bot-steps li + li {
    margin-top: 4px;
}

.bot-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 0;
}

.bot-fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.bot-fact dt {
    color: var(--muted-2);
    font-weight: 600;
}

.bot-fact dd {
    color: var(--text);
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.bot-fact dd a {
    color: var(--accent);
    text-decoration: none;
}

.bot-fact dd a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .bot-breadcrumbs {
        padding: 14px 0 2px;
    }
    .bot-facts-card,
    .bot-faq-card {
        padding: 20px 18px;
    }
    .bot-block-heading {
        font-size: 17px;
    }
    .bot-facts {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .bot-fact {
        padding: 8px 0;
    }
}
/* Bot card: equal spacing between blocks */
.page-bot-card .bot-page-main {
    --bot-block-gap: 18px;
    display: flex;
    flex-direction: column;
    gap: var(--bot-block-gap);
}

.page-bot-card .bot-page-main > section,
.page-bot-card .bot-page-main > .content-block,
.page-bot-card .bot-page-main > .content-block-compact,
.page-bot-card .bot-page-main > .bot-profile-section,
.page-bot-card .bot-page-main > .bot-facts-section,
.page-bot-card .bot-page-main > .bot-breadcrumbs {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.page-bot-card .bot-page-main > .bot-breadcrumbs {
    padding-top: 20px;
    padding-bottom: 0;
}

.page-bot-card .bot-page-main .profile-grid {
    padding-top: 0;
    padding-bottom: 0;
}

.page-bot-card .bot-page-main .homepage-bots-page {
    padding-top: 12px;
    padding-bottom: 12px;
}

.page-bot-card .content-block {
    padding-top: 0;
    padding-bottom: 0;
}

/* v7 — bot card extras + locale suggest widget */
.bot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
    max-width: 100%;
}
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.chip:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent);
}
.chip-cat {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent);
}
.chip-cat:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.chip-tag {
    background: var(--surface-soft);
    border-color: var(--line);
    color: var(--muted);
}
.chip-tag:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.profile-added {
    font-size: 11px;
    color: var(--muted-2);
    margin-top: 6px;
}

.rating-dist {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.rating-dist-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}
.rating-dist-star {
    color: var(--muted-2);
    font-weight: 600;
}
.rating-dist-bar {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    overflow: hidden;
}
.rating-dist-bar > i {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--accent);
    opacity: .55;
    border-radius: 3px;
    transition: width .25s ease;
}
.rating-dist-count {
    text-align: right;
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
}

.card-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}
.report-link {
    color: var(--muted-2);
    text-decoration: none;
    transition: color .15s;
}
.report-link:hover {
    color: var(--danger);
    text-decoration: underline;
}

.btn-copy {
    position: relative;
}
.btn-copy.copied {
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
    border-color: color-mix(in srgb, var(--success) 45%, transparent);
    color: var(--success);
}

.locale-suggest {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9000;
    max-width: 340px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.locale-suggest.visible {
    opacity: 1;
    transform: translateY(0);
}
.locale-suggest[hidden] {
    display: none;
}
.locale-suggest-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 10px;
}
.locale-suggest-actions {
    display: flex;
    gap: 8px;
}
.locale-suggest-actions .btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
}

@media (max-width: 760px) {
    .bot-chips {
        gap: 6px;
        margin-top: 9px;
    }
    .chip {
        min-height: 24px;
        padding: 4px 8px;
        font-size: 9.5px;
        border-radius: 8px;
    }
    .rating-dist-row {
        font-size: 10.5px;
    }
    .locale-suggest {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
        padding: 12px 14px;
    }
}

/* v9 — hero widget footer (только счётчик справа) */
.hw-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 10px 0px 0px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    min-height: 30px;
}
.hw-foot[hidden] { display: none; }
.hw-foot-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #68738a;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.hw-foot-stats .sep {
    opacity: .45;
    padding: 0 2px;
}
@media (max-width: 1000px) {
    .hw-foot { display: none; }
}

/* v10 — related bots: load more */
.related-more-wrap {
    display: flex;
    justify-content: center;
    padding: 2px 0 4px;
}
.related-more {
    min-height: 40px;
    padding: 0 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: border-color .18s, background .18s, color .18s;
}
.related-more[hidden] { display: none; }
.related-more:disabled {
    opacity: .6;
    cursor: wait;
}

/* v11 — bot card content width (same as add_bot) */
.page-bot-card .main-area {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
/* v12 — view all button (homepage blocks) */
.view-all-btn-wrap {
    display: flex;
    justify-content: center;
    padding: 14px 0 2px;
}
.view-all-btn {
    min-height: 40px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .18s, background .18s, color .18s;
    
   
}
.view-all-btn:hover {
    border-color: var(--accent);
    background: var(--surface-soft);
    color: var(--accent);
}
@media (max-width: 760px) {
    .view-all-btn-wrap {
        padding: 12px 0 2px;
    }
    .view-all-btn {
        min-height: 36px;
        padding: 0 18px;
        font-size: 11px;
    }
}
/* v13 — text search button */
.search-submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0 18px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    white-space: nowrap;
    transition: border-color .18s, background .18s, color .18s;
}
.search-submit:hover {
    border-color: var(--accent) !important;
    background: var(--surface-soft) !important;
    color: var(--accent) !important;
}
.search-submit .search-icon {
    display: none;
}
@media (max-width: 760px) {
    .search-submit {
        flex-basis: auto;
        width: auto;
        padding: 0 14px !important;
        font-size: 11.5px;
    }
}
@media (max-width: 420px) {
    .search-submit {
        flex-basis: auto;
        width: auto;
        padding: 0 12px !important;
        font-size: 11px;
    }
}
.btn {
transition: border-color .18s, background .18s, color .18s; }
/* v16 — 404 not found page */
.page-404 .main-area {
    max-width: 720px;
    margin: 0 auto;
}
.notfound-main {
    padding: 60px 0 100px;
}
.notfound-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px 30px;
}
.notfound-kicker {
    font-family: 'Brand', 'Inter Tight', Inter, sans-serif;
    font-size: 188px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--text);
    opacity: .16;
    margin-bottom: 8px;
    user-select: none;
}
.notfound-icon {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    margin-bottom: 22px;
}
.notfound-icon svg {
    width: 42px;
    height: 42px;
}
.notfound-title {
    font-family: 'Brand', 'Inter Tight', Inter, sans-serif;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -.045em;
    margin: 0 0 12px;
}
.notfound-text {
    max-width: 520px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 28px;
}
.notfound-search {
    width: min(560px, 100%);
    margin-bottom: 22px;
}
.notfound-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 760px) {
    .notfound-main {
        padding: 24px 0 60px;
    }
    .notfound-card {
        padding: 24px 4px 20px;
    }
    .notfound-kicker {
        font-size: 64px;
    }
    .notfound-icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }
    .notfound-icon svg {
        width: 34px;
        height: 34px;
    }
    .notfound-title {
        font-size: 28px;
    }
    .notfound-text {
        font-size: 13px;
        margin-bottom: 22px;
    }
    .notfound-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}
.hw-foot-stats { direction: ltr; unicode-bidi: isolate; }
.report-link { cursor:pointer; }
.report-link:hover {color: var(--text);
    text-decoration: none;
     }
/*
#relatedBotsSection { border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface); padding: 21px 28px 11px 28px; } */
    
.report-modal-backdrop {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0, 0, 0, .55);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: rpm-fade .15s ease;
}
@keyframes rpm-fade { from { opacity: 0; } to { opacity: 1; } }

.report-modal {
    width: min(100%, 440px);
    background: var(--surface, #fff);
    color: var(--text, #111);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    max-height: 90vh;
    overflow-y: auto;
    font-size:12px;
}

.report-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.report-modal-head h3 { margin: 0; font-size: 18px; }
.report-modal-close { background: transparent; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; padding: 0 6px; }

.report-modal-reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.report-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); }
.report-radio:hover { background: rgba(0, 0, 0, .03); }
.report-radio input { margin: 0; }

.report-modal textarea {
    width: 100%; min-height: 80px; resize: vertical;
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line, #e5e7eb);
    background: transparent; color: inherit; font: inherit;
    box-sizing: border-box;
}

.report-modal-message { min-height: 18px; margin: 10px 0; font-size: 14px; }
.report-modal-message.success { color: #16a34a; }
.report-modal-message.error   { color: #dc2626; }

.report-modal-actions { display: flex; gap: 8px; justify-content: flex-end; }    
/* Verified badge (bot card) */
.profile-info .name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    line-height: 1;
    vertical-align: middle;
    transform: translateY(-1px);
}
.verified-badge .verified-icon {
    width: 20px;
    height: 20px;
    display: block;
}
@media (max-width: 760px) {
    .profile-info .name { gap: 6px; }
    .verified-badge,
    .verified-badge .verified-icon { width: 18px; height: 18px; }
}