/* ============================================
   Dashboard — ViePay (đêm #461B65 / ngày #26C6DA)
   ============================================ */

.dashboard-body {
  --dash-bg: #0d0614;
  --dash-surface: #241436;
  --dash-elevated: #2d1a42;
  --dash-border: rgba(70, 27, 101, 0.35);
  --dash-border-solid: #5c3d75;
  --dash-text: #ede9fe;
  --dash-muted: #b89bc9;
  --dash-accent: #c4a8d8;
  --dash-active: #461B65;
  --dash-day: #26C6DA;
  font-family: 'Lexend', system-ui, sans-serif;
  background: var(--dash-bg);
  color: var(--dash-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-page-title,
.dashboard-card__title,
.admin-vol__card-title {
  font-family: 'Manrope', 'Lexend', sans-serif;
}

.dashboard-header {
  min-height: 72px;
  background: linear-gradient(180deg, #2a1740 0%, #1e1230 100%);
  border-bottom: 1px solid var(--dash-border-solid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.35rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(70, 27, 101, 0.25);
}

.dashboard-header__left,
.dashboard-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-header__user-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dashboard-header__user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  text-align: right;
}

.dashboard-header__user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f5f3ff;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Manrope', 'Lexend', sans-serif;
  color: #f5f3ff;
  text-decoration: none;
  line-height: 1.15;
}
/* Khung cố định — hai PNG scale giống nhau (đêm / ngày) */
.dashboard-logo__mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}
.dashboard-logo__mark .dashboard-logo__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}
/* Theme đêm: tím · theme ngày: xanh — phải dùng selector đủ specificity,
   không để .dashboard-logo__mark .dashboard-logo__img { display:block } ghi đè display:none */
.dashboard-logo__mark .dashboard-logo__img--light {
  display: none;
}
.dashboard-logo__mark .dashboard-logo__img--dark {
  display: block;
}
.dashboard-body.theme-light .dashboard-logo__mark .dashboard-logo__img--dark {
  display: none;
}
.dashboard-body.theme-light .dashboard-logo__mark .dashboard-logo__img--light {
  display: block;
}
.dashboard-logo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}
.dashboard-logo__title {
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: inherit;
}
.dashboard-logo__tagline {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(184, 155, 201, 0.95);
  letter-spacing: 0.04em;
}

.dashboard-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  background: rgba(70, 27, 101, 0.28);
  border: 1px solid rgba(92, 61, 117, 0.5);
  border-radius: 10px;
  color: #d1d5db;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-header__toggle:hover {
  background: rgba(70, 27, 101, 0.48);
  color: #fff;
  border-color: rgba(38, 198, 218, 0.35);
}

.dashboard-header__hamburger {
  position: relative;
  width: 18px;
  height: 14px;
  display: block;
}

.dashboard-header__hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.dashboard-header__hamburger-line:nth-child(1) { top: 0; }
.dashboard-header__hamburger-line:nth-child(2) { top: 6px; }
.dashboard-header__hamburger-line:nth-child(3) { top: 12px; }

.dashboard-header__toggle--collapsed .dashboard-header__hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.dashboard-header__toggle--collapsed .dashboard-header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.dashboard-header__toggle--collapsed .dashboard-header__hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.dashboard-header__balance {
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.25;
}

.dashboard-header__balance-label {
  margin-right: 0.25rem;
}

.dashboard-header__balance #balance-value {
  font-weight: 600;
  color: #fbbf24;
}

/* Theme: switch (đêm trái / ngày phải) */
.dashboard-header__theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 0;
}

.dashboard-header__theme-switch:focus {
  outline: none;
}

.dashboard-header__theme-switch:focus-visible .dashboard-header__theme-track {
  box-shadow: 0 0 0 2px #0d0614, 0 0 0 4px rgba(38, 198, 218, 0.65);
}

.dashboard-header__theme-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(92, 61, 117, 0.65);
  background: linear-gradient(145deg, rgba(13, 6, 20, 0.65) 0%, rgba(70, 27, 101, 0.5) 100%);
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.dashboard-header__theme-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  background-image: url('/images/night-icon.png');
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.2s ease;
  z-index: 1;
}

.dashboard-header__theme-switch[aria-checked="true"] .dashboard-header__theme-track {
  border-color: rgba(38, 198, 218, 0.75);
  background: linear-gradient(145deg, rgba(14, 99, 120, 0.4) 0%, rgba(38, 198, 218, 0.35) 100%);
}

.dashboard-header__theme-switch[aria-checked="true"] .dashboard-header__theme-thumb {
  transform: translateX(26px);
  background-image: url('/images/day-icon.png');
}

.dashboard-header__theme-switch:hover .dashboard-header__theme-track {
  filter: brightness(1.08);
}

.dashboard-header__lang {
  position: relative;
}

.dashboard-header__lang-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  background: rgba(70, 27, 101, 0.35);
  border: 1px solid var(--dash-border-solid);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dashboard-header__lang-trigger:hover {
  background: rgba(70, 27, 101, 0.55);
  border-color: rgba(38, 198, 218, 0.45);
}

.dashboard-header__flag {
  display: block;
  width: 32px;
  height: auto;
  max-height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.dashboard-header__flag--current {
  width: 28px;
  max-height: 20px;
}

.dashboard-header__lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: auto;
  padding: 0.4rem;
  background: #241436;
  border: 1px solid var(--dash-border-solid);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 200;
  gap: 0.25rem;
  flex-direction: column;
}

.dashboard-header__lang-dropdown.is-open {
  display: flex;
}

.dashboard-header__dropdown-item--flag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.5rem;
  min-width: 52px;
  border-radius: 8px;
}

.dashboard-header__dropdown-item--flag .dashboard-header__flag {
  width: 36px;
  max-height: 24px;
}

.dashboard-header__dropdown-item--flag:hover {
  background: rgba(70, 27, 101, 0.35);
}

.dashboard-header__dropdown-item--flag.dashboard-header__dropdown-item--active {
  background: rgba(70, 27, 101, 0.5);
  box-shadow: 0 0 0 1px rgba(38, 198, 218, 0.4);
}

.dashboard-header__avatar-wrap {
  position: relative;
}
.dashboard-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #461B65 0%, #2d1a42 100%);
  border: 1px solid rgba(92, 61, 117, 0.55);
  color: #f5f3ff;
  cursor: pointer;
  font-family: 'Manrope', 'Lexend', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-header__avatar-letter {
  text-transform: uppercase;
  user-select: none;
}
.dashboard-header__avatar:hover {
  border-color: rgba(38, 198, 218, 0.45);
  box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.15);
  color: #fff;
}
.dashboard-header__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  min-width: 140px;
  background: #241436;
  border: 1px solid var(--dash-border-solid);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0;
  display: none;
  z-index: 200;
}
.dashboard-header__dropdown.is-open {
  display: block;
}
.dashboard-header__dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: #e5e7eb;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.dashboard-header__dropdown-item:hover {
  background: rgba(70, 27, 101, 0.35);
  color: #fff;
}
.dashboard-header__dropdown-item--with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-header__dropdown-icon {
  flex-shrink: 0;
  opacity: 0.9;
}
.dashboard-header__dropdown-item--active {
  background: rgba(70, 27, 101, 0.5);
  color: #fff;
  font-weight: 600;
}

/* Sidebar */
.dashboard-wrap {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 84px);
}

