:root{
  color-scheme: dark;

  --bg0:#05060b;
  --bg1:#070a14;

  --card: rgba(10, 16, 30, .62);
  --card2: rgba(12, 20, 36, .72);

  --border: rgba(0,229,255,.18);
  --border2: rgba(0,229,255,.28);

  --muted: rgba(231,251,255,.72);
  --muted2: rgba(231,251,255,.56);
  --text: rgba(231,251,255,.94);

  --cyan:#00e5ff;
  --cyan2:#00b8c6;

  --glow: 0 0 18px rgba(0,229,255,.28);
  --glow2: 0 0 34px rgba(0,229,255,.20);

  --danger:#ff4d6d;
  --ok:#4dffb8;
  --warn:#ffd166;

  --radius: clamp(14px, 2.2vw, 18px);
  --radius2: clamp(18px, 3vw, 24px);

  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow2: 0 18px 60px rgba(0,0,0,.60);

  --sidebarW: clamp(240px, 22vw, 300px);
  --topbarH: clamp(56px, 7vw, 68px);

  --contentW: 1200px;

  --pad: clamp(12px, 2vw, 18px);
  --pad2: clamp(14px, 2.4vw, 22px);
  --gap: clamp(10px, 1.6vw, 14px);
}

*,
*::before,
*::after{ box-sizing:border-box; }

