:root{
  --bg:#f4fbf6;
  --card:#ffffff;
  --card2:#f8fffa;
  --text:#102018;
  --muted:#7c8b83;
  --line:#e2f0e7;

  --green:#10b943;
  --green2:#05d15f;
  --green3:#087d35;
  --lime:#a8ff60;

  --blue:#1ca8ff;
  --purple:#7c3aed;
  --red:#ef4444;
  --orange:#f97316;

  --radius:24px;
  --shadow:0 18px 55px rgba(10,80,40,.12);
  --glow:0 0 28px rgba(16,185,67,.28);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(16,185,67,.18), transparent 34%),
    radial-gradient(circle at 95% 8%, rgba(168,255,96,.20), transparent 28%),
    linear-gradient(180deg,#f7fff9 0%,#edf8f1 100%);
  color:var(--text);
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}

body.dark{
  --bg:#06150d;
  --card:#0b2115;
  --card2:#0d2a1b;
  --text:#effff4;
  --muted:#9bb8a7;
  --line:rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 20% 0%, rgba(16,185,67,.28), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(168,255,96,.13), transparent 30%),
    linear-gradient(180deg,#031009 0%,#07170f 100%);
}

.shell{
  max-width:720px;
  margin:0 auto;
  min-height:100vh;
  background:transparent;
  padding:14px 14px 92px;
}

.main{
  padding:0;
}

.sidebar{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  z-index:900;
  width:min(94vw,520px);
  height:72px;
  padding:9px;
  border-radius:28px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(16,185,67,.18);
  box-shadow:0 20px 55px rgba(8,90,45,.20);
  backdrop-filter:blur(18px);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:7px;
  overflow:visible;
}

body.dark .sidebar{
  background:rgba(7,24,15,.86);
  border-color:rgba(255,255,255,.08);
}

.logo,.menu-toggle-btn{
  display:none!important;
}

.side-btn{
  border:0;
  width:100%!important;
  height:54px;
  border-radius:20px;
  background:transparent;
  color:#8a9a91;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:0;
}

.side-btn::after{
  content:attr(data-label);
  font-size:10px;
  font-weight:900;
  opacity:1;
  white-space:nowrap;
}

.side-btn.active{
  color:white;
  background:linear-gradient(135deg,var(--green),var(--green2));
  box-shadow:var(--glow);
}

.topbar{
  margin:0 0 16px;
  padding:18px;
  border-radius:30px;
  border:1px solid rgba(16,185,67,.15);
  background:
    linear-gradient(135deg,rgba(16,185,67,.95),rgba(5,209,95,.82)),
    radial-gradient(circle at 90% 0%,rgba(255,255,255,.35),transparent 35%);
  color:white;
  box-shadow:var(--shadow);
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:12px;
  overflow:hidden;
  position:relative;
}

.topbar:after{
  content:"";
  position:absolute;
  right:-35px;
  top:-35px;
  width:145px;
  height:145px;
  background:rgba(255,255,255,.14);
  border-radius:50%;
}

.topbar h1{
  margin:0;
  font-size:24px;
  font-weight:950;
  letter-spacing:-.04em;
}

.topbar p{
  margin:4px 0 0;
  color:rgba(255,255,255,.85);
  font-weight:800;
}

.top-actions{
  grid-column:1/-1;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  gap:10px;
  align-items:center;
}

.fee-pill{
  justify-self:start!important;
  background:rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.24);
  color:white;
  border-radius:18px;
  padding:12px 14px;
  font-weight:800;
  backdrop-filter:blur(10px);
}

.fee-pill b{
  color:white;
  font-size:18px;
}

.theme-top-btn{
  justify-self:end!important;
  width:46px;
  height:46px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.2);
  color:white;
  font-size:20px;
}

.panel{display:none}
.panel.active{display:block}

.card,.preview-card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:28px;
  padding:18px;
  margin-bottom:16px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}

body.dark .card,
body.dark .preview-card{
  background:rgba(11,33,21,.90);
}

.card h2{
  margin:0 0 14px;
  font-size:17px;
  color:var(--green3);
  font-weight:950;
}

body.dark .card h2{
  color:#8cff9d;
}

.bank-select-wrap{
  position:relative;
  margin-bottom:16px;
}

.bank-select-btn{
  width:100%;
  min-height:64px;
  border:1px solid var(--line);
  background:linear-gradient(135deg,#fff,#f1fff5);
  color:var(--text);
  border-radius:22px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:950;
  box-shadow:0 12px 28px rgba(0,0,0,.05);
}

body.dark .bank-select-btn{
  background:linear-gradient(135deg,#0d2a1b,#0a1f14);
}

.bank-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.bank-logo,.bank-logo-empty{
  width:40px;
  height:40px;
  border-radius:16px;
  background:white;
  object-fit:contain;
  padding:6px;
  display:grid;
  place-items:center;
  box-shadow:0 8px 24px rgba(16,185,67,.18);
}

.bank-dropdown{
  position:absolute;
  z-index:30;
  top:72px;
  left:0;
  right:0;
  max-height:360px;
  overflow-y:auto;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:8px;
}

.bank-option{
  width:100%;
  border:0;
  background:transparent;
  color:var(--text);
  padding:12px;
  border-radius:18px;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:950;
}

.bank-option:hover,.bank-option.active{
  background:linear-gradient(135deg,var(--green),var(--green2));
  color:white;
}

.form-grid,.theme-grid,.amount-grid{
  display:grid;
  gap:12px;
}

.form-grid{grid-template-columns:1fr}
.theme-grid{grid-template-columns:1fr 1fr}
.amount-grid{grid-template-columns:repeat(3,1fr);margin-bottom:14px}

label{
  display:block;
  color:var(--muted);
  margin:0 0 8px;
  font-size:13px;
  font-weight:900;
}

input{
  width:100%;
  border:1px solid var(--line);
  background:#f8fffa;
  color:var(--text);
  border-radius:20px;
  padding:15px 16px;
  font-size:16px;
  font-weight:850;
  outline:none;
}

body.dark input{
  background:#071b11;
}

input:focus{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(16,185,67,.13);
}

.primary-btn,.success-btn{
  border:0;
  color:white;
  background:linear-gradient(135deg,var(--green),var(--green2));
  border-radius:20px;
  padding:15px 16px;
  font-weight:950;
  font-size:15px;
  box-shadow:0 12px 30px rgba(16,185,67,.25);
}

.primary-btn{
  margin-top:16px;
  width:100%;
}

.secondary-btn,.mini-btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:18px;
  padding:13px 14px;
  font-weight:950;
  text-decoration:none;
  text-align:center;
  cursor:pointer;
}

body.dark .secondary-btn,
body.dark .mini-btn{
  background:#0a1d13;
}

.danger-btn{
  border:0;
  color:white;
  background:linear-gradient(135deg,#ff4d4d,#ef4444);
  border-radius:20px;
  padding:15px;
  font-weight:950;
}

.bank-btn,.theme-btn,.amount-btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:20px;
  padding:13px 10px;
  font-weight:950;
}

.bank-btn.active,.theme-btn.active,.amount-btn.active{
  color:white;
  background:linear-gradient(135deg,var(--green),var(--green2));
  box-shadow:var(--glow);
}

.preview-empty{
  min-height:320px;
  border:1px dashed rgba(16,185,67,.35);
  border-radius:26px;
  background:
    radial-gradient(circle at 50% 15%,rgba(16,185,67,.16),transparent 36%),
    linear-gradient(180deg,#f9fffb,#eefaf2);
  display:grid;
  place-items:center;
}

.qr-img{
  width:min(100%,420px);
  border-radius:24px;
  box-shadow:0 18px 50px rgba(0,0,0,.12);
}

.info-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}

.info-list div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:13px 14px;
  background:#f4fbf6;
  border:1px solid var(--line);
  border-radius:18px;
}

