/* Thành Viên VIP – Việt hóa by tonysquang */

/* ---------- Trang nâng cấp ---------- */
.tsm-pricing { --tsm-bg: #2a2b2e; --tsm-card: #15181d; --tsm-text: #e8eaed; --tsm-muted: #9aa0a8; background: var(--tsm-bg); color: var(--tsm-text); padding: 36px 20px 40px; border-radius: 14px; text-align: center; }
.tsm-pricing__title { color: #fff !important; font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: .02em; margin: 0 0 8px !important; }
.tsm-pricing__sub { color: var(--tsm-muted); margin: 0 0 28px; font-size: 14px; }
.tsm-pricing__current { margin: -14px 0 24px; color: var(--tsm-muted); font-size: 14px; }
.tsm-pricing.alignwide { max-width: min(1200px, 100%); margin-left: auto; margin-right: auto; }
.tsm-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1160px; margin: 0 auto; align-items: stretch; }
.tsm-grid--1 { grid-template-columns: minmax(0, 380px); justify-content: center; }
.tsm-grid--2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.tsm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .tsm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tsm-grid, .tsm-grid--2, .tsm-grid--4 { grid-template-columns: minmax(0, 440px); justify-content: center; } }

.tsm-card { position: relative; display: flex; flex-direction: column; align-items: center; background: var(--tsm-card); border: 1px solid color-mix(in srgb, var(--tsm-c) 70%, transparent); border-top: 4px solid var(--tsm-c); border-radius: 12px; padding: 30px 24px 22px; text-align: left; transition: transform .25s ease, box-shadow .25s ease; }
.tsm-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 1px var(--tsm-c); }
.tsm-card.is-featured { box-shadow: 0 0 0 1px var(--tsm-c), 0 18px 40px rgba(0, 0, 0, .35); }
.tsm-card.is-current { box-shadow: 0 0 0 2px var(--tsm-c); }
.tsm-pill { display: inline-block; padding: 9px 14px; border-radius: 18px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--tsm-c); background: color-mix(in srgb, var(--tsm-c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tsm-c) 55%, transparent); }
.tsm-medal { width: 150px; height: auto; margin: 16px 0 6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); font-family: inherit; }
.tsm-card__title { margin: 6px 0 4px !important; font-size: 19px !important; font-weight: 800 !important; color: #fff !important; text-align: center; line-height: 1.3 !important; }
.tsm-card--gold .tsm-card__title, .tsm-card--diamond .tsm-card__title { color: var(--tsm-c) !important; }
.tsm-bolt { color: #ffb400; }
.tsm-price { text-align: center; margin: 4px 0 16px; padding-bottom: 16px; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tsm-price, .tsm-price .amount, .tsm-price bdi { color: var(--tsm-c) !important; font-size: 26px; font-weight: 800; line-height: 1.2; }
.tsm-price del, .tsm-price del .amount { font-size: 15px; opacity: .55; color: var(--tsm-muted) !important; }
.tsm-price__per { display: inline-block; margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--tsm-muted); }

.tsm-benefits { list-style: none !important; margin: 0 0 18px !important; padding: 0 !important; width: 100%; flex: 1 1 auto; }
.tsm-benefits li { position: relative; padding: 0 0 0 26px !important; margin: 0 0 13px !important; font-size: 14px; line-height: 1.55; color: var(--tsm-text); list-style: none !important; }
.tsm-benefits li::before { content: "✦"; position: absolute; left: 2px; top: 0; color: var(--tsm-c); }
.tsm-benefits strong { color: #fff; }
.tsm-card--bronze .tsm-benefits strong, .tsm-card--gold .tsm-benefits strong { color: var(--tsm-c); }
.tsm-card--silver .tsm-benefits strong { color: #8ec5ff; }
.tsm-benefits--light li { color: inherit; }
.tsm-benefits--light strong { color: inherit; }
.tsm-benefits--light li::before { color: var(--tsm-c, #c8102e); }

.tsm-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 200px; padding: 12px 26px; border: 0; border-radius: 26px; background: #f2575f; color: #fff !important; font-weight: 800; font-size: 15px; letter-spacing: .03em; text-decoration: none !important; cursor: pointer; transition: transform .15s, filter .15s; line-height: 1.2; }
.tsm-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tsm-btn.is-disabled { background: #3a3d44; color: #9aa0a8 !important; cursor: not-allowed; font-size: 12px; transform: none; }
.tsm-btn--sm { min-width: 0; padding: 9px 18px; font-size: 13px; }
.tsm-btn--ghost { background: transparent; color: #f2575f !important; box-shadow: inset 0 0 0 2px #f2575f; }
.tsm-btn--dl { background: #1f9d55; min-width: 0; margin: 0 8px 8px 0; font-size: 14px; }
.tsm-card__current { margin-top: 10px; font-size: 13px; color: var(--tsm-c); font-weight: 700; }
.tsm-card__foot { margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); width: 100%; text-align: center; font-size: 12.5px; font-style: italic; color: var(--tsm-muted); }

/* ---------- Huy hiệu ---------- */
.tsm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 20px; font-size: 13px; font-weight: 700; line-height: 1.3; color: #111; background: var(--tsm-c, #6ee7a8); background-image: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .15)); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); white-space: nowrap; vertical-align: middle; }
.tsm-badge--sm { padding: 2px 8px; font-size: 11px; }
.tsm-badge--lg { padding: 7px 16px; font-size: 16px; }
.tsm-badge--co { --tsm-c: #1c1f26; color: #ffd21f; background-image: none; border: 1px solid #ffd21f; }

/* Góc ảnh */
ul.products li.product, .products .product, li.product, li.wc-block-product, .wc-block-grid__product, .tsm-thumb { position: relative; }
.woocommerce-product-gallery__image:first-child { position: relative; }
.tsm-thumb { display: inline-block; max-width: 100%; line-height: 0; }
.tsm-corners { position: absolute; top: 8px; left: 8px; z-index: 9; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; line-height: 1.2; }
.tsm-corner { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: #111; background: var(--tsm-c, #6ee7a8); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); text-transform: none; }
.tsm-corner--free { background: #1f9d55; color: #fff; }
.tsm-corner--early { background: #7c3aed; color: #fff; }

/* ---------- Hộp trên trang sản phẩm ---------- */
.tsm-box { margin: 18px 0; padding: 16px 18px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .12); background: rgba(0, 0, 0, .03); }
.tsm-box p { margin: 6px 0 10px; }
.tsm-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tsm-box--early { border-color: #7c3aed; background: rgba(124, 58, 237, .07); }
.tsm-box--early.is-open { border-color: #1f9d55; background: rgba(31, 157, 85, .07); }
.tsm-box--dl { border-color: rgba(31, 157, 85, .5); }
.tsm-note { font-size: 14px; opacity: .85; margin: 6px 0 12px; }
.tsm-usage { margin: 4px 0 0 !important; font-size: 13px; opacity: .8; }
.tsm-countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- Tài khoản ---------- */
.tsm-account-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: rgba(0, 0, 0, .04); }
.tsm-account-bar__exp { font-size: 13px; opacity: .8; }
.tsm-account-bar__link { font-weight: 700; }
.tsm-account-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px; border-radius: 12px; background: #15181d; color: #e8eaed; border-top: 4px solid var(--tsm-c); margin-bottom: 20px; }
.tsm-account-card h3 { margin: 0 0 6px; color: var(--tsm-c); }
.tsm-account-card p { margin: 10px 0; font-size: 14px; }
.tsm-account-card .tsm-medal { width: 120px; margin: 0; }
.tsm-account h3 { margin-top: 24px; }
.tsm-meters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tsm-meter__label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.tsm-meter__bar { height: 9px; border-radius: 9px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.tsm-meter__bar span { display: block; height: 100%; background: linear-gradient(90deg, #1f9d55, #ffd21f); border-radius: 9px; }
.tsm-notices { list-style: none; margin: 0; padding: 0; }
.tsm-notices li { padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: 14px; }
.tsm-notices li span { opacity: .65; font-size: 12px; margin-right: 6px; }
.tsm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tsm-table th, .tsm-table td { padding: 8px 10px; border-bottom: 1px solid rgba(0, 0, 0, .08); text-align: left; }
.tsm-thankyou { margin: 0 0 24px; padding: 18px; border-radius: 10px; background: rgba(31, 157, 85, .08); border: 1px solid rgba(31, 157, 85, .4); }

/* ---------- Đấu giá ---------- */
.tsm-auctions__cta { text-align: right; }
.tsm-auction-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tsm-auction-card { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #15181d; color: #e8eaed !important; text-decoration: none !important; transition: transform .2s; }
.tsm-auction-card:hover { transform: translateY(-3px); }
.tsm-auction-card.is-ended { opacity: .6; }
.tsm-auction-card__img { display: block; aspect-ratio: 4 / 3; background: #23262d; overflow: hidden; }
.tsm-auction-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsm-auction-card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; }
.tsm-auction-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.tsm-auction-card__price, .tsm-auction-card__price .amount { color: #ffd21f; font-weight: 800; font-size: 18px; }
.tsm-auction-card__meta { font-size: 12px; color: #9aa0a8; }
.tsm-auction__panel { margin: 0 0 20px; padding: 18px 20px; border-radius: 12px; background: #15181d; color: #e8eaed; }
.tsm-auction__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 14px; }
.tsm-auction__price, .tsm-auction__price .amount { color: #ffd21f; font-size: 22px; }
.tsm-auction__gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tsm-auction__gallery img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }
.tsm-auction__result, .tsm-auction__lead { margin: 14px 0 0; font-weight: 700; }
.tsm-auction__lead { color: #1fd17a; }
.tsm-auction__panel .tsm-note { color: #c9ccd1; }
.tsm-bid-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.tsm-bid-form input[type="number"] { flex: 1 1 180px; padding: 10px 12px; border-radius: 8px; border: 1px solid #3a3d44; background: #0f1115; color: #fff; font-size: 16px; }
.tsm-bid-form small { width: 100%; color: #9aa0a8; }
.tsm-auction-form label { display: block; font-weight: 600; }
.tsm-auction-form input[type="text"], .tsm-auction-form input[type="number"], .tsm-auction-form textarea, .tsm-auction-form select { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
.tsm-form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.tsm-card .tsm-btn { width: 100%; min-width: 0; }
.tsm-card { min-width: 0; }
.tsm-pricing p, .tsm-pricing li, .tsm-card__title { text-align: inherit; }
.tsm-card__foot, .tsm-pricing__sub, .tsm-pricing__current { text-align: center !important; }
.tsm-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 4px; }

/* ---------- Khóa ảnh & nội dung với khách chưa đăng nhập ---------- */
.tsm-locked-img { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 220px; margin: 12px auto; border-radius: 12px; overflow: hidden; background: #15181d; background-image: radial-gradient(circle at 20% 15%, rgba(255, 210, 31, .14), transparent 45%), radial-gradient(circle at 85% 90%, rgba(242, 87, 95, .16), transparent 45%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 12px, transparent 12px 24px); color: #e8eaed; text-align: center; line-height: 1.45; box-sizing: border-box; }
.tsm-locked-img__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 18px; max-width: 460px; }
.tsm-locked-img strong { font-size: 16px; color: #fff; }
.tsm-locked-img small { font-size: 13px; color: #b9bec6; }
.tsm-lock-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #ffd21f; background: rgba(255, 210, 31, .12); border: 1px solid rgba(255, 210, 31, .45); margin-bottom: 4px; }
.tsm-locked-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.tsm-locked-actions .tsm-btn { min-width: 0; }
.tsm-locked-preview { position: relative; max-height: none; }
.tsm-locked-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--wp--preset--color--base, #fff)); pointer-events: none; }
.tsm-locked-box { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0 8px; padding: 26px 22px; border-radius: 14px; background: #15181d; color: #e8eaed; text-align: center; border-top: 4px solid #ffd21f; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.tsm-locked-box strong { font-size: 19px; color: #fff; }
.tsm-locked-box__msg { display: block; margin: 4px 0; max-width: 560px; color: #c9ccd1; font-size: 16px; }
.tsm-locked-box__sub { display: block; font-size: 13px; color: #9aa0a8; margin-bottom: 4px; }

:is(.tsm-locked-img, .tsm-locked-box) [data-t]::before { content: attr(data-t); }
.tsm-locked-img strong, .tsm-locked-img small { display: block; }
