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

:root {
  --bg: #090b10;
  --surface: #111520;
  --surface-elevated: #171c2b;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-tertiary: #64748b;
  --primary: #f43f5e;
  --primary-hover: #e11d48;
  --primary-soft: rgba(244, 63, 94, 0.14);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --accent-cyan: #38bdf8;
  --accent-gold: #fbbf24;
  --neon-cyan: #38bdf8;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --font-display: 'Plus Jakarta Sans', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-bg-fixed,
.v2-liquid-ambient {
  display: none;
}

.mobile-top-bar {
  display: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  z-index: 60;
  background: rgba(9, 11, 16, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: left 0.22s ease;
}

body.sidebar-collapsed .navbar {
  left: 72px;
}

.navbar .nav-brand {
  display: none;
}

.navbar .nav-links {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.v2-breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-tertiary);
}

.v2-breadcrumb-trail strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-quick-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.topbar-quick-btn:hover {
  color: var(--text);
  background: var(--surface-elevated);
  border-color: var(--border-strong);
}

.notif-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notif-btn:hover {
  background: var(--surface-elevated);
}

.notif-badge,
.mobile-icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-balance-chip {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.btn-logout {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.22);
}

.pc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 70;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transition: width 0.22s ease;
}

body.sidebar-collapsed .pc-sidebar {
  width: 72px;
  padding: var(--space-4) 10px;
}

.pc-sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px var(--space-4);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.pc-sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.pc-sb-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.pc-sb-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.sidebar-collapsed .pc-sb-title,
body.sidebar-collapsed .pc-sb-group,
body.sidebar-collapsed .pc-sb-label {
  display: none;
}

.pc-sb-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.pc-sb-toggle:hover {
  color: var(--text);
}

.pc-sb-group {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 12px 10px 4px;
}

.pc-sb-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pc-sb-item:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.pc-sb-item.active {
  background: var(--primary-soft);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fff;
}

.pc-sb-code {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pc-sb-item.active .pc-sb-code {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.container {
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + var(--space-6)) var(--space-6) var(--space-12);
  max-width: calc(1220px + var(--sidebar-w));
  transition: margin-left 0.22s ease;
}

body.sidebar-collapsed .container {
  margin-left: 72px;
  max-width: calc(1220px + 72px);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: HomeFadeIn 0.2s ease;
}

@keyframes HomeFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: var(--space-5);
}

.dash-welcome-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.dash-welcome-sub {
  font-size: 13.5px;
  color: var(--text-muted);
}

.dash-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.stat-card {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.stat-value.green { color: #34d399; }
.stat-value.gold { color: var(--accent-gold); }
.stat-value.blue { color: var(--accent-cyan); }
.stat-value.red { color: #f87171; }

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.dash-quick-card {
  padding: 14px 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.dash-quick-card:hover {
  transform: translateY(-2px);
  background: var(--surface-elevated);
  border-color: var(--border-strong);
}

.dash-quick-card strong {
  font-size: 13px;
  font-weight: 700;
}

.dash-quick-card span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.svc-showcase-wrap {
  margin-bottom: var(--space-6);
}

.svc-showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.svc-showcase-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.svc-showcase-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.svc-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.svc-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.svc-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-elevated);
}

.svc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.svc-tag {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  background: var(--primary-soft);
  color: #fda4af;
}

.svc-tag.cyan { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.svc-tag.green { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; }
.svc-tag.gold { background: rgba(251, 191, 36, 0.14); color: #fde68a; }

.svc-price-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
}

.svc-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.svc-card-foot {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.svc-card-btn {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.svc-card-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.badge,
.badge-auto {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-soft);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.garena-rule-notice,
.auto-notice-box {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fde68a;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.form-grid-balanced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.form-grid-balanced .form-group {
  margin-bottom: 0;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action .form-control {
  padding-right: 74px;
}

.input-action-btn {
  position: absolute;
  right: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.input-action-btn:hover {
  color: var(--text);
}

.btn-primary {
  width: 100%;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.16s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
}

.profile-card-box {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border-strong);
}

.profile-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.auto-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
  margin: 10px 0 var(--space-4);
}

.day-chip {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.day-chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.chip-days {
  font-size: 13.5px;
  font-weight: 700;
}

.chip-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.auto-calc-box {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.auto-calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.auto-calc-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auto-calc-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

.auto-calc-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-4);
}

.pkg-card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pkg-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.pkg-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.pkg-likes {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.pkg-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-gold);
}

.acc-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.acc-hero-grid,
.acc-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.acc-glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.acc-profile-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.acc-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.acc-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.acc-avatar-btn,
.acc-copy-btn,
.acc-ghost-btn {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.acc-avatar-btn:hover,
.acc-copy-btn:hover,
.acc-ghost-btn:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
}

.acc-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.acc-display-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.acc-vip-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.14);
  color: var(--accent-gold);
  font-size: 10.5px;
  font-weight: 800;
}

.acc-sub-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.acc-device-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.acc-device-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-device-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.acc-device-name {
  font-size: 13px;
  font-weight: 700;
}

.acc-device-detail {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.acc-device-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.acc-device-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-elevated);
  color: var(--text-muted);
}

.acc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34d399;
  font-weight: 600;
}

.acc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.acc-wallet-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
}