.dashboard-sidebar {
  --dash-nav-font: 'Lexend', system-ui, sans-serif;
  --dash-nav-font-label: 'Manrope', 'Lexend', sans-serif;
  width: 240px;
  min-height: calc(100vh - 72px);
  background: #1e1230;
  border-right: 1px solid var(--dash-border-solid);
  flex-shrink: 0;
  transition: width 0.2s, margin 0.2s;
  font-family: var(--dash-nav-font);
  -webkit-font-smoothing: antialiased;
  position: sticky;
  top: 72px;
  align-self: flex-start;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.dashboard-sidebar.collapsed {
  width: 64px;
}

.dashboard-sidebar.collapsed .dashboard-nav__label,
.dashboard-sidebar.collapsed .nav-label,
.dashboard-sidebar.collapsed .nav-item--sub,
.dashboard-sidebar.collapsed .nav-item--header {
  display: none;
}

.dashboard-sidebar.collapsed .dashboard-nav__item {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Ẩn Dashboard, Api & Demo, Terms khi ở trang admin */
.dashboard-body--admin .dashboard-nav__section--user-home {
  display: none;
}

.dashboard-nav {
  padding: 1rem 0;
}

.dashboard-nav__section {
  margin-bottom: 1rem;
}

.dashboard-nav__label {
  font-family: var(--dash-nav-font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6b7280;
  padding: 0 1rem 0.5rem;
}

.dashboard-nav__label--sub {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(92, 61, 117, 0.4);
  opacity: 0.95;
}

/* Nhóm admin: label dạng chữ thường, viền trái accent */
.dashboard-nav__section--admin .dashboard-nav__label,
.dashboard-nav__section--core .dashboard-nav__label,
.dashboard-nav__section--setting .dashboard-nav__label {
  text-transform: none;
  letter-spacing: 0.02em;
  border-left: 3px solid rgba(103, 232, 249, 0.5);
  margin-left: 0.75rem;
  padding-left: 0.5rem;
}

.dashboard-nav__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  color: #9ca3af;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dashboard-nav__item:hover {
  background: rgba(70, 27, 101, 0.15);
  color: #fff;
}

.dashboard-nav__item--active {
  background: linear-gradient(90deg, rgba(70, 27, 101, 0.45), rgba(70, 27, 101, 0.12));
  color: #fff;
  box-shadow: inset 3px 0 0 #b89bc9;
}

.nav-icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.nav-icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  color: inherit;
  opacity: 0.9;
}

.nav-icon--svg svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.dashboard-nav__item:hover .nav-icon--svg,
.dashboard-nav__item--active .nav-icon--svg {
  opacity: 1;
}

.dashboard-nav__item--active .nav-icon--svg {
  color: #67e8f9;
}

/* Main content */
.dashboard-main {
  flex: 1;
  padding: 1.5rem;
  overflow: auto;
  background: #0d0614;
}

.dashboard-page-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.dashboard-card {
  background: #241436;
  border-radius: 12px;
  border: 1px solid var(--dash-border-solid);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Admin - Volume (V1/V3) section
   ============================================ */
.admin-vol {
  margin-top: 1rem;
}
.admin-vol__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.admin-vol__title {
  margin: 0;
}
.admin-vol__meta {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.admin-vol__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.admin-vol__kpi {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid #5c3d75;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  position: relative;
  overflow: hidden;
}
.admin-vol__kpi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 120px at 20% 0%, rgba(70,27,101,0.2), transparent 60%);
  pointer-events: none;
}
.admin-vol__kpi--out::before {
  background: radial-gradient(600px 120px at 20% 0%, rgba(245,158,11,0.14), transparent 60%);
}
.admin-vol__kpi-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.admin-vol__kpi-label {
  font-size: 0.85rem;
  color: #cbd5e1;
}
.admin-vol__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  background: rgba(148,163,184,0.18);
  border: 1px solid rgba(148,163,184,0.25);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.admin-vol__badge--v3 {
  background: rgba(70,27,101,0.22);
  border-color: rgba(70,27,101,0.35);
}
.admin-vol__kpi-value {
  position: relative;
  font-size: 0.9rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
}

.admin-vol__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.admin-vol__card {
  background: #241436;
  border: 1px solid #5c3d75;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.admin-vol__card--users {
  margin-top: 0.75rem;
}
.admin-vol__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.admin-vol__card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: #fff;
}
.admin-vol__card-note,
.admin-vol__card-sub {
  font-size: 0.85rem;
  color: #9ca3af;
}
.admin-vol__table-wrap {
  border: 1px solid #5c3d75;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1530;
}
.admin-vol__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-vol__table thead th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  background: #231a38;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #5c3d75;
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-vol__table tbody td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(45,49,54,0.8);
  color: #e5e7eb;
  vertical-align: top;
}
.admin-vol__table tbody tr:nth-child(2n) td {
  background: rgba(255,255,255,0.02);
}
.admin-vol__table tbody tr:hover td {
  background: rgba(70,27,101,0.1);
}

@media (max-width: 1200px) {
  .admin-vol__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-vol__grid { grid-template-columns: 1fr; }
  .admin-vol__kpi-value { white-space: normal; }
}

.dashboard-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

