/* PowerX OneWallet panel — aligned with https://powerx.one/en/ */
:root {
  --pxw-void: #07050f;
  --pxw-void-2: #0d0a1f;
  --pxw-void-3: #14102a;
  --pxw-ink: #f4f0ff;
  --pxw-ink-dim: #aea8c8;
  --pxw-ink-mute: #6f6886;
  --pxw-line: rgba(255, 255, 255, 0.08);
  --pxw-line-2: rgba(255, 255, 255, 0.14);
  --pxw-violet: #9c6bff;
  --pxw-violet-soft: #b59aff;
  --pxw-blue: #6366f1;
  --pxw-cyan: #22d3ee;
  --pxw-green: #22c55e;
  --pxw-gold: #d4af37;
  --pxw-grad-violet: linear-gradient(135deg, #9c6bff 0%, #6366f1 100%);
  --pxw-grad-primary: linear-gradient(135deg, #9c6bff 0%, #6366f1 55%, #22d3ee 100%);
  --pxw-glow-violet: 0 0 60px rgba(156, 107, 255, 0.45);
  --pxw-bg: var(--pxw-void);
  --pxw-bg-soft: var(--pxw-void-2);
  --pxw-sidebar: rgba(7, 5, 15, 0.94);
  --pxw-sidebar-active: var(--pxw-grad-violet);
  --pxw-purple: var(--pxw-violet);
  --pxw-purple-dark: #7c3aed;
  --pxw-card: rgba(20, 16, 42, 0.72);
  --pxw-border: rgba(156, 107, 255, 0.22);
  --pxw-glow: rgba(156, 107, 255, 0.35);
  --pxw-text: var(--pxw-ink);
  --pxw-muted: var(--pxw-ink-dim);
  --pxw-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --pxw-font-display: "Syne", "Inter", sans-serif;
  --pxw-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pxw-sidebar-width: 248px;
  --pxw-radius: 14px;
  --pxw-radius-sm: 10px;
  --pxw-btn-h: 44px;
  --pxw-btn-h-sm: 36px;
  --pxw-input-h: 44px;
  --pxw-hover-bg: rgba(255, 255, 255, 0.05);
  --pxw-hover-border: rgba(156, 107, 255, 0.5);
}

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

body.pxw-panel-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--pxw-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--pxw-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(156, 107, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(99, 102, 241, 0.14), transparent 55%),
    radial-gradient(800px 600px at 50% 100%, rgba(246, 61, 238, 0.1), transparent 60%),
    var(--pxw-void);
  background-attachment: fixed;
  position: relative;
}

body.pxw-panel-body ::selection {
  background: rgba(156, 107, 255, 0.4);
  color: #fff;
}

.pxw-panel-body h1,
.pxw-panel-body h2,
.pxw-panel-body h3,
.pxw-panel-body .pxw-card-title,
.pxw-panel-body .pxw-balance-value,
.pxw-panel-body .pxw-topbar-heading,
.pxw-panel-body .pxw-sidebar-brand-text,
.pxw-panel-body .pxw-mall-tagline {
  font-family: var(--pxw-font-display);
  letter-spacing: -0.02em;
}

.pxw-panel-body .pxw-balance-label,
.pxw-panel-body .pxw-mall-balance-label {
  font-family: var(--pxw-font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.pxw-bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.pxw-bg-glow-purple {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 10%;
  background: rgba(156, 107, 255, 0.16);
}

.pxw-bg-glow-blue {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: 20%;
  background: rgba(99, 102, 241, 0.12);
}

.pxw-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.pxw-sidebar {
  width: var(--pxw-sidebar-width);
  flex-shrink: 0;
  background: var(--pxw-sidebar);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--pxw-line);
  padding: 20px 14px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
}

.pxw-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-decoration: none;
  color: #fff;
  padding: 0 8px;
}

.pxw-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 48%, #22d3ee 100%);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.pxw-brand-px1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111827;
  color: #d4af37;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.12);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.pxw-brand-px1-topbar {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.pxw-sidebar-brand-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pxw-ink);
  letter-spacing: -0.03em;
}

.pxw-sidebar-brand-text strong {
  font-weight: 700;
  color: #fff;
}

