:root {
  --bg: #0a0a0a;
  --bg2: #141414;
  --bg3: #1c1c1c;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #f0f0f0;
  --text2: #b2b2b2;
  --text3: #787878;
  --accent: #7c6af7;
  --accent2: #5b4de0;
  --green: #2dd4a0;
  --amber: #f59e0b;
  --red: #f56565;
  --blue: #4aaef5;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'DM Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --max-w: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 60px; display: flex; align-items: center; gap: 1rem;
}
.logo { font-family: var(--font-display); font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.logo-mark { flex-shrink: 0; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { padding: 6px 11px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text2); transition: color 0.15s, background 0.15s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.search-wrap { position: relative; flex-shrink: 0; }
.search-input { width: 190px; padding: 7px 12px 7px 32px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 13px; outline: none; transition: border-color 0.2s, width 0.2s; }
.search-input::placeholder { color: var(--text3); }
.search-input:focus { border-color: var(--border2); width: 230px; }
.search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 13px; pointer-events: none; }
.btn-hamburger { display: none; background: var(--bg3); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
.btn-hamburger:hover { background: var(--bg2); }
.mobile-menu { display: none; padding: 0.5rem 1.5rem 0.75rem; border-top: 1px solid var(--border); flex-direction: column; gap: 2px; }
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { display: block; padding: 9px 12px; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; margin-top: 5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-desc { font-size: 13px; color: var(--text3); line-height: 1.65; margin-top: 0.75rem; }
.footer-col-title { font-family: var(--font-display); font-size: 11px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.75rem; }
.footer-col-links { display: flex; flex-direction: column; gap: 7px; }
.footer-col-links a { font-size: 13px; color: var(--text3); transition: color 0.15s; }
.footer-col-links a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max-w); margin: 1.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); }
.footer-bottom .hl { color: var(--accent); }

/* ── PAGE WRAPPER ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── HERO ── */
.hero { padding: 4.5rem 1.5rem 2.5rem; text-align: center; max-width: var(--max-w); margin: 0 auto; position: relative; }
.hero::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:700px; height:340px; background:radial-gradient(ellipse at 50% 0%, rgba(124,106,247,0.2), transparent 70%); pointer-events:none; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(124,106,247,0.1); border: 1px solid rgba(124,106,247,0.25); color: #a89cf7; font-size: 12px; font-weight: 500; padding: 4px 14px; border-radius: 20px; margin-bottom: 1.25rem; letter-spacing: 0.03em; }
.hero h1 { font-family: var(--font-display); font-size: clamp(30px,5.5vw,58px); font-weight: 600; line-height: 1.12; margin-bottom: 1rem; position: relative; }
.hero h1 .hl { color: var(--accent); }
.hero-hl { background: linear-gradient(135deg, #7c6af7 0%, #4aaef5 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .sub { font-size: 16px; color: var(--text2); max-width: 520px; margin: 0 auto 2rem; line-height: 1.65; }
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* ── HERO SEARCH ── */
.hero-search-wrap { display: flex; align-items: center; max-width: 620px; margin: 0 auto 1.25rem; background: var(--bg2); border: 1px solid var(--border2); border-radius: 50px; padding: 6px 6px 6px 20px; gap: 8px; transition: border-color 0.2s, box-shadow 0.2s; }
.hero-search-wrap:focus-within { border-color: rgba(124,106,247,0.5); box-shadow: 0 0 0 3px rgba(124,106,247,0.1); }
.hero-search-ico { color: var(--text3); font-size: 18px; flex-shrink: 0; }
.hero-search-input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--font); font-size: 15px; outline: none; min-width: 0; }
.hero-search-input::placeholder { color: var(--text3); }
.hero-search-btn { background: var(--accent); color: #fff; border: none; border-radius: 40px; padding: 9px 22px; font-family: var(--font-display); font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; white-space: nowrap; flex-shrink: 0; }
.hero-search-btn:hover { background: var(--accent2); }

/* ── HERO CATEGORY PILLS ── */
.hero-cats-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-cat-pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; color: var(--text2); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; white-space: nowrap; text-decoration: none; }
.hero-cat-pill:hover { border-color: rgba(124,106,247,0.5); color: var(--text); background: rgba(124,106,247,0.08); }