/* Dashboard index - UI tổng quan */
.dashboard-index { position: relative; }
.dashboard-index__breadcrumb { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.5rem; }
.dashboard-index__breadcrumb a { color: #b89bc9; text-decoration: none; }
.dashboard-index__breadcrumb a:hover { text-decoration: underline; }
.dashboard-index__breadcrumb .sep { margin: 0 0.35rem; color: #6b7280; }

.dashboard-index__filter-card { margin-bottom: 1.5rem; }
.dashboard-card__title--small { margin-bottom: 0.75rem; font-size: 0.9375rem; }
.dashboard-index__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.dashboard-index__field { display: flex; flex-direction: column; gap: 0.25rem; }
.dashboard-index__field label { font-size: 0.75rem; color: #6b7280; }
.dashboard-index__input {
  padding: 0.5rem 0.9rem;
  background: #1a0f24;
  border: 1px solid rgba(92, 61, 117, 0.6);
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 0.875rem;
  font-family: 'Lexend', system-ui, sans-serif;
  min-width: 140px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-index__input:hover { border-color: #6d4a88; }
.dashboard-index__input:focus { outline: none; border-color: #26C6DA; box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.25); }
.dashboard-index__btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
/* Night theme: purple buttons + hover glow/scale */
.dashboard-body.theme-dark .dashboard-index__btn--primary,
.dashboard-body:not(.theme-light) .dashboard-index__btn--primary {
  background: linear-gradient(135deg, #5c2878 0%, #461B65 100%);
  color: #fff;
  border: 1px solid rgba(184, 155, 201, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.dashboard-body.theme-dark .dashboard-index__btn--primary:hover,
.dashboard-body:not(.theme-light) .dashboard-index__btn--primary:hover {
  background: linear-gradient(135deg, #6d4a88 0%, #5c2878 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(92, 61, 117, 0.5);
}
.dashboard-index__btn--secondary { background: #374151; color: #e5e7eb; }
.dashboard-index__btn--secondary:hover { background: #4b5563; }
.dashboard-index__period { font-size: 0.8rem; color: #6b7280; margin-top: 0.75rem; margin-bottom: 0; }

/* KPI cards */
.dashboard-index__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-index__kpi {
  background: #241436;
  border: 1px solid #5c3d75;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.dashboard-index__kpi--balance { border-color: #461B65; background: linear-gradient(135deg, rgba(70, 27, 101, 0.14) 0%, rgba(70, 27, 101, 0.05) 100%); }
.dashboard-index__kpi-icon { font-size: 1.75rem; line-height: 1; }
.dashboard-index__kpi-content { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.dashboard-index__kpi-label { font-size: 0.8rem; color: #9ca3af; }
.dashboard-index__kpi-value { font-size: 1.35rem; font-weight: 700; color: #fbbf24; }
.dashboard-index__kpi--balance .dashboard-index__kpi-value { color: #67e8f9; }
.dashboard-index__kpi-unit { font-size: 0.75rem; color: #6b7280; }

/* Fee card: phí nạp + phí rút (0%) */
.dashboard-index__fee-card .dashboard-index__fee-content { gap: 0.5rem; width: 100%; }
.dashboard-index__fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dashboard-index__fee-row:last-child,
.dashboard-index__fee-row--withdraw { border-bottom: none; }
.dashboard-index__fee-label { font-size: 0.8rem; color: #9ca3af; font-weight: 500; }
.dashboard-index__fee-value { font-size: 1rem; font-weight: 700; color: #fbbf24; }
.dashboard-index__fee-value--zero { color: #6ee7b7; font-weight: 600; }

/* Thống kê chi tiết - 2 cột */
.dashboard-index__detail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dashboard-index__detail-card { margin-bottom: 0; }
.dashboard-index__detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.dashboard-index__detail-head .dashboard-card__title { margin-bottom: 0; }
.dashboard-index__link { font-size: 0.8rem; color: #b89bc9; text-decoration: none; }
.dashboard-index__link:hover { text-decoration: underline; }
.dashboard-index__detail-body { display: flex; flex-direction: column; gap: 0; }
.dashboard-index__stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #5c3d75;
  font-size: 0.875rem;
}
.dashboard-index__stat-row:last-child { border-bottom: none; }
.dashboard-index__stat-label { color: #9ca3af; }
.dashboard-index__stat-value { color: #e5e7eb; }
.dashboard-index__stat-row--success .dashboard-index__stat-value { color: #6ee7b7; }
.dashboard-index__stat-row--pending .dashboard-index__stat-value { color: #67e8f9; }
.dashboard-index__stat-row--failed .dashboard-index__stat-value { color: #fca5a5; }

.admin-dashboard__section-title { font-size: 1rem; font-weight: 600; color: #9ca3af; margin: 1rem 0 0.75rem; }
.admin-dashboard__section-title:first-of-type { margin-top: 0; }
.admin-dashboard__balances { margin-bottom: 1rem; }

/* Loading overlay */
.dashboard-index__loading {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 33, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #9ca3af;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.dashboard-index__loading.is-visible { opacity: 1; pointer-events: auto; }
.dashboard-index__loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #5c3d75;
  border-top-color: #26C6DA;
  border-radius: 50%;
  animation: dashboard-spin 0.7s linear infinite;
}
@keyframes dashboard-spin { to { transform: rotate(360deg); } }


/* Profile page v2 — sidebar layout */
.profile-v2 {
  max-width: 960px;
  margin: 0 auto;
}
.profile-v2__breadcrumb {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}
.profile-v2__breadcrumb a {
  color: #b89bc9;
  text-decoration: none;
}
.profile-v2__breadcrumb a:hover { text-decoration: underline; }
.profile-v2__breadcrumb-sep {
  margin: 0 0.4rem;
  color: #6b7280;
}
.profile-v2__hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(70, 27, 101, 0.4) 0%, rgba(45, 26, 66, 0.6) 50%, rgba(36, 20, 54, 0.5) 100%);
  border: 1px solid rgba(92, 61, 117, 0.5);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.profile-v2__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #461B65 0%, #6d4a88 100%);
  border: 2px solid rgba(184, 155, 201, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.profile-v2__hero-text { min-width: 0; }
.profile-v2__title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f5f3ff;
}
.profile-v2__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #c4b5d4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-v2__layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 640px) {
  .profile-v2__layout { grid-template-columns: 1fr; }
}
.profile-v2__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: rgba(36, 20, 54, 0.6);
  border: 1px solid rgba(92, 61, 117, 0.4);
  border-radius: 12px;
}
.profile-v2__nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.profile-v2__nav-item:hover {
  background: rgba(70, 27, 101, 0.3);
  color: #e5e7eb;
}
.profile-v2__nav-item--active {
  background: rgba(70, 27, 101, 0.5);
  color: #fff;
}
.profile-v2__nav-icon {
  flex-shrink: 0;
  opacity: 0.9;
}
.profile-v2__main {
  min-height: 200px;
}
.profile-v2__panel {
  display: none;
}
.profile-v2__panel--active {
  display: block;
}
.profile-v2__panel-inner {
  padding: 1.5rem 1.75rem;
  background: #241436;
  border: 1px solid var(--dash-border-solid);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.profile-v2__panel-title {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #f5f3ff;
}
.profile-v2__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.profile-v2__field { display: flex; flex-direction: column; gap: 0.4rem; }
.profile-v2__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #c4b5d4;
}
.profile-v2__input {
  width: 100%;
  max-width: 380px;
  padding: 0.65rem 1rem;
  background: #1a0f24;
  border: 1px solid rgba(92, 61, 117, 0.6);
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-v2__input::placeholder { color: #6b7280; }
.profile-v2__input:hover { border-color: #6d4a88; }
.profile-v2__input:focus {
  outline: none;
  border-color: #26C6DA;
  box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.25);
}
.profile-v2__hint {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: -0.5rem 0 1rem;
  line-height: 1.5;
}
.profile-v2__btn {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  align-self: flex-start;
}
.profile-v2__btn--primary {
  background: linear-gradient(135deg, #461B65 0%, #5c2878 100%);
  color: #fff;
  border: 1px solid rgba(184, 155, 201, 0.3);
}
.profile-v2__btn--primary:hover {
  background: linear-gradient(135deg, #5c2878 0%, #6d4a88 100%);
  border-color: rgba(184, 155, 201, 0.5);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(92, 61, 117, 0.45);
}

/* Legacy profile (kept for backwards compat if any) */
.profile-page__breadcrumb { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.5rem; }
.profile-page__breadcrumb a { color: #b89bc9; text-decoration: none; }
.profile-page__breadcrumb a:hover { text-decoration: underline; }
.profile-page__breadcrumb .sep { margin: 0 0.35rem; color: #6b7280; }
.profile-form__hint { font-size: 0.8rem; color: #6b7280; margin-bottom: 1rem; line-height: 1.4; }

/* Footer */
.dashboard-footer {
  padding: 0.75rem 1.5rem;
  background: #241436;
  border-top: 1px solid #5c3d75;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.btn-scroll-top {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #b89bc9;
  background: transparent;
  color: #b89bc9;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.btn-scroll-top { transition: background 0.28s ease-out, transform 0.28s ease-out, box-shadow 0.28s ease-out; }
.btn-scroll-top:hover {
  background: rgba(70, 27, 101, 0.35);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(92, 61, 117, 0.4);
}

/* Sticky liên hệ Telegram góc màn hình */
.dashboard-contact-sticky {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #0088cc;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 136, 204, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-contact-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.5);
  color: #fff;
}
.dashboard-contact-sticky__icon { font-size: 1.1rem; }
.dashboard-contact-sticky__text { letter-spacing: 0.02em; }
@media (max-width: 480px) {
  .dashboard-contact-sticky__text { display: none; }
  .dashboard-contact-sticky { padding: 0.6rem; }
}

/* Api & Demo */
.api-demo { margin-bottom: 2rem; }
.api-demo__base-url { margin-bottom: 1.5rem; }
.api-demo__base-url .api-desc code { background: #0d1117; padding: 0.2rem 0.5rem; border-radius: 4px; color: #a5f3fc; font-size: 0.95rem; }
.api-doc-list { margin: 0.5rem 0 0 1.25rem; padding: 0; color: #9ca3af; font-size: 0.9rem; }
.api-doc-list li { margin-bottom: 0.5rem; }
.api-doc-list code { background: #0d1117; padding: 0.1rem 0.35rem; border-radius: 4px; color: #a5f3fc; font-size: 0.85rem; word-break: break-all; }
.api-demo__breadcrumb { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.5rem; }
.api-demo__breadcrumb a { color: #b89bc9; text-decoration: none; }
.api-demo__breadcrumb a:hover { text-decoration: underline; }
.api-demo__breadcrumb .sep { margin: 0 0.35rem; color: #6b7280; }
.api-demo__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid #5c3d75; padding-bottom: 0.5rem; }
.api-demo__tab { padding: 0.5rem 1rem; font-size: 0.875rem; background: transparent; color: #9ca3af; border: 1px solid #5c3d75; border-radius: 6px; cursor: pointer; transition: background 0.25s ease-out, color 0.25s ease-out, border-color 0.25s ease-out; }
.api-demo__tab:hover { color: #fff; background: #5c3d75; }
.api-demo__tab.active { background: #461B65; color: #fff; border-color: #461B65; }
.api-demo__tab--disabled,
.api-demo__tab:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.api-demo__panels { margin-top: 0.5rem; }
.api-demo__panel { display: none; }
.api-demo__panel.active { display: block; }
.api-key-grid { display: flex; flex-direction: column; gap: 1rem; }
.api-key-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.api-key-row label { font-weight: 500; color: #9ca3af; min-width: 100px; }
.api-key-value { font-family: ui-monospace, monospace; font-size: 0.9rem; color: #d1d5db; word-break: break-all; }
.api-key-row .btn-copy { margin-left: auto; padding: 0.25rem 0.6rem; font-size: 0.75rem; background: #26C6DA; color: #fff; border: none; border-radius: 6px; cursor: pointer; transition: background 0.28s ease-out, transform 0.28s ease-out, box-shadow 0.28s ease-out; }
.api-key-row .btn-copy:hover { background: #461B65; }
.api-desc { color: #9ca3af; font-size: 0.9rem; margin-bottom: 1rem; }
.api-doc-block { background: #0d0614; border: 1px solid #5c3d75; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; font-size: 0.875rem; }
.api-doc-block__title { font-size: 0.95rem; color: #e5e7eb; margin: 0 0 0.75rem; }
.api-doc-block__note { margin: 0 0 0.75rem; color: #9ca3af; font-size: 0.85rem; }
.api-doc-block__label { margin: 1rem 0 0.4rem; color: #c4b5d4; font-size: 0.85rem; font-weight: 500; }
.api-doc-block__label:first-of-type { margin-top: 0.75rem; }
.api-doc-block p { margin: 0 0 0.5rem; color: #9ca3af; }
.api-doc-block ul { margin: 0.25rem 0 0.75rem 1.25rem; padding: 0; color: #9ca3af; }
.api-doc-block li { margin-bottom: 0.35rem; }
.api-doc-block code { background: #0d1117; padding: 0.15rem 0.4rem; border-radius: 4px; color: #a5f3fc; font-size: 0.85rem; }
.api-doc-block__example { background: #0d1117; border: 1px solid #5c3d75; border-radius: 6px; padding: 0.75rem 1rem; margin: 0.5rem 0 0; overflow-x: auto; font-size: 0.8rem; line-height: 1.5; color: #a5f3fc; white-space: pre; }
.api-doc-block__json { background: #0d1117; border: 1px solid #5c3d75; border-radius: 6px; padding: 1rem 1.25rem; margin: 0; overflow-x: auto; font-size: 0.82rem; line-height: 1.6; color: #a5f3fc; white-space: pre; font-family: ui-monospace, monospace; }
.api-doc-table { width: 100%; min-width: 320px; border-collapse: separate; border-spacing: 0; margin: 0.5rem 0 1rem; font-size: 0.85rem; font-family: 'Lexend', system-ui, sans-serif; border-radius: 8px; overflow: hidden; }
.api-doc-table th, .api-doc-table td { padding: 0.55rem 0.85rem; text-align: left; border: 1px solid rgba(92, 61, 117, 0.4); }
.api-doc-table th { background: rgba(26, 15, 36, 0.8); color: #9ca3af; font-weight: 600; font-family: 'Manrope', 'Lexend', sans-serif; }
.api-doc-table td { color: #d1d5db; }
.api-doc-table tbody tr:hover td { background: rgba(70, 27, 101, 0.1); }
.api-doc-table code { background: transparent; padding: 0; }
.api-spec { margin-bottom: 1rem; }
.api-spec__row { font-size: 0.875rem; margin-bottom: 0.25rem; }
.api-spec__row .label { color: #9ca3af; margin-right: 0.5rem; }
.api-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0; font-size: 0.875rem; font-family: 'Lexend', system-ui, sans-serif; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.api-table th, .api-table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid rgba(92, 61, 117, 0.4); }
.api-table th { color: #9ca3af; font-weight: 600; background: rgba(26, 15, 36, 0.8); font-family: 'Manrope', 'Lexend', sans-serif; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.api-table td { color: #d1d5db; }
.api-table tbody tr:hover td { background: rgba(70, 27, 101, 0.12); }
.api-table tbody tr:nth-child(even) td { background: rgba(26, 15, 36, 0.35); }
.api-table tbody tr:nth-child(even):hover td { background: rgba(70, 27, 101, 0.2); }
.api-code { background: #0d0614; border: 1px solid #5c3d75; border-radius: 6px; padding: 1rem; overflow-x: auto; margin: 1rem 0; font-size: 0.8rem; line-height: 1.5; }
.api-code code { color: #a5f3fc; white-space: pre; }
.api-textarea { font-family: ui-monospace, monospace; font-size: 0.875rem; }
.api-demo .form-group { margin-bottom: 1rem; }
.api-demo .form-label,
.api-docs .form-label { display: block; margin-bottom: 0.35rem; color: #c4b5d4; font-size: 0.875rem; }
.api-demo .form-input,
.api-docs .form-input { width: 100%; max-width: 600px; padding: 0.5rem 0.9rem; background: #1a0f24; border: 1px solid rgba(92, 61, 117, 0.6); border-radius: 8px; color: #e5e7eb; font-family: 'Lexend', system-ui, sans-serif; transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out; }
.api-demo .form-input:hover,
.api-docs .form-input:hover { border-color: #6d4a88; }
.api-demo .form-input:focus,
.api-docs .form-input:focus { outline: none; border-color: #26C6DA; box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.25); }
.api-demo .btn-primary { padding: 0.5rem 1rem; background: #26C6DA; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; transition: background 0.28s ease-out, transform 0.28s ease-out, box-shadow 0.28s ease-out; }
.api-demo .btn-primary:hover { background: #461B65; }
.api-demo .btn-link,
.api-docs .btn-link { background: transparent; border: none; color: #c4a8d8; cursor: pointer; font-size: 0.8rem; padding: 0; }
.api-demo .btn-link:hover,
.api-docs .btn-link:hover { text-decoration: underline; color: #e5e7eb; }
.api-demo h3 { font-size: 0.95rem; color: #e5e7eb; margin: 1rem 0 0.5rem; }
.api-demo__cashin-form { margin-top: 1rem; max-width: 520px; }
.api-demo__cashin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.api-demo__form-group { margin-bottom: 1rem; }
.api-demo__form-group label { display: block; margin-bottom: 0.35rem; color: #9ca3af; font-size: 0.875rem; }
.api-demo__input { width: 100%; max-width: 100%; padding: 0.5rem 0.9rem; background: #1a0f24; border: 1px solid rgba(92, 61, 117, 0.6); border-radius: 8px; color: #e5e7eb; font-size: 0.875rem; font-family: 'Lexend', system-ui, sans-serif; transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out; }
.api-demo__input:hover { border-color: #6d4a88; }
.api-demo__input:focus { outline: none; border-color: #26C6DA; box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.25); }
.api-demo__field-hint { font-size: 0.8rem; color: #9ca3af; margin-top: 0.35rem; margin-bottom: 0; line-height: 1.4; }
.api-demo__field-hint code { font-size: 0.75rem; background: #0d0614; padding: 0.1rem 0.3rem; border-radius: 3px; }
.api-demo__required { color: #f87171; }
.api-demo__btn-primary { padding: 0.5rem 1rem; background: #26C6DA; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; margin-top: 0.25rem; transition: background 0.28s ease-out, transform 0.28s ease-out, box-shadow 0.28s ease-out; }
.api-demo__btn-primary:hover { background: #461B65; }
.api-demo__btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.api-demo__cashin-result { margin-top: 1rem; padding: 0.875rem 1rem; border-radius: 8px; font-size: 0.875rem; line-height: 1.5; display: none; }
.api-demo__cashin-result.is-success { display: block; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }
.api-demo__cashin-result.is-success a { color: #67e8f9; }
.api-demo__cashin-result.is-success code { background: #0d0614; padding: 0.15rem 0.4rem; border-radius: 4px; }
.api-demo__cashin-result.is-error { display: block; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.api-demo__cashin-qr-wrap { margin: 0.75rem 0; }
.api-demo__cashin-qr { display: block; max-width: 200px; height: auto; background: #fff; padding: 8px; border-radius: 6px; }
.api-demo__cashin-qr-url { font-size: 0.85rem; margin: 0.5rem 0; word-break: break-all; }
.api-demo__cashin-qr-url a { color: #67e8f9; }
.api-demo__cashout-type-fields { margin-top: 0.5rem; }
@media (max-width: 560px) { .api-demo__cashin-row { grid-template-columns: 1fr; } }
.api-demo__listbank-actions { margin-top: 1rem; }
.api-demo__listbank-result { margin-top: 1rem; display: none; }
.api-demo__listbank-result:not(:empty) { display: block; }
.api-demo__listbank-pre { background: #0d0614; border: 1px solid #5c3d75; border-radius: 6px; padding: 1rem; overflow-x: auto; font-size: 0.8rem; line-height: 1.5; margin: 0; }
.api-demo__listbank-pre code { color: #a5f3fc; white-space: pre; }
.api-demo__listbank-msg { font-size: 0.875rem; margin: 0; padding: 0.5rem 0; }
.api-demo__listbank-msg--error { color: #fca5a5; }

/* List pages (deposits, withdrawals) */
.list-page__breadcrumb { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.5rem; }
.list-page__breadcrumb a { color: #b89bc9; text-decoration: none; }
.list-page__breadcrumb a:hover { text-decoration: underline; }
.list-page__breadcrumb .sep { margin: 0 0.35rem; color: #6b7280; }
.list-page__toolbar { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.list-page__filter-label { font-size: 0.875rem; color: #9ca3af; margin-right: 0.5rem; }
.list-page__select { padding: 0.5rem 0.9rem; background: #1a0f24; border: 1px solid rgba(92, 61, 117, 0.6); border-radius: 8px; color: #e5e7eb; font-size: 0.875rem; font-family: 'Lexend', system-ui, sans-serif; transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out; }
.list-page__select:hover { border-color: #6d4a88; }
.list-page__select:focus { outline: none; border-color: #26C6DA; box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.25); }
.list-page__btn { padding: 0.4rem 1rem; background: #26C6DA; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 0.875rem; transition: background 0.28s ease-out, transform 0.28s ease-out, box-shadow 0.28s ease-out; }
.list-page__btn:hover { background: #461B65; }
.list-page__tabs { display: flex; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; border-bottom: 1px solid #5c3d75; }
.list-page__tabs .list-page__tab { padding: 0.55rem 1.1rem; color: #9ca3af; text-decoration: none; border-radius: 8px 8px 0 0; font-size: 0.875rem; font-family: 'Lexend', system-ui, sans-serif; font-weight: 500; transition: background 0.25s ease-out, color 0.25s ease-out, border-color 0.25s ease-out; }
.list-page__tabs .list-page__tab:hover { color: #e5e7eb; background: rgba(92, 61, 117, 0.4); }
.list-page__tabs .list-page__tab.active { color: #26C6DA; background: #1a0f24; border-bottom: 2px solid transparent; margin-bottom: -1px; box-shadow: inset 0 -2px 0 #26C6DA; }

/* Bank transactions ACB tabs - pill style */
.list-page--admin .list-page__tabs .list-page__tab {
  border-radius: 999px;
  border: 1px solid #374151;
  background: #111827;
  color: #9ca3af;
  min-width: 64px;
  text-align: center;
}
.list-page--admin .list-page__tabs .list-page__tab.active {
  background: #26C6DA;
  border-color: #26C6DA;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.6);
}
.list-page--admin .list-page__tabs .list-page__tab:hover:not(.active) {
  background: #1f2937;
  color: #e5e7eb;
}
.list-page__tab-panel { display: none; }
.list-page__tab-panel.active { display: block; }
.list-page__tab-desc { font-size: 0.875rem; color: #9ca3af; margin: 0 0 1rem; line-height: 1.5; }
.list-page__table-wrap { overflow-x: auto; margin: 0.5rem 0; }
.list-page__table { width: 100%; min-width: 480px; }
.list-page__ref { font-size: 0.8rem; word-break: break-all; }
.list-page__status { font-size: 0.8rem; padding: 0.2rem 0.5rem; border-radius: 4px; }
.list-page__status.status-success { background: #065f46; color: #6ee7b7; }
.list-page__status.status-failed { background: #7f1d1d; color: #fca5a5; }
.list-page__status.status-pending { background: rgba(70, 27, 101, 0.45); color: #67e8f9; }
.list-page__status.status-pending-approval { background: #78350f; color: #fcd34d; }
.amount-positive { color: #6ee7b7; }
.amount-negative { color: #fca5a5; }
.list-page__callback { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; cursor: help; }
.list-page__loading, .list-page__empty, .list-page__error { color: #9ca3af; font-size: 0.875rem; padding: 1rem; text-align: center; }
.list-page__empty-hint { font-size: 0.8rem; color: #6b7280; margin-top: 0.5rem; display: inline-block; }
.list-page__empty-hint a { color: #b89bc9; text-decoration: none; }
.list-page__empty-hint a:hover { text-decoration: underline; }
.list-page__error { color: #f87171; }
.list-page__meta { font-size: 0.8rem; color: #6b7280; margin-top: 0.75rem; }
.list-page__pagination {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}
.list-page__page-info {
  font-size: 0.8rem;
  color: #9ca3af;
}
.list-page__page-prev,
.list-page__page-next,
.list-page__load-more {
  padding: 0.35rem 0.75rem;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.list-page__page-prev:hover,
.list-page__page-next:hover,
.list-page__load-more:hover {
  background: #1f2937;
  border-color: #4b5563;
}
.list-page__page-prev:disabled,
.list-page__page-next:disabled {
  opacity: 0.4;
  cursor: default;
}
.list-page__btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.list-page__btn-danger { background: #dc2626; }
.list-page__btn-danger:hover { background: #b91c1c; }
.list-page__desc { color: #9ca3af; font-size: 0.875rem; margin: -0.5rem 0 1rem; }
/* Cột mô tả Biến động số dư: truncate + tooltip khi quá dài */
.list-page--balance-history .list-page__table td.list-page__desc {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}
.list-page__muted { color: #6b7280; }
.list-page__badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; }
.list-page__badge--success { background: #065f46; color: #6ee7b7; }
.list-page__badge--muted { background: #374151; color: #9ca3af; }

/* Admin user switch (Active/Inactive) */
.admin-user-switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.admin-user-switch input { opacity: 0; width: 0; height: 0; }
.admin-user-switch__slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #374151; border-radius: 22px; transition: 0.2s; }
.admin-user-switch__slider::before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background: #9ca3af; border-radius: 50%; transition: 0.2s; }
.admin-user-switch input:checked + .admin-user-switch__slider { background: #461B65; }
.admin-user-switch input:checked + .admin-user-switch__slider::before { transform: translateX(18px); background: #fff; }
.admin-user-switch input:focus + .admin-user-switch__slider { box-shadow: 0 0 0 2px #26C6DA; }
.admin-user-switch input:disabled + .admin-user-switch__slider { opacity: 0.6; cursor: not-allowed; }

/* Admin modal - Thêm user */
.admin-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.admin-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.admin-modal__content { position: relative; background: #241436; border: 1px solid #5c3d75; border-radius: 8px; padding: 1.5rem; min-width: 320px; max-width: 400px; max-height: 70vh; overflow-y: auto; }
.admin-modal__content--2col { max-width: 620px; }
.admin-modal__form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-bottom: 1.25rem; }
.admin-modal__title { margin: 0 0 1rem; font-size: 1.125rem; }
.admin-modal__form .form-group { margin-bottom: 0; }
.admin-modal__form-grid .form-group { margin-bottom: 0; }
.admin-modal__form .form-label { display: block; margin-bottom: 0.25rem; font-size: 0.875rem; color: #9ca3af; }
.admin-modal__form .form-input { width: 100%; padding: 0.5rem 0.9rem; background: #1a0f24; border: 1px solid rgba(92, 61, 117, 0.6); border-radius: 8px; color: #e5e7eb; font-size: 0.875rem; font-family: 'Lexend', system-ui, sans-serif; transition: border-color 0.2s, box-shadow 0.2s; }
.admin-modal__form .form-input:hover { border-color: #6d4a88; }
.admin-modal__form .form-input:focus { outline: none; border-color: #26C6DA; box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.25); }
.admin-modal__form .form-input--readonly { cursor: default; background: #241436; }
.admin-modal__actions { display: flex; gap: 0.75rem; margin-top: 0; padding-top: 1rem; border-top: 1px solid #5c3d75; justify-content: flex-end; }

/* ============================================
   Night theme: purple buttons + hover glow/scale
   ============================================ */
.dashboard-body.theme-dark .list-page__btn:not(.list-page__btn-danger),
.dashboard-body:not(.theme-light) .list-page__btn:not(.list-page__btn-danger) {
  background: linear-gradient(135deg, #5c2878 0%, #461B65 100%);
  border: 1px solid rgba(184, 155, 201, 0.35);
}
.dashboard-body.theme-dark .list-page__btn:not(.list-page__btn-danger):hover,
.dashboard-body:not(.theme-light) .list-page__btn:not(.list-page__btn-danger):hover {
  background: linear-gradient(135deg, #6d4a88 0%, #5c2878 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(92, 61, 117, 0.5);
}
.dashboard-body.theme-dark .api-demo .btn-primary,
.dashboard-body.theme-dark .api-demo__btn-primary,
.dashboard-body:not(.theme-light) .api-demo .btn-primary,
.dashboard-body:not(.theme-light) .api-demo__btn-primary {
  background: linear-gradient(135deg, #5c2878 0%, #461B65 100%);
  border: 1px solid rgba(184, 155, 201, 0.35);
}
.dashboard-body.theme-dark .api-demo .btn-primary:hover,
.dashboard-body.theme-dark .api-demo__btn-primary:hover,
.dashboard-body:not(.theme-light) .api-demo .btn-primary:hover,
.dashboard-body:not(.theme-light) .api-demo__btn-primary:hover {
  background: linear-gradient(135deg, #6d4a88 0%, #5c2878 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(92, 61, 117, 0.5);
}
.dashboard-body.theme-dark .api-key-row .btn-copy,
.dashboard-body:not(.theme-light) .api-key-row .btn-copy {
  background: linear-gradient(135deg, #5c2878 0%, #461B65 100%);
  border: 1px solid rgba(184, 155, 201, 0.3);
}
.dashboard-body.theme-dark .api-key-row .btn-copy:hover,
.dashboard-body:not(.theme-light) .api-key-row .btn-copy:hover {
  background: linear-gradient(135deg, #6d4a88 0%, #5c2878 100%);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(92, 61, 117, 0.45);
}
@media (max-width: 768px) {
  .dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 76px;
    bottom: 0;
    z-index: 90;
  }

  .dashboard-sidebar.collapsed {
    margin-left: -240px;
    width: 240px;
  }
}

/* ============================================
   Light theme (when .theme-light on body)
   ============================================ */
.dashboard-body.theme-light {
  background: var(--vp-day-bg);
  color: #0f172a;
  font-weight: 500;
}
.dashboard-body.theme-light .dashboard-header {
  background: var(--vp-day-bg);
  border-bottom-color: rgba(14, 99, 120, 0.22);
}
.dashboard-body.theme-light .dashboard-logo { color: #000; }
.dashboard-body.theme-light .dashboard-logo__title { font-weight: 700; color: #0f172a; }
.dashboard-body.theme-light .dashboard-logo__tagline { color: #64748b; }
.dashboard-body.theme-light .dashboard-header__user-name { color: #0f172a; }
.dashboard-body.theme-light .dashboard-header__toggle {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(14, 99, 120, 0.28);
  color: #334155;
}
.dashboard-body.theme-light .dashboard-header__toggle:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #000;
  border-color: rgba(38, 198, 218, 0.4);
}
.dashboard-body.theme-light .dashboard-header__lang-trigger {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(14, 99, 120, 0.28);
}
.dashboard-body.theme-light .dashboard-header__lang-trigger:hover {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(38, 198, 218, 0.45);
}
.dashboard-body.theme-light .dashboard-header__theme-track {
  border-color: rgba(100, 116, 139, 0.4);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(70, 27, 101, 0.18) 100%);
}
.dashboard-body.theme-light .dashboard-header__theme-switch[aria-checked="true"] .dashboard-header__theme-track {
  border-color: rgba(38, 198, 218, 0.55);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, rgba(38, 198, 218, 0.28) 100%);
}
.dashboard-body.theme-light .dashboard-header__theme-switch:focus-visible .dashboard-header__theme-track {
  box-shadow: 0 0 0 2px var(--vp-day-bg), 0 0 0 4px rgba(38, 198, 218, 0.5);
}
.dashboard-body.theme-light .dashboard-header__balance { color: #475569; }
.dashboard-body.theme-light .dashboard-header__balance #balance-value { color: #b45309; font-weight: 700; }
.dashboard-body.theme-light .dashboard-header__lang-dropdown,
.dashboard-body.theme-light .dashboard-header__dropdown {
  background: var(--vp-day-surface);
  border-color: rgba(14, 99, 120, 0.22);
}
.dashboard-body.theme-light .dashboard-header__dropdown-item { color: #0f172a; }
.dashboard-body.theme-light .dashboard-header__dropdown-item:hover { background: var(--vp-day-muted); color: #000; }
.dashboard-body.theme-light .dashboard-header__avatar {
  background: linear-gradient(145deg, #26C6DA 0%, #1a9cac 100%);
  border-color: rgba(14, 99, 120, 0.35);
  color: #0f172a;
}
.dashboard-body.theme-light .dashboard-header__avatar:hover {
  border-color: rgba(38, 198, 218, 0.55);
  box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.2);
  color: #000;
}
.dashboard-body.theme-light .dashboard-sidebar {
  background: var(--vp-day-bg);
  border-right-color: rgba(14, 99, 120, 0.22);
}
.dashboard-body.theme-light .dashboard-nav__label { color: #475569; font-weight: 600; }
.dashboard-body.theme-light .dashboard-nav__label--sub { border-top-color: rgba(14, 99, 120, 0.2); }
.dashboard-body.theme-light .dashboard-nav__item { color: #1e293b; font-weight: 500; }
.dashboard-body.theme-light .dashboard-nav__item:hover { background: var(--vp-day-muted); color: #000; }
.dashboard-body.theme-light .dashboard-nav__item--active { background: #26C6DA; color: #0f172a; }
.dashboard-body.theme-light .dashboard-nav__item--active .nav-icon--svg {
  color: #0f172a;
}
.dashboard-body.theme-light .dashboard-main { background: var(--vp-day-bg); }
.dashboard-body.theme-light .dashboard-page-title { color: #000; font-weight: 700; }
.dashboard-body.theme-light .dashboard-card {
  background: var(--vp-day-surface);
  border-color: rgba(14, 99, 120, 0.22);
}
.dashboard-body.theme-light .dashboard-card__title { color: #0f172a; font-weight: 600; }
.dashboard-body.theme-light .dashboard-index__breadcrumb { color: #475569; font-weight: 500; }
.dashboard-body.theme-light .dashboard-index__breadcrumb a { color: #1a9cac; font-weight: 500; }
.dashboard-body.theme-light .dashboard-index__field label { color: #334155; font-weight: 500; }
.dashboard-body.theme-light .dashboard-index__input {
  background: var(--vp-day-surface);
  border-color: rgba(14, 99, 120, 0.28);
  color: #0f172a;
  font-weight: 500;
}
.dashboard-body.theme-light .dashboard-index__btn--primary { background: #26C6DA; color: #0f172a; }
.dashboard-body.theme-light .dashboard-index__btn--primary:hover { background: #1fbad4; color: #0f172a; }
.dashboard-body.theme-light .dashboard-index__btn--secondary { background: rgba(255, 255, 255, 0.45); color: #0f172a; font-weight: 500; }
.dashboard-body.theme-light .dashboard-index__btn--secondary:hover { background: var(--vp-day-muted); color: #000; }
.dashboard-body.theme-light .dashboard-index__kpi {
  background: var(--vp-day-surface);
  border-color: rgba(14, 99, 120, 0.22);
}
.dashboard-body.theme-light .dashboard-index__kpi--balance { border-color: #26C6DA; }
.dashboard-body.theme-light .dashboard-index__kpi-label { color: #334155; font-weight: 500; }
.dashboard-body.theme-light .dashboard-index__kpi-value { color: #b45309; font-weight: 700; }
.dashboard-body.theme-light .dashboard-index__kpi--balance .dashboard-index__kpi-value { color: #1a9cac; font-weight: 700; }
.dashboard-body.theme-light .dashboard-index__fee-row { border-bottom-color: rgba(14, 99, 120, 0.2); }
.dashboard-body.theme-light .dashboard-index__fee-label { color: #475569; }
.dashboard-body.theme-light .dashboard-index__fee-value { color: #b45309; }
.dashboard-body.theme-light .dashboard-index__fee-value--zero { color: #059669; }
.dashboard-body.theme-light .dashboard-index__stat-label { color: #334155; font-weight: 500; }
.dashboard-body.theme-light .dashboard-index__stat-value { color: #0f172a; font-weight: 600; }
.dashboard-body.theme-light .dashboard-index__loading { background: rgba(149, 234, 245, 0.92); color: #1e293b; font-weight: 500; }
.dashboard-body.theme-light .dashboard-footer {
  background: var(--vp-day-bg);
  border-top-color: rgba(14, 99, 120, 0.22);
  color: #334155;
  font-weight: 500;
}
.dashboard-body.theme-light .profile-page .form-label,
.dashboard-body.theme-light .profile-page .form-input { color: #0f172a; border-color: rgba(14, 99, 120, 0.28); background: var(--vp-day-surface); font-weight: 500; }
.dashboard-body.theme-light .profile-page .btn-primary { background: #26C6DA; color: #0f172a; }
.dashboard-body.theme-light .profile-page .btn-primary:hover { background: #1fbad4; color: #0f172a; transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 14px rgba(38, 198, 218, 0.35); }

.dashboard-body.theme-light .profile-v2__hero { background: linear-gradient(135deg, rgba(38, 198, 218, 0.12) 0%, rgba(14, 99, 120, 0.08) 100%); border-color: rgba(14, 99, 120, 0.25); }
.dashboard-body.theme-light .profile-v2__avatar { background: linear-gradient(145deg, #26C6DA 0%, #1a9cac 100%); border-color: rgba(14, 99, 120, 0.35); }
.dashboard-body.theme-light .profile-v2__title { color: #0f172a; }
.dashboard-body.theme-light .profile-v2__subtitle { color: #475569; }
.dashboard-body.theme-light .profile-v2__nav { background: var(--vp-day-surface); border-color: rgba(14, 99, 120, 0.2); }
.dashboard-body.theme-light .profile-v2__nav-item { color: #64748b; }
.dashboard-body.theme-light .profile-v2__nav-item:hover { background: rgba(38, 198, 218, 0.12); color: #0f172a; }
.dashboard-body.theme-light .profile-v2__nav-item--active { background: rgba(38, 198, 218, 0.2); color: #0f172a; }
.dashboard-body.theme-light .profile-v2__panel-inner { background: var(--vp-day-surface); border-color: rgba(14, 99, 120, 0.22); }
.dashboard-body.theme-light .profile-v2__panel-title { color: #0f172a; }
.dashboard-body.theme-light .profile-v2__label { color: #475569; }
.dashboard-body.theme-light .profile-v2__input { background: #fff; border-color: rgba(14, 99, 120, 0.28); color: #0f172a; }
.dashboard-body.theme-light .profile-v2__input:focus { border-color: #26C6DA; }
.dashboard-body.theme-light .profile-v2__hint { color: #64748b; }
.dashboard-body.theme-light .profile-v2__btn--primary { background: linear-gradient(135deg, #26C6DA 0%, #1a9cac 100%); color: #0f172a; border-color: rgba(14, 99, 120, 0.3); }
.dashboard-body.theme-light .profile-v2__btn--primary:hover { background: linear-gradient(135deg, #1fbad4 0%, #26C6DA 100%); transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 14px rgba(38, 198, 218, 0.35); }
.dashboard-body.theme-light .list-page__btn:not(.list-page__btn-danger) { background: #26C6DA; color: #0f172a; border: none; }
.dashboard-body.theme-light .list-page__btn:not(.list-page__btn-danger):hover { background: #1fbad4; transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 14px rgba(38, 198, 218, 0.35); }
.dashboard-body.theme-light .api-demo .btn-primary,
.dashboard-body.theme-light .api-demo__btn-primary { background: #26C6DA; color: #0f172a; border: none; }
.dashboard-body.theme-light .api-demo .btn-primary:hover,
.dashboard-body.theme-light .api-demo__btn-primary:hover { background: #1fbad4; transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 14px rgba(38, 198, 218, 0.35); }
.dashboard-body.theme-light .api-key-row .btn-copy { background: #26C6DA; color: #0f172a; border: none; }
.dashboard-body.theme-light .api-key-row .btn-copy:hover { background: #1fbad4; transform: scale(1.05); box-shadow: 0 2px 8px rgba(38, 198, 218, 0.35); }
.dashboard-body.theme-light .api-doc-block,
.dashboard-body.theme-light .api-demo .form-input,
.dashboard-body.theme-light .api-docs .form-input,
.dashboard-body.theme-light .api-demo .api-doc-block__json,
.dashboard-body.theme-light .api-doc-block__example { background: var(--vp-day-surface); border-color: rgba(14, 99, 120, 0.22); color: #0f172a; font-weight: 500; }
.dashboard-body.theme-light .api-doc-block__title,
.dashboard-body.theme-light .api-demo h3 { color: #0f172a; font-weight: 600; }
.dashboard-body.theme-light .api-doc-block code,
.dashboard-body.theme-light .api-doc-block__json { color: #047857; font-weight: 500; }
.dashboard-body.theme-light .api-doc-block__label,
.dashboard-body.theme-light .api-demo .form-label,
.dashboard-body.theme-light .api-docs .form-label { color: #334155; font-weight: 500; }
/* Theme ngày: nền ngọc bích — code block tương phản nhẹ */
.dashboard-body.theme-light .api-demo__base-url .api-desc code,
.dashboard-body.theme-light .api-doc-list code,
.dashboard-body.theme-light .api-doc-block code,
.dashboard-body.theme-light .api-demo__field-hint code,
.dashboard-body.theme-light .api-demo__cashin-result.is-success code {
  background: var(--vp-day-muted);
  color: #0f172a;
  border: 1px solid rgba(14, 99, 120, 0.28);
}
.dashboard-body.theme-light .api-doc-block__example,
.dashboard-body.theme-light .api-doc-block__json {
  background: var(--vp-day-muted);
  border-color: rgba(14, 99, 120, 0.28);
  color: #0f172a;
}
.dashboard-body.theme-light .api-doc-table th,
.dashboard-body.theme-light .api-table th {
  background: #e0f2fe;
  color: #0c4a6e;
  font-weight: 600;
  border-color: rgba(14, 99, 120, 0.2);
}
.dashboard-body.theme-light .api-doc-table td,
.dashboard-body.theme-light .api-table td {
  color: #0f172a;
  font-weight: 500;
  border-color: rgba(14, 99, 120, 0.15);
}
.dashboard-body.theme-light .api-table tbody tr:hover td { background: rgba(38, 198, 218, 0.08); }
.dashboard-body.theme-light .api-table tbody tr:nth-child(even) td { background: #f8fafc; }
.dashboard-body.theme-light .api-table tbody tr:nth-child(even):hover td { background: rgba(38, 198, 218, 0.12); }
.dashboard-body.theme-light .api-code,
.dashboard-body.theme-light .api-demo__listbank-pre {
  background: var(--vp-day-muted);
  border-color: rgba(14, 99, 120, 0.28);
}
.dashboard-body.theme-light .api-code code,
.dashboard-body.theme-light .api-demo__listbank-pre code {
  background: transparent;
  color: #0f172a;
}
.dashboard-body.theme-light .api-demo__tab { color: #1e293b; border-color: rgba(14, 99, 120, 0.22); font-weight: 500; }
.dashboard-body.theme-light .api-demo__tab:hover { color: #000; background: var(--vp-day-muted); }
.dashboard-body.theme-light .api-demo__tab.active { background: #26C6DA; color: #0f172a; border-color: #26C6DA; }
.dashboard-body.theme-light .api-desc { color: #334155; font-weight: 500; }
.dashboard-body.theme-light .list-page__select,
.dashboard-body.theme-light .list-page__tabs .list-page__tab { color: #0f172a; border-color: rgba(14, 99, 120, 0.25); background: #ffffff; font-weight: 500; }
.dashboard-body.theme-light .list-page__select:hover { border-color: rgba(14, 99, 120, 0.45); }
.dashboard-body.theme-light .list-page__select:focus { border-color: #26C6DA; box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.2); }
.dashboard-body.theme-light .list-page__tabs .list-page__tab:hover { color: #000; background: #e0f2fe; }
.dashboard-body.theme-light .list-page__tabs .list-page__tab.active { background: #ffffff; color: #0e7490; box-shadow: inset 0 -2px 0 #26C6DA; }
.dashboard-body.theme-light .list-page__filter-label,
.dashboard-body.theme-light .list-page__breadcrumb { color: #334155; font-weight: 500; }
.dashboard-body.theme-light .admin-modal__content { background: var(--vp-day-surface); border-color: rgba(14, 99, 120, 0.22); }
.dashboard-body.theme-light .admin-modal__actions { border-top-color: rgba(14, 99, 120, 0.22); }
.dashboard-body.theme-light .admin-modal__title { color: #0f172a; font-weight: 600; }
.dashboard-body.theme-light .admin-modal .form-label { color: #334155; font-weight: 500; }
.dashboard-body.theme-light .admin-modal .form-input { background: var(--vp-day-bg); border-color: rgba(14, 99, 120, 0.28); color: #0f172a; font-weight: 500; }
.dashboard-body.theme-light .admin-modal .form-input--readonly { background: var(--vp-day-muted); }
.dashboard-body.theme-light .dashboard-contact-sticky {
  background: #26C6DA;
  box-shadow: 0 2px 12px rgba(38, 198, 218, 0.4);
}
.dashboard-body.theme-light .dashboard-contact-sticky:hover {
  box-shadow: 0 4px 16px rgba(38, 198, 218, 0.5);
}
.dashboard-body.theme-light .api-demo__cashin-qr {
  background: var(--vp-day-surface);
}
.dashboard-body.theme-light .btn-scroll-top {
  border-color: rgba(14, 99, 120, 0.35);
  color: #1a9cac;
}
.dashboard-body.theme-light .btn-scroll-top:hover {
  background: rgba(38, 198, 218, 0.25);
  color: #0f172a;
}

/* Tài liệu API — layout doc + TOC (khác trang tab cũ) */
.api-docs { margin-bottom: 2.5rem; max-width: 100%; }
.api-docs__breadcrumb.list-page__breadcrumb { margin-bottom: 1rem; }
.api-docs__hero {
  position: relative;
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 1.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(70, 27, 101, 0.55) 0%, rgba(26, 15, 36, 0.95) 45%, rgba(14, 99, 120, 0.22) 100%);
  border: 1px solid rgba(103, 232, 249, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.api-docs__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(38, 198, 218, 0.12), transparent 55%);
  pointer-events: none;
}
.api-docs__title { margin: 0 0 0.5rem; position: relative; z-index: 1; }
.api-docs__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 52rem;
  position: relative;
  z-index: 1;
}
.api-docs__hero-link { color: #67e8f9; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(103, 232, 249, 0.45); }
.api-docs__hero-link:hover { color: #a5f3fc; border-bottom-color: #a5f3fc; }
.api-docs__layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}
.api-docs__toc {
  position: sticky;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(13, 6, 20, 0.85);
  border: 1px solid rgba(92, 61, 117, 0.55);
  font-size: 0.78rem;
}
.api-docs__toc-label {
  font-family: var(--dash-nav-font-label);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.api-docs__toc a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  transition: color 0.15s, border-color 0.15s;
}
.api-docs__toc a:hover { color: #67e8f9; border-left-color: rgba(103, 232, 249, 0.6); }
.api-docs__main { min-width: 0; }
.api-docs__section { scroll-margin-top: 1rem; }
.api-docs__card { margin-bottom: 1.25rem; }
.api-docs__card--accent {
  border-color: rgba(38, 198, 218, 0.35);
  background: linear-gradient(160deg, rgba(26, 15, 36, 0.98) 0%, rgba(20, 12, 32, 0.92) 100%);
}
.api-docs__mono { font-size: 0.9rem; word-break: break-all; }
.api-docs__endpoint-list { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.api-docs__endpoint-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(92, 61, 117, 0.25);
  font-size: 0.875rem;
}
.api-docs__endpoint-list li:last-child { border-bottom: none; }
.api-docs__method {
  display: inline-block;
  min-width: 2.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-align: center;
}
.api-docs__method--get { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.api-docs__method--post { background: rgba(59, 130, 246, 0.22); color: #93c5fd; }

/* Demo API — 2 cột nạp / rút, không dùng tab */
.api-playground { margin-bottom: 2.5rem; }
.api-playground__breadcrumb.list-page__breadcrumb { margin-bottom: 1rem; }
.api-playground__hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(92, 61, 117, 0.45);
}
.api-playground__title { margin: 0 0 0.5rem; }
.api-playground__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 42rem;
}
.api-playground__lead a { color: #67e8f9; font-weight: 600; text-decoration: none; }
.api-playground__lead a:hover { text-decoration: underline; }
.api-playground__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .api-docs__layout { grid-template-columns: 1fr; }
  .api-docs__toc {
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .api-docs__toc-label { width: 100%; }
  .api-playground__grid { grid-template-columns: 1fr; }
}
.api-playground__panel {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(13, 6, 20, 0.65);
  border: 1px solid rgba(92, 61, 117, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.api-playground__panel--in {
  border-color: rgba(38, 198, 218, 0.35);
  box-shadow: 0 8px 32px rgba(38, 198, 218, 0.08);
}
.api-playground__panel--out {
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow: 0 8px 32px rgba(251, 146, 60, 0.06);
}
.api-playground__panel-head {
  padding: 1.1rem 1.25rem 0.85rem;
  background: linear-gradient(180deg, rgba(26, 15, 36, 0.95) 0%, rgba(18, 10, 28, 0.88) 100%);
}
.api-playground__panel--in .api-playground__panel-head {
  border-bottom: 1px solid rgba(38, 198, 218, 0.22);
}
.api-playground__panel--out .api-playground__panel-head {
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
}
.api-playground__panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.api-playground__panel--in .api-playground__panel-icon {
  background: rgba(38, 198, 218, 0.18);
  color: #67e8f9;
}
.api-playground__panel--out .api-playground__panel-icon {
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
}
.api-playground__panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
}
.api-playground__panel-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #9ca3af;
}
.api-playground__panel-desc code {
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #a5f3fc;
}
.api-playground__panel-desc a { color: #67e8f9; }
.api-playground__panel-body { padding: 1rem 1.25rem 1.25rem; }

.dashboard-body.theme-light .api-docs__hero {
  background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 50%, #fef3c7 100%);
  border-color: rgba(14, 99, 120, 0.22);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
.dashboard-body.theme-light .api-docs__hero::before {
  background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(38, 198, 218, 0.2), transparent 55%);
}
.dashboard-body.theme-light .api-docs__lead { color: #334155; }
.dashboard-body.theme-light .api-docs__toc {
  background: #ffffff;
  border-color: rgba(14, 99, 120, 0.2);
}
.dashboard-body.theme-light .api-docs__toc a { color: #334155; }
.dashboard-body.theme-light .api-docs__toc a:hover { color: #0e7490; border-left-color: #26C6DA; }
.dashboard-body.theme-light .api-docs__card--accent {
  border-color: rgba(14, 99, 120, 0.25);
  background: #ffffff;
}
.dashboard-body.theme-light .api-playground__hero { border-bottom-color: rgba(14, 99, 120, 0.18); }
.dashboard-body.theme-light .api-playground__lead { color: #334155; }
.dashboard-body.theme-light .api-playground__panel {
  background: #ffffff;
  border-color: rgba(14, 99, 120, 0.2);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.dashboard-body.theme-light .api-playground__panel-head {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.dashboard-body.theme-light .api-playground__panel--in .api-playground__panel-head { border-bottom-color: rgba(14, 99, 120, 0.2); }
.dashboard-body.theme-light .api-playground__panel--out .api-playground__panel-head { border-bottom-color: rgba(234, 88, 12, 0.2); }
.dashboard-body.theme-light .api-playground__panel-title { color: #0f172a; }
.dashboard-body.theme-light .api-playground__panel-desc { color: #64748b; }
.dashboard-body.theme-light .api-playground__panel-desc code { background: #e2e8f0; color: #0e7490; }

/* Input/select trong Demo API + Tài liệu — theme sáng */
.dashboard-body.theme-light .api-demo__input,
.dashboard-body.theme-light .api-playground .api-demo__input {
  background: #ffffff;
  border-color: rgba(14, 99, 120, 0.25);
  color: #0f172a;
}
.dashboard-body.theme-light .api-demo__input:hover,
.dashboard-body.theme-light .api-playground .api-demo__input:hover {
  border-color: rgba(14, 99, 120, 0.4);
}
.dashboard-body.theme-light .api-demo__input::placeholder {
  color: #64748b;
}
.dashboard-body.theme-light .api-demo__form-group label,
.dashboard-body.theme-light .api-playground .api-demo__form-group label {
  color: #334155;
}

/* Admin config page */
.config-block { margin-bottom: 2rem; }
.config-block__title { font-size: 1rem; color: #e5e7eb; margin: 0 0 0.5rem; }
.config-block__desc { color: #9ca3af; font-size: 0.875rem; margin: 0 0 1rem; }
.config-block__toolbar { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.config-block__toolbar--ips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.config-ips-list { list-style: none; padding: 0; margin: 0; }
.config-ips-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.9rem; background: #1a0f24; border: 1px solid #5c3d75; border-radius: 8px; margin-bottom: 0.5rem; transition: background 0.15s, border-color 0.15s; }
.config-ips-item:hover { background: #241436; border-color: #6d4a88; }
.config-ips-value { font-family: ui-monospace, 'SF Mono', monospace; font-size: 0.875rem; color: #e5e7eb; letter-spacing: 0.02em; flex-shrink: 0; }
.config-ips-desc { font-size: 0.8125rem; color: #9ca3af; margin-left: 0.25rem; }
.config-ips-empty, .config-ips-loading { color: #9ca3af; font-size: 0.875rem; padding: 1rem; }

/* Config page - theme ban ngày */
.dashboard-body.theme-light .config-block__title { color: #0f172a; font-weight: 600; }
.dashboard-body.theme-light .config-ips-item { background: #f1f5f9; border-color: rgba(14, 99, 120, 0.25); }
.dashboard-body.theme-light .config-ips-item:hover { background: #e2e8f0; border-color: rgba(14, 99, 120, 0.4); }
.dashboard-body.theme-light .config-ips-value { color: #0f172a; font-weight: 500; }
.dashboard-body.theme-light .config-ips-desc { color: #64748b; }
.dashboard-body.theme-light .config-ips-empty, .dashboard-body.theme-light .config-ips-loading { color: #64748b; }