body.dark .info-list div{
  background:#071b11;
}

.info-list span{color:var(--muted)}
.info-list b{text-align:right;word-break:break-word}

.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.history-list{
  display:grid;
  gap:12px;
}

.history-item{
  background:#f8fffa;
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  overflow:hidden;
}

body.dark .history-item{
  background:#071b11;
}

.history-item b{
  display:block;
  font-size:15px;
  font-weight:950;
}

.history-item span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

.badge{
  display:inline-block!important;
  width:fit-content;
  padding:7px 12px;
  border-radius:999px;
  font-size:11px!important;
  font-weight:950;
  margin-top:8px;
}

.badge.approved,.badge.success{
  background:#dcfce7;
  color:#166534;
}

.badge.pending,.badge.waiting_admin{
  background:#ecfdf5;
  color:#047857;
}

.badge.rejected{
  background:#fee2e2;
  color:#991b1b;
}

.status{
  margin-bottom:14px;
  padding:13px 15px;
  border-radius:20px;
  font-weight:950;
}

.status.success{background:#dcfce7;color:#166534}
.status.error{background:#fee2e2;color:#991b1b}
.status.info{background:#e0f2fe;color:#075985}

.hidden{display:none!important}

.modal-overlay{
  position:fixed;
  inset:0;
  z-index:9998;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(4,20,12,.55);
  backdrop-filter:blur(14px);
}

.modal-card{
  width:min(560px,100%);
  max-height:88vh;
  display:flex;
  flex-direction:column;
  position:relative;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(16,185,67,.20);
  border-radius:34px;
  padding:18px;
  box-shadow:0 35px 90px rgba(0,0,0,.24);
}

body.dark .modal-card{
  background:rgba(8,25,16,.96);
}

.modal-x{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:16px;
  background:#f3f7f5;
  color:var(--text);
  font-size:28px;
  font-weight:950;
}

.modal-title{
  color:var(--green3);
  font-size:21px;
  font-weight:950;
  padding-right:48px;
  margin-bottom:12px;
}

body.dark .modal-title{color:#91ff9c}

.modal-body{
  overflow:auto;
  padding-right:2px;
}

.modal-body::-webkit-scrollbar,
.bank-dropdown::-webkit-scrollbar{
  width:5px;
}

.modal-body::-webkit-scrollbar-thumb,
.bank-dropdown::-webkit-scrollbar-thumb{
  background:linear-gradient(var(--green),var(--green2));
  border-radius:999px;
}

.modal-footer-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}

.modal-footer-row.single-close{
  grid-template-columns:1fr!important;
}

.modal-footer-row button{
  margin-top:0!important;
  width:100%;
}

.modal-save-btn{
  background:linear-gradient(135deg,var(--green),var(--green2))!important;
}

.modal-qr-img{
  display:block;
  width:100%;
  max-width:430px;
  margin:0 auto 12px;
  border-radius:24px;
  background:#fff;
}

.copy-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  background:#f8fffa;
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
  margin-bottom:10px;
}

.copy-icon-btn{
  border:0;
  width:42px;
  height:42px;
  border-radius:16px;
  color:white;
  background:linear-gradient(135deg,var(--green),var(--green2));
  font-weight:950;
}

.toast-popup{
  position:fixed;
  left:50%;
  top:22px;
  transform:translateX(-50%);
  z-index:9999;
  min-width:270px;
  max-width:92vw;
  border-radius:22px;
  padding:15px;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  font-weight:900;
}

.toast-close{
  margin-top:10px;
  width:100%;
  border:0;
  border-radius:16px;
  padding:12px;
  color:white;
  background:linear-gradient(135deg,var(--green),var(--green2));
  font-weight:950;
}

@media(max-width:560px){
  .shell{padding:12px 12px 92px}
  .topbar{border-radius:28px;padding:16px}
  .topbar h1{font-size:22px}
  .card,.preview-card{border-radius:26px;padding:16px}
  .amount-grid{grid-template-columns:repeat(3,1fr)}
  .modal-card{border-radius:30px;padding:14px}
}

/* ===== Deposit payment modal redesign ===== */
.deposit-pay-modal {
  display: grid;
  gap: 14px;
}

.deposit-pay-status {
  padding: 13px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
  color: #166534;
  font-weight: 950;
  text-align: center;
  border: 1px solid rgba(16,185,67,.18);
}

body.dark .deposit-pay-status {
  background: rgba(16,185,67,.12);
  color: #9cffaa;
}

.deposit-qr-wrap {
  background: #fff;
  border-radius: 26px;
  padding: 14px;
  border: 1px solid rgba(16,185,67,.18);
  box-shadow: 0 18px 45px rgba(8,80,35,.12);
}

.deposit-qr-img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 22px;
}

.deposit-copy-list {
  display: grid;
  gap: 10px;
}

.deposit-copy-list .copy-card {
  margin-bottom: 0;
}

.deposit-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deposit-modal-actions .primary-btn,
.deposit-modal-actions .danger-btn {
  margin-top: 0 !important;
  width: 100%;
}

#depositResult {
  display: none !important;
}

