/*
Theme Name: Vũ – Dịch vụ Website & IT
Theme URI: https://letuanvu.vn
Author: Lê Tuấn Vũ
Description: Theme nhẹ cho letuanvu.vn – trang dịch vụ freelance Website, VPS, sửa lỗi WordPress, chatbot AI. Giao diện kiểu Facebook, ô tìm dịch vụ, bật/tắt nhận việc, form nhận yêu cầu, nút Zalo/Gọi/Messenger, SEO cơ bản.
Version: 2.0.2
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: letuanvu-vn
*/

/* ==========================================================
   Giao diện kiểu facebook.com: nền xám nhạt, khối trắng bo 8px,
   xanh #0866FF, chữ Segoe UI 15px. Mọi class có tiền tố "v-".
   ========================================================== */
:root {
  --v-bg: #f0f2f5; --v-card: #ffffff; --v-ink: #050505; --v-text: #1c1e21; --v-muted: #65676b;
  --v-line: #ced0d4; --v-line-soft: #e4e6eb; --v-hover: #f2f2f2; --v-btn2: #e4e6eb;
  --v-brand: #0866ff; --v-brand-ink: #0064d1; --v-brand-soft: #ebf5ff;
  --v-ok: #31a24c; --v-ok-soft: #e7f3ea; --v-dot-off: #8a8d91;
  --v-warn: #fff4d6; --v-warn-line: #f7c948; --v-warn-ink: #5c4400;
  --v-hot: #f7b928;
  --v-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  --v-shadow-lg: 0 12px 28px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .1);
  --v-radius: 8px;
  --v-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --v-bg: #18191a; --v-card: #242526; --v-ink: #e4e6eb; --v-text: #e4e6eb; --v-muted: #b0b3b8;
    --v-line: #3e4042; --v-line-soft: #3e4042; --v-hover: #3a3b3c; --v-btn2: #3a3b3c;
    --v-brand: #2d88ff; --v-brand-ink: #4599ff; --v-brand-soft: #263951;
    --v-ok-soft: #1f3324; --v-warn: #3a3220; --v-warn-line: #8a6d1d; --v-warn-ink: #f3dc9b;
    --v-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--v-font); font-size: 15px; line-height: 1.34; color: var(--v-text); background: var(--v-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { color: var(--v-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(22px, 3.4vw, 26px); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
a { color: var(--v-brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }
mark { background: #fff1a8; color: #050505; border-radius: 3px; padding: 0 1px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.v-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; width: auto; height: auto; clip: auto; }
:focus-visible { outline: 3px solid var(--v-brand); outline-offset: 2px; }
.v-btn svg, .v-icon svg, .v-rows svg { width: 20px; height: 20px; flex: none; }
.v-muted, .v-sub { color: var(--v-muted); }
.v-small, .v-sm { font-size: 13px; }
.v-center { text-align: center; }

/* ---------- Nút kiểu Facebook ---------- */
.v-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.v-center .v-btns { justify-content: center; }
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 6px; border: 0; font: 600 15px/1.2 var(--v-font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: filter .12s; }
.v-btn svg { width: 18px; height: 18px; }
.v-btn:hover { filter: brightness(.95); }
.v-btn.primary, .v-btn.cta { background: var(--v-brand); color: #fff !important; }
.v-btn.ghost, .v-btn.gray { background: var(--v-btn2); color: var(--v-ink) !important; }
.v-btn.soft { background: var(--v-brand-soft); color: var(--v-brand-ink) !important; }
.v-btn.white { background: #fff; color: #050505 !important; }
.v-btn.line-white { background: rgba(255, 255, 255, .16); color: #fff !important; }
.v-btn.sm { min-height: 32px; font-size: 14px; padding: 0 12px; }
.v-btn.xs { min-height: 28px; font-size: 13px; padding: 0 10px; }
.v-btn.block { display: flex; width: 100%; }
.v-link { font-weight: 600; }

/* ---------- Thanh trên cùng ---------- */
.v-top { position: sticky; top: 0; z-index: 50; height: 56px; background: var(--v-card); box-shadow: var(--v-shadow); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 0 16px; gap: 8px; }
.admin-bar .v-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .v-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .v-top { top: 0; } }
.v-top-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--v-brand); color: #fff !important; display: grid; place-items: center; font: italic 700 18px Georgia, "Times New Roman", serif; flex: none; text-decoration: none !important; }
.v-gsearch { display: flex; align-items: center; gap: 6px; background: var(--v-btn2); border-radius: 999px; height: 40px; padding: 0 12px; width: 240px; max-width: 100%; color: var(--v-muted); margin: 0; }
.v-gsearch svg { width: 18px; height: 18px; flex: none; }
.v-gsearch input { border: 0; background: none; outline: none; flex: 1; font: 15px var(--v-font); color: var(--v-ink); min-width: 0; padding: 0; }
.v-gsearch input::placeholder { color: var(--v-muted); }
.v-nav { display: flex; height: 56px; }
.v-nav a { display: flex; align-items: center; justify-content: center; padding: 0 12px; color: var(--v-muted); font-weight: 600; font-size: 15px; text-decoration: none !important; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.v-nav a:hover { color: var(--v-ink); background: var(--v-hover); }
.v-nav a[aria-current="page"] { color: var(--v-brand); border-bottom-color: var(--v-brand); background: none; }
.v-top-r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.v-iconbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--v-btn2); display: none; place-items: center; color: var(--v-ink) !important; border: 0; cursor: pointer; flex: none; text-decoration: none !important; list-style: none; }
.v-iconbtn svg { width: 20px; height: 20px; }
.v-menu { display: none; position: static; } /* khung menu bám theo thanh trên cùng (.v-top), không theo nút → không lệch khỏi màn hình */
.v-menu > summary { list-style: none; }
.v-menu > summary::-webkit-details-marker { display: none; }
.v-menu-panel { position: absolute; right: 12px; top: calc(100% + 6px); width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 80px); overflow-y: auto; background: var(--v-card); border-radius: 8px; box-shadow: var(--v-shadow-lg); padding: 8px; display: grid; }
.v-menu-panel a { color: var(--v-ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 6px; }
.v-menu-panel a:hover { background: var(--v-hover); }
.v-menu-panel a[aria-current="page"] { color: var(--v-brand); background: var(--v-brand-soft); }
.v-menu-panel .v-btn { margin-top: 6px; }
@media (max-width: 1180px) { .v-gsearch { width: 40px; padding: 0; justify-content: center; } .v-gsearch input { display: none; } .v-nav a { padding: 0 9px; font-size: 14px; } }
@media (max-width: 960px) {
  .v-top { grid-template-columns: minmax(0, 1fr) auto; }
  .v-nav, .v-gsearch { display: none; }
  .v-iconbtn, .v-menu { display: grid; }
  .v-top-r .v-btn { padding: 0 12px; }
}
@media (max-width: 380px) { .v-top-r .v-btn .t { display: none; } }
/* Điện thoại đã có thanh dưới đáy (Gọi · Messenger · Nhắn Zalo · Bảng giá) → bỏ nút Nhắn Zalo trên thanh đầu trang */
@media (max-width: 600px) { .v-top-r > .v-btn.primary { display: none; } }

/* Dải "đang kín lịch" ở các trang con */
.v-busybar { display: none; background: var(--v-warn); color: var(--v-warn-ink); border-bottom: 1px solid var(--v-warn-line); padding: 10px 16px; text-align: center; font-size: 14px; }
.v-busy .v-busybar { display: block; }

/* ---------- Khối nội dung (trang con) ---------- */
.v-section { padding: 16px 16px 0; }
.v-section.soft { background: none; }
.v-section:last-child { padding-bottom: 24px; }
.v-wrap { max-width: 1100px; margin: 0 auto; }
.v-narrow { max-width: 780px; margin: 0 auto; }
.v-head { margin: 8px 0 14px; }
.v-head h2 { margin-bottom: 4px; }
.v-head p { color: var(--v-muted); margin: 0; }
.v-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--v-brand-ink); background: var(--v-brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.v-grid { display: grid; gap: 12px; }
.v-grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.v-grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.v-grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Đầu trang con: khối trắng như đầu Fanpage */
.v-hero { background: var(--v-card); box-shadow: var(--v-shadow); padding: 28px 16px 24px; }
.v-hero .lead { font-size: 15px; color: var(--v-muted); max-width: 640px; }
.v-hero.page .v-narrow { text-align: center; }
.v-hero.page .lead { margin: 0 auto; }
.v-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; max-width: 1100px; margin: 0 auto; }
.v-avatar { width: 168px; aspect-ratio: 1; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, #0866ff, #0a2a8a); margin: 0 auto; position: relative; }
.v-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--v-card); display: block; }
.v-checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.v-checks li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--v-ink); }
.v-checks li::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--v-ok-soft); color: var(--v-ok); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.v-crumbs { font-size: 13px; color: var(--v-muted); margin-bottom: 8px; }
.v-crumbs a { color: var(--v-muted); }
@media (max-width: 760px) { .v-hero-grid { grid-template-columns: 1fr; text-align: center; } .v-hero-grid > .v-hero-photo { order: -1; } .v-avatar { width: 120px; } .v-hero-grid .v-btns, .v-hero-grid .v-checks { justify-content: center; } }

