/* Trang Dịch vụ Digital: plugin Bác Sĩ Web – Quản lý khách hàng.
   Giao diện tối, tự chứa (không phụ thuộc biến màu của theme). */
.bswd {
	--d-bg: #0a0c12;
	--d-card: #12141d;
	--d-head: #1a1d28;
	--d-line: #262a37;
	--d-field: #0d0f16;
	--d-field-line: #323849;
	--d-code: #0a0c12;
	--d-text: #f3f5fb;
	--d-muted: #a7aec4;
	--d-faint: #959db6;
	--d-grad: linear-gradient(95deg, #8a8cff 0%, #68b9f4 52%, #55e0b4 100%);
	--d-glow: rgba(138, 140, 255, 0.4);
	--d-focus: #ffffff;
	box-sizing: border-box;
	padding: clamp(0.75rem, 2.5vw, 1.5rem);
	border-radius: 24px;
	background: var(--d-bg);
	color: var(--d-text);
	font-size: 1rem;
	line-height: 1.55;
	text-align: left;
}
.bswd *, .bswd *::before, .bswd *::after { box-sizing: border-box; }
.bswd a { color: #9db7ff; }
.bswd a:hover { color: #c3d3ff; }
.bswd :focus-visible { outline: 3px solid var(--d-focus); outline-offset: 3px; border-radius: 8px; }
.bswd p { margin: 0 0 1em; }
.bswd h2, .bswd h3 { color: var(--d-text); }

/* Dải nền tối của theme Bác Sĩ Web (mẫu trang "Dịch vụ Digital"). */
.bswd-stage { padding-block: clamp(2rem, 6vw, 4rem); background: #0a0c12; }
.bswd-stage .bswd { padding: 0; border-radius: 0; background: transparent; }

.bswd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bswd-muted { color: var(--d-muted); }

/* Khung thẻ */
.bswd .bswd-card { margin: 0 0 1.25rem; border: 1px solid var(--d-line); border-radius: 18px; background: var(--d-card); overflow: hidden; }
.bswd .bswd-card:last-child { margin-bottom: 0; }
.bswd .bswd-pad { padding: clamp(1.1rem, 3vw, 2rem); }

/* Bảng dịch vụ */
.bswd .bswd-table { display: table; width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; background: transparent; }
.bswd .bswd-table th, .bswd .bswd-table td { padding: 1rem 1rem; border: 0; background: transparent; color: var(--d-text); text-align: left; vertical-align: middle; font-size: 0.9375rem; line-height: 1.55; }
.bswd .bswd-table thead th { padding: 0.85rem 1rem; background: var(--d-head); color: var(--d-faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; border-bottom: 1px solid var(--d-line); }
.bswd .bswd-table tbody tr + tr { border-top: 1px solid var(--d-line); }
.bswd .bswd-th-svc { width: 23%; }
.bswd .bswd-th-desc { width: 32%; }
.bswd .bswd-th-bill { width: 11%; }
.bswd .bswd-th-price { width: 16%; }
.bswd .bswd-th-act { width: 18%; }

.bswd .bswd-svc__in { display: flex; align-items: center; gap: 0.85rem; }
.bswd .bswd-name { font-weight: 700; font-size: 0.97rem; line-height: 1.3; color: var(--d-text); }
.bswd .bswd-desc { color: var(--d-muted); }
.bswd .bswd-bill { color: var(--d-muted); }
.bswd .bswd-price { white-space: nowrap; }
.bswd .bswd-price strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; color: var(--d-text); }
.bswd .bswd-price .bswd-quote { font-size: 1rem; font-weight: 700; }
@media (min-width: 1001px) {
	.bswd .bswd-table td.bswd-act { padding-inline: 0.5rem 1rem; }
}
.bswd .bswd-price span { color: var(--d-muted); font-size: 0.9rem; }

/* Biểu tượng dịch vụ */
.bswd .bswd-ic { --ic: #6d8bff; --ic2: #ffb03a; --tile: #1d2447; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 11px; background: linear-gradient(145deg, var(--tile), #141722); }
.bswd .bswd-ic svg { width: 22px; height: 22px; }
.bswd .bswd-ic--chart { --ic: #6d8bff; --ic2: #ffb03a; --tile: #1c2349; }
.bswd .bswd-ic--globe { --ic: #35c3ee; --ic2: #ffd166; --tile: #123646; }
.bswd .bswd-ic--link { --ic: #a78bfa; --ic2: #f472b6; --tile: #2a2150; }
.bswd .bswd-ic--mention { --ic: #f0529c; --ic2: #ffffff; --tile: #4a1b36; }
.bswd .bswd-ic--banner { --ic: #f5a524; --ic2: #fbbf77; --tile: #45310f; }
.bswd .bswd-ic--post { --ic: #34d399; --ic2: #fcd34d; --tile: #123d30; }
.bswd .bswd-ic--layers { --ic: #8b7bff; --ic2: #4cc9f0; --tile: #251f52; }
.bswd .bswd-ic--fanpage { --ic: #ff7a45; --ic2: #5aa9ff; --tile: #4a2314; }
.bswd .bswd-ic--chat { --ic: #4ade80; --ic2: #f472b6; --tile: #19401f; }
.bswd .bswd-ic--people { --ic: #ff6b6b; --ic2: #ffa94d; --tile: #4a1c22; }
.bswd .bswd-ic--kol { --ic: #facc15; --ic2: #f472b6; --tile: #403409; }
.bswd .bswd-ic--app { --ic: #38bdf8; --ic2: #fde047; --tile: #0f3047; }
.bswd .bswd-ic--booking { --ic: #e879f9; --ic2: #fcd34d; --tile: #3b1546; }
.bswd .bswd-ic--aso { --ic: #2dd4bf; --ic2: #a3e635; --tile: #0f3b38; }

/* Nút "Buy now" */
.bswd .bswd-buy { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 40px; padding: 0.55rem 1.15rem; border-radius: 999px; background: var(--d-grad); color: #0b1020; font-size: 0.875rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 22px -6px var(--d-glow); transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease; }
.bswd .bswd-buy:hover { color: #0b1020; filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 12px 26px -6px var(--d-glow); }
.bswd .bswd-buy svg { flex: 0 0 auto; }
.bswd .bswd-act { text-align: right; }

/* Nút chung */
.bswd .bswd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.7rem 1.4rem; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease; }
.bswd .bswd-btn--grad { background: var(--d-grad); color: #0b1020; box-shadow: 0 8px 22px -6px var(--d-glow); }
.bswd .bswd-btn--grad:hover { color: #0b1020; filter: brightness(1.07); transform: translateY(-1px); }
.bswd .bswd-btn--ghost { border-color: #3a4056; background: transparent; color: var(--d-text); }
.bswd .bswd-btn--ghost:hover { background: rgba(255, 255, 255, 0.07); color: var(--d-text); }
.bswd .bswd-btn--sm { min-height: 38px; padding: 0.4rem 1rem; font-size: 0.875rem; }
.bswd .bswd-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

/* Thanh toán */
.bswd .bswd-checkout { padding: clamp(1.1rem, 3vw, 2rem); }
.bswd .bswd-co-title { margin: 0 0 1rem; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.2; }
.bswd .bswd-co-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: start; }
.bswd .bswd-eyebrow { margin: 0 0 0.5rem; color: var(--d-faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.bswd h3.bswd-eyebrow { font-size: 0.72rem; letter-spacing: 0.09em; line-height: 1.4; }
.bswd .bswd-sum { padding: 1.1rem; border: 1px solid var(--d-line); border-radius: 16px; background: #0e1018; }
.bswd .bswd-sum__name { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.bswd .bswd-sum__desc { color: var(--d-muted); font-size: 0.9375rem; }
.bswd .bswd-dl { margin: 0 0 0.5rem; }
.bswd .bswd-dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.55rem 0; border-top: 1px solid var(--d-line); }
.bswd .bswd-dl dt { color: var(--d-muted); }
.bswd .bswd-dl dd { margin: 0; text-align: right; font-weight: 600; }
.bswd .bswd-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0.5rem 0 1rem; padding-top: 0.8rem; border-top: 2px solid var(--d-line); font-size: 1.05rem; }
.bswd .bswd-total strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.bswd .bswd-link { font-size: 0.9375rem; }

.bswd .bswd-form { margin: 0; }
.bswd .bswd-field { margin: 0 0 1.05rem; padding: 0; border: 0; min-width: 0; }
.bswd .bswd-field label, .bswd .bswd-field legend { display: block; margin: 0 0 0.35rem; padding: 0; font-weight: 600; font-size: 0.9375rem; }
.bswd .bswd-opt { color: var(--d-faint); font-weight: 400; }
.bswd .bswd-hint { display: block; margin-top: 0.3rem; color: var(--d-faint); font-size: 0.8125rem; }
.bswd .bswd-field input[type="text"], .bswd .bswd-field input[type="email"], .bswd .bswd-field input[type="number"], .bswd .bswd-field textarea { display: block; width: 100%; min-height: 46px; margin: 0; padding: 0.65rem 0.85rem; border: 1px solid var(--d-field-line); border-radius: 12px; background: var(--d-field); color: var(--d-text); font: inherit; font-size: 1rem; box-shadow: none; }
.bswd .bswd-field textarea { resize: vertical; }
.bswd .bswd-field input::placeholder { color: #6e7690; }
.bswd .bswd-field input:focus, .bswd .bswd-field textarea:focus { border-color: #8a8cff; outline: 2px solid #8a8cff; outline-offset: 1px; }
.bswd .bswd-field--qty input { max-width: 8rem; }

.bswd .bswd-pay { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 0.25rem; }
.bswd .bswd-pay .bswd-btn { flex: 1 1 12rem; }
.bswd .bswd-fine { margin: 1rem 0 0; color: var(--d-faint); font-size: 0.8125rem; }

/* Thông báo */
.bswd .bswd-alert { margin: 0 0 1.1rem; padding: 0.8rem 1rem; border: 1px solid; border-radius: 12px; font-size: 0.9375rem; font-weight: 600; }
.bswd .bswd-alert--error { border-color: #6b2433; background: #2a1218; color: #ffc9d2; }
.bswd .bswd-alert--ok { border-color: #1d6b49; background: #0f2a1f; color: #b4f3d4; }
.bswd .bswd-alert--info { border-color: #2b4780; background: #121c33; color: #cfdcff; }
.bswd .bswd-alert a { color: inherit; }
.bswd .bswd-notice:empty { display: none; }
.bswd .bswd-notice { margin: 1rem 0 0; padding: 1rem 1.1rem; border: 1px solid #6b5a1c; border-radius: 14px; background: #1c1a0e; color: #ffe9a8; font-size: 0.9375rem; }
.bswd .bswd-notice p { margin: 0 0 0.6rem; }
.bswd .bswd-notice p:last-child { margin-bottom: 0; }
.bswd .bswd-empty { padding: 1.5rem; text-align: center; color: var(--d-muted); }

/* Màn hình hẹp: mỗi dịch vụ thành một thẻ */
@media (max-width: 900px) {
	.bswd .bswd-co-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
	.bswd .bswd-table, .bswd .bswd-table tbody, .bswd .bswd-table tr, .bswd .bswd-table th, .bswd .bswd-table td { display: block; }
	.bswd .bswd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bswd .bswd-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "svc svc" "desc desc" "price act" "bill act"; gap: 0.55rem 1rem; align-items: center; padding: 1.1rem 1rem; }
	.bswd .bswd-table tbody th, .bswd .bswd-table tbody td { padding: 0; }
	.bswd .bswd-table .bswd-svc { grid-area: svc; }
	.bswd .bswd-table .bswd-desc { grid-area: desc; }
	.bswd .bswd-table .bswd-price { grid-area: price; }
	.bswd .bswd-table .bswd-bill { grid-area: bill; font-size: 0.875rem; }
	.bswd .bswd-table .bswd-act { grid-area: act; align-self: center; }
	.bswd .bswd-buy { min-height: 44px; padding-inline: 1.3rem; }
}
@media (max-width: 760px) {
	.bswd .bswd-co-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.bswd .bswd-pay .bswd-btn { flex-basis: 100%; }
}

/* Ô bẫy chống bot: ẩn khỏi người thật */
.bswd .bswd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Chọn mạng USDT */
.bswd .bswd-nets { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.bswd .bswd-nets legend { flex: 0 0 100%; }
.bswd .bswd-radio { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 500; cursor: pointer; }
.bswd .bswd-radio input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #8a8cff; }

/* Thẻ trạng thái hóa đơn (trang của khách) */
.bswd .bswc-badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; line-height: 1.2; }
.bswd .bswc-badge--inv-pending { background: #3a2c0b; color: #ffd98a; }
.bswd .bswc-badge--inv-verifying { background: #14264f; color: #b9ceff; }
.bswd .bswc-badge--inv-paid { background: #0f3324; color: #a8f0cc; }
.bswd .bswc-badge--inv-cancelled { background: #272b38; color: #c4c9d8; }
.bswd .bswc-badge--inv-overdue { background: #3d1620; color: #ffc4cd; }

/* Trang hóa đơn */
.bswd .bswd-inv { padding: clamp(1.1rem, 3vw, 2rem); }
.bswd .bswd-inv__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem 1rem; margin-bottom: 0.5rem; }
.bswd .bswd-inv__head .bswd-co-title { margin: 0; }
.bswd .bswd-inv__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0 0 1.25rem; }
.bswd .bswd-inv__meta > div { display: flex; gap: 0.5rem; }
.bswd .bswd-inv__meta dt { color: var(--d-muted); }
.bswd .bswd-inv__meta dd { margin: 0; font-weight: 600; }
.bswd .bswd-inv__parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin-bottom: 1.5rem; padding: 1.1rem; border: 1px solid var(--d-line); border-radius: 14px; background: #0e1018; overflow-wrap: anywhere; }
.bswd .bswd-inv__parties p { margin: 0; }

.bswd .bswd-lines { display: table; width: 100%; margin: 0 0 1.25rem; border-collapse: collapse; background: transparent; }
.bswd .bswd-lines th, .bswd .bswd-lines td { padding: 0.8rem 0.75rem; border: 0; border-bottom: 1px solid var(--d-line); background: transparent; color: var(--d-text); text-align: left; vertical-align: top; font-size: 0.9375rem; }
.bswd .bswd-lines thead th { background: var(--d-head); color: var(--d-faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.bswd .bswd-lines .bswd-num { text-align: right; white-space: nowrap; }
.bswd .bswd-lines__desc { display: block; margin-top: 0.2rem; color: var(--d-muted); font-size: 0.8125rem; font-weight: 400; }
.bswd .bswd-lines tfoot th { color: var(--d-muted); text-align: right; font-weight: 600; }
.bswd .bswd-lines tfoot .bswd-lines__total th, .bswd .bswd-lines tfoot .bswd-lines__total td { border-bottom: 0; color: var(--d-text); font-size: 1.15rem; font-weight: 800; }
.bswd .bswd-inv__note { margin: 0 0 1.25rem; }
.bswd .bswd-inv__note p { margin: 0; color: var(--d-muted); }

.bswd .bswd-code { display: inline-block; max-width: 100%; padding: 0.3rem 0.55rem; border: 1px solid var(--d-line); border-radius: 8px; background: var(--d-code); color: #e6ebff; font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; }

/* Khung thanh toán USDT */
.bswd .bswd-pay-box { margin: 0 0 1.25rem; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid #2b3150; border-radius: 16px; background: #0f1220; }
.bswd .bswd-pay-box__title { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.3; }
.bswd .bswd-pay-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.25rem 1.75rem; align-items: start; margin-bottom: 1rem; }
.bswd .bswd-qr { width: 180px; height: 180px; padding: 6px; border-radius: 12px; background: #ffffff; }
.bswd .bswd-qr svg { display: block; width: 100%; height: 100%; }
.bswd .bswd-pay-info { margin: 0; }
.bswd .bswd-pay-info > div { margin: 0 0 0.9rem; }
.bswd .bswd-pay-info dt { margin: 0 0 0.2rem; color: var(--d-faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.bswd .bswd-pay-info dd { margin: 0; }
.bswd .bswd-amount { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.bswd .bswd-addr { display: block; margin: 0 0 0.5rem; }
.bswd .bswd-copied { margin-left: 0.6rem; color: #a8f0cc; font-size: 0.875rem; font-weight: 600; }
.bswd .bswd-warn { margin: 0 0 1.1rem; padding: 0.8rem 1rem; border: 1px solid #6b5a1c; border-radius: 12px; background: #1c1a0e; color: #ffe9a8; font-size: 0.9rem; }
.bswd .bswd-txid { margin: 0 0 1rem; max-width: 36rem; }
.bswd .bswd-pay-alt { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.bswd .bswd-inv__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--d-line); }
.bswd .bswd-inv__foot .bswd-fine { margin: 0; }

@media (max-width: 760px) {
	.bswd .bswd-inv__parties { grid-template-columns: 1fr; }
	.bswd .bswd-pay-grid { grid-template-columns: 1fr; justify-items: start; }
	.bswd .bswd-lines, .bswd .bswd-lines tbody, .bswd .bswd-lines tfoot, .bswd .bswd-lines tr, .bswd .bswd-lines th, .bswd .bswd-lines td { display: block; }
	.bswd .bswd-lines thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bswd .bswd-lines tbody tr { padding: 0.8rem 0; border-bottom: 1px solid var(--d-line); }
	.bswd .bswd-lines tbody th, .bswd .bswd-lines tbody td { padding: 0.15rem 0; border: 0; text-align: left; }
	.bswd .bswd-lines tbody td.bswd-num { display: flex; justify-content: space-between; gap: 1rem; white-space: normal; }
	.bswd .bswd-lines tbody td.bswd-num::before { content: attr(data-label); color: var(--d-muted); }
	.bswd .bswd-lines tfoot tr { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
	.bswd .bswd-lines tfoot th, .bswd .bswd-lines tfoot td { padding: 0; border: 0; }
}

/* In hóa đơn: nền sáng, chỉ giữ nội dung hóa đơn */
@media print {
	body.bswc-invoice-page header, body.bswc-invoice-page footer, body.bswc-invoice-page nav, body.bswc-invoice-page .bswd-pay-box, body.bswc-invoice-page [data-print] { display: none !important; }
	.bswd { background: #fff !important; color: #111 !important; }
	.bswd .bswd-card, .bswd .bswd-inv__parties { border-color: #ccc !important; background: #fff !important; }
	.bswd, .bswd h2, .bswd h3, .bswd .bswd-lines th, .bswd .bswd-lines td, .bswd .bswd-inv__meta dd, .bswd .bswd-inv__meta dt, .bswd .bswd-inv__note p { color: #111 !important; }
}

@media (prefers-reduced-motion: reduce) {
	.bswd .bswd-buy, .bswd .bswd-btn { transition: none; }
	.bswd .bswd-buy:hover, .bswd .bswd-btn--grad:hover { transform: none; }
}