html{
  height:100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  margin:0;
  min-height:100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(13px, 0.35vw + 12px, 16px);
  line-height: 1.45;
  color: var(--text);

  background:
    radial-gradient(900px 650px at 18% 10%, rgba(0,229,255,.12), transparent 60%),
    radial-gradient(800px 600px at 85% 18%, rgba(0,184,198,.10), transparent 55%),
    radial-gradient(900px 650px at 65% 92%, rgba(0,229,255,.07), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to right, rgba(0,229,255,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,229,255,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity:.14;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button,input,select,textarea{ font:inherit; color:inherit; }
hr{
  border:none;
  border-top:1px solid rgba(0,229,255,.12);
  margin:18px 0;
}

::selection{
  background: rgba(0,229,255,.22);
}

:focus-visible{
  outline: 2px solid rgba(0,229,255,.55);
  outline-offset: 2px;
}

.shell{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
}

.sidebar{
  width:var(--sidebarW);
  flex: 0 0 var(--sidebarW);

  position:sticky;
  top:0;

  height:100vh;
  height:100dvh;

  padding: var(--pad);
  background: linear-gradient(180deg, rgba(3,5,10,.86), rgba(6,10,18,.78));
  border-right:1px solid rgba(0,229,255,.12);
  box-shadow: var(--shadow);
  overflow:auto;
  overscroll-behavior: contain;
}

.main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
}

.topbar{
  min-height:var(--topbarH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--gap);

  padding: 10px max(var(--pad), env(safe-area-inset-left)) 10px max(var(--pad), env(safe-area-inset-right));
  position:sticky;
  top:0;
  z-index:20;

  background: linear-gradient(180deg, rgba(4,7,14,.88), rgba(7,10,18,.66));
  border-bottom:1px solid rgba(0,229,255,.12);
}

.content{
  padding: var(--pad2) max(var(--pad), env(safe-area-inset-left)) 32px max(var(--pad), env(safe-area-inset-right));
  max-width: var(--contentW);
  width:100%;
  margin:0 auto;
}

.footer{
  padding:16px var(--pad);
  color: var(--muted2);
  text-align:center;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .sidebar, .topbar, .card{
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.brandRow{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 6px 6px 14px;
}

.brandRow .brandLogo{
  width:78px;
  height:78px;
  border-radius: var(--radius);
  object-fit:contain;
  filter: drop-shadow(0 0 18px rgba(0,229,255,.22));
}

.brandRow .brandText .name{
  font-weight:900;
  letter-spacing:.45px;
  font-size:16px;
}

.brandRow .brandText .sub{
  font-size:12px;
  color: var(--muted2);
  margin-top:2px;
}

.topBrand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.topBrand .topLogo{
  width:46px;
  height:46px;
  border-radius: 14px;
  object-fit:contain;
  filter: drop-shadow(0 0 14px rgba(0,229,255,.18));
}

.pageTitle{
  font-weight:900;
  letter-spacing:.25px;
  font-size:16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding: 10px 6px;
}

.nav a{
  display:flex;
  gap:10px;
  align-items:center;

  padding:12px 12px;
  border-radius: 14px;

  border:1px solid rgba(0,229,255,.10);
  background: rgba(10,16,30,.26);
  color: rgba(231,251,255,.88);
}

@media (hover:hover){
  .nav a{
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  }
  .nav a:hover{
    transform: translateY(-1px);
    border-color: rgba(0,229,255,.22);
    box-shadow: 0 0 16px rgba(0,229,255,.12);
  }
}

.nav a.active{
  border-color: rgba(0,229,255,.34);
  box-shadow: var(--glow);
  background: rgba(0,229,255,.06);
}

.nav .hint{
  font-size:12px;
  color: rgba(231,251,255,.58);
  padding: 4px 10px 0;
}

.card{
  background: var(--card);
  border:1px solid rgba(0,229,255,.14);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.card.soft{
  background: var(--card2);
}

.card .hd{
  padding:16px 16px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.card .hd h3{
  margin:0;
  font-size:15px;
  font-weight:900;
}

.card .bd{ padding:14px 16px 16px; }
.card .ft{ padding:0 16px 16px; }

.grid{
  display:grid;
  gap: var(--gap);
}

.grid.two{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px){
  .grid.three{ grid-template-columns:1fr; }
  .grid.two{ grid-template-columns:1fr; }
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.row.end{ justify-content:flex-end; }

.muted{ color: rgba(231,251,255,.62); }
.small{ font-size:12px; }

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  padding:10px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,.06);
  color: rgba(231,251,255,.94);
  border:1px solid rgba(0,229,255,.14);

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover:hover){
  .btn{
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  }
  .btn:hover{
    transform: translateY(-1px);
    border-color: rgba(0,229,255,.28);
    box-shadow: 0 0 18px rgba(0,229,255,.14);
  }
}

.btn:active{ transform: translateY(0px) scale(.99); }

.btn.primary{
  background: linear-gradient(180deg, rgba(0,229,255,.16), rgba(0,184,198,.08));
  border-color: rgba(0,229,255,.30);
  box-shadow: var(--glow2);
}

.btn.danger{
  border-color: rgba(255,77,109,.35);
  background: rgba(255,77,109,.10);
}

.btn.ok{
  border-color: rgba(77,255,184,.35);
  background: rgba(77,255,184,.10);
}

.btn.ghost{
  background: transparent;
}

.btn.block{ width:100%; }

.form{
  display:grid;
  gap:10px;
}

.field{
  display:grid;
  gap:6px;
}

.label{
  font-size:12px;
  color: rgba(231,251,255,.72);
}

.input, .select, .textarea{
  width:100%;
  padding:11px 12px;
  border-radius: 14px;

  border:1px solid rgba(0,229,255,.16);
  background: rgba(8,12,22,.55);
  color: rgba(231,251,255,.94);

  outline:none;
}

.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 0 0 3px rgba(0,229,255,.12);
}

.tableWrap{
  width:100%;
  overflow:auto;
  border-radius: 16px;
  border:1px solid rgba(0,229,255,.14);
  background: rgba(8,12,22,.22);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width: 640px;
  background: transparent;
}

th,td{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,229,255,.10);
  text-align:left;
  vertical-align:top;
  font-size:13px;
}

th{
  position:sticky;
  top:0;
  background: rgba(6,10,18,.88);
  color: rgba(231,251,255,.82);
  font-weight:800;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius: 999px;
  border:1px solid rgba(0,229,255,.18);
  background: rgba(0,229,255,.06);
  font-size:12px;
}

.badge.danger{ border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.10); }
.badge.ok{ border-color: rgba(77,255,184,.35); background: rgba(77,255,184,.10); }
.badge.warn{ border-color: rgba(255,209,102,.35); background: rgba(255,209,102,.10); }

.userCard{
  display:flex;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius: var(--radius);
  border:1px solid rgba(0,229,255,.14);
  background: rgba(0,229,255,.06);
  box-shadow: 0 0 16px rgba(0,229,255,.10);
  margin: 8px 6px 0;
}

.userCard .avt{
  width:44px;
  height:44px;
  border-radius:16px;
  border:1px solid rgba(0,229,255,.20);
  background: rgba(255,255,255,.06);
  object-fit:cover;
}

.userCard .meta{ min-width:0; }
.userCard .meta .u{
  font-weight:900;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.userCard .meta .id{
  font-size:12px;
  color: rgba(231,251,255,.65);
}

.balanceCard{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(0,229,255,.20);
  background: rgba(0,229,255,.06);
  box-shadow: 0 0 16px rgba(0,229,255,.10);
  min-width: 210px;
}

.balanceCard .k{ font-size:12px; color: rgba(231,251,255,.70); }
.balanceCard .v{ font-weight:950; letter-spacing:.2px; }

.menuBtn{
  width:44px;
  height:44px;
  padding:0;
  border-radius: 14px;
  display:none;
  align-items:center;
  justify-content:center;
}

@media (max-width: 980px){
  .menuBtn{ display:inline-flex; }
}

html.sidebar-hidden .menuBtn{ display:inline-flex; }

html.no-sidebar .menuBtn{ display:none !important; }

.sidebarBackdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index:40;
  display:none;
}
.sidebarBackdrop.show{ display:block; }

@media (max-width: 980px){
  .sidebar{
    position:fixed;
    left:0;
    top:0;
    height:100vh;
    height:100dvh;
    z-index:50;

    transform: translate3d(-105%, 0, 0);
    transition: transform .20s ease;
    will-change: transform;

    box-shadow: var(--shadow2);
  }
  .sidebar.open{ transform: translate3d(0,0,0); }
}

.popupOverlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  z-index:100;
  padding:16px;
}
.popupOverlay.show{ display:flex; }

.popup{
  width:min(520px, 100%);
  border-radius: 22px;
  border:1px solid rgba(0,229,255,.20);
  background: linear-gradient(180deg, rgba(8,12,22,.92), rgba(6,10,18,.86));
  box-shadow: var(--shadow2), 0 0 24px rgba(0,229,255,.12);
}
.popup .ph{ padding:16px 16px 0; }
.popup .pt{ margin:0; font-size:16px; font-weight:950; }
.popup .pb{ padding:12px 16px 2px; color: rgba(231,251,255,.82); line-height:1.45; }
.popup .pf{ padding:14px 16px 16px; display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  padding:3px 8px;
  border-radius: 10px;
  border:1px solid rgba(0,229,255,.18);
  background: rgba(0,229,255,.06);
}

.heroTitle{
  font-size:22px;
  margin:0 0 6px;
  font-weight:950;
  letter-spacing:.2px;
}
.heroDesc{
  margin:0;
  color: rgba(231,251,255,.70);
  line-height:1.5;
}

.sectionTitleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 14px;
  margin-bottom: 10px;
}
.sectionTitleRow .t{
  margin:0;
  font-size:15px;
  font-weight:950;
  letter-spacing:.2px;
}