/* Mục lục (tab) trong trang con */
.v-toc { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.v-toc a { background: var(--v-btn2); color: var(--v-ink); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.v-toc a:hover { background: var(--v-brand-soft); color: var(--v-brand-ink); }
@media (max-width: 600px) { .v-toc { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; } .v-toc::-webkit-scrollbar { display: none; } .v-toc a { white-space: nowrap; } }

/* Thẻ */
.v-card { background: var(--v-card); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 16px; display: flex; flex-direction: column; position: relative; min-width: 0; }
.v-card p { color: var(--v-muted); }
.v-card ul { margin: 0 0 12px; }
.v-card ul li { margin-bottom: 4px; }
.v-card > .v-btn, .v-card > .v-link { margin-top: auto; align-self: flex-start; }
.v-card.featured { box-shadow: 0 0 0 2px var(--v-brand); }
.v-badge { position: absolute; top: -10px; left: 14px; background: var(--v-hot); color: #3d2a00; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.v-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--v-brand-soft); color: var(--v-brand); margin-bottom: 12px; flex: none; }
.v-from { font-weight: 600; color: var(--v-ink); margin: 0 0 12px; font-size: 14px; }
.v-from b { color: var(--v-brand-ink); }
.v-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v-tags li { background: var(--v-btn2); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--v-ink); }

/* Trang Dịch vụ: mỗi nhóm là 1 khối trắng */
.v-svc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; background: var(--v-card); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 20px; }
.v-svc h2 { display: flex; align-items: center; gap: 10px; }
.v-svc h2 .v-icon { margin: 0; }
.v-svc .v-card { box-shadow: none; background: var(--v-bg); }
.v-svc .v-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--v-muted); margin-top: 4px; }
@media (max-width: 860px) { .v-svc { grid-template-columns: 1fr; gap: 14px; } }