.pxw-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.pxw-sidebar-nav a,
.pxw-sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--pxw-radius-sm);
  background: transparent;
  color: var(--pxw-ink-dim);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pxw-sidebar-nav a i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--pxw-ink-mute);
  transition: color 0.2s ease;
}

.pxw-sidebar-nav a:hover,
.pxw-sidebar-nav button:hover {
  background: var(--pxw-hover-bg);
  color: var(--pxw-ink);
}

.pxw-sidebar-nav a:hover i,
.pxw-sidebar-nav a.active i {
  color: #fff;
}

.pxw-sidebar-nav a.active {
  background: var(--pxw-grad-violet);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--pxw-glow-violet);
}

.pxw-sidebar-logout {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--pxw-line);
}

.pxw-sidebar-logout button {
  color: #fca5a5;
}

.pxw-sidebar-logout button:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.pxw-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1035;
}

/* Main */
.pxw-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--pxw-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pxw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(7, 5, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pxw-line);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.pxw-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pxw-topbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--pxw-radius-sm);
  color: var(--pxw-text);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--pxw-line);
}

.pxw-topbar-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pxw-hover-border);
  color: var(--pxw-ink);
}

.pxw-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pxw-brand-icon-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
}

.pxw-topbar-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--pxw-ink);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pxw-topbar-title {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #94a3b8;
}

.pxw-topbar-title strong {
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pxw-topbar-title span {
  color: #94a3b8;
  -webkit-text-fill-color: #94a3b8;
}

.pxw-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pxw-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--pxw-line-2);
  border-radius: var(--pxw-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pxw-ink-mute);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pxw-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pxw-hover-border);
  color: var(--pxw-ink);
}

.pxw-content {
  padding: 22px 24px;
  flex: 1;
  width: 100%;
}

.pxw-alert {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--pxw-radius-sm);
  font-size: 13px;
}

.pxw-alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}

/* Cards */
.pxw-card {
  background: var(--pxw-card);
  border: 1px solid var(--pxw-line);
  border-radius: var(--pxw-radius);
  padding: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.pxw-card + .pxw-card {
  margin-top: 16px;
}

.pxw-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--pxw-ink);
  letter-spacing: -0.02em;
}

.pxw-card-title-tight {
  margin-bottom: 4px;
}

.pxw-card-sub {
  margin: -6px 0 14px;
  color: var(--pxw-ink-dim);
  font-size: 13px;
  line-height: 1.55;
}

.pxw-card-sub-flush {
  margin: 0;
}

/* Balance hero */
.pxw-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 45%),
    rgba(18, 18, 40, 0.82);
}

/* Page content width — shared across all panel pages */
.pxw-page-wrap {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Dashboard */
.pxw-dashboard {
  display: grid;
  gap: 0;
}

.pxw-mall-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.pxw-btn-mall-submit {
  width: 50%;
  min-width: 240px;
}

.pxw-dashboard .pxw-balance-card {
  margin-bottom: 0;
}

.pxw-balance-main {
  min-width: 0;
}

.pxw-dashboard-actions {
  margin: 14px 0 18px;
}

.pxw-balance-label {
  font-size: 10px;
  color: var(--pxw-ink-mute);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 500;
}

.pxw-balance-value {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--pxw-ink);
}

.pxw-balance-usd {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--pxw-ink-dim);
  font-weight: 400;
}

.pxw-coin-stack {
  position: relative;
  width: 118px;
  height: 92px;
  flex-shrink: 0;
}

.pxw-coin {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--pxw-gold);
  background: radial-gradient(circle at 28% 28%, #5c4a1f 0%, #2a2418 45%, #111 100%);
  border: 2px solid #d4af37;
  box-shadow:
    0 6px 18px rgba(212, 175, 55, 0.28),
    inset 0 2px 4px rgba(255, 255, 255, 0.12);
}

.pxw-coin-main {
  width: 68px;
  height: 68px;
  right: 6px;
  top: 4px;
  font-size: 14px;
  z-index: 3;
}

.pxw-coin-stack-2 {
  width: 52px;
  height: 52px;
  left: 8px;
  bottom: 6px;
  font-size: 11px;
  z-index: 2;
  opacity: 0.92;
}

