/* =========================================================
   Làng Ẩn Dật - REBUILD V1 LAYOUT
   ========================================================= */

.side-menu{
  position:fixed;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:176px;
  max-height:calc(100vh - 32px);
  z-index:30;
  padding:12px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  overflow:visible;
}

.side-logo{
  width:108px;
  margin:0 auto 8px;
  flex:0 0 auto;
}

.side-logo img{
  width:108px;
  max-height:112px;
  object-fit:contain;
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.42));
}

.side-links{
  width:100%;
  display:grid;
  gap:7px;
  margin:0;
}

.menu-btn{
  width:100%;
  height:36px;
  min-height:36px;
  padding:0 12px;
  font-size:10px;
  letter-spacing:.075em;
  border-radius:999px;
}

.side-user{
  width:100%;
  margin-top:8px;
  padding-top:0;
  flex:0 0 auto;
}

.account-pill{
  width:100%;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(245,213,137,.32);
  background:rgba(8,8,14,.60);
  color:var(--gold-2);
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 32px;
  gap:6px;
  align-items:center;
  padding:4px 5px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 8px 22px rgba(0,0,0,.26);
}

.avatar-dot,.power-dot{
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  background:rgba(0,0,0,.28);
  font-weight:950;
  font-size:12px;
}

.power-dot{
  background:linear-gradient(180deg,#ff4c74,#b61032);
  color:#fff;
}

.account-name{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:9px;
  font-weight:950;
  text-transform:uppercase;
}

.page-shell{
  position:fixed;
  inset:0 0 0 0;
  z-index:10;
}
.page{
  display:none;
  position:absolute;
  inset:0;
}
.page.active{display:block}

.home-center{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  width:min(440px,calc(100vw - 176px - var(--donate-w) - 96px));
  min-width:360px;
}
.home-action{
  min-height:58px;
  padding:0 30px;
}

.home-donate-card{
  position:fixed;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  width:var(--donate-w);
  max-height:calc(100vh - 48px);
  overflow:auto;
  padding:18px;
}
.card-head,.page-head,.modal-head,.scrim-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.card-head h2,.page-head h1,.modal-head h2{
  margin:0;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:.07em;
}
.card-head h2{font-size:20px}
.small-pill{min-height:38px;padding:0 18px;font-size:11px}
.donate-main{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-top:14px;
}
.qr-img{
  width:96px;height:96px;object-fit:contain;
  background:#fff;padding:6px;border-radius:14px;
}
.bank-info{
  display:grid;
  gap:4px;
  color:rgba(255,255,255,.82);
  font-size:12px;
}
.bank-info b{color:var(--gold-2)}
.mini-title{
  margin:16px 0 10px;
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.donate-list{display:grid;gap:8px}
.empty-line{
  color:rgba(255,255,255,.62);
  font-size:12px;
  padding:10px 0;
}

.page-card{
  width:min(1180px,calc(100% - 40px));
  height:min(760px,calc(100% - 40px));
  margin:20px auto;
  padding:20px;
  overflow:auto;
}
.page-head{border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:14px;margin-bottom:16px}
.close-page{padding:0 22px}
.placeholder-panel{
  min-height:220px;
  border-radius:18px;
  border:1px dashed rgba(245,213,137,.25);
  background:rgba(0,0,0,.18);
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--muted);
  font-weight:800;
  padding:20px;
}

body[data-page="scrim"] .side-menu{display:none}
body[data-page="scrim"] .page-shell{inset:0}
.scrim-page{padding:18px}
.scrim-frame{
  width:min(1500px,100%);
  height:100%;
  margin:0 auto;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto 1fr;
}
.scrim-head{
  padding:18px 22px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.scrim-head h1{
  margin:0;
  color:var(--gold);
  font-size:42px;
  line-height:1;
  text-transform:uppercase;
}
.scrim-head p{
  margin:6px 0 0;
  color:var(--text);
  text-transform:uppercase;
  font-size:12px;
  font-weight:950;
  letter-spacing:.12em;
}

.music-player{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:38;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.38);
  border-radius:999px;
  padding:8px 12px;
  backdrop-filter:blur(10px);
}
.music-player button{
  background:none;border:0;color:var(--gold);font-size:16px;padding:0;
}
.music-player input{
  width:110px;
  height:4px;
  min-height:4px;
  padding:0;
  accent-color:var(--gold);
}

.modal{
  position:fixed;inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.62);
  padding:18px;
}
.modal-card{
  width:min(430px,100%);
  padding:20px;
}
.icon-btn{
  width:38px;height:38px;min-height:38px;
  padding:0;
  font-size:18px;
}
.field{
  display:grid;
  gap:7px;
  margin:14px 0;
}
.field span{
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.submit-btn{
  width:100%;
  margin-top:8px;
  background:linear-gradient(180deg,#28e69d,#0daa76);
  color:#031610;
}
.login-note{
  color:var(--muted);
  text-align:center;
  font-size:12px;
}
.qr-card{text-align:center}
.qr-big{
  width:220px;height:220px;object-fit:contain;
  background:#fff;
  padding:8px;
  border-radius:18px;
  margin:16px auto;
}
.center{text-align:center}

@media(max-width:1100px){
  .side-menu{
    right:0;bottom:auto;
    width:100%;
    height:70px;
    flex-direction:row;
    align-items:center;
    padding:6px 8px;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
  }
  .side-logo{width:58px;flex:0 0 58px;margin:0}
  .side-logo img{width:58px;max-height:58px}
  .side-links{
    display:flex;
    flex:1 1 auto;
    min-width:0;
    width:auto;
    overflow-x:auto;
    gap:8px;
  }
  .menu-btn{
    width:auto;
    min-width:98px;
    height:38px;
    min-height:38px;
    flex:0 0 auto;
    font-size:10px;
  }
  .side-user{
    margin:0;
    padding:0;
    width:auto;
    flex:0 0 auto;
  }
  .account-pill{
    width:150px;
    height:40px;
    grid-template-columns:32px minmax(0,1fr) 32px;
  }
  .avatar-dot,.power-dot{width:30px;height:30px}

  .page-shell{inset:70px 0 0 0}
  .home-center{
    position:relative;
    left:auto;top:auto;transform:none;
    width:min(440px,100%);
    min-width:0;
    margin:42px auto 18px;
  }
  .home-donate-card{
    position:relative;
    right:auto;top:auto;transform:none;
    width:min(340px,calc(100% - 20px));
    margin:0 auto 18px;
  }
  .page-card{
    width:calc(100% - 20px);
    height:calc(100% - 20px);
    margin:10px auto;
  }
  body[data-page="scrim"] .page-shell{inset:0}
}

@media(max-width:560px){
  .side-menu{height:66px}
  .side-logo{width:50px;flex-basis:50px}
  .side-logo img{width:50px;max-height:50px}
  .menu-btn{min-width:88px;height:36px;min-height:36px;font-size:9px}
  .account-pill{width:126px;height:38px;grid-template-columns:30px 1fr 30px}
  .page-shell{inset:66px 0 0 0}
  .home-center{grid-template-columns:1fr;width:260px;margin-top:34px}
  .home-action{min-height:52px}
  .donate-main{grid-template-columns:82px 1fr}
  .qr-img{width:82px;height:82px}
  .scrim-page{padding:8px}
  .scrim-head{display:grid;gap:10px}
  .scrim-head h1{font-size:30px}
  .close-page{min-height:40px}
  .music-player{right:10px;bottom:10px;transform:scale(.88);transform-origin:right bottom}
}


/* ========== REBUILD V1.1 MENU + BACKGROUND RESPONSIVE OVERRIDE ========== */
@media(min-width:1101px){
  .side-menu{
    left:14px!important;
    top:50%!important;
    bottom:auto!important;
    right:auto!important;
    transform:translateY(-50%)!important;
    width:176px!important;
    height:auto!important;
    max-height:calc(100vh - 32px)!important;
    padding:12px 10px!important;
    gap:8px!important;
    justify-content:center!important;
  }
  .side-logo{width:108px!important;margin:0 auto 8px!important;}
  .side-logo img{width:108px!important;max-height:112px!important;}
  .side-links{display:grid!important;gap:7px!important;width:100%!important;}
  .menu-btn{height:36px!important;min-height:36px!important;font-size:10px!important;padding:0 12px!important;}
  .side-user{margin-top:8px!important;width:100%!important;}
  .account-pill{height:40px!important;grid-template-columns:32px minmax(0,1fr) 32px!important;}
  .avatar-dot,.power-dot{width:30px!important;height:30px!important;}
}

/* Tablet/mobile menu vẫn ngang gọn */
@media(max-width:1100px){
  .side-menu{
    left:0!important;
    top:0!important;
    right:0!important;
    bottom:auto!important;
    transform:none!important;
    width:100%!important;
    height:68px!important;
    max-height:none!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    align-items:center!important;
    padding:6px 8px!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
  }
  .side-logo{
    width:54px!important;
    flex:0 0 54px!important;
    margin:0!important;
  }
  .side-logo img{
    width:54px!important;
    max-height:54px!important;
  }
  .side-links{
    display:flex!important;
    width:auto!important;
    flex:1 1 auto!important;
    min-width:0!important;
    overflow-x:auto!important;
    gap:8px!important;
  }
  .menu-btn{
    width:auto!important;
    min-width:90px!important;
    height:36px!important;
    min-height:36px!important;
    flex:0 0 auto!important;
    font-size:9px!important;
    padding:0 10px!important;
  }
  .side-user{
    width:auto!important;
    margin:0!important;
    flex:0 0 auto!important;
  }
  .account-pill{
    width:126px!important;
    height:38px!important;
    grid-template-columns:30px minmax(0,1fr) 30px!important;
  }
  .avatar-dot,.power-dot{
    width:28px!important;
    height:28px!important;
  }
  .page-shell{
    inset:68px 0 0 0!important;
  }
  body[data-page="scrim"] .page-shell{
    inset:0!important;
  }
}

@media(max-width:560px){
  .side-menu{height:64px!important;}
  .page-shell{inset:64px 0 0 0!important;}
  .side-logo{width:48px!important;flex-basis:48px!important;}
  .side-logo img{width:48px!important;max-height:48px!important;}
  .menu-btn{min-width:84px!important;height:34px!important;min-height:34px!important;font-size:8.5px!important;}
  .account-pill{width:118px!important;height:36px!important;grid-template-columns:28px minmax(0,1fr) 28px!important;}
  .avatar-dot,.power-dot{width:26px!important;height:26px!important;}
}


/* =========================================================
   REBUILD V1.2 - RESPONSIVE MENU + HOME LAYOUT LOCK
   ========================================================= */

/* Ẩn thanh cuộn xấu nhưng vẫn cho kéo ngang */
.side-menu,
.side-links{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.side-menu::-webkit-scrollbar,
.side-links::-webkit-scrollbar{
  display:none!important;
}

/* PC: menu trái là một cụm gọn, không cao chót vót */
@media(min-width:1101px){
  .side-menu{
    position:fixed!important;
    left:16px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:176px!important;
    height:auto!important;
    max-height:calc(100vh - 28px)!important;
    padding:12px 10px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:8px!important;
    overflow:visible!important;
  }

  .side-logo{
    width:106px!important;
    margin:0 auto 8px!important;
    flex:0 0 auto!important;
  }

  .side-logo img{
    width:106px!important;
    max-height:110px!important;
    object-fit:contain!important;
  }

  .side-links{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    overflow:visible!important;
  }

  .menu-btn{
    width:100%!important;
    min-width:0!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 12px!important;
    font-size:10px!important;
    letter-spacing:.075em!important;
  }

  .side-user{
    width:100%!important;
    margin:8px 0 0!important;
    padding:0!important;
    flex:0 0 auto!important;
  }

  .account-pill{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    grid-template-columns:32px minmax(0,1fr) 32px!important;
    gap:6px!important;
    padding:4px 5px!important;
  }

  .avatar-dot,.power-dot{
    width:30px!important;
    height:30px!important;
    font-size:12px!important;
  }

  .account-name{
    font-size:9px!important;
    line-height:1!important;
  }

  .page-shell{
    inset:0!important;
  }

  body[data-page="home"] .home-center{
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
  }

  body[data-page="home"] .home-donate-card{
    right:24px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
  }
}

/* Tablet/mobile: menu ngang 1 hàng, user không chen chỗ nút */
@media(max-width:1100px){
  html,body{
    overflow:hidden!important;
  }

  .side-menu{
    position:fixed!important;
    left:0!important;
    top:0!important;
    right:0!important;
    bottom:auto!important;
    transform:none!important;
    width:100%!important;
    height:68px!important;
    max-height:68px!important;
    padding:6px 8px!important;
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr) 44px!important;
    gap:8px!important;
    align-items:center!important;
    overflow:hidden!important;
    background:rgba(8,9,14,.54)!important;
    backdrop-filter:blur(10px)!important;
    border-bottom:1px solid rgba(245,213,137,.20)!important;
  }

  .side-logo{
    width:52px!important;
    margin:0!important;
    flex:0 0 52px!important;
  }

  .side-logo img{
    width:52px!important;
    max-height:52px!important;
    object-fit:contain!important;
  }

  .side-links{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0 2px!important;
    scroll-snap-type:x proximity!important;
  }

  .menu-btn{
    width:auto!important;
    min-width:88px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 10px!important;
    font-size:9px!important;
    flex:0 0 auto!important;
    scroll-snap-align:start!important;
  }

  /* User chỉ còn icon tròn bên phải để không chen nút menu */
  .side-user{
    width:44px!important;
    height:44px!important;
    margin:0!important;
    padding:0!important;
    flex:0 0 44px!important;
  }

  .account-pill{
    width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    place-items:center!important;
    border-radius:50%!important;
  }

  .account-pill .account-name{
    display:none!important;
  }

  .account-pill .power-dot{
    display:none!important;
  }

  .avatar-dot{
    width:34px!important;
    height:34px!important;
    font-size:12px!important;
  }

  .page-shell{
    inset:68px 0 0 0!important;
    overflow:auto!important;
  }

  body[data-page="scrim"] .side-menu{
    display:none!important;
  }

  body[data-page="scrim"] .page-shell{
    inset:0!important;
  }

  /* Trang chủ mobile: 2 nút rồi tới Top Donate */
  .page[data-page="home"]{
    min-height:calc(100vh - 68px)!important;
    overflow:auto!important;
    padding:24px 10px 18px!important;
  }

  .home-center{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    transform:none!important;
    width:min(440px,100%)!important;
    min-width:0!important;
    margin:28px auto 18px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
  }

  .home-action{
    min-height:52px!important;
    padding:0 18px!important;
    font-size:11px!important;
  }

  .home-donate-card{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    transform:none!important;
    width:min(340px,100%)!important;
    max-height:none!important;
    margin:0 auto 18px!important;
  }

  .music-player{
    right:10px!important;
    bottom:10px!important;
    transform:scale(.88)!important;
    transform-origin:right bottom!important;
  }
}

/* Điện thoại nhỏ */
@media(max-width:560px){
  .side-menu{
    height:64px!important;
    max-height:64px!important;
    grid-template-columns:48px minmax(0,1fr) 40px!important;
    gap:6px!important;
    padding:5px 6px!important;
  }

  .side-logo{
    width:48px!important;
  }

  .side-logo img{
    width:48px!important;
    max-height:48px!important;
  }

  .menu-btn{
    min-width:82px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 9px!important;
    font-size:8.5px!important;
  }

  .side-user{
    width:40px!important;
    height:40px!important;
  }

  .account-pill{
    width:40px!important;
    height:40px!important;
    min-height:40px!important;
  }

  .avatar-dot{
    width:31px!important;
    height:31px!important;
  }

  .page-shell{
    inset:64px 0 0 0!important;
  }

  .page[data-page="home"]{
    min-height:calc(100vh - 64px)!important;
    padding-top:18px!important;
  }

  .home-center{
    grid-template-columns:1fr!important;
    width:min(270px,100%)!important;
    margin-top:20px!important;
    gap:12px!important;
  }

  .home-action{
    min-height:50px!important;
  }

  .home-donate-card{
    width:min(340px,calc(100vw - 20px))!important;
    padding:16px!important;
  }

  .donate-main{
    grid-template-columns:82px minmax(0,1fr)!important;
  }

  .qr-img{
    width:82px!important;
    height:82px!important;
  }
}


/* =========================================================
   REBUILD V1.3 - CLEAN ROUTER LAYOUT + MOBILE DRAWER
   PC: menu chỉ hiện ở Trang chủ.
   Mobile: bỏ menu ngang, dùng nút ☰ mở drawer.
   ========================================================= */

.mobile-menu-toggle,
.drawer-backdrop{
  display:none;
}

/* PC */
@media(min-width:1101px){
  body[data-page="home"] .side-menu{
    display:flex!important;
    position:fixed!important;
    left:16px!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translateY(-50%)!important;
    width:176px!important;
    height:auto!important;
    max-height:calc(100vh - 28px)!important;
    padding:12px 10px!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    overflow:visible!important;
  }

  body:not([data-page="home"]) .side-menu{
    display:none!important;
  }

  body[data-page="home"] .page-shell,
  body:not([data-page="home"]) .page-shell{
    inset:0!important;
    overflow:hidden!important;
  }

  .mobile-menu-toggle,
  .drawer-backdrop{
    display:none!important;
  }

  .side-logo{
    width:106px!important;
    margin:0 auto 8px!important;
  }

  .side-logo img{
    width:106px!important;
    max-height:110px!important;
  }

  .side-links{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    overflow:visible!important;
  }

  .menu-btn{
    width:100%!important;
    min-width:0!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 12px!important;
    font-size:10px!important;
    letter-spacing:.075em!important;
  }

  .side-user{
    width:100%!important;
    margin:8px 0 0!important;
    padding:0!important;
  }

  .account-pill{
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    grid-template-columns:32px minmax(0,1fr) 32px!important;
    border-radius:999px!important;
  }

  .account-pill .account-name,
  .account-pill .power-dot{
    display:grid!important;
  }

  .avatar-dot,.power-dot{
    width:30px!important;
    height:30px!important;
  }

  /* Trang con full màn hình */
  .page-card{
    width:min(1320px, calc(100% - 42px))!important;
    height:min(820px, calc(100% - 42px))!important;
    margin:21px auto!important;
  }

  .scrim-page{
    padding:18px!important;
  }

  .scrim-frame{
    width:min(1500px, calc(100% - 0px))!important;
    height:100%!important;
  }
}

/* MOBILE / TABLET */
@media(max-width:1100px){
  html,body{
    overflow:hidden!important;
  }

  .mobile-menu-toggle{
    display:grid!important;
    place-items:center!important;
    position:fixed!important;
    top:10px!important;
    left:10px!important;
    z-index:90!important;
    width:44px!important;
    height:44px!important;
    border-radius:14px!important;
    border:1px solid rgba(245,213,137,.38)!important;
    background:rgba(10,10,16,.72)!important;
    color:var(--gold-2)!important;
    font-size:22px!important;
    font-weight:900!important;
    box-shadow:0 10px 28px rgba(0,0,0,.35)!important;
    backdrop-filter:blur(10px)!important;
  }

  .drawer-backdrop{
    display:none!important;
    position:fixed!important;
    inset:0!important;
    z-index:70!important;
    background:rgba(0,0,0,.46)!important;
  }

  body.drawer-open .drawer-backdrop{
    display:block!important;
  }

  .side-menu{
    display:flex!important;
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    right:auto!important;
    transform:translateX(-105%)!important;
    width:min(250px, 86vw)!important;
    height:100vh!important;
    max-height:none!important;
    z-index:80!important;
    padding:18px 14px 14px!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    background:linear-gradient(180deg,rgba(12,13,20,.92),rgba(25,16,20,.88))!important;
    border-right:1px solid rgba(245,213,137,.30)!important;
    box-shadow:22px 0 70px rgba(0,0,0,.45)!important;
    backdrop-filter:blur(14px)!important;
    transition:transform .24s ease!important;
  }

  body.drawer-open .side-menu{
    transform:translateX(0)!important;
  }

  .side-logo{
    width:92px!important;
    margin:0 auto 8px!important;
    flex:0 0 auto!important;
  }

  .side-logo img{
    width:92px!important;
    max-height:96px!important;
    object-fit:contain!important;
  }

  .side-links{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    overflow:visible!important;
    padding:0!important;
  }

  .menu-btn{
    width:100%!important;
    min-width:0!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 14px!important;
    font-size:10px!important;
  }

  .side-user{
    width:100%!important;
    margin-top:auto!important;
    padding-top:10px!important;
    flex:0 0 auto!important;
  }

  .account-pill{
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    border-radius:999px!important;
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr) 32px!important;
    gap:7px!important;
    padding:4px 5px!important;
  }

  .account-pill .account-name,
  .account-pill .power-dot{
    display:grid!important;
  }

  .avatar-dot,.power-dot{
    width:30px!important;
    height:30px!important;
  }

  .page-shell{
    inset:0!important;
    overflow:auto!important;
  }

  .page[data-page="home"]{
    min-height:100vh!important;
    overflow:auto!important;
    padding:72px 10px 18px!important;
  }

  .home-center{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    transform:none!important;
    width:min(440px,100%)!important;
    min-width:0!important;
    margin:20px auto 18px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
  }

  .home-action{
    min-height:52px!important;
    padding:0 18px!important;
    font-size:11px!important;
  }

  .home-donate-card{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    transform:none!important;
    width:min(340px,100%)!important;
    max-height:none!important;
    margin:0 auto 18px!important;
  }

  .page-card{
    width:calc(100% - 18px)!important;
    height:calc(100% - 18px)!important;
    margin:9px auto!important;
    padding:14px!important;
    overflow:auto!important;
  }

  .scrim-page{
    padding:9px!important;
  }

  .scrim-frame{
    width:100%!important;
    height:100%!important;
  }

  .scrim-head{
    padding:14px!important;
  }

  .scrim-head h1{
    font-size:30px!important;
  }

  .music-player{
    right:10px!important;
    bottom:10px!important;
    transform:scale(.88)!important;
    transform-origin:right bottom!important;
  }
}

@media(max-width:560px){
  .mobile-menu-toggle{
    width:42px!important;
    height:42px!important;
    top:8px!important;
    left:8px!important;
    border-radius:13px!important;
  }

  .page[data-page="home"]{
    padding-top:64px!important;
  }

  .home-center{
    grid-template-columns:1fr!important;
    width:min(270px,100%)!important;
    margin-top:18px!important;
    gap:12px!important;
  }

  .home-action{
    min-height:50px!important;
  }

  .home-donate-card{
    width:min(340px,calc(100vw - 20px))!important;
    padding:16px!important;
  }

  .donate-main{
    grid-template-columns:82px minmax(0,1fr)!important;
  }

  .qr-img{
    width:82px!important;
    height:82px!important;
  }

  .page-head,
  .scrim-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    align-items:start!important;
  }

  .close-page{
    width:100%!important;
  }
}


