/* Bộ công cụ /cong-cu — dùng màu chủ đạo của site (#5e5df0). */
.seo-tool { max-width: 1080px; margin: 0 auto; padding-bottom: 32px; }
.seo-tool__head { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 16px; }
.seo-tool__icon { flex: 0 0 48px; height: 48px; border-radius: 14px; background: #5e5df0; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.seo-tool__title { font-size: 24px; font-weight: 700; margin: 0 0 4px; line-height: 1.25; }
.seo-tool__lead { margin: 0; color: #64748b; }
.seo-tool__app { background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); padding: 18px; }
.seo-tool__privacy { font-size: 13px; color: #16a34a; margin: 10px 2px 0; }
.seo-tool__article { background: #fff; border-radius: 14px; padding: 18px 20px; margin-top: 18px; line-height: 1.65; }
.seo-tool__article h2 { font-size: 19px; font-weight: 700; margin: 18px 0 8px; }
.seo-tool__article h2:first-child { margin-top: 0; }
.seo-tool__faq-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.seo-tool__faq-item summary { font-weight: 600; cursor: pointer; }
.seo-tool__faq-item p { margin: 8px 0 0; }
.seo-tool__related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.seo-tool__related-block { background: #fff; border-radius: 14px; padding: 14px 18px; }
.seo-tool__related-block h2 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.seo-tool__related-block ul { margin: 0; padding-left: 18px; }
.seo-tool__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.seo-tool__card { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); color: inherit; text-decoration: none; transition: transform .15s; }
.seo-tool__card:hover { transform: translateY(-2px); text-decoration: none; color: inherit; }
.seo-tool__card-icon { width: 40px; height: 40px; border-radius: 12px; background: #eef2ff; color: #5e5df0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.seo-tool__card-name { font-weight: 700; }
.seo-tool__card-desc { font-size: 13px; color: #64748b; }

/* Thành phần dùng chung trong khung công cụ */
.tool-textarea { width: 100%; min-height: 150px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; resize: vertical; }
.tool-textarea:focus { outline: 2px solid #c7d2fe; border-color: #5e5df0; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.tool-row label { margin: 0; font-size: 14px; }
.tool-select, .tool-input { border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 10px; font-size: 14px; background: #fff; }
.tool-btn { border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 14px; background: #5e5df0; color: #fff; cursor: pointer; }
.tool-btn:disabled { opacity: .55; cursor: default; }
.tool-btn--ghost { background: #eef2ff; color: #4338ca; }
.tool-table-wrap { overflow-x: auto; margin-top: 10px; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tool-table th, .tool-table td { border-bottom: 1px solid #eef2f7; padding: 8px 10px; text-align: left; vertical-align: middle; }
.tool-table th { font-size: 12px; text-transform: uppercase; color: #64748b; font-weight: 600; }
.tool-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-ok { color: #16a34a; font-weight: 600; }
.tool-bad { color: #dc2626; font-weight: 600; }
.tool-muted { color: #94a3b8; }
.tool-note { font-size: 13px; color: #64748b; margin: 6px 0 0; }
.tool-stats { font-size: 13px; color: #475569; }

body.dark .seo-tool__app, body.dark .seo-tool__article, body.dark .seo-tool__related-block, body.dark .seo-tool__card { background: #1e1f2b; }
body.dark .tool-textarea, body.dark .tool-select, body.dark .tool-input { background: #121212; color: #e2e8f0; border-color: #334155; }
body.dark .tool-table th, body.dark .tool-table td { border-color: #2a2b3a; }

@media (max-width: 600px) {
    .seo-tool__title { font-size: 20px; }
    .seo-tool__app, .seo-tool__article { padding: 14px; }
}