.pxw-coin-stack-3 {
  width: 44px;
  height: 44px;
  left: 28px;
  bottom: 0;
  font-size: 9px;
  z-index: 1;
  opacity: 0.78;
}

.pxw-coin-sub {
  width: 40px;
  height: 40px;
  left: 0;
  bottom: 0;
  font-size: 10px;
  z-index: 1;
  opacity: 0.85;
}

/* Action buttons row */
.pxw-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pxw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--pxw-btn-h);
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-family: var(--pxw-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.pxw-btn-sm {
  min-height: var(--pxw-btn-h-sm);
  padding: 0 14px;
  font-size: 13px;
  border-radius: var(--pxw-radius-sm);
}

.pxw-btn-mt {
  margin-top: 14px;
}

.pxw-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.pxw-btn-rect {
  border-radius: var(--pxw-radius-sm);
}

.pxw-btn-dark {
  background: var(--pxw-grad-violet);
  color: #fff;
  border: 0;
  box-shadow: var(--pxw-glow-violet);
}

.pxw-btn-dark:hover {
  background: var(--pxw-grad-violet);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 80px rgba(156, 107, 255, 0.6);
}

.pxw-btn-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pxw-ink);
  border: 1px solid var(--pxw-line-2);
  box-shadow: none;
}

.pxw-btn-muted:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pxw-hover-border);
  color: var(--pxw-ink);
}

.pxw-btn-primary {
  background: var(--pxw-grad-violet);
  color: #fff;
  box-shadow: var(--pxw-glow-violet);
}

.pxw-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 80px rgba(156, 107, 255, 0.6);
  color: #fff;
}

.pxw-btn-light {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pxw-ink);
  border: 1px solid var(--pxw-line-2);
}

.pxw-btn-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pxw-hover-border);
  color: var(--pxw-ink);
}

.pxw-btn-orange {
  background: linear-gradient(135deg, var(--pxw-purple), var(--pxw-purple-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.28);
}

.pxw-btn-mall {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.32);
}

.pxw-btn-mall:hover {
  color: #fff;
}

.pxw-mall-form-actions .pxw-btn-mall-submit {
  width: 50%;
  min-width: 240px;
}

.pxw-btn-block { width: 100%; }

/* Mall transfer section */
.pxw-mall-card {
  margin-top: 0;
}

.pxw-mall-intro {
  min-width: 0;
  flex: 1;
}

.pxw-mall-tagline {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pxw-ink);
  line-height: 1.3;
}

.pxw-mall-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--pxw-ink-dim);
  max-width: 520px;
}

.pxw-mall-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pxw-mall-balance {
  text-align: right;
  flex-shrink: 0;
  min-width: 168px;
  padding: 12px 16px;
  border-radius: var(--pxw-radius-sm);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--pxw-border);
}

.pxw-mall-balance-label {
  font-size: 10px;
  color: var(--pxw-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.pxw-mall-balance-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--pxw-violet-soft);
  line-height: 1.2;
}

.pxw-mall-balance-usd {
  margin-top: 4px;
  font-size: 12px;
  color: var(--pxw-ink-mute);
}

.pxw-mall-balance-inline {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pxw-violet-soft);
}

