:root {
  color-scheme: dark;
  --bg: #0a0d16;
  --sidebar: #101420;
  --card: #131825;
  --card2: #171d2d;
  --border: #262c3d;
  --muted: #8c96ae;
  --text: #eff2fc;
  --indigo: #8879ff;
  --light: #bdb5ff;
  --green: #49d2a0;
  --red: #ff778c;
  --amber: #ffca74;
  --blue: #7daffe;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--light);
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 30px 18px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(140deg, #9f86ff, #6355ef);
  font-size: 23px;
  box-shadow: 0 5px 24px #624bde55;
}
.brand strong {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.brand strong span {
  color: #a69bff;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.15px;
  color: #9297ad;
}
.side-label {
  margin: 57px 14px 16px;
  font-size: 10px;
  color: #65708b;
  letter-spacing: 1.8px;
  font-weight: 800;
}
.navigation {
  display: grid;
  gap: 5px;
}
.nav-item {
  background: transparent;
  color: #9199b0;
  border: 0;
  border-radius: 10px;
  text-align: left;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}
.nav-item span {
  font-size: 20px;
  width: 20px;
  text-align: center;
}
.nav-item:hover {
  background: #1d2333;
  color: white;
}
.nav-item.active {
  background: #2a264d;
  color: #b9afff;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 13px;
  border-top: 1px solid var(--border);
  color: #77829b;
  font-size: 11px;
}
.server-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #c7ccdc;
}
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52dbb0;
  box-shadow: 0 0 0 4px #52dbb017;
}
.sidebar-bottom p {
  margin: 13px 0;
}
.sidebar-version {
  color: #5e6981;
}
.main {
  min-width: 0;
  padding: 34px clamp(20px, 3.1vw, 55px) 20px;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.breadcrumb {
  color: #79839b;
  font-size: 12px;
  margin-bottom: 9px;
}
.breadcrumb span {
  padding: 0 8px;
  color: #48536b;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.9px;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  margin: 5px 0 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}
.date-pill {
  border: 1px solid var(--border);
  background: #141a29;
  padding: 10px 13px;
  border-radius: 9px;
  color: #9da7bd;
  font-size: 12px;
}
.btn {
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn-primary {
  background: #8171f5;
  color: white;
  box-shadow: 0 5px 18px #5748d22f;
}
.btn-primary:hover {
  background: #9587ff;
}
.btn-outline {
  background: #1a2030;
  color: #d4daeb;
  border-color: #343c51;
}
.btn-outline:hover {
  background: #272e42;
}
.btn.small {
  padding: 9px 13px;
}
.notice {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
}
.notice.warning {
  border: 1px solid #67502b;
  background: #332818;
  color: #ffdc9d;
}
.notice.danger {
  border: 1px solid #713e4e;
  background: #35202a;
  color: #ffbac5;
}
.intro {
  background: linear-gradient(111deg, #282149, #302968 53%, #211f44);
  border: 1px solid #52477d;
  border-radius: 18px;
  min-height: 232px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  margin-bottom: 23px;
}
.intro-copy {
  padding: 30px 38px;
  max-width: 530px;
  position: relative;
  z-index: 2;
}
.eyebrow,
.section-overline {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: #a6a0e9;
  margin-bottom: 12px;
}
.intro h2 {
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.18;
  letter-spacing: -1.15px;
  margin-bottom: 11px;
}
.intro h2 em {
  font-style: normal;
  color: #bdb2ff;
}
.intro p {
  color: #bbb7db;
  max-width: 450px;
  font-size: 13px;
  margin-bottom: 19px;
}
.intro-art {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  background: #a787ff18;
  border: 1px solid #bbaaff22;
}
.orb-one {
  width: 320px;
  height: 320px;
  top: -90px;
  right: 40px;
}
.orb-two {
  width: 235px;
  height: 235px;
  top: 5px;
  right: 84px;
}
.mail-art {
  position: absolute;
  right: 105px;
  top: 47px;
  width: 200px;
  height: 145px;
  background: linear-gradient(150deg, #d0cafd, #aea4f6);
  border-radius: 17px;
  box-shadow: 0 18px 50px #1810376d;
  transform: rotate(-8deg);
  padding: 19px;
}
.mail-art-icon {
  color: #5645bc;
  font-size: 29px;
}
.mail-art-lines {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}
.mail-art-lines i {
  height: 8px;
  border-radius: 8px;
  background: #8c7dd277;
  width: 87%;
}
.mail-art-lines i:nth-child(2) {
  width: 68%;
}
.mail-art-lines i:nth-child(3) {
  width: 48%;
}
.mail-art-code {
  position: absolute;
  bottom: -18px;
  right: -11px;
  background: #5849bb;
  border: 2px solid #9588ef;
  border-radius: 9px;
  padding: 12px;
  color: #fff;
  letter-spacing: 2px;
  font-size: 12px;
}
.float-chip {
  position: absolute;
  background: #fff;
  color: #443889;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 25px #15123450;
  z-index: 2;
}
.chip-one {
  top: 35px;
  right: 14px;
  transform: rotate(7deg);
}
.chip-two {
  bottom: 33px;
  right: 290px;
  transform: rotate(-6deg);
}
.statistics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 23px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 18px 17px;
  min-width: 0;
}
.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: #9da7bc;
  font-size: 11.5px;
  font-weight: 600;
}
.stat-icon {
  height: 28px;
  width: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.stat-icon.blue {
  background: #294365;
  color: #85b5ff;
}
.stat-icon.orange {
  background: #594025;
  color: var(--amber);
}
.stat-icon.green {
  background: #254f45;
  color: #77e3b5;
}
.stat-icon.red {
  background: #592f40;
  color: #ff8294;
}
.stat-icon.purple {
  background: #3d3867;
  color: #ad9dfd;
}
.stat strong {
  display: block;
  font-size: 26px;
  letter-spacing: -1px;
  margin: 13px 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat small {
  color: #78849e;
  font-size: 10.5px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-bottom: 23px;
  overflow: hidden;
  scroll-margin-top: 20px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 25px 18px;
}
.panel-heading h3 {
  font-size: 18px;
  letter-spacing: -0.45px;
  margin: 0 0 3px;
}
.panel-heading p {
  font-size: 12px;
  color: #8893aa;
  margin: 0;
}
.section-overline {
  margin-bottom: 7px;
  color: #998af2;
  font-size: 9px;
}
.panel-heading-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: #2b2853;
  color: #b6a8ff;
  border-radius: 12px;
  font-size: 22px;
}
.buy-form {
  padding: 7px 25px 25px;
  display: grid;
  grid-template-columns: 1.1fr 1.05fr 0.8fr 1.2fr;
  gap: 15px;
}
.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #b8c1d5;
  font-weight: 650;
  font-size: 12px;
}
.field b {
  color: #ff8e9e;
}
.field input,
.field select,
.filter-select,
.search-box {
  width: 100%;
  height: 43px;
  background: #0f1420;
  color: #edf1fa;
  border: 1px solid #30384b;
  border-radius: 9px;
  padding: 0 12px;
  outline: none;
}
.field input:focus,
.field select:focus,
.filter-select:focus,
.search-box:focus-within {
  border-color: #9182ff;
  box-shadow: 0 0 0 3px #9182ff18;
}
.field small {
  color: #77849b;
  font-size: 10px;
  font-weight: 400;
}
.form-submit {
  grid-column: 1/-1;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.form-submit span {
  font-size: 11px;
  color: #7c889f;
}
.purchase-feedback {
  margin: 0 25px 25px;
  background: #1c2c2b;
  border: 1px solid #366458;
  color: #86dfbf;
  padding: 13px;
  border-radius: 9px;
  font-size: 12px;
}
.table-heading {
  align-items: flex-end;
}
.table-actions {
  display: flex;
  gap: 8px;
}
.count {
  background: #302c53;
  border-radius: 6px;
  color: #aaa0ff;
  font-size: 11px;
  padding: 4px 7px;
  vertical-align: middle;
  margin-left: 4px;
}
.filterbar {
  display: flex;
  gap: 10px;
  padding: 0 25px 18px;
  align-items: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 150px;
  max-width: 430px;
}
.search-box span {
  font-size: 23px;
  color: #7f8ba2;
}
.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: white;
  min-width: 0;
  font-size: 12px;
}
.filter-select {
  max-width: 195px;
  font-size: 12px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 940px;
}
th {
  background: #171c2a;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 16px;
  color: #8996ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}
th:first-child,
td:first-child {
  padding-left: 25px;
}
td {
  border-bottom: 1px solid #232a39;
  padding: 15px 16px;
  font-size: 12px;
  color: #cad2e5;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
.row-index {
  color: #7e8ca9;
  font-size: 11px;
}
.raw-cell {
  max-width: 275px;
}
.raw-email {
  display: block;
  color: #f5f6ff;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 75px;
  overflow: auto;
  font-size: 12px;
}
.sub-id {
  display: block;
  margin-top: 4px;
  color: #707e99;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.parsed-email {
  color: #a5c3ff;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.status-pill {
  border-radius: 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 800;
}
.status-pill.waiting {
  color: #f4c87b;
  background: #423524;
}
.status-pill.completed {
  color: #65dbb0;
  background: #20463d;
}
.status-pill.cancelled {
  color: #ef8fa3;
  background: #4c2d3a;
}
.status-pill.other {
  color: #b3bce1;
  background: #2b334a;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.otp-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}
.otp-code {
  color: #c1f2de;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  max-width: 150px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.otp-empty {
  color: #758199;
}
.tiny-action {
  border: 1px solid #454562;
  color: #bcb3ff;
  background: #292744;
  border-radius: 6px;
  padding: 5px 7px;
}
.tiny-action:hover {
  background: #403768;
}
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.action {
  border: 1px solid #363e51;
  background: #202738;
  border-radius: 7px;
  color: #c6d1e6;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 700;
}
.action:hover {
  background: #30394f;
}
.action.read {
  background: #302c60;
  border-color: #524a91;
  color: #c4b8ff;
}
.action.danger {
  color: #fa9bab;
}
.action:disabled {
  opacity: 0.38;
}
.empty-cell {
  text-align: center;
  padding: 40px;
  color: #7f8ba0;
}
.table-footer {
  padding: 14px 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #707f98;
  font-size: 10.5px;
  border-top: 1px solid var(--border);
}
.table-footer code {
  color: #ada6d5;
}
.purchase-panel th {
  padding-top: 13px;
}
.purchase-panel .table-scroll {
  padding-bottom: 4px;
}
.mini-error {
  display: block;
  color: #ffb4ba;
  font-size: 10px;
  margin-top: 4px;
  max-width: 240px;
}
.retry-btn {
  color: #b5acff;
  border-color: #625a9d;
}
footer {
  padding: 10px 0 24px;
  color: #637089;
  font-size: 11px;
  text-align: center;
}
.detail-modal {
  border: 1px solid #42465d;
  border-radius: 15px;
  max-width: 610px;
  width: calc(100% - 28px);
  padding: 0;
  color: var(--text);
  background: #171c2b;
  box-shadow: 0 25px 90px #0008;
}
.detail-modal::backdrop {
  background: #050713c9;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px;
  border-bottom: 1px solid var(--border);
}
.dialog-top small {
  color: #9286eb;
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 800;
}
.dialog-top h3 {
  margin: 7px 0 0;
  font-size: 19px;
}
.icon-button {
  color: #c7cddd;
  background: #252b3c;
  border: 1px solid #414a61;
  border-radius: 8px;
  padding: 7px 10px;
}
.details-inner {
  padding: 23px 25px 25px;
}
.detail-label {
  font-size: 11px;
  color: #8d99b2;
  margin: 0 0 6px;
}
.detail-raw {
  padding: 13px;
  background: #0d1420;
  border: 1px solid #313a50;
  border-radius: 8px;
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 20px;
  color: #cbd2e5;
  font:
    12px ui-monospace,
    monospace;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 21px;
}
.detail-item {
  padding: 11px;
  border: 1px solid #30384a;
  border-radius: 8px;
  background: #111726;
}
.detail-item span {
  display: block;
  font-size: 10px;
  color: #79869d;
  margin-bottom: 4px;
}
.detail-item strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-otp-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.detail-otp-heading strong {
  font-size: 14px;
}
.otp-history {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
}
.otp-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101725;
  border: 1px solid #30384b;
  border-radius: 9px;
  padding: 10px 12px;
  gap: 12px;
}
.otp-history-row code {
  color: #91e8bf;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.otp-history-row time {
  font-size: 10px;
  color: #7787a0;
}
.no-otp {
  color: #8b95ab;
  font-size: 12px;
  padding: 16px;
  text-align: center;
  border: 1px dashed #3a4155;
  border-radius: 8px;
}
#toast-zone {
  position: fixed;
  right: 24px;
  bottom: 25px;
  z-index: 10;
  display: grid;
  gap: 10px;
  max-width: min(430px, calc(100vw - 32px));
}
.toast {
  box-shadow: 0 12px 32px #0009;
  padding: 13px 17px;
  border-radius: 10px;
  background: #263348;
  border: 1px solid #4b5c77;
  color: #edf4ff;
  white-space: pre-line;
  font-size: 12px;
  animation: rise 0.2s ease;
}
.toast.error {
  background: #462732;
  border-color: #844858;
}
.toast.success {
  background: #22443d;
  border-color: #4f947f;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1340px) {
  .statistics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .intro-art {
    min-width: 300px;
  }
  .buy-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 14px 18px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .brand {
    padding: 0;
  }
  .side-label,
  .sidebar-bottom {
    display: none;
  }
  .navigation {
    display: flex;
    gap: 5px;
  }
  .nav-item {
    padding: 10px;
    font-size: 11px;
    gap: 5px;
  }
  .nav-item span {
    font-size: 15px;
    width: auto;
  }
  .main {
    padding: 24px 18px;
  }
  .intro-art {
    min-width: 170px;
  }
  .mail-art {
    right: 25px;
    transform: scale(0.8) rotate(-8deg);
  }
  .chip-one,
  .chip-two {
    display: none;
  }
}
@media (max-width: 650px) {
  .sidebar {
    display: block;
  }
  .navigation {
    margin-top: 16px;
    justify-content: space-between;
  }
  .topbar {
    align-items: flex-start;
  }
  .top-actions {
    flex-direction: column;
    align-items: flex-end;
  }
  .date-pill {
    display: none;
  }
  h1 {
    font-size: 23px;
  }
  .intro-art {
    display: none;
  }
  .intro-copy {
    padding: 26px;
  }
  .statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 22px;
  }
  .stat-head {
    font-size: 10px;
  }
  .stat-icon {
    width: 24px;
    height: 24px;
  }
  .buy-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .form-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-heading {
    padding: 20px 17px 16px;
  }
  .buy-form {
    padding: 0 17px 21px;
  }
  .table-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .table-actions .btn {
    flex: 1;
    font-size: 11px;
  }
  .filterbar {
    padding: 0 17px 14px;
    flex-wrap: wrap;
  }
  .search-box {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .filter-select {
    max-width: none;
    flex: 1;
  }
  .table-footer {
    padding: 13px 17px;
    flex-wrap: wrap;
  }
  .main {
    padding: 18px 12px;
  }
  .topbar {
    padding: 0 4px;
  }
  .stat:nth-child(5) {
    grid-column: 1/-1;
  }
}

/* Balance nổi bật trong banner Landing Page (không nằm trong dãy statistic). */
.intro {
  isolation: isolate;
}
.intro-balance-area {
  flex: 0 1 400px;
  min-width: 285px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 26px 30px 26px 0;
}
.intro-balance-area::before {
  content: "";
  position: absolute;
  right: -55px;
  top: -70px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, #ad90ff35 0, transparent 69%);
  pointer-events: none;
  z-index: -1;
}
.intro-balance-card {
  width: 100%;
  min-width: 0;
  padding: 22px 23px;
  background: linear-gradient(135deg, #1b1b37ee, #14192feb);
  border: 1px solid #7162b6;
  border-radius: 16px;
  box-shadow:
    0 20px 40px #07051366,
    inset 0 1px #b5a4fd28;
}
.landing-balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.landing-balance-title {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d1c9f9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.15px;
}
.landing-balance-title small {
  display: block;
  margin-top: 4px;
  color: #a8a1ca;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}
.landing-balance-icon {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #e6ddff;
  background: #6b59d58a;
  font-size: 22px;
}
.landing-balance-value {
  display: block;
  margin: 19px 0 14px;
  font-size: clamp(26px, 3.1vw, 37px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #ffffff;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.landing-balance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #62588d6e;
  padding-top: 12px;
}
.landing-balance-footer small {
  font-size: 10px;
  color: #c4bfdd;
  overflow-wrap: anywhere;
  min-width: 0;
}
.landing-balance-footer .balance-error {
  color: #ff9dad;
}
.landing-balance-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a8ebca;
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 800;
  white-space: nowrap;
}
.landing-live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #56d4a4;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #56d4a41f;
}
.balance-refresh {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #7167aa;
  border-radius: 8px;
  background: #342c5b;
  color: #d4c9ff;
  flex-shrink: 0;
  font-size: 20px;
}
.balance-refresh:hover:not(:disabled) {
  background: #51417e;
}
.balance-refresh:focus-visible {
  outline: 2px solid #c3b8ff;
  outline-offset: 2px;
}
@media (max-width: 1340px) {
  .statistics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .intro {
    flex-wrap: wrap;
  }
  .intro-copy {
    max-width: none;
    flex: 1 1 100%;
    padding-bottom: 10px;
  }
  .intro-balance-area {
    flex: 1 1 100%;
    padding: 0 30px 26px;
    min-width: 0;
  }
  .intro-balance-card {
    max-width: 600px;
  }
}
@media (max-width: 650px) {
  .statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(5) {
    grid-column: 1/-1;
  }
  .intro-copy {
    padding: 26px 22px 16px;
  }
  .intro-balance-area {
    padding: 0 22px 22px;
  }
  .intro-balance-card {
    padding: 18px;
  }
  .landing-balance-value {
    font-size: clamp(26px, 8vw, 36px);
  }
}


/* ===== Chọn User trước khi truy cập Dashboard ===== */
.user-gate[hidden], [hidden] { display: none !important; }
.user-gate {
  position: fixed; inset: 0; z-index: 20000;
  background: radial-gradient(ellipse at 50% 2%, #342b68 0%, #111426 42%, #080b14 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.user-picker {
  width: min(100%, 530px); border: 1px solid #464069;
  border-radius: 23px; background: #171a2c;
  box-shadow: 0 35px 100px #0008; padding: 30px;
  text-align: center;
}
.user-picker-logo { width: 56px; height: 56px; display: grid; place-items: center;
  background: linear-gradient(145deg,#a58dff,#5d4edd); border-radius: 16px;
  font-size: 30px; margin: 0 auto 18px; }
.user-picker-overline { margin: 0 0 7px; color: #b2a5ff;
  font-size: 10px; letter-spacing: 2px; font-weight: 800; }
.user-picker h2 { font-size: clamp(22px,4vw,28px); margin: 0 0 9px; }
.user-picker-desc { color: #a4acc2; font-size: 13px;
  max-width: 380px; margin: 0 auto 22px; }
/* 8 User + ADMIN: 2 cột trên desktop, 1 cột khi màn hình nhỏ. */
.user-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.user-choice.admin-choice { grid-column: 1 / -1; }
@media (max-width: 540px) {
  .user-picker-list { grid-template-columns: 1fr; }
}
.user-choice { display: flex; align-items: center; gap: 13px; width: 100%;
  background: #20253a; border: 1px solid #393f5b; color: #f4f2ff;
  border-radius: 12px; padding: 12px; font-weight: 800; font-size: 14px;
  transition: border-color .15s, background .15s; }
.user-choice:hover:not(:disabled), .user-choice:focus-visible {
  border-color: #9b8bff; background: #302b53; outline: none; }
.user-avatar { width: 34px; height: 34px; border-radius: 10px;
  background: #3a3467; display: grid; place-items: center;
  color: #cfc5ff; font-size: 12px; }
.user-chevron { margin-left: auto; color: #ada6df; font-size: 21px; }
.user-picker-status { color: #9da7c0; margin: 19px 0 8px; min-height: 18px; font-size: 12px; }
.user-picker-status.error { color: #ff93a7; }
.user-picker-note { color: #7e88a3; font-size: 10px; margin: 8px 0 0; }
.current-user { display: inline-flex; gap: 9px; align-items: center;
  background: #222039; padding: 6px 7px 6px 12px;
  border: 1px solid #514b78; border-radius: 10px; white-space: nowrap; }
.current-user-icon { color: #67d2ae; font-size: 10px; }
.current-user strong { color: #dcd6ff; font-size: 12px; }
.change-user-btn { background: #443967; border: 1px solid #69618d;
  border-radius: 7px; color: #f1ecff; padding: 7px 10px;
  font-size: 11px; font-weight: 700; }
.change-user-btn:hover { background: #625081; }
@media (max-width: 750px) {
  .topbar { flex-wrap: wrap; }
  .top-actions { flex-wrap: wrap; width: 100%; }
  .current-user { margin-right: auto; }
}
@media (max-width: 450px) {
  .user-picker { padding: 22px 17px; }
  .user-gate { padding: 12px; }
}

/* ===== Phân trang 10 dòng / bảng ===== */
.pagination-footer { align-items: center; flex-wrap: wrap; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.pagination button { min-width: 33px; height: 33px; padding: 0 9px; border-radius: 8px;
  background: #20273a; border: 1px solid #3a435c; color: #ced6eb; font-size: 12px; font-weight: 700; }
.pagination button:hover:not(:disabled) { border-color: #9584ff; color: #fff; }
.pagination button.active { background: #7767ee; color: #fff; border-color: #9b90ff; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.page-ellipsis { padding: 0 3px; color: #8490a7; }

/* ===== Dashboard ADMIN: chỉ bảng 8 User ===== */
.admin-panel { margin-top: 3px; }
.admin-heading { flex-wrap: wrap; }
.admin-label { border: 1px solid #6a5aac; background: #30294d; color: #c5b9ff;
  padding: 8px 12px; border-radius: 9px; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.admin-table { min-width: 790px; }
.admin-table td, .admin-table tfoot th { font-variant-numeric: tabular-nums; }
.admin-table td:not(:first-child) { font-weight: 750; color: #e5eaff; }
.admin-table tfoot th, .admin-table tfoot td { background: #252343; border-top: 1px solid #685c9a;
  font-size: 12px; font-weight: 800; padding: 17px 16px; color: #f0ecff; }
.admin-table tfoot th:first-child { padding-left: 25px; }
.admin-user-name { color: #c5b8ff; font-weight: 800; }
.admin-table .amount-cell { color: #8ae2c0 !important; }
.admin-footnote { padding: 14px 25px; color: #8895b0; font-size: 11px;
  border-top: 1px solid var(--border); }
.user-choice.admin-choice { background: #33284d; border-color: #66548f; }
.user-choice.admin-choice .user-avatar { background: #62519e; color: #fff; font-size: 18px; }
@media (max-width: 700px) {
  .pagination-footer { align-items: flex-start; flex-direction: column; }
  .pagination { justify-content: flex-start; }
}

/* ===== Hiển thị toàn bộ OTP ở bảng, mới nhất trước ===== */
.otp-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  min-width: 150px;
}
.otp-entry {
  width: 100%;
  padding: 3px 0 8px;
  border-bottom: 1px solid #2b3549;
}
.otp-entry:last-of-type { border-bottom: none; padding-bottom: 0; }
.otp-entry .otp-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.otp-entry .otp-code { max-width: none; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.otp-entry-newest .otp-code { color: #a3f7d4; }
.otp-newest-label {
  display: inline-flex;
  border-radius: 5px;
  background: #1e4a3c;
  color: #8cf3ca;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.otp-received { display: block; margin-top: 3px; color: #7e8da8; font-size: 10px; }
.otp-count { color: #929bb4; font-size: 10px; }
.otp-history-row .otp-newest-label { margin-left: 8px; }

/* Phase 1/2: báo giá theo offer và trạng thái đồng bộ */
.services-info, .sync-info { margin: 0 25px 20px; padding: 13px 15px; background: #192032; border: 1px solid #30384e; color: #b7c4df; border-radius: 10px; font-size: 12px; }
.services-info strong { display: block; color: #e4ddff; font-size: 13px; }
.services-info p { margin: 5px 0 9px; }
.offer-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.offer-chip { background: #252c43; border: 1px solid #404765; padding: 6px 9px; border-radius: 8px; color: #cad5fb; font-size: 11px; }
.sync-info { margin: 0 25px 14px; padding: 9px 12px; }
@media(max-width: 850px){ .services-info,.sync-info{ margin-left: 15px; margin-right:15px; } .table-actions{flex-wrap:wrap;} }