/* =========================================================
   REBUILD V1.4 - AUDIO PLAYER
   ========================================================= */
.music-player{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  z-index:95!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  border:1px solid rgba(245,213,137,.38)!important;
  background:rgba(7,8,12,.58)!important;
  border-radius:999px!important;
  padding:8px 12px!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.38)!important;
}

.music-toggle{
  width:34px!important;
  height:34px!important;
  min-height:34px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(180deg,#fff0a8,#d1a23c)!important;
  color:#1a1004!important;
  border:1px solid rgba(255,238,170,.78)!important;
  font-size:13px!important;
  font-weight:950!important;
  padding:0!important;
}

.music-volume-wrap{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}

#musicStatus{
  color:var(--gold-2)!important;
  font-size:10px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
  white-space:nowrap!important;
}

.music-player input{
  width:110px!important;
  height:4px!important;
  min-height:4px!important;
  padding:0!important;
  accent-color:var(--gold)!important;
}

@media(max-width:560px){
  .music-player{
    right:8px!important;
    bottom:8px!important;
    padding:7px 9px!important;
    gap:7px!important;
  }
  .music-toggle{
    width:32px!important;
    height:32px!important;
    min-height:32px!important;
  }
  #musicStatus{
    display:none!important;
  }
  .music-player input{
    width:86px!important;
  }
}