.pxw-input {
  width: 100%;
  min-height: var(--pxw-input-h);
  padding: 0 14px;
  border-radius: var(--pxw-radius-sm);
  border: 1px solid var(--pxw-line-2);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--pxw-font-body);
  font-size: 14px;
  color: var(--pxw-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pxw-input::placeholder {
  color: var(--pxw-ink-mute);
}

.pxw-input:focus {
  outline: none;
  border-color: var(--pxw-hover-border);
  box-shadow: 0 0 0 3px rgba(156, 107, 255, 0.18);
}

.pxw-input option {
  background: #111827;
  color: #fff;
}

.pxw-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.pxw-quick-btn {
  min-height: 36px;
  border: 1px solid var(--pxw-line-2);
  border-radius: var(--pxw-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pxw-ink-dim);
  font-family: var(--pxw-font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pxw-quick-btn:hover,
.pxw-quick-btn.active {
  background: rgba(156, 107, 255, 0.12);
  border-color: var(--pxw-hover-border);
  color: var(--pxw-ink);
}

/* Tables / lists */
.pxw-txn-list {
  display: grid;
  gap: 0;
}

.pxw-txn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pxw-txn-item:last-child { border-bottom: 0; }

.pxw-txn-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--pxw-ink);
}

.pxw-txn-meta {
  font-size: 12px;
  color: var(--pxw-ink-mute);
}

.pxw-txn-amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.pxw-txn-amount.positive { color: var(--pxw-green); }
.pxw-txn-amount.negative { color: #f87171; }

/* Token grid */
.pxw-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.pxw-token-card {
  padding: 16px;
  border: 1px solid var(--pxw-border);
  border-radius: var(--pxw-radius);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pxw-token-card:hover {
  border-color: var(--pxw-hover-border);
  box-shadow: 0 12px 32px rgba(156, 107, 255, 0.14);
}

.pxw-token-symbol {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pxw-grad-violet);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.pxw-token-name {
  font-size: 13px;
  color: var(--pxw-ink-dim);
  margin-bottom: 4px;
}

.pxw-token-balance {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--pxw-ink);
  letter-spacing: -0.02em;
}

.pxw-token-usd {
  font-size: 12px;
  color: var(--pxw-ink-mute);
}

/* Settings */
.pxw-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pxw-setting-row:last-child { border-bottom: 0; }

.pxw-form-group {
  margin-bottom: 14px;
}

.pxw-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pxw-ink-dim);
}

.pxw-form-hint {
  margin-top: 5px;
  font-size: 12px;
  color: var(--pxw-ink-mute);
}

/* Responsive */
@media (max-width: 991px) {
  .pxw-sidebar {
    transform: translateX(-100%);
  }

  .pxw-sidebar.open {
    transform: translateX(0);
  }

  .pxw-sidebar-backdrop.show {
    display: block;
  }

  .pxw-main {
    margin-left: 0;
  }

  .pxw-balance-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .pxw-coin-stack {
    align-self: center;
  }

  .pxw-action-row {
    grid-template-columns: 1fr;
  }

  .pxw-quick-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pxw-page-wrap {
    width: 100%;
    max-width: none;
  }

  .pxw-btn-mall-submit,
  .pxw-mall-form-actions .pxw-btn-mall-submit {
    width: 100%;
    min-width: 0;
  }

  .pxw-mall-head {
    flex-direction: column;
    gap: 14px;
  }

  .pxw-mall-balance {
    width: 100%;
    text-align: left;
  }

  .pxw-balance-value {
    font-size: 30px;
  }

  .pxw-content {
    padding: 16px;
  }

  .pxw-topbar {
    padding: 10px 16px;
  }
}

@media (min-width: 992px) {
  .pxw-menu-toggle { display: none !important; }
}

/* Login modal — dark panel theme + height management */
.powerx-wallet-modal .modal-dialog {
  max-width: 400px;
  margin: 1rem auto;
}

.powerx-wallet-modal-dialog {
  max-height: calc(100vh - 2rem);
  display: flex;
  align-items: center;
}

.powerx-wallet-modal .modal-content {
  border: 0;
  background: transparent;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.powerx-wallet-modal .modal-header { border: 0; padding: 0; }
.powerx-wallet-modal .modal-body { padding: 0; }

.powerx-wallet-modal-content {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--pxw-line);
  border-radius: 18px;
  background-color: var(--pxw-void-2);
  background-image:
    radial-gradient(circle at 88% 8%, rgba(156, 107, 255, 0.22), transparent 38%),
    radial-gradient(circle at 12% 92%, rgba(99, 102, 241, 0.12), transparent 34%),
    linear-gradient(180deg, var(--pxw-void-3) 0%, var(--pxw-void-2) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  font-family: var(--pxw-font-body);
}

.powerx-wallet-modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pxw-void-2);
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
}

.powerx-wallet-modal-glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 180px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.powerx-wallet-modal-header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pxw-line);
  background: rgba(7, 5, 15, 0.95);
  user-select: none;
}

.powerx-wallet-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  justify-self: start;
}

