/* ===================== LênLive – khu tài khoản khách (đăng ký, đăng nhập, tài khoản, thanh toán) ===================== */
:root {
  --bg: #07060f; --bg2: #0d0a1c; --card: rgba(255,255,255,.045); --card2: rgba(255,255,255,.07);
  --ink: #f4f1ff; --mute: #a9a3c7; --dim: #7d779c; --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.16);
  --gold: #ffd36b; --gold2: #ffb238; --pink: #ff4fa3; --vio: #8b5cf6; --cyan: #3de1ff;
  --ok: #34d399; --warn: #fbbf24; --bad: #fb7185;
  --g-nova: linear-gradient(100deg, #ffe08a 0%, #ffb238 22%, #ff4fa3 52%, #a46bff 78%, #3de1ff 100%);
  --r: 20px; --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.55 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 30vmax at 12% 8%, rgba(139,92,246,.20), transparent 70%), radial-gradient(36vmax 28vmax at 92% 18%, rgba(255,79,163,.14), transparent 70%), radial-gradient(40vmax 30vmax at 70% 100%, rgba(61,225,255,.10), transparent 70%); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3vmax, 2vmax, 0) rotate(6deg); } }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.grad { background: var(--g-nova); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }
.small { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: -.4px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg, .logo img { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(255,79,163,.45)); }
.logo em { font-style: normal; background: linear-gradient(90deg, #ffe08a, #ffb238); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nút ---------- */
.btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15.5px; letter-spacing: .1px; white-space: nowrap; color: var(--ink); text-decoration: none !important; transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.busy { opacity: .6; pointer-events: none; }
.btn.busy::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-gold { color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffc04a 55%, #ff9f1c); box-shadow: 0 10px 28px -10px rgba(255,170,40,.7), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(150,70,0,.3); overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 4s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.btn-gold:hover { box-shadow: 0 14px 38px -8px rgba(255,170,40,.85), 0 0 0 5px rgba(255,200,80,.12), inset 0 1px 0 rgba(255,255,255,.7); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line2); }
.btn-ghost:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); }
.btn-danger { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.35); color: #ffc2cc; }
.btn-danger:hover { background: rgba(251,113,133,.2); }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--gold); font-weight: 600; }
.btn-icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); }
.btn-icon:hover { background: rgba(255,255,255,.12); }
.btn svg, .btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- ô nhập ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span, .label { font-size: 14px; font-weight: 600; color: #d9d4f0; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(9,7,20,.6); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea.input { min-height: 90px; resize: vertical; }
.input::placeholder { color: #6f698f; }
.input:hover { border-color: rgba(255,255,255,.26); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,211,107,.16); background: rgba(9,7,20,.85); }
.field.err .input { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(251,113,133,.12); }
.field .msg { font-size: 13px; color: var(--bad); min-height: 0; }
.field .hint { font-size: 13px; color: var(--dim); }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--mute); display: grid; place-items: center; }
.pw button:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.pw button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.meter i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .3s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-s="3"] i:nth-child(-n+3) { background: #a3e635; }
.meter[data-s="4"] i { background: var(--ok); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--mute); cursor: pointer; margin: 4px 0 18px; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1.5px solid var(--line2); background: rgba(9,7,20,.6); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #1b0f00; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check.err input { border-color: var(--bad); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; margin-bottom: 16px; background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.3); color: #ffd0d7; }
.alert.ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); color: #c8f7e4; }
.alert.info { background: rgba(61,225,255,.08); border-color: rgba(61,225,255,.28); color: #cdf6ff; }
.alert.warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.35); color: #ffeab0; }
.alert b { color: inherit; }

