/* HOSTVN Tools. Token theo khachhang.hostvn.net, không có dark mode. */

@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("../font/BeVietnamPro-Regular.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("../font/BeVietnamPro-Medium.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("../font/BeVietnamPro-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("../font/BeVietnamPro-Bold.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url("../font/JetBrainsMono-400-500.woff2") format("woff2"); }

:root {
  --hv-primary: #1C66FA;
  --hv-primary-hover: #0D52DC;
  --hv-link: #0D52DC;
  --hv-link-hover: #0B43B3;
  --hv-primary-soft: #EEF4FF;
  --hv-primary-tint: #EBF1FF;
  --hv-icon-bg: #EAF1FF;
  --hv-accent: #FFD43B;
  --hv-navy: #0B1B3F;
  --hv-bg: #F6F8FC;
  --hv-surface: #FFFFFF;
  --hv-surface-muted: #F1F4F9;
  --hv-text: #0E1420;
  --hv-text-strong: #353F51;
  --hv-text-muted: #4A5568;
  --hv-text-subtle: #5F6B80;
  --hv-icon-muted: #8D98AB;
  --hv-border: #E7EBF1;
  --hv-border-row: #E9EDF3;
  --hv-border-chip: #D6DCE6;
  --hv-border-input: #C3CCD9;
  --hv-ok: #15803D;   --hv-ok-bg: #EBF9F0;
  --hv-warn: #B45309; --hv-warn-bg: #FFF6E0;
  --hv-bad: #B91C1C;  --hv-bad-bg: #FDEEEE;
  --hv-font: "Be Vietnam Pro", system-ui, sans-serif;
  --hv-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html:not(.js) .needs-js { display: none !important; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: var(--hv-bg); color: var(--hv-text); font-family: var(--hv-font); line-height: 1.5; }
a { color: var(--hv-link); }
a:hover { color: var(--hv-link-hover); }
img { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible, .input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--hv-primary); outline-offset: 1px; }
.icon { flex-shrink: 0; }
.mono { font-family: var(--hv-mono); }
.muted { color: var(--hv-text-subtle); }
.hint { font-size: 13px; color: var(--hv-text-subtle); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Component dùng chung ---------- */
.card { background: var(--hv-surface); border: 1px solid var(--hv-border); border-radius: 12px; padding: 24px; min-width: 0; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 600; color: var(--hv-text-strong); }
.field input[type="range"] { width: 100%; accent-color: var(--hv-primary); }

.input, .field input:not([type="range"], [type="checkbox"], [type="radio"]), .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--hv-border-input); border-radius: 10px;
  background: var(--hv-surface); color: var(--hv-text); font-family: inherit; font-size: 15px;
}
.field textarea { padding-top: 10px; padding-bottom: 10px; }
.input.mono, .field input.mono, .field textarea.mono { font-family: var(--hv-mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--hv-border-input); border-radius: 8px; background: var(--hv-surface); color: var(--hv-text);
  font-family: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--hv-primary); color: var(--hv-text); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-primary { border-color: var(--hv-primary); background: var(--hv-primary); color: #FFFFFF; font-weight: 600; }
.btn-primary:hover { border-color: var(--hv-primary-hover); background: var(--hv-primary-hover); color: #FFFFFF; }
.btn-sm { font-weight: 500; }
.btn-lg { height: 52px; padding: 0 26px; border-radius: 10px; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--hv-border-input);
  border-radius: 999px; background: var(--hv-surface); color: var(--hv-text); font-family: inherit; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--hv-primary); color: var(--hv-text); }
.chip[aria-pressed="true"] { border-color: var(--hv-primary); background: var(--hv-primary); color: #FFFFFF; font-weight: 600; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--hv-border); }
.tabs [data-tab], .tabs [role="tab"] {
  min-height: 44px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--hv-text-muted); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.tabs [data-tab][aria-selected="true"], .tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--hv-primary); color: var(--hv-link); font-weight: 600; }