@media (max-width: 430px) {
  .deposit-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== PREMIUM DEPOSIT MODAL ===== */

.deposit-pay-modal{
  gap:18px!important;
}

.deposit-pay-status{
  border-radius:22px!important;
  padding:14px 18px!important;
  font-size:15px;
  font-weight:900;
  background:linear-gradient(135deg,#dcfce7,#ecfdf5)!important;
  border:1px solid rgba(16,185,67,.18)!important;
}

.deposit-qr-wrap{
  padding:18px!important;
  border-radius:32px!important;
  background:
    radial-gradient(circle at top,rgba(16,185,67,.10),transparent 45%),
    #fff!important;
  box-shadow:
    0 25px 60px rgba(16,185,67,.15),
    inset 0 1px 0 rgba(255,255,255,.7)!important;
}

.deposit-qr-img{
  max-width:300px!important;
  border-radius:26px!important;
}

.deposit-copy-list{
  gap:12px!important;
}

.deposit-copy-list .copy-card{
  border-radius:22px!important;
  background:#f8fffa!important;
  padding:14px 14px!important;
  min-height:74px;
  align-items:center;
}

.deposit-copy-list .copy-card b{
  font-size:18px;
  font-weight:900;
}

.deposit-copy-list .copy-icon-btn{
  width:52px!important;
  height:52px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#16a34a,#22c55e)!important;
  box-shadow:0 12px 25px rgba(16,185,67,.25)!important;
  font-size:20px!important;
}

.deposit-modal-actions{
  grid-template-columns:1fr 1fr 1fr!important;
  gap:12px!important;
}

.deposit-modal-actions .primary-btn,
.deposit-modal-actions .danger-btn{
  border-radius:22px!important;
  height:58px;
  font-size:15px!important;
  font-weight:900!important;
}

.modal-footer-row{
  display:none!important;
}

.modal-card{
  border-radius:38px!important;
  padding:20px!important;
}

.modal-title{
  font-size:20px!important;
  font-weight:1000!important;
}

.modal-x{
  width:48px!important;
  height:48px!important;
  border-radius:18px!important;
  background:#f3f4f6!important;
}

body.dark .deposit-qr-wrap{
  background:
    radial-gradient(circle at top,rgba(16,185,67,.18),transparent 45%),
    #07150d!important;
}

body.dark .deposit-copy-list .copy-card{
  background:#081a11!important;
}


/* ===== PINK PREMIUM MUN CHECK THEME OVERRIDE ===== */
:root{
  --bg:#fff1f8!important;
  --card:#ffffff!important;
  --card2:#fff7fb!important;
  --text:#20162b!important;
  --muted:#8d7f98!important;
  --line:#ffd6ea!important;

  --green:#ff3fa4!important;
  --green2:#b85cff!important;
  --green3:#e91e83!important;
  --lime:#ffb7e6!important;

  --primary:#ff3fa4!important;
  --primary2:#b85cff!important;

  --shadow:0 18px 55px rgba(255,63,164,.18)!important;
  --glow:0 0 32px rgba(255,63,164,.35)!important;
}

html,body{
  background:
    radial-gradient(circle at 15% 0%, rgba(255,63,164,.22), transparent 34%),
    radial-gradient(circle at 95% 8%, rgba(184,92,255,.20), transparent 30%),
    linear-gradient(180deg,#fff4fa 0%,#ffeaf5 100%)!important;
}

body.dark{
  --bg:#1a0713!important;
  --card:#220a19!important;
  --card2:#2b0d21!important;
  --text:#fff4fb!important;
  --muted:#d9aeca!important;
  --line:rgba(255,255,255,.10)!important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,63,164,.30), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(184,92,255,.22), transparent 30%),
    linear-gradient(180deg,#160611 0%,#24091a 100%)!important;
}

/* Header hero */
.topbar{
  background:
    linear-gradient(135deg,#ff2f92,#b85cff),
    radial-gradient(circle at 90% 0%,rgba(255,255,255,.35),transparent 35%)!important;
  border-color:rgba(255,63,164,.22)!important;
  box-shadow:0 24px 65px rgba(255,63,164,.25)!important;
}

/* Cards */
.card,.preview-card,.modal-card{
  border-color:#ffd6ea!important;
  box-shadow:0 18px 55px rgba(255,63,164,.16)!important;
}

.card h2,.modal-title{
  color:#e91e83!important;
}

/* Bottom nav */
.sidebar{
  background:rgba(255,255,255,.90)!important;
  border-color:rgba(255,63,164,.22)!important;
  box-shadow:0 22px 60px rgba(255,63,164,.23)!important;
}

.side-btn.active{
  background:linear-gradient(135deg,#ff3fa4,#b85cff)!important;
  box-shadow:0 0 30px rgba(255,63,164,.40)!important;
}

/* Buttons */
.primary-btn,
.success-btn,
.bank-btn.active,
.theme-btn.active,
.amount-btn.active,
.copy-icon-btn,
.toast-close,
.modal-save-btn{
  background:linear-gradient(135deg,#ff3fa4,#b85cff)!important;
  box-shadow:0 14px 34px rgba(255,63,164,.30)!important;
}

.danger-btn{
  background:linear-gradient(135deg,#ff4d6d,#ff1744)!important;
}

/* Inputs/select */
input,.bank-select-btn,.secondary-btn,.mini-btn,.history-item,.info-list div,.copy-card{
  border-color:#ffd6ea!important;
  background:#fff8fc!important;
}

body.dark input,
body.dark .bank-select-btn,
body.dark .secondary-btn,
body.dark .mini-btn,
body.dark .history-item,
body.dark .info-list div,
body.dark .copy-card{
  background:#220a19!important;
}

/* Popup deposit */
.deposit-pay-status{
  background:linear-gradient(135deg,#ffe0f0,#fff3fa)!important;
  color:#c2186a!important;
  border-color:#ffd1e8!important;
}

.deposit-qr-wrap{
  background:
    radial-gradient(circle at top,rgba(255,63,164,.12),transparent 45%),
    #fff!important;
  box-shadow:0 24px 60px rgba(255,63,164,.20)!important;
}

.deposit-copy-list .copy-icon-btn{
  background:linear-gradient(135deg,#ff3fa4,#b85cff)!important;
}

/* Status */
.status.success{
  background:#ffe0f0!important;
  color:#b31260!important;
}

.badge.approved,.badge.success{
  background:#ffe0f0!important;
  color:#b31260!important;
}

/* Scrollbar */
.modal-body::-webkit-scrollbar-thumb,
.bank-dropdown::-webkit-scrollbar-thumb{
  background:linear-gradient(#ff3fa4,#b85cff)!important;
}


/* ===== CODE MUN CHECK LOGO WITH LED EFFECT ===== */
.topbar{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  min-height:150px!important;
  padding:18px 12px!important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.95), transparent 38%),
    radial-gradient(circle at 25% 50%, rgba(255,47,146,.22), transparent 36%),
    radial-gradient(circle at 75% 50%, rgba(0,212,255,.20), transparent 36%),
    linear-gradient(135deg,#fff3fb,#ffd8ee)!important;
  overflow:hidden;
}

.topbar h1,
.topbar p,
.top-actions{
  display:none!important;
}

.mun-check-text-logo{
  position:relative;
  z-index:2;
  font-size:clamp(42px, 11vw, 96px);
  line-height:.9;
  font-weight:1000;
  letter-spacing:-.08em;
  font-family:Impact, "Arial Black", Inter, sans-serif;
  font-style:italic;
  text-transform:uppercase;

  background:linear-gradient(
    90deg,
    #ff1b7b 0%,
    #ff4db8 22%,
    #a855f7 48%,
    #2563eb 72%,
    #00d5ff 100%
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  -webkit-text-stroke:2px rgba(255,255,255,.88);

  text-shadow:
    0 2px 0 #ffffff,
    0 5px 0 rgba(168,85,247,.35),
    0 9px 0 rgba(0,117,255,.25),
    0 14px 24px rgba(255,0,140,.38),
    0 18px 34px rgba(0,195,255,.35);

  filter:drop-shadow(0 12px 22px rgba(255,47,146,.34));
}

/* lớp bóng 3D phía sau */
.mun-check-text-logo::before{
  content:attr(data-text);
  position:absolute;
  inset:0;
  z-index:-2;
  transform:translate(8px, 8px);
  background:linear-gradient(90deg,#d4006f,#7137ff,#008cff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  opacity:.58;
  filter:blur(.2px);
}

/* LED chạy trên mặt chữ */
.mun-check-text-logo::after{
  content:attr(data-text);
  position:absolute;
  inset:0;
  z-index:3;
  color:transparent;
  -webkit-text-stroke:2px transparent;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      transparent 35%,
      rgba(255,255,255,.98) 47%,
      rgba(0,240,255,.95) 50%,
      rgba(255,255,255,.98) 53%,
      transparent 65%,
      transparent 100%
    );
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  animation:munLedRun 2.4s linear infinite;
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,.9))
    drop-shadow(0 0 16px rgba(0,210,255,.75));
}

@keyframes munLedRun{
  from{background-position:220% 0}
  to{background-position:-220% 0}
}

/* tia sáng nhỏ */
.topbar::before{
  content:"";
  position:absolute;
  width:160%;
  height:4px;
  left:-30%;
  top:54%;
  background:linear-gradient(90deg,transparent,#ff4db8,#00d5ff,transparent);
  opacity:.35;
  filter:blur(4px);
  animation:munLineGlow 3s ease-in-out infinite;
}

@keyframes munLineGlow{
  0%,100%{transform:scaleX(.65);opacity:.18}
  50%{transform:scaleX(1);opacity:.45}
}

@media(max-width:480px){
  .topbar{
    min-height:116px!important;
  }

  .mun-check-text-logo{
    font-size:clamp(38px, 14vw, 64px);
    -webkit-text-stroke:1.2px rgba(255,255,255,.9);
    letter-spacing:-.075em;
  }

  .mun-check-text-logo::after{
    -webkit-text-stroke:1px transparent;
  }
}

/* ===== MUN CHECK LED 3D TEXT HEADER ===== */

.topbar{
  position:relative!important;
  min-height:155px!important;
  padding:20px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  overflow:hidden!important;
  border-radius:34px!important;
  background:
    radial-gradient(circle at 28% 45%, rgba(255,0,130,.22), transparent 30%),
    radial-gradient(circle at 72% 45%, rgba(0,200,255,.22), transparent 30%),
    linear-gradient(135deg,#ffeaf6 0%,#ffd1eb 50%,#ffeaf6 100%)!important;
}

.topbar::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:-60px!important;
  background:
    linear-gradient(110deg, transparent 20%, rgba(255,255,255,.85) 45%, transparent 60%);
  transform:translateX(-120%);
  animation:ledSweepBg 3.5s linear infinite;
  opacity:.45;
  pointer-events:none;
}

@keyframes ledSweepBg{
  to{transform:translateX(120%)}
}

.hero-brand{
  position:relative;
  z-index:3;
  width:100%;
}

.led-logo{
  position:relative;
  display:inline-block;
  font-family:Impact,"Arial Black",Inter,sans-serif;
  font-size:clamp(42px,12vw,92px);
  font-style:italic;
  font-weight:1000;
  line-height:.88;
  letter-spacing:-.075em;
  text-transform:uppercase;

  color:transparent;
  background:linear-gradient(
    90deg,
    #ff176f 0%,
    #ff4bb3 25%,
    #a535ff 50%,
    #2c68ff 73%,
    #00d8ff 100%
  );
  -webkit-background-clip:text;
  background-clip:text;

  -webkit-text-stroke:2px rgba(255,255,255,.92);

  text-shadow:
    0 2px 0 #fff,
    0 4px 0 rgba(255,0,130,.38),
    0 8px 0 rgba(115,49,255,.35),
    0 13px 0 rgba(0,160,255,.26),
    0 18px 28px rgba(255,0,130,.42),
    0 22px 42px rgba(0,200,255,.34);
}

/* bóng 3D lệch sau chữ */
.led-logo::before{
  content:attr(data-text);
  position:absolute;
  inset:0;
  z-index:-2;
  transform:translate(9px,9px);
  color:transparent;
  background:linear-gradient(90deg,#b90068,#6a2cff,#0088ff);
  -webkit-background-clip:text;
  background-clip:text;
  opacity:.62;
  filter:blur(.3px);
}

/* LED chạy trên viền/mặt chữ */
.led-logo::after{
  content:attr(data-text);
  position:absolute;
  inset:0;
  z-index:5;
  color:transparent;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 32%,
      rgba(255,255,255,1) 44%,
      rgba(255,0,180,1) 48%,
      rgba(0,230,255,1) 52%,
      rgba(255,255,255,1) 56%,
      transparent 68%,
      transparent 100%
    );
  background-size:240% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  animation:ledRunText 2.2s linear infinite;
  filter:
    drop-shadow(0 0 8px rgba(255,255,255,.95))
    drop-shadow(0 0 16px rgba(255,0,180,.8))
    drop-shadow(0 0 22px rgba(0,220,255,.75));
  pointer-events:none;
}

@keyframes ledRunText{
  from{background-position:240% 0}
  to{background-position:-240% 0}
}

.hero-sub{
  margin-top:14px!important;
  color:#df4aa0!important;
  font-size:18px!important;
  font-weight:850!important;
  letter-spacing:.02em!important;
  text-shadow:0 2px 10px rgba(255,255,255,.9);
}

.top-actions{
  display:none!important;
}

@media(max-width:480px){
  .topbar{
    min-height:125px!important;
    border-radius:30px!important;
  }

  .led-logo{
    font-size:clamp(40px,14vw,66px);
    -webkit-text-stroke:1.3px rgba(255,255,255,.95);
  }

  .hero-sub{
    font-size:13px!important;
    margin-top:10px!important;
  }
}

/* ===== REAL SVG LED LOGO ===== */
.topbar{
  min-height:150px!important;
  padding:14px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,47,164,.26), transparent 32%),
    radial-gradient(circle at 80% 50%, rgba(0,217,255,.25), transparent 32%),
    linear-gradient(135deg,#ffe4f3,#ffd1eb)!important;
}

.mun-svg-logo{
  width:100%;
  max-width:720px;
  margin:0 auto;
}

.mun-svg-logo svg{
  width:100%;
  height:auto;
  overflow:visible;
}

.mun-main,
.mun-led,
.mun-shadow{
  font-family:Impact,"Arial Black",Inter,sans-serif;
  font-size:104px;
  font-style:italic;
  font-weight:900;
  letter-spacing:-8px;
}

.mun-shadow{
  fill:#6930ff;
  opacity:.45;
  transform:translate(12px,14px);
  filter:blur(.4px);
}

.mun-main{
  fill:url(#munFill);
  stroke:#fff;
  stroke-width:9px;
  paint-order:stroke fill;
  filter:url(#logoGlow);
}

.mun-led{
  fill:transparent;
  stroke:url(#ledStroke);
  stroke-width:5px;
  stroke-linejoin:round;
  stroke-dasharray:90 760;
  animation:munLedDash 2.2s linear infinite;
  filter:drop-shadow(0 0 10px #fff) drop-shadow(0 0 18px #00d9ff);
}

@keyframes munLedDash{
  to{stroke-dashoffset:-850}
}

.top-actions{
  display:none!important;
}

@media(max-width:480px){
  .topbar{min-height:118px!important}
  .mun-main,.mun-led,.mun-shadow{font-size:96px}
}

/* =========================
   MUN CHECK ULTRA 3D LOGO
========================= */

.topbar{
position:relative!important;
overflow:hidden!important;
display:flex!important;
justify-content:center!important;
align-items:center!important;
padding:10px 0 0!important;
min-height:120px!important;

background:
radial-gradient(circle at 20% 50%, rgba(255,0,150,.18), transparent 32%),
radial-gradient(circle at 80% 50%, rgba(0,225,255,.18), transparent 32%),
transparent!important;

border:none!important;
box-shadow:none!important;
}

/* xoá mọi nền trắng */
.topbar::before,
.topbar::after{
display:none!important;
content:none!important;
}

.mun-svg-logo{
position:relative;
z-index:5;
width:100%;
display:flex;
justify-content:center;
align-items:center;
pointer-events:none;
}

.mun-svg-logo svg{
width:min(96%,760px);
height:auto;
overflow:visible;
}

/* text chung */
.mun-main,
.mun-led,
.mun-shadow,
.mun-depth1,
.mun-depth2,
.mun-depth3{
font-family:
Impact,
"Arial Black",
Inter,
sans-serif;

font-style:italic;
font-weight:1000;
font-size:112px;

letter-spacing:-8px;
text-transform:uppercase;
}

/* tầng chiều sâu */
.mun-depth3{
fill:#3d00ff;
opacity:.28;
transform:translate(26px,26px);
filter:blur(1.8px);
}

.mun-depth2{
fill:#005dff;
opacity:.34;
transform:translate(18px,18px);
}

.mun-depth1{
fill:#ff008c;
opacity:.38;
transform:translate(10px,10px);
}

/* shadow mềm */
.mun-shadow{
fill:#000;
opacity:.10;
transform:translate(0,24px) scaleY(.88);
filter:blur(10px);
}

/* chữ chính */
.mun-main{
fill:url(#munFill);

stroke:#ffffff;
stroke-width:7px;

paint-order:stroke fill;

filter:
drop-shadow(0 4px 0 rgba(255,255,255,.75))
drop-shadow(0 10px 0 rgba(255,0,140,.30))
drop-shadow(0 16px 0 rgba(120,70,255,.26))
drop-shadow(0 22px 30px rgba(255,0,150,.34))
drop-shadow(0 28px 40px rgba(0,210,255,.30));
}

/* viền led neon chạy */
.mun-led{
fill:transparent;

stroke:url(#ledStroke);
stroke-width:5px;

stroke-linejoin:round;
stroke-linecap:round;

stroke-dasharray:140 900;

animation:
munLedRun 2s linear infinite,
munPulse 2.8s ease-in-out infinite;

filter:
drop-shadow(0 0 8px rgba(255,255,255,.95))
drop-shadow(0 0 18px rgba(255,0,140,.90))
drop-shadow(0 0 26px rgba(0,210,255,.85))
drop-shadow(0 0 40px rgba(255,255,255,.60));
}

/* dải led chạy */
@keyframes munLedRun{
to{
stroke-dashoffset:-1040;
}
}

/* nhịp neon */
@keyframes munPulse{
0%,100%{
opacity:1;
transform:translateY(0px);
}
50%{
opacity:.92;
transform:translateY(-2px);
}
}

/* subtitle */
.hero-sub{
margin-top:6px!important;

font-size:15px!important;
font-weight:900!important;
letter-spacing:.18em!important;
text-transform:uppercase!important;

background:linear-gradient(
90deg,
#ff2c93,
#9f52ff,
#00d9ff
);

-webkit-background-clip:text;
background-clip:text;

color:transparent;

text-shadow:
0 0 14px rgba(255,255,255,.6);
}

/* balance giữ lại */
.top-actions{
display:flex!important;
justify-content:center!important;
margin-top:6px!important;
gap:12px!important;
}

.fee-pill{
background:rgba(255,255,255,.14)!important;
backdrop-filter:blur(12px)!important;

border:1px solid rgba(255,255,255,.18)!important;

border-radius:18px!important;

padding:12px 18px!important;

color:#fff!important;

box-shadow:
0 8px 24px rgba(255,0,140,.18);
}

#balanceText{
font-size:22px!important;
font-weight:1000!important;
color:#fff!important;
}

/* mobile */
@media(max-width:768px){

.topbar{
min-height:105px!important;
padding-top:2px!important;
}

.mun-main,
.mun-led,
.mun-shadow,
.mun-depth1,
.mun-depth2,
.mun-depth3{
font-size:86px;
letter-spacing:-6px;
}

.hero-sub{
font-size:11px!important;
margin-top:0!important;
}

#balanceText{
font-size:18px!important;
}

}


/* =========================
   ULTRA 3D MUN CHECK LOGO
========================= */

.topbar{
position:relative!important;
display:flex!important;
justify-content:center!important;
align-items:center!important;

padding:0!important;
margin-bottom:14px!important;

background:transparent!important;
border:none!important;
box-shadow:none!important;

overflow:visible!important;
min-height:120px!important;
}

.topbar::before,
.topbar::after{
display:none!important;
content:none!important;
}

.mun-ultra-logo{
position:relative;
width:100%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
pointer-events:none;
z-index:10;
}

.mun-ultra-logo svg{
width:min(98%,900px);
height:auto;
overflow:visible;
}

/* all text */
.mun-main,
.mun-led,
.mun-shadow,
.mun-depth1,
.mun-depth2,
.mun-depth3{

font-family:
Impact,
"Arial Black",
Inter,
sans-serif;

font-style:italic;
font-weight:1000;

font-size:140px;
letter-spacing:-10px;

text-transform:uppercase;
}

/* deep layers */

.mun-depth3{
fill:#2d00ff;
opacity:.24;
transform:translate(30px,30px);
filter:blur(2px);
}

.mun-depth2{
fill:#006eff;
opacity:.34;
transform:translate(20px,20px);
}

.mun-depth1{
fill:#ff008c;
opacity:.38;
transform:translate(10px,10px);
}

/* shadow */
.mun-shadow{
fill:#000;
opacity:.12;
transform:translate(0,35px) scaleY(.82);
filter:blur(12px);
}

/* main text */
.mun-main{

fill:url(#munFill);

stroke:#ffffff;
stroke-width:8px;

paint-order:stroke fill;

filter:
drop-shadow(0 4px 0 rgba(255,255,255,.85))
drop-shadow(0 10px 0 rgba(255,0,140,.35))
drop-shadow(0 16px 0 rgba(111,0,255,.32))
drop-shadow(0 22px 0 rgba(0,140,255,.24))
drop-shadow(0 26px 35px rgba(255,0,140,.42))
drop-shadow(0 32px 44px rgba(0,220,255,.34));
}

/* led running border */
.mun-led{

fill:transparent;

stroke:url(#munLed);
stroke-width:5px;

stroke-linejoin:round;
stroke-linecap:round;

stroke-dasharray:160 1200;

animation:
munLedMove 2s linear infinite,
munGlowPulse 2.6s ease-in-out infinite;

filter:
drop-shadow(0 0 8px rgba(255,255,255,.95))
drop-shadow(0 0 18px rgba(255,0,150,.95))
drop-shadow(0 0 24px rgba(0,220,255,.92))
drop-shadow(0 0 40px rgba(255,255,255,.65));
}

@keyframes munLedMove{
to{
stroke-dashoffset:-1360;
}
}

@keyframes munGlowPulse{
0%,100%{
opacity:1;
}
50%{
opacity:.86;
}
}

/* subtitle */

.mun-subtitle{

margin-top:-6px;

font-size:16px;
font-weight:900;
letter-spacing:.22em;

text-transform:uppercase;

background:linear-gradient(
90deg,
#ff2ca0,
#a855ff,
#00d9ff
);

-webkit-background-clip:text;
background-clip:text;

color:transparent;

text-shadow:
0 0 12px rgba(255,255,255,.65);
}

/* keep balance */

.top-actions{
display:flex!important;
justify-content:center!important;
gap:10px!important;

margin-top:2px!important;
}

.fee-pill{
background:rgba(255,255,255,.12)!important;

backdrop-filter:blur(12px)!important;

border:1px solid rgba(255,255,255,.18)!important;

border-radius:18px!important;

padding:10px 16px!important;

color:#fff!important;

box-shadow:
0 10px 24px rgba(255,0,140,.18);
}

#balanceText{
font-size:22px!important;
font-weight:1000!important;
color:#fff!important;
}

/* mobile */

@media(max-width:768px){

.topbar{
min-height:90px!important;
}

.mun-main,
.mun-led,
.mun-shadow,
.mun-depth1,
.mun-depth2,
.mun-depth3{
font-size:102px;
letter-spacing:-7px;
}

.mun-subtitle{
font-size:11px;
margin-top:-12px;
}

#balanceText{
font-size:18px!important;
}

}


/* ===== REAL MUN CHECK IMAGE LOGO FIX ===== */
.topbar{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  min-height:92px!important;
  padding:0 12px 4px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  overflow:visible!important;
}

.topbar::before,
.topbar::after{
  display:none!important;
  content:none!important;
}

.mun-real-logo-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

.mun-real-logo{
  width:min(92vw,520px);
  height:92px;
  object-fit:cover;
  object-position:center;
  mix-blend-mode:multiply;
  filter:
    drop-shadow(0 8px 16px rgba(255,40,160,.22))
    drop-shadow(0 10px 22px rgba(0,180,255,.18));
}

.topbar h1,
.topbar p,
.mun-ultra-logo,
.mun-svg-logo,
.hero-brand,
.hero-sub,
.mun-subtitle{
  display:none!important;
}

.top-actions{
  display:none!important;
}

@media(max-width:480px){
  .topbar{
    min-height:76px!important;
  }

  .mun-real-logo{
    width:96vw;
    height:76px;
  }
}

/* ===== IMAGE LOGO + LED EFFECT ===== */
.mun-real-logo-wrap{
  position:relative;
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:visible;
}

.mun-real-logo{
  position:relative;
  z-index:2;
  width:min(92vw,560px);
  height:90px;
  object-fit:cover;
  object-position:center;
  mix-blend-mode:multiply;
  filter:
    drop-shadow(0 8px 16px rgba(255,40,160,.25))
    drop-shadow(0 12px 24px rgba(0,190,255,.22));
  animation:logoPulse 3s ease-in-out infinite;
}

.mun-real-logo-wrap::before{
  content:"";
  position:absolute;
  z-index:3;
  width:38%;
  height:130%;
  left:-45%;
  top:-15%;
  background:linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,.15) 35%,
    rgba(255,255,255,.95) 48%,
    rgba(0,230,255,.85) 52%,
    rgba(255,45,170,.85) 56%,
    transparent 72%
  );
  filter:blur(4px);
  transform:skewX(-18deg);
  animation:logoLedSweep 2.4s linear infinite;
  pointer-events:none;
  mix-blend-mode:screen;
}

.mun-real-logo-wrap::after{
  content:"";
  position:absolute;
  inset:8px 6%;
  z-index:1;
  border-radius:999px;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,0,160,.30), transparent 36%),
    radial-gradient(circle at 70% 50%, rgba(0,210,255,.30), transparent 36%);
  filter:blur(18px);
  opacity:.85;
  animation:logoGlow 3s ease-in-out infinite;
}

@keyframes logoLedSweep{
  from{left:-45%}
  to{left:110%}
}

@keyframes logoPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.018)}
}

@keyframes logoGlow{
  0%,100%{opacity:.55;transform:scale(.96)}
  50%{opacity:.95;transform:scale(1.04)}
}

@media(max-width:480px){
  .mun-real-logo{
    height:74px;
    width:96vw;
  }
}


/* ===== CLEAN HEADER RESET ===== */
.topbar{
  display:grid!important;
  grid-template-columns:1fr!important;
  min-height:auto!important;
  padding:20px!important;
  margin-bottom:16px!important;
  border-radius:30px!important;
  background:linear-gradient(135deg,#ff3fa4,#b85cff)!important;
  box-shadow:0 20px 55px rgba(255,63,164,.22)!important;
}

.mun-real-logo-wrap,
.mun-ultra-logo,
.mun-svg-logo,
.hero-brand,
.led-logo,
.mun-check-text-logo{
  display:none!important;
}

.topbar h1{
  display:block!important;
  color:white!important;
  font-size:30px!important;
  font-weight:1000!important;
  letter-spacing:-.05em!important;
  margin:0!important;
}

.topbar p{
  display:block!important;
  color:rgba(255,255,255,.82)!important;
  font-weight:850!important;
  margin:6px 0 0!important;
}

.top-actions{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  margin-top:18px!important;
}

.fee-pill{
  display:block!important;
  background:rgba(255,255,255,.22)!important;
  color:white!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:20px!important;
  padding:14px 16px!important;
}

#balanceText{
  color:white!important;
  font-size:24px!important;
  font-weight:1000!important;
}

.theme-top-btn{
  display:block!important;
}

/* =========================
   MUN CHECK ULTRA 3D LOGO
========================= */

.topbar{
  position:relative;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
  border:none!important;
  padding-top:18px!important;
  padding-bottom:12px!important;
}

.mun-logo-wrap{
  position:relative;
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:6px 0 14px;
  overflow:visible;
}

.mun-logo{
  position:relative;
  font-size:72px;
  font-weight:1000;
  letter-spacing:-4px;
  line-height:1;
  text-transform:uppercase;

  background:
    linear-gradient(
      90deg,
      #ff4db8 0%,
      #ff7de3 18%,
      #d85bff 38%,
      #8d63ff 55%,
      #58c7ff 78%,
      #7af5ff 100%
    );

  background-size:300% auto;

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  animation:
    munGradientMove 6s linear infinite,
    munFloat 3s ease-in-out infinite;

  filter:
    drop-shadow(0 3px 0 rgba(255,255,255,.65))
    drop-shadow(0 8px 0 rgba(215,120,255,.35))
    drop-shadow(0 14px 18px rgba(255,0,170,.22))
    drop-shadow(0 0 22px rgba(0,200,255,.45));

  transform-style:preserve-3d;
}

.mun-logo::before{
  content:attr(data-text);

  position:absolute;
  inset:0;

  z-index:-1;

  background:
    linear-gradient(
      90deg,
      #ff2ca0,
      #b54dff,
      #4dcfff
    );

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  transform:
    translate(6px,10px)
    skewX(-8deg);

  opacity:.55;

  filter:blur(.4px);
}

.mun-logo::after{
  content:"";

  position:absolute;
  top:-20%;
  left:-35%;

  width:34%;
  height:160%;

  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255,255,255,.05) 20%,
      rgba(255,255,255,.95) 48%,
      rgba(0,255,255,.9) 54%,
      rgba(255,0,200,.85) 60%,
      transparent 100%
    );

  transform:skewX(-18deg);

  filter:blur(6px);

  animation:munLed 2.6s linear infinite;

  mix-blend-mode:screen;
}

.mun-logo-wrap::before{
  content:"";

  position:absolute;

  width:80%;
  height:120px;

  background:
    radial-gradient(circle at 20% 50%, rgba(255,0,170,.35), transparent 45%),
    radial-gradient(circle at 80% 50%, rgba(0,210,255,.35), transparent 45%);

  filter:blur(30px);

  opacity:.85;

  z-index:-2;
}

@keyframes munGradientMove{
  0%{
    background-position:0% center;
  }
  100%{
    background-position:300% center;
  }
}

@keyframes munLed{
  0%{
    left:-35%;
  }
  100%{
    left:130%;
  }
}

@keyframes munFloat{
  0%,100%{
    transform:translateY(0px);
  }
  50%{
    transform:translateY(-4px);
  }
}

.topbar h1,
.topbar p{
  display:none!important;
}

@media(max-width:768px){

  .mun-logo{
    font-size:58px;
    letter-spacing:-3px;
  }

}

@media(max-width:480px){

  .mun-logo{
    font-size:46px;
    letter-spacing:-2px;
  }

}


/* ===== Greeting + balance row ===== */
.user-balance-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.user-greeting-box {
  min-width: 0;
  padding: 13px 15px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,160,215,.65);
  box-shadow: 0 16px 38px rgba(255,63,164,.14);
  backdrop-filter: blur(14px);
}

.hello-text {
  font-size: 12px;
  font-weight: 800;
  color: #d9469c;
}

.hello-name {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 1000;
  color: #1d1933;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hello-role {
  margin-top: 5px;
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg,#ff3fa4,#b85cff);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.user-balance-row .top-actions {
  margin-top: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.user-balance-row .fee-pill {
  background: linear-gradient(135deg,#20162b,#4c1d95) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(76,29,149,.22) !important;
}

.user-balance-row .fee-pill b,
.user-balance-row #balanceText {
  color: #ffe66d !important;
  text-shadow: 0 2px 12px rgba(255,230,109,.28);
}

@media(max-width:480px){
  .user-balance-row {
    grid-template-columns: 1fr;
  }

  .user-balance-row .top-actions {
    justify-content: stretch;
  }

  .user-balance-row .fee-pill {
    width: 100%;
  }
}

/* ===== COMPACT GLOBAL UI FIX - DO NOT TOUCH QR MUN LOGO CONTENT ===== */

/* logo QR MUN: nhỏ lại, rộng hơn, căn giữa */
.mun-logo-wrap,
.mun-ultra-logo,
.mun-svg-logo {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 8px !important;
  padding: 0 !important;
}

.mun-logo,
.mun-main,
.mun-led,
.mun-shadow,
.mun-depth1,
.mun-depth2,
.mun-depth3 {
  transform-origin: center !important;
}

.mun-logo {
  font-size: 42px !important;
  letter-spacing: -1.8px !important;
}

.mun-ultra-logo svg,
.mun-svg-logo svg {
  width: min(82vw, 430px) !important;
  max-height: 82px !important;
}

/* header gọn lại */
.topbar {
  padding: 12px 14px 8px !important;
  min-height: auto !important;
  margin-bottom: 8px !important;
}

/* gom lời chào + số dư thành 1 card */
.user-balance-row {
  width: calc(100% - 28px) !important;
  margin: 8px auto 12px !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 12px !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(255,180,225,.72) !important;
  box-shadow: 0 14px 35px rgba(255,63,164,.14) !important;
  backdrop-filter: blur(16px) !important;
}

.user-greeting-box {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
}

.hello-text {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #ec4899 !important;
  line-height: 1 !important;
}

.hello-name {
  margin-top: 3px !important;
  font-size: 17px !important;
  line-height: 1.05 !important;
  font-weight: 1000 !important;
  color: #19172d !important;
  max-width: 190px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.hello-role {
  margin-top: 5px !important;
  padding: 3px 9px !important;
  font-size: 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg,#ff3fa4,#b85cff) !important;
  color: white !important;
  font-weight: 950 !important;
}

/* số dư nằm cùng layout, màu rõ */
.user-balance-row .top-actions {
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
}

.user-balance-row .theme-top-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 15px !important;
  font-size: 17px !important;
  background: rgba(255,255,255,.75) !important;
  border: 1px solid rgba(255,180,225,.65) !important;
  color: #ec4899 !important;
  flex: 0 0 auto !important;
}

.user-balance-row .fee-pill {
  min-width: 142px !important;
  padding: 9px 12px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg,#211633,#5126a3) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  box-shadow: 0 12px 26px rgba(81,38,163,.20) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.user-balance-row #balanceText {
  color: #ffe66d !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
  text-shadow: 0 2px 12px rgba(255,230,109,.22) !important;
}

/* toàn app compact hơn */
.shell {
  padding-left: 10px !important;
  padding-right: 10px !important;
  padding-bottom: 86px !important;
}

.card,
.preview-card {
  border-radius: 24px !important;
  padding: 14px !important;
  margin-bottom: 12px !important;
}

.card h2 {
  font-size: 21px !important;
  margin-bottom: 12px !important;
}

.bank-select-btn {
  min-height: 56px !important;
  border-radius: 20px !important;
  padding: 10px 12px !important;
}

.bank-logo,
.bank-logo-empty {
  width: 36px !important;
  height: 36px !important;
  border-radius: 14px !important;
}

label {
  font-size: 13px !important;
  margin-bottom: 6px !important;
}

input {
  min-height: 52px !important;
  border-radius: 18px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
}

.form-grid {
  gap: 10px !important;
  margin-top: 10px !important;
}

.primary-btn {
  min-height: 54px !important;
  border-radius: 19px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  margin-top: 12px !important;
}

.amount-grid,
.theme-grid {
  gap: 8px !important;
}

.amount-btn,
.theme-btn,
.bank-btn {
  min-height: 46px !important;
  border-radius: 17px !important;
  padding: 10px 8px !important;
}

/* danh sách / admin / lịch sử gọn */
.history-item {
  border-radius: 19px !important;
  padding: 12px !important;
}

.history-item b {
  font-size: 14px !important;
}

.history-item span {
  font-size: 12px !important;
}

.section-title {
  gap: 8px !important;
}

.mini-btn,
.secondary-btn {
  border-radius: 16px !important;
  padding: 10px 12px !important;
}

/* bottom nav gọn đẹp */
.sidebar {
  height: 66px !important;
  width: min(94vw, 500px) !important;
  padding: 7px !important;
  border-radius: 26px !important;
  bottom: 12px !important;
}

.side-btn {
  height: 52px !important;
  border-radius: 19px !important;
  font-size: 20px !important;
}

.side-btn::after {
  font-size: 10px !important;
}

/* modal compact */
.modal-card {
  border-radius: 28px !important;
  padding: 14px !important;
}

.modal-title {
  font-size: 18px !important;
}

.modal-x {
  width: 40px !important;
  height: 40px !important;
  border-radius: 15px !important;
}

/* mobile nhỏ */
@media(max-width:480px) {
  .mun-logo {
    font-size: 36px !important;
  }

  .mun-ultra-logo svg,
  .mun-svg-logo svg {
    width: 88vw !important;
    max-height: 70px !important;
  }

  .user-balance-row {
    width: calc(100% - 20px) !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    padding: 11px !important;
  }

  .user-balance-row .top-actions {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .user-balance-row .fee-pill {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .hello-name {
    max-width: 100% !important;
  }

  .card h2 {
    font-size: 20px !important;
  }
}

/* ===== FIX GREETING + BALANCE COMPACT ===== */
.user-balance-row{
  width: calc(100% - 52px) !important;
  max-width: 520px !important;
  margin: 4px auto 14px !important;
  padding: 10px 12px !important;
  border-radius: 22px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.user-greeting-box{
  text-align: center !important;
  padding: 4px 8px 2px !important;
}

.hello-text{
  font-size: 12px !important;
  line-height: 1 !important;
}

.hello-name{
  font-size: 22px !important;
  line-height: 1.05 !important;
  max-width: 100% !important;
}

.hello-role{
  margin-top: 5px !important;
  padding: 3px 12px !important;
  font-size: 11px !important;
}

.user-balance-row .top-actions{
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  gap: 8px !important;
}

.user-balance-row .theme-top-btn{
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
}

.user-balance-row .fee-pill{
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  padding: 0 12px !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 14px !important;
}

.user-balance-row #balanceText{
  font-size: 21px !important;
}

/* giảm khoảng trống logo/header */
.topbar{
  margin-bottom: 2px !important;
  padding-bottom: 0 !important;
}

@media(max-width:480px){
  .user-balance-row{
    width: calc(100% - 58px) !important;
    padding: 9px 10px !important;
  }

  .hello-name{
    font-size: 21px !important;
  }

  .user-balance-row #balanceText{
    font-size: 20px !important;
  }
}

/* ===== FIX BOTTOM NAVBAR SIZE ===== */

.sidebar{
position:fixed !important;
left:50% !important;
transform:translateX(-50%) !important;

width:calc(100% - 26px) !important;
max-width:520px !important;

height:72px !important;

padding:8px !important;
padding-bottom:calc(8px + env(safe-area-inset-bottom)) !important;

display:grid !important;
grid-template-columns:repeat(5,1fr) !important;
gap:8px !important;

border-radius:30px !important;

background:rgba(255,255,255,.88) !important;
backdrop-filter:blur(22px) !important;

border:1px solid rgba(255,255,255,.75) !important;

box-shadow:
0 10px 35px rgba(255, 62, 181, .16),
0 2px 10px rgba(0,0,0,.05) !important;

bottom:12px !important;
z-index:9999 !important;
}

/* item */
.side-btn{
position:relative !important;

height:56px !important;
min-width:0 !important;

display:flex !important;
flex-direction:column !important;
align-items:center !important;
justify-content:center !important;
gap:2px !important;

border-radius:22px !important;

font-size:21px !important;
font-weight:800 !important;

padding:0 !important;

background:transparent !important;
color:#8d8d97 !important;

transition:.22s ease !important;
}

/* text */
.side-btn::after{
position:relative !important;

display:block !important;

margin-top:2px !important;

font-size:11px !important;
font-weight:900 !important;
line-height:1 !important;

white-space:nowrap !important;
}

/* active */
.side-btn.active{
background:
linear-gradient(
135deg,
#ff4fae 0%,
#d857ff 52%,
#9b5cff 100%
) !important;

color:#fff !important;

box-shadow:
0 8px 22px rgba(216,87,255,.35),
0 0 20px rgba(255,79,174,.28) !important;

transform:translateY(-1px) scale(1.02) !important;
}

/* icon active */
.side-btn.active span,
.side-btn.active i{
color:#fff !important;
}

/* glow hover */
.side-btn:not(.active):active{
transform:scale(.96) !important;
}

/* mobile */
@media(max-width:480px){

.sidebar{
height:70px !important;
gap:6px !important;
padding:7px !important;
}

.side-btn{
height:54px !important;
border-radius:18px !important;
font-size:20px !important;
}

.side-btn::after{
font-size:10px !important;
}

}


/* ===== BALANCED BOTTOM TAB LAYOUT ===== */
.sidebar{
  position:fixed!important;
  left:50%!important;
  bottom:12px!important;
  transform:translateX(-50%)!important;

  width:calc(100vw - 28px)!important;
  max-width:520px!important;
  min-width:0!important;

  height:74px!important;
  padding:8px!important;

  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:6px!important;

  border-radius:28px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(255,190,225,.8)!important;
  box-shadow:0 18px 42px rgba(255,63,164,.18)!important;
  backdrop-filter:blur(20px)!important;

  overflow:hidden!important;
  z-index:9999!important;
}

.side-btn{
  width:100%!important;
  min-width:0!important;
  height:58px!important;

  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;

  gap:4px!important;
  padding:0!important;
  margin:0!important;

  border:0!important;
  border-radius:20px!important;

  background:transparent!important;
  color:#8b8792!important;

  font-size:20px!important;
  line-height:1!important;
  text-align:center!important;

  white-space:nowrap!important;
  overflow:hidden!important;
}

.side-btn::after{
  content:attr(data-label)!important;
  display:block!important;
  max-width:100%!important;

  font-size:10.5px!important;
  line-height:1.05!important;
  font-weight:950!important;

  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.side-btn.active{
  background:linear-gradient(135deg,#ff42a8,#b956ff)!important;
  color:#fff!important;
  box-shadow:0 10px 26px rgba(185,86,255,.30)!important;
  transform:none!important;
}

/* Giữ icon + text nằm giữa tuyệt đối */
.side-btn > *{
  margin:0!important;
  padding:0!important;
}

/* Nếu label dài thì thu nhỏ nhẹ */
.side-btn[data-label="Lịch sử QR"]::after,
.side-btn[data-label="Người dùng"]::after{
  font-size:10px!important;
}

/* Mobile nhỏ */
@media(max-width:390px){
  .sidebar{
    width:calc(100vw - 20px)!important;
    gap:4px!important;
    padding:7px!important;
    height:70px!important;
  }

  .side-btn{
    height:54px!important;
    border-radius:18px!important;
    font-size:18px!important;
  }

  .side-btn::after{
    font-size:9.5px!important;
  }
}

/* Chừa khoảng dưới để nội dung không bị navbar che */
.shell{
  padding-bottom:100px!important;
}


/* ===== QR POPUP ACTION BAR ===== */

.qr-result-actions{
position:sticky;
bottom:0;

display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:10px;

margin-top:14px;
padding-top:12px;
padding-bottom:6px;

background:linear-gradient(
180deg,
rgba(255,255,255,0),
rgba(255,255,255,.92) 18%
);

backdrop-filter:blur(12px);

z-index:40;
}

.qr-result-actions button{
height:52px;
border:0;
border-radius:18px;

font-size:15px;
font-weight:900;

display:flex;
align-items:center;
justify-content:center;

box-shadow:0 10px 24px rgba(0,0,0,.08);

transition:.18s ease;
}

.qr-result-actions button:active{
transform:scale(.96);
}

.qr-share-btn{
background:#ffffff;
color:#ff3ea5;
border:1px solid rgba(255,62,165,.25);
}

.qr-save-btn{
background:linear-gradient(
135deg,
#ff4ca8,
#c157ff
);
color:#fff;
}

.qr-close-btn{
background:#1d1735;
color:#fff;
}

.modal-card{
padding-bottom:90px!important;
}


/* ===== FIXED FOOTER SAVE BUTTON FOR QR MODAL ===== */
.modal-card {
  padding-bottom: 88px !important;
}

.modal-body .save-hint,
.modal-body .modal-actions,
.modal-body .qr-result-actions {
  display: none !important;
}

.modal-fixed-footer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
}

.modal-fixed-save-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
  background: linear-gradient(135deg, #ff3fa4, #b85cff);
  box-shadow: 0 16px 34px rgba(255,63,164,.32);
}

.modal-fixed-save-btn:active {
  transform: scale(.97);
}

.modal-card:has(.modal-fixed-footer) .modal-body {
  padding-bottom: 8px !important;
}

.modal-card:has(.modal-fixed-footer) .modal-close-btn,
.modal-card:has(.modal-fixed-footer) .modal-footer-row {
  display: none !important;
}

/* ===== FINAL COMPACT QR POPUP ===== */
.qr-compact-modal {
  width: min(92vw, 430px) !important;
  max-height: 82vh !important;
  padding: 14px 14px 86px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

.qr-compact-modal .modal-title {
  font-size: 20px !important;
  line-height: 1.15 !important;
  padding-right: 48px !important;
  margin-bottom: 10px !important;
}

.qr-compact-modal .modal-body {
  overflow-y: auto !important;
  max-height: calc(82vh - 150px) !important;
  padding: 0 !important;
}

.qr-compact-modal .qr-compact-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 22px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.qr-fixed-save-footer {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 14px !important;
  z-index: 99 !important;
}

.qr-fixed-save-btn {
  width: 100% !important;
  height: 56px !important;
  border: 0 !important;
  border-radius: 20px !important;
  color: white !important;
  font-size: 17px !important;
  font-weight: 1000 !important;
  background: linear-gradient(135deg,#ff3fa4,#b85cff) !important;
  box-shadow: 0 14px 32px rgba(255,63,164,.32) !important;
}

.qr-compact-modal .modal-close-btn,
.qr-compact-modal .modal-footer-row,
.qr-compact-modal .modal-actions,
.qr-compact-modal .save-hint,
.qr-compact-modal .qr-result-actions {
  display: none !important;
}

/* ===== FINAL AUTO BALANCED NAV ===== */
.sidebar {
  display: grid !important;
  grid-template-columns: repeat(var(--nav-count, 3), minmax(0, 1fr)) !important;
  width: calc(100vw - 28px) !important;
  max-width: 520px !important;
  height: 72px !important;
  gap: 8px !important;
  padding: 8px !important;
  overflow: hidden !important;
}

.side-btn {
  width: 100% !important;
  min-width: 0 !important;
}

.side-btn.hidden {
  display: none !important;
}

.side-btn::after {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media(max-width:420px){
  .qr-compact-modal {
    width: calc(100vw - 28px) !important;
    max-height: 80vh !important;
  }

  .sidebar {
    width: calc(100vw - 20px) !important;
    gap: 6px !important;
  }
}
