﻿/* Trang Scan niches: đầu trang gọn, một ô tìm kiếm lớn, chủ đề gợi ý, bộ lọc nhỏ phía dưới */
html.theme-clean .scan-head{margin-bottom:22px !important;}
html.theme-clean .scan-head h1{font-size:34px !important;margin:0 0 8px !important;}
html.theme-clean .scan-head p{font-size:16px !important;color:#475569 !important;max-width:560px;margin:0 !important;}
html.theme-clean .scan-card{padding:22px !important;border-radius:16px !important;box-shadow:var(--shadow-md,0 4px 14px rgba(15,23,42,.07)) !important;}
html.theme-clean .scan-search{display:flex;align-items:center;gap:10px;background:#fff !important;border:1.5px solid #cbd5e1;border-radius:14px;padding:8px 8px 8px 16px;transition:border-color .15s,box-shadow .15s;}
html.theme-clean .scan-search:focus-within{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12);}
html.theme-clean .scan-search > i{font-size:20px;color:#64748b !important;}
html.theme-clean .scan-search input{flex:1;min-width:0;border:0 !important;outline:0 !important;box-shadow:none !important;background:transparent !important;font-size:16px !important;padding:10px 4px !important;color:#0f172a !important;}
html.theme-clean .scan-search input::placeholder{color:#94a3b8;}
html.theme-clean .scan-go{padding:12px 26px !important;font-size:15px !important;border-radius:10px !important;}
html.theme-clean .scan-topics{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:14px;}
html.theme-clean .scan-topics-label{font-size:12.5px;font-weight:600;color:#64748b !important;margin-right:4px;}
html.theme-clean .topic-chip{border:1px solid #dbe3ee !important;background:#f8fafc !important;color:#1e293b !important;border-radius:999px !important;padding:7px 14px !important;font-size:13.5px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s,transform .15s;}
html.theme-clean .topic-chip:hover{background:#eff6ff !important;border-color:#93c5fd !important;color:#1d4ed8 !important;transform:translateY(-1px);}
html.theme-clean .scan-or{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid #e5e7eb;}
html.theme-clean .scan-or .scan-counter{margin:0 !important;font-size:13px !important;color:#64748b !important;}
html.theme-clean .scan-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;}
html.theme-clean .scan-filter .quick-filter-tile{display:inline-flex !important;align-items:center;gap:6px;width:auto !important;padding:7px 14px !important;border-radius:999px !important;border:1px solid #dbe3ee !important;background:#fff !important;color:#334155 !important;font-size:13.5px !important;font-weight:500;cursor:pointer;box-shadow:none !important;flex-direction:row !important;}
html.theme-clean .scan-filter .quick-filter-tile.active{background:#1d4ed8 !important;border-color:#1d4ed8 !important;color:#fff !important;}
html.theme-clean .scan-filter .quick-filter-tile.active i{color:#fff !important;}
@media (max-width:900px){
  html.theme-clean .scan-head h1{font-size:28px !important;}
  html.theme-clean .scan-card{padding:16px !important;}
  html.theme-clean .scan-search{flex-wrap:wrap;padding:10px;}
  html.theme-clean .scan-search input{flex:1 1 60%;}
  html.theme-clean .scan-go{width:100%;}
}
html.theme-clean .scan-or{justify-content:flex-start !important;}
html.theme-clean .scan-or{align-items:center;gap:8px 16px;}
html.theme-clean #unifiedSearchBtn.scan-discover{display:inline-flex !important;align-items:center;gap:10px;padding:14px 26px !important;font-size:16px !important;font-weight:700 !important;border-radius:12px !important;background:#1d4ed8 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;border:0 !important;box-shadow:0 6px 16px rgba(29,78,216,.32) !important;margin:0 !important;float:none !important;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s;}
html.theme-clean #unifiedSearchBtn.scan-discover i{font-size:19px;color:#fff !important;}
html.theme-clean #unifiedSearchBtn.scan-discover:hover{background:#1e40af !important;transform:translateY(-2px);box-shadow:0 10px 22px rgba(29,78,216,.4) !important;}
html.theme-clean #unifiedSearchBtn.scan-discover:active{transform:translateY(0);}
html.theme-clean .scan-discover-hint{font-size:13.5px;color:#475569 !important;max-width:300px;line-height:1.4;}
@media (max-width:900px){html.theme-clean #unifiedSearchBtn.scan-discover{width:100%;justify-content:center;}}
html.theme-clean #unifiedSearchBtn.scan-discover{order:0 !important;}
html.theme-clean .scan-discover-hint{order:1;}
html.theme-clean .scan-or .scan-counter{order:2;}
html.theme-clean #unifiedSearchBtn.scan-discover i,html.theme-clean #unifiedSearchBtn.scan-discover i::before{background:transparent !important;background-color:transparent !important;color:#fff !important;-webkit-text-fill-color:#fff !important;box-shadow:none !important;}
html.theme-clean .scan-card .btn i,html.theme-clean .scan-card .btn i::before{background:transparent !important;}

/* Bố cục dọc: mỗi khối là một thẻ riêng trên nền xám, cách đều nhau (không lồng khung trong khung) */
html.theme-clean .scan-card{display:flex !important;flex-direction:column;gap:20px;background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important;max-width:none !important;}
html.theme-clean .scan-card > *{margin:0 !important;}
html.theme-clean .scan-card .prompt-bar{background:#fff !important;border:1px solid #e2e8f0 !important;border-radius:16px !important;padding:22px !important;box-shadow:0 1px 2px rgba(15,23,42,.04),0 6px 20px rgba(15,23,42,.05) !important;}
html.theme-clean .scan-filter{margin:0 !important;}
html.theme-clean .ws-digest{max-width:none !important;width:100%;box-sizing:border-box;padding:18px 22px !important;margin:0 !important;border-radius:16px !important;font-size:14.5px;line-height:1.5;}
html.theme-clean .ws-digest-list{margin-top:12px !important;gap:10px !important;}
html.theme-clean .ws-digest .niche-pick-btn{padding:8px 16px !important;display:inline-flex;align-items:center;gap:8px;}
html.theme-clean .ws-digest .niche-pick-btn b,html.theme-clean .ws-digest b{background:transparent !important;}
html.theme-clean .ws-digest .niche-pick-btn b{color:#1d4ed8 !important;font-weight:800;}
html.theme-clean .scan-card .lynx-state{background:#fff !important;border:1px solid #e2e8f0 !important;border-radius:16px !important;padding:24px 28px !important;gap:22px !important;box-shadow:0 1px 2px rgba(15,23,42,.04) !important;}
html.theme-clean .scan-card .lynx-state-title{font-size:18px !important;}
html.theme-clean .scan-card .lynx-state-sub{font-size:14.5px !important;line-height:1.5;margin-top:4px !important;color:#475569 !important;}
html.theme-clean .scan-card:has(#unifiedResult .lynx-state) .scan-filter{display:none !important;}
html.theme-clean .scan-card .niche-result{margin:0 !important;gap:20px !important;}
html.theme-clean .scan-card .scan-meta-line{margin:0 !important;padding:0 4px;line-height:1.5;color:#64748b !important;}
html.theme-clean .scan-card .external-scan-box{padding:0 !important;}
@media (max-width:900px){
  html.theme-clean .scan-card .prompt-bar{padding:16px !important;border-radius:14px !important;}
  html.theme-clean .scan-card .lynx-state{padding:18px !important;gap:14px !important;}
  html.theme-clean .ws-digest{padding:16px !important;}
}
html.theme-clean .scan-filter,html.theme-clean .scan-filter .scan-topics-label{background:transparent !important;}
html.theme-clean .scan-card > #digestBanner{order:1;}
html.theme-clean .scan-card > .scan-filter{order:2;}
html.theme-clean .scan-card > #unifiedResult{order:3;}
html.theme-clean .scan-card > #externalScanBox{order:4;}
html.theme-clean .scan-card > #externalScanResult{order:5;}
html.theme-clean .scan-card > .scan-meta-line{order:6;}
