:root,
html[data-vuamxt-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #0b0e14;
  --theme-sidebar: #0f131d;
  --theme-header: rgba(15, 19, 29, 0.9);
  --theme-surface: #151b28;
  --theme-surface-2: #1a2233;
  --theme-surface-3: #212b40;
  --theme-input: #0d111a;
  --theme-terminal: #090c12;
  --theme-overlay: rgba(6, 9, 15, 0.78);
  --theme-text: #f1f5f9;
  --theme-text-secondary: #cbd5e1;
  --theme-text-muted: #8b9cb5;
  --theme-text-tertiary: #64748b;
  --theme-border: rgba(148, 163, 184, 0.13);
  --theme-border-strong: rgba(148, 163, 184, 0.23);
  --theme-primary: #f43f5e;
  --theme-primary-hover: #e11d48;
  --theme-success: #10b981;
  --theme-warning: #f59e0b;
  --theme-danger: #ef4444;
  --theme-info: #38bdf8;
  --bg: var(--theme-bg);
  --surface: var(--theme-surface);
  --surface-secondary: var(--theme-surface-2);
  --surface-elevated: var(--theme-surface-3);
  --surface-soft: rgba(148, 163, 184, 0.06);
  --text: var(--theme-text);
  --text-secondary: var(--theme-text-secondary);
  --text-muted: var(--theme-text-muted);
  --text-tertiary: var(--theme-text-tertiary);
  --border: var(--theme-border);
  --border-strong: var(--theme-border-strong);
  --primary: var(--theme-primary);
  --primary-hover: var(--theme-primary-hover);
  --primary-soft: rgba(244, 63, 94, 0.14);
  --success: var(--theme-success);
  --warning: var(--theme-warning);
  --danger: var(--theme-danger);
  --input-bg: var(--theme-input);
  --sidebar-bg: var(--theme-sidebar);
  --header-bg: var(--theme-header);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.34);
  --modal-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 64px rgba(0, 0, 0, 0.58);
}

html[data-vuamxt-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-secondary: #f8fafc;
  --surface-elevated: #f1f5f9;
  --surface-soft: rgba(15, 23, 42, 0.04);
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-tertiary: #64748b;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-soft: rgba(225, 29, 72, 0.1);
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --input-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  --accent-cyan: #0284c7;
  --accent-gold: #b45309;
  --neon-cyan: #0284c7;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.navbar {
  background: var(--header-bg);
}

.pc-sidebar {
  background: var(--sidebar-bg);
}

.card,
.acc-glass-card,
.dash-welcome,
.svc-card {
  box-shadow: var(--card-shadow);
}

.card-elevated {
  background: var(--surface-elevated);
  border-color: var(--border-strong);
  box-shadow: var(--modal-shadow);
}

.card-primary {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.08), var(--surface));
}

.card-success {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--surface));
}

.card-warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), var(--surface));
}

.card-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), var(--surface));
}

.card-info {
  border-color: rgba(56, 189, 248, 0.32);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), var(--surface));
}

.form-control {
  background: var(--input-bg);
}

html[data-vuamxt-theme="dark"] .navbar {
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

html[data-vuamxt-theme="dark"] .pc-sidebar {
  border-right-color: rgba(148, 163, 184, 0.15);
}

html[data-vuamxt-theme="dark"] .pc-sb-group {
  color: #6f809b;
}

html[data-vuamxt-theme="dark"] .pc-sb-item {
  color: #9aaac2;
}

html[data-vuamxt-theme="dark"] .pc-sb-item:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #f1f5f9;
}

html[data-vuamxt-theme="dark"] .pc-sb-item.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.38);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--primary);
}

html[data-vuamxt-theme="dark"] .pc-sb-code {
  background: #151b28;
  border-color: rgba(148, 163, 184, 0.16);
  color: #9aaac2;
}

html[data-vuamxt-theme="dark"] .dash-welcome {
  background: linear-gradient(145deg, #182032 0%, #141a28 100%);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-vuamxt-theme="dark"] .dash-quick-card {
  background: #151b28;
  border-color: rgba(148, 163, 184, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
}

html[data-vuamxt-theme="dark"] .dash-quick-card:hover {
  background: #1d2638;
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-vuamxt-theme="dark"] .dash-quick-card span {
  color: #8b9cb5;
}

html[data-vuamxt-theme="dark"] .svc-card {
  background: #151b28;
  border-color: rgba(148, 163, 184, 0.15);
}

html[data-vuamxt-theme="dark"] .svc-card:hover {
  background: #1a2233;
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-vuamxt-theme="dark"] .svc-card-btn {
  background: #1e273b;
  border-color: rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
}

html[data-vuamxt-theme="dark"] .acc-device-strip,
html[data-vuamxt-theme="dark"] .acc-topup-code-box,
html[data-vuamxt-theme="dark"] .acc-qr-stage,
html[data-vuamxt-theme="dark"] .profile-card-box,
html[data-vuamxt-theme="dark"] .auto-calc-box,
html[data-vuamxt-theme="dark"] .pkg-card {
  background: #101520;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-vuamxt-theme="dark"] .form-control {
  background: var(--theme-input);
  border-color: rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
}

html[data-vuamxt-theme="dark"] .form-control::placeholder {
  color: #70829e;
}

html[data-vuamxt-theme="dark"] .form-control:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.38);
}