/* Lỗi hay gặp, bước làm việc */
.v-issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 8px; }
.v-issue { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--v-card); border-radius: 8px; box-shadow: var(--v-shadow); padding: 12px 14px; text-decoration: none !important; color: var(--v-ink); font-weight: 600; }
.v-issue:hover { background: var(--v-hover); }
.v-issue span { color: var(--v-brand-ink); white-space: nowrap; font-size: 14px; }
.v-steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.v-steps li { counter-increment: s; background: var(--v-card); border-radius: 8px; box-shadow: var(--v-shadow); padding: 12px; }
.v-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--v-brand); color: #fff; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.v-steps h3 { margin-bottom: 4px; font-size: 15px; }
.v-steps p { margin: 0; color: var(--v-muted); font-size: 13px; }
.v-box .v-steps li { background: var(--v-bg); box-shadow: none; }
.v-note { background: var(--v-warn); border: 1px solid var(--v-warn-line); border-radius: 8px; padding: 12px 14px; color: var(--v-warn-ink); }
.v-note b { color: inherit; }
.v-guarantee { display: flex; gap: 10px; align-items: center; background: var(--v-ok-soft); border-radius: 8px; padding: 12px; color: var(--v-ink); margin-top: 12px; }
.v-guarantee svg { width: 22px; height: 22px; color: var(--v-ok); flex: none; }

