:root{--bg:#e8eeeb;--bg-soft:#edf2ef;--surface:#f7f9f8;--surface-soft:#f0f4f2;--text:#1b2724;--muted:#65726e;--line:#d5ddda;--line-strong:#c6d0cc;--brand:#177a68;--brand-dark:#116252;--brand-soft:#eaf5f1;--blue:#3377c9;--shadow:0 12px 32px rgba(31,54,49,.07);--shadow-sm:0 6px 18px rgba(31,54,49,.055);--radius:16px;--radius-sm:11px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit}.wrap{width:min(1160px,calc(100% - 40px));margin:0 auto}.topbar{position:sticky;top:0;z-index:60;background:rgba(244,247,245,.96);border-bottom:1px solid rgba(202,213,209,.95);box-shadow:0 6px 22px rgba(21,43,39,.055);backdrop-filter:blur(10px)}.topbar-inner{height:66px;display:grid;grid-template-columns:230px 1fr 260px;align-items:center;gap:18px}.brand{display:inline-flex;align-items:center;gap:10px;width:max-content}.brand img{width:38px;height:38px;border-radius:11px;object-fit:cover}.brand strong{font-size:17px;letter-spacing:-.35px}.brand em{font-style:normal;color:var(--brand)}.desktop-nav{justify-self:center;display:flex;align-items:center;gap:5px;padding:4px;background:#f3f6f5;border:1px solid var(--line);border-radius:12px}.desktop-nav a{display:flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border-radius:9px;color:#64716e;font-size:12px;font-weight:700;transition:.16s}.desktop-nav a:hover{color:var(--text);background:#fff}.desktop-nav a.active{background:#fff;color:var(--brand);box-shadow:0 2px 8px rgba(33,66,59,.08)}.user-nav{justify-self:end;display:flex;align-items:center;gap:9px}.plain-link{font-size:12px;font-weight:700;color:#566360}.header-btn,.user-pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:0 13px;border-radius:10px}.header-btn{background:var(--brand);color:#fff;font-size:12px;font-weight:800}.header-btn:hover{background:var(--brand-dark)}.user-pill{background:#f4f7f6;border:1px solid var(--line);font-size:12px}.user-pill>span:first-child{width:25px;height:25px;border-radius:8px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:900}.user-pill b{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn{border:0;min-height:43px;padding:0 17px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:800;cursor:pointer;transition:.16s}.btn.primary{background:var(--brand);color:#fff;box-shadow:0 6px 14px rgba(23,122,104,.14)}.btn.primary:hover{background:var(--brand-dark);transform:translateY(-1px)}.btn.ghost{background:#f6f8f7;color:#34413e;border:1px solid var(--line-strong)}.btn.ghost:hover{border-color:#aebbb7;background:#fafcfb}.btn.full{width:100%}.eyebrow,.section-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--brand);font-size:10px;font-weight:900;letter-spacing:1.1px}.section-pad{padding:28px 0 0}.hero-grid{display:grid;grid-template-columns:minmax(0,1.42fr) 380px;gap:18px}.hero-copy,.hero-card,.panel,.side-panel,.auth-card,.account-panel,.stat,.news-item,.download-section,.device-recommend{background:rgba(247,249,248,.92);border:1px solid rgba(211,220,216,.92);border-radius:var(--radius);box-shadow:0 10px 28px rgba(31,54,49,.065)}.hero-copy{min-height:355px;padding:44px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(248,250,249,.9),rgba(240,245,242,.92))}.hero-copy:after{content:"";position:absolute;right:-85px;top:-100px;width:300px;height:300px;border-radius:50%;background:linear-gradient(135deg,rgba(234,245,241,.9),rgba(247,250,249,.25))}.hero-copy>*{position:relative;z-index:1}.hero-copy h1{margin:8px 0 11px;font-size:54px;line-height:.97;letter-spacing:-3px}.hero-copy h1 span{color:var(--brand)}.hero-copy p{max-width:630px;color:var(--muted);margin:0;font-size:14px}.hero-actions{display:flex;gap:9px;margin-top:23px}.quick-points{display:flex;flex-wrap:wrap;gap:15px;margin-top:21px;color:#66736f;font-size:11px;font-weight:700}.quick-points i{color:var(--brand);margin-right:4px}.hero-card{padding:25px;align-self:stretch;background:linear-gradient(180deg,rgba(248,250,249,.92),rgba(241,245,243,.94))}.card-label{font-size:9px;font-weight:900;letter-spacing:1px;color:var(--brand);margin-bottom:10px}.hero-card h2{margin:0 0 7px;font-size:22px;letter-spacing:-.6px}.hero-card p{margin:0 0 16px;color:var(--muted);font-size:12px}.hero-card label,.auth-card label{display:block;margin:0 0 12px;color:#4f5c59;font-size:11px;font-weight:800}.hero-card input,.auth-card input{width:100%;height:43px;margin-top:6px;padding:0 12px;border:1px solid var(--line-strong);border-radius:9px;background:#f2f5f4;outline:0;color:var(--text)}.hero-card input:focus,.auth-card input:focus{border-color:#7fb7aa;box-shadow:0 0 0 3px var(--brand-soft)}.mini-center{text-align:center!important;margin-top:13px!important}.text-link{color:var(--brand);font-weight:800}.avatar-letter{width:44px;height:44px;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:900;font-size:18px;margin-bottom:12px}
.shortcut-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.shortcut{min-height:72px;background:#fff;border:1px solid var(--line);border-radius:13px;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:12px 14px;transition:.16s}.shortcut:hover{border-color:#bdcbc7;box-shadow:var(--shadow-sm);transform:translateY(-1px)}.shortcut-icon{width:36px;height:36px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:14px}.shortcut b{display:block;font-size:12px}.shortcut small{display:block;margin-top:2px;color:var(--muted);font-size:10px}.shortcut .arrow{color:#a4afac}.section-gap{margin-top:16px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.panel,.side-panel{padding:20px}.section-title{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:13px}.section-title span{color:var(--brand);font-size:9px;font-weight:900;letter-spacing:1px}.section-title h2{font-size:19px;margin:2px 0 0}.section-title a{font-size:10px;color:var(--brand);font-weight:800}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.post-card{background:var(--surface-soft);border:1px solid var(--line);border-radius:11px;padding:14px}.post-card small{color:#8a9592;font-size:9px}.post-card h3{font-size:13px;line-height:1.4;margin:5px 0}.post-card p{font-size:10px;color:var(--muted);margin:0;line-height:1.55}.side-panel{display:flex;flex-direction:column;justify-content:center}.side-panel h3{font-size:20px;line-height:1.25;margin:8px 0}.side-panel p{color:var(--muted);font-size:11px;margin:0 0 15px}
.page-head{padding:43px 0 20px}.page-head.compact-head{padding-bottom:16px}.page-head h1{font-size:38px;line-height:1.08;letter-spacing:-1.6px;margin:6px 0}.page-head p{margin:0;color:var(--muted);font-size:13px}.page-head p strong{color:var(--text)}.news-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding-bottom:50px}.news-item{padding:20px}.news-meta{display:flex;gap:7px;color:#8b9693;font-size:9px}.news-item h2{font-size:18px;margin:7px 0}.news-item p{color:var(--muted);font-size:11px;margin:0;white-space:pre-line}
.device-recommend{padding:16px 18px;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:14px;border-color:#cfe3dd;background:linear-gradient(135deg,#fff,#f5fbf8)}.recommend-icon{width:44px;height:44px;border-radius:12px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:17px}.recommend-copy span{display:block;font-size:9px;letter-spacing:1px;font-weight:900;color:var(--brand)}.recommend-copy h2{margin:2px 0 1px;font-size:17px;letter-spacing:-.3px}.recommend-copy p{margin:0;color:var(--muted);font-size:10px}.recommend-btn{white-space:nowrap}.download-section{margin-top:14px;padding:20px;margin-bottom:52px;background:linear-gradient(180deg,rgba(248,250,249,.98),rgba(240,244,242,.98))}.download-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.download-section-head h2{font-size:20px;margin:2px 0 0}.version-badge{display:inline-flex;align-items:center;gap:6px;background:var(--brand-soft);color:var(--brand-dark);padding:7px 10px;border-radius:8px;font-size:10px;font-weight:900}.download-grid.tidy-downloads{display:grid;grid-template-columns:1fr 1fr;gap:12px}.download-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;min-width:0;display:flex;flex-direction:column;transition:.16s}.download-card:hover{border-color:#b9c9c4;box-shadow:var(--shadow-sm);transform:translateY(-1px)}.download-card-top{display:flex;justify-content:space-between;align-items:center}.platform-icon{width:40px;height:40px;border-radius:11px;background:#eef3f2;color:#384744;display:grid;place-items:center;font-size:18px}.platform-icon.windows{background:#eaf3fb;color:#3174ba}.platform-icon.vps{background:#eff1f5;color:#536071}.platform-icon.android{background:#edf7ed;color:#3d8742}.platform-icon.ios{background:#f0f1f2;color:#222}.version-chip{padding:5px 8px;border-radius:7px;background:#f2f5f4;color:#5d6a67;font-size:9px;font-weight:900}.download-body{padding:13px 0 14px}.download-body>small{font-size:9px;letter-spacing:.8px;color:#899491;font-weight:900}.download-body h3{font-size:18px;margin:3px 0 5px;letter-spacing:-.4px}.download-body p{margin:0;color:var(--muted);font-size:10.5px;min-height:33px}.download-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.download-meta span{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:7px;background:#f5f7f6;color:#697571;font-size:9px;font-weight:800}.download-btn{margin-top:auto;min-height:48px;border-radius:10px;background:var(--brand);color:#fff;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:8px;padding:8px 11px}.download-btn:hover{background:var(--brand-dark)}.download-btn.secondary{background:#3e4e4a}.download-btn.secondary:hover{background:#303d3a}.download-btn>i{text-align:center;font-size:14px}.download-btn b,.download-btn small{display:block}.download-btn b{font-size:11px}.download-btn small{margin-top:1px;font-size:8.5px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.download-card.is-recommended{border-color:#83bcae;box-shadow:0 0 0 3px rgba(23,122,104,.08)}.download-card.is-recommended:before{content:"Gợi ý";align-self:flex-end;position:absolute}.download-card{position:relative}
.auth-shell{min-height:calc(100vh - 150px);padding:55px 0;display:grid;grid-template-columns:1fr 420px;gap:65px;align-items:center}.auth-intro{max-width:560px}.auth-intro h1{font-size:42px;line-height:1.05;letter-spacing:-1.8px;margin:7px 0 10px}.auth-intro p{color:var(--muted);margin:0 0 11px}.auth-card{padding:24px}.auth-card.center{text-align:center;grid-column:1/-1;max-width:470px;margin:auto}.form-message{min-height:18px;margin-top:9px;font-size:10px;font-weight:800}.form-message.success{color:var(--brand)}.account-wrap{padding:40px 0 52px}.account-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:15px}.account-head h1{font-size:36px;margin:4px 0 0}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stat{padding:16px}.stat i{color:var(--brand);font-size:15px}.stat small{display:block;color:#8a9592;font-size:9px;margin:7px 0 2px}.stat b{font-size:15px;word-break:break-word}.account-panel{margin-top:12px;padding:18px}.account-panel h2{font-size:17px;margin:0 0 12px}.account-actions{display:flex;gap:9px}.not-found{text-align:center;padding:90px 0}.not-found>span{font-size:58px;font-weight:900;color:#d8dfdd}.not-found h1{margin:0}.not-found p{color:var(--muted)}.skeleton{background:#fff;border:1px dashed var(--line-strong);border-radius:10px;padding:16px;color:#8c9693;font-size:11px;text-align:center}
.footer{border-top:1px solid var(--line);padding:18px 0 26px;color:#87928f;background:#f7f9f8}.footer .wrap{display:flex;justify-content:space-between;align-items:center}.footer b,.footer span{display:block}.footer b{color:#52605d;font-size:11px}.footer span,.footer p{font-size:9px;margin:2px 0 0}.mobile-nav{display:none}.page-loader{position:fixed;top:0;left:0;right:0;height:2px;z-index:100;pointer-events:none;opacity:0}.page-loader span{display:block;width:24%;height:100%;background:var(--brand);transform:translateX(-130%)}.page-loader.show{opacity:1}.page-loader.show span{animation:loadbar .65s ease-in-out infinite}@keyframes loadbar{to{transform:translateX(500%)}}body.loading #pageContent{opacity:.66;transition:opacity .1s}.fade-in{animation:fadeIn .15s ease}@keyframes fadeIn{from{opacity:.35;transform:translateY(2px)}to{opacity:1;transform:none}}
@media(max-width:1050px){.wrap{width:min(100% - 30px,980px)}.topbar-inner{grid-template-columns:190px 1fr 220px}.hero-grid{grid-template-columns:minmax(0,1fr) 340px}.hero-copy{padding:35px}.hero-copy h1{font-size:48px}.content-grid{grid-template-columns:minmax(0,1fr) 270px}.post-grid{grid-template-columns:1fr 1fr}.post-grid .post-card:nth-child(3){display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.wrap{width:min(100% - 24px,740px)}.desktop-nav{display:none}.topbar-inner{height:60px;grid-template-columns:1fr auto}.plain-link{display:none}.hero-grid,.content-grid,.auth-shell{grid-template-columns:1fr}.hero-copy{min-height:310px}.shortcut-grid{grid-template-columns:1fr}.side-panel{display:none}.post-grid{grid-template-columns:1fr 1fr}.news-list{grid-template-columns:1fr}.auth-shell{gap:24px;min-height:auto;padding:40px 0 78px}.device-recommend{grid-template-columns:40px 1fr}.recommend-btn{grid-column:1/-1;width:100%}.download-grid.tidy-downloads{grid-template-columns:1fr 1fr}.footer{padding-bottom:88px}.mobile-nav{position:fixed;z-index:70;left:10px;right:10px;bottom:9px;height:58px;border:1px solid var(--line-strong);border-radius:15px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 12px 32px rgba(42,70,64,.16);overflow:hidden}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#87928f;font-size:8px;font-weight:800}.mobile-nav a span{font-size:15px}.mobile-nav a.active{color:var(--brand);background:#edf5f2}}
@media(max-width:560px){.wrap{width:calc(100% - 18px)}.topbar-inner{height:57px}.brand img{width:32px;height:32px}.brand strong{font-size:14px}.header-btn{min-height:34px;padding:0 10px;font-size:9px}.user-pill b{max-width:78px}.section-pad{padding-top:10px}.hero-copy{padding:26px 18px;border-radius:14px}.hero-copy h1{font-size:39px;letter-spacing:-2px}.hero-copy p{font-size:12px}.hero-actions{flex-direction:column}.hero-actions .btn{width:100%}.hero-card{padding:18px;border-radius:14px}.post-grid{grid-template-columns:1fr}.post-grid .post-card:nth-child(3){display:block}.page-head{padding-top:30px}.page-head h1,.auth-intro h1,.account-head h1{font-size:32px;letter-spacing:-1.3px}.download-section{padding:12px;margin-top:10px}.download-section-head{align-items:end}.download-grid.tidy-downloads{grid-template-columns:1fr}.device-recommend{padding:13px;grid-template-columns:38px 1fr}.recommend-icon{width:38px;height:38px}.download-card{padding:14px}.download-body p{min-height:0}.auth-card{padding:17px}.stats-grid{grid-template-columns:1fr}.account-head{flex-direction:column;align-items:stretch}.account-actions{flex-direction:column}.footer .wrap{display:block}.footer p{margin-top:7px}}

/* account + zalo priority fixes v5 */
.content-grid{grid-template-columns:1fr}.zalo-priority{margin-top:16px;background:#fff;border:1px solid #d6e6e2;border-radius:14px;padding:13px 15px;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;box-shadow:0 5px 18px rgba(31,54,49,.045)}.zalo-mark{width:42px;height:42px;border-radius:11px;background:#e8f5ff;color:#1687d9;display:grid;place-items:center;font-size:18px}.zalo-copy small{display:block;font-size:9px;font-weight:900;letter-spacing:.8px;color:#1687d9}.zalo-copy b{display:block;font-size:14px;margin-top:1px}.zalo-btn{background:#1687d9;color:#fff;min-height:40px}.zalo-btn:hover{background:#0d74be}.zalo-shortcut .shortcut-icon{background:#e8f5ff;color:#1687d9}
.account-page{padding:32px 0 52px}.account-profile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;grid-template-columns:52px 1fr auto;gap:14px;align-items:center;box-shadow:var(--shadow-sm)}.account-avatar{width:52px;height:52px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:21px;font-weight:900}.account-profile-copy h1{margin:2px 0 0;font-size:25px;letter-spacing:-.7px}.logout-btn{background:#fff4f2;color:#bd493e;border:1px solid #f0d2cd}.logout-btn:hover{background:#ffe9e5}.account-zalo{margin-top:12px;background:linear-gradient(135deg,#1389d8,#0873bd);color:#fff;border-radius:16px;padding:15px 17px;display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:13px;box-shadow:0 8px 22px rgba(16,126,199,.16)}.account-zalo-icon{width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:19px}.account-zalo small{display:block;font-size:8px;letter-spacing:1px;font-weight:900;opacity:.8}.account-zalo b{display:block;font-size:14px;margin:1px 0}.account-zalo em{display:block;font-style:normal;font-size:10px;opacity:.82}.account-zalo strong{font-size:11px;background:#fff;color:#117fca;padding:9px 11px;border-radius:9px}.account-page .stats-grid{margin-top:12px}.account-page .stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;box-shadow:0 4px 14px rgba(31,54,49,.035)}.account-page .stat-icon{width:34px;height:34px;border-radius:9px;background:var(--surface-soft);color:var(--brand);display:grid;place-items:center;margin-bottom:9px}.account-page .stat small{display:block;color:#8a9592;font-size:8px;font-weight:900;letter-spacing:.7px;margin:0 0 3px}.account-page .stat b{display:block;font-size:14px;color:var(--text);word-break:break-word}.account-actions-row{margin-top:12px;display:flex;gap:8px}
@media(max-width:820px){.zalo-priority{grid-template-columns:40px 1fr}.zalo-priority .zalo-btn{grid-column:1/-1;width:100%}.account-profile{grid-template-columns:46px 1fr}.account-avatar{width:46px;height:46px}.account-profile .logout-btn{grid-column:1/-1;width:100%}.account-zalo{grid-template-columns:40px 1fr}.account-zalo strong{grid-column:1/-1;text-align:center}.account-page .stats-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.account-page{padding-top:14px}.account-page .stats-grid{grid-template-columns:1fr 1fr}.account-page .stat{padding:12px}.account-actions-row{flex-direction:column}.account-zalo em{display:none}.zalo-priority{margin-top:10px}}

/* responsive zalo placement v6 */
.header-zalo{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 12px;border-radius:9px;background:#1687d9;color:#fff;font-size:10px;font-weight:900;white-space:nowrap;box-shadow:0 4px 12px rgba(22,135,217,.14)}
.header-zalo:hover{background:#0d74be;transform:translateY(-1px)}
.header-zalo i{font-size:13px}
.mobile-zalo-box{display:none}

@media(min-width:821px){
  .topbar-inner{grid-template-columns:auto 1fr auto;gap:12px}
  .desktop-nav{justify-self:center}
  .desktop-nav .header-zalo{background:#1687d9;color:#fff;box-shadow:0 4px 12px rgba(22,135,217,.14)}
  .desktop-nav .header-zalo:hover{background:#0d74be;color:#fff}
}

@media(max-width:820px){
  .header-zalo{display:none}
  .zalo-priority,.shortcut-grid{display:none!important}
  .mobile-zalo-box{display:grid;grid-template-columns:38px 1fr 18px;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border-radius:12px;background:#1687d9;color:#fff;border:1px solid #1687d9;box-shadow:0 5px 14px rgba(22,135,217,.16)}
  .mobile-zalo-icon{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:17px}
  .mobile-zalo-copy{min-width:0}
  .mobile-zalo-copy small{display:block;font-size:8px;font-weight:900;letter-spacing:.55px;opacity:.8}
  .mobile-zalo-copy b{display:block;margin-top:1px;font-size:12px;line-height:1.25}
  .mobile-zalo-arrow{text-align:right;font-size:16px;opacity:.9}
}

@media(max-width:560px){
  .mobile-zalo-box{margin-top:9px;padding:9px 10px;border-radius:11px}
}

/* Header Zalo matches normal desktop navigation items */
@media(min-width:821px){
  .desktop-nav .header-zalo{
    display:flex;
    align-items:center;
    gap:7px;
    min-height:36px;
    padding:0 14px;
    border-radius:9px;
    background:transparent;
    color:#64716e;
    font-size:12px;
    font-weight:700;
    box-shadow:none;
    transform:none;
    transition:.16s;
  }
  .desktop-nav .header-zalo:hover{
    background:#fff;
    color:var(--text);
    box-shadow:none;
    transform:none;
  }
  .desktop-nav .header-zalo i{font-size:12px}
}

/* ===== compact mobile auth + giftcode ===== */
.guest-actions{display:flex;align-items:center;gap:9px}

.giftcode-section{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 8px 30px rgba(44,70,64,.05)}
.giftcode-title{margin-bottom:12px}
.giftcode-title>small{font-size:11px;font-weight:800;color:#6c7976;background:#f2f6f4;border:1px solid var(--line);border-radius:999px;padding:6px 10px}
.giftcode-list{display:grid;gap:8px}
.giftcode-row{display:grid;grid-template-columns:minmax(0,1.3fr) 86px 190px 92px;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfc}
.giftcode-main{display:flex;align-items:center;gap:11px;min-width:0}.giftcode-icon{width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#e8f5ef;color:var(--brand);display:grid;place-items:center;font-size:16px}.giftcode-main>div{min-width:0}.giftcode-main small,.giftcode-count small,.giftcode-expire small{display:block;font-size:8px;letter-spacing:.8px;font-weight:900;color:#8a9693;margin-bottom:2px}.giftcode-value{display:block;font-size:15px;line-height:1.2;letter-spacing:.35px;color:#26332f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.giftcode-count b,.giftcode-expire b{display:block;font-size:11px;color:#55625f}.giftcode-count{min-width:0}.giftcode-copy{height:36px;border:0;border-radius:9px;background:var(--brand);color:#fff;font-weight:900;font-size:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:.15s}.giftcode-copy:hover{background:var(--brand-dark);transform:translateY(-1px)}.giftcode-copy.copied{background:#167c58}.giftcode-empty{min-height:70px;border:1px dashed var(--line-strong);border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;color:#7a8784;background:#fafcfa}.giftcode-empty i{color:var(--brand)}

@media (max-width:820px){
  .topbar-inner{grid-template-columns:1fr auto;min-height:72px;height:auto;padding:7px 0}
  .user-nav{align-self:stretch}
  .guest-actions{display:grid;grid-template-columns:1fr;gap:4px;min-width:104px}
  .guest-actions .plain-link,.guest-actions .header-btn{display:flex!important;min-height:28px;height:28px;padding:0 9px;border-radius:8px;justify-content:center;font-size:9px;font-weight:900;white-space:nowrap}
  .guest-actions .plain-link{background:#fff;border:1px solid var(--line-strong);color:#35423e}
  .guest-actions .header-btn{background:var(--brand);color:#fff;border:1px solid var(--brand)}
  .guest-actions i{font-size:10px}
  .giftcode-row{grid-template-columns:minmax(0,1fr) 84px;gap:8px}.giftcode-count{grid-column:1/2;padding-left:47px;margin-top:-5px}.giftcode-expire{grid-column:1/2;padding-left:47px;margin-top:-5px}.giftcode-copy{grid-column:2;grid-row:1/4;height:42px}.giftcode-section{padding:13px}
}
@media (max-width:560px){
  .topbar-inner{min-height:72px;padding:6px 0}.brand strong{font-size:13px}.brand img{width:34px;height:34px}.guest-actions{min-width:98px}.guest-actions .plain-link,.guest-actions .header-btn{font-size:8.5px;padding:0 7px}
  .hero-copy{background:var(--surface)}
  .giftcode-section{border-radius:13px}.giftcode-title{align-items:flex-end}.giftcode-title h2{font-size:17px}.giftcode-title>small{font-size:8px;padding:4px 7px}.giftcode-row{padding:10px}.giftcode-icon{width:34px;height:34px;flex-basis:34px}.giftcode-value{font-size:13px}.giftcode-count,.giftcode-expire{padding-left:45px}.giftcode-count b,.giftcode-expire b{font-size:9px}.giftcode-copy{width:76px;justify-self:end}.giftcode-copy span{font-size:9px}
}


/* ===== lightweight background ===== */
.hero-copy{background:var(--surface)!important;color:var(--text)!important}
.hero-copy .eyebrow{color:var(--brand)!important}
.hero-copy h1{color:var(--text)!important}
.hero-copy h1 span{color:var(--brand)!important}
.hero-copy .btn.ghost{background:#fff!important;border-color:var(--line-strong)!important;color:#34413e!important}

@media (max-width:820px){
  .topbar-inner{min-height:58px;height:58px;padding:0}
  .guest-actions{display:flex;min-width:auto}
  .guest-actions .login-link{display:inline-flex!important;min-height:34px;height:34px;padding:0 13px;border:0;border-radius:9px;background:var(--brand)!important;color:#fff!important;font-size:10px;font-weight:900;box-shadow:0 5px 12px rgba(23,122,104,.14)}
  .guest-actions .login-link:hover{background:var(--brand-dark)!important}
  .guest-actions .register-link{display:none!important}
  .hero-copy{background:var(--surface)!important;color:var(--text)!important}
}
@media (max-width:560px){
  .topbar-inner{min-height:56px;height:56px;padding:0}
  .guest-actions .login-link{min-height:33px;height:33px;padding:0 11px;font-size:9px}
}


/* ===== v9: mobile login alignment fix ===== */
@media (max-width:820px){
  .user-nav.guest-actions{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    align-self:center;
  }
  .guest-actions .login-link{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    vertical-align:middle;
    line-height:1!important;
    margin:0!important;
    padding:0 13px!important;
    min-height:34px!important;
    height:34px!important;
  }
  .guest-actions .login-link i{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1!important;
    margin:0!important;
    position:static!important;
    transform:none!important;
  }
}
@media (max-width:560px){
  .guest-actions .login-link{
    height:34px!important;
    min-height:34px!important;
    padding:0 11px!important;
    font-size:10px!important;
  }
}

/* ===== v10: compact giftcode popup ===== */
.giftcode-launch{margin-top:14px}
.giftcode-open{width:100%;min-height:68px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px 14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto 20px;align-items:center;gap:11px;text-align:left;cursor:pointer;box-shadow:0 5px 18px rgba(35,54,49,.04);transition:.16s ease;color:#26332f}
.giftcode-open:hover{border-color:var(--brand);box-shadow:0 8px 22px rgba(35,54,49,.07);transform:translateY(-1px)}
.giftcode-open-icon{width:42px;height:42px;border-radius:12px;background:#e9f5ef;color:var(--brand);display:grid;place-items:center;font-size:18px}
.giftcode-open-text{min-width:0}.giftcode-open-text small{display:block;font-size:9px;letter-spacing:.9px;font-weight:900;color:#84908d;margin-bottom:2px}.giftcode-open-text strong{display:block;font-size:14px;line-height:1.25;color:#26332f}
.giftcode-open-count{font-size:10px;font-weight:900;color:var(--brand);background:#edf7f2;border:1px solid #dceee5;border-radius:999px;padding:6px 9px;white-space:nowrap}.giftcode-open-arrow{color:#89938f;font-size:16px}
.giftcode-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}
.giftcode-modal.is-open{display:flex}
.giftcode-modal-backdrop{position:absolute;inset:0;background:rgba(19,28,25,.48);backdrop-filter:blur(2px)}
.giftcode-modal-panel{position:relative;z-index:1;width:min(760px,100%);max-height:min(82vh,720px);display:flex;flex-direction:column;background:#fff;border:1px solid rgba(255,255,255,.55);border-radius:18px;box-shadow:0 22px 70px rgba(17,28,24,.24);overflow:hidden}
.giftcode-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 17px;border-bottom:1px solid var(--line);background:#fbfcfb;flex:0 0 auto}.giftcode-modal-head span{display:block;font-size:9px;letter-spacing:.9px;font-weight:900;color:var(--brand);margin-bottom:2px}.giftcode-modal-head h2{margin:0;font-size:18px;line-height:1.25;color:#25322e}.giftcode-modal-close{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;display:grid;place-items:center;color:#596662;cursor:pointer;font-size:14px;flex:0 0 36px}.giftcode-modal-close:hover{background:#f3f6f5;color:#222}
.giftcode-modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px 14px;scrollbar-width:thin;scrollbar-color:#b7c4bf #f1f4f3}.giftcode-modal-body::-webkit-scrollbar{width:7px}.giftcode-modal-body::-webkit-scrollbar-track{background:#f1f4f3;border-radius:10px}.giftcode-modal-body::-webkit-scrollbar-thumb{background:#b7c4bf;border-radius:10px}.giftcode-modal-body::-webkit-scrollbar-thumb:hover{background:#97aaa2}
body.giftcode-modal-open{overflow:hidden}
@media (max-width:820px){
  .giftcode-modal{padding:10px;align-items:flex-end}.giftcode-modal-panel{width:100%;max-height:82dvh;border-radius:18px 18px 10px 10px}.giftcode-modal-head{padding:14px}.giftcode-modal-head h2{font-size:16px}.giftcode-modal-body{padding:10px}.giftcode-open{min-height:62px;grid-template-columns:38px minmax(0,1fr) auto 16px;padding:10px 11px;gap:9px}.giftcode-open-icon{width:38px;height:38px;border-radius:10px}.giftcode-open-text strong{font-size:13px}.giftcode-open-count{font-size:9px;padding:5px 7px}
}
@media (max-width:520px){.giftcode-open-count{display:none}.giftcode-open{grid-template-columns:38px minmax(0,1fr) 16px}.giftcode-modal-panel{max-height:86dvh}.giftcode-row{border-radius:10px}}


/* ===== v11: mobile register in header, login in bottom nav ===== */
@media (max-width:820px){
  .guest-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;height:100%;}
  .guest-actions .login-link{display:none!important;}
  .guest-actions .register-link{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 13px!important;
    margin:0!important;
    border:0!important;
    border-radius:9px!important;
    background:var(--brand)!important;
    color:#fff!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1!important;
    box-shadow:0 5px 12px rgba(23,122,104,.14)!important;
  }
  .guest-actions .register-link:hover{background:var(--brand-dark)!important;}
  .guest-actions .register-link i{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1!important;
    margin:0!important;
    position:static!important;
    transform:none!important;
  }
}
@media (max-width:560px){
  .guest-actions .register-link{
    height:34px!important;
    min-height:34px!important;
    padding:0 11px!important;
    font-size:10px!important;
  }
}

/* News list -> detail (v12) */
.post-card,.news-list-item{color:inherit;text-decoration:none;display:block;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}
.post-card:hover,.news-list-item:hover{border-color:#b8c9c4;box-shadow:0 8px 20px rgba(42,70,64,.08);transform:translateY(-1px)}
.post-card .news-meta{margin-bottom:5px}
.post-card .read-more,.news-list-item .read-more{display:inline-flex;align-items:center;gap:5px;margin-top:10px;color:var(--brand);font-size:10px;font-weight:900}
.compact-news-list{grid-template-columns:1fr 1fr}
.news-list-item{padding:18px 19px;min-height:160px;position:relative}
.news-list-item h2{font-size:17px;line-height:1.35;margin:7px 0 6px}
.news-list-item p{font-size:11px;line-height:1.6;color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-detail-page{padding:34px 0 54px;max-width:900px}
.news-back{display:inline-flex;align-items:center;gap:7px;margin-bottom:13px;color:var(--brand);font-size:11px;font-weight:900}
.news-detail-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:28px 30px}
.news-detail-meta{display:flex;flex-wrap:wrap;gap:8px;color:#87928f;font-size:10px;font-weight:700}
.news-detail-card h1{font-size:30px;line-height:1.18;letter-spacing:-1px;margin:10px 0 18px}
.news-detail-content{color:#3f4b48;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.news-detail-error{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;color:var(--muted)}
.news-detail-error>i{font-size:27px;color:#b96868}.news-detail-error b{font-size:17px;color:var(--text)}.news-detail-error .btn{margin-top:5px}
@media(max-width:820px){.compact-news-list{grid-template-columns:1fr}.news-detail-page{padding-top:22px}.news-detail-card{padding:22px}.news-detail-card h1{font-size:26px}}
@media(max-width:560px){.news-list-item{padding:15px;min-height:0}.news-list-item h2{font-size:15px}.news-detail-page{padding:16px 0 86px}.news-detail-card{padding:18px 15px;border-radius:13px}.news-detail-card h1{font-size:23px;letter-spacing:-.5px;margin-bottom:14px}.news-detail-content{font-size:12px;line-height:1.75}}

/* ===== v14: compact desktop + QR topup ===== */
/* shortcut-grid removed from markup; keep hidden in case an old cached partial exists */
.shortcut-grid{display:none!important}

@media (min-width:821px){
  .desktop-nav{gap:3px;padding:4px}
  .desktop-nav a,.desktop-nav .header-zalo{padding-left:11px!important;padding-right:11px!important}
}
@media (min-width:821px) and (max-width:1080px){
  .desktop-nav a,.desktop-nav .header-zalo{font-size:11px!important;padding-left:9px!important;padding-right:9px!important;gap:5px!important}
  .brand strong{font-size:15px}
  .guest-actions .plain-link{font-size:11px}
  .header-btn{padding:0 10px}
}

.topup-page{padding:32px 0 54px}
.topup-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px}
.topup-head h1{margin:4px 0 2px;font-size:34px;line-height:1.08;letter-spacing:-1.2px}
.topup-head p{margin:0;color:var(--muted);font-size:12px}
.topup-user{min-width:150px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:right}
.topup-user small{display:block;font-size:8px;letter-spacing:.8px;font-weight:900;color:#8a9592}
.topup-user b{display:block;margin-top:1px;font-size:12px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.promo-banner{margin-bottom:13px;padding:12px 14px;border:1px solid #f0d9ad;border-radius:13px;background:#fffaf0;display:grid;grid-template-columns:40px 1fr;gap:11px;align-items:center}
.promo-icon{width:40px;height:40px;border-radius:11px;background:#fff0c8;color:#b77700;display:grid;place-items:center;font-size:17px}
.promo-banner small{display:block;color:#9a6a12;font-size:8px;font-weight:900;letter-spacing:.9px}
.promo-banner strong{display:inline-block;margin-top:1px;color:#7f5300;font-size:15px}
.promo-banner p{display:inline;margin:0 0 0 8px;color:#9b7a3c;font-size:10px}

.topup-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:start}
.topup-packages,.topup-qr-card{background:rgba(247,249,248,.98);border:1px solid rgba(211,220,216,.98);border-radius:15px;box-shadow:0 10px 26px rgba(31,54,49,.05)}
.topup-packages{padding:17px}
.topup-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:12px}
.topup-section-title small{display:block;color:var(--brand);font-size:8px;font-weight:900;letter-spacing:.9px}
.topup-section-title h2{margin:1px 0 0;font-size:18px}
.topup-section-title>span{font-size:9px;font-weight:800;color:#7d8985;background:#f4f7f6;border:1px solid var(--line);border-radius:999px;padding:5px 8px}
.deposit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.deposit-option{min-width:0;border:1px solid var(--line);border-radius:11px;background:#fafcfc;padding:12px;text-align:left;cursor:pointer;transition:.15s;color:var(--text)}
.deposit-option:hover{border-color:#9fc7bc;background:#f7fbf9;transform:translateY(-1px)}
.deposit-option.active{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 2px rgba(23,122,104,.08)}
.deposit-money{display:block;font-size:16px;line-height:1.15;font-weight:900;letter-spacing:-.25px}
.deposit-coin{display:block;margin-top:5px;color:var(--brand);font-size:11px;font-weight:900}
.deposit-coin i{font-size:9px;margin-right:3px}
.deposit-option small{display:block;margin-top:4px;color:#87928f;font-size:8.5px;line-height:1.35}
.deposit-option.active small{color:#637c75}

.topup-qr-card{padding:15px;position:sticky;top:82px}
.qr-card-head{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.qr-card-head>span{width:38px;height:38px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:17px}
.qr-card-head small{display:block;color:#899591;font-size:8px;letter-spacing:.8px;font-weight:900}
.qr-card-head b{display:block;font-size:13px;margin-top:1px}
.qr-image-wrap{width:min(100%,270px);aspect-ratio:1/1;margin:0 auto 11px;border:1px solid var(--line);border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden}
.qr-image-wrap img{display:block;width:100%;height:100%;object-fit:contain;transition:opacity .15s}
.qr-image-wrap img.is-loading{opacity:.45}
.qr-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:9px}
.qr-summary>div{padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#f8faf9}
.qr-summary small,.transfer-content-box small{display:block;color:#8a9592;font-size:7.5px;letter-spacing:.7px;font-weight:900}
.qr-summary b{display:block;margin-top:2px;font-size:11px;color:var(--text)}
.transfer-content-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px;border:1px solid #cfe4dd;border-radius:10px;background:#f5fbf8}
.transfer-content-box b{display:block;margin-top:2px;color:var(--brand-dark);font-size:13px;letter-spacing:.3px;word-break:break-all}
.transfer-content-box button{height:34px;border:0;border-radius:8px;background:var(--brand);color:#fff;padding:0 10px;font-size:9px;font-weight:900;cursor:pointer;white-space:nowrap}
.transfer-content-box button:hover{background:var(--brand-dark)}
.qr-note{display:flex;gap:7px;align-items:flex-start;margin-top:9px;padding:9px 10px;border-radius:9px;background:#fff8e9;color:#826831;font-size:9px;line-height:1.45}
.qr-note i{margin-top:2px;color:#c38b23}
.topup-empty{min-height:150px;border:1px dashed var(--line-strong);border-radius:14px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#71807b;text-align:center;padding:20px}
.topup-empty i{font-size:20px;color:#b59045}.topup-empty b{color:var(--text)}.topup-empty code{background:#f1f4f3;padding:2px 5px;border-radius:5px}

@media(max-width:820px){
  .topup-page{padding:16px 0 84px}
  .topup-head{align-items:flex-start;flex-direction:column;gap:9px}
  .topup-head h1{font-size:29px}
  .topup-user{width:100%;text-align:left;min-width:0}
  .promo-banner{grid-template-columns:36px 1fr;padding:10px 11px}.promo-icon{width:36px;height:36px}.promo-banner p{display:block;margin:2px 0 0}
  .topup-layout{grid-template-columns:1fr}
  .topup-qr-card{position:static;order:-1}
  .qr-image-wrap{width:min(100%,250px)}
  .deposit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .topup-packages,.topup-qr-card{border-radius:13px}
  .topup-packages{padding:12px}
  .deposit-grid{gap:7px}
  .deposit-option{padding:10px}
  .deposit-money{font-size:14px}.deposit-coin{font-size:10px}.deposit-option small{font-size:8px}
  .qr-summary{grid-template-columns:1fr 1fr}
}

/* ===== v14: account mobile redesign + topup history ===== */
.account-page-v2{padding:28px 0 54px}
.account-profile-v2{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 17px;border:1px solid rgba(225,231,229,.95);border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 10px 26px rgba(31,54,49,.05)}
.account-profile-main{display:flex;align-items:center;gap:12px;min-width:0}
.account-avatar-v2{width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:19px;font-weight:900}
.account-profile-copy-v2{min-width:0}.account-profile-copy-v2 small{display:block;color:#8a9592;font-size:8px;font-weight:900;letter-spacing:.8px}.account-profile-copy-v2 h1{margin:2px 0 1px;font-size:22px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-profile-copy-v2 span{display:block;color:#7c8985;font-size:9px;font-weight:700}
.account-logout-icon{height:36px;border:1px solid #efd8d3;border-radius:9px;background:#fff7f5;color:#b84d43;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;font-size:9px;font-weight:900;cursor:pointer}.account-logout-icon:hover{background:#fff0ec}
.account-balance-card{margin-top:10px;padding:18px;border-radius:15px;background:linear-gradient(135deg,#177a68,#126354);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 10px 24px rgba(23,122,104,.16)}
.account-balance-card small{display:block;font-size:8px;font-weight:900;letter-spacing:.9px;opacity:.75}.account-balance-card strong{display:block;margin-top:2px;font-size:28px;line-height:1;letter-spacing:-1px}.account-balance-card strong em{font-size:13px;font-style:normal;margin-left:2px;opacity:.78}.account-balance-card>div>span{display:block;margin-top:5px;font-size:9px;opacity:.82}
.account-topup-btn{min-width:105px;height:56px;border-radius:12px;background:#fff;color:var(--brand-dark);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;text-align:center;box-shadow:0 5px 14px rgba(0,0,0,.08)}.account-topup-btn i{font-size:15px}.account-topup-btn b{font-size:10px}.account-topup-btn span{font-size:8px;color:#6e817b}
.account-quick-grid{margin-top:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.account-quick-item{min-width:0;min-height:70px;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;align-items:center;gap:9px;color:var(--text);box-shadow:0 3px 10px rgba(31,54,49,.025)}.account-quick-item>i:first-child{width:31px;height:31px;flex:0 0 31px;border-radius:9px;background:var(--surface-soft);color:var(--brand);display:grid;place-items:center}.account-quick-item span{min-width:0;flex:1}.account-quick-item small{display:block;color:#8a9592;font-size:7.5px;font-weight:900;letter-spacing:.5px}.account-quick-item b{display:block;margin-top:2px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-quick-link>i:last-child{color:#a8b3b0;font-size:12px}
.topup-history-section{margin-top:12px;padding:17px;border:1px solid rgba(225,231,229,.95);border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 10px 26px rgba(31,54,49,.05)}
.topup-history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:11px}.topup-history-head small{display:block;color:var(--brand);font-size:8px;font-weight:900;letter-spacing:.8px}.topup-history-head h2{margin:2px 0 0;font-size:18px}.topup-history-head>span{color:#8a9592;font-size:8px;font-weight:800}
.topup-history-list{display:grid;gap:7px}.topup-history-item{display:grid;grid-template-columns:38px 1fr;gap:10px;padding:10px;border:1px solid var(--line);border-radius:11px;background:#fafcfc}.topup-history-icon{width:38px;height:38px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:15px}.topup-history-main{min-width:0}.topup-history-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.topup-history-line>b{font-size:12px}.topup-status{flex:0 0 auto;border-radius:999px;padding:4px 7px;font-size:7px;font-weight:900}.topup-status.success{background:#e8f7ef;color:#2d865d}.topup-status.pending{background:#fff6dc;color:#9b7418}.topup-status.failed{background:#fff0ed;color:#bb5549}.topup-status.neutral{background:#eef2f1;color:#65716e}.topup-history-meta,.topup-history-extra{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:4px;color:#7d8a86;font-size:8px}.topup-history-extra{color:#67746f}.topup-history-extra code{font-family:inherit;background:#f0f4f2;border-radius:4px;padding:1px 4px;word-break:break-all}.topup-history-empty{min-height:120px;border:1px dashed var(--line-strong);border-radius:11px;background:#fafcfc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;color:#8a9592;font-size:9px}.topup-history-empty i{font-size:20px;color:#a9b6b2}.topup-history-empty b{font-size:11px;color:var(--text)}

@media(max-width:820px){
  .account-page-v2{padding:12px 0 84px}
  .account-profile-v2{padding:11px 12px;border-radius:13px}
  .account-avatar-v2{width:42px;height:42px;flex-basis:42px;border-radius:11px;font-size:17px}
  .account-profile-copy-v2 h1{font-size:17px}
  .account-logout-icon{width:36px;padding:0}.account-logout-icon span{display:none}
  .account-balance-card{margin-top:8px;padding:14px;border-radius:13px}.account-balance-card strong{font-size:24px}.account-topup-btn{min-width:92px;height:52px}
  .account-quick-grid{grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.account-quick-item{min-height:62px;padding:9px}.account-quick-item b{font-size:9.5px}
  .topup-history-section{margin-top:8px;padding:12px;border-radius:13px}.topup-history-head{align-items:center}.topup-history-head h2{font-size:15px}.topup-history-head>span{font-size:7.5px}
  .topup-history-list{gap:6px}.topup-history-item{grid-template-columns:34px 1fr;padding:9px;gap:8px}.topup-history-icon{width:34px;height:34px;border-radius:9px;font-size:13px}.topup-history-line>b{font-size:11px}.topup-history-meta,.topup-history-extra{font-size:7.5px;gap:4px 9px}
}
@media(max-width:420px){
  .account-balance-card{align-items:stretch}.account-topup-btn{min-width:84px}.account-balance-card strong{font-size:22px}
  .account-quick-grid{grid-template-columns:1fr 1fr}.account-quick-item{min-width:0}.account-quick-item>i:first-child{width:28px;height:28px;flex-basis:28px}.account-quick-link>i:last-child{display:none}
  .topup-history-head>span{display:none}.topup-history-extra{display:block}.topup-history-extra span{display:block;margin-top:2px}
}

/* v15 - logged-in balance + compact account */
.user-pill{padding:4px 10px 4px 6px;min-height:42px;justify-content:flex-start}
.user-pill-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.user-pill-copy b{display:block;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.user-pill-copy small{margin-top:3px;color:var(--brand);font-size:10px;font-weight:900;white-space:nowrap}
.home-user-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 18px;padding:13px 14px;background:linear-gradient(180deg,#f4f7f5,#edf3f0);border:1px solid rgba(211,220,216,.98);border-radius:12px;box-shadow:0 4px 14px rgba(31,54,49,.035)}
.home-user-name{min-width:0}.home-user-name small,.home-user-balance small{display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}
.home-user-name h2{margin:2px 0 0!important;font-size:20px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-user-balance{text-align:right;flex:0 0 auto}.home-user-balance strong{display:block;margin-top:2px;color:var(--brand);font-size:17px;line-height:1.2}
.account-quick-grid.account-quick-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));max-width:620px}
@media(max-width:720px){
  .user-pill{min-height:36px;padding:3px 8px 3px 4px}.user-pill>span:first-child{width:27px;height:27px}.user-pill-copy b{max-width:72px;font-size:9.5px}.user-pill-copy small{font-size:8.5px;margin-top:2px}
  .home-user-summary{padding:11px 12px;margin-bottom:13px}.home-user-name h2{font-size:17px!important}.home-user-balance strong{font-size:15px}
  .account-quick-grid.account-quick-grid-compact{grid-template-columns:1fr 1fr;max-width:none}
}
@media(max-width:380px){.home-user-summary{gap:8px}.home-user-name h2{max-width:135px}.home-user-balance strong{font-size:14px}.user-pill-copy b{max-width:58px}}


/* ===== v16: robust logged-in header for any username / balance length ===== */
.user-nav{min-width:0}
.user-pill{
  width:auto;
  max-width:250px;
  min-width:0;
  height:42px;
  padding:4px 10px 4px 5px;
  gap:8px;
  overflow:hidden;
  justify-content:flex-start;
}
.user-pill>span:first-child{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:9px;
  font-size:12px;
  line-height:1;
}
.user-pill>.user-pill-copy{
  width:auto;
  height:auto;
  min-width:0;
  max-width:100%;
  flex:1 1 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto;
  align-items:center;
  gap:0 8px;
  background:transparent;
  color:inherit;
  border-radius:0;
  font-weight:inherit;
  line-height:1;
}
.user-pill-copy b{
  min-width:0;
  max-width:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:900;
  line-height:1.2;
}
.user-pill-copy small{
  min-width:0;
  max-width:108px;
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--brand);
  font-size:10px;
  font-weight:900;
  line-height:1.2;
  font-variant-numeric:tabular-nums;
  text-align:right;
}
@media (min-width:821px) and (max-width:1120px){
  .user-pill{max-width:205px}
  .user-pill-copy small{max-width:88px;font-size:9.5px}
  .user-pill-copy b{font-size:10.5px}
}
@media (max-width:820px){
  .user-nav{max-width:min(60vw,230px);justify-self:end;align-self:center;overflow:hidden}
  .user-pill{
    width:auto;
    max-width:min(60vw,230px);
    min-width:0;
    height:36px;
    min-height:36px;
    padding:3px 8px 3px 4px;
    gap:6px;
    border-radius:9px;
  }
  .user-pill>span:first-child{width:28px;height:28px;flex-basis:28px;border-radius:7px;font-size:10px}
  .user-pill>.user-pill-copy{gap:0 6px}
  .user-pill-copy b{font-size:9.5px}
  .user-pill-copy small{max-width:78px;font-size:8.5px}
}
@media (max-width:480px){
  .user-nav{max-width:58vw}
  .user-pill{max-width:58vw;padding-right:7px}
  .user-pill>.user-pill-copy{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:2px}
  .user-pill-copy b{font-size:9.5px}
  .user-pill-copy small{max-width:100%;font-size:8px;text-align:left}
}
@media (max-width:350px){
  .brand strong{font-size:12px}
  .brand{gap:7px}
  .brand img{width:30px;height:30px}
  .user-pill{max-width:56vw}
  .user-pill>span:first-child{display:none}
}

/* v19 naruto game background */


/* v18 reduced glare + visible lightweight background */
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(135deg,rgba(23,122,104,.035),transparent 36%,rgba(51,119,201,.025) 72%,transparent);}
.desktop-nav{background:#e9efec;border-color:#d3ddd8}.desktop-nav a:hover,.desktop-nav a.active{background:#f7f9f8}.user-pill{background:#edf2ef;border-color:#d3ddd8}.post-card,.download-card,.giftcode-open,.topup-history-item,.account-quick-item{background:#f6f8f7}.panel,.side-panel,.auth-card,.account-panel,.news-detail-card{background:#f7f9f8}.giftcode-modal-panel{background:#f5f8f6}.giftcode-modal-head{background:#eef3f0}.topup-packages,.topup-qr-card,.topup-history-section,.account-profile-v2{background:#f7f9f8}.qr-image-wrap{background:#f4f6f5}.topup-empty,.topup-history-empty{background:#f1f4f2}
@media(max-width:768px){body{background-color:#e6ede9;background-image:radial-gradient(circle at 88% 4%,rgba(23,122,104,.085) 0,rgba(23,122,104,0) 31%),linear-gradient(180deg,#edf2ef 0%,#e5ece8 48%,#dfe7e3 100%)!important}.topbar{background:rgba(244,247,245,.98)!important;border-bottom-color:#d3ddd8}.hero-copy{background:linear-gradient(180deg,#f7f9f8,#eef3f0)!important}}



/* v22 performance + toast */
.topbar,.mobile-nav,.giftcode-modal-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.topbar{background:#f4f7f5!important;box-shadow:0 2px 10px rgba(21,43,39,.045)!important}
.mobile-nav{background:#fff!important;box-shadow:0 5px 18px rgba(42,70,64,.11)!important}
.hero-copy,.hero-card,.panel,.side-panel,.auth-card,.account-panel,.stat,.news-item,.download-section,.device-recommend,.topup-packages,.topup-qr-card,.account-profile-v2,.topup-history-section{box-shadow:0 4px 14px rgba(31,54,49,.045)!important}
body.loading #pageContent{opacity:.82;transition:none!important}
.fade-in{animation:none!important}
.form-message{display:none!important}
button.is-loading{opacity:.7;pointer-events:none}
button.is-loading:after{content:'...';margin-left:4px}
.toastify{max-width:min(360px,calc(100vw - 24px))!important}
.fallback-toast{position:fixed;z-index:9999;top:76px;right:12px;max-width:min(360px,calc(100vw - 24px));padding:11px 14px;border-radius:10px;color:#fff;font-size:13px;font-weight:700;opacity:0;transform:translateY(-8px);transition:opacity .16s ease,transform .16s ease;box-shadow:0 8px 24px rgba(20,35,31,.16)}
.fallback-toast.success{background:#177a68}.fallback-toast.error{background:#c94d45}.fallback-toast.show{opacity:1;transform:none}
.news-item,.download-card,.topup-history-item{content-visibility:auto;contain-intrinsic-size:1px 110px}
@media (hover:none),(pointer:coarse){html{scroll-behavior:auto}.btn,.shortcut,.download-card,.giftcode-copy,.post-card,.news-list-item,.deposit-option{transition:none!important}.btn:hover,.shortcut:hover,.download-card:hover,.giftcode-copy:hover,.post-card:hover,.news-list-item:hover,.deposit-option:hover{transform:none!important}.page-loader.show span{animation-duration:.9s}.toastify{left:12px!important;right:12px!important;width:auto!important;max-width:none!important}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