/* Bảng rộng đặt trong .table-wrap để cuộn ngang trên màn hình hẹp. */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 12px; background: var(--hv-bg); color: var(--hv-text-muted); font-size: 13px; font-weight: 600; text-align: left; }
.table td { padding: 12px; border-top: 1px solid var(--hv-border-row); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table .mono { word-break: break-all; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge:empty { display: none; }
.badge-ok { background: var(--hv-ok-bg); color: var(--hv-ok); }
.badge-warn { background: var(--hv-warn-bg); color: var(--hv-warn); }
.badge-bad { background: var(--hv-bad-bg); color: var(--hv-bad); }
.badge-muted { background: var(--hv-border-row); color: var(--hv-text-strong); }

.alert { padding: 14px 16px; border: 1px solid #F3C4C4; border-radius: 12px; background: var(--hv-bad-bg); color: var(--hv-bad); font-size: 14px; }
.alert-warn { border-color: #F2DCA6; background: var(--hv-warn-bg); color: var(--hv-warn); }

.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.kv dt { color: var(--hv-text-subtle); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.search { position: relative; }
.search > .icon-search { position: absolute; left: 12px; top: 11px; color: var(--hv-text-subtle); pointer-events: none; }
.search .search-input { height: 40px; min-height: 40px; padding-left: 38px; font-size: 14px; }
.search-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 360px; overflow-y: auto; margin: 0;
  padding: 6px; list-style: none; background: var(--hv-surface); border: 1px solid var(--hv-border-chip); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(14, 20, 32, .12);
}
.search-results a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--hv-text); text-decoration: none; font-size: 14px; }
.search-results a:hover, .search-results a:focus { background: var(--hv-primary-tint); }
.search-empty { padding: 8px 10px; color: var(--hv-text-subtle); font-size: 14px; }

/* ---------- Header, footer ---------- */
.site-header { background: var(--hv-surface); border-bottom: 1px solid var(--hv-border); }
.header-row { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.header-wide { max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-tag { padding: 3px 8px; border-radius: 6px; background: var(--hv-primary-soft); color: var(--hv-link); font-size: 13px; font-weight: 600; }
.header-search { flex: 1 1 280px; max-width: 420px; }
.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ip-pill { font-size: 13px; color: var(--hv-text-muted); background: var(--hv-surface-muted); border-radius: 999px; padding: 6px 12px; overflow-wrap: anywhere; }
.ip-pill .mono { color: var(--hv-text); font-weight: 500; }
.mobile-actions { display: none; gap: 4px; margin-left: auto; }
.icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--hv-text-strong); cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--hv-surface); border-bottom: 1px solid var(--hv-border); box-shadow: 0 12px 24px rgba(14, 20, 32, .12); }
.mobile-panel .sidebar-group a { padding: 9px 10px 9px 22px; border-radius: 8px; color: var(--hv-text-strong); text-decoration: none; font-size: 15px; }
.mobile-panel .sidebar-group summary { font-size: 15px; }
.mobile-panel .sidebar-group a[aria-current="page"] { background: var(--hv-primary-tint); color: var(--hv-link); font-weight: 600; }
.mobile-panel .ip-pill { align-self: flex-start; }
.mobile-panel .search-results { position: static; margin-top: 4px; box-shadow: none; }

.site-footer { margin-top: auto; border-top: 1px solid #E3ECF7; background: linear-gradient(180deg, #FFFFFF 0%, #F2F8FD 100%); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 0; display: flex; flex-direction: column; gap: 40px; }
.footer-inner.header-wide { max-width: 1280px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-about img { height: 44px; width: auto; }
.footer-about p { font-size: 14.5px; line-height: 1.6; color: var(--hv-text-muted); }
.footer-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 8px; background: #218BE7; color: #FFFFFF; font-size: 15px; font-weight: 600; text-decoration: none; }
.footer-cta:hover { background: var(--hv-primary-hover); color: #FFFFFF; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { margin-bottom: 4px; font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--hv-navy); }
.footer-col a { width: fit-content; color: var(--hv-text-strong); font-size: 14.5px; text-decoration: none; }
.footer-col a:hover { color: var(--hv-primary); }
.footer-contact { gap: 16px; }
.footer-contact h3 { margin-bottom: 0; }
.footer-contact div { display: flex; flex-direction: column; gap: 4px; }
.footer-contact span { font-size: 13.5px; color: var(--hv-text-muted); }
.footer-col a.footer-phone, .footer-col a.footer-mail { color: var(--hv-navy); font-weight: 700; }
.footer-col a.footer-phone { font-size: 20px; }
.footer-col a.footer-mail { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.footer-bottom { padding: 20px 0 28px; border-top: 1px solid #E3ECF7; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--hv-text-muted); }
.footer-bottom a { color: var(--hv-text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--hv-primary); }

/* ---------- Trang công cụ ---------- */
.page-tool { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sidebar { flex: 1 1 240px; max-width: 260px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sidebar a { transition: background-color .2s ease, color .2s ease; border-radius: 8px; color: var(--hv-text-strong); text-decoration: none; }
.sidebar a:hover { background: var(--hv-surface-muted); }
.sidebar-tool { padding: 7px 10px 7px 22px; }
.sidebar a[aria-current="page"] { background: var(--hv-primary-tint); color: var(--hv-link); font-weight: 600; }
.sidebar-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-weight: 600; cursor: pointer; list-style: none; transition: background-color .2s ease; }
.sidebar-group > summary::-webkit-details-marker { display: none; }
.sidebar-group > summary:hover { background: var(--hv-surface-muted); }
.sidebar-group > summary::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 2px solid var(--hv-text-subtle); border-bottom: 2px solid var(--hv-text-subtle); transform: rotate(-45deg); transition: transform .22s ease; }
.sidebar-group[open]:not(.is-closing) > summary::after { transform: rotate(45deg); }
.sidebar-group > summary .muted { margin-left: auto; font-weight: 400; }
.sidebar-group > a { display: block; }
.tool-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.lead { max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--hv-text-muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--hv-text-subtle); }
.breadcrumb a { color: var(--hv-text-subtle); }
.breadcrumb [aria-current] { color: var(--hv-text); }
.about > summary { cursor: pointer; font-size: 17px; font-weight: 600; }
.about[open] > summary { margin-bottom: 16px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; font-size: 15px; line-height: 1.6; color: var(--hv-text-strong); }
.about-grid h3 { margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--hv-text); }

.error-page { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 80px; padding-bottom: 96px; text-align: center; }

/* ---------- Trang chủ ---------- */
/* Hero nền sáng theo các section của hostvn.net: xanh rất nhạt sang trắng, vệt sáng #218BE7 mờ ở góc,
   lưới chấm nhạt phía trên; hai khối trắng nổi. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hv-border);
  background: radial-gradient(720px 380px at 92% -15%, rgba(33, 139, 231, .18) 0%, rgba(33, 139, 231, 0) 70%),
    radial-gradient(620px 340px at -8% 115%, rgba(53, 178, 255, .14) 0%, rgba(53, 178, 255, 0) 70%),
    linear-gradient(180deg, #EEF6FD 0%, #FFFFFF 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(33, 139, 231, .22) 1px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.hero-row { position: relative; padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
/* Khối IP và widget mật khẩu cùng hàng, cao bằng nhau; màn hẹp (≤720px) xếp chồng. */
.hero-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 24px; align-items: stretch; }
.hero-text { display: flex; flex-direction: column; gap: 12px; }
.hero-text h1 { font-size: 38px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.hero-text p { font-size: 17px; line-height: 1.6; color: var(--hv-text-muted); }
/* Màu chữ dự phòng khi trình duyệt không hỗ trợ background-clip: text. */
.hero-accent { white-space: nowrap; color: #0959CF; background: linear-gradient(90deg, #0859CD 0%, #218BE7 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .pw, .myip { padding: 24px; border: 1px solid #DCE9F7; border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(8, 89, 205, .28), 0 1px 3px rgba(8, 89, 205, .06); }
/* Khối IP của khách */
.myip { min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--hv-surface); }
.myip-label { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--hv-text); }
.myip-label::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
/* Phần IP (.myip-main, .myip-rows) có margin auto để nằm giữa khoảng trống dư khi khối cao theo widget mật khẩu. */
.myip-main { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-block: auto; }
.myip-value { flex: 0 1 auto; min-width: 0; font-size: 40px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: #033694; overflow-wrap: anywhere; }
.myip-rows { display: flex; flex-direction: column; margin: auto 0; padding: 0; list-style: none; }
.myip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hv-border-row); }
.myip-row:first-child { border-top: 0; padding-top: 0; }
.myip-row:last-child { padding-bottom: 0; }
.myip-fam { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--hv-text-subtle); }
.myip-addr { min-width: 0; line-height: 1.25; color: #033694; overflow-wrap: anywhere; }
.myip-addr-4 { font-size: 36px; font-weight: 500; letter-spacing: -.01em; }
.myip-addr-6 { font-size: 22px; font-weight: 500; }
.myip-addr.is-none { font-family: var(--hv-font); font-size: 18px; font-weight: 400; color: var(--hv-text-subtle); }
/* Nhà mạng, vị trí, quốc gia, kiểu kết nối: JS điền và bỏ hidden khi có dữ liệu GeoIP. Icon nằm trong dt
   (dl chỉ cho dt/dd trong div) nên đặt tuyệt đối theo div. */
.myip-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; padding-top: 18px; border-top: 1px solid var(--hv-border-row); }
.myip-info[hidden] { display: none; }
.myip-info > div { position: relative; min-width: 0; min-height: 44px; padding-left: 56px; display: flex; flex-direction: column; justify-content: center; }
.myip-ico { position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #EAF4FD 0%, #D3E8FB 100%); color: #218BE7; }
.myip-info dt { font-size: 13px; color: var(--hv-text-subtle); }
.myip-info dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--hv-text); overflow-wrap: anywhere; }
.myip-cc { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #EAF4FD; color: #0959CF; font-family: var(--hv-mono); font-size: 12px; font-weight: 600; vertical-align: 1px; }

/* Widget mật khẩu */
.pw { flex: 1 1 340px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-color: var(--hv-border-chip); border-radius: 14px; box-shadow: 0 6px 24px rgba(14, 20, 32, .06); }
.pw h2 { font-size: 16px; font-weight: 600; }
.pw .badge { padding: 3px 10px; font-size: 12px; }
.pw-row { display: flex; gap: 8px; align-items: stretch; }
.pw-output { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--hv-border); border-radius: 10px; background: var(--hv-bg); font-size: 16px; word-break: break-all; line-height: 1.5; }
.pw-regen { width: 44px; flex-shrink: 0; padding: 0; border-radius: 10px; color: var(--hv-text-strong); }
.pw > .btn-primary { min-height: 44px; border-radius: 10px; font-size: 15px; }
.pw .field { gap: 6px; }
.pw .field > label { font-weight: 500; }
.pw-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.pw-opts label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: var(--hv-text-strong); cursor: pointer; }
.pw-opts input { width: 18px; height: 18px; margin: 0; accent-color: var(--hv-primary); }
.pw-page .pw { max-width: 520px; }