/* ---------- Bảng giá ---------- */
.v-price-group { margin-bottom: 16px; background: var(--v-card); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 16px; }
.v-price-group > h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-price-group > h2 .v-badge { position: static; }
.v-price-group > p { color: var(--v-muted); }
.v-price-group .v-card { box-shadow: none; background: var(--v-bg); }
.v-table-wrap { border: 1px solid var(--v-line-soft); border-radius: 8px; overflow: hidden; }
.v-price { width: 100%; border-collapse: collapse; font-size: 14px; }
.v-price th, .v-price td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--v-line-soft); vertical-align: top; }
.v-price thead th { background: var(--v-bg); color: var(--v-muted); font-size: 13px; font-weight: 600; }
.v-price tbody tr:last-child td { border-bottom: 0; }
.v-price tbody tr:hover td { background: var(--v-hover); }
.v-price td:first-child { font-weight: 600; color: var(--v-ink); width: 26%; }
.v-price td.money { font-weight: 700; color: var(--v-ink); white-space: nowrap; }
.v-price td.time { white-space: nowrap; color: var(--v-muted); }
.v-price small { display: block; color: var(--v-muted); font-weight: 400; white-space: normal; }
@media (max-width: 760px) {
  .v-table-wrap { border: 0; }
  .v-price, .v-price tbody, .v-price tr, .v-price td { display: block; width: 100% !important; }
  .v-price thead { display: none; }
  .v-price tr { background: var(--v-bg); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
  .v-price tbody tr:hover td { background: none; }
  .v-price td { border: 0; padding: 2px 0; }
  .v-price td:first-child { font-size: 15px; margin-bottom: 2px; }
  .v-price td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--v-muted); font-size: 13px; }
  .v-price td.money, .v-price td.time { white-space: normal; }
}
.v-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.v-plan .price { font-size: 22px; font-weight: 700; color: var(--v-ink); margin: 4px 0 10px; }
.v-plan .price small { font-size: 14px; color: var(--v-muted); font-weight: 600; }
.v-plan ul { list-style: none; padding: 0; }
.v-plan li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.v-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--v-ok); font-weight: 700; }
.v-terms { counter-reset: t; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.v-terms li { counter-increment: t; padding: 10px 12px 10px 48px; background: var(--v-bg); border-radius: 8px; position: relative; }
.v-terms li::before { content: counter(t); position: absolute; left: 12px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--v-brand-soft); color: var(--v-brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- Dự án / bài viết ---------- */
.v-case { padding: 0; overflow: hidden; }
.v-case .thumb { aspect-ratio: 16/9; background: var(--v-brand-soft); display: grid; place-items: center; color: var(--v-brand); font-weight: 600; overflow: hidden; }
.v-case .thumb svg { width: 40px; height: 40px; }
.v-case .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-case .body { padding: 12px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.v-case .meta { font-size: 13px; font-weight: 600; color: var(--v-brand-ink); margin-bottom: 4px; }
.v-case h3 a { color: var(--v-ink); }
.v-case.placeholder { box-shadow: inset 0 0 0 1px var(--v-line); background: none; }
.v-case.placeholder .thumb { color: var(--v-muted); background: var(--v-btn2); }

/* ---------- Hỏi đáp ---------- */
.v-faq { background: var(--v-card); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 8px; }
.v-box .v-faq { box-shadow: none; padding: 0; }
.v-faq details + details { border-top: 1px solid var(--v-line-soft); }
.v-faq summary { cursor: pointer; list-style: none; padding: 12px 36px 12px 8px; font-weight: 600; color: var(--v-ink); position: relative; border-radius: 6px; }
.v-faq summary:hover { background: var(--v-hover); }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--v-muted); border-bottom: 2px solid var(--v-muted); transform: translateY(-70%) rotate(45deg); }
.v-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.v-faq details p { padding: 0 8px 12px; color: var(--v-muted); margin: 0; }

/* ---------- Dải kêu gọi ---------- */
.v-band { background: var(--v-brand); color: #e7f0ff; border-radius: var(--v-radius); padding: 24px 16px; text-align: center; }
.v-band h2 { color: #fff; }
.v-band p { color: #e7f0ff; max-width: 620px; margin-left: auto; margin-right: auto; }
.v-band .v-btn.cta, .v-band .v-btn.primary { background: #fff; color: #050505 !important; }

/* ---------- Liên hệ + form ---------- */
.v-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .v-contact { grid-template-columns: minmax(0, 1fr); } }
.v-channels { display: grid; gap: 4px; background: var(--v-card); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 8px; }
.v-channel { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; text-decoration: none !important; color: var(--v-ink); }
a.v-channel:hover { background: var(--v-hover); }
.v-channel .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.v-channel .ic svg { width: 20px; height: 20px; }
.v-channel b { display: block; font-weight: 600; }
.v-channel span { color: var(--v-muted); font-size: 13px; word-break: break-word; }
.ic.zalo { background: #0068ff; } .ic.phone { background: #31a24c; } .ic.mess { background: linear-gradient(135deg, #0a7cff, #a033ff); } .ic.mail { background: #e4572e; } .ic.map { background: #8a8d91; }
.v-form { display: grid; gap: 10px; }
.v-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-form label { display: grid; gap: 4px; font-weight: 600; color: var(--v-muted); font-size: 13px; }
.v-form input, .v-form select, .v-form textarea { width: 100%; font: 15px var(--v-font); color: var(--v-ink); background: var(--v-bg); border: 1px solid transparent; border-radius: 6px; padding: 10px 12px; }
.v-form input:focus, .v-form select:focus, .v-form textarea:focus { outline: none; border-color: var(--v-brand); background: var(--v-card); }
.v-form textarea { min-height: 110px; resize: vertical; }
.v-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v-form .v-btn { justify-self: start; }
.v-form .privacy { font-size: 13px; color: var(--v-muted); margin: 0; }
.v-form-busy { background: var(--v-warn); color: var(--v-warn-ink); border-radius: 6px; padding: 8px 10px; font-size: 14px; }
.v-card p.v-form-busy, .v-box p.v-form-busy { color: var(--v-warn-ink); }
.v-form-off { text-align: center; padding: 8px 0; }
.v-alert { border-radius: 6px; padding: 10px 12px; font-weight: 600; margin-bottom: 12px; }
.v-alert.ok { background: var(--v-ok-soft); color: var(--v-ok); }
.v-alert.err { background: #ffebe9; color: #c62828; }
@media (max-width: 560px) {
  .v-form .row { grid-template-columns: 1fr; }
  .v-channels { grid-template-columns: 1fr 1fr; }
  .v-channel { flex-direction: column; align-items: flex-start; gap: 6px; }
  .v-channel .ic { width: 34px; height: 34px; }
  .v-channel .ic svg { width: 18px; height: 18px; }
}

/* ---------- Trang thường / bài viết ---------- */
.v-page { padding: 16px; }
.v-page .v-entry { background: var(--v-card); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 20px; }
.v-entry { font-size: 15px; line-height: 1.5; }
.v-entry h2 { margin-top: 1.4em; }
.v-entry img { border-radius: 8px; }
.v-entry pre, .v-entry code { background: var(--v-bg); border-radius: 6px; }
.v-entry pre { padding: 12px; overflow-x: auto; }
.v-entry code { padding: 2px 6px; font-size: 14px; }
.v-entry blockquote { border-left: 4px solid var(--v-brand); margin: 1em 0; padding: 4px 0 4px 14px; color: var(--v-muted); }
.v-meta { color: var(--v-muted); font-size: 13px; margin-bottom: 16px; }
.v-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* =========================================================
   TRANG CHỦ KIỂU FANPAGE
   ========================================================= */
.v-fp-head { background: var(--v-card); box-shadow: var(--v-shadow); }
.v-fp-in { max-width: 1100px; margin: 0 auto; }
.v-cover { aspect-ratio: 2056 / 615; background: #0b3aa8; border-radius: 0 0 8px 8px; overflow: hidden; }
.v-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-who { display: flex; align-items: center; gap: 16px; padding: 16px 32px; }
.v-ava { width: 148px; height: 148px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #0866ff, #0a2a8a); position: relative; flex: none; }
.v-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--v-card); }
.v-ava .st { position: absolute; right: 6px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--v-ok); border: 4px solid var(--v-card); }
.v-busy .v-ava .st { background: var(--v-dot-off); }
.v-who-txt { flex: 1; min-width: 0; }
.v-who-txt h1 { margin: 0; }
.v-tagline { color: var(--v-muted); margin-top: 4px; }
.v-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--v-ok-soft); color: var(--v-ok); }
.v-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.v-busy .v-status { background: var(--v-btn2); color: var(--v-muted); }
.v-who-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.v-ptabs { display: flex; gap: 4px; border-top: 1px solid var(--v-line-soft); margin: 0 32px; overflow-x: auto; scrollbar-width: none; }
.v-ptabs::-webkit-scrollbar { display: none; }
.v-ptabs a { padding: 0 14px; height: 52px; display: flex; align-items: center; font-weight: 600; color: var(--v-muted); white-space: nowrap; text-decoration: none !important; border-bottom: 3px solid transparent; }
.v-ptabs a:hover { color: var(--v-ink); background: var(--v-hover); }
.v-ptabs a.on { color: var(--v-brand); border-bottom-color: var(--v-brand); background: none; }

.v-layout { max-width: 1100px; margin: 16px auto 0; padding: 0 16px 8px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.v-side { position: sticky; top: 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.admin-bar .v-side { top: 104px; }
.v-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.v-side > *, .v-feed > * { min-width: 0; }
.v-box { background: var(--v-card); border-radius: var(--v-radius); box-shadow: var(--v-shadow); padding: 16px; }
.v-box > h2 { font-size: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-box > h2 a { font-size: 15px; font-weight: 400; }
.v-intro > p { text-align: center; }
.v-rows { display: grid; gap: 12px; margin: 14px 0; padding: 0; list-style: none; }
.v-rows li { display: flex; gap: 12px; align-items: flex-start; }
.v-rows li svg { color: var(--v-muted); margin-top: 1px; }
.v-rows .ok { color: var(--v-ok); font-weight: 600; }
.v-busy .v-rows .ok { color: var(--v-muted); }
.v-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-quick a { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; background: var(--v-bg); color: var(--v-ink); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.v-quick a:hover { background: var(--v-hover); }
.v-quick .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--v-brand-soft); color: var(--v-brand); flex: none; }
.v-quick .ic svg { width: 18px; height: 18px; }
.v-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.v-ticks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--v-ok-soft); color: var(--v-ok); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.v-busy-note { display: none; background: var(--v-warn); border: 1px solid var(--v-warn-line); color: var(--v-warn-ink); border-radius: 8px; padding: 14px 16px; gap: 12px; align-items: flex-start; }
.v-busy-note svg { width: 22px; height: 22px; flex: none; }
.v-busy .v-busy-note { display: flex; }
.v-busy-note b { display: block; font-size: 16px; margin-bottom: 2px; }

/* Ô tìm dịch vụ */
.v-fbox { display: flex; align-items: center; gap: 8px; background: var(--v-btn2); border-radius: 999px; padding: 0 14px; height: 44px; margin: 12px 0 10px; color: var(--v-muted); }
.v-fbox svg { width: 20px; height: 20px; flex: none; }
.v-fbox input { border: 0; background: none; outline: none; flex: 1; font: 15px var(--v-font); color: var(--v-ink); min-width: 0; padding: 0; }
.v-fbox input::-webkit-search-cancel-button { display: none; }
.v-fbox input::placeholder { color: var(--v-muted); }
.v-fclear { border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--v-muted); padding: 4px; display: none; line-height: 1; }
.v-fbox.has .v-fclear { display: block; }
.v-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.v-chips::-webkit-scrollbar { display: none; }
.v-chip { border: 0; cursor: pointer; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--v-btn2); font: 600 14px var(--v-font); color: var(--v-ink); }
.v-chip.on { background: var(--v-brand-soft); color: var(--v-brand-ink); }
.v-fhint { font-size: 13px; color: var(--v-muted); margin: 10px 0 4px; }
.v-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 8px; }
.v-item .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--v-brand-soft); color: var(--v-brand); }
.v-item:hover { background: var(--v-hover); }
.v-item .ic svg { width: 20px; height: 20px; }
.v-item .ic.g-vps { background: #e6f4ea; color: #1e8e3e; }
.v-item .ic.g-web { background: #f3e8fd; color: #8430ce; }
.v-item .ic.g-ai { background: #fef0e5; color: #d56e0c; }
.v-item .ic.g-thang { background: #e5f6f8; color: #0b8393; }
.v-item .ic.g-khac { background: var(--v-btn2); color: var(--v-muted); }
@media (prefers-color-scheme: dark) { .v-item .ic.ic { background: var(--v-btn2); } }
.v-item .nm { font-weight: 600; color: var(--v-ink); }
.v-item .ds { font-size: 13px; color: var(--v-muted); margin-top: 2px; }
.v-item .pr { text-align: right; }
.v-item .pr b { display: block; color: var(--v-ink); white-space: nowrap; }
.v-item .pr .v-btn { margin-top: 6px; }
.v-fempty { text-align: center; padding: 20px 10px; color: var(--v-muted); }
.v-fmore { margin-top: 8px; }

/* 4 nhóm việc */
.v-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v-grp { border: 1px solid var(--v-line-soft); border-radius: 8px; padding: 14px; display: flex; gap: 12px; color: var(--v-ink) !important; text-decoration: none !important; position: relative; }
.v-grp:hover { background: var(--v-hover); }
.v-grp .v-icon { margin: 0; }
.v-grp h3 { font-size: 15px; margin: 0; }
.v-grp p { margin: 4px 0 6px; font-size: 13px; color: var(--v-muted); }
.v-grp .from { font-size: 13px; font-weight: 600; color: var(--v-brand-ink); }
.v-grp .hot { position: absolute; top: -9px; right: 10px; background: var(--v-hot); color: #3d2a00; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }

/* Bài kiểu Facebook */
.v-post-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.v-post-h img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.v-post-h b { display: block; color: var(--v-ink); }
.v-post-h span { font-size: 13px; color: var(--v-muted); }
.v-post-box { background: var(--v-bg); border-radius: 8px; padding: 12px; margin-top: 10px; }
.v-post-box ul { margin: 0; padding-left: 18px; }

@media (max-width: 900px) {
  .v-layout { grid-template-columns: minmax(0, 1fr); }
  .v-side { position: static; }
  .v-who { flex-direction: column; align-items: center; text-align: center; padding: 14px 16px 12px; }
  .v-ava { width: 136px; height: 136px; }
  .v-who-btns { justify-content: center; }
  .v-ptabs { margin: 0 8px; }
  .v-cover { border-radius: 0; }
}
@media (max-width: 600px) {
  /* Điện thoại: ô tìm dịch vụ lên ngay dưới đầu trang */
  .v-layout { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 8px; gap: 10px; margin-top: 10px; }
  .v-side, .v-feed { display: contents; }
  .v-busy-note { order: 0; } #tim { order: 1; } .v-intro { order: 2; } #nhom { order: 3; } .v-quickbox { order: 4; } #cach-lam { order: 5; }
  .v-cambox { order: 6; } #agency { order: 7; } #hoi-dap { order: 8; } #form { order: 9; }
  .v-box, .v-busy-note { border-radius: 0; }
  .v-busy-note { border-left: 0; border-right: 0; }
  .v-groups { grid-template-columns: minmax(0, 1fr); }
  .v-who-btns .v-btn { flex: 1; }
  .v-item { grid-template-columns: 36px minmax(0, 1fr); }
  .v-item .ic { width: 36px; height: 36px; }
  .v-item .pr { grid-column: 2; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .v-item .pr .v-btn { margin: 0; }
}

/* ---------- Chân trang ---------- */
.v-footer { color: var(--v-muted); padding: 24px 16px; font-size: 13px; border-top: 1px solid var(--v-line-soft); margin-top: 16px; }
.v-footer a { color: var(--v-muted); }
.v-footer a:hover { color: var(--v-ink); }
.v-footer h3 { color: var(--v-ink); font-size: 15px; margin-bottom: 8px; }
.v-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.v-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 860px) { .v-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .v-foot-grid { grid-template-columns: 1fr; } }
.v-brand { display: flex; align-items: center; gap: 10px; color: var(--v-ink) !important; font-weight: 700; text-decoration: none !important; margin-bottom: 10px; }
.v-brand small { display: block; font-weight: 400; color: var(--v-muted); font-size: 13px; }
.v-foot-bottom { max-width: 1100px; margin: 20px auto 0; padding-top: 14px; border-top: 1px solid var(--v-line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Nút liên hệ nổi + thanh dưới điện thoại ---------- */
.v-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.v-float a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); text-decoration: none !important; transition: transform .12s; }
.v-float a:hover { transform: scale(1.06); }
.v-float a svg { width: 24px; height: 24px; }
.v-float .zalo { background: #0068ff; font-weight: 700; font-size: 12px; }
.v-float .phone { background: #31a24c; }
.v-float .mess { background: linear-gradient(135deg, #0a7cff, #a033ff); }
.v-bar { display: none; }
@media (max-width: 600px) {
  .v-float { display: none; }
  .v-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--v-card); border-top: 1px solid var(--v-line-soft); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .v-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none !important; font-weight: 600; font-size: 12px; color: var(--v-muted); padding: 4px; border-radius: 8px; }
  .v-bar a svg { width: 22px; height: 22px; }
  .v-bar a.main { background: var(--v-brand); color: #fff; }
  body { padding-bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Ô nhập trên máy cảm ứng / điện thoại: chữ ≥16px, nếu không iPhone tự phóng to trang khi bấm vào ô.
   ĐỂ CUỐI FILE: mọi quy tắc "font: 15px …" của ô nhập viết ở trên sẽ đè mất nếu đặt sớm hơn. */
@media (pointer: coarse), (max-width: 960px) {
  input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), select, textarea,
  .v-form input, .v-form select, .v-form textarea, .v-fbox input, .v-gsearch input { font-size: 16px !important; }
}
