:root {
  --bg: #f4f7fb;
  --white: #ffffff;
  --ink: #1c2430;
  --muted: #6b7380;
  --line: #e7edf5;
  --purple: #5b4dff;
  --purple-dark: #4a3de6;
  --teal: #12b5a0;
  --teal-dark: #0e8f7e;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(28, 40, 70, .06);
  --max: 1240px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.nav { height: 68px; display: flex; align-items: center; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .04em; font-size: 18px; flex: 0 0 auto; z-index: 2; }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; background: #111827; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.nav-links { display: flex; gap: 8px 28px; font-size: 16px; font-weight: 700; color: #1c2430; justify-content: center; align-items: center; flex: 1 1 auto; text-align: center; }
.nav-links a { white-space: nowrap; padding: 6px 2px; }
.nav-links a:hover { color: var(--purple); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; z-index: 2; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: #445; }
.btn-signup { background: var(--purple); color: #fff !important; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; }
.promo-wrap { background: linear-gradient(#fff, var(--bg)); padding: 10px 0 0; }
.promo { background: #fff8c9; border: 1px solid #f3e48a; color: #3b3208; border-radius: 999px; padding: 8px 12px 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 600; max-width: 720px; margin: 0 auto; }
.promo .try { background: #f5c400; color: #1a1400; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.hero { text-align: center; padding: 28px 0 8px; }
.kicker { color: #8b93a0; font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.hero-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 8px; }
.bot { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #7eeadf, #12b5a0); display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 16px rgba(18,181,160,.25); }
.hero h1 { font-size: 34px; color: var(--teal-dark); letter-spacing: -.03em; font-weight: 800; }
.sub { color: #5b6470; font-size: 15px; }
.search-card { margin: 22px auto 0; max-width: 1180px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); padding: 6px 10px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; box-sizing: border-box; overflow: visible; }
.search-card input[type=search] { flex: 1 1 0; border: 0; outline: none; padding: 10px 14px; background: #f6f8fb; border-radius: 999px; min-width: 120px; max-width: 100%; color: #1c2430; }
.search-card input[type=search]::placeholder { color: #8a91a0; }
.search-card select { border: 0; background: #f6f8fb; border-radius: 999px; padding: 8px 10px; color: #445; flex: 0 1 auto; max-width: 140px; min-width: 0; }
.filters { display: flex; gap: 5px; padding-right: 2px; flex-wrap: nowrap; flex: 0 1 auto; align-items: center; min-width: 0; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 700; color: #445; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.chip.on { background: #eef2ff; border-color: #c9d2ff; color: var(--purple); }
.meta-row { display: flex; justify-content: center; gap: 18px; margin-top: 14px; color: #7a8290; font-size: 13px; }
.meta-row b { color: #2b3440; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 240px; }
.ftop { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #8a91a0; }
.vote { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.feat-tag { color: #c9a227; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.logo-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 6px; }
.logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.fcard h3 { font-size: 15px; }
.fcard p, .fcard .card-desc { color: #6b7380; font-size: 13px; line-height: 1.45; flex: 1; }
.visit { margin-top: 12px; align-self: center; background: var(--purple); color: #fff !important; border-radius: 999px; padding: 7px 18px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.cols-title { text-align: center; color: #9aa3b0; letter-spacing: .16em; font-size: 11px; font-weight: 800; margin: 36px 0 16px; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.col { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px 12px; box-shadow: var(--shadow); }
.col h2 { font-size: 15px; text-align: center; margin-bottom: 12px; font-weight: 800; }
.item { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13.5px; }
.item .n { width: 16px; color: #9aa3b0; font-size: 12px; }
.dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; color: #fff; font-weight: 800; }
.item .go { margin-left: auto; color: #c5cbd6; font-size: 12px; }
.more { display: block; text-align: center; color: #8b93a0; font-size: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f3f8; }
.full-btn-wrap { text-align: center; margin: 28px 0 10px; }
.full-btn { display: inline-block; background: #fff; border: 1px solid #ece3ff; color: var(--purple); border-radius: 999px; padding: 12px 28px; font-weight: 800; box-shadow: var(--shadow); }
.platforms { text-align: center; padding: 28px 0 10px; color: #8b93a0; font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.plats { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 12px; color: #3c4450; font-weight: 800; font-size: 15px; }
.explore { text-align: center; color: #9aa3b0; letter-spacing: .14em; font-size: 11px; font-weight: 800; margin: 28px 0 14px; }
.hubs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 40px; }
.hub { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 16px; text-align: center; min-height: 160px; box-shadow: var(--shadow); }
.hub .ic { font-size: 26px; margin-bottom: 8px; }
.hub h3 { font-size: 15px; margin-bottom: 6px; }
.hub p { color: #7a8290; font-size: 13px; }
.page-hero { padding: 28px 0 8px; }
.page-hero h1 { font-size: 28px; }
.lead { color: var(--muted); margin-top: 6px; }
.tool-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pill { background: #eef2f8; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
form.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 640px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search],
input:not([type]), textarea, select, select.full {
  width: 100%; display: block; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: #fff; color: var(--ink); outline: none; font: inherit;
}
.search-card input, .search-card select, .search-card input[type=search] {
  width: auto !important; display: inline-block; flex: 1;
}
.auth-box input, .auth-box textarea, .auth-box select,
form.card input, form.card textarea, form.card select {
  width: 100% !important; display: block !important; margin-bottom: 4px;
}
.auth-box .btn, form.card .btn { width: 100%; margin-top: 14px; padding: 12px 16px; font-size: 15px; }
textarea { min-height: 110px; }
.alert { background: #ecfdf3; color: #166534; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.btn { background: var(--purple); color: #fff !important; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.btn.ghost { background: #fff; color: #111 !important; border: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: #8b93a0; font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1100px) {
  .feat-grid, .cols, .hubs { grid-template-columns: 1fr 1fr; }
  .nav-links { font-size: 15px; gap: 6px 18px; }
}
@media (max-width: 1020px) {
  .feat-grid, .cols, .hubs { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .search-card {
    flex-wrap: wrap !important;
    border-radius: 18px !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .search-card input[type=search] {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    order: 1;
  }
  .search-card select {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    order: 2;
  }
  .search-card .filters,
  .search-card .filter-pills {
    flex: 1 1 100% !important;
    width: 100% !important;
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .feat-grid, .cols, .hubs { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  img, video, iframe { max-width: 100%; height: auto; }
  .wrap { width: calc(100% - 20px); }
  .search-card {
    flex-wrap: wrap !important;
    border-radius: 16px !important;
  }
  .search-card input[type=search] {
    flex: 1 1 100% !important;
    width: 100% !important;
    order: 1;
  }
  .search-card select {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    order: 2;
  }
  .search-card .filters {
    flex: 1 1 100% !important;
    width: 100% !important;
    order: 3;
    justify-content: center;
  }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 16px); }
  .hero h1 { font-size: 22px; }
}
.section { padding: 24px 0; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.list { background:#fff; border:1px solid var(--line); border-radius:16px; padding:8px; }
.list a.row, .list .row { display:flex; gap:8px; padding:8px 12px; align-items:center; }
.cats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.cat { background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px; box-shadow:var(--shadow); }
@media(max-width:800px){ .featured-grid,.cats{grid-template-columns:1fr;} }

.platforms{text-align:center;padding:28px 0 10px;color:#64748b!important;font-size:13px!important;letter-spacing:.04em!important;font-weight:700!important;text-transform:none}
.plats{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.plats a{color:#0f172a!important;font-weight:600!important;font-size:15px!important;letter-spacing:0!important;font-family:inherit;background:#fff;border:1px solid #e7edf5;border-radius:999px;padding:8px 16px}
.plats a:hover{border-color:#6d5cff;color:#4c1d95!important}

/* Category logos */
.cat-logo-wrap { padding: 0 !important; overflow: hidden; background: #f4f7fb !important; }
.cat-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; margin-bottom: 10px; }
.cat-hero-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cat-hero-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line, #e7edf5); flex-shrink: 0; }
.cat-hero-icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 28px; flex-shrink: 0; }


/* Home AI News */
.home-news { margin: 36px 0 28px; }
.home-news-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.home-news-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 0 0 22px; }
.home-news-cats a { font-size: 22px; font-weight: 800; color: #1c2430; letter-spacing: -0.02em; }
.home-news-cats a:hover { color: var(--purple, #5b4dff); }
.home-news-foot { text-align: center; margin-top: 18px; }
.home-news-foot .view-all { font-weight: 800; color: var(--purple, #5b4dff); }

/* News page feed (screenshot style) */
.news-page { padding: 28px 0 48px; }
.news-today-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.news-today-brand { display: flex; align-items: center; gap: 14px; }
.news-orb { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#3b82f6,#6366f1); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.news-today-head h1 { font-size: 28px; margin: 0; }
.news-today-head .sub { color: #6b7380; margin-top: 2px; }
.news-today-stats { display: flex; gap: 16px; align-items: center; color: #6b7380; font-size: 14px; }
.news-today-stats b { color: #111; }
.today-pill { background: #fef9c3; color: #854d0e; padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.news-search-bar { display: flex; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line,#e7edf5); border-radius: 14px; padding: 12px; margin-bottom: 14px; box-shadow: var(--shadow,0 10px 28px rgba(28,40,70,.06)); }
.news-search-bar input[type=search] { flex: 1 1 220px; min-width: 160px; border: 1px solid var(--line,#e7edf5); border-radius: 10px; padding: 10px 12px; }
.news-search-bar select { border: 1px solid var(--line,#e7edf5); border-radius: 10px; padding: 10px 12px; min-width: 160px; }
.news-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.news-cat-chips .chip { background: #fff; border: 1px solid var(--line,#e7edf5); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }
.news-cat-chips .chip.on { background: #111827; color: #fff; border-color: #111827; }
.news-feed { display: flex; flex-direction: column; gap: 10px; }
.news-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line,#e7edf5); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow,0 8px 20px rgba(28,40,70,.04)); }
.news-row.is-breaking { border-color: #fecaca; background: linear-gradient(90deg,#fff5f5 0%,#fff 40%); }
.news-row-time { flex: 0 0 72px; color: #6b7380; font-size: 13px; font-weight: 600; }
.news-row-main { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.breaking-badge { background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.news-row-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ai-badge { display: inline-grid; place-items: center; background: #111827; color: #fff; font-size: 10px; font-weight: 800; }
.news-row-text { min-width: 0; flex: 1; }
.news-row-title { font-weight: 700; font-size: 15px; color: #111; display: block; }
.news-row-title:hover { color: var(--purple,#5b4dff); }
.news-row-meta { color: #8b93a0; font-size: 12px; margin-top: 2px; }
.news-read-btn { flex: 0 0 auto; border: 1px solid var(--line,#e7edf5); border-radius: 10px; padding: 8px 14px; font-size: 12px; font-weight: 800; color: #374151; background: #fff; white-space: nowrap; }
.news-read-btn:hover { border-color: #5b4dff; color: #5b4dff; }
@media (max-width: 720px) {
  .news-row { flex-wrap: wrap; }
  .news-row-time { flex-basis: 100%; }
  .home-news-cats a { font-size: 18px; }
}


/* Home search filter pills */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-pills .chip { border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; border: 1px solid transparent; text-decoration: none; }
.pill-verified { background: #eef2ff; color: #4338ca; border-color: #c7d2fe !important; }
.pill-free { background: #ecfdf5; color: #047857; border-color: #a7f3d0 !important; }
.pill-freemium { background: #fff7ed; color: #c2410c; border-color: #fed7aa !important; }
.pill-paid { background: #fdf2f8; color: #be185d; border-color: #fbcfe8 !important; }
.pill-onsale { background: #fef08a !important; color: #854d0e !important; border-color: #fde047 !important; font-weight: 800 !important; }
.pill-onsale:hover { filter: brightness(.97); }
.filter-pills .chip.on { background: #111827; color: #fff; border-color: #111827 !important; }


/* Tool logo + verified badge */
.tool-logo, img.tool-logo { display:inline-block; vertical-align:middle; }
.logo-row { display:flex; align-items:center; gap:10px; }
.logo-row h3 { margin:0; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.verified-badge { display:inline-flex; align-items:center; justify-content:center; flex:none; line-height:0; }
.verified-badge svg { display:block; }
.verified-label { font-size:12px; font-weight:700; color:#2563eb; }
.tool-name-row { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pill-verified { display:inline-flex !important; align-items:center; gap:6px; }
.pill-verified .verified-info {
  display:inline-flex; align-items:center; justify-content:center;
  width:16px; height:16px; border-radius:50%;
  background:#c7d2fe; color:#4338ca; font-size:10px; font-weight:800;
  font-style:normal; cursor:help; line-height:1;
}
.list-row .tool-logo { width:22px; height:22px; border-radius:6px; }
.tick-item .tick-photo { width:28px; height:28px; border-radius:50%; object-fit:cover; }


/* Search page + mobile stack: input → categories → filters+Search */
.search-card .search-submit-btn,
.search-card button[type=submit].chip,
.search-card button.btn {
  order: 3;
}
.search-card-page {
  flex-wrap: wrap;
}
.search-card-page .filters,
.search-card-page .filter-pills {
  flex: 1 1 100%;
  width: 100%;
  justify-content: center;
  order: 3;
}
@media (max-width: 1020px) {
  .search-card button.btn,
  .search-card .search-submit-btn,
  .search-card button[type=submit] {
    flex: 0 0 auto !important;
    width: auto !important;
    order: unset !important;
  }
  .search-card .filters,
  .search-card .filter-pills {
    order: 3 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .search-card input[type=search] { order: 1 !important; }
  .search-card select { order: 2 !important; }
}