html[data-vuamxt-theme="dark"] .form-control:focus {
  background: #0b0f18;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.22);
}

html[data-vuamxt-theme="dark"] .form-control:disabled,
html[data-vuamxt-theme="dark"] button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

html[data-vuamxt-theme="dark"] .btn-secondary,
html[data-vuamxt-theme="dark"] .topbar-quick-btn,
html[data-vuamxt-theme="dark"] .notif-btn,
html[data-vuamxt-theme="dark"] .acc-avatar-btn,
html[data-vuamxt-theme="dark"] .acc-copy-btn,
html[data-vuamxt-theme="dark"] .acc-ghost-btn {
  background: #1c2436;
  border-color: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

html[data-vuamxt-theme="dark"] .btn-secondary:hover,
html[data-vuamxt-theme="dark"] .topbar-quick-btn:hover,
html[data-vuamxt-theme="dark"] .notif-btn:hover,
html[data-vuamxt-theme="dark"] .acc-avatar-btn:hover,
html[data-vuamxt-theme="dark"] .acc-copy-btn:hover,
html[data-vuamxt-theme="dark"] .acc-ghost-btn:hover {
  background: #242f46;
  border-color: rgba(148, 163, 184, 0.36);
  color: #ffffff;
}

html[data-vuamxt-theme="dark"] .modal-overlay {
  background: var(--theme-overlay);
}

html[data-vuamxt-theme="dark"] .modal-content {
  background: #1a2234;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: var(--modal-shadow);
}

html[data-vuamxt-theme="dark"] .sc-music-drawer {
  background: rgba(24, 31, 47, 0.97);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: var(--modal-shadow);
}

html[data-vuamxt-theme="dark"] .sc-orb {
  background: rgba(24, 31, 47, 0.96);
  border-color: rgba(148, 163, 184, 0.28);
}

html[data-vuamxt-theme="dark"] #recoveryLogConsole,
html[data-vuamxt-theme="dark"] #orderLogList,
html[data-vuamxt-theme="dark"] #histLogContainer,
html[data-vuamxt-theme="dark"] .gb-raw-pre,
html[data-vuamxt-theme="dark"] .gb-token-box {
  background: var(--theme-terminal);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #d8e4f5;
  font-family: var(--font-mono);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.38);
}

html[data-vuamxt-theme="dark"] thead th {
  background: #121825;
  color: #94a3b8;
}

html[data-vuamxt-theme="dark"] tbody tr:hover {
  background: rgba(148, 163, 184, 0.06);
}

html[data-vuamxt-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html[data-vuamxt-theme="dark"] ::-webkit-scrollbar-track {
  background: #0d111a;
}

html[data-vuamxt-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #273248;
  border-radius: 999px;
}

html[data-vuamxt-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #384664;
}

html[data-vuamxt-theme="light"] .mobile-top-bar,
html[data-vuamxt-theme="light"] .mobile-bottom-dock,
html[data-vuamxt-theme="light"] .mobile-more-sheet {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

html[data-vuamxt-theme="light"] .pc-sb-item.active,
html[data-vuamxt-theme="light"] .dock-tab.active,
html[data-vuamxt-theme="light"] .btn-topup-amt.active {
  color: var(--primary);
}

html[data-vuamxt-theme="light"] .pc-sb-code {
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

html[data-vuamxt-theme="light"] .pc-sb-item.active .pc-sb-code {
  background: var(--primary);
  color: #ffffff;
}

html[data-vuamxt-theme="light"] .user-balance-chip,
html[data-vuamxt-theme="light"] .mobile-balance-pill,
html[data-vuamxt-theme="light"] .acc-wallet-balance,
html[data-vuamxt-theme="light"] .stat-value.green {
  color: #059669;
}

html[data-vuamxt-theme="light"] .btn-logout {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.25);
}

html[data-vuamxt-theme="light"] .badge,
html[data-vuamxt-theme="light"] .badge-auto,
html[data-vuamxt-theme="light"] .svc-tag {
  color: #be123c;
  background: rgba(225, 29, 72, 0.1);
}

html[data-vuamxt-theme="light"] .svc-tag.cyan {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.12);
}

html[data-vuamxt-theme="light"] .svc-tag.green {
  color: #047857;
  background: rgba(5, 150, 105, 0.12);
}

html[data-vuamxt-theme="light"] .svc-tag.gold {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
}

html[data-vuamxt-theme="light"] .garena-rule-notice,
html[data-vuamxt-theme="light"] .auto-notice-box {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(217, 119, 6, 0.3);
  color: #92400e;
}

html[data-vuamxt-theme="light"] .modal-content {
  background: var(--surface);
  color: var(--text);
}

html[data-vuamxt-theme="light"] .gb-subnav,
html[data-vuamxt-theme="light"] .gb-box,
html[data-vuamxt-theme="light"] .gb-result,
html[data-vuamxt-theme="light"] .gb-kv,
html[data-vuamxt-theme="light"] .gb-history-card {
  background: var(--surface-secondary);
  border-color: var(--border);
  color: var(--text);
}

html[data-vuamxt-theme="light"] .gb-subtab-btn,
html[data-vuamxt-theme="light"] .gb-mode-btn {
  color: var(--text-muted);
}

html[data-vuamxt-theme="light"] .gb-subtab-btn.active,
html[data-vuamxt-theme="light"] .gb-mode-btn.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

html[data-vuamxt-theme="light"] .gb-kv-val {
  color: var(--text);
}

html[data-vuamxt-theme="light"] .gb-raw-pre,
html[data-vuamxt-theme="light"] .gb-token-box,
html[data-vuamxt-theme="light"] #recoveryLogConsole,
html[data-vuamxt-theme="light"] #orderLogList,
html[data-vuamxt-theme="light"] #histLogContainer {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: var(--border-strong) !important;
}