/* ---------- trang đăng nhập / đăng ký ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; padding: 40px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 28px; border-right: 1px solid var(--line); background: linear-gradient(160deg, rgba(139,92,246,.16), rgba(255,79,163,.06) 45%, rgba(7,6,15,0) 80%); }
.auth-art h1 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -1.2px; margin: 18px 0 0; font-weight: 900; }
.auth-art p.lead { color: var(--mute); font-size: 17.5px; margin: 0; max-width: 520px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 520px; }
.perks li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 600; }
.perks li .i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, rgba(255,211,107,.22), rgba(255,79,163,.18)); }
.perks li small { display: block; font-weight: 400; color: var(--mute); font-size: 13.5px; }
.art-phone { position: absolute; right: -40px; bottom: -60px; width: 270px; aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px; background: linear-gradient(160deg, #2a2440, #0e0b1c); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 80px -10px rgba(255,79,163,.35); transform: rotate(-8deg); opacity: .92; }
.art-phone video, .art-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.auth-main { display: grid; place-items: center; padding: 40px 22px; }
.auth-card { width: min(440px, 100%); }
.auth-card h2 { font-size: 30px; letter-spacing: -.6px; margin: 0 0 6px; font-weight: 800; }
.auth-card .sub { color: var(--mute); margin: 0 0 24px; }
.auth-top { display: none; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--mute); font-size: 15px; }
.trial-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #ffe7a3; background: rgba(255,211,107,.1); border: 1px solid rgba(255,211,107,.3); }
.trial-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 20px; color: var(--dim); font-size: 12.5px; }
.secure-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-top { display: flex; justify-content: space-between; align-items: center; width: min(440px, 100%); margin-bottom: 28px; }
  .auth-main { place-items: start center; padding-top: 24px; }
}

/* ---------- khung tài khoản ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.shell > div { min-width: 0; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 24px 18px; border-right: 1px solid var(--line); background: rgba(9,7,20,.55); backdrop-filter: blur(14px); }
.side nav { display: grid; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--mute); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.side nav a svg, .tabbar a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side nav a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.side nav a.on { color: var(--ink); background: linear-gradient(90deg, rgba(255,211,107,.16), rgba(255,79,163,.08)); box-shadow: inset 2px 0 0 var(--gold); }
.side .who { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #1b0f00; background: linear-gradient(135deg, #ffe08a, #ff9f1c); }
.who .n { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .e { font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who > div { min-width: 0; flex: 1; }
.main { padding: 28px clamp(18px, 3vw, 40px) 60px; max-width: 1180px; width: 100%; }
.topbar { display: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-h h1 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.6px; font-weight: 800; }
.page-h p { margin: 4px 0 0; color: var(--mute); }
.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(9,7,20,.82); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
  .main { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(9,7,20,.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; color: var(--dim); font-size: 11.5px; font-weight: 600; text-decoration: none; }
  .tabbar a.on { color: var(--gold); background: rgba(255,211,107,.08); }
}

/* ---------- thẻ ---------- */
.card { position: relative; border-radius: var(--r); padding: 22px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(0,0,0,.6); }
.card h2, .card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.card .card-sub { color: var(--mute); font-size: 14.5px; margin: 0 0 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h h2, .card-h h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* ---------- trạng thái gói ---------- */
.status { margin-bottom: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px; overflow: hidden; }
.status::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(60% 120% at 0% 0%, rgba(255,211,107,.16), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(139,92,246,.18), transparent 60%); }
.status.s-expired::before, .status.s-none::before { background: radial-gradient(60% 120% at 0% 0%, rgba(251,113,133,.18), transparent 60%); }
.ring { position: relative; width: 168px; height: 168px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .bg { stroke: rgba(255,255,255,.08); }
.ring .fg { stroke: url(#ringGrad); transition: stroke-dashoffset 1.2s var(--ease); }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c b { font-size: 48px; line-height: 1; font-weight: 900; letter-spacing: -1.5px; }
.ring .c span { font-size: 13.5px; color: var(--mute); font-weight: 600; margin-top: 4px; }
.status h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 8px 0 6px; letter-spacing: -.5px; }
.status .until { color: var(--mute); margin: 0 0 18px; }
.status .until b { color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.07); border: 1px solid var(--line2); white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.chip.warn { color: var(--warn); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); }
.chip.bad { color: var(--bad); background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.3); }
.chip.info { color: var(--cyan); background: rgba(61,225,255,.08); border-color: rgba(61,225,255,.28); }
.chip.plain::before { display: none; }
.countdown { display: flex; gap: 10px; margin: 0 0 18px; }
.countdown div { min-width: 64px; padding: 8px 10px; border-radius: 12px; text-align: center; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.countdown b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
@media (max-width: 640px) {
  .status { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 22px 16px; gap: 14px; }
  .status-main { width: 100%; }
  .countdown div { min-width: 0; flex: 1; max-width: 72px; }
  .status .row { justify-content: center; }
  .countdown { justify-content: center; }
  .ring { width: 146px; height: 146px; }
  .ring .c b { font-size: 42px; }
}

/* ---------- kênh live ---------- */
.rooms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); margin-bottom: 22px; }
.room { display: grid; gap: 14px; min-width: 0; }
.room > * { min-width: 0; }
.room.locked { opacity: .65; }
.room-h { display: flex; align-items: center; gap: 12px; }
.room-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(255,79,163,.25), rgba(139,92,246,.25)); }
.room-h .t { min-width: 0; flex: 1; }
.room-h .t b { display: block; font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px dashed var(--line2); }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: #d6d0f5; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: livepulse 1.6s infinite; margin-right: 6px; vertical-align: middle; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.add-room { display: grid; place-items: center; gap: 6px; min-height: 180px; text-align: center; border: 1.5px dashed var(--line2); background: rgba(255,255,255,.02); color: var(--mute); border-radius: var(--r); padding: 20px; transition: border-color .2s, background .2s, color .2s; }
.add-room:hover { border-color: var(--gold); color: var(--ink); background: rgba(255,211,107,.05); }
.add-room .plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255,211,107,.12); color: var(--gold); }

