/* =========================================================
   VMOD Point – giao diện phía thành viên
   ========================================================= */
.vmodp-wallet {
	--vp-bg: #0d111b;
	--vp-panel: #141a28;
	--vp-panel-2: #1a2233;
	--vp-line: rgba(255, 255, 255, .08);
	--vp-text: #e8edf7;
	--vp-muted: #8b96ad;
	--vp-accent: #2ee59d;
	--vp-accent-2: #13b981;
	--vp-gold: #ffc94d;
	--vp-red: #ff5c7a;
	--vp-radius: 16px;
	background: var(--vp-bg);
	color: var(--vp-text);
	border-radius: 22px;
	padding: 22px;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}
.vmodp-wallet *, .vmodp-wallet *::before, .vmodp-wallet *::after { box-sizing: border-box; }
.vmodp-wallet a { color: inherit; text-decoration: none; }
.vmodp-wallet h3, .vmodp-wallet h4 { color: #fff; margin: 0; letter-spacing: -.01em; }
.vmodp-wallet--embed { padding: 18px; }

/* ---------- Thẻ số dư ---------- */
.vmodp-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px 24px;
	padding: 28px;
	border-radius: 20px;
	background:
		radial-gradient(600px 260px at 0% 0%, rgba(46, 229, 157, .28), transparent 60%),
		radial-gradient(500px 260px at 100% 100%, rgba(79, 179, 255, .22), transparent 60%),
		linear-gradient(135deg, #18213a 0%, #0f1524 100%);
	border: 1px solid rgba(46, 229, 157, .25);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}
.vmodp-hero::after {
	content: "";
	position: absolute;
	right: -60px; top: -60px;
	width: 220px; height: 220px;
	border-radius: 50%;
	border: 22px solid rgba(255, 255, 255, .04);
	pointer-events: none;
}
.vmodp-hero__label { display: flex; align-items: center; gap: 8px; color: var(--vp-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.vmodp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vp-accent); box-shadow: 0 0 0 4px rgba(46, 229, 157, .2); }
.vmodp-hero__balance {
	font-size: clamp(36px, 6vw, 54px);
	font-weight: 800;
	line-height: 1.1;
	margin: 6px 0 4px;
	background: linear-gradient(90deg, #fff, #b6ffe0);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	font-variant-numeric: tabular-nums;
}
.vmodp-hero__sub { color: var(--vp-muted); font-size: 14px; }
.vmodp-hero__sub .amount, .vmodp-hero__sub bdi { color: var(--vp-text); }
.vmodp-hero__actions { display: flex; flex-direction: column; gap: 10px; align-self: center; position: relative; z-index: 1; }
.vmodp-hero__stats {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--vp-line);
	border-radius: 14px;
	overflow: hidden;
}
.vmodp-hero__stats > div { background: rgba(13, 17, 27, .55); padding: 12px 16px; }
.vmodp-hero__stats small { display: block; color: var(--vp-muted); font-size: 12px; }
.vmodp-hero__stats strong { font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Nút ---------- */
.vmodp-wallet .vmodp-btn, .vmodp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 11px 20px;
	border-radius: 12px;
	border: 0;
	background: linear-gradient(135deg, var(--vp-accent, #2ee59d), var(--vp-accent-2, #13b981));
	color: #06281b !important;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s;
	box-shadow: 0 8px 20px -8px rgba(46, 229, 157, .6);
	white-space: nowrap;
}
.vmodp-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.vmodp-wallet .vmodp-btn--ghost, .vmodp-btn--ghost { background: rgba(255, 255, 255, .06) !important; color: var(--vp-text, #e8edf7) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.vmodp-btn--block { width: 100%; }
.vmodp-btn--sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

/* ---------- Khu vực ---------- */
.vmodp-section { margin-top: 26px; }
.vmodp-section__head { margin-bottom: 14px; }
.vmodp-section__head h3 { font-size: 20px; }
.vmodp-section__head p { margin: 4px 0 0; color: var(--vp-muted); font-size: 14px; }
.vmodp-section__head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Gói nạp ---------- */
.vmodp-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.vmodp-pack {
	--c: #2ee59d;
	position: relative;
	background: var(--vp-panel);
	border: 1px solid var(--vp-line);
	border-radius: var(--vp-radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.vmodp-pack:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 16px 34px -18px var(--c); }
.vmodp-pack--200k { --c: #4fb3ff; }
.vmodp-pack--300k { --c: #b57bff; }
.vmodp-pack--500k { --c: #ffc94d; }
.vmodp-pack--1m   { --c: #ff5c8a; }
.vmodp-pack__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 !important; }
.vmodp-pack__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vmodp-pack__pts { font-weight: 800; font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
.vmodp-pack__pts small { font-weight: 600; font-size: 12px; color: var(--c); }
.vmodp-pack__price { color: var(--vp-muted); font-size: 14px; margin-bottom: 8px; }
.vmodp-pack__price .amount { color: var(--vp-muted); }
.vmodp-pack .vmodp-btn { margin-top: auto; }
.vmodp-pack__badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	background: var(--c); color: #111;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	padding: 4px 9px; border-radius: 99px;
}

/* ---------- Tùy chỉnh ---------- */
.vmodp-custom {
	margin-top: 14px;
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 20px;
	align-items: start;
	padding: 18px;
	border-radius: var(--vp-radius);
	background:
		radial-gradient(400px 200px at 100% 0%, rgba(255, 79, 216, .14), transparent 60%),
		radial-gradient(400px 200px at 0% 100%, rgba(63, 240, 255, .14), transparent 60%),
		var(--vp-panel);
	border: 1px solid rgba(63, 240, 255, .22);
}
.vmodp-custom__img img { width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 !important; }
.vmodp-custom__body h4 { font-size: 18px; }
.vmodp-custom__body > p { color: var(--vp-muted); margin: 4px 0 12px; font-size: 14px; }
.vmodp-custom__form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* Ô nhập số tiền (dùng cả trên trang sản phẩm) */
.vmodp-amount { width: 100%; max-width: 440px; margin: 0 0 16px; }
.vmodp-custom__form .vmodp-amount { margin: 0; }
.vmodp-amount__label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.vmodp-amount__field { position: relative; }
.vmodp-amount__field input[type="number"] {
	width: 100% !important;
	padding: 12px 40px 12px 14px !important;
	font-size: 18px !important;
	font-weight: 700;
	border-radius: 12px !important;
	border: 1px solid rgba(127, 127, 127, .35) !important;
	background: rgba(255, 255, 255, .04);
	color: inherit;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
}
.vmodp-amount__field input:focus { outline: none; border-color: #3ff0ff !important; box-shadow: 0 0 0 3px rgba(63, 240, 255, .2); }
.vmodp-amount__unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: .6; font-weight: 700; }
.vmodp-amount__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vmodp-chip {
	border: 1px solid rgba(127, 127, 127, .35);
	background: transparent;
	color: inherit;
	border-radius: 99px;
	padding: 5px 12px;
	font-size: 13px;
	cursor: pointer;
	line-height: 1.3;
}
.vmodp-chip:hover, .vmodp-chip.is-active { border-color: #3ff0ff; color: #3ff0ff; }
.vmodp-amount__preview { margin: 10px 0 0; font-size: 14px; }
.vmodp-amount__preview strong { font-size: 17px; color: #13b981; }
.vmodp-wallet .vmodp-amount__preview strong { color: #3ff0ff; }
.vmodp-amount__hint { margin: 2px 0 0; font-size: 12px; opacity: .65; }

/* ---------- Tabs / lọc ---------- */
.vmodp-tabs { display: inline-flex; background: var(--vp-panel); border: 1px solid var(--vp-line); border-radius: 12px; padding: 4px; }
.vmodp-tabs a { padding: 7px 14px; border-radius: 9px; font-size: 14px; color: var(--vp-muted) !important; font-weight: 600; }
.vmodp-tabs a.is-active { background: var(--vp-panel-2); color: #fff !important; box-shadow: inset 0 0 0 1px var(--vp-line); }
.vmodp-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vmodp-filter { padding: 5px 12px; border-radius: 99px; font-size: 13px; border: 1px solid var(--vp-line); color: var(--vp-muted) !important; }
.vmodp-filter.is-active, .vmodp-filter:hover { border-color: var(--vp-accent); color: var(--vp-accent) !important; }

/* ---------- Bảng ---------- */
.vmodp-table-wrap { border: 1px solid var(--vp-line); border-radius: var(--vp-radius); overflow: hidden; background: var(--vp-panel); }
.vmodp-wallet table.vmodp-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; background: transparent; font-size: 14px; }
.vmodp-wallet .vmodp-table th {
	text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
	color: var(--vp-muted); font-weight: 600; padding: 12px 14px; background: var(--vp-panel-2); border: 0;
}
.vmodp-wallet .vmodp-table td { padding: 12px 14px; border: 0; border-top: 1px solid var(--vp-line); vertical-align: middle; color: var(--vp-text); background: transparent; }
.vmodp-wallet .vmodp-table tr:hover td { background: rgba(255, 255, 255, .02); }
.vmodp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vmodp-pos { color: var(--vp-accent, #13b981) !important; font-weight: 700; }
.vmodp-neg { color: var(--vp-red, #e5484d) !important; font-weight: 700; }
.vmodp-link { color: #4fb3ff !important; font-weight: 600; margin-left: 6px; white-space: nowrap; }

.vmodp-badge, .vmodp-status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vmodp-badge--topup    { background: rgba(46, 229, 157, .14); color: #2ee59d; }
.vmodp-badge--purchase { background: rgba(255, 92, 122, .14); color: #ff7a93; }
.vmodp-badge--refund   { background: rgba(79, 179, 255, .14); color: #4fb3ff; }
.vmodp-badge--adjust   { background: rgba(255, 201, 77, .14); color: #ffc94d; }
.vmodp-badge--reverse  { background: rgba(181, 123, 255, .14); color: #c9a2ff; }
.vmodp-status { background: rgba(255, 255, 255, .08); color: var(--vp-text); }
.vmodp-status--completed  { background: rgba(46, 229, 157, .14); color: #2ee59d; }
.vmodp-status--processing { background: rgba(79, 179, 255, .14); color: #4fb3ff; }
.vmodp-status--pending, .vmodp-status--on-hold { background: rgba(255, 201, 77, .14); color: #ffc94d; }
.vmodp-status--cancelled, .vmodp-status--failed, .vmodp-status--refunded { background: rgba(255, 92, 122, .14); color: #ff7a93; }
.vmodp-ok { color: #13b981; font-size: 12px; font-weight: 700; margin-left: 6px; }
.vmodp-wait { color: #d39a12; font-weight: 600; }

.vmodp-empty { padding: 28px; text-align: center; color: var(--vp-muted, #777); background: var(--vp-panel, #f6f7f9); border: 1px dashed var(--vp-line, #ddd); border-radius: var(--vp-radius, 14px); }
.vmodp-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; color: var(--vp-muted); font-size: 14px; }
.vmodp-pager a { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--vp-line); color: var(--vp-text) !important; }

/* ---------- Widget dashboard & chip số dư ---------- */
.vmodp-mini {
	display: flex !important; align-items: center; gap: 14px;
	padding: 14px 18px; margin-bottom: 20px;
	border-radius: 16px;
	background: linear-gradient(135deg, #18213a, #0f1524);
	border: 1px solid rgba(46, 229, 157, .3);
	color: #fff !important; text-decoration: none !important;
}
.vmodp-mini__coin, .vmodp-balance-chip__coin {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: conic-gradient(from 210deg, #2ee59d, #4fb3ff, #2ee59d);
	color: #0d111b; font-weight: 900; font-size: 13px; flex: none;
	box-shadow: 0 0 0 3px rgba(46, 229, 157, .2);
}
.vmodp-mini__text small { display: block; color: #8b96ad; font-size: 12px; }
.vmodp-mini__text strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.vmodp-mini__cta { margin-left: auto; color: #2ee59d; font-weight: 700; font-size: 14px; }
.vmodp-balance-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: #141a28; color: #fff !important; font-weight: 700; text-decoration: none !important; font-variant-numeric: tabular-nums; }
.vmodp-balance-chip__coin { width: 26px; height: 26px; font-size: 10px; }

/* ---------- Thanh toán ---------- */
.vmodp-pay-box { border: 1px solid rgba(127, 127, 127, .25); border-radius: 12px; overflow: hidden; margin-top: 8px; font-size: 14px; }
.vmodp-pay-box > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; }
.vmodp-pay-box > div + div { border-top: 1px solid rgba(127, 127, 127, .18); }
.vmodp-pay-box strong { font-variant-numeric: tabular-nums; }
.vmodp-pay-box__total { background: rgba(46, 229, 157, .08); }
.vmodp-pay-box .vmodp-neg { color: #e5484d !important; }

/* Thiếu điểm */
.vmodp-pay-short { border: 1px solid rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .08); border-radius: 12px; padding: 10px 14px 12px; margin-top: 8px; font-size: 14px; }
.vmodp-pay-short__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.vmodp-pay-short__row strong { font-variant-numeric: tabular-nums; }
.vmodp-pay-short p { margin: 8px 0 10px !important; }
.vmodp-pay-short p strong { color: #e8860c; }
img[src*="vmod-point-icon"] { width: 24px !important; height: 24px !important; border-radius: 50%; vertical-align: middle; }

/* ---------- Trang sản phẩm / đơn hàng ---------- */
.vmodp-guest-notice { padding: 12px 16px; border-radius: 12px; background: #fff7e0; border: 1px solid #ffd77a; color: #6b4b00; margin: 12px 0; }
.vmodp-guest-notice a { font-weight: 700; }
.vmodp-price-custom { font-weight: 700; }
.vmodp-order-box { margin: 20px 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(46, 229, 157, .35); background: rgba(46, 229, 157, .06); }
.vmodp-order-box p { margin: 4px 0; }
.vmodp-order-box .vmodp-link { margin-left: 0; color: #13b981 !important; }

/* ---------- Mobile ---------- */
@media (max-width: 680px) {
	.vmodp-wallet { padding: 14px; border-radius: 18px; }
	.vmodp-hero { grid-template-columns: 1fr; padding: 20px; }
	.vmodp-hero__actions { flex-direction: row; }
	.vmodp-hero__actions .vmodp-btn { flex: 1; }
	.vmodp-hero__stats strong { font-size: 15px; }
	.vmodp-hero__stats > div { padding: 10px 12px; }
	.vmodp-packs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.vmodp-pack__pts { font-size: 16px; }
	.vmodp-custom { grid-template-columns: 1fr; }
	.vmodp-custom__img { max-width: 140px; }
	.vmodp-table-wrap { background: transparent; border: 0; }
	.vmodp-wallet .vmodp-table thead { display: none; }
	.vmodp-wallet .vmodp-table, .vmodp-wallet .vmodp-table tbody, .vmodp-wallet .vmodp-table tr, .vmodp-wallet .vmodp-table td { display: block; width: 100%; }
	.vmodp-wallet .vmodp-table tr { background: var(--vp-panel); border: 1px solid var(--vp-line); border-radius: 14px; margin-bottom: 10px; padding: 6px 0; }
	.vmodp-wallet .vmodp-table td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.vmodp-wallet .vmodp-table td::before { content: attr(data-label); color: var(--vp-muted); font-size: 12px; text-align: left; }
	.vmodp-wallet .vmodp-table td[data-label=""]::before { content: none; }
	.vmodp-mini__cta { display: none; }
}