html[data-vuamxt-theme="light"] .sc-orb {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

html[data-vuamxt-theme="light"] #scMusicOrb .sc-orb-gear {
  color: #0f172a;
}

html[data-vuamxt-theme="light"] #scMusicOrb .sc-gear-dot {
  border-color: #ffffff;
}

html[data-vuamxt-theme="light"] .sc-music-drawer {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

html[data-vuamxt-theme="light"] .sc-drawer-title,
html[data-vuamxt-theme="light"] .sc-hub-sec-title {
  color: var(--primary);
}

html[data-vuamxt-theme="light"] .sc-hub-item,
html[data-vuamxt-theme="light"] .sc-back-btn,
html[data-vuamxt-theme="light"] .sc-ctrl-btn,
html[data-vuamxt-theme="light"] .sc-presets button,
html[data-vuamxt-theme="light"] .sc-track-item {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

html[data-vuamxt-theme="light"] .sc-hub-sys-btn {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.25);
  color: #0f172a;
}

html[data-vuamxt-theme="light"] .sc-hub-sys-sub {
  color: #475569;
}

html[data-vuamxt-theme="light"] .sc-search-input {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
}

.vt-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vt-theme-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-secondary);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  min-height: 78px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.vt-theme-opt:hover {
  border-color: var(--primary);
}

.vt-theme-opt[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.vt-opt-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vt-opt-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.vt-theme-opt[aria-pressed="true"] .vt-opt-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.vt-opt-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.vt-opt-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.vt-preview-wrap {
  margin-top: 4px;
}

.vt-preview-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.vt-preview-box {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 62px 1fr;
  height: 132px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vt-preview-box[data-preview-theme="dark"] {
  background: #090b10;
  color: #f8fafc;
  --pv-sb: #111520;
  --pv-hd: #111520;
  --pv-card: #171c2b;
  --pv-inp: #0b0e15;
  --pv-bd: rgba(255, 255, 255, 0.1);
  --pv-tx2: #94a3b8;
  --pv-btn: #f43f5e;
}

.vt-preview-box[data-preview-theme="light"] {
  background: #f4f6fa;
  color: #0f172a;
  --pv-sb: #ffffff;
  --pv-hd: #ffffff;
  --pv-card: #ffffff;
  --pv-inp: #f8fafc;
  --pv-bd: rgba(15, 23, 42, 0.12);
  --pv-tx2: #475569;
  --pv-btn: #e11d48;
}

.vt-pv-sidebar {
  background: var(--pv-sb);
  border-right: 1px solid var(--pv-bd);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vt-pv-dot {
  height: 8px;
  border-radius: 4px;
  background: var(--pv-bd);
}

.vt-pv-dot.active {
  background: var(--pv-btn);
}

.vt-pv-main {
  display: flex;
  flex-direction: column;
}

.vt-pv-header {
  height: 24px;
  background: var(--pv-hd);
  border-bottom: 1px solid var(--pv-bd);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
}

.vt-pv-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vt-pv-card {
  background: var(--pv-card);
  border: 1px solid var(--pv-bd);
  border-radius: 7px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vt-pv-text {
  font-size: 10px;
  font-weight: 700;
}

.vt-pv-sub {
  font-size: 8.5px;
  color: var(--pv-tx2);
}

.vt-pv-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.vt-pv-input {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: var(--pv-inp);
  border: 1px solid var(--pv-bd);
}

.vt-pv-btn {
  height: 18px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--pv-btn);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 360px) {
  .vt-theme-grid {
    grid-template-columns: 1fr;
  }
  .vt-theme-opt {
    min-height: 54px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