/* =========================================================
   REBUILD V5.3 TOP DONATE QR CLEAN
   Dọn riêng block Top Donate/QR: QR vuông, nét, không méo.
   ========================================================= */
.home-donate-card{
  border:1px solid rgba(245,213,137,.36)!important;
  background:linear-gradient(135deg,rgba(18,19,29,.84),rgba(31,24,24,.78))!important;
  box-shadow:0 18px 50px rgba(0,0,0,.36)!important;
  backdrop-filter:blur(12px)!important;
}

.donate-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:14px!important;
}

.donate-head h2{
  color:var(--gold)!important;
  letter-spacing:.08em!important;
}

.qr-btn{
  width:54px!important;
  height:42px!important;
  min-height:42px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
}

.donate-main{
  display:grid!important;
  grid-template-columns:108px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:center!important;
}

.qr-img{
  width:108px!important;
  height:108px!important;
  display:block!important;
  object-fit:contain!important;
  image-rendering:pixelated!important;
  image-rendering:crisp-edges!important;
  background:#fff!important;
  padding:8px!important;
  border-radius:14px!important;
  border:1px solid rgba(255,255,255,.86)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.30)!important;
}

.bank-info{
  min-width:0!important;
  display:grid!important;
  gap:4px!important;
  color:#fff4d6!important;
}