.powerx-wallet-header-spacer {
  width: 32px;
  height: 1px;
  justify-self: end;
}

.powerx-wallet-modal-heading {
  margin: 0;
  text-align: center;
  font-family: var(--pxw-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--pxw-ink);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.powerx-wallet-modal-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 16px;
  background: rgba(7, 5, 15, 0.95);
  -webkit-overflow-scrolling: touch;
}

.powerx-wallet-brand {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 6px;
}

/* PX1 logo — circular asset */
.px1-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 0;
  vertical-align: middle;
}

.px1-logo-circle .px1-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
}

.px1-logo-circle-nav {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.px1-logo-circle-modal {
  width: 96px;
  height: 96px;
  display: flex;
  margin: 0 auto 14px;
  filter: drop-shadow(0 12px 32px rgba(156, 107, 255, 0.28));
}

.px1-logo-circle-modal .px1-logo-img {
  transform: none;
}

.px1-logo-circle-sidebar {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.powerx-wallet-welcome {
  margin: 0 0 6px;
  font-family: var(--pxw-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--pxw-ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.powerx-wallet-subtitle {
  margin: 0;
  color: var(--pxw-ink-dim);
  font-size: 14px;
}

.powerx-wallet-login-form {
  display: grid;
  gap: 10px;
}

.powerx-wallet-field { margin: 0; }
.powerx-wallet-field-password { position: relative; }

.powerx-wallet-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--pxw-line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pxw-ink);
  font-family: var(--pxw-font-body);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.powerx-wallet-field-password .powerx-wallet-input { padding-right: 42px; }

.powerx-wallet-input::placeholder { color: var(--pxw-ink-mute); }

.powerx-wallet-input:focus {
  outline: none;
  border-color: var(--pxw-hover-border);
  box-shadow: 0 0 0 3px rgba(156, 107, 255, 0.16);
}

.powerx-wallet-toggle-pwd {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--pxw-ink-mute);
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  transition: color 0.2s ease;
}

.powerx-wallet-toggle-pwd:hover {
  color: var(--pxw-ink);
}

.powerx-wallet-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--pxw-grad-violet);
  color: #fff;
  font-family: var(--pxw-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--pxw-glow-violet);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.powerx-wallet-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 80px rgba(156, 107, 255, 0.6);
}

.powerx-wallet-signup {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
}

.powerx-wallet-signup a {
  color: #fbbf24;
  font-weight: 600;
  text-decoration: none;
}

.powerx-wallet-signup a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.powerx-wallet-info {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(15, 15, 35, 0.92);
}

.powerx-wallet-info-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #c4b5fd;
  flex-shrink: 0;
  font-size: 16px;
}

.powerx-wallet-info strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.35;
}

.powerx-wallet-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

.powerx-wallet-modal .powerx-wallet-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fecaca;
  font-size: 13px;
}

.powerx-wallet-modal .powerx-wallet-alert p {
  margin: 0;
}

.powerx-wallet-modal-backdrop.show {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(8px);
}

.powerx-wallet-modal.show .modal-dialog {
  filter: none;
}

@media (max-width: 575px) {
  .powerx-wallet-modal .modal-dialog {
    max-width: calc(100vw - 1.25rem);
    margin: 0.625rem auto;
  }

  .powerx-wallet-modal-content {
    max-height: calc(100vh - 1.25rem);
    border-radius: 16px;
  }

  .powerx-wallet-modal-body {
    padding: 16px 16px 14px;
  }

  .powerx-wallet-welcome {
    font-size: 20px;
  }

  .px1-logo-circle-modal {
    width: 82px;
    height: 82px;
    margin-bottom: 12px;
  }
}

/* Header dropdown PX1 logo (main site) */
.main-nav .nav-menu .dropdown-item-featured,
.mobile-nav-list li a.mobile-nav-featured {
  display: inline-flex;
  align-items: center;
}

.px1-logo-circle-nav {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.main-nav .nav-menu .dropdown-item-featured {
  background: #faf6f0;
  border-radius: 0 0 11px 11px;
}

.mobile-nav-list li a.mobile-nav-featured {
  background: #faf6f0;
  border-radius: 10px;
  margin-top: 6px;
}