.home-main { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.catalog { display: flex; flex-direction: column; gap: 24px; }
.catalog-head { gap: 24px; }
.section-title { font-size: 26px; font-weight: 700; }
.catalog-head .search { flex: 0 1 360px; min-width: 220px; }
.catalog-head .search > .icon-search { left: 14px; top: 13px; }
.catalog-head .search .search-input { height: 44px; padding-left: 40px; font-size: 15px; }
.cat-tabs { gap: 8px; }
.cat-tabs [role="tab"] { margin-bottom: -1px; font-size: 15px; white-space: nowrap; }
.cat-tabs [role="tab"]:hover { color: var(--hv-link); }
/* Đang tìm: kết quả lấy từ mọi nhóm nên tab không còn đại diện cho nhóm nào. */
.is-searching .cat-tabs [role="tab"][aria-selected="true"] { border-bottom-color: transparent; color: var(--hv-text-muted); font-weight: 500; }
.empty { padding: 40px; border: 1px dashed var(--hv-border-input); border-radius: 12px; background: var(--hv-surface); color: var(--hv-text-muted); text-align: center; font-size: 15px; }
.category { display: flex; flex-direction: column; gap: 16px; }
.category-head { display: flex; align-items: center; gap: 12px; }
.category-head h3 { font-size: 20px; font-weight: 600; }
/* Có JS: tab đã nêu tên nhóm nên tiêu đề nhóm chỉ hiện khi kết quả tìm kiếm gộp nhiều nhóm. */
.js .category-head { display: none; }
.js .is-searching .category-head { display: flex; }
.js .category { gap: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.tool-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 18px; border: 1px solid var(--hv-border); border-radius: 14px; background: var(--hv-surface); color: var(--hv-text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.tool-card:hover { border-color: var(--hv-primary); box-shadow: 0 4px 14px rgba(28, 102, 250, .10); color: var(--hv-text); }
.tool-ico { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--hv-icon-bg); color: var(--hv-primary); }
.tool-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.tool-short { font-size: 13px; color: var(--hv-text-muted); line-height: 1.4; }
.card-icon { color: var(--hv-icon-muted); }

/* Banner WordPress Hosting. */
.promo { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 240px; padding: 36px 56px; border-radius: 20px; color: #FFFFFF;
  background: radial-gradient(520px 260px at 88% 20%, rgba(59, 130, 246, .55) 0%, rgba(59, 130, 246, 0) 70%),
    radial-gradient(420px 220px at 62% 120%, rgba(56, 189, 248, .30) 0%, rgba(56, 189, 248, 0) 70%),
    linear-gradient(115deg, var(--hv-navy) 0%, #0F2758 55%, #163A80 100%); }
.promo-rings { position: absolute; right: -60px; top: -90px; color: #A8C1FF; opacity: .18; pointer-events: none; }
.promo-body { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.promo-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .20); border-radius: 999px; background: rgba(255, 255, 255, .10); color: #CDDEFF; font-size: 13px; font-weight: 600; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hv-accent); }
.promo-title { font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.promo-title span { color: #A8C1FF; }
.promo-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.promo-perks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #E3ECFF; }
.tick { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: rgba(255, 212, 59, .16); color: var(--hv-accent); }
.promo-cta { position: relative; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.promo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 12px; background: var(--hv-accent); color: var(--hv-navy); font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(255, 212, 59, .25); }
.promo-btn:hover { background: #FFDD66; color: var(--hv-navy); }
.promo-note { font-size: 12.5px; color: #A8C1FF; }

/* ---------- Màn hình hẹp (mockup 390px) ---------- */
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header-row { min-height: 60px; padding: 0 8px 0 16px; gap: 8px; }
  .brand { gap: 8px; }
  .brand img { height: 30px; }
  .brand-tag { padding: 2px 7px; font-size: 12px; }
  .header-search, .header-right { display: none; }
  .mobile-actions { display: flex; }
  .page-tool { padding: 20px 16px 32px; gap: 18px; }
  /* Menu mobile thay cho sidebar. */
  .sidebar { display: none; }
  .tool-main { flex-basis: 100%; gap: 18px; }
  .page-head { gap: 6px; }
  .page-head h1 { font-size: 26px; }
  .lead { font-size: 15px; line-height: 1.55; }
  .card { padding: 16px; }
  .chips a.chip { min-height: 40px; }
  .hero-row { padding-top: 32px; padding-bottom: 40px; gap: 24px; }
  .hero-cards { grid-template-columns: minmax(0, 1fr); }
  .hero-text h1 { font-size: 28px; }
  .hero-text p { font-size: 16px; }
  .myip, .hero .pw { padding: 18px; }
  .myip-value, .myip-addr-4 { font-size: 28px; }
  .myip-info { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .myip-info > div { padding-left: 46px; min-height: 36px; }
  .myip-ico { width: 36px; height: 36px; margin-top: -18px; border-radius: 10px; }
  .myip-addr-6 { font-size: 18px; }
  .myip-main .btn { width: 100%; }
  .pw, .pw-page .pw { flex-basis: 100%; max-width: none; padding: 16px; }
  .home-main { padding-top: 24px; padding-bottom: 32px; gap: 28px; }
  .catalog { gap: 16px; }
  .catalog-head { gap: 12px; }
  .section-title { font-size: 22px; }
  .catalog-head .search { flex-basis: 100%; }
  /* Sáu tab không vừa một hàng: cuộn ngang trong thanh tab, không làm tràn trang. */
  .cat-tabs { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .cat-tabs [role="tab"] { margin-bottom: 0; flex-shrink: 0; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { padding: 14px 16px; }
  .promo { flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; padding: 28px 20px; border-radius: 16px; }
  .promo-title { font-size: 26px; }
  .promo-perks { grid-template-columns: 1fr; gap: 10px; }
  .promo-btn { width: 100%; }
  .footer-inner { padding: 36px 16px 0; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { padding: 16px 0 20px; }
}
