/* Shared responsive visual system for all server-rendered and AJAX pages. */
:root{--bg:#f5f7f9;--surface:#fff;--surface-soft:#f3f6f7;--text:#172b32;--muted:#596b74;--line:#e1e8eb;--line-strong:#cbd8dd;--brand:#087f72;--brand-dark:#06665d;--brand-soft:#e6f5f0;--radius:24px;--shadow:0 16px 48px rgba(25,53,65,.06)}
body{background:#f5f7f9!important;background-image:none!important;font-size:15px;line-height:1.65}
.wrap{width:min(1240px,calc(100% - 64px))}
.skip-link{position:fixed;top:-80px;left:16px;z-index:300;padding:12px 20px;background:var(--brand);color:#fff;border-radius:12px}.skip-link:focus{top:12px}
:where(a,button,input):focus-visible{outline:3px solid #159c8b;outline-offset:4px}
.topbar{background:#fff!important;border-bottom:1px solid var(--line);box-shadow:none;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.topbar-inner{height:84px;grid-template-columns:auto minmax(0,1fr) auto;gap:24px}
.brand strong{font-size:20px}.brand img{width:44px;height:44px;border-radius:14px}
.desktop-nav{background:transparent;border:0;gap:4px;padding:0}.desktop-nav a{font-size:13px;min-height:44px;padding:0 12px}.desktop-nav a.active{background:var(--brand-soft);box-shadow:none}.desktop-nav .header-zalo{color:#64716e;background:transparent;box-shadow:none}.desktop-nav .header-zalo:hover{background:#f3f6f7;color:var(--text);transform:none}
.guest-actions{gap:16px}.header-btn{min-height:44px;font-size:13px;border-radius:12px;padding:0 18px}.plain-link{font-size:13px}
.section-pad{padding-top:36px}.hero-grid{grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:24px;align-items:stretch}
.hero-copy{min-height:460px;padding:48px;border:0;border-radius:28px;background:linear-gradient(90deg,rgba(5,56,53,.48),rgba(5,56,53,.24) 58%,rgba(5,56,53,.02)),url('../img/hero-jade-v2.jpg') center/cover!important;color:#fff!important;box-shadow:none!important}
.hero-copy:after{display:none}.hero-copy .eyebrow{color:#a6e5cd!important;letter-spacing:1.7px;font-size:11px}
.hero-copy h1{font-size:clamp(34px,3.8vw,54px);line-height:1.13;letter-spacing:-2px;margin:20px 0;color:#fff!important}.hero-copy h1 span{color:#b2efcd!important}
.hero-copy .hero-description{max-width:440px;color:#d9e7e5;font-size:15px;line-height:1.8;margin:0}
.hero-actions{gap:12px;margin-top:30px}.btn{min-height:48px;padding:0 20px;font-size:14px;font-weight:700;border-radius:12px}.hero-copy .btn.primary{background:#b2efcd;color:#103d32;box-shadow:none}.hero-copy .btn.ghost{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.35)!important;color:#fff!important}
.hero-card{padding:30px;background:#fff;border:1px solid var(--line);border-radius:24px;display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow)!important}
.card-label{font-size:11px;letter-spacing:1.3px}.hero-card h2{font-size:28px;margin-bottom:20px}.hero-card label,.auth-card label{font-size:13px;color:#40545e;margin-bottom:16px}.hero-card input,.auth-card input{height:50px;background:#f8fafb;font-size:14px;padding:0 15px;border-radius:12px}.hero-card p,.mini-center{font-size:13px!important}.form-message{font-size:13px}
.section-gap{margin-top:28px}.panel,.auth-card,.news-detail-card,.download-section,.topup-packages,.topup-qr-card,.topup-history-section,.account-profile-v2{background:#fff;border-color:var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow)!important}
.section-title{margin-bottom:24px}.section-title h2,.download-section-head h2{font-size:25px;letter-spacing:-.7px}.section-title span,.section-kicker{font-size:11px}.section-title>a{font-size:13px;color:var(--brand)}
.post-grid{gap:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.post-card,.news-list-item{background:#f8fafb;border:1px solid var(--line);border-radius:16px;padding:24px;transition:transform .2s,border-color .2s}.post-card:hover,.news-list-item:hover{transform:translateY(-3px);border-color:#9bcdbf}.post-card h3,.news-list-item h2{font-size:18px;line-height:1.5}.post-card p,.news-list-item p{font-size:14px;line-height:1.8;color:var(--muted)}.news-meta,.read-more{font-size:12px}.skeleton{padding:28px;font-size:14px;background:#f8fafb;color:var(--muted)}
.giftcode-open{background:#fff;min-height:88px;border-radius:20px;padding:20px 24px;gap:16px}.giftcode-open-icon{width:48px;height:48px;border-radius:14px;font-size:22px}.giftcode-open-text small{font-size:11px}.giftcode-open-text strong{font-size:17px}.giftcode-open-count{font-size:12px}
.page-head{padding-top:48px;padding-bottom:24px}.page-head h1,.auth-intro h1{font-size:clamp(32px,4vw,48px);line-height:1.2}.page-head p,.auth-intro p{font-size:15px}.download-grid.tidy-downloads{gap:18px}.download-card{padding:24px;background:#fff;border-radius:18px}.download-body p{font-size:14px}.download-meta,.version-chip{font-size:11px}.download-btn{min-height:56px;border-radius:12px}.download-btn b{font-size:14px}.download-btn small{font-size:11px}.download-card.is-recommended:before{position:static;font-size:11px;color:var(--brand)}
.device-recommend{padding:22px;background:var(--brand-soft);border-color:#c8e5da}.recommend-copy p{font-size:14px}.recommend-copy h2{font-size:18px}
.auth-shell{gap:48px}.auth-card{padding:32px}.news-detail-content{font-size:16px;line-height:1.9;overflow-wrap:anywhere}.news-detail-card h1{line-height:1.35}
.server-choice{min-width:0;margin:0 0 18px;padding:0;border:0}
.server-choice legend{margin:0 0 10px;padding:0;color:#183b3d;font-size:14px;font-weight:850;letter-spacing:.1px}
.server-choice legend .required-note{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#fff2df;color:#8b4a0b;font-size:9px;font-weight:900;letter-spacing:.45px;vertical-align:1px}
.server-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch;gap:10px}
.server-option{position:relative;display:block!important;width:100%;height:100%;min-width:0;margin:0!important;cursor:pointer}
.server-option input{position:absolute!important;z-index:2;top:15px!important;right:15px!important;display:block!important;width:21px!important;height:21px!important;margin:0!important;padding:0!important;border:2px solid #6d8588!important;border-radius:50%!important;background:#fff!important;opacity:1!important;clip-path:none!important;overflow:visible!important;appearance:none;-webkit-appearance:none;cursor:pointer}
.server-option input:checked{border-color:#087f72!important;background:#087f72!important;box-shadow:inset 0 0 0 4px #fff}
.server-option-card{position:relative;display:flex;width:100%;height:100%;min-height:82px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;padding:13px 46px 13px 16px;border:1.5px solid #cbd8dd;border-radius:14px;background:#f5f8f8;color:var(--text);transition:border-color .16s,background .16s,box-shadow .16s,transform .16s}
.server-option-card:hover{border-color:#68a99c;background:#f0f7f5;transform:translateY(-1px)}
.server-option-card>i:first-child{flex:0 0 auto;margin:0;color:#68817f;font-size:19px}
.server-option-copy{display:flex;min-width:0;flex-direction:column;gap:1px}
.server-option-copy small{color:#718589;font-size:9px;font-weight:900;letter-spacing:.8px;line-height:1.2}
.server-option-copy b{font-size:14px;line-height:1.35}
.server-option input:checked+.server-option-card{border:2px solid #087f72;background:#e2f5ed;box-shadow:0 0 0 3px rgba(8,127,114,.13),0 8px 18px rgba(8,93,83,.09);transform:translateY(-1px)}
.server-option input:checked+.server-option-card>i:first-child,.server-option input:checked+.server-option-card .server-option-copy small{color:var(--brand)}
.server-option input:focus-visible+.server-option-card{outline:3px solid #159c8b;outline-offset:3px}
.server-choice.has-error .server-option-card{border-color:#d87979}
.server-choice-error{margin:8px 0 0!important;color:#b42318!important;font-size:12px!important;font-weight:700!important;line-height:1.4}
.hero-grid>.hero-copy{align-self:start}
@media(min-width:821px){.hero-grid>.hero-copy{height:460px}}
.topup-history-meta,.topup-history-extra{font-size:12px}.topup-history-line>b{font-size:16px}.topup-status{font-size:11px}.topup-history-item{padding:16px;gap:14px}.account-page .stat small{font-size:11px}.account-page .stat b{font-size:18px}.footer{margin-top:48px;background:#fff;padding:30px 0}.footer b{font-size:16px}.footer span,.footer p{font-size:12px}
@media(min-width:821px) and (max-width:1100px){.topbar-inner{gap:12px}.brand strong{font-size:17px}.desktop-nav a{padding:0 8px;font-size:12px}.desktop-nav a i{display:none}.login-link{display:none}.hero-copy{padding:32px}.hero-card{padding:24px}}
@media(max-width:820px){.wrap{width:calc(100% - 40px)}.topbar-inner{height:72px;grid-template-columns:1fr auto}.desktop-nav{display:none}.hero-grid,.auth-shell{grid-template-columns:1fr}.hero-copy{min-height:400px;padding:36px}.hero-card{padding:28px}.section-pad{padding-top:24px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-nav{left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));height:68px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 32px rgba(20,50,60,.14)}.mobile-nav a{font-size:11px;gap:3px;color:#526874}.mobile-nav a span{font-size:20px}.mobile-nav a.active{background:#e6f5f0;color:var(--brand)}.footer{padding-bottom:calc(112px + env(safe-area-inset-bottom))}.mobile-zalo-box{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);margin-top:24px}.mobile-zalo-copy small{font-size:10px}.mobile-zalo-copy b{font-size:14px}.topup-layout{grid-template-columns:1fr}.page-head{padding-top:32px}}
@media(max-width:560px){.wrap{width:calc(100% - 32px)}.brand strong{font-size:17px}.brand img{width:36px;height:36px}.header-btn{min-height:40px;padding:0 12px;font-size:12px}.hero-copy{padding:30px 24px;min-height:420px;border-radius:22px}.hero-copy h1{font-size:37px;letter-spacing:-1.4px}.hero-copy .eyebrow{font-size:10px;letter-spacing:1px}.hero-copy .hero-description{font-size:14px}.hero-actions{flex-direction:row;flex-wrap:wrap;margin-top:24px}.hero-actions .btn{width:auto;flex:1;padding:0 12px;font-size:13px;white-space:nowrap}.hero-card{padding:24px}.panel,.auth-card,.news-detail-card,.download-section,.topup-packages,.topup-qr-card,.topup-history-section{padding:20px;border-radius:20px}.section-title h2{font-size:21px}.section-title{gap:12px}.section-title>a{font-size:12px;white-space:nowrap}.post-grid,.download-grid.tidy-downloads{grid-template-columns:1fr}.post-grid .post-card:nth-child(3){display:block}.post-card{padding:20px}.giftcode-open{padding:16px;grid-template-columns:44px minmax(0,1fr) 16px;gap:12px}.giftcode-open-text strong{font-size:15px}.giftcode-open-icon{width:44px;height:44px}.giftcode-open-count{display:none}.section-gap{margin-top:20px}.giftcode-modal-head h2{font-size:20px}.giftcode-modal-body{padding:16px}.giftcode-value{overflow-wrap:anywhere}.account-actions-row{gap:12px}.footer .wrap{display:block}.footer p{margin-top:12px}.topup-history-meta,.topup-history-extra{font-size:11px}.topup-history-line>b{font-size:15px}.topup-history-item{padding:12px}.topup-status{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep scroll and page swaps immediate; avoid compositing the whole page. */
html{scroll-behavior:auto}
body.loading #pageContent{opacity:1;transition:none!important}
.mobile-nav{background:#fff;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.post-card,.news-list-item{transition:border-color .15s}
.post-card:hover,.news-list-item:hover{transform:none}
#homePosts>.skeleton{grid-column:1/-1;min-height:210px;display:grid;place-items:center}
/* Quiet text area and solid actions stay readable over the game artwork. */
body:before{display:none!important}
.news-item,.download-card,.topup-history-item{content-visibility:visible;contain-intrinsic-size:none}
.topbar,.mobile-nav{transform:translateZ(0);box-shadow:none!important}
.hero-card,.panel,.auth-card,.news-detail-card,.download-section,.topup-packages,.topup-qr-card,.topup-history-section,.account-profile-v2{box-shadow:none!important}
.hero-copy{background:#103e3b url('../img/hero-naruto-v3.jpg') center/cover no-repeat!important;isolation:isolate}
.hero-copy:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,40,38,.88),rgba(8,40,38,.76) 55%,rgba(8,40,38,.08));z-index:0;pointer-events:none}
.hero-copy .eyebrow{font-size:16px;letter-spacing:0;font-weight:600;color:#d9f1e8!important}
.hero-copy h1{font-size:clamp(42px,5vw,66px);line-height:1.15;margin:16px 0}
.hero-copy .hero-description{color:#fff;font-size:18px;font-weight:500;line-height:1.6}
.hero-copy .btn.primary{background:#c5f4dc;color:#103e3b;border:1px solid #c5f4dc}
.hero-copy .btn.ghost{background:#fff!important;color:#163e37!important;border:1px solid #fff!important}
.hero-copy .btn:hover{background:#e8fff2!important;color:#103e3b!important;transform:none}
.hero-copy .mobile-zalo-box{background:#fff;border:1px solid #fff;color:#163e37;box-shadow:none}
.hero-copy .mobile-zalo-icon{background:#e6f5f0;color:#087f72}
.hero-copy .mobile-zalo-copy small{opacity:1;color:#526b62}
@media(max-width:560px){.hero-copy .eyebrow{font-size:15px;letter-spacing:0}.hero-copy h1{font-size:44px;letter-spacing:-1.5px}.hero-copy .hero-description{font-size:16px}.hero-copy:before{background:linear-gradient(90deg,rgba(8,40,38,.92),rgba(8,40,38,.77) 70%,rgba(8,40,38,.45))}}
/* Compact homepage hero and login panel. */
.account-wallet{display:block;margin-top:0;padding:18px 22px;box-shadow:none}
.account-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid rgba(255,255,255,.2)}
.account-wallet .account-avatar-v2{background:rgba(255,255,255,.15);color:#fff}
.account-wallet .account-profile-copy-v2 h1{color:#fff;font-size:18px;margin:0 0 3px}
.account-wallet .account-profile-copy-v2 span{color:#e1f1ea;font-size:11px}
.account-wallet .account-logout-icon{color:#fff;border-color:rgba(255,255,255,.35);background:transparent}
.account-wallet .account-logout-icon:hover{background:rgba(255,255,255,.12)}
.account-wallet-amount>small{font-size:11px;opacity:.85}.account-wallet-amount>strong{font-size:30px;margin-top:6px}
.account-balance-card.account-wallet .account-wallet-amount>span{font-size:12px;margin-top:9px}
@media(max-width:560px){.account-balance-card.account-wallet{padding:16px}.account-wallet-head{padding-bottom:12px;margin-bottom:14px}.account-wallet .account-profile-copy-v2 h1{font-size:17px}}
.account-profile-v2{padding:10px 14px;border-radius:14px;gap:12px}
.account-profile-main{flex:1;gap:10px;min-width:0}
.account-avatar-v2{width:38px;height:38px;flex-basis:38px;border-radius:10px;font-size:16px}
.account-profile-copy-v2 h1{font-size:19px;margin:0 0 3px;line-height:1.2}
.account-profile-copy-v2 span{font-size:11px;font-weight:500;line-height:1.3}
.account-logout-icon{height:44px;flex-shrink:0;padding:0 12px;font-size:12px;font-weight:600;background:transparent;border-color:var(--line);color:#65726e;border-radius:10px;gap:7px}
.account-logout-icon i{font-size:16px}.account-logout-icon:hover{color:#b84d43;background:#fff0ec;border-color:#efd8d3}
@media(max-width:560px){.account-profile-v2{padding:10px 12px}.account-profile-copy-v2 h1{font-size:17px}.account-logout-icon{width:44px;padding:0}.account-logout-icon span{display:none}}
.header-topup.active{background:#e6f5f0;color:var(--brand-dark);box-shadow:inset 0 0 0 2px var(--brand);font-weight:800}
.header-topup.active:hover{background:#d5eee5;color:var(--brand-dark)}
.header-account.active{background:var(--brand-soft);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.header-account.active b,.header-account.active small{color:var(--brand-dark)}
.has-session .user-nav{display:flex;gap:10px;max-width:none;overflow:visible;min-width:0}
.header-account{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#f8fafb;min-width:0;max-width:220px}
.header-account>i{font-size:24px;color:var(--brand)}.header-account>span{min-width:0}.header-account b{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--text);line-height:1.3}.header-account b i{color:var(--brand);font-size:16px}.header-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px;font-size:11px;color:var(--muted);line-height:1.5;margin-top:2px}.header-account:hover{border-color:var(--brand);background:var(--brand-soft)}
.header-topup{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:0 14px;background:var(--brand);color:#fff;border-radius:12px;font-size:13px;font-weight:700;white-space:nowrap}.header-topup:hover{background:var(--brand-dark)}
@media(min-width:821px) and (max-width:1100px){.has-session{gap:10px}.has-session .brand strong{font-size:15px}.has-session .desktop-nav a{padding:0 6px;font-size:11px}.header-account{max-width:165px;padding:7px 9px}.header-topup{padding:0 10px}.has-session .user-nav{gap:6px}}
@media(max-width:820px){.header-account{max-width:180px;min-height:46px;padding:6px 10px;gap:8px}.header-account small{max-width:120px}.header-topup{min-height:46px;padding:0 12px;font-size:12px}.has-session .user-nav{gap:8px}}
@media(max-width:480px){.has-session .brand strong{display:none}.has-session{gap:10px}.header-account{max-width:190px}.header-account small{max-width:130px}.header-account>i{font-size:21px}}
@media(max-width:350px){.header-account{max-width:155px;padding:6px 8px}.header-account small{max-width:105px;font-size:10px}.header-account>i{display:none}.header-topup{padding:0 10px}.header-topup>i{display:none}}
.topup-choice-hint{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:#e6f5f0;color:#16594c;font-size:14px;line-height:1.6}
.topup-select-prompt{display:none}
.topup-change-row{display:none}
@media(max-width:820px){.topup-change-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:13px;color:var(--muted)}.topup-change-row .btn{min-height:44px;font-size:13px;padding:0 12px;white-space:nowrap}.topup-packages{scroll-margin-top:88px}}
@media(max-width:820px){
  .topup-packages{order:0}.topup-qr-card{order:1;position:static}
  .topup-section-title h2{font-size:21px}.topup-section-title small{font-size:11px}
  .deposit-money{font-size:20px}.deposit-coin{font-size:13px}.deposit-option{min-height:88px;padding:14px}
  .deposit-option small{font-size:11px}.deposit-option.active{border:2px solid var(--brand);padding:13px}
  .topup-layout:not(.has-topup-selection) .deposit-option.active{border:1px solid var(--line);padding:14px;background:#fafcfc;box-shadow:none}
  .topup-layout:not(.has-topup-selection) .topup-payment-details{display:none}
  .topup-select-prompt{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:22px 10px;color:var(--muted);background:#f8fafb;border-radius:14px;font-size:14px}
  .topup-select-prompt i{font-size:26px;color:var(--brand)}.topup-select-prompt b{color:var(--text);font-size:16px}
  .has-topup-selection .topup-select-prompt{display:none}
  .topup-qr-card{scroll-margin-top:88px}.qr-summary small{font-size:11px}.qr-summary b{font-size:18px}.qr-note{font-size:13px}
}
.referral-panel{margin-top:22px;padding:26px;background:#fff;border:1px solid var(--line);border-radius:20px}
.referral-panel p{color:var(--muted);font-size:14px}.referral-rate{color:var(--brand);font-size:13px;white-space:nowrap}.referral-share{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}.referral-share label{font-size:12px;color:var(--muted)}.referral-share label strong{display:block;font-size:20px;color:var(--text)}.referral-share input{width:100%;height:48px;padding:0 12px;background:#f8fafb;border:1px solid var(--line);border-radius:10px;color:var(--text);font-size:14px;display:block;margin-top:5px}.referral-totals{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}.referral-totals>div{padding:16px;background:var(--brand-soft);border-radius:14px}.referral-totals small,.referral-totals b{display:block}.referral-totals b{font-size:23px;color:var(--brand)}.referral-totals small{font-size:12px}.referral-panel h3{font-size:17px;margin:24px 0 12px}.referral-list article{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.referral-list b{overflow-wrap:anywhere}.referral-list small{display:block;font-size:12px;color:var(--muted);font-weight:400}.referral-list strong{text-align:right;color:var(--brand);white-space:nowrap}.referral-empty{padding:16px;background:#f8fafb;border-radius:12px}
@media(max-width:560px){.referral-panel{padding:20px}.referral-share{grid-template-columns:1fr}.referral-rate{white-space:normal;text-align:right}.referral-totals b{font-size:19px}.referral-list article{gap:10px}.referral-list strong{font-size:14px}}
.hero-copy{min-height:340px;padding:32px 40px}
.hero-card{padding:22px 26px}
.hero-card h2{font-size:25px;margin-bottom:14px}
.hero-card label{margin-bottom:12px}
.hero-card input{height:44px;margin-top:4px}
.hero-card .btn{min-height:44px}
.hero-card .mini-center{margin:10px 0 0!important}
.hero-actions{margin-top:22px}
@media(max-width:820px){.hero-copy{min-height:300px;padding:28px 32px}.hero-card{padding:22px 26px}.hero-grid{gap:18px}}
@media(max-width:560px){.hero-copy{min-height:270px;padding:24px}.hero-copy h1{margin:12px 0}.hero-copy .hero-actions{margin-top:18px}.hero-copy .mobile-zalo-box{margin-top:16px}.hero-card{padding:20px}.hero-card h2{font-size:23px}}
.account-balance-card.account-wallet{background:#fff;color:var(--text);border:1px solid var(--line)}
.account-wallet .account-wallet-head{border-bottom-color:var(--line)}
.account-wallet .account-avatar-v2{background:var(--brand-soft);color:var(--brand)}
.account-wallet .account-profile-copy-v2 h1{color:var(--text)}
.account-wallet .account-profile-copy-v2 span{color:var(--muted)}
.account-wallet .account-logout-icon{color:var(--muted);border-color:var(--line)}
.account-wallet .account-logout-icon:hover{background:#fff0ec;color:#b84d43}
.account-wallet .account-wallet-amount>small{color:var(--muted);opacity:1}
.account-wallet .account-wallet-amount>strong{color:var(--brand);font-size:30px}
.account-wallet .account-wallet-amount>span{color:var(--muted);opacity:1}
.account-wallet .account-wallet-details{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.account-wallet-details .account-quick-item{min-width:0;min-height:0;padding:0;background:transparent;border:0;box-shadow:none;display:flex;align-items:center;gap:9px}
.account-wallet-details .account-quick-item i{width:auto;height:auto;background:none;color:var(--brand);font-size:16px}
.account-wallet-details .account-quick-item small{font-size:11px;letter-spacing:0;font-weight:500;opacity:1;color:var(--muted)}
.account-wallet-details .account-quick-item b{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;color:var(--text)}
.referral-benefit{display:flex;align-items:center;gap:16px;background:#e6f5f0;border:1px solid #b9dfd1;border-left:4px solid var(--brand);border-radius:14px;padding:18px;margin:0 0 22px}
.referral-benefit>i{font-size:30px;color:var(--brand)}
.referral-panel .referral-benefit p{margin:0;color:#204f43;font-size:15px;line-height:1.8}
.referral-benefit strong{display:inline-block;padding:1px 9px;background:var(--brand);color:#fff;border-radius:7px;font-size:18px;white-space:nowrap}
@media(max-width:560px){.account-wallet .account-wallet-details{gap:12px 20px}.referral-benefit{align-items:flex-start;gap:12px;padding:15px}.referral-benefit>i{font-size:24px;margin-top:4px}.referral-panel .referral-benefit p{font-size:14px}}

/* Shared page spacing: use the game-download page as the rhythm reference. */
#pageContent{padding:24px 0 0}
body[data-route="doi-coin"] #pageContent{padding-top:8px}
body[data-route="trang-chu"] .section-pad{padding-top:0}
#pageContent .page-head{padding-top:0}
#pageContent .news-detail-page{padding-top:0;padding-bottom:0}
#pageContent .auth-shell{min-height:0;padding-top:0;padding-bottom:0}
#pageContent .topup-page{padding-top:0;padding-bottom:0}
#pageContent .account-page-v2{padding-top:0;padding-bottom:0}
#pageContent .exchange-page{padding-top:0;padding-bottom:0}
#pageContent .starter-page{padding-top:0;padding-bottom:0}
body[data-route="tin-tuc"] .news-list{padding-bottom:0}
body[data-route="tai-game"] .download-section{margin-bottom:0}
#pageContent .not-found{padding-top:0;padding-bottom:0}
.footer{margin-top:48px}
.brand-wordmark{width:210px;gap:0;flex-shrink:0}
.brand-wordmark .brand-full-logo{display:block;width:210px;height:auto;object-fit:contain;border-radius:0}
.brand-wordmark .brand-mobile-mark{display:none}
@media(min-width:821px) and (max-width:1100px){.brand-wordmark,.brand-wordmark .brand-full-logo{width:175px}}
@media(max-width:560px){.brand-wordmark,.brand-wordmark .brand-full-logo{width:175px}}
@media(max-width:480px){.has-session .brand-wordmark{width:38px}.has-session .brand-wordmark .brand-full-logo{display:none}.has-session .brand-wordmark .brand-mobile-mark{display:block;width:38px;height:38px;border-radius:0}}

/* Prevent mobile browsers from zooming when focusing form fields. */
@media(max-width:820px){input,select,textarea{font-size:16px!important}}

.browser-warning-modal{position:fixed;inset:0;z-index:10010;display:none;align-items:center;justify-content:center;padding:18px}
.browser-warning-modal.is-open{display:flex}
.browser-warning-backdrop{position:absolute;inset:0;background:rgba(18,29,26,.66);backdrop-filter:blur(3px)}
.browser-warning-panel{position:relative;width:min(440px,100%);padding:30px 28px 26px;background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:22px;box-shadow:0 24px 80px rgba(11,24,20,.32);text-align:center;outline:none;animation:browser-warning-enter .18s ease-out}
.browser-warning-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:1px solid #e5ebe8;border-radius:11px;background:#f7f9f8;color:#65716c;cursor:pointer}
.browser-warning-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 16px;border-radius:19px;background:#fff3df;color:#db8b12;font-size:25px}
.browser-warning-eyebrow{display:block;margin-bottom:7px;color:#25846a;font-size:10px;font-weight:900;letter-spacing:1.2px}
.browser-warning-panel h2{margin:0;color:#23312c;font-size:23px;line-height:1.3;letter-spacing:-.4px}
.browser-warning-panel p{margin:13px 0 22px;color:#65716c;font-size:14px;line-height:1.75}
.browser-warning-action{width:100%;min-height:46px;border:0;border-radius:12px;background:#16876b;color:#fff;font-weight:800;cursor:pointer;transition:background .16s ease}
.browser-warning-action:hover{background:#107357}
body.browser-warning-open{overflow:hidden}
@keyframes browser-warning-enter{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:520px){.browser-warning-modal{padding:14px}.browser-warning-panel{padding:28px 21px 21px;border-radius:20px}.browser-warning-panel h2{font-size:21px}}

/* Gói tân thủ dùng chung bảng màu và nhịp bố cục của website. */
@media(max-width:820px){.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}}
.starter-page .starter-layout{grid-template-columns:minmax(0,1fr) 360px}
.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.starter-package{gap:8px}.starter-package .download-body{padding-bottom:2px}.starter-package .download-body p{min-height:0}
.starter-price{display:block;margin-top:10px;color:var(--brand-dark);font-size:22px;line-height:1.2}
.starter-rewards{display:grid;gap:8px;margin:4px 0 12px}.starter-currency{display:flex;flex-wrap:wrap;gap:6px}.starter-currency span{padding:5px 8px;background:var(--brand-soft);border-radius:8px;color:var(--brand-dark);font-size:10px}.starter-currency b{margin-left:3px}
.starter-item{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff}.starter-item img{width:22px;height:22px;object-fit:contain;border-radius:8px;background:var(--surface-soft)}.starter-item b,.starter-item small{display:block}.starter-item b{font-size:11px}.starter-item small{color:var(--muted);font-size:9px;overflow-wrap:anywhere}
.starter-order-card{display:none}.starter-order-card.is-visible{display:block}.starter-order-state{padding:9px 10px;background:var(--brand-soft);border-radius:9px;color:var(--brand-dark);font-size:10px}
.starter-editor{overflow:hidden}.starter-editor-body{padding:16px}.starter-editor-body label{display:block;margin:0 0 12px;color:#4f5c59;font-size:11px;font-weight:800}.starter-editor-body input,.starter-editor-body textarea{width:100%;margin-top:5px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:var(--text)}.starter-editor-body input:focus,.starter-editor-body textarea:focus{outline:0;border-color:#7fb7aa;box-shadow:0 0 0 3px var(--brand-soft)}.starter-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}.starter-form-grid.starter-currency-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.starter-editor-body label.starter-check{display:flex;align-items:center;gap:9px;padding-top:24px}.starter-editor-body .starter-check input{width:18px;height:18px;margin:0}.starter-editor-body h3{margin:16px 0 8px;font-size:14px}.starter-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.starter-editor-heading h3{margin-bottom:0}.starter-editor-heading p{margin:2px 0;color:var(--muted);font-size:10px}.starter-form-actions,.starter-row-actions{display:flex;gap:8px;flex-wrap:wrap}.starter-admin-list{margin-top:14px}.starter-admin-rows{display:grid;gap:8px}.starter-admin-row{align-items:center}.starter-row-actions{margin-left:auto}.starter-delete{color:#a74444!important}.starter-admin-page .version-badge{white-space:nowrap}
.starter-admin-page .results{max-height:210px;overflow:auto;background:#fff;border:1px solid var(--line-strong);border-radius:8px}.starter-admin-page .hit{padding:8px 10px;border-bottom:1px solid var(--line);cursor:pointer;font-size:10px}.starter-admin-page .hit:hover{background:var(--brand-soft)}.starter-admin-page .chosen{display:inline-flex;gap:8px;align-items:center;background:var(--brand-soft);color:var(--brand-dark);padding:6px 9px;border-radius:8px;margin:4px 0;font-size:10px}.starter-admin-page .row{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:10px}.starter-admin-page .itemrow{margin:10px 0;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px}.starter-admin-page .opts{padding:8px 0 8px 12px;border-left:2px solid var(--brand-soft);margin:8px 0}.starter-admin-page .oprow{padding:8px 0;border-bottom:1px solid var(--line)}
@media(max-width:820px){.starter-page .starter-layout{grid-template-columns:1fr}.starter-order-card{position:static;order:-1}.starter-admin-page .starter-form-grid.starter-currency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.starter-grid{grid-template-columns:1fr}.starter-editor-body{padding:12px}.starter-form-grid{grid-template-columns:1fr}.starter-admin-page .starter-form-grid.starter-currency-grid{grid-template-columns:1fr 1fr}.starter-admin-page .row{grid-template-columns:minmax(0,1fr) 100px}.starter-admin-row{align-items:flex-start;flex-wrap:wrap}.starter-row-actions{width:100%;margin-left:0}.starter-editor-heading{align-items:flex-end}.starter-editor-heading .btn{white-space:nowrap;padding:0 10px}}.starter-admin-page button.sub,.starter-admin-page button.danger{min-height:34px;padding:0 10px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--text);font-size:10px;font-weight:800}.starter-admin-page button.danger{border-color:#efd3d3;color:#a74444}.starter-admin-page button.sub:hover{background:var(--brand-soft)}
/* Trang mua chuyển hẳn sang màn thanh toán sau khi tạo đơn. */
.starter-card-price{display:inline-flex;align-items:center;padding:7px 11px;border-radius:10px;background:var(--brand-soft);color:var(--brand-dark);font-size:18px;font-weight:900;line-height:1.2}
.starter-item-info{min-width:0}.starter-item-info small{margin-top:3px;font-size:10px;line-height:1.45}
.starter-page.is-paying{width:100%;max-width:980px;min-height:calc(100vh - 150px);display:flex;flex-direction:column;justify-content:center}
.starter-page.is-paying>.topup-head,.starter-page.is-paying .topup-packages{display:none!important}
.starter-page.is-paying .starter-layout{display:block!important;width:100%;margin:auto}
.starter-page.is-paying .starter-order-card{display:block!important;width:100%;max-width:520px;margin:0 auto}
.starter-change{margin-top:12px}
/* Căn đều ô nhập giá trị trong mỗi option. */
.starter-admin-page .oprow .option-row{grid-template-columns:minmax(0,1fr) minmax(140px,180px);align-items:start}
.starter-admin-page .oprow .option-search,.starter-admin-page .oprow .option-value{min-width:0}
.starter-admin-page .oprow .option-search>input,.starter-admin-page .oprow .option-value>input{display:block;box-sizing:border-box;width:100%;min-width:0;height:40px;margin-top:5px}
@media(max-width:560px){.starter-page.is-paying{min-height:calc(100vh - 110px);padding-left:14px;padding-right:14px}.starter-admin-page .oprow .option-row{grid-template-columns:minmax(0,1fr) minmax(110px,132px);gap:8px}}
.starter-page.is-paying{max-width:none}
.starter-page.is-paying .starter-order-card{position:static}
/* Màn thanh toán desktop lấy toàn chiều ngang và căn QR đúng giữa viewport. */
.starter-page.is-paying{width:100%;max-width:none;margin-left:0;margin-right:0;padding-left:32px;padding-right:32px;align-items:stretch}
.starter-page.is-paying .starter-layout{display:flex!important;grid-template-columns:none!important;justify-content:center;align-items:center;width:100%;max-width:none;margin:0}
.starter-page.is-paying .starter-order-card{flex:0 1 760px;width:100%;max-width:760px;margin:0 auto;position:static}
@media(max-width:820px){.starter-page.is-paying{padding-left:14px;padding-right:14px}.starter-page.is-paying .starter-order-card{flex-basis:100%;max-width:100%}}
/* Danh sách gói dùng hết chiều ngang khi chưa mở màn QR. */
.starter-page:not(.is-paying){width:100%;max-width:none;padding-left:32px;padding-right:32px}
.starter-page:not(.is-paying) .starter-layout{display:block;width:100%;max-width:none}
.starter-page:not(.is-paying) .topup-packages{width:100%;max-width:none}
.starter-page:not(.is-paying) .starter-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
@media(max-width:820px){.starter-page:not(.is-paying){padding-left:12px;padding-right:12px}.starter-page:not(.is-paying) .starter-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}}
.starter-order-card .qr-summary>div{padding:0;border:0;border-radius:0;background:transparent}
.starter-order-card .qr-summary b{font-size:13px;color:var(--brand-dark);letter-spacing:.3px}
.starter-confirm-modal{position:fixed;inset:0;z-index:130;display:none;place-items:center;padding:20px;background:rgba(13,30,27,.58);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.starter-confirm-modal.is-open{display:grid;animation:starter-confirm-fade .18s ease-out}
.starter-confirm-dialog{width:min(100%,460px);padding:28px;border:1px solid rgba(255,255,255,.8);border-radius:24px;background:linear-gradient(155deg,#fff 0%,#f4faf7 100%);box-shadow:0 28px 90px rgba(8,31,26,.28);text-align:center;animation:starter-confirm-pop .2s cubic-bezier(.2,.8,.2,1)}
.starter-confirm-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 15px;border:1px solid #cce8dd;border-radius:19px;background:linear-gradient(145deg,#e7f8f0,#d7f1e6);color:#16876b;font-size:24px;box-shadow:0 8px 22px rgba(22,135,107,.12)}
.starter-confirm-eyebrow{color:#16876b;font-size:10px;font-weight:900;letter-spacing:1.15px}
.starter-confirm-dialog h2{margin:7px 0 9px;color:#20342d;font-size:22px;line-height:1.3;letter-spacing:-.45px}
.starter-confirm-dialog p{margin:0 auto 22px;max-width:380px;color:#65736e;font-size:13px;line-height:1.7}
.starter-confirm-actions{display:flex;justify-content:center;gap:10px}
.starter-confirm-actions button{min-height:44px;padding:0 18px;border-radius:12px;font-size:12px;font-weight:850;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.starter-confirm-cancel{border:1px solid #d9e4df;background:#fff;color:#53615b}
.starter-confirm-continue{border:1px solid #16876b;background:linear-gradient(135deg,#1b9a79,#147c62);color:#fff;box-shadow:0 7px 18px rgba(22,135,107,.2)}
.starter-confirm-actions button:hover{transform:translateY(-1px)}.starter-confirm-cancel:hover{background:#f5f8f6}.starter-confirm-continue:hover{box-shadow:0 10px 23px rgba(22,135,107,.3)}
body.starter-confirm-open{overflow:hidden}
@keyframes starter-confirm-fade{from{opacity:0}to{opacity:1}}@keyframes starter-confirm-pop{from{opacity:0;transform:translateY(9px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:520px){.starter-confirm-modal{padding:15px}.starter-confirm-dialog{padding:24px 19px 19px;border-radius:21px}.starter-confirm-dialog h2{font-size:20px}.starter-confirm-actions button{flex:1;padding:0 12px}}
.package-shop-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:14px;margin:0 0 14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.package-shop-tabs>a,.package-shop-tabs>button{flex:1;min-width:150px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px 9px;padding:13px 16px;border:1px solid transparent;border-radius:11px;background:var(--surface-soft);color:var(--muted);font:inherit;font-size:14px;font-weight:800;text-decoration:none;cursor:pointer}
.package-shop-tabs small{font-size:10px;font-weight:600;opacity:.85}
.package-shop-tabs [aria-selected="true"],.package-shop-tabs [aria-current="page"]{border-color:#b6dbce;background:var(--brand-soft);color:var(--brand-dark);box-shadow:0 3px 9px rgba(23,122,104,.08)}
.package-shop-tabs>a:focus-visible,.package-shop-tabs>button:focus-visible{outline:3px solid #7fb7aa;outline-offset:2px}
.package-shop-note{margin:0 18px 18px;color:var(--muted);font-size:12px;line-height:1.6}
.package-shop-card-copy h3{margin:0 0 5px;font-size:17px;line-height:1.4;color:var(--text)}
.package-shop-card-copy p{margin:0 0 6px;color:var(--muted);font-size:12px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.starter-package .starter-buy{margin-top:auto}
.starter-page [data-package-panel][hidden],.starter-order-card img[hidden]{display:none!important}
.starter-order-state{min-height:44px;line-height:1.6}
.starter-item:has(.starter-item-stats){align-items:start}
.starter-item-stats{display:grid;gap:3px;margin:5px 0 0;padding:0;list-style:none;color:var(--brand-dark);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:560px){.package-shop-tabs{gap:7px;padding:8px}.package-shop-tabs>a,.package-shop-tabs>button{min-width:0;padding:11px 8px;font-size:12px}.package-shop-tabs small{flex-basis:100%;font-size:9px}}
