/* ==========================================================================
   NDV · Khu vực tài khoản khách hàng
   Chỉ áp dụng trong trang Tài khoản (body.woocommerce-account), không ảnh hưởng phần còn lại của website.
   ========================================================================== */

.woocommerce-account {
	--ndv-primary: #1d4ed8;
	--ndv-primary-600: #1e40af;
	--ndv-primary-50: #eff4ff;
	--ndv-ink: #0f172a;
	--ndv-text: #334155;
	--ndv-muted: #64748b;
	--ndv-line: #e2e8f0;
	--ndv-bg: #f8fafc;
	--ndv-card: #ffffff;
	--ndv-ok: #16a34a;
	--ndv-ok-50: #ecfdf3;
	--ndv-warn: #d97706;
	--ndv-warn-50: #fffbeb;
	--ndv-bad: #dc2626;
	--ndv-bad-50: #fef2f2;
	--ndv-radius: 14px;
	--ndv-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
}

.ndv-acc { color: var(--ndv-text); font-size: 15px; line-height: 1.55; }
.ndv-acc *, .ndv-acc *::before, .ndv-acc *::after { box-sizing: border-box; }
.ndv-acc h3 { margin: 0; color: var(--ndv-ink); font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ndv-ic { display: inline-block; vertical-align: -0.2em; flex: none; }

/* ---------- Menu tài khoản (WooCommerce / Flatsome) ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul,
.woocommerce-account ul.account-nav { list-style: none; margin: 0; padding: 8px; background: var(--ndv-card); border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); box-shadow: var(--ndv-shadow); }
.woocommerce-account .woocommerce-MyAccount-navigation li,
.woocommerce-account ul.account-nav li { margin: 0; padding: 0; border: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li a,
.woocommerce-account ul.account-nav li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px !important; border-radius: 10px; color: var(--ndv-text) !important; font-size: 14.5px; font-weight: 500; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none; transition: background .15s, color .15s; }
.woocommerce-account .woocommerce-MyAccount-navigation li a::before,
.woocommerce-account ul.account-nav li a::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; opacity: .75; -webkit-mask: var(--ndv-i) center / 20px 20px no-repeat; mask: var(--ndv-i) center / 20px 20px no-repeat; }
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account ul.account-nav li a:hover { background: var(--ndv-bg); color: var(--ndv-ink) !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account ul.account-nav li.is-active a,
.woocommerce-account ul.account-nav li.active a { background: var(--ndv-primary-50); color: var(--ndv-primary) !important; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before,
.woocommerce-account ul.account-nav li.active a::before,
.woocommerce-account ul.account-nav li.is-active a::before { opacity: 1; }
.woocommerce-account li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid var(--ndv-line) !important; }
.woocommerce-account li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--ndv-bad) !important; }

/* Biểu tượng menu (SVG nét, dùng làm mask). Mặc định một chấm tròn cho mục của plugin khác. */
.woocommerce-MyAccount-navigation-link { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--dashboard { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--nap-tien { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3'/%3E%3Cpath d='M21 8h-6a3 3 0 0 0 0 6h6z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--dv-proxy { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--dv-vps { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='1.5'/%3E%3Crect x='3' y='13' width='18' height='7' rx='1.5'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01M11 7.5h6M11 16.5h6'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--dv-hosting { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14a4 4 0 0 1 3.2-6.4A5.5 5.5 0 0 1 17.8 9 3.8 3.8 0 0 1 18 16.5H7'/%3E%3Cpath d='M12 13v8M9 18l3 3 3-3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--dv-other { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--bien-dong-so-du { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--ho-tro { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.2a2.6 2.6 0 0 1 5 .9c0 1.7-2.5 2.2-2.5 3.9M12 17h.01'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --ndv-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }

/* ---------- Nút ---------- */
.ndv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; margin: 0; border: 1px solid var(--ndv-line); border-radius: 10px; background: var(--ndv-card); color: var(--ndv-ink) !important; font-size: 14px; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; text-decoration: none !important; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background .15s, border-color .15s, transform .05s; }
.ndv-btn:hover { background: var(--ndv-bg); border-color: #cbd5e1; }
.ndv-btn:active { transform: translateY(1px); }
.ndv-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ndv-btn-primary { background: var(--ndv-primary); border-color: var(--ndv-primary); color: #fff !important; }
.ndv-btn-primary:hover { background: var(--ndv-primary-600); border-color: var(--ndv-primary-600); }
.ndv-btn-outline { background: transparent; border-color: var(--ndv-primary); color: var(--ndv-primary) !important; }
.ndv-btn-outline:hover { background: var(--ndv-primary-50); }
.ndv-btn-light { background: #fff; border-color: #fff; color: var(--ndv-primary) !important; }
.ndv-btn-light:hover { background: #eef2ff; border-color: #eef2ff; }
.ndv-btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff !important; }
.ndv-btn-ghost:hover { background: rgba(255,255,255,.22); }
.ndv-btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.ndv-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ndv-primary-50); color: var(--ndv-primary); font-size: 12px; font-weight: 700; }

/* ---------- Tổng quan ---------- */
.ndv-hero { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 18px; padding: 22px 24px; margin: 0 0 18px; border-radius: 18px; color: var(--ndv-ink);
	border: 1px solid #dbe6fb; background: radial-gradient(110% 140% at 100% 0%, #dbeafe 0%, rgba(219,234,254,0) 60%), linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%); box-shadow: var(--ndv-shadow); }
.ndv-hero-text { align-self: center; }
.ndv-hero-hi { color: var(--ndv-muted); font-size: 14px; }
.ndv-hero-name { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 2px 0 6px; }
.ndv-hero-id { font-size: 13px; color: var(--ndv-muted); }
.ndv-hero-id strong { color: var(--ndv-primary); }
.ndv-hero-bal { min-width: 240px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #dbe6fb; box-shadow: 0 2px 10px rgba(29, 78, 216, .08); }
.ndv-hero-bal-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ndv-muted); }
.ndv-hero-bal-label .ndv-ic { color: var(--ndv-primary); }
.ndv-hero-bal-value { font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 10px; color: var(--ndv-primary); font-variant-numeric: tabular-nums; }
.ndv-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ndv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 14px; }
.ndv-stat { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); color: inherit !important; text-decoration: none !important; box-shadow: var(--ndv-shadow); transition: border-color .15s, transform .15s; }
.ndv-stat:hover { border-color: #bfdbfe; transform: translateY(-1px); }
.ndv-stat-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-stat-vps .ndv-stat-ic { background: #f5f3ff; color: #7c3aed; }
.ndv-stat-hosting .ndv-stat-ic { background: #ecfeff; color: #0891b2; }
.ndv-stat-other .ndv-stat-ic { background: #f1f5f9; color: #475569; }
.ndv-stat-body { display: flex; flex-direction: column; min-width: 0; }
.ndv-stat-label { font-size: 13px; color: var(--ndv-muted); }
.ndv-stat-value { font-size: 22px; font-weight: 800; color: var(--ndv-ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ndv-stat-value small { font-size: 13px; font-weight: 600; color: var(--ndv-muted); }
.ndv-stat-sub { font-size: 12.5px; color: var(--ndv-muted); }

.ndv-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ndv-quick a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--ndv-line); border-radius: 999px; background: var(--ndv-card); color: var(--ndv-text) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.ndv-quick a:hover { border-color: var(--ndv-primary); color: var(--ndv-primary) !important; }

.ndv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.ndv-section-head h3 { display: flex; align-items: center; gap: 8px; }
.ndv-section-head a { font-size: 14px; }
.ndv-section-head h3 + .ndv-count { margin-right: auto; }
.ndv-empty { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px dashed #cbd5e1; border-radius: var(--ndv-radius); background: var(--ndv-bg); color: var(--ndv-muted); }
.ndv-empty .ndv-ic { color: var(--ndv-ok); }

/* Công tắc tự gia hạn */
.ndv-ar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 16px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.ndv-ar-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ndv-ok-50); color: var(--ndv-ok); }
.ndv-ar-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ndv-ar-text strong { color: var(--ndv-ink); }
.ndv-ar-text small { color: var(--ndv-muted); font-size: 13px; }
.ndv-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; margin: 0; cursor: pointer; }
.ndv-switch input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.ndv-switch-ui { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .2s; }
.ndv-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.ndv-switch input:checked + .ndv-switch-ui { background: var(--ndv-ok); }
.ndv-switch input:checked + .ndv-switch-ui::after { transform: translateX(20px); }
.ndv-switch input:focus-visible + .ndv-switch-ui { outline: 2px solid var(--ndv-primary); outline-offset: 2px; }

/* ---------- Thẻ đơn thuê ---------- */
.ndv-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.ndv-summary > div { padding: 12px 14px; border: 1px solid var(--ndv-line); border-radius: 12px; background: var(--ndv-card); }
.ndv-summary span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ndv-muted); }
.ndv-summary strong { display: block; font-size: 22px; font-weight: 800; color: var(--ndv-ink); font-variant-numeric: tabular-nums; }
.ndv-summary .is-warn strong { color: var(--ndv-warn); }

.ndv-r-card { --st: var(--ndv-ok); --st-bg: var(--ndv-ok-50); position: relative; padding: 16px 18px; margin: 0 0 14px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.ndv-r-card.ndv-r-soon { --st: var(--ndv-warn); --st-bg: var(--ndv-warn-50); }
.ndv-r-card.ndv-r-grace { --st: var(--ndv-bad); --st-bg: var(--ndv-bad-50); border-color: #fecaca; }
.ndv-r-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ndv-r-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ndv-r-id > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ndv-r-id strong { font-size: 16px; color: var(--ndv-ink); }
.ndv-r-id small { color: var(--ndv-muted); font-size: 13px; }
.ndv-r-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-r-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--st-bg); color: var(--st); font-size: 13px; font-weight: 600; }
.ndv-r-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ndv-r-progress { height: 6px; margin: 14px 0 12px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.ndv-r-progress span { display: block; height: 100%; border-radius: inherit; background: var(--st); }
.ndv-r-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; }
.ndv-r-meta > div { display: flex; flex-direction: column; }
.ndv-r-meta span { font-size: 12.5px; color: var(--ndv-muted); }
.ndv-r-meta strong { color: var(--ndv-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ndv-r-meta .woocommerce-Price-amount { font-weight: 600; }
.ndv-r-items { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--ndv-line); }
.ndv-r-items li { display: flex; gap: 10px; margin: 0 0 6px; padding: 0; font-size: 14px; }
.ndv-r-items li small { display: block; color: var(--ndv-muted); font-size: 12.5px; }
.ndv-r-qty { flex: none; min-width: 28px; color: var(--ndv-primary); font-weight: 700; }
.ndv-r-title { margin: 10px 0 0; font-size: 14px; color: var(--ndv-text); }
.ndv-r-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ndv-line); }
.ndv-r-hint { font-size: 13px; color: var(--ndv-warn); }
.ndv-r-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ndv-r-actions form { margin: 0; }
.ndv-r-card.is-compact { padding: 14px 16px; }
.ndv-r-card.is-compact .ndv-r-progress { margin: 12px 0 10px; }

/* Thông tin truy cập & kiểm tra proxy */
.ndv-r-creds { margin: 14px 0 0; padding: 12px; border: 1px solid #dbe5f3; border-radius: 12px; background: #f8fbff; }
.ndv-r-creds-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ndv-ink); }
.ndv-r-creds-tools { display: flex; gap: 6px; margin-left: auto; }
.ndv-r-creds textarea { width: 100%; min-height: 0; margin: 0; padding: 10px; border: 1px solid var(--ndv-line); border-radius: 10px; background: #fff; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-shadow: none; }
.ndv-r-wait { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--ndv-warn-50); color: #92400e; font-size: 14px; }
.ndv-spin { width: 16px; height: 16px; flex: none; border: 2px solid #fcd34d; border-top-color: var(--ndv-warn); border-radius: 50%; animation: ndv-spin .8s linear infinite; }
@keyframes ndv-spin { to { transform: rotate(360deg); } }

.ndv-pc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; }
.ndv-pc-allwrap { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; cursor: pointer; }
.ndv-pc-sum { font-weight: 700; color: var(--ndv-ink); }
.ndv-pc-wrap { max-height: 380px; overflow: auto; border: 1px solid var(--ndv-line); border-radius: 10px; background: #fff; }
.ndv-pc-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
.ndv-pc-table th, .ndv-pc-table td { padding: 8px 10px; border: 0; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: middle; }
.ndv-pc-table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: var(--ndv-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.ndv-pc-table tbody tr:hover { background: #fafcff; }
.ndv-pc-table td:first-child, .ndv-pc-table td:nth-child(2) { width: 34px; color: var(--ndv-muted); }
.ndv-pc-line code { padding: 0; background: none; color: var(--ndv-ink); font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.ndv-pc-live { color: var(--ndv-ok); font-weight: 700; }
.ndv-pc-dead { color: var(--ndv-bad); font-weight: 700; }
.ndv-pc-na { color: var(--ndv-muted); }
.ndv-pc-cd { color: #94a3b8; }
.ndv-pc-st small { color: var(--ndv-muted); }
.ndv-pc-lv { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; cursor: help; }
.ndv-pc-lv-elite { background: var(--ndv-ok); }
.ndv-pc-lv-anonymous { background: var(--ndv-warn); }
.ndv-pc-lv-transparent { background: var(--ndv-bad); }
tr.is-busy { opacity: .55; }

/* ---------- Nạp tiền ---------- */
.ndv-balance-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; margin: 0 0 16px; border: 1px solid #bfdbfe; border-radius: var(--ndv-radius); background: linear-gradient(90deg, var(--ndv-primary-50), #fff); }
.ndv-balance-strip span { display: inline-flex; align-items: center; gap: 8px; color: var(--ndv-muted); }
.ndv-balance-strip strong { font-size: 22px; font-weight: 800; color: var(--ndv-primary); font-variant-numeric: tabular-nums; }
.ndv-balance-strip a { margin-left: auto; font-size: 14px; }

.ndv-topup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin: 0 0 16px; }
.ndv-panel { padding: 18px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.ndv-topup-crypto { margin: 0 0 16px; }
.ndv-step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; }
.ndv-panel .ndv-step-title ~ .ndv-step-title { margin-top: 20px !important; }
.ndv-step { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ndv-primary); color: #fff; font-size: 14px; font-weight: 700; }
.ndv-step-alt { background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-topup-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.ndv-topup-quick a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 6px; border: 1px solid var(--ndv-line); border-radius: 10px; background: #fff; color: var(--ndv-ink) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; font-variant-numeric: tabular-nums; }
.ndv-topup-quick a:hover { border-color: var(--ndv-primary); color: var(--ndv-primary) !important; }
.ndv-topup-quick a.is-active { border-color: var(--ndv-primary); background: var(--ndv-primary); color: #fff !important; }
.ndv-topup-row { display: flex; gap: 8px; margin: 0; }
.ndv-topup-row input { flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0 12px; border: 1px solid var(--ndv-line); border-radius: 10px; font-size: 15px; box-shadow: none; }
.ndv-topup-row input:focus { border-color: var(--ndv-primary); outline: 3px solid var(--ndv-primary-50); }
.ndv-topup-row .ndv-btn { min-height: 42px; }
.ndv-topup-calc { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--ndv-bg); }
.ndv-topup-calc > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.ndv-topup-calc span { color: var(--ndv-muted); }
.ndv-topup-calc strong { color: var(--ndv-ink); font-variant-numeric: tabular-nums; }
.ndv-topup-calc .is-bonus strong { color: var(--ndv-ok); }
.ndv-topup-calc .is-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed #cbd5e1; }
.ndv-topup-calc .is-total strong { font-size: 17px; color: var(--ndv-primary); }
.ndv-topup-hint { margin: 10px 0 0; color: var(--ndv-muted); font-size: 13.5px; }
.ndv-topup-bonus { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 12px; background: var(--ndv-ok-50); }
.ndv-topup-bonus-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: #166534; font-weight: 700; }
.ndv-topup-bonus ul { list-style: none; margin: 0; padding: 0; }
.ndv-topup-bonus li { display: flex; justify-content: space-between; margin: 0; padding: 4px 0; font-size: 14px; }
.ndv-topup-bonus li strong { color: var(--ndv-ok); }
.ndv-topup-memo { margin: 0 0 14px; padding: 14px; border: 2px dashed #fbbf24; border-radius: 12px; background: var(--ndv-warn-50); text-align: center; }
.ndv-topup-memo > span { font-size: 13.5px; color: #92400e; }
.ndv-topup-memo-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0; }
.ndv-topup-code { padding: 4px 14px; border-radius: 8px; background: #fff; color: var(--ndv-ink); font: 700 24px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.ndv-topup-memo small { color: #92400e; font-size: 12.5px; }
.ndv-topup .ndv-qrp { max-width: none; margin: 0; }
.ndv-topup .ndv-qrp-frame { width: 260px; }
.ndv-topup .ndv-qrp-info { font-size: 14px; }
.ndv-topup .ndv-qrp-info th { width: 36%; }
.ndv-topup .ndv-qrp-tabs { justify-content: center; }

/* ---------- Lịch sử ---------- */
.ndv-hist-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ndv-hist-filter a { padding: 7px 14px; border: 1px solid var(--ndv-line); border-radius: 999px; background: #fff; color: var(--ndv-text) !important; font-size: 14px; text-decoration: none !important; }
.ndv-hist-filter a.is-active { border-color: var(--ndv-primary); background: var(--ndv-primary); color: #fff !important; font-weight: 600; }
.ndv-table-wrap { overflow-x: auto; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: #fff; box-shadow: var(--ndv-shadow); }
.ndv-hist { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.ndv-hist th, .ndv-hist td { padding: 11px 14px; border: 0; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: middle; }
.ndv-hist th { background: #f8fafc; color: var(--ndv-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ndv-hist tbody tr:last-child td { border-bottom: 0; }
.ndv-hist .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ndv-hist .plus { color: var(--ndv-ok); font-weight: 700; }
.ndv-hist .minus { color: var(--ndv-bad); font-weight: 700; }
.ndv-tx { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ndv-tx-topup { background: var(--ndv-ok-50); color: #15803d; }
.ndv-tx-bonus { background: #fdf4ff; color: #a21caf; }
.ndv-tx-purchase, .ndv-tx-renew { background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-tx-refund { background: #ecfeff; color: #0e7490; }
.ndv-hist-pages { margin-top: 12px; }

/* ---------- Điện thoại ---------- */
@media (max-width: 849px) {
	.ndv-topup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.ndv-acc { font-size: 14.5px; }
	.ndv-hero { padding: 18px; border-radius: 16px; }
	.ndv-hero-name { font-size: 21px; }
	.ndv-hero-bal { min-width: 0; width: 100%; }
	.ndv-hero-bal-value { font-size: 26px; }
	.ndv-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ndv-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.ndv-stat-ic { width: 38px; height: 38px; }
	.ndv-summary { gap: 8px; }
	.ndv-summary > div { padding: 10px; }
	.ndv-summary strong { font-size: 19px; }
	.ndv-r-card { padding: 14px; }
	.ndv-r-meta { grid-template-columns: 1fr 1fr; }
	.ndv-r-actions { width: 100%; }
	.ndv-r-actions > *, .ndv-r-actions .ndv-btn { flex: 1 1 auto; width: 100%; }
	.ndv-r-creds-tools { margin-left: 0; width: 100%; }
	.ndv-r-creds-tools .ndv-btn { flex: 1; }
	.ndv-pc-table th:nth-child(2), .ndv-pc-table td:nth-child(2) { display: none; }
	.ndv-topup-row { flex-direction: column; }
	.ndv-balance-strip a { margin-left: 0; }
	.ndv-hist th:nth-child(4), .ndv-hist td:nth-child(4) { display: none; }
	.ndv-ar { align-items: flex-start; }
}
.ndv-r-meta strong .woocommerce-Price-amount, .ndv-r-meta strong .woocommerce-Price-amount bdi { color: var(--ndv-ink); font-size: inherit; }

/* ---------- Khung trang tài khoản (template của plugin): menu trái + nội dung ---------- */
.woocommerce-account .ndv-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; margin: 8px 0 32px; color: var(--ndv-text); }
.woocommerce-account .ndv-shell *, .woocommerce-account .ndv-shell *::before, .woocommerce-account .ndv-shell *::after { box-sizing: border-box; }
.woocommerce-account .ndv-side { position: sticky; top: 90px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.woocommerce-account .ndv-main { min-width: 0; width: auto !important; float: none !important; padding: 0 !important; }
.woocommerce-account .ndv-shell .woocommerce-MyAccount-navigation { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce-account .ndv-me { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--ndv-card); border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); box-shadow: var(--ndv-shadow); }
.woocommerce-account .ndv-me-av { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ndv-primary-50); color: var(--ndv-primary); font-weight: 800; font-size: 18px; }
.woocommerce-account .ndv-me-info { display: grid; min-width: 0; }
.woocommerce-account .ndv-me-info strong { color: var(--ndv-ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.woocommerce-account .ndv-me-info small { color: var(--ndv-muted); font-size: 12.5px; }
.woocommerce-account .ndv-me-bal { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 12px 14px; border-radius: var(--ndv-radius); background: linear-gradient(135deg, #eff4ff, #f5f9ff); border: 1px solid #dbe5ff; text-decoration: none !important; }
.woocommerce-account .ndv-me-bal span { grid-column: 1 / -1; color: var(--ndv-muted); font-size: 12.5px; }
.woocommerce-account .ndv-me-bal strong { color: var(--ndv-ink); font-size: 18px; font-weight: 800; }
.woocommerce-account .ndv-me-bal em { font-style: normal; color: var(--ndv-primary); font-weight: 600; font-size: 13px; }
.woocommerce-account .ndv-me-bal:hover { border-color: var(--ndv-primary); }
/* Tiêu đề trang con (WooCommerce) gọn lại cho khớp. */
.woocommerce-account .ndv-main > h2:first-child, .woocommerce-account .ndv-main > h3:first-child { margin-top: 0; color: var(--ndv-ink); font-size: 20px; text-transform: none; letter-spacing: 0; }
/* Bảng, form mặc định của WooCommerce trong khung mới. */
.woocommerce-account .ndv-main table.shop_table { border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.woocommerce-account .ndv-main table.shop_table th { background: var(--ndv-bg); color: var(--ndv-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.woocommerce-account .ndv-main table.shop_table th, .woocommerce-account .ndv-main table.shop_table td { padding: 10px 12px; border-color: var(--ndv-line); }
.woocommerce-account .ndv-main form.woocommerce-EditAccountForm, .woocommerce-account .ndv-main .woocommerce-Addresses .woocommerce-Address, .woocommerce-account .ndv-main form.edit-address-form, .woocommerce-account .ndv-main > form { background: var(--ndv-card); border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); box-shadow: var(--ndv-shadow); padding: 18px; }
.woocommerce-account .ndv-main input.input-text, .woocommerce-account .ndv-main select, .woocommerce-account .ndv-main textarea { border-radius: 10px; border-color: var(--ndv-line); box-shadow: none; }
.woocommerce-account .ndv-main .button { border-radius: 10px; text-transform: none; letter-spacing: 0; }

@media (max-width: 849px) {
	.woocommerce-account .ndv-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.woocommerce-account .ndv-side { position: static; }
	/* Điện thoại: menu thành hàng ngang cuộn được. */
	.woocommerce-account .ndv-shell .woocommerce-MyAccount-navigation ul { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px; }
	.woocommerce-account .ndv-shell .woocommerce-MyAccount-navigation li a { white-space: nowrap; padding: 8px 10px !important; font-size: 13.5px; }
	.woocommerce-account .ndv-shell li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; padding: 0 !important; border: 0 !important; }
}
/* Lưới nút "dashboard links" của Flatsome (nếu theme vẫn chèn ở nơi khác). */
.woocommerce-account .ndv-main .dashboard-links, .woocommerce-account .ndv-shell + .dashboard-links { display: none !important; }

/* ---------- Trang tài khoản rộng hơn (chỉ trang Tài khoản) ---------- */
/* Flatsome: trang Tài khoản nằm trong #main .page-wrapper .container / .row (mặc định ~1080px). Chỉ nới phần nội dung chính, không đụng header/footer. */
body.woocommerce-account #main .container, body.woocommerce-account #main .row, body.woocommerce-account #main .page-wrapper > .container,
body.woocommerce-account #content > .row, body.woocommerce-account #content .row.row-main { max-width: 1440px !important; }

/* ---------- Danh sách đơn thuê ---------- */
.ndv-back { margin: 0 0 12px; }
.ndv-back a { color: var(--ndv-primary) !important; font-weight: 600; text-decoration: none; }
.ndv-list-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ndv-list-filter button { margin: 0; min-height: 34px; padding: 0 14px; border: 1px solid var(--ndv-line); border-radius: 999px; background: var(--ndv-card); color: var(--ndv-text); font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ndv-list-filter button span { margin-left: 4px; color: var(--ndv-muted); font-weight: 500; }
.ndv-list-filter button.is-on { background: var(--ndv-primary-50); border-color: #c7d6fe; color: var(--ndv-primary); }
.ndv-list { border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); box-shadow: var(--ndv-shadow); overflow: hidden; }
.ndv-list-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
.ndv-list-table th { padding: 11px 16px !important; background: var(--ndv-bg); color: var(--ndv-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; text-align: left; border-bottom: 1px solid var(--ndv-line); }
.ndv-list-table td { padding: 14px 16px !important; border-bottom: 1px solid var(--ndv-line); vertical-align: middle; color: var(--ndv-text); }
.ndv-list-table tr:last-child td { border-bottom: 0; }
.ndv-list-table tr:hover td { background: #fbfcfe; }
.ndv-list-table td small { display: block; color: var(--ndv-muted); font-size: 12.5px; }
.ndv-list-table td a strong { color: var(--ndv-primary); }
.ndv-list-table tr { --st: var(--ndv-ok); --st-bg: var(--ndv-ok-50); }
.ndv-list-table tr.ndv-r-soon { --st: var(--ndv-warn); --st-bg: var(--ndv-warn-50); }
.ndv-list-table tr.ndv-r-grace { --st: var(--ndv-bad); --st-bg: var(--ndv-bad-50); }
.ndv-list-act { text-align: right; white-space: nowrap; }
.ndv-list-act .ndv-btn + .ndv-btn { margin-left: 6px; }
@media (max-width: 700px) {
	.ndv-list-table thead { display: none; }
	.ndv-list-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--ndv-line); }
	.ndv-list-table td { padding: 0 !important; border: 0; }
	.ndv-list-table td[data-l]::before { content: attr(data-l); display: block; color: var(--ndv-muted); font-size: 11.5px; }
	.ndv-list-table td[data-l="Gói"], .ndv-list-act { grid-column: 1 / -1; }
	.ndv-list-act { text-align: left; }
}

/* ---------- Lịch sử mua hàng & xem đơn ---------- */
.woocommerce-account .ndv-main .woocommerce-orders-table .button, .woocommerce-account .ndv-main .woocommerce-orders-table__cell-order-actions a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; margin: 0; border: 1px solid var(--ndv-line); border-radius: 9px; background: var(--ndv-card) !important; color: var(--ndv-ink) !important; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; box-shadow: none; }
.woocommerce-account .ndv-main .woocommerce-orders-table .button:hover { border-color: var(--ndv-primary); color: var(--ndv-primary) !important; }
.woocommerce-account .ndv-main .woocommerce-orders-table__cell-order-number a { color: var(--ndv-primary) !important; font-weight: 700; }
.ndv-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; margin: 0 0 14px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.ndv-order-head small { color: var(--ndv-muted); }
.ndv-order-st { padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 13px; font-weight: 600; }
.ndv-order-st-completed { background: var(--ndv-ok-50); color: var(--ndv-ok); }
.ndv-order-st-processing { background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-order-st-pending, .ndv-order-st-on-hold { background: var(--ndv-warn-50); color: var(--ndv-warn); }
.ndv-order-st-cancelled, .ndv-order-st-failed, .ndv-order-st-refunded { background: var(--ndv-bad-50); color: var(--ndv-bad); }
.ndv-order-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ndv-order-notes { padding: 14px 18px; margin: 0 0 14px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); }
.ndv-order-notes h4 { margin: 0 0 8px; font-size: 15px; color: var(--ndv-ink); }
.ndv-order-note small { color: var(--ndv-muted); }
.ndv-order-note div { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-style: normal; }
.ndv-order .woocommerce-order-details__title { font-size: 17px; margin: 4px 0 10px; color: var(--ndv-ink); text-transform: none; }
.ndv-list-table td a { text-decoration: none !important; }

/* ---------- Cửa sổ Gia hạn theo gói ---------- */
.ndv-rn { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; overflow-y: auto; }
.ndv-rn[hidden] { display: none !important; }
body.ndv-rn-lock { overflow: hidden; }
.ndv-rn-box { position: relative; width: 100%; max-width: 540px; background: var(--ndv-card); border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .28); padding: 24px; color: var(--ndv-text); font-size: 14px; line-height: 1.45; }
.ndv-rn-box h3 { margin: 0 32px 4px 0; font-size: 19px; font-weight: 700; color: var(--ndv-ink); }
.ndv-rn-sub { margin: 0 0 20px; color: var(--ndv-muted); font-size: 13px; }
.ndv-rn-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ndv-muted); font-size: 24px; line-height: 34px; text-align: center; cursor: pointer; }
.ndv-rn-x:hover { background: var(--ndv-bg); color: var(--ndv-ink); }
.ndv-rn-label { margin: 0 0 10px; color: var(--ndv-ink); font-size: 14px; font-weight: 700; }
.ndv-rn-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.ndv-rn-step[data-s="2"] .ndv-rn-opts { grid-template-columns: 1fr 1fr; }
.ndv-rn-opt { position: relative; display: block; margin: 0 !important; padding: 0; cursor: pointer; font-weight: 400; }
.ndv-rn-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ndv-rn-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; height: 100%; box-sizing: border-box; padding: 14px 12px 12px; border: 1.5px solid var(--ndv-line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.ndv-rn-opt:hover .ndv-rn-card { border-color: #9db8f2; }
.ndv-rn-opt > input:checked + .ndv-rn-card { border-color: var(--ndv-primary); background: var(--ndv-primary-50); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.ndv-rn-opt > input:focus-visible + .ndv-rn-card { outline: 2px solid var(--ndv-primary); outline-offset: 2px; }
.ndv-rn-per { color: var(--ndv-ink); font-size: 14px; font-weight: 700; }
.ndv-rn-price { color: var(--ndv-ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ndv-rn-opt > input:checked + .ndv-rn-card .ndv-rn-price { color: var(--ndv-primary); }
.ndv-rn-pm { color: var(--ndv-muted); font-size: 12px; white-space: nowrap; }
.ndv-rn-save { position: absolute; top: -9px; right: 8px; padding: 1px 7px; border-radius: 999px; background: var(--ndv-ok); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; }
.ndv-rn-gw .ndv-rn-pm { white-space: normal; }
.ndv-rn-coupon { display: flex; gap: 8px; margin: 0 0 8px; }
.ndv-rn-coupon input { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--ndv-line); border-radius: 10px; box-shadow: none; font-size: 14px; }
.ndv-rn-coupon input:focus { border-color: var(--ndv-primary); }
.ndv-rn-coupon .ndv-btn { height: 40px; margin: 0; padding: 0 16px; white-space: nowrap; }
.ndv-rn-msg { margin: 0 0 8px; color: #b91c1c; font-size: 13px; }
.ndv-rn-msg.is-ok { color: var(--ndv-ok); }
.ndv-rn-sum { width: 100%; margin: 8px 0 18px; padding: 4px 0; border: 0; border-collapse: separate; border-radius: 12px; background: var(--ndv-bg); font-size: 14px; }
.ndv-rn-sum td { padding: 9px 0 !important; border: 0; border-bottom: 1px dashed var(--ndv-line); color: var(--ndv-text); }
.ndv-rn-sum td:first-child { padding-left: 14px !important; }
.ndv-rn-sum td:last-child { padding-right: 14px !important; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ndv-rn-sum .ndv-rn-discount { color: var(--ndv-ok); }
.ndv-rn-sum .ndv-rn-total td { border-bottom: 0; color: var(--ndv-ink); font-size: 16px; font-weight: 700; }
.ndv-rn-sum .ndv-rn-total .ndv-rn-totalv { color: var(--ndv-primary); font-size: 18px; }
.ndv-rn-sum.is-busy { opacity: .5; }
.ndv-rn-box .ndv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ndv-rn-next { width: 100%; height: 46px; margin: 0; font-size: 15px; }
.ndv-rn-actions { display: flex; gap: 10px; }
.ndv-rn-actions .ndv-btn { height: 46px; margin: 0; }
.ndv-rn-actions [type=submit] { flex: 1; font-size: 15px; }
.ndv-rn-actions [type=submit].is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 560px) {
	.ndv-rn { padding-top: 12px; }
	.ndv-rn-box { padding: 20px 16px 16px; }
	.ndv-rn-opts { grid-template-columns: 1fr 1fr; }
	.ndv-rn-step[data-s="2"] .ndv-rn-opts { grid-template-columns: 1fr; }
}

/* Bảng proxy: Flatsome bỏ padding cột đầu/cuối của bảng → ô tích dính sát viền. */
.woocommerce-account .ndv-pc-table th:first-child, .woocommerce-account .ndv-pc-table td:first-child { padding-left: 12px !important; }
.woocommerce-account .ndv-pc-table th:last-child, .woocommerce-account .ndv-pc-table td:last-child { padding-right: 12px !important; }
.woocommerce-account .ndv-pc-table input[type=checkbox], .woocommerce-account .ndv-pc-bar input[type=checkbox] { display: block; width: 16px; height: 16px; margin: 0 !important; vertical-align: middle; }
.woocommerce-account .ndv-pc-allwrap input[type=checkbox] { display: inline-block; }

/* ---------- Trang xem đơn: khung gia hạn + thanh toán QR gọn trong một màn hình ---------- */
.ndv-order { scroll-margin-top: 120px; }
.ndv-order-renew { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; margin: 0 0 14px; border: 1px solid #fde68a; border-radius: var(--ndv-radius); background: #fffbeb; }
.ndv-order-renew strong { display: block; color: var(--ndv-ink); font-size: 15px; }
.ndv-order-renew small { color: var(--ndv-text); }
.ndv-order-renew.is-ok { display: block; border-color: #bbf7d0; background: var(--ndv-ok-50); color: var(--ndv-ok); font-weight: 600; }
.ndv-order-renew-change { padding: 7px 14px; border: 1px solid var(--ndv-line); border-radius: 9px; background: #fff; color: var(--ndv-primary) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.ndv-order-renew-change:hover { border-color: var(--ndv-primary); }
.ndv-order .ndv-qrp { max-width: none; margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.ndv-order .ndv-qrp-heading { margin: 0 0 4px; font-size: 17px; color: var(--ndv-ink); }
.ndv-order .ndv-qrp-instructions p { margin: 0 0 12px; color: var(--ndv-muted); font-size: 14px; }
.ndv-order .ndv-qrp-panel.is-active { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; }
.ndv-order .ndv-qrp-frame { grid-column: 1; grid-row: 1; width: 260px; margin: 0; }
.ndv-order .ndv-qrp-download { grid-column: 1; grid-row: 2; margin: 6px 0 0; text-align: center; font-size: 13px; }
.ndv-order .ndv-qrp-info, .ndv-order .ndv-qrp-note { grid-column: 2; }
.ndv-order .ndv-qrp-info { grid-row: 1 / span 2; width: 100%; margin: 0; font-size: 14px; border-collapse: collapse; }
.ndv-order .ndv-qrp-info th, .ndv-order .ndv-qrp-info td { padding: 11px 0 !important; border: 0; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.ndv-order .ndv-qrp-info th { width: 150px; color: var(--ndv-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.ndv-order .ndv-qrp-info tr:last-child th, .ndv-order .ndv-qrp-info tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
	.ndv-order .ndv-qrp-panel.is-active { display: block; }
	.ndv-order .ndv-qrp-frame { margin: 0 auto; }
	.ndv-order .ndv-qrp-download { margin-bottom: 12px; }
}

/* ---------- Lịch sử mua hàng dạng cha – con ---------- */
.ndv-oh .ndv-oh-main { display: flex; align-items: flex-start; gap: 10px; }
.ndv-oh .ndv-oh-main small { display: block; margin-top: 3px; color: var(--ndv-muted); font-size: 12.5px; }
.ndv-oh-toggle, .ndv-oh-sp { flex: 0 0 26px; width: 26px; height: 26px; }
.ndv-oh-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--ndv-line); border-radius: 8px; background: #fff; color: var(--ndv-muted); font-size: 12px; line-height: 1; cursor: pointer; }
.ndv-oh-toggle:hover { border-color: var(--ndv-primary); color: var(--ndv-primary); }
.ndv-oh-toggle span { display: inline-block; transition: transform .15s; }
.ndv-oh-parent.is-open .ndv-oh-toggle span { transform: rotate(90deg); }
.ndv-oh-no { color: var(--ndv-ink) !important; font-weight: 700; text-decoration: none !important; }
.ndv-oh-no:hover { color: var(--ndv-primary) !important; }
.ndv-oh-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.ndv-oh-tag.is-new { background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-oh-count { margin-left: 6px; color: var(--ndv-muted); font-size: 12px; }
.ndv-oh tr.ndv-oh-child td { background: #fbfcfe; padding-top: 10px !important; padding-bottom: 10px !important; }
.ndv-oh tr.ndv-oh-child[hidden] { display: none; }
.ndv-oh .ndv-oh-sub { padding-left: 36px; }
.ndv-oh-arrow { color: #f59e0b; font-weight: 700; line-height: 20px; }
.ndv-oh-renew { color: #b45309 !important; font-weight: 700; text-decoration: none !important; }
.ndv-oh-renew:hover { text-decoration: underline !important; }
.ndv-oh-code { margin-left: 6px; color: #94a3b8; font-size: 12px; }
.ndv-oh-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0 0; }
.ndv-oh-pages .ndv-btn { margin: 0; min-width: 36px; justify-content: center; }
.ndv-order-for { margin-left: 6px; color: var(--ndv-muted); font-size: 14px; font-weight: 500; }
.ndv-order-for a { color: var(--ndv-primary) !important; font-weight: 600; }

/* Lịch sử gia hạn trong thẻ đơn thuê */
.ndv-r-hist { margin: 14px 0 0; border: 1px solid var(--ndv-line); border-radius: 12px; background: #fff; }
.ndv-r-hist summary { padding: 11px 14px; color: var(--ndv-ink); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.ndv-r-hist summary::-webkit-details-marker { display: none; }
.ndv-r-hist summary::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--ndv-muted); transition: transform .15s; }
.ndv-r-hist[open] summary::before { transform: rotate(90deg); }
.ndv-r-hist-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
.ndv-r-hist-table th, .ndv-r-hist-table td { padding: 8px 14px !important; border: 0; border-top: 1px solid #f1f5f9; text-align: left; vertical-align: middle; }
.ndv-r-hist-table th { background: var(--ndv-bg); color: var(--ndv-muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.ndv-r-hist-table a { color: var(--ndv-primary) !important; font-weight: 600; text-decoration: none !important; }
.ndv-r-hist-table .ndv-order-st { padding: 2px 9px; font-size: 12px; }
.ndv-r-hint.is-late { color: #b45309; font-weight: 600; }
.ndv-rn-rule { margin: -12px 0 18px; padding: 9px 12px; border-radius: 10px; background: var(--ndv-bg); color: var(--ndv-text); font-size: 13px; }
.ndv-rn-rule.is-late { background: #fffbeb; color: #92400e; }
@media (max-width: 760px) {
	.ndv-oh .ndv-oh-sub { padding-left: 0; }
	.ndv-r-hist-table thead { display: none; }
	.ndv-r-hist-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 14px; border-top: 1px solid #f1f5f9; }
	.ndv-r-hist-table td { padding: 0 !important; border: 0; }
	.ndv-r-hist-table td::before { content: attr(data-l); display: block; color: var(--ndv-muted); font-size: 11px; }
}
@media (max-width: 700px) {
	.ndv-oh td[data-l="Đơn hàng"] { grid-column: 1 / -1; }
	.ndv-oh td[data-l="Đơn hàng"]::before { display: none !important; }
	.ndv-oh tr.ndv-oh-child { padding-left: 30px; background: #fbfcfe; }
	.ndv-oh tr.ndv-oh-child td, .ndv-oh tr:hover td { background: transparent !important; }
	.ndv-oh .ndv-order-st { display: inline-block; margin-top: 3px; }
	.ndv-oh .ndv-list-act { grid-column: 2; grid-row: 2 / span 2; align-self: center; text-align: right; }
}

/* Lịch sử mua hàng: tình trạng dịch vụ, đơn huỷ, dòng cha bấm được */
.ndv-oh tr.ndv-oh-parent.has-kids { cursor: pointer; }
.ndv-oh-svc { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12.5px; font-weight: 600; }
.ndv-oh-svc i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ndv-oh-svc a { margin-left: 4px; color: var(--ndv-primary) !important; font-weight: 600; text-decoration: none !important; }
.ndv-oh-svc a:hover { text-decoration: underline !important; }
.ndv-oh-svc.is-ok { color: var(--ndv-ok); }
.ndv-oh-svc.is-soon { color: #d97706; }
.ndv-oh-svc.is-late { color: #dc2626; }
.ndv-oh-svc.is-end { color: var(--ndv-muted); font-weight: 500; }
.ndv-oh-arrow { font-size: 16px; font-weight: 800; }
.ndv-oh-toggle { width: 28px; height: 28px; flex-basis: 28px; font-size: 13px; }
.ndv-oh tr.ndv-oh-child.is-void td { color: #94a3b8; }
.ndv-oh tr.ndv-oh-child.is-void .ndv-oh-renew { color: #94a3b8 !important; font-weight: 600; text-decoration: line-through !important; }
.ndv-oh tr.ndv-oh-child.is-void .ndv-oh-arrow { color: #cbd5e1; }
.ndv-oh tr.ndv-oh-voidrow td { padding: 6px 16px 6px 82px !important; }
.ndv-oh-showvoid { min-height: 0; margin: 0; padding: 2px 0; border: 0; background: none; color: var(--ndv-muted); font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ndv-oh-showvoid:hover { color: var(--ndv-primary); }
@media (max-width: 700px) {
	.ndv-oh tr.ndv-oh-voidrow td { padding: 0 !important; grid-column: 1 / -1; }
}

/* ---------- Ticket hỗ trợ ---------- */
.ndv-tk-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ndv-tk-head h3 { margin: 0 0 4px; font-size: 20px; color: var(--ndv-ink); }
.ndv-tk-head p { margin: 0; color: var(--ndv-muted); font-size: 14px; }
.ndv-tk-head .ndv-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ndv-tk-tabs a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--ndv-line); border-radius: 999px; background: var(--ndv-card); color: var(--ndv-text) !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.ndv-tk-tabs a span { margin-left: 5px; color: var(--ndv-muted); font-weight: 500; }
.ndv-tk-tabs a.is-on { background: var(--ndv-primary-50); border-color: #c7d6fe; color: var(--ndv-primary) !important; }
.ndv-tk-empty { padding: 40px 16px; text-align: center; color: var(--ndv-muted); }
.ndv-tk-table tr.ndv-tk-row { cursor: pointer; }
.ndv-tk-subj { display: block; color: var(--ndv-ink) !important; font-weight: 700; text-decoration: none !important; }
.ndv-tk-row.is-new .ndv-tk-subj::after { content: 'Mới'; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ndv-primary); color: #fff; font-size: 11px; vertical-align: 2px; }
.ndv-tk-table small { display: block; margin-top: 2px; color: var(--ndv-muted); font-size: 12.5px; }
.ndv-tk-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ndv-tk-st-open { background: var(--ndv-warn-50); color: var(--ndv-warn); }
.ndv-tk-st-answered { background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-tk-st-closed { background: #f1f5f9; color: #64748b; }
.ndv-tk-pr { font-size: 13px; font-weight: 600; }
.ndv-tk-pr-high { color: #dc2626; }
.ndv-tk-pr-low { color: var(--ndv-muted); }
.ndv-tk-contact { margin-top: 14px; color: var(--ndv-muted); font-size: 13.5px; }

.ndv-tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ndv-tk-side .ndv-panel { margin-bottom: 14px; }
.ndv-tk-side h4 { margin: 0 0 10px; font-size: 15px; color: var(--ndv-ink); }
.ndv-tk-tips { margin: 0; padding-left: 18px; color: var(--ndv-text); font-size: 13.5px; }
.ndv-tk-tips li { margin-bottom: 6px; }
.ndv-tk-recent { display: block; padding: 9px 0; border-top: 1px solid var(--ndv-line); text-decoration: none !important; }
.ndv-tk-recent small { display: flex; justify-content: space-between; color: var(--ndv-muted); font-size: 11.5px; }
.ndv-tk-recent strong { display: block; color: var(--ndv-ink); font-size: 13.5px; }
.ndv-tk-recent em { color: var(--ndv-muted); font-size: 11.5px; font-style: normal; }
.ndv-tk-all { display: block; margin-top: 8px; text-align: center; font-size: 13px; font-weight: 600; }

.ndv-tk-form h3 { margin: 0 0 4px; font-size: 18px; color: var(--ndv-ink); }
.ndv-tk-lead { margin: 0 0 14px; color: var(--ndv-muted); font-size: 13.5px; }
.ndv-tk-l { display: block; margin: 16px 0 7px; color: var(--ndv-ink); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.ndv-tk-l b { color: #dc2626; }
.ndv-tk-l small { color: var(--ndv-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.ndv-tk-in { width: 100%; margin: 0; padding: 9px 12px; border: 1px solid var(--ndv-line); border-radius: 10px; background: #fff; box-shadow: none; font-size: 14px; }
.ndv-tk-in:focus { border-color: var(--ndv-primary); outline: none; box-shadow: 0 0 0 3px rgba(29, 78, 216, .1); }
select.ndv-tk-in { height: 42px; }
textarea.ndv-tk-in { min-height: 140px; resize: vertical; font-family: inherit; line-height: 1.5; }
.ndv-tk-in + .ndv-tk-drop { margin-top: 10px; }
.ndv-tk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ndv-tk-card { position: relative; margin: 0 !important; cursor: pointer; font-weight: 400; }
.ndv-tk-card input { position: absolute; opacity: 0; pointer-events: none; }
.ndv-tk-card > span { display: block; height: 100%; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--ndv-line); border-radius: 10px; background: #fff; color: var(--ndv-ink); font-size: 14px; font-weight: 600; }
.ndv-tk-card small { display: block; margin-top: 2px; color: var(--ndv-muted); font-size: 12px; font-weight: 400; }
.ndv-tk-card:hover > span { border-color: #9db8f2; }
.ndv-tk-card input:checked + span { border-color: var(--ndv-primary); background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-tk-card-high input:checked + span { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.ndv-tk-quick { display: flex; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; }
.ndv-tk-quick[hidden] { display: none; }
.ndv-tk-quick-ic { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #f59e0b; color: #fff; text-align: center; line-height: 32px; }
.ndv-tk-quick p { margin: 2px 0 8px; color: #92400e; font-size: 13px; }
.ndv-tk-quick .ndv-btn { margin: 0; }
.ndv-tk-drop { position: relative; padding: 16px; border: 1.5px dashed #cbd5e1; border-radius: 12px; background: var(--ndv-bg); text-align: center; transition: border-color .15s, background .15s; }
.ndv-tk-drop.is-over { border-color: var(--ndv-primary); background: var(--ndv-primary-50); }
.ndv-tk-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ndv-tk-drop-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ndv-text); font-size: 13.5px; pointer-events: none; }
.ndv-tk-drop-hint span { color: var(--ndv-muted); font-size: 12px; }
.ndv-tk-files { position: relative; z-index: 1; margin: 10px 0 0; padding: 0; list-style: none; text-align: left; }
.ndv-tk-files:empty { display: none; }
.ndv-tk-files li { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 6px 10px; border: 1px solid var(--ndv-line); border-radius: 8px; background: #fff; font-size: 13px; }
.ndv-tk-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ndv-tk-files li small { color: var(--ndv-muted); }
.ndv-tk-files li.is-bad { border-color: #fecaca; color: #b91c1c; }
.ndv-tk-files li button { min-height: 0; margin: 0; padding: 0 6px; border: 0; background: none; color: var(--ndv-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ndv-tk-send { margin: 18px 0 0; min-width: 160px; justify-content: center; }
.ndv-tk-send.is-busy { opacity: .6; pointer-events: none; }
.ndv-tk-actions { display: flex; justify-content: flex-end; gap: 10px; }
.ndv-tk-actions .ndv-btn { margin: 18px 0 0; }
.ndv-tk-close { color: var(--ndv-muted) !important; }

.ndv-tk-view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ndv-tk-view-head h3 { margin: 0 0 4px; font-size: 18px; color: var(--ndv-ink); }
.ndv-tk-view-head small { color: var(--ndv-muted); font-size: 13px; }
.ndv-tk-thread { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.ndv-tk-msg { max-width: 82%; padding: 12px 16px; border: 1px solid var(--ndv-line); border-radius: 14px; background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.ndv-tk-msg.is-me { align-self: flex-end; border-top-right-radius: 4px; background: #f8fafc; }
.ndv-tk-msg.is-admin { align-self: flex-start; border-top-left-radius: 4px; border-color: #c7d6fe; background: var(--ndv-primary-50); }
.ndv-tk-who { margin-bottom: 4px; font-size: 12.5px; }
.ndv-tk-who strong { color: var(--ndv-ink); }
.ndv-tk-who small { margin-left: 6px; color: var(--ndv-muted); }
.ndv-tk-msg.is-admin .ndv-tk-who strong { color: var(--ndv-primary); }
.ndv-tk-body p { margin: 0 0 6px; font-size: 14px; color: var(--ndv-text); word-break: break-word; }
.ndv-tk-body p:last-child { margin: 0; }
.ndv-tk-att { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ndv-tk-img img { display: block; max-width: 180px; max-height: 130px; border: 1px solid var(--ndv-line); border-radius: 8px; object-fit: cover; }
.ndv-tk-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ndv-line); border-radius: 8px; background: #fff; font-size: 13px; text-decoration: none !important; }
.ndv-tk-file small { color: var(--ndv-muted); }
@media (max-width: 900px) {
	.ndv-tk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ndv-tk-cards { grid-template-columns: 1fr; }
	.ndv-tk-msg { max-width: 100%; }
}

/* Trang đơn gia hạn: dịch vụ là chính, mã đơn gia hạn chỉ là "mã thanh toán" */
.ndv-rh { align-items: flex-start; }
.ndv-rh.is-pending { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb, #fff 70%); }
.ndv-rh.is-paid { border-color: #bbf7d0; background: linear-gradient(180deg, var(--ndv-ok-50), #fff 70%); }
.ndv-rh h3 { margin: 0 0 4px; font-size: 20px; color: var(--ndv-ink); }
.ndv-rh.is-paid h3 { color: var(--ndv-ok); }
.ndv-rh h3 a { color: var(--ndv-primary) !important; text-decoration: none !important; }
.ndv-rh-sub { margin: 0 0 8px; color: var(--ndv-text); font-size: 14px; }
.ndv-rh-range { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ndv-line); color: var(--ndv-ink); font-size: 14px; font-weight: 600; white-space: pre-wrap; }
.ndv-rh-note { margin: 8px 0 0; color: var(--ndv-muted); font-size: 12.5px; }
.ndv-rh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ndv-rh-side .ndv-btn { margin: 0; }
.ndv-rh-foot { margin: 14px 0 0; color: #94a3b8; font-size: 12px; text-align: right; }
@media (max-width: 600px) {
	.ndv-rh { flex-direction: column; }
	.ndv-rh-side { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
.ndv-me-info { min-width: 0; }
.ndv-me-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Giao diện app (khách đã đăng nhập): toàn màn hình, thanh trên + menu trái
   ========================================================================== */
body.ndv-app { margin: 0; background: #f4f6fa !important; color: var(--ndv-text); }
body.ndv-app *, body.ndv-app *::before, body.ndv-app *::after { box-sizing: border-box; }
.ndv-top { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--ndv-line); }
.admin-bar .ndv-top { top: 32px; }
.ndv-top-logo { display: flex; align-items: center; height: 64px; }
.ndv-top-logo img { display: block; max-height: 42px; width: auto; }
.ndv-top-logo strong { color: var(--ndv-ink); font-size: 18px; }
.ndv-top-burger { display: none; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--ndv-line); border-radius: 10px; background: #fff; color: var(--ndv-ink); align-items: center; justify-content: center; cursor: pointer; }
.ndv-top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ndv-top-new { margin: 0 !important; display: inline-flex; align-items: center; gap: 6px; }
.ndv-top-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ndv-line); border-radius: 10px; color: var(--ndv-ink) !important; }
.ndv-top-ic:hover { border-color: var(--ndv-primary); color: var(--ndv-primary) !important; }
.ndv-top-ic b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.ndv-top-user { position: relative; }
.ndv-top-user summary { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border: 1px solid var(--ndv-line); border-radius: 999px; background: #fff; color: var(--ndv-ink); font-size: 14px; font-weight: 600; list-style: none; cursor: pointer; }
.ndv-top-user summary::-webkit-details-marker { display: none; }
.ndv-top-user summary .ndv-ic { transform: rotate(90deg); color: var(--ndv-muted); }
.ndv-top-av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ndv-primary); color: #fff; font-weight: 700; }
.ndv-top-menu { position: absolute; right: 0; top: 48px; width: 240px; padding: 6px; border: 1px solid var(--ndv-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); }
.ndv-top-menu-head { padding: 10px 12px; border-bottom: 1px solid var(--ndv-line); margin-bottom: 4px; }
.ndv-top-menu-head strong { display: block; color: var(--ndv-ink); }
.ndv-top-menu-head small { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--ndv-muted); }
.ndv-top-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--ndv-text) !important; font-size: 14px; text-decoration: none !important; }
.ndv-top-menu a:hover { background: var(--ndv-bg); }
.ndv-top-menu a.is-logout { color: #dc2626 !important; }

body.ndv-app .ndv-app-body > .woocommerce { margin: 0; }
body.ndv-app .ndv-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; margin: 0; min-height: calc(100vh - 64px); align-items: stretch; }
body.ndv-app .ndv-side { position: sticky; top: 64px; align-self: start; display: block; height: calc(100vh - 64px); overflow-y: auto; padding: 16px 12px 24px; background: #fff; border-right: 1px solid var(--ndv-line); }
body.admin-bar.ndv-app .ndv-side { top: 96px; height: calc(100vh - 96px); }
body.ndv-app .ndv-side .ndv-me { display: none; }
body.ndv-app .ndv-side .ndv-me-bal { margin-bottom: 12px; }
body.ndv-app .ndv-main { padding: 24px 28px 40px !important; max-width: 1480px; }

.ndv-an-group + .ndv-an-group { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ndv-line); }
.ndv-an-title { margin: 0 10px 6px; color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ndv-an ul { margin: 0; padding: 0; list-style: none; }
.ndv-an li { margin: 0 0 2px; padding: 0; }
.ndv-an-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ndv-text) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; list-style: none; }
.ndv-an-link::-webkit-details-marker { display: none; }
.ndv-an-link .ndv-ic { flex: 0 0 auto; color: var(--ndv-muted); }
.ndv-an-link span { flex: 1; min-width: 0; }
.ndv-an-link:hover { background: var(--ndv-bg); color: var(--ndv-ink) !important; }
.ndv-an-link.is-on { background: var(--ndv-primary); color: #fff !important; }
.ndv-an-link.is-on .ndv-ic { color: #fff; }
.ndv-an-link.is-in { color: var(--ndv-primary) !important; }
.ndv-an-link.is-in .ndv-ic { color: var(--ndv-primary); }
.ndv-an-link.is-logout, .ndv-an-link.is-logout .ndv-ic { color: #dc2626 !important; }
.ndv-an-sub > summary > .ndv-ic:last-child { transition: transform .15s; }
.ndv-an-sub[open] > summary > .ndv-ic:last-child { transform: rotate(90deg); }
.ndv-an-sub ul { margin: 2px 0 6px 20px; padding-left: 10px; border-left: 1px solid var(--ndv-line); }
.ndv-an-sub ul .ndv-an-link { min-height: 36px; font-size: 13.5px; font-weight: 500; }
.ndv-an-sub ul .ndv-an-link .ndv-ic { width: 16px; height: 16px; }

.ndv-app-mask { display: none; }
@media (max-width: 900px) {
	.ndv-top { padding: 0 12px; gap: 10px; }
	.ndv-top-burger { display: inline-flex; }
	.ndv-top-new span, .ndv-top-name { display: none; }
	.ndv-top-new { width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
	body.ndv-app .ndv-shell { grid-template-columns: minmax(0, 1fr); }
	body.ndv-app .ndv-side { position: fixed; top: 64px; left: 0; bottom: 0; z-index: 999; width: 270px; height: auto; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(15, 23, 42, .2); }
	body.ndv-app.ndv-side-open .ndv-side { transform: none; }
	body.ndv-app.ndv-side-open .ndv-app-mask { display: block; position: fixed; inset: 64px 0 0 0; z-index: 998; background: rgba(15, 23, 42, .4); }
	body.ndv-app .ndv-main { padding: 16px 14px 32px !important; }
}

/* Dashboard */
.ndv-dash-hi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.ndv-dash-hi span { color: var(--ndv-muted); font-size: 14px; }
.ndv-dash-hi h2 { margin: 0; color: var(--ndv-ink); font-size: 24px; text-transform: none; letter-spacing: 0; }
.ndv-dash-hi .ndv-btn { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.ndv-dash-bal { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--ndv-line); border-radius: 12px; background: #fff; }
.ndv-dash-bal a { margin-left: auto; font-weight: 600; }
.ndv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.ndv-kpi { position: relative; display: block; overflow: hidden; padding: 18px 18px 20px; border: 1px solid var(--ndv-line); border-radius: 14px; background: #fff; text-decoration: none !important; box-shadow: var(--ndv-shadow); transition: transform .15s, box-shadow .15s; }
a.ndv-kpi[href]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.ndv-kpi::after { content: ''; position: absolute; left: 18px; right: 40%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--k); }
.ndv-kpi-num { display: block; color: var(--k); font-size: 32px; font-weight: 700; line-height: 1.1; }
.ndv-kpi-label { display: block; margin-top: 6px; color: var(--ndv-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ndv-kpi-ic { position: absolute; top: 16px; right: 16px; color: var(--k); opacity: .25; }
.ndv-kpi-ic .ndv-ic { width: 40px; height: 40px; }
.is-blue { --k: #2563eb; } .is-amber { --k: #d97706; } .is-violet { --k: #7c3aed; } .is-red { --k: #dc2626; } .is-green { --k: #16a34a; } .is-teal { --k: #0d9488; } .is-slate { --k: #475569; }
.ndv-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ndv-dcard { overflow: hidden; border: 1px solid var(--ndv-line); border-top: 3px solid var(--k); border-radius: 14px; background: #fff; box-shadow: var(--ndv-shadow); }
.ndv-dcard header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ndv-line); }
.ndv-dcard header span { display: flex; align-items: center; gap: 8px; }
.ndv-dcard h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ndv-ink); font-size: 15px; text-transform: none; letter-spacing: 0; }
.ndv-dcard h3 .ndv-ic { color: var(--k); }
.ndv-dcard .ndv-btn { margin: 0; }
.ndv-dcard-more { color: var(--k) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.ndv-dcard-empty { padding: 22px 16px; color: var(--ndv-muted); font-size: 14px; }
.ndv-drow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f1f5f9; text-decoration: none !important; }
.ndv-drow:last-child { border-bottom: 0; }
.ndv-drow:hover { background: #fafcff; }
.ndv-drow > span { min-width: 0; }
.ndv-drow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ndv-ink); font-size: 14px; }
.ndv-drow small { display: block; color: var(--ndv-muted); font-size: 12.5px; }
.ndv-dbadge { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.ndv-dbadge.is-ok, .ndv-dbadge.is-completed { background: var(--ndv-ok-50); color: var(--ndv-ok); }
.ndv-dbadge.is-soon, .ndv-dbadge.is-pending, .ndv-dbadge.is-on-hold, .ndv-dbadge.is-t-open { background: var(--ndv-warn-50); color: var(--ndv-warn); }
.ndv-dbadge.is-late, .ndv-dbadge.is-cancelled, .ndv-dbadge.is-failed { background: #fef2f2; color: #dc2626; }
.ndv-dbadge.is-processing, .ndv-dbadge.is-t-answered { background: var(--ndv-primary-50); color: var(--ndv-primary); }
@media (max-width: 1100px) { .ndv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ndv-dash-grid { grid-template-columns: 1fr; } .ndv-kpi-num { font-size: 26px; } }

/* Đăng ký dịch vụ */
.ndv-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--ndv-line); border-radius: 14px; background: #fff; }
.ndv-steps span { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 120px; color: var(--ndv-muted); font-size: 14px; }
.ndv-steps b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ndv-bg); color: var(--ndv-muted); font-size: 13px; }
.ndv-steps .is-on { color: var(--ndv-ink); font-weight: 600; }
.ndv-steps .is-on b { background: var(--ndv-primary); color: #fff; }
.ndv-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ndv-scard { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--ndv-line); border-radius: 14px; background: #fff; text-decoration: none !important; box-shadow: var(--ndv-shadow); transition: transform .15s, border-color .15s; }
.ndv-scard:hover { transform: translateY(-2px); border-color: var(--k); }
.ndv-scard-top { display: flex; gap: 12px; }
.ndv-scard-ic { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; height: 44px; border-radius: 12px; background: var(--k); color: #fff; }
.ndv-scard strong { display: block; color: var(--ndv-ink); font-size: 15.5px; }
.ndv-scard small { display: block; margin-top: 2px; color: var(--ndv-muted); font-size: 12.5px; line-height: 1.45; }
.ndv-scard-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--ndv-line); color: var(--ndv-muted); font-size: 13px; }
.ndv-scard-foot b { display: inline-flex; align-items: center; gap: 2px; color: var(--k); }
@media (max-width: 1100px) { .ndv-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ndv-sgrid { grid-template-columns: 1fr; } }

/* Trang đơn: thẻ dịch vụ, dòng thời gian, hoá đơn thu gọn */
.ndv-svc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ndv-svc-head h4 { margin: 0 0 2px; color: var(--ndv-ink); font-size: 17px; }
.ndv-svc-head h4 a { color: var(--ndv-primary) !important; text-decoration: none !important; }
.ndv-svc-head h4 small { color: var(--ndv-muted); font-size: 14px; font-weight: 500; }
.ndv-svc-act { display: flex; gap: 8px; }
.ndv-svc-act .ndv-btn { margin: 0; }
.ndv-tl { margin: 0 0 14px; padding: 16px 18px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); box-shadow: var(--ndv-shadow); }
.ndv-tl h4 { margin: 0 0 12px; color: var(--ndv-ink); font-size: 15px; }
.ndv-tl ol { position: relative; margin: 0; padding: 0; list-style: none; }
.ndv-tl ol::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--ndv-line); }
.ndv-tl li { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 10px 8px 28px; border-radius: 10px; }
.ndv-tl li.is-cur { background: var(--ndv-primary-50); }
.ndv-tl-dot { position: absolute; left: 1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 2px solid #fff; border-radius: 50%; background: var(--ndv-ok); box-shadow: 0 0 0 2px var(--ndv-ok); }
.ndv-tl li.is-wait .ndv-tl-dot { background: #fff; box-shadow: 0 0 0 2px #f59e0b; }
.ndv-tl-main { flex: 1; min-width: 0; }
.ndv-tl-main strong { display: block; color: var(--ndv-ink); font-size: 14px; }
.ndv-tl li.is-wait .ndv-tl-main strong { color: #b45309; }
.ndv-tl-main small { color: var(--ndv-muted); font-size: 12.5px; }
.ndv-tl-side { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ndv-tl-side a { font-weight: 600; }
.ndv-tl-side .ndv-btn { margin: 0; }
.ndv-inv { margin: 0 0 14px; border: 1px solid var(--ndv-line); border-radius: var(--ndv-radius); background: var(--ndv-card); }
.ndv-inv > summary { padding: 13px 18px; color: var(--ndv-ink); font-weight: 700; cursor: pointer; list-style: none; }
.ndv-inv > summary::-webkit-details-marker { display: none; }
.ndv-inv > summary::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--ndv-muted); transition: transform .15s; }
.ndv-inv[open] > summary::before { transform: rotate(90deg); }
.ndv-inv > summary small { margin-left: 8px; color: var(--ndv-muted); font-weight: 500; }
.ndv-inv[open] { padding-bottom: 6px; }
.ndv-inv > :not(summary) { margin-left: 18px; margin-right: 18px; }
@media (max-width: 600px) { .ndv-tl li { flex-wrap: wrap; } .ndv-inv > summary small { display: block; margin: 4px 0 0 20px; } }

/* ---------- Đăng ký dịch vụ: thẻ gói + cửa sổ đặt hàng ---------- */
.ndv-pk-tabs { margin-bottom: 16px; }
.ndv-pkg { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ndv-pk { position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px 20px 20px; border: 1px solid var(--ndv-line); border-radius: 16px; background: #fff; box-shadow: var(--ndv-shadow); text-align: center; transition: transform .15s, border-color .15s; }
.ndv-pk:hover { transform: translateY(-2px); border-color: var(--k); }
.ndv-pk-tag { position: absolute; top: 14px; right: 14px; padding: 2px 9px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; }
.ndv-pk-ic, .ndv-om-ic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 18px; background: color-mix(in srgb, var(--k) 12%, #fff); color: var(--k); }
.ndv-pk-ic .ndv-ic { width: 34px; height: 34px; }
.ndv-pk h4 { margin: 0 0 8px; min-height: 44px; color: var(--ndv-ink); font-size: 16px; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.ndv-pk-price { margin-bottom: 14px; color: var(--k); font-size: 22px; font-weight: 800; }
.ndv-pk-price small { color: var(--ndv-muted); font-size: 12px; font-weight: 500; }
.ndv-pk-buy { width: 100%; height: 42px; min-height: 0; margin: 0; border: 1.5px solid var(--k); border-radius: 10px; background: #fff; color: var(--k); font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ndv-pk-buy:hover { background: var(--k); color: #fff; }
.ndv-pk ul { width: 100%; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.ndv-pk li { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 6px 0; border-top: 1px dashed #eef2f7; color: var(--ndv-text); font-size: 13.5px; }
.ndv-pk li .ndv-ic { flex: 0 0 16px; margin-top: 2px; color: var(--ndv-ok); }

.ndv-om { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px 16px; overflow-y: auto; background: rgba(15, 23, 42, .55); }
.ndv-om[hidden] { display: none !important; }
.ndv-om * { box-sizing: border-box; }
.ndv-om-box { width: 100%; max-width: 980px; margin: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); color: var(--ndv-text); font-size: 14px; }
.ndv-om-h { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--ndv-line); }
.ndv-om-ic { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.ndv-om-h h3 { margin: 0; color: var(--ndv-ink); font-size: 18px; text-transform: none; letter-spacing: 0; }
.ndv-om-h small { color: var(--ndv-muted); }
.ndv-om-x { margin-left: auto; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ndv-muted); font-size: 26px; line-height: 36px; cursor: pointer; }
.ndv-om-x:hover { background: var(--ndv-bg); }
.ndv-om-b { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.ndv-om-l { padding: 18px 22px 22px; }
.ndv-om-r { padding: 18px 22px 22px; border-left: 1px solid var(--ndv-line); background: var(--ndv-bg); }
.ndv-om-r h4 { margin: 0 0 8px; color: var(--ndv-ink); font-size: 15px; }
.ndv-om-lbl { display: block; margin: 16px 0 8px; color: var(--ndv-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.ndv-om-lbl:first-child { margin-top: 0; }
.ndv-om-lbl small { color: var(--ndv-muted); font-weight: 500; text-transform: none; }
.ndv-om-chips, .ndv-om-per { display: flex; flex-wrap: wrap; gap: 8px; }
.ndv-om-per { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.ndv-om-attrs label { position: relative; margin: 0 !important; cursor: pointer; font-weight: 400; }
.ndv-om-attrs input { position: absolute; opacity: 0; pointer-events: none; }
.ndv-om-attrs label > span { display: block; padding: 9px 14px; border: 1.5px solid var(--ndv-line); border-radius: 10px; background: #fff; color: var(--ndv-ink); }
.ndv-om-attrs b { font-size: 14px; font-weight: 600; }
.ndv-om-per label > span { height: 100%; padding: 10px 12px; }
.ndv-om-per b { display: block; font-weight: 700; }
.ndv-om-per em { display: block; color: var(--ndv-muted); font-size: 12.5px; font-style: normal; }
.ndv-om-per i { position: absolute; top: -9px; right: 8px; padding: 0 7px; border-radius: 999px; background: var(--ndv-ok); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 17px; }
.ndv-om-per i:empty { display: none; }
.ndv-om-attrs label:hover > span { border-color: #9db8f2; }
.ndv-om-attrs input:checked + span { border-color: var(--k, var(--ndv-primary)); background: color-mix(in srgb, var(--k, #1d4ed8) 8%, #fff); color: var(--k, var(--ndv-primary)); }
.ndv-om-attrs input:disabled + span { opacity: .45; cursor: not-allowed; }
.ndv-om-qty { display: inline-flex; overflow: hidden; border: 1px solid var(--ndv-line); border-radius: 10px; }
.ndv-om-qty button { width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; background: var(--ndv-bg); color: var(--ndv-ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.ndv-om-qty input { width: 60px; height: 40px; margin: 0; border: 0; box-shadow: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.ndv-om-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ndv-om-l textarea { width: 100%; margin: 0; padding: 9px 12px; border: 1px solid var(--ndv-line); border-radius: 10px; box-shadow: none; font: inherit; resize: vertical; }
.ndv-om-na { margin: 12px 0 0; color: #b91c1c; font-size: 13px; }
.ndv-om-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--ndv-line); }
.ndv-om-row b { color: var(--ndv-ink); white-space: nowrap; }
.ndv-om-row.is-disc b { color: var(--ndv-ok); }
.ndv-om-r .ndv-rn-coupon { margin: 12px 0 6px; }
.ndv-om-tot { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; color: var(--ndv-ink); font-weight: 700; }
.ndv-om-tot b { color: var(--k, var(--ndv-primary)); font-size: 24px; }
.ndv-om-exp { margin: 6px 0 14px; padding: 8px 10px; border: 1px solid var(--ndv-line); border-radius: 10px; background: #fff; font-size: 13px; }
.ndv-om-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ndv-om-pay label { position: relative; margin: 0 !important; cursor: pointer; font-weight: 400; }
.ndv-om-pay input { position: absolute; opacity: 0; pointer-events: none; }
.ndv-om-pay span { display: block; height: 100%; padding: 10px; border: 1.5px solid var(--ndv-line); border-radius: 10px; background: #fff; }
.ndv-om-pay b { display: block; color: var(--ndv-ink); font-size: 13.5px; }
.ndv-om-pay small { color: var(--ndv-muted); font-size: 12px; }
.ndv-om-pay input:checked + span { border-color: var(--ndv-primary); background: var(--ndv-primary-50); }
.ndv-om-pay input:checked + span b { color: var(--ndv-primary); }
.ndv-om-go { width: 100%; height: 48px; margin: 0; justify-content: center; font-size: 15px; }
.ndv-om-go.is-busy, .ndv-om-go:disabled { opacity: .6; pointer-events: none; }
@media (max-width: 820px) {
	.ndv-om { padding-top: 10px; }
	.ndv-om-b { grid-template-columns: 1fr; }
	.ndv-om-r { border-left: 0; border-top: 1px solid var(--ndv-line); }
}
.ndv-om .ndv-om-go { border: 0 !important; background: var(--ndv-primary) !important; color: #fff !important; }
.ndv-om .ndv-om-go:hover { background: var(--ndv-primary-600) !important; }
.ndv-om-per em b { display: inline; color: var(--ndv-ink); font-size: 13px; font-weight: 700; }
.ndv-om-per input:checked + span em b { color: var(--k, var(--ndv-primary)); }
.ndv-om-per em small { color: var(--ndv-muted); font-size: 11.5px; }
.ndv-om-per1 b { color: var(--ndv-ok) !important; }
.ndv-pk-price { margin-bottom: 4px; }
.ndv-pk-min { margin: 0 0 14px; color: var(--ndv-muted); font-size: 12.5px; }

/* Đang khởi tạo (đã thanh toán, chờ admin trả proxy) */
.ndv-init { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; padding: 14px 18px; border: 1px solid #bfdbfe; border-radius: var(--ndv-radius); background: var(--ndv-primary-50); }
.ndv-init .ndv-spin { margin-top: 3px; border-color: #bfdbfe; border-top-color: var(--ndv-primary); }
.ndv-init strong { display: block; color: var(--ndv-primary); font-size: 15px; }
.ndv-init small { color: var(--ndv-text); font-size: 13px; }
.ndv-order-st-init { display: inline-flex; align-items: center; gap: 6px; background: var(--ndv-primary-50) !important; color: var(--ndv-primary) !important; }
.ndv-order-st-init .ndv-spin, .ndv-oh-svc.is-init .ndv-spin { width: 12px; height: 12px; border-color: #bfdbfe; border-top-color: var(--ndv-primary); }
.ndv-oh-svc.is-init { color: var(--ndv-primary); }
.ndv-dbadge.is-init { background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-r-wait strong { color: var(--ndv-ink); }

/* Cột cách thanh toán + khung thanh toán USDT */
.ndv-pm { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ndv-pm.is-qr { background: var(--ndv-primary-50); color: var(--ndv-primary); }
.ndv-pm.is-crypto { background: #ecfdf5; color: #047857; }
.ndv-crypto { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 14px; padding: 18px 20px; border: 1px solid #a7f3d0; border-radius: var(--ndv-radius); background: linear-gradient(180deg, #ecfdf5, #fff 75%); box-shadow: var(--ndv-shadow); }
.ndv-crypto-ic { flex: 0 0 52px; height: 52px; border-radius: 14px; background: #26a17b; color: #fff; font-size: 28px; font-weight: 800; line-height: 52px; text-align: center; }
.ndv-crypto h3 { margin: 0 0 6px; color: var(--ndv-ink); font-size: 17px; text-transform: none; letter-spacing: 0; }
.ndv-crypto p { margin: 0 0 12px; color: var(--ndv-text); font-size: 14px; }
.ndv-crypto .ndv-btn { margin: 0; }

/* Băng nhắc xác minh email */
.ndv-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 0 0 16px; padding: 14px 18px; border: 1px solid #fde68a; border-radius: var(--ndv-radius); background: #fffbeb; }
.ndv-verify-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; background: #f59e0b; color: #fff; font-size: 20px; line-height: 38px; text-align: center; }
.ndv-verify > div { flex: 1; min-width: 220px; }
.ndv-verify strong { display: block; color: #92400e; font-size: 15px; }
.ndv-verify small { color: #78350f; font-size: 13px; }
.ndv-verify form { margin: 0; }
.ndv-verify .ndv-btn { margin: 0; }
.ndv-paypick { border-color: #c7d6fe; background: linear-gradient(180deg, var(--ndv-primary-50), #fff 75%); }
.ndv-paypick-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ndv-paypick-btns form { margin: 0; }

/* 0.28.9: cổng USDT tạm ngưng (Plisio sập) */
.ndv-rn-opt.is-off, .ndv-om label.is-off, .ndv-shop label.is-off { opacity: .5; cursor: not-allowed; }
.ndv-rn-opt.is-off .ndv-rn-pm, label.is-off small { color: #b45309; }
.ndv-btn.is-off { opacity: .5; cursor: not-allowed; pointer-events: none; }
.ndv-off-note { margin: 8px 0 0; color: #b45309; font-size: 13px; }

/* 0.29.2: sửa hiển thị điện thoại */
html:has(body.ndv-app) { margin-top: 0 !important; }
body.ndv-app .ndv-top { top: 0 !important; }
@media (max-width: 900px) {
	body.ndv-app .ndv-side { top: 64px !important; z-index: 1001; }
	body.ndv-app.ndv-side-open .ndv-app-mask { inset: 64px 0 0 0; z-index: 1000; }
}
/* Nút liên hệ nổi (plugin Button contact VR): gọn ở góc phải dưới, không che nội dung; ẩn Zalo trong khu tài khoản */
body.ndv-app #button-contact-vr { left: auto !important; right: 6px !important; bottom: 10px !important; transform: scale(.62); transform-origin: right bottom; }
body.ndv-app #button-contact-vr [id*="zalo"], body.ndv-app #button-contact-vr [class*="zalo"] { display: none !important; }
body.ndv-app.ndv-side-open #button-contact-vr { display: none !important; }
body.ndv-app .ndv-main { padding-bottom: 90px !important; }
/* Lịch sử mua hàng trên điện thoại: bỏ khoảng thụt trống, "Quản lý →" không xuống dòng */
@media (max-width: 700px) {
	.ndv-oh .ndv-oh-sp { display: none; }
	.ndv-oh .ndv-oh-main { gap: 8px; }
	.ndv-oh-svc { flex-wrap: wrap; }
	.ndv-oh-svc a { white-space: nowrap; }
}

/* 0.29.3: trang Tiện ích */
.ndv-tool { max-width: 760px; padding: 20px; border: 1px solid var(--ndv-line); border-radius: 14px; background: #fff; box-shadow: var(--ndv-shadow); }
.ndv-tool + .ndv-tool { margin-top: 16px; }
.ndv-tool-head { display: flex; align-items: center; gap: 14px; }
.ndv-tool-head img { border-radius: 14px; }
.ndv-tool-head h4 { margin: 0; color: var(--ndv-ink); font-size: 18px; text-transform: none; letter-spacing: 0; }
.ndv-tool-head h4 small { color: var(--ndv-muted); font-size: 13px; font-weight: 500; }
.ndv-tool-tag { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--ndv-primary-50); color: var(--ndv-primary); font-size: 12px; font-weight: 700; }
.ndv-tool-desc { margin: 14px 0 8px; color: var(--ndv-text); }
.ndv-tool-feat { margin: 0 0 10px; padding: 0; list-style: none; }
.ndv-tool-feat li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; color: var(--ndv-text); font-size: 14px; }
.ndv-tool-feat .ndv-ic { flex: 0 0 auto; margin-top: 2px; color: var(--ndv-ok); }
.ndv-tool-br { margin: 0 0 14px; color: var(--ndv-muted); font-size: 13px; }
.ndv-tool-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ndv-tool-acts .ndv-btn { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.ndv-tool-steps { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--ndv-bg); }
.ndv-tool-steps strong { color: var(--ndv-ink); }
.ndv-tool-steps ol { margin: 8px 0 0 18px; padding: 0; }
.ndv-tool-steps li { margin: 0 0 6px; font-size: 14px; }
.ndv-tool-steps code { padding: 1px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--ndv-line); font-size: 12.5px; }

/* 0.29.7: Tiện ích dạng lưới 2 cột (extension + phần mềm) */
.ndv-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ndv-tools-grid .ndv-tool { max-width: none; }
.ndv-tools-grid .ndv-tool + .ndv-tool { margin-top: 0; }
@media (max-width: 1100px) { .ndv-tools-grid { grid-template-columns: minmax(0, 1fr); } }