.bank-info b{
  color:var(--gold-2)!important;
  font-size:12px!important;
}

.bank-info span{
  font-size:11px!important;
  line-height:1.35!important;
  word-break:break-word!important;
}

#homeDonateList{
  margin-top:10px!important;
  display:grid!important;
  gap:7px!important;
}

.donate-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  color:#fff4d6!important;
  font-size:13px!important;
}

.donate-row b{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#fff8e8!important;
}

.donate-row span{
  color:var(--gold-2)!important;
  font-weight:950!important;
  white-space:nowrap!important;
}

@media(max-width:560px){
  .home-donate-card{
    width:min(340px,calc(100vw - 20px))!important;
  }

  .donate-main{
    grid-template-columns:96px minmax(0,1fr)!important;
    gap:12px!important;
  }

  .qr-img{
    width:96px!important;
    height:96px!important;
    padding:7px!important;
    border-radius:13px!important;
  }

  .qr-btn{
    width:50px!important;
    height:38px!important;
    min-height:38px!important;
  }

  .bank-info b{
    font-size:11px!important;
  }

  .bank-info span{
    font-size:10px!important;
  }
}
/* ========== END REBUILD V5.3 TOP DONATE QR CLEAN ========== */


/* =========================================================
   REBUILD V5.5 - USER QR DISPLAY FIX
   Dùng đúng QR user gửi, căng to hơn, viền trắng gọn.
   ========================================================= */
.qr-img{
  width:122px!important;
  height:122px!important;
  object-fit:cover!important;
  object-position:center!important;
  image-rendering:auto!important;
  background:#fff!important;
  padding:3px!important;
  border-radius:12px!important;
  border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.30)!important;
}

.donate-main{
  grid-template-columns:122px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:center!important;
}

@media(max-width:560px){
  .qr-img{
    width:112px!important;
    height:112px!important;
    padding:3px!important;
    border-radius:11px!important;
  }

  .donate-main{
    grid-template-columns:112px minmax(0,1fr)!important;
    gap:12px!important;
  }
}