.contactGrid{
  display:grid;
  gap: var(--gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .contactGrid{ grid-template-columns: 1fr; }
}

.contactCard .bd{ line-height:1.55; }

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

.avatarBadge{
  width:44px;
  height:44px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  border:1px solid rgba(0,229,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 16px rgba(0,229,255,.10);
  flex: 0 0 auto;
}

.contactName{
  font-weight: 950;
  margin:0;
  font-size:14px;
  line-height:1.2;
}

.contactRole{
  margin-top:3px;
  font-size:12px;
  color: rgba(231,251,255,.72);
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.roleTag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius: 999px;
  border:1px solid rgba(0,229,255,.18);
  background: rgba(0,229,255,.06);
  font-size:12px;
  font-weight:900;
}

.role-owner{
  border-color: rgba(255,209,102,.40);
  background: rgba(255,209,102,.10);
  box-shadow: 0 0 18px rgba(255,209,102,.10);
}

.role-support{
  border-color: rgba(77,255,184,.35);
  background: rgba(77,255,184,.10);
  box-shadow: 0 0 18px rgba(77,255,184,.10);
}

.contactActions{
  margin-top: 12px;
  display:grid;
  gap:10px;
}

.btnIcon{
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-content:center;
}
.btnIcon .i{ font-size:16px; line-height:1; }

.btnFb{
  border-color: rgba(0,229,255,.20);
  background: linear-gradient(180deg, rgba(0,229,255,.10), rgba(0,184,198,.05));
}

.btnZalo{
  border-color: rgba(77,255,184,.25);
  background: linear-gradient(180deg, rgba(77,255,184,.10), rgba(0,184,198,.04));
}

.captchaImgWrap{
  display:flex;
  justify-content:center;
  align-items:center;
}
#captchaImg{
  width: min(360px, 100%);
  height:auto;
}

@media (max-width: 420px){
  body::before{
    opacity:.10;
    background-size: 96px 96px;
  }

  .topbar{
    padding: 10px 12px;
  }

  .content{
    padding: 14px 12px 24px;
  }

  .btn{
    padding: 9px 12px;
    border-radius: 12px;
  }

  .input, .select, .textarea{
    padding:10px 11px;
    border-radius: 12px;
  }

  .brandRow .brandLogo{
    width:64px; height:64px;
    border-radius:16px;
  }

  .topBrand .topLogo{
    width:40px; height:40px;
    border-radius:12px;
  }

  .sidebar, .topbar, .card{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 320px){
  .pageTitle{ font-size:14px; }
  .balanceCard{ min-width: 0; }
  table{ min-width: 520px; }
}

@media (max-width: 260px){
  .topBrand .topLogo{ display:none; }
  .pageTitle{ max-width: 150px; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .btn, .nav a{ transition:none !important; }
  body::before{ display:none; }
}