/* ── STATS ── */
.stats-row { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-n { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.stat-l { font-size: 12px; color: var(--text3); margin-top: 3px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; border: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { background: var(--bg3); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; }

/* ── BADGES ── */
.badge { font-size: 10px; font-weight: 500; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.badge-free { background: rgba(45,212,160,0.12); color: var(--green); border: 1px solid rgba(45,212,160,0.2); }
.badge-freemium { background: rgba(124,106,247,0.12); color: #a89cf7; border: 1px solid rgba(124,106,247,0.2); }
.badge-paid { background: rgba(245,158,11,0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }

/* ── SECTION ── */
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.section-more { font-size: 13px; color: var(--accent); transition: opacity 0.15s; }
.section-more:hover { opacity: 0.75; }

/* ── TOOL CARD ── */
.tool-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: inherit; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.tool-card:hover { border-color: var(--border2); background: var(--bg3); transform: translateY(-2px); }
.tool-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tool-avatar { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; font-weight: 600; flex-shrink: 0; border: 1px solid transparent; overflow: hidden; }
.tool-favicon { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.tool-avatar-fallback { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.tool-name { font-family: var(--font-display); font-size: 14px; font-weight: 500; flex: 1; }
.tool-users { font-size: 10.5px; color: var(--text3); white-space: nowrap; }
.tool-desc { font-size: 12.5px; color: var(--text2); line-height: 1.55; flex: 1; margin-bottom: 12px; }
.tool-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); gap: 8px; }
.tool-domain { font-size: 11px; color: var(--text3); }
.tool-aff { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--accent); background: rgba(124,106,247,0.1); border: 1px solid rgba(124,106,247,0.2); padding: 4px 10px; border-radius: 6px; transition: background 0.15s; cursor: pointer; }
.tool-aff:hover { background: rgba(124,106,247,0.22); }

/* ── NEWS CARD ── */
.news-img { width:100%; height:180px; border-radius:8px; background-size:cover; background-position:center; margin-bottom:4px; }
.news-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, background 0.15s; }
.news-card:hover { border-color: var(--border2); background: var(--bg3); }
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-tag { font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 20px; }
.news-date { font-size: 11px; color: var(--text3); }
.news-title { font-family: var(--font-display); font-size: 15px; font-weight: 500; line-height: 1.4; }
.news-summary { font-size: 13px; color: var(--text2); line-height: 1.55; }
.news-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto; }
.news-source { font-size: 11px; color: var(--text3); }
.news-more { font-size: 12px; color: var(--accent); }

/* ── CAT CARD ── */
.cat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; transition: border-color 0.15s, background 0.15s, transform 0.15s; color: inherit; }
.cat-card:hover { border-color: var(--border2); background: var(--bg3); transform: translateY(-2px); }
.cat-icon-box { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.cat-card-name { font-family: var(--font-display); font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.cat-card-count { font-size: 12px; color: var(--text3); }

/* ── FILTERS ── */
.filter-bar { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); font-family: var(--font); font-size: 13px; white-space: nowrap; cursor: pointer; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--border2); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.grid-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }

/* ── BANNER ── */
.banner { background: linear-gradient(135deg, rgba(124,106,247,0.14) 0%, rgba(91,77,224,0.06) 100%); border: 1px solid rgba(124,106,247,0.2); border-radius: 16px; padding: 2.5rem; text-align: center; }
.banner h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 0.75rem; }
.banner p { font-size: 15px; color: var(--text2); margin-bottom: 1.5rem; }

/* ── FORM ELEMENTS ── */
.field-label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.field-input, .field-select, .field-textarea { width: 100%; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 14px; outline: none; transition: border-color 0.2s; }
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--accent); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--text3); }
.field-textarea { resize: vertical; min-height: 140px; line-height: 1.6; font-size: 13px; }
.field-select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.checkbox-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.checkbox-label { font-size: 14px; color: var(--text2); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 1rem 0; }

/* ── EMPTY STATE ── */
.empty { text-align: center; padding: 4rem 1rem; color: var(--text3); font-size: 14px; }
.empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.3s ease both; }

/* ── PAGE HERO (smaller) ── */
.page-hero { padding: 2.5rem 1.5rem 2rem; max-width: var(--max-w); margin: 0 auto; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(22px,3.5vw,34px); font-weight: 600; margin-bottom: 0.5rem; }
.page-hero p { font-size: 14px; color: var(--text2); }

/* ── LANG PICKER ── */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-btn { display: flex; align-items: center; gap: 5px; padding: 6px 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 13px; cursor: pointer; white-space: nowrap; transition: border-color 0.15s; }
.lang-btn:hover { border-color: var(--border2); }
.lang-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 6px; z-index: 300; min-width: 160px; max-height: 340px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.4); scrollbar-width: thin; }
.lang-menu.open { display: block; }
.lang-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; background: transparent; border: none; border-radius: 6px; color: var(--text2); font-family: var(--font); font-size: 13px; cursor: pointer; text-align: left; transition: background 0.12s, color 0.12s; }
.lang-opt:hover { background: var(--bg3); color: var(--text); }
.lang-opt.active { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .search-wrap { display: none; }
  .btn-hamburger { display: flex; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero .sub { font-size: 14px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-cats { grid-template-columns: 1fr 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .grid-news { grid-template-columns: 1fr; }
  .stats-row { gap: 1.5rem; }
  .wrap { padding: 0 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 1.75rem 0; }
  .page-hero { padding: 1.5rem 1rem 1.25rem; }
  .banner { padding: 1.75rem 1.25rem; }
}