.acc-wallet-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.acc-wallet-balance {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 800;
  color: #34d399;
  margin-top: 4px;
}

.acc-topup-code-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.acc-topup-code-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 2px;
}

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

.acc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.acc-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.acc-section-sub {
  font-size: 12px;
  color: var(--text-tertiary);
}

.acc-amt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: var(--space-3);
}

.btn-topup-amt {
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-topup-amt.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: #fff;
}

.acc-qr-stage {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.acc-qr-frame {
  text-align: center;
  margin-bottom: var(--space-3);
}

.acc-qr-frame img {
  max-width: 220px;
  width: 100%;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 6px;
}

.acc-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.acc-bank-row span {
  color: var(--text-muted);
}

.acc-copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: var(--space-3) 0;
}

.acc-copy-grid .full {
  grid-column: 1 / -1;
}

.acc-confirm-btn {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--success);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: var(--space-3);
}

.acc-support-box {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.acc-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.acc-support-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-cyan);
  font-weight: 700;
}

.acc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.acc-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acc-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.table-scroll,
.acc-orders-scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  text-align: left;
  padding: 11px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tbody tr:hover {
  background: var(--surface-soft);
}

.status-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.status-success { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.status-pending { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.status-failed { background: rgba(239, 68, 68, 0.16); color: #f87171; }

.v2-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.v2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.v2-footer-links button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
}

.v2-footer-links button:hover {
  color: var(--text);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.mobile-more-backdrop,
.mobile-more-sheet,
.mobile-bottom-dock {
  display: none;
}

.security-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: rgba(220, 38, 38, 0.45);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(239, 68, 68, 0.75);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.security-toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.security-toast-icon { width: 22px; height: 22px; background: #ef4444; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.security-lock-screen { position: fixed; inset: 0; background: rgba(8, 4, 14, 0.94); backdrop-filter: blur(32px); z-index: 99999999; display: none; align-items: center; justify-content: center; padding: 24px; }
.security-lock-modal { max-width: 500px; width: 100%; background: var(--surface); border: 1px solid rgba(239, 68, 68, 0.6); border-radius: var(--radius-xl); padding: 34px 28px; text-align: center; }
.security-lock-icon-wrap { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; border: 2px solid rgba(239, 68, 68, 0.6); }
.security-lock-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #ff4d4f; margin-bottom: 10px; }
.security-lock-msg { font-size: 13.5px; color: #e2e8f0; margin-bottom: 16px; }
.security-lock-ip-chip { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(239, 68, 68, 0.2); color: #fca5a5; font-size: 11px; font-weight: 700; margin-bottom: 20px; }
.btn-reload { width: 100%; padding: 12px; border-radius: var(--radius-sm); border: none; background: #ef4444; color: #fff; font-weight: 700; cursor: pointer; }

.sc-music-root { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 10050; }
.sc-orb { position: fixed; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%; cursor: grab; border: 1px solid var(--border-strong); background: rgba(17, 21, 32, 0.94); backdrop-filter: blur(14px); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; }
.sc-music-drawer { position: fixed; width: 340px; max-width: calc(100vw - 20px); max-height: 470px; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease; background: rgba(17, 21, 32, 0.96); backdrop-filter: blur(20px); border: 1px solid var(--border-strong); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 11px; color: var(--text); }
.sc-music-drawer.open { pointer-events: auto; opacity: 1; transform: translateY(0); }
.sc-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-head-info { min-width: 0; flex: 1; }
.sc-drawer-title { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: #fda4af; }
.sc-drawer-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-close-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text-muted); cursor: pointer; }
.sc-progress-wrap { display: flex; flex-direction: column; gap: 5px; }
.sc-progress-times { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.sc-progress-slider, .sc-vol-wrap input[type="range"] { width: 100%; accent-color: var(--primary); height: 4px; cursor: pointer; }
.sc-controls-bar { display: flex; align-items: center; gap: 6px; }
.sc-ctrl-btn { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.sc-ctrl-btn.main { border: none; background: var(--primary); color: #fff; }
.sc-vol-wrap { flex: 1; min-width: 50px; display: flex; align-items: center; }
.sc-search-row { display: flex; gap: 6px; }
.sc-search-input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; color: var(--text); font-size: 12px; outline: none; }
.sc-search-btn { padding: 0 12px; border-radius: 8px; border: none; background: var(--primary-soft); color: #fda4af; font-size: 12px; font-weight: 700; cursor: pointer; }
.sc-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-presets button { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text-muted); font-size: 11px; cursor: pointer; }
.sc-track-list { display: flex; flex-direction: column; gap: 6px; max-height: 155px; overflow-y: auto; }
.sc-track-item { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; border: 1px solid transparent; background: var(--surface-soft); color: var(--text); text-align: left; cursor: pointer; width: 100%; }
.sc-track-item.active { background: var(--primary-soft); border-color: rgba(244, 63, 94, 0.4); }
.sc-track-item img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sc-track-meta { min-width: 0; flex: 1; }
.sc-track-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-track-artist { font-size: 10.5px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1180px) {
  .dash-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-hero-grid, .acc-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .pc-sidebar,
  .navbar {
    display: none;
  }

  .mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    z-index: 80;
    background: rgba(9, 11, 16, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
  }

  .mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .mobile-balance-pill {
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-icon-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .container {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 72px 14px 96px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dash-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .svc-showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid-balanced,
  .acc-form-grid,
  .auto-calc-grid {
    grid-template-columns: 1fr;
  }

  .acc-amt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card,
  .acc-glass-card,
  .dash-welcome {
    padding: 16px;
  }

  .mobile-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(5, 7, 12, 0.65);
    backdrop-filter: blur(6px);
  }

  .mobile-more-backdrop.open {
    display: block;
  }

  .mobile-more-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 76px;
    z-index: 98;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }

  .mobile-more-sheet.open {
    display: block;
  }

  .mobile-more-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
  }

  .mobile-more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-more-card {
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-more-card strong { font-size: 13px; }
  .mobile-more-card span { font-size: 11px; color: var(--text-tertiary); }

  .mobile-bottom-dock {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    padding: 5px;
    border-radius: var(--radius-lg);
    background: rgba(17, 21, 32, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
  }

  .dock-liquid-pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    border-radius: 11px;
    background: var(--primary-soft);
    border: 1px solid rgba(244, 63, 94, 0.4);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), width 0.24s ease;
    pointer-events: none;
    z-index: 0;
  }

  .dock-tab {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 9px 2px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dock-tab.active {
    color: #fff;
  }
}
