/* VIP upgrade popup + locked rows */
body.vip-open { overflow: hidden; }
.vip-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(40, 20, 10, .45); backdrop-filter: blur(3px); }
.vip-sheet { position: relative; width: 100%; max-width: 460px; max-height: 94vh; overflow-y: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px -20px rgba(60, 30, 15, .5); }
@media (min-width: 720px) { .vip-overlay { align-items: center; } .vip-sheet { border-radius: 28px; padding-bottom: 22px; } }
.vip-x { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-dim); cursor: pointer; }
.vip-title { display: flex; align-items: center; gap: 8px; margin: 0 40px 8px 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.vip-title svg { color: #F2B01E; }
.vip-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.vip-perks { margin: 0 0 14px; padding: 12px 14px 12px 30px; border-radius: 16px; background: var(--surface-2); font-size: 13px; line-height: 1.7; }
.vip-perks li::marker { color: var(--accent); }
.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.vip-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 6px 12px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); font-family: var(--font-ui); cursor: pointer; }
.vip-plan.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.vp-label { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.vp-price { font-size: 17px; font-weight: 800; }
.vp-per { font-size: 11px; color: var(--text-dim); }
.vp-badge { position: absolute; top: -9px; padding: 2px 8px; border-radius: 999px; background: var(--btn-bg, var(--accent)); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; }
.vip-sheet .feedback { margin-top: 8px; text-align: center; }
.vq-qr { display: flex; justify-content: center; margin: 6px 0 12px; }
.vq-qr img { width: min(260px, 70vw); aspect-ratio: 1; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-card); }
.vq-rows { display: flex; flex-direction: column; margin-bottom: 10px; border-radius: 16px; background: var(--surface-2); }
.vq-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; }
.vq-row + .vq-row { border-top: 1px solid var(--line); }
.vq-row span { flex-shrink: 0; width: 96px; color: var(--text-dim); }
.vq-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vq-copy { flex-shrink: 0; padding: 4px 10px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); font-family: var(--font-ui); font-size: 12px; font-weight: 700; cursor: pointer; }
.vq-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.vq-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
.vq-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: vqPulse 1.1s ease-in-out infinite; }
@keyframes vqPulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.vip-done { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 4px; text-align: center; }
.vip-done > svg { color: var(--mint, #3BA776); }
.vip-done .btn { width: 100%; margin-top: 10px; }

/* locked list rows */
.soft .word-row.locked .lock-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--text-dim); font-size: 12.5px; }
.soft .word-row.locked .lock-hint svg { color: #C98A00; }
.wr-learn.vip { background: color-mix(in srgb, #F2B01E 20%, var(--surface)); color: #9A6A00; box-shadow: none; }
.level-chip .lc-lock { display: inline-flex; align-items: center; gap: 3px; }
.vip-card .acc-sub { margin-top: 3px; }

/* free-trial banner */
.trial-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: linear-gradient(120deg, color-mix(in srgb, #F2B01E 22%, var(--surface)), var(--surface)); box-shadow: var(--shadow-card); }
.trial-card img { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; }
.trial-card .tc-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.trial-card .tc-text b { font-size: 15px; font-weight: 800; }
.trial-card .tc-text span { font-size: 12px; line-height: 1.35; color: var(--text-dim); }
.trial-card .btn { flex-shrink: 0; width: auto; }
.words-soft .trial-card { margin: 0 0 12px; }
.road-soft .trial-card { margin: 16px 0 14px; }

/* gift code box */
.gift-row { display: flex; gap: 10px; align-items: stretch; }
.gift-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--text); font-family: var(--font-ui); font-size: 17px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.gift-row input:focus { outline: 0; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 124, 58, 237), 0.15); }
.gift-row input::placeholder { color: var(--text-dim); opacity: 0.65; font-weight: 600; letter-spacing: .06em; }
.gift-row .btn { flex-shrink: 0; width: auto; height: 52px; padding: 0 22px; font-size: 15px; font-weight: 800; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.gift-card .feedback { min-height: 0; margin-top: 10px; }

.road-soft .level-row { margin-top: 16px; }
.road-soft .trial-card + .level-row { margin-top: 0; }

/* VIP vs free account indicators */
.vip-status { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.vip-status.on { background: linear-gradient(135deg, #F7C948, #E0A21B); color: #3A2A00; }
/* VIP card: a gold card (gold gradient, dark brown text), with the usual card shadow and no glow or outline */
.vip-card.is-vip { background: linear-gradient(135deg, #FCE7A6 0%, #F5CB5C 55%, #E8AE34 100%); color: #3A2A00; box-shadow: var(--shadow-card); }
.vip-card.is-vip .acc-name { color: #3A2A00; }
.vip-card.is-vip .acc-sub { color: #5C4300; }
.vip-card.is-vip .set-ico { background: rgba(255, 255, 255, .45); color: #8A5A00; }
.vip-card.is-vip .vip-status.on { background: #3A2A00; color: #FCE7A6; }
.vip-card.is-vip .btn-primary { background: #3A2A00; color: #FCE7A6; box-shadow: none; }
.vip-card.is-vip .btn-secondary { background: rgba(255, 255, 255, .55); color: #3A2A00; border-color: transparent; }
.acc-avatar-wrap { position: relative; flex-shrink: 0; }
.acc-avatar-wrap.vip::after, .brand-logo.vip::after { content: '★'; position: absolute; right: -2px; bottom: -2px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid var(--surface); border-radius: 50%; background: linear-gradient(135deg, #F7C948, #E0A21B); color: #3A2A00; font-size: 12px; line-height: 1; }
.acc-avatar-wrap.vip .acc-avatar { box-shadow: 0 0 0 3px #F2B01E; }
.brand-logo { position: relative; overflow: visible; }
.brand-logo.vip::after { width: 18px; height: 18px; right: -5px; bottom: -5px; font-size: 10px; border-color: var(--bg); }

/* VIP member view of the plan popup */
.vip-now { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, #F7C948 30%, var(--surface)), var(--surface-2)); box-shadow: inset 0 0 0 1.5px #F2B01E; }
.vip-now b { font-size: 14.5px; }
.vip-now span { font-size: 12.5px; color: var(--text-dim); }
.vip-plan.cur { border-color: #F2B01E; background: color-mix(in srgb, #F7C948 16%, var(--surface)); }
.vip-plan:disabled { cursor: default; opacity: .95; }
.vp-badge.cur { background: linear-gradient(135deg, #F7C948, #E0A21B); color: #3A2A00; white-space: nowrap; }

/* plan cards: big number = price per day */
.vp-price { display: flex; align-items: baseline; justify-content: center; gap: 1px; font-size: 20px; letter-spacing: -.02em; }
.vp-price small { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.vp-per { font-size: 12.5px; font-weight: 700; color: var(--text); }
/* The gold gradient must cover the (transparent) 1px border too; otherwise it repeats under the border and leaves a
   dark/light seam along the card's edges. */
.vip-card.is-vip, main#screen .vip-card.is-vip { border-color: transparent; background-origin: border-box; background-clip: border-box; background-repeat: no-repeat; }
/* VIP card: the small buttons (Đổi gói VIP, Trang quản trị) take their own width, not the whole card */
.vip-card .acc-actions { flex-direction: row; flex-wrap: wrap; }
main#screen .vip-card .acc-actions { justify-content: center; }
/* Same height and type as a full button, only narrower and centred */
main#screen .vip-card .acc-actions .btn-sm { width: auto; min-width: 220px; flex: none; padding: 14px 32px; border-radius: 18px; font-size: 16px; font-weight: 800; }
