/* Web con: phần thêm trên nền site.css (giống vpsvultr.com). Màu thương hiệu lấy từ /brand.css của từng shop. */
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.05rem; }
.logo.light .logo-mark { background: #fff; color: var(--brand-700); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
.notice { padding: 14px 18px; border-radius: var(--r-sm); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); font-weight: 500; }
.crumb { font-size: .875rem; color: var(--ink-2); } .crumb a { color: var(--ink-2); }

/* hero: khung minh hoạ danh sách dịch vụ */
.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 20px 50px rgba(29,21,48,.12); display: grid; gap: 10px; }
.hp-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); }
.hp-tag { font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.hp-note { margin: 4px 2px 0; font-size: .875rem; color: var(--ink-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.dot.ok { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; } .dot.warn { background: #d97706; box-shadow: 0 0 0 3px #fef3c7; } .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px #fee2e2; }

/* lưới sản phẩm trang chủ */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s; }
.pcard:hover { border-color: var(--brand); }
.pcard p { margin: 0; color: var(--ink-2); font-size: .9375rem; flex: 1; }
.pcard-price { font-weight: 600; color: var(--brand-700); }
.pcard-tag { align-self: flex-start; font-weight: 700; font-size: 1.0625rem; padding-left: 12px; border-left: 4px solid var(--brand); }
.pc-cloudvps { border-color: #2563eb; } .pc-dcpro { border-color: var(--brand); } .pc-proxy { border-color: #0891b2; }
.pc-residential { border-color: #16a34a; } .pc-proxy24h { border-color: #d97706; } .pc-vnproxy { border-color: #dc2626; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 10px; } .contact-list li { display: flex; gap: 16px; } .contact-list span { min-width: 110px; color: var(--ink-2); }

/* đăng nhập / đăng ký */
.auth-wrap { background: var(--bg-alt); padding: 56px 20px 72px; min-height: 60vh; }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; }
.auth-card .form { max-width: none; }
.auth-card .btn { width: 100%; }
.auth-alt { margin: 18px 0 0; text-align: center; color: var(--ink-2); font-size: .9375rem; }
.qr-box svg { width: 180px; height: 180px; display: block; border: 1px solid var(--line); border-radius: 10px; }
.secret { word-break: break-all; background: var(--bg-alt); border: 1px dashed var(--line); padding: 6px 10px; border-radius: 6px; display: inline-block; }

/* khu vực tài khoản */
.dash { max-width: 1200px; margin: 0 auto; padding: 28px 20px 96px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; min-height: 70vh; }
.side { position: sticky; top: 88px; align-self: start; display: grid; gap: 18px; }
.side-bal { background: var(--dark); color: #fff; border-radius: var(--r); padding: 16px 18px; }
.side-bal small { color: #cfc9e6; display: block; } .side-bal b { font-size: 1.4rem; display: block; margin: 2px 0 10px; }
.side-bal .btn { width: 100%; min-height: 38px; }
.side-bal { background: linear-gradient(135deg, var(--brand-700, #5b21b6), var(--brand, #7c3aed)); box-shadow: 0 12px 28px rgba(76,29,149,.22); }
.side-bal small { color: rgba(255,255,255,.78); }
.side-nav { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.side-group { display: grid; gap: 1px; padding: 4px 0 6px; }
.side-group + .side-group { border-top: 1px solid var(--line); padding-top: 10px; }
.side-nav h3 { font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); font-weight: 600; margin: 2px 10px 6px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.side-nav a .ni { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a:hover { background: var(--bg-alt); }
.side-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.side-nav a[aria-current="page"] .ni { stroke: var(--brand-600); }
.side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-600); }
.side-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.side-out { border-top: 1px solid var(--line); border-radius: 0 0 9px 9px !important; margin-top: 2px; color: var(--ink-2) !important; }
.side-out:hover { color: var(--bad, #b91c1c) !important; } .side-out:hover .ni { stroke: currentColor; }
.content > h1 { font-size: 1.6rem; margin-bottom: 18px; }
.content .panel + .panel, .content .panel + h2, .content .kpis + .panel, .content .table-wrap + .panel { margin-top: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty .btn { margin-top: 12px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist a { margin-left: auto; font-size: .875rem; }
.topup-qr { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.topup-qr img { width: 220px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 640px) { .topup-qr { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; } .kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 8px; font-size: .8125rem; cursor: pointer; margin-left: 8px; }
.margin-grid { display: grid; grid-template-columns: 1fr 130px; gap: 10px 16px; align-items: center; max-width: 520px; }
.margin-grid input { text-align: right; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: -3px; border: 1px solid var(--line); }
input[type=color] { width: 60px; height: 46px; padding: 4px; border: 1px solid #d6d1e6; border-radius: var(--r-sm); background: #fff; }
textarea { width: 100%; padding: 10px 14px; border: 1px solid #d6d1e6; border-radius: var(--r-sm); font: inherit; }
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; padding-top: 18px; }
  .side { position: static; }
  .side .side-nav { display: none; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; place-items: center; min-height: 48px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .8125rem; }
  .bottom-nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
  .side-bal { display: flex; align-items: center; gap: 12px; } .side-bal b { margin: 0; font-size: 1.15rem; } .side-bal .btn { width: auto; margin-left: auto; }
  .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; }
  .resp-table thead { display: none; } .resp-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .resp-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 14px; }
  .resp-table td::before { content: attr(data-l); color: var(--ink-2); font-weight: 500; }
}
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.admin-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
dialog { border: 0; border-radius: 14px; padding: 24px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20, 16, 40, .45); }
.plat { padding: 28px 20px 64px; } .plat .panel, .plat .table-wrap { margin-top: 20px; } .plat .row h1 { margin: 0 auto 0 0; }
.qr-list { display: grid; gap: 18px; margin: 12px 0; }
.side-adm { background: linear-gradient(135deg, #1e1b3a, #3b2f7a); }
.side-adm b { font-size: 1.05rem; word-break: break-word; }
.p24-bar { position: sticky; bottom: 12px; justify-content: space-between; align-items: center; box-shadow: 0 10px 30px rgba(20, 10, 60, .12); }
/* chủ shop đang ở trong tài khoản khách */
.imp-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fef3c7; color: #78350f; border-bottom: 1px solid #f59e0b; font-size: 14px; }
.imp-bar .btn { background: #92400e; border-color: #92400e; color: #fff; }
/* Quản lý VPS: nút ở cột cuối xếp dọc để bảng không tràn */
.svc-list .row-btns { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.svc-list .row-btns .btn { white-space: nowrap; }
/* VPS / Proxy đã bán: bảng rộng cuộn ngang thay vì bóp chữ */
.sold-table { min-width: 1080px; }
.sold-table td { vertical-align: top; }
.sold-table td:nth-child(2), .sold-table td:nth-child(3) { white-space: nowrap; }
.sold-act { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px; }
@media (max-width: 860px) { .sold-table { min-width: 0; } .sold-table td { white-space: normal !important; } }
/* Chi tiết VPS (giống web mẹ) */
.vd-back { margin: 0 0 14px; }
.vd-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.vd-head h1 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; }
.vd-os { flex: 0 0 60px; height: 60px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; }
.vd-os.win { background: #0b74d6; } .vd-os.lnx { background: #e8590c; font-size: 14px; }
.vd-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vd-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; background: var(--bg, #fff); }
.vd-pill.ok { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; } .vd-pill.bad { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.vd-pill.wait { color: #b45309; background: #fffbeb; border-color: #fde68a; } .vd-pill.muted { color: var(--muted); }
.vd-pill.ok::before, .vd-pill.bad::before, .vd-pill.wait::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vd-pill .copy, .vd-pill button { margin-left: 4px; }
.vd-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.vd-act { border-radius: 10px; padding: 10px 16px; font-weight: 600; border: 1px solid; cursor: pointer; font: inherit; font-weight: 600; }
.vd-act:disabled { opacity: .45; cursor: not-allowed; }
.vd-act.blue { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; } .vd-act.green { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.vd-act.orange { color: #c2410c; background: #fff7ed; border-color: #fed7aa; } .vd-act.red { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.vd-act.violet { color: var(--brand, #6d28d9); background: #f5f3ff; border-color: #ddd6fe; }
.vd-act:not(:disabled):hover { filter: brightness(.97); }
.vd-act:focus-visible { outline: 2px solid var(--brand, #6d28d9); outline-offset: 2px; }
.vd-renew h2 { margin-top: 0; } .vd-renew-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vd-renew-row select { min-width: 220px; }
.vd-kv dd .row { gap: 8px; align-items: center; }
.vd-acts2 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.err-text { color: #b91c1c; }
@media (max-width: 600px) { .vd-head { gap: 12px; } .vd-os { flex-basis: 48px; height: 48px; font-size: 15px; } }
/* Bảng VPS vừa khung, không phải kéo ngang */
.svc-list.table-wrap { overflow-x: visible; }
.svc-list table { table-layout: auto; }
.svc-list td, .svc-list th { padding-left: 12px; padding-right: 12px; }
.svc-list td:first-child { min-width: 0; word-break: break-word; }
.svc-list .svc-note { margin-top: 4px; font-size: .8125rem; }
.svc-list .svc-note .inv-ok, .svc-list .svc-note .inv-none, .svc-list .svc-note .due-tag { font-size: .8125rem; }
.svc-list .row-btns { flex-direction: column; align-items: stretch; }
.svc-list .row-btns .icon-btn { align-self: flex-end; }