/* ---------- các bước bắt đầu ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffb238); }
.steps b { display: block; }
.steps span { color: var(--mute); font-size: 14.5px; }

/* ---------- chọn gói ---------- */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan { cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); }
.plan.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 24px 60px -24px rgba(255,170,40,.45); }
.plan .p-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan h3 { font-size: 19px; margin: 0; }
.plan .price { font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; font-size: 14px; color: #d8d3ef; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); flex: none; display: grid; place-items: center; }
.plan.on .radio { border-color: var(--gold); }
.plan.on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.hot-tag { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #1b0f00; background: var(--g-nova); }
.cur-tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--cyan); background: rgba(61,225,255,.1); border: 1px solid rgba(61,225,255,.3); }
.durs { display: flex; gap: 10px; flex-wrap: wrap; }
.dur { position: relative; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); font-weight: 700; transition: border-color .2s, background .2s; }
.dur:hover { border-color: rgba(255,255,255,.3); }
.dur.on { border-color: var(--gold); background: rgba(255,211,107,.1); color: var(--gold); }
.dur em { position: absolute; top: -9px; right: -6px; font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; color: #062a1d; background: var(--ok); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.summary { position: sticky; top: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.sum-row span { color: var(--mute); }
.sum-row.total { border: 0; padding-top: 14px; font-size: 17px; }
.sum-row.total b { font-size: 26px; font-weight: 900; letter-spacing: -.6px; }
.sum-note { font-size: 13.5px; color: var(--mute); padding: 10px 12px; border-radius: 12px; background: rgba(61,225,255,.06); border: 1px solid rgba(61,225,255,.18); margin: 10px 0 16px; }
.sum-note b { color: var(--ink); }
@media (max-width: 1080px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- thanh toán QR ---------- */
.pay { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
.qr-wrap { position: relative; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -24px rgba(255,170,40,.45); }
.qr-wrap img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; }
.qr-wrap::after { content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: 25px; background: var(--g-nova); background-size: 200% auto; animation: shimmer 4s linear infinite; }
.qr-cap { text-align: center; color: var(--mute); font-size: 13.5px; margin-top: 12px; }
.kv { display: grid; gap: 10px; }
.kv-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.kv-row span { color: var(--mute); font-size: 14px; }
.kv-row b { font-size: 16px; overflow-wrap: anywhere; }
.kv-row.hl { border-color: rgba(255,211,107,.5); background: rgba(255,211,107,.07); }
.kv-row.hl b { color: var(--gold); font-size: 19px; letter-spacing: .5px; }
.wait { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(61,225,255,.07); border: 1px solid rgba(61,225,255,.25); margin-top: 6px; }
.wait .spin { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(61,225,255,.25); border-top-color: var(--cyan); animation: spin .9s linear infinite; }
.wait b { display: block; }
.wait small { color: var(--mute); }
.done { text-align: center; padding: 34px 20px; }
.done .big { font-size: 64px; line-height: 1; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done h2 { font-size: 26px; margin: 14px 0 6px; }
@media (max-width: 760px) {
  .pay { grid-template-columns: 1fr; }
  .qr-wrap { width: min(300px, 100%); margin: 0 auto; }
  .kv-row { grid-template-columns: 1fr auto; }
  .kv-row span { grid-column: 1 / -1; }
}

/* ---------- bảng / danh sách ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--dim); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-cards { display: none; }
@media (max-width: 760px) {
  .table.resp { display: none; }
  .list-cards { display: grid; gap: 10px; }
  .lc { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
  .lc .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
}
.empty { text-align: center; padding: 34px 16px; color: var(--mute); }
.empty .e { font-size: 40px; }

/* ---------- hộp thoại / thông báo ---------- */
dialog.modal { width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line2); border-radius: 22px; color: var(--ink); background: #110d22; box-shadow: 0 40px 100px -20px rgba(0,0,0,.8); }
dialog.modal::backdrop { background: rgba(4,3,10,.72); backdrop-filter: blur(6px); }
dialog.modal[open] { animation: dlg .3s var(--ease); }
@keyframes dlg { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 6px; }
.modal-h h3 { margin: 0; font-size: 19px; }
.modal-b { padding: 10px 20px 20px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }
.toasts { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(380px, calc(100% - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 16px; background: #1a1430; border: 1px solid var(--line2); box-shadow: 0 20px 50px -14px rgba(0,0,0,.7); font-size: 14.5px; animation: tin .35s var(--ease); }
.toast.ok { border-color: rgba(52,211,153,.45); }
.toast.bad { border-color: rgba(251,113,133,.5); }
.toast.out { animation: tout .3s forwards; }
@keyframes tin { from { transform: translateY(12px); opacity: 0; } }
@keyframes tout { to { transform: translateY(8px); opacity: 0; } }
@media (max-width: 900px) { .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); right: 12px; left: 12px; width: auto; } }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.1), rgba(255,255,255,.05)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); }
.banner.info { background: rgba(61,225,255,.07); border-color: rgba(61,225,255,.25); }
.banner .t { flex: 1; min-width: 200px; }
.sessions .s { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sessions .s:last-child { border-bottom: 0; }
.sessions .s .i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 20px; }
.sessions .s .t { flex: 1; min-width: 0; }
.sessions .s .t small { display: block; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legal { max-width: 820px; margin: 0 auto; padding: 32px 20px 80px; }
.legal h1 { font-size: 32px; letter-spacing: -.6px; }
.legal h2 { font-size: 20px; margin-top: 30px; }
.legal p, .legal li { color: #d6d0ee; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.sk-52 { height: 52px; }
.done .row { justify-content: center; margin-top: 18px; }
.qr-img { width: 260px; height: 260px; margin: 0 auto; padding: 10px; border-radius: 16px; background: #fff; }
.receipt .sum-row b { text-align: right; }
.label.small { font-size: 13px; color: var(--mute); margin-bottom: 6px; font-weight: 600; }
.status .row .chip + .chip { margin-left: 0; }
@media print { .side, .topbar, .tabbar, .toasts, .modal-f, .modal-h button { display: none !important; } body { background: #fff; color: #000; } body::before { display: none; } dialog.modal { position: static; border: 0; box-shadow: none; background: #fff; color: #000; } }
#view > section, #view > .grid, #view > .banner, #view > .alert, #view > .checkout { margin-bottom: 18px; }
select.input { height: 50px; }

/* ===================== v2: tổng quan đầy đặn hơn, chọn gói mới, popup nhắc gia hạn ===================== */
.status-main { min-width: 0; }
.status.s-soon { border-color: rgba(251,191,36,.45); }
.status.s-soon::before { background: radial-gradient(60% 120% at 0% 0%, rgba(251,191,36,.2), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(255,79,163,.16), transparent 60%); }
.usewrap { display: grid; gap: 6px; margin: -4px 0 18px; max-width: 420px; }
.usewrap small { color: var(--dim); font-size: 12.5px; }
.usebar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.usebar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--g-nova); transition: width 1.2s var(--ease); }
.btn-link.small { font-size: 14px; }
.banner.warn-strong { background: linear-gradient(90deg, rgba(251,191,36,.16), rgba(255,79,163,.08)); border-color: rgba(251,191,36,.5); }
.big-emo { font-size: 24px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 26px; }
.stat { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); min-width: 0; }
.stat-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(255,211,107,.18), rgba(139,92,246,.18)); }
.stat > div { display: grid; min-width: 0; }
.stat b { font-size: 20px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 13.5px; color: var(--mute); font-weight: 600; }
.stat small { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { gap: 10px; } .stat { padding: 12px; gap: 10px; } .stat-ic { width: 38px; height: 38px; font-size: 18px; } .stat b { font-size: 17px; } }
.sec-h { margin-top: 6px; }
.count-pill { display: inline-block; vertical-align: middle; font-size: 14px; font-weight: 800; padding: 3px 10px; border-radius: 99px; color: var(--gold); background: rgba(255,211,107,.12); border: 1px solid rgba(255,211,107,.3); letter-spacing: 0; }
.room.on { border-color: rgba(52,211,153,.35); box-shadow: 0 0 0 1px rgba(52,211,153,.15), 0 20px 50px -30px rgba(52,211,153,.4); }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.room-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.room .tools { gap: 6px; }
.add-room.upsell { background: linear-gradient(160deg, rgba(139,92,246,.12), rgba(255,79,163,.06)); border-style: solid; border-color: rgba(139,92,246,.35); text-decoration: none; }
.add-room.upsell .plus { background: rgba(139,92,246,.2); }
.cards3 { align-items: stretch; }
.cards3 > .card { display: flex; flex-direction: column; gap: 4px; }
.cards3 > .card > .btn { margin-top: auto; align-self: flex-start; }
.cards3 .steps { margin-bottom: 14px; }
@media (max-width: 1180px) { .g3.cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3.cards3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .g3.cards3 { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; position: relative; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: -12px; width: 2px; background: var(--line); }
.tl-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 16px; }
.timeline b { display: block; font-size: 14.5px; }
.timeline span { display: block; font-size: 13.5px; color: var(--mute); overflow-wrap: anywhere; }
.timeline small { color: var(--dim); font-size: 12px; }
.ref-card { background: linear-gradient(160deg, rgba(255,211,107,.1), rgba(255,79,163,.06) 60%, rgba(255,255,255,.02)); border-color: rgba(255,211,107,.28); }
.ref-card .link-box { margin: 6px 0 12px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ref-stats div { text-align: center; padding: 10px 6px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.ref-stats b { display: block; font-size: 20px; font-weight: 900; color: var(--gold); }
.ref-stats span { font-size: 12px; color: var(--mute); }

/* chọn gói */
.step { margin-bottom: 22px; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 12px; }
.step-h span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffb238); }
.plans { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.plan { gap: 8px; padding-top: 18px; }
.plan.hot { background: linear-gradient(160deg, rgba(255,211,107,.09), rgba(139,92,246,.07)); }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.plan .p-top { align-items: center; }
.plan h3 { font-size: 21px; }
.plan .price { white-space: nowrap; font-size: clamp(26px, 2.4vw, 32px); }
.plan .price small { margin-left: 4px; }
.p-note { min-height: 20px; }
.rights { list-style: none; padding: 12px 0 0; margin: 4px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: 14px; }
.rights li { display: flex; gap: 8px; align-items: baseline; }
.rights li::before { content: '✓'; color: var(--ok); font-weight: 900; }
.rights li.off { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.rights li.off::before { content: '✕'; color: #6f698f; }
.p-feats summary { cursor: pointer; color: var(--gold); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.p-feats ul { list-style: disc; padding-left: 18px; margin: 8px 0 0; font-size: 13.5px; color: #d8d3ef; display: grid; gap: 4px; }
.plan .p-feats li::before { content: none; }
.p-feats li { display: list-item; }
.checkout { grid-template-columns: minmax(0, 1fr) 380px; }
.durs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dur { display: grid; gap: 2px; text-align: left; padding: 14px 16px; }
.dur b { font-size: 16px; }
.dur span { font-size: 17px; font-weight: 800; color: var(--ink); }
.dur small { font-size: 12.5px; color: var(--dim); font-weight: 500; }
.dur.on span { color: var(--gold); }
.faq-mini { display: grid; gap: 8px; padding: 16px 18px; }
.faq-mini summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.faq-mini p { margin: 6px 0 4px; color: var(--mute); font-size: 14px; }
.sum-row b.save { color: var(--ok); }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; color: var(--mute); }

/* popup nhắc gia hạn */
dialog.modal.exp-dlg { width: min(460px, calc(100% - 28px)); border-color: rgba(251,191,36,.5); box-shadow: 0 40px 100px -20px rgba(0,0,0,.85), 0 0 80px -20px rgba(251,191,36,.45); }
.exp-pop { text-align: center; padding: 28px 24px 20px; display: grid; gap: 8px; justify-items: center; }
.exp-pop h3 { margin: 4px 0 0; font-size: 22px; }
.exp-pop p { margin: 0; }
.exp-ic { font-size: 50px; display: inline-block; animation: expSwing 2.4s ease-in-out infinite; }
@keyframes expSwing { 0%, 100% { transform: rotate(0); } 20%, 50% { transform: rotate(180deg); } 70% { transform: rotate(360deg); } }
.exp-count { font-size: 38px; font-weight: 900; color: var(--gold); letter-spacing: 1px; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255,211,107,.35); }
.exp-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0 4px; }
.exp-act .btn-gold { white-space: normal; text-align: center; }
@media (max-width: 1080px) { .checkout { grid-template-columns: 1fr; } }

.card { min-width: 0; }
.cards3 .btn { white-space: normal; text-align: left; height: auto; min-height: var(--h); padding-top: 8px; padding-bottom: 8px; }
.link-box { min-width: 0; }
dialog.modal { margin: auto; max-width: calc(100vw - 24px); }

/* mua lẻ từng game */
.mode-sw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; max-width: 640px; }
.mode-sw a { display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; text-decoration: none; color: var(--ink); font-weight: 800; background: rgba(255,255,255,.04); border: 1px solid var(--line2); transition: border-color .2s, background .2s; }
.mode-sw a small { font-weight: 500; color: var(--mute); font-size: 13px; }
.mode-sw a.on { border-color: var(--gold); background: rgba(255,211,107,.1); box-shadow: 0 0 0 1px var(--gold); }
.ggrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.gpick { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 12px; cursor: pointer; transition: border-color .2s, transform .2s; }
.gpick:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); }
.gpick.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 50px -26px rgba(255,170,40,.45); }
.gpick-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 9 / 16; background: #0d0a1c; }
.gpick-media img { width: 100%; height: 100%; object-fit: cover; }
.gpick-media .radio { position: absolute; right: 6px; top: 6px; background: rgba(0,0,0,.5); }
.gpick.on .radio { border-color: var(--gold); }
.gpick.on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.gpick .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; }
.gpick-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gpick-body .price { font-size: 22px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; }
.gpick-body .price small { font-size: 13px; color: var(--mute); font-weight: 600; margin-left: 3px; }
.gpick-body .chip { align-self: flex-start; }
.gpick-body a { margin-top: auto; }
.passes { margin-bottom: 26px; }
.pass-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.pass { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.pass small { grid-column: 1; }
.pass .btn { grid-row: 2; grid-column: 2; }
.pass.off { opacity: .75; }
.tbl-wrap, .link-box { position: relative; }
@media (max-width: 640px) { .status .row .btn { white-space: normal; text-align: center; height: auto; min-height: var(--h); padding-top: 8px; padding-bottom: 8px; } }

.usage { display: grid; gap: 6px; }
.usage-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
.usage-h b { color: var(--ink); font-weight: 700; }
.usebar.sm { height: 6px; }
.usebar.warn i { background: var(--warn); }
.usebar.bad i { background: var(--bad); }
.bad-t { color: var(--bad); font-size: 12.5px; }

.usage-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.usage-f small { font-size: 12.5px; }
.files { display: grid; gap: 14px; }
.files-h { display: grid; gap: 8px; }
.files-h p { margin: 0; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; }
.file-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.file-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #0d0a1c; }
.file-thumb.ic { display: grid; place-items: center; font-size: 24px; }
.file-t { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.file-t audio { width: 100%; height: 32px; }
