/* NemesisPay — Gamer Prestige Theme */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg-0: #050505;
  --bg-1: #0b0b0d;
  --bg-2: #121216;
  --bg-3: #1a1a20;
  --bg-glass: rgba(12, 12, 16, 0.78);
  --bg-card: rgba(18, 18, 24, 0.82);
  --border: rgba(201, 162, 39, 0.18);
  --border-strong: rgba(201, 162, 39, 0.42);
  --red: #e10600;
  --red-hot: #ff2a1f;
  --red-dim: rgba(225, 6, 0, 0.18);
  --gold: #c9a227;
  --gold-bright: #f0d060;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --text: #f4f1ea;
  --text-muted: #9a958c;
  --text-dim: #6b665e;
  --green: #2ecc71;
  --yellow: #f0b429;
  --danger: #ff3b3b;
  --sidebar-w: 268px;
  --header-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(225, 6, 0, 0.12);
  --font-display: 'Oxanium', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #080808;
}

/* Nemesis red scrollbar — global, nested areas and mobile when supported */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--red) rgba(5,5,6,.92);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: #080808;
  border-left: 1px solid rgba(201,162,39,.08);
}

*::-webkit-scrollbar-thumb {
  min-height: 34px;
  border: 2px solid #080808;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red-hot), #8f0500);
  box-shadow: 0 0 8px rgba(225,6,0,.45);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff453b, var(--red));
}

*::-webkit-scrollbar-corner {
  background: #080808;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
}

body.app-shell {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.82) 45%, rgba(5,0,0,0.92) 100%),
    url('../img/fundo.png') center / cover no-repeat;
  background-attachment: scroll;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* ========== AUTH ========== */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(20,0,0,0.85) 50%, rgba(0,0,0,0.94) 100%),
    url('../img/fundo.png') center / cover no-repeat;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(225,6,0,0.18), transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(201,162,39,0.12), transparent 40%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glow), 0 20px 60px rgba(0,0,0,0.55);
  animation: rise 0.7s var(--ease) both;
}

.auth-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(225,6,0,0.35);
  animation: pulse-glow 3s ease-in-out infinite;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  text-align: center;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--red-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 6px 0 28px;
  font-size: 0.95rem;
}

.auth-footer {
  margin-top: 22px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.auth-footer a { color: var(--gold); font-weight: 600; }
.auth-footer a:hover { color: var(--gold-bright); }

/* ========== APP LAYOUT ========== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(6,6,8,0.92);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 16px rgba(225,6,0,0.4);
}

.sidebar-brand .brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.sidebar-brand .brand-text span {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.nav-section {
  margin-bottom: 18px;
}

.nav-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px 8px;
  font-weight: 700;
  font-family: var(--font-display);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.25s var(--ease);
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-color: rgba(201,162,39,0.12);
}

.nav-item.active {
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(225,6,0,0.22), rgba(201,162,39,0.08));
  border-color: rgba(225,6,0,0.35);
  box-shadow: inset 3px 0 0 var(--red);
}

.nav-item .icon { color: inherit; opacity: 0.9; }
.nav-item .chevron {
  margin-left: auto;
  transition: transform 0.25s var(--ease);
  opacity: 0.6;
}
.nav-item.open .chevron { transform: rotate(180deg); }

.nav-sub {
  display: none;
  padding: 4px 0 6px 12px;
  animation: fade-down 0.25s var(--ease);
}
.nav-sub.open { display: block; }

.nav-sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.2s var(--ease);
}
.nav-sub a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-sub a.active {
  color: var(--red-hot);
  background: var(--red-dim);
}

.main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: rgba(5,5,7,0.75);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.progress-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 210px;
}

.progress-chip .meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(225,6,0,0.6);
  transition: width 1s var(--ease);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nx-account-chip {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
  max-width: 42vw;
  overflow: hidden;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s var(--ease);
  position: relative;
}
.icon-btn:hover {
  color: var(--gold);
  border-color: var(--border-strong);
  box-shadow: 0 0 16px rgba(201,162,39,0.2);
}

.icon-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.nx-notify {
  position: relative;
}

.nx-notify__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 20px));
  max-height: min(360px, 60vh);
  overflow: auto;
  z-index: 40;
  background: #111;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nx-notify.is-open .nx-notify__panel {
  display: block;
}

.nx-notify__empty,
.nx-notify__item small,
.nx-notify__item p {
  color: var(--text-muted);
}

.nx-notify__empty,
.nx-notify__item p {
  margin: 2px 0 0;
  font-size: 12px;
}

.nx-notify__item {
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}

.nx-notify__item:last-child {
  border-bottom: 0;
}

.nx-notify__item b {
  display: block;
  font-size: 13px;
}

.nx-notify__item small {
  font-size: 11px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #5a0000);
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-bright);
  cursor: pointer;
}

.content {
  padding: 28px 28px 48px;
  animation: rise 0.55s var(--ease) both;
}

.page-head {
  margin-bottom: 24px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.page-head p {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 1.02rem;
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== COMPONENTS ========== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.45), transparent);
  opacity: 0.7;
}

.card:hover {
  border-color: rgba(225,6,0,0.35);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 24px rgba(225,6,0,0.08);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 110px;
  animation: rise 0.6s var(--ease) both;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }
.stat-card:nth-child(7) { animation-delay: 0.35s; }
.stat-card:nth-child(8) { animation-delay: 0.4s; }

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.stat-card .hint {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.stat-card .hint.down { color: var(--danger); }
.stat-card .hint.up { color: var(--green); }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(225,6,0,0.25), rgba(201,162,39,0.12));
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(225,6,0,0.15);
}

a.btn { text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #8b0000 55%, #5c0000 100%);
  color: #fff;
  border-color: rgba(255,80,60,0.4);
  box-shadow: 0 8px 24px rgba(225,6,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(225,6,0,0.5), 0 0 20px rgba(201,162,39,0.2);
  filter: brightness(1.08);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 50%, #8a6d12);
  color: #1a1200;
  border-color: rgba(240,208,96,0.5);
  box-shadow: 0 8px 24px rgba(201,162,39,0.3);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(0,0,0,0.35);
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--border-strong);
}

.btn-danger {
  background: rgba(255,59,59,0.12);
  border-color: rgba(255,59,59,0.4);
  color: #ff6b6b;
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.18), 0 0 20px rgba(225,6,0,0.12);
}
.field .hint { margin-top: 6px; font-size: 0.82rem; color: var(--text-dim); }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-pill {
  position: relative;
}
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.radio-pill input:checked + span {
  color: var(--gold-bright);
  border-color: var(--red);
  background: var(--red-dim);
  box-shadow: 0 0 16px rgba(225,6,0,0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.badge-green { background: rgba(46,204,113,0.15); color: #3dff96; border: 1px solid rgba(46,204,113,0.35); }
.badge-yellow { background: rgba(240,180,41,0.15); color: #ffd56a; border: 1px solid rgba(240,180,41,0.35); }
.badge-red { background: rgba(225,6,0,0.15); color: #ff6b63; border: 1px solid rgba(225,6,0,0.35); }
.badge-gray { background: rgba(255,255,255,0.06); color: #aaa; border: 1px solid rgba(255,255,255,0.12); }
.badge-blue { background: rgba(59,130,246,0.15); color: #7eb6ff; border: 1px solid rgba(59,130,246,0.35); }
.badge-gold { background: var(--gold-dim); color: var(--gold-bright); border: 1px solid var(--border-strong); }

.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.alert-info { border-color: rgba(201,162,39,0.35); background: rgba(201,162,39,0.08); color: #e8d8a0; }
.alert-warn { border-color: rgba(225,6,0,0.4); background: var(--red-dim); color: #ffb4ae; }
.alert .icon { flex-shrink: 0; margin-top: 2px; }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}
table.data th {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  vertical-align: middle;
}
table.data tr:hover td { background: rgba(225,6,0,0.04); }
table.data .val-pos { color: var(--green); font-weight: 700; font-family: var(--font-display); }
table.data .val-neg { color: var(--danger); font-weight: 700; font-family: var(--font-display); }

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.type-pill.in { color: var(--green); }
.type-pill.out { color: var(--danger); }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
}
.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 12px 0;
}
.search-box .icon { color: var(--text-dim); }

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
  width: fit-content;
}
.tab-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(225,6,0,0.35), rgba(201,162,39,0.2));
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(225,6,0,0.2);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
}
.empty-state .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--gold);
  opacity: 0.6;
}

.chart-card { padding: 22px; }
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 8px 14px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.8rem;
  cursor: pointer;
}
.segmented button.active {
  background: var(--red-dim);
  color: var(--gold-bright);
}

.chart-wrap {
  position: relative;
  height: 320px;
}

.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  transition: 0.2s var(--ease);
}
.tx-item:hover { border-color: rgba(225,6,0,0.35); }
.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(46,204,113,0.12);
  color: var(--green);
  border: 1px solid rgba(46,204,113,0.25);
}
.tx-icon.out {
  background: rgba(225,6,0,0.12);
  color: var(--danger);
  border-color: rgba(225,6,0,0.25);
}
.tx-body { flex: 1; min-width: 0; }
.tx-body strong { display: block; font-weight: 700; }
.tx-body span { color: var(--text-dim); font-size: 0.85rem; }
.tx-amount { text-align: right; }
.tx-amount strong { display: block; font-family: var(--font-display); }

.qr-preview {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(201,162,39,0.3);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  color: var(--text-dim);
  padding: 24px;
}
.qr-preview .icon { width: 56px; height: 56px; color: var(--gold); opacity: 0.5; margin-bottom: 12px; }

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(225,6,0,0.15), rgba(201,162,39,0.1));
}
.balance-chip span { color: var(--text-muted); font-size: 0.85rem; }
.balance-chip strong {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.fee-card .rate {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin: 8px 0 4px;
}
.fee-card .rate small { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }

.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10,10,12,0.95);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: rise 0.35s var(--ease);
  font-weight: 600;
}
.toast.error { border-color: rgba(225,6,0,0.5); color: #ffb4ae; }
.toast.success { border-color: rgba(46,204,113,0.45); color: #9dffc4; }

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

/* Nemesis custom context menu (desktop only) */
.nx-ctx {
  position: fixed;
  z-index: 99999;
  min-width: 200px;
  padding: 6px;
  background: rgba(10, 10, 12, 0.97);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.65), 0 0 24px rgba(225,6,0,0.15);
  backdrop-filter: blur(12px);
  display: none;
  animation: fade-down 0.15s var(--ease);
}
.nx-ctx.show { display: block; }
.nx-ctx button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}
.nx-ctx button:hover {
  background: rgba(225,6,0,0.18);
  color: var(--gold-bright);
}
.nx-ctx .nx-ctx-sep {
  height: 1px;
  margin: 6px 4px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.45), transparent);
}
.nx-ctx .nx-ctx-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(225,6,0,0.3); }
  50% { box-shadow: 0 0 36px rgba(201,162,39,0.45), 0 0 20px rgba(225,6,0,0.4); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(201,162,39,0.1), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 8px;
  height: 1.2em;
}

.main-wrap,
.content,
.card,
.table-wrap {
  max-width: 100%;
  min-width: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
    width: 100%;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform 0.3s var(--ease);
    width: min(300px, 88vw);
    z-index: 50;
    box-shadow: 12px 0 40px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }

  .menu-toggle { display: inline-flex; }
  .overlay-sidebar.show { display: block; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 12px;
    height: 56px;
    gap: 8px;
  }

  .progress-chip {
    display: none;
  }

  .content {
    padding: 16px 14px 88px;
    width: 100%;
    overflow-x: hidden;
  }

  .page-head {
    margin-bottom: 16px;
  }
  .page-head h1 {
    font-size: 1.35rem;
    line-height: 1.2;
    word-break: break-word;
  }
  .page-head p {
    font-size: 0.92rem;
  }
  .page-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .card {
    padding: 16px;
    border-radius: 12px;
  }

  .stat-card {
    min-height: auto;
    padding: 14px;
  }
  .stat-card .value {
    font-size: 1.2rem;
    word-break: break-word;
  }
  .stat-icon {
    width: 38px;
    height: 38px;
  }

  .chart-wrap {
    height: 240px;
  }

  .chart-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar .btn,
  .search-box {
    width: 100%;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .balance-chip {
    width: 100%;
    justify-content: space-between;
  }

  .radio-row {
    gap: 6px;
  }
  .radio-pill span {
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  .btn {
    min-height: 46px;
    padding: 12px 16px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px; /* evita zoom iOS */
    min-height: 46px;
  }

  .table-wrap {
    margin: 0 -2px;
    border-radius: 12px;
  }
  table.data {
    min-width: 720px;
    font-size: 0.88rem;
  }
  table.data th,
  table.data td {
    padding: 12px 10px;
  }

  .tx-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  .tx-amount {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .auth-page {
    padding: 16px;
    align-items: flex-start;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .auth-card {
    padding: 24px 18px;
    border-radius: 16px;
    width: 100%;
  }
  .auth-logo {
    width: 88px;
    height: 88px;
  }
  .auth-card h1 {
    font-size: 1.4rem;
  }

  .fee-card .rate {
    font-size: 1.3rem;
  }

  .toast-wrap {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .empty-state {
    padding: 32px 12px;
  }

  pre {
    max-width: 100%;
    overflow-x: auto;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-head h1 {
    font-size: 1.25rem;
  }

  .topbar-right {
    gap: 8px;
  }

  .icon-btn,
  .avatar {
    width: 38px;
    height: 38px;
  }

  .sidebar-brand img {
    width: 40px;
    height: 40px;
  }

  .nav-item {
    padding: 12px;
    font-size: 0.95rem;
  }

  .qr-preview {
    min-height: 200px;
    padding: 16px;
  }

  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .content { padding: 12px 10px 80px; }
  .stat-card .value { font-size: 1.1rem; }
  .btn { letter-spacing: 0.02em; font-size: 0.82rem; }
}

/* Desktop: background fixed fica ok */
@media (min-width: 981px) {
  body.app-shell {
    background-attachment: fixed;
  }
}

/* ========== NEMESIS COMMAND CENTER ========== */
.nx-command {
  --nx-cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  display: grid;
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.nx-command__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 2px 8px;
}

.nx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nx-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: nx-pulse 1.8s ease-in-out infinite;
}

.nx-command__head h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.nx-command__head h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

.nx-command__head p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 1rem;
}

.nx-command__signal {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 14px;
  border-right: 2px solid var(--green);
  background: linear-gradient(90deg, transparent, rgba(46,204,113,.06));
}

.nx-command__signal div {
  display: grid;
  text-align: right;
}

.nx-command__signal b {
  color: #78f7ac;
  font-family: var(--font-display);
  font-size: .68rem;
  letter-spacing: .14em;
}

.nx-command__signal small { color: var(--text-dim); }

.nx-signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.nx-signal-bars i {
  width: 3px;
  background: var(--green);
  box-shadow: 0 0 5px rgba(46,204,113,.6);
}
.nx-signal-bars i:nth-child(1) { height: 25%; }
.nx-signal-bars i:nth-child(2) { height: 50%; }
.nx-signal-bars i:nth-child(3) { height: 75%; }
.nx-signal-bars i:nth-child(4) { height: 100%; }

.nx-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  gap: 18px;
}

.nx-vault,
.nx-radar,
.nx-telemetry__chart,
.nx-metrics,
.nx-flow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,.22);
  background: rgba(10,9,11,.88);
  clip-path: var(--nx-cut);
}

.nx-vault {
  min-height: 330px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(115deg, rgba(9,8,10,.98) 0%, rgba(24,7,7,.94) 56%, rgba(8,8,9,.9) 100%),
    url('../img/fundo.png') center / cover;
  box-shadow: inset 0 0 90px rgba(225,6,0,.08);
}

.nx-vault::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -110px;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(201,162,39,.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgba(225,6,0,.025),
    0 0 0 72px rgba(201,162,39,.018);
}

.nx-vault__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 4px);
}

.nx-vault__top,
.nx-radar__head,
.nx-section-head,
.nx-flow__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-vault__top {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.nx-vault__top .icon { width: 1.5rem; height: 1.5rem; }

.nx-vault__balance {
  position: relative;
  margin-top: 30px;
}

.nx-vault__balance small {
  display: block;
  color: var(--text-muted);
  font-size: .9rem;
}

.nx-vault__balance strong {
  display: block;
  width: fit-content;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 0 35px rgba(225,6,0,.24);
}

.nx-vault__rail {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: end;
  gap: 24px;
  margin-top: 26px;
}

.nx-vault__rail span {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nx-vault__rail > div > b {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: .92rem;
}

.nx-vault__limit span b { color: var(--gold); }

.nx-vault__limit > div {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.nx-vault__limit i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold-bright));
  box-shadow: 0 0 14px var(--red);
  transition: width 1s var(--ease);
}

.nx-vault__actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.nx-vault__actions a {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 18px;
  align-items: center;
  column-gap: 12px;
  min-height: 68px;
  padding: 10px 14px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,.28);
  border-left: 2px solid var(--red);
  background:
    linear-gradient(105deg, rgba(225,6,0,.15), rgba(201,162,39,.035) 58%, rgba(0,0,0,.38));
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.nx-vault__actions a:hover {
  transform: translateY(-3px);
  border-color: rgba(240,208,96,.6);
  background:
    linear-gradient(105deg, rgba(225,6,0,.28), rgba(201,162,39,.1) 58%, rgba(0,0,0,.42));
  box-shadow: 0 10px 26px rgba(0,0,0,.35), 0 0 18px rgba(225,6,0,.12);
}

.nx-vault__actions span {
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(201,162,39,.4);
  background:
    radial-gradient(circle, rgba(225,6,0,.28), rgba(201,162,39,.07));
  box-shadow: inset 0 0 15px rgba(225,6,0,.12);
}

.nx-vault__actions span .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.nx-vault__actions b {
  font-family: var(--font-display);
  font-size: .83rem;
  letter-spacing: .035em;
}
.nx-vault__actions small {
  color: var(--text-muted);
  font-size: .74rem;
}

.nx-vault__actions a::after {
  content: '›';
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  transition: transform .2s var(--ease), color .2s var(--ease);
}

.nx-vault__actions a:hover::after {
  color: var(--gold-bright);
  transform: translateX(3px);
}

.nx-vault__actions a:nth-child(2) {
  border-left-color: var(--gold);
  background:
    linear-gradient(105deg, rgba(201,162,39,.14), rgba(225,6,0,.04) 58%, rgba(0,0,0,.38));
}

.nx-vault__actions a:nth-child(3) {
  border-left-color: #8d8170;
  background:
    linear-gradient(105deg, rgba(141,129,112,.11), rgba(201,162,39,.035) 58%, rgba(0,0,0,.38));
}

.nx-radar {
  min-height: 330px;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(225,6,0,.13), transparent 52%),
    rgba(10,9,11,.92);
}

.nx-radar__head span,
.nx-section-head span,
.nx-flow__head span {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.nx-radar__head small,
.nx-section-head small,
.nx-flow__head small {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
}

.nx-radar__body {
  display: grid;
  place-items: center;
  padding-top: 18px;
}

.nx-orbit {
  --conversion: 0deg;
  position: relative;
  width: 165px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0deg, var(--gold-bright) var(--conversion), rgba(255,255,255,.055) var(--conversion));
  filter: drop-shadow(0 0 18px rgba(225,6,0,.18));
}

.nx-orbit::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0b0a0c;
}

.nx-orbit__ring {
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(201,162,39,.25);
  border-radius: 50%;
  animation: nx-spin 18s linear infinite;
}

.nx-orbit__ring--inner {
  inset: 22px;
  border-color: rgba(225,6,0,.2);
  animation-direction: reverse;
  animation-duration: 10s;
}

.nx-orbit > span {
  position: relative;
  display: grid;
  text-align: center;
}

.nx-orbit strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.nx-orbit small {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: .58rem;
  letter-spacing: .14em;
}

.nx-radar__legend {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}

.nx-radar__legend div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 7px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(0,0,0,.25);
}

.nx-radar__legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 7px var(--gold);
}
.nx-radar__legend i.ok { background: var(--green); box-shadow: 0 0 7px var(--green); }
.nx-radar__legend span { color: var(--text-dim); font-size: .72rem; }
.nx-radar__legend b { grid-column: 2; font-family: var(--font-display); }

.nx-telemetry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.nx-telemetry__chart,
.nx-metrics { min-height: 330px; padding: 22px; }

.nx-section-head strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.nx-range {
  display: flex;
  gap: 4px;
}

.nx-range button {
  min-width: 40px;
  padding: 7px 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .65rem;
  cursor: pointer;
}

.nx-range button.active {
  color: var(--gold-bright);
  border-color: rgba(225,6,0,.35);
  background: rgba(225,6,0,.12);
}

.nx-chart-stage {
  position: relative;
  height: 240px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,.1);
  background:
    radial-gradient(ellipse at 50% 65%, rgba(225,6,0,.075), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.16));
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.nx-chart-stage::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: -20%;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(225,6,0,.045), transparent);
  animation: nx-chart-scan 5s linear infinite;
}

.nx-chart-stage::after {
  content: 'LIVE TELEMETRY';
  position: absolute;
  right: 10px;
  top: 8px;
  color: rgba(201,162,39,.28);
  font-family: var(--font-display);
  font-size: .5rem;
  letter-spacing: .15em;
  pointer-events: none;
}

.nx-chart-stage canvas {
  position: relative;
  z-index: 2;
}

.nx-metrics {
  display: flex;
  flex-direction: column;
}

.nx-metric {
  position: relative;
  padding: 18px 0 15px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.nx-metric span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-dim);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.nx-metric span .icon { color: var(--gold); }

.nx-metric strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.nx-metric > i {
  display: block;
  width: var(--level);
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.nx-metrics__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .06em;
}

.nx-metrics__link .icon { transform: rotate(45deg); }

.nx-flow { padding: 20px 22px; }
.nx-flow__head a { color: var(--gold); font-size: .82rem; font-weight: 700; }

.nx-flow__empty {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px;
  border-left: 2px solid var(--red);
  background: linear-gradient(90deg, rgba(225,6,0,.08), transparent 70%);
}

.nx-flow__empty > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,.25);
}

.nx-flow__empty b { display: block; font-size: .9rem; }
.nx-flow__empty small { color: var(--text-dim); }

.nx-flow__empty > i {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}

@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-pulse { 50% { opacity: .35; } }
@keyframes nx-chart-scan {
  from { transform: translateY(0); }
  to { transform: translateY(390%); }
}

@media (max-width: 1150px) {
  .nx-cockpit { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); }
  .nx-vault__actions { grid-template-columns: 1fr; }
  .nx-vault { min-height: 390px; }
}

@media (max-width: 820px) {
  .nx-command__head { align-items: flex-start; }
  .nx-command__signal { display: none; }
  .nx-cockpit,
  .nx-telemetry { grid-template-columns: 1fr; }
  .nx-vault { min-height: auto; }
  .nx-vault__actions { grid-template-columns: repeat(3, 1fr); }
  .nx-radar { min-height: 300px; }
  .nx-metrics { min-height: auto; }
  .nx-metrics__link { margin-top: 18px; }
}

@media (max-width: 520px) {
  .nx-command { gap: 12px; }
  .nx-command__head h1 { font-size: 1.55rem; }
  .nx-command__head p { font-size: .9rem; }
  .nx-vault,
  .nx-radar,
  .nx-telemetry__chart,
  .nx-metrics,
  .nx-flow { padding: 16px; }
  .nx-vault__balance strong { font-size: 2.25rem; }
  .nx-vault__rail { grid-template-columns: 1fr; gap: 14px; }
  .nx-vault__actions { grid-template-columns: 1fr; }
  .nx-vault__actions a { grid-template-columns: 52px 1fr 18px; }
  .nx-chart-stage { height: 210px; }
  .nx-flow__empty { grid-template-columns: 36px 1fr; }
  .nx-flow__empty > i { display: none; }
}

/* ========== GLOBAL COMMAND UI — ALL MODULES ========== */
.app-shell:not(.route-dashboard) .content {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(12,10,11,.98), rgba(4,4,5,.98)),
    url('../img/fundo.png') 42% center / cover;
  border-right-color: rgba(225,6,0,.24);
}

.sidebar::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 80px;
  width: 2px;
  height: 110px;
  background: linear-gradient(transparent, var(--red), var(--gold), transparent);
  box-shadow: 0 0 14px var(--red);
}

.sidebar-brand {
  position: relative;
  min-height: 74px;
  padding: 13px 16px;
  gap: 13px;
  background:
    linear-gradient(100deg, rgba(225,6,0,.08), transparent 62%),
    rgba(0,0,0,.42);
}

.sidebar-brand::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(201,162,39,.5), transparent);
}

.sidebar-brand img {
  width: 46px;
  height: 46px;
  padding: 2px;
  border: 1px solid rgba(240,208,96,.75);
  box-shadow:
    0 0 0 3px rgba(0,0,0,.65),
    0 0 18px rgba(225,6,0,.38);
}

.sidebar-brand .brand-text {
  position: relative;
  padding-right: 15px;
}

.sidebar-brand .brand-text::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.sidebar-brand .brand-text strong {
  font-size: .96rem;
  letter-spacing: .075em;
  text-shadow: 0 0 12px rgba(201,162,39,.2);
}

.sidebar-brand .brand-text span {
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .57rem;
}

.nav-section-title::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--red);
}

.nav-item {
  min-height: 42px;
  border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .025em;
}

.nav-item.active {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(225,6,0,.22), rgba(201,162,39,.06));
  box-shadow: inset 2px 0 var(--red), inset 0 0 25px rgba(225,6,0,.05);
}

.nav-item.active .icon {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 5px rgba(201,162,39,.45));
}

.nav-sub { padding-left: 20px; }
.nav-sub a {
  position: relative;
  border-radius: 0;
  padding-left: 17px;
  font-size: .78rem;
}
.nav-sub a::before {
  content: '';
  position: absolute;
  left: 3px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(201,162,39,.5);
  transform: rotate(45deg);
}
.nav-sub a.active::before { background: var(--red); border-color: var(--red); }

.topbar {
  background: rgba(5,5,6,.93);
  border-bottom-color: rgba(201,162,39,.17);
}

.nx-route-id {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .61rem;
  letter-spacing: .11em;
}

.nx-route-id i,
.nx-top-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.nx-top-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #77efa8;
  font-family: var(--font-display);
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nx-top-status i { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Unique page title system */
.app-shell:not(.route-dashboard) .page-head {
  position: relative;
  margin-bottom: 22px;
  padding: 20px 24px 18px 28px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,.18);
  border-left: 3px solid var(--red);
  background:
    linear-gradient(100deg, rgba(225,6,0,.1), transparent 45%),
    rgba(9,9,11,.82);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.app-shell:not(.route-dashboard) .page-head::before {
  content: 'NEMESIS / MODULE';
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .58rem;
  letter-spacing: .18em;
}

.app-shell:not(.route-dashboard) .page-head::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(225,6,0,.16);
  transform: translateY(-50%) rotate(45deg);
}

.app-shell:not(.route-dashboard) .page-head h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .015em;
}

.app-shell:not(.route-dashboard) .page-head p {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

/* Panels are cut modules instead of generic rounded cards */
.app-shell:not(.route-dashboard) .card {
  border-radius: 0;
  border-color: rgba(201,162,39,.2);
  background:
    linear-gradient(145deg, rgba(18,16,18,.94), rgba(8,8,10,.94));
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.app-shell:not(.route-dashboard) .card::before {
  height: 2px;
  background: linear-gradient(90deg, var(--red), rgba(201,162,39,.5) 28%, transparent 70%);
}

.app-shell:not(.route-dashboard) .card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: .83rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-shell:not(.route-dashboard) .card-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}

/* Inputs become terminal slots */
.app-shell:not(.route-dashboard) .field label {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.app-shell:not(.route-dashboard) .field input,
.app-shell:not(.route-dashboard) .field select,
.app-shell:not(.route-dashboard) .field textarea,
.app-shell:not(.route-dashboard) .search-box {
  border-radius: 0;
  border-color: rgba(201,162,39,.2);
  background: rgba(0,0,0,.5);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.app-shell:not(.route-dashboard) .field input:focus,
.app-shell:not(.route-dashboard) .field select:focus,
.app-shell:not(.route-dashboard) .field textarea:focus {
  border-color: var(--red);
  box-shadow: inset 3px 0 rgba(225,6,0,.75), 0 0 20px rgba(225,6,0,.1);
}

.app-shell:not(.route-dashboard) .btn {
  border-radius: 0;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  font-size: .7rem;
}

/* Tables become data terminals */
.app-shell:not(.route-dashboard) .table-wrap {
  border-radius: 0;
  border-color: rgba(201,162,39,.18);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.app-shell:not(.route-dashboard) table.data th {
  color: var(--gold);
  background: linear-gradient(90deg, rgba(225,6,0,.08), rgba(0,0,0,.55));
  border-bottom-color: rgba(225,6,0,.25);
}

.app-shell:not(.route-dashboard) table.data tr:hover td {
  background: linear-gradient(90deg, rgba(225,6,0,.08), transparent);
}

.app-shell:not(.route-dashboard) .tabs {
  width: 100%;
  padding: 0;
  gap: 0;
  border-radius: 0;
  background: rgba(0,0,0,.38);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.app-shell:not(.route-dashboard) .tab-btn {
  flex: 1;
  border-radius: 0;
  border-right: 1px solid rgba(201,162,39,.1);
}

.app-shell:not(.route-dashboard) .tab-btn.active {
  background: linear-gradient(90deg, rgba(225,6,0,.25), rgba(201,162,39,.1));
  box-shadow: inset 0 -2px var(--red);
}

.app-shell:not(.route-dashboard) .balance-chip {
  border-radius: 0;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.app-shell:not(.route-dashboard) .alert {
  border-radius: 0;
  border-left: 3px solid var(--gold);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.app-shell:not(.route-dashboard) .empty-state {
  position: relative;
}
.app-shell:not(.route-dashboard) .empty-state::after {
  content: 'NO DATA SIGNAL';
  display: block;
  margin-top: 8px;
  color: rgba(225,6,0,.5);
  font-family: var(--font-display);
  font-size: .55rem;
  letter-spacing: .18em;
}

@media (max-width: 980px) {
  .nx-route-id { display: none; }
  .nx-top-status { display: none; }
  .app-shell:not(.route-dashboard) .page-head { padding: 17px 18px; }
  .app-shell:not(.route-dashboard) .page-head::after { display: none; }
}

/* Module-specific compositions */
.route-receber-pix .content > .grid-2,
.route-transferir-pix .content > .grid-2 {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.route-receber-pix .qr-preview {
  position: relative;
  min-height: 350px;
  border-radius: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(201,162,39,.08) 1px, transparent 1px),
    linear-gradient(rgba(201,162,39,.08) 1px, transparent 1px),
    rgba(0,0,0,.28);
  background-size: 22px 22px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.route-receber-pix .qr-preview::before,
.route-receber-pix .qr-preview::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
}
.route-receber-pix .qr-preview::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.route-receber-pix .qr-preview::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }

.nx-route-option {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin: 0 !important;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,.32);
  background:
    linear-gradient(100deg, rgba(225,6,0,.13), rgba(201,162,39,.04) 62%, transparent),
    rgba(0,0,0,.38);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
}

.nx-route-stack {
  display: grid;
  gap: 9px;
}

.nx-route-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.3);
}

.nx-route-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nx-route-option__mark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.nx-route-option input:checked + .nx-route-option__mark {
  border-color: var(--red-hot);
  background: var(--red);
  box-shadow: 0 0 12px rgba(225,6,0,.65);
}

.nx-route-option > span:nth-of-type(2) b {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .06em;
}

.nx-route-option > span:nth-of-type(2) small {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: .76rem;
}

.nx-route-option em {
  padding: 5px 8px;
  color: #72f5a6;
  border: 1px solid rgba(46,204,113,.3);
  background: rgba(46,204,113,.08);
  font-family: var(--font-display);
  font-size: .55rem;
  font-style: normal;
  letter-spacing: .12em;
}

.nx-fee-console {
  display: grid;
  gap: 1px;
  margin: 18px 0;
  padding: 1px;
  border: 1px solid rgba(201,162,39,.16);
  background: rgba(201,162,39,.08);
}

.nx-fee-console > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  background: #0b0a0c;
}

.nx-fee-console span {
  color: var(--text-dim);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nx-fee-console b {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: .78rem;
}

.nx-fee-console .total {
  border-left: 2px solid var(--red);
  background: linear-gradient(90deg, rgba(225,6,0,.11), #0b0a0c 45%);
}

.nx-fee-console .total span { color: #fff; }
.nx-fee-console .total b {
  color: var(--gold-bright);
  font-size: .95rem;
}

.nx-qr-result {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
}

.nx-qr-result[hidden] { display: none; }

.nx-qr-result img {
  width: 190px;
  height: 190px;
  margin: 0 auto 12px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--gold);
  box-shadow: 0 0 28px rgba(225,6,0,.2);
}

.nx-qr-result > strong {
  display: block;
  margin: 10px 0;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.nx-copy-pix {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.nx-copy-pix input,
.nx-copy-pix textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: var(--text);
  border: 1px solid rgba(201,162,39,.2);
  background: rgba(0,0,0,.55);
  outline: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
  white-space: pre-wrap;
  resize: vertical;
}

.nx-copy-pix .btn {
  flex: 0 0 auto;
  padding-inline: 12px;
}

.route-transferir-pix .content > .grid-2 > .card:last-child {
  background:
    radial-gradient(circle at 100% 0, rgba(225,6,0,.12), transparent 40%),
    rgba(10,9,11,.94);
}

.route-transferir-pix .tx-list,
.route-saques-crypto .tx-list { gap: 6px; }

.route-transferir-pix .tx-item {
  border-radius: 0;
  border-width: 0 0 0 2px;
  background: linear-gradient(90deg, rgba(201,162,39,.06), transparent);
}

.route-transferencia-interna .content > .card,
.route-saque-crypto .content > .card:first-of-type {
  max-width: 760px !important;
  margin-inline: auto;
}

.route-saque-crypto .content > .card:first-of-type::after,
.route-transferencia-interna .content > .card::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(225,6,0,.2);
  border-radius: 50%;
}

.route-extrato .toolbar,
.route-clientes .toolbar,
.route-infracoes .toolbar {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(201,162,39,.14);
  background: rgba(5,5,6,.65);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.route-clientes table.data td:first-child,
.route-extrato table.data td:nth-child(2) {
  color: #fff;
  font-family: var(--font-display);
  font-size: .76rem;
}

.route-afiliados .content > .card:first-of-type {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(100deg, rgba(225,6,0,.14), transparent 56%),
    url('../img/fundo.png') center 36% / cover;
}

.route-afiliados .content > .card:first-of-type::after {
  content: 'REFERRAL NODE';
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: rgba(201,162,39,.28);
  font-family: var(--font-display);
  font-size: .62rem;
  letter-spacing: .18em;
}

.route-afiliados .grid-3 .stat-card,
.route-limites .grid-3 .stat-card {
  min-height: 150px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(225,6,0,.08), transparent 50%),
    rgba(10,9,11,.93);
}

.route-afiliados .grid-3 .stat-card .value,
.route-limites .grid-3 .stat-card .value {
  color: var(--gold-bright);
  font-size: 1.25rem;
}

.route-afiliados .grid-3 .stat-icon,
.route-limites .grid-3 .stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed rgba(201,162,39,.4);
}

.route-infracoes .page-head { border-left-color: var(--danger); }
.route-infracoes .page-head::before { content: 'NEMESIS / RISK CONTROL'; color: #ff746d; }

.route-taxas .grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.route-taxas .fee-card {
  min-height: 190px;
  padding: 26px;
}

.route-taxas .fee-card:nth-child(odd) {
  background:
    linear-gradient(120deg, rgba(225,6,0,.12), transparent 55%),
    rgba(10,9,11,.94);
}

.route-taxas .fee-card:nth-child(even) {
  background:
    linear-gradient(120deg, rgba(201,162,39,.09), transparent 55%),
    rgba(10,9,11,.94);
}

.route-taxas .fee-card .rate {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  letter-spacing: -.04em;
}

.route-taxas .fee-card .rate::before {
  content: 'RATE / ';
  color: var(--red);
  font-size: .55rem;
  letter-spacing: .12em;
  vertical-align: middle;
}

.route-limites .page-head::before { content: 'NEMESIS / OPERATIONAL CEILINGS'; }

.route-api-keys .content > .alert {
  color: #ffbbb6;
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(225,6,0,.13), transparent);
}

.route-api-keys .content > .card,
.route-api-docs .content > .grid-2 > .card {
  background:
    linear-gradient(90deg, rgba(201,162,39,.04) 1px, transparent 1px),
    linear-gradient(rgba(201,162,39,.04) 1px, transparent 1px),
    rgba(8,8,10,.94);
  background-size: 24px 24px;
}

.route-api-docs pre {
  border-radius: 0 !important;
  border-left: 3px solid var(--red) !important;
  color: #9fffc4 !important;
}

.route-api-docs .tx-item {
  border-radius: 0;
  border: 0;
  border-left: 2px solid rgba(201,162,39,.45);
  background: linear-gradient(90deg, rgba(201,162,39,.07), transparent);
}

.route-suporte .content > .card {
  min-height: 300px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(225,6,0,.1), transparent 42%),
    rgba(8,8,10,.94);
}

.route-configuracoes [data-tab-panel] > .card {
  min-height: 360px;
}

.route-configuracoes .tabs {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 15;
  backdrop-filter: blur(12px);
}

.route-configuracoes .tx-item {
  border-radius: 0;
  border-color: rgba(201,162,39,.13);
  background: rgba(0,0,0,.28);
}

@media (max-width: 980px) {
  .route-receber-pix .content > .grid-2,
  .route-transferir-pix .content > .grid-2,
  .route-taxas .grid-2 { grid-template-columns: 1fr; }
  .route-configuracoes .tabs { top: 64px; }
}

/* ========== NEMESIS PAGE TRANSITION ========== */
.np-page-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(225,6,0,.15), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(201,162,39,.055), transparent 48%),
    #030304;
  transition: opacity .24s ease, visibility 0s linear .24s;
}

.np-page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity .18s ease;
}

.np-page-loader__grid,
.np-page-loader__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.np-page-loader__grid {
  opacity: .26;
  background-image:
    linear-gradient(rgba(201,162,39,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 70%);
}

.np-page-loader__scan {
  height: 26%;
  opacity: .45;
  background: linear-gradient(transparent, rgba(225,6,0,.08), rgba(201,162,39,.12), transparent);
  animation: np-loader-scan 2s linear infinite;
}

.np-page-loader__core {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(460px, 92vw);
  padding: 34px 38px 25px;
  border: 1px solid rgba(201,162,39,.2);
  background:
    linear-gradient(145deg, rgba(225,6,0,.055), transparent 42%),
    rgba(7,7,9,.9);
  box-shadow:
    0 35px 100px rgba(0,0,0,.75),
    inset 0 0 45px rgba(225,6,0,.025),
    0 0 55px rgba(225,6,0,.08);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.np-page-loader__core::before,
.np-page-loader__core::after {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
}
.np-page-loader__core::before {
  left: 18px;
  width: 38%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 14px rgba(225,6,0,.65);
}
.np-page-loader__core::after {
  right: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,.55));
}

.np-page-loader__corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--red);
  opacity: .85;
}
.np-page-loader__corner--tl { left: 12px; top: 12px; border-left: 1px solid; border-top: 1px solid; }
.np-page-loader__corner--tr { right: 12px; top: 12px; border-right: 1px solid; border-top: 1px solid; }
.np-page-loader__corner--bl { left: 12px; bottom: 12px; border-left: 1px solid; border-bottom: 1px solid; }
.np-page-loader__corner--br { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }

.np-page-loader__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  margin-bottom: 17px;
}

.np-page-loader__emblem img {
  position: relative;
  z-index: 3;
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(225,6,0,.35));
  animation: np-loader-logo 1.45s ease-in-out infinite;
}

.np-page-loader__orbit,
.np-page-loader__pulse {
  position: absolute;
  border-radius: 50%;
}

.np-page-loader__orbit--outer {
  inset: 0;
  border: 1px solid rgba(201,162,39,.28);
  border-top-color: var(--gold-bright);
  border-right-color: rgba(225,6,0,.9);
  box-shadow: 0 0 25px rgba(225,6,0,.08);
  animation: np-loader-spin 2.8s linear infinite;
}

.np-page-loader__orbit--outer::before,
.np-page-loader__orbit--outer::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 12px var(--red);
}
.np-page-loader__orbit--outer::before { left: 15px; top: 18px; }
.np-page-loader__orbit--outer::after { right: 15px; bottom: 18px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.np-page-loader__orbit--inner {
  inset: 12px;
  border: 1px dashed rgba(225,6,0,.42);
  border-left-color: rgba(201,162,39,.8);
  animation: np-loader-spin-reverse 4.2s linear infinite;
}

.np-page-loader__pulse {
  inset: 25px;
  border: 1px solid rgba(225,6,0,.16);
  background: radial-gradient(circle, rgba(225,6,0,.1), transparent 68%);
  animation: np-loader-pulse 1.45s ease-in-out infinite;
}

.np-page-loader__identity { display: grid; justify-items: center; text-align: center; }
.np-page-loader__identity > span {
  color: var(--red-hot);
  font-family: var(--font-display);
  font-size: .52rem;
  letter-spacing: .25em;
}
.np-page-loader__identity strong {
  margin: 5px 0 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: .12em;
}
.np-page-loader__identity strong span { color: var(--gold-bright); }
.np-page-loader__identity small {
  min-height: 16px;
  color: var(--text-dim);
  font-size: .67rem;
  letter-spacing: .04em;
}

.np-page-loader__progress {
  position: relative;
  width: 100%;
  height: 5px;
  margin-top: 22px;
  overflow: visible;
  border: 1px solid rgba(201,162,39,.18);
  background: rgba(0,0,0,.85);
}
.np-page-loader__progress > div {
  width: 7%;
  height: 100%;
  background: linear-gradient(90deg, #7f0300, var(--red-hot) 58%, var(--gold-bright));
  box-shadow: 0 0 14px rgba(225,6,0,.65);
  transition: width .38s cubic-bezier(.22,.9,.28,1);
}
.np-page-loader.is-arriving .np-page-loader__progress > div {
  animation: np-loader-arrive .62s cubic-bezier(.22,.9,.28,1) forwards;
}
.np-page-loader__progress i {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 11px;
  background: rgba(201,162,39,.25);
}
.np-page-loader__progress i:nth-of-type(1) { left: 25%; }
.np-page-loader__progress i:nth-of-type(2) { left: 50%; }
.np-page-loader__progress i:nth-of-type(3) { left: 75%; }

.np-page-loader__telemetry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 13px;
  color: rgba(255,255,255,.28);
  font-family: var(--font-display);
  font-size: .42rem;
  letter-spacing: .1em;
}
.np-page-loader__telemetry b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

@keyframes np-loader-spin { to { transform: rotate(360deg); } }
@keyframes np-loader-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes np-loader-pulse { 50% { transform: scale(1.08); opacity: .5; } }
@keyframes np-loader-logo { 50% { transform: scale(1.035); filter: drop-shadow(0 0 22px rgba(225,6,0,.5)); } }
@keyframes np-loader-scan { from { transform: translateY(-100%); } to { transform: translateY(485%); } }
@keyframes np-loader-arrive { 0% { width: 42%; } 100% { width: 100%; } }

@media (max-width: 560px) {
  .np-page-loader { padding: 14px; }
  .np-page-loader__core { width: 100%; padding: 28px 22px 22px; }
  .np-page-loader__emblem { width: 126px; height: 126px; }
  .np-page-loader__emblem img { width: 92px; height: 92px; }
  .np-page-loader__identity strong { font-size: 1rem; }
  .np-page-loader__telemetry { gap: 6px; font-size: .38rem; }
}

@media (prefers-reduced-motion: reduce) {
  .np-page-loader *,
  .np-page-loader *::before,
  .np-page-loader *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ========== MOBILE HARDENING ========== */
@media (max-width: 640px) {
  html,
  body,
  .app,
  .main-wrap,
  .content { width: 100%; max-width: 100%; overflow-x: clip; }

  .topbar-left { min-width: 0; flex: 1; }
  .topbar-right { flex: 0 0 auto; }
  .content { padding-inline: 11px; }
  .content > *,
  .card,
  .grid,
  .field { min-width: 0; }

  .app-shell:not(.route-dashboard) .page-head {
    padding: 15px 14px 14px;
    margin-bottom: 13px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  }
  .app-shell:not(.route-dashboard) .page-head::before { margin-bottom: 5px; font-size: .5rem; }
  .app-shell:not(.route-dashboard) .page-head h1 { font-size: 1.18rem; overflow-wrap: anywhere; }
  .app-shell:not(.route-dashboard) .page-head p { font-size: .82rem; line-height: 1.35; }
  .page-head-row { gap: 11px; }

  .app-shell:not(.route-dashboard) .card { padding: 14px; }
  .app-shell:not(.route-dashboard) .card-title { font-size: .72rem; letter-spacing: .055em; }

  .app-shell:not(.route-dashboard) .tabs {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }
  .app-shell:not(.route-dashboard) .tab-btn {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 10px 13px;
    scroll-snap-align: start;
  }

  .nx-route-option {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px 10px;
    padding: 12px;
  }
  .nx-route-option > span:nth-of-type(2) { min-width: 0; }
  .nx-route-option > span:nth-of-type(2) b { font-size: .7rem; }
  .nx-route-option > span:nth-of-type(2) small {
    font-size: .67rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .nx-route-option em {
    grid-column: 2;
    justify-self: start;
    padding: 4px 7px;
  }

  .radio-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .radio-pill,
  .radio-pill span { width: 100%; text-align: center; }

  .nx-fee-console > div { align-items: flex-start; padding: 9px 10px; }
  .nx-fee-console span { max-width: 62%; font-size: .66rem; line-height: 1.25; }
  .nx-fee-console b { text-align: right; white-space: nowrap; font-size: .71rem; }

  .nx-copy-pix { flex-direction: column; }
  .nx-copy-pix .btn { width: 100%; }
  .nx-qr-result img { width: min(170px, 60vw); height: min(170px, 60vw); }

  .balance-chip { padding: 10px 12px; }
  .balance-chip strong { font-size: 1rem; overflow-wrap: anywhere; }

  .tx-item { min-width: 0; }
  .tx-body { min-width: 0; }
  .tx-body strong,
  .tx-body span { overflow-wrap: anywhere; }

  .chart-head { gap: 10px; }
  .chart-head .btn { width: 100%; }

  .route-configuracoes [data-tab-panel] > .card { min-height: 0; }
  .route-configuracoes .tabs { top: 60px; }

  .np-page-loader__telemetry span:last-child,
  .np-page-loader__telemetry b:last-of-type { display: none; }
}

@media (max-width: 380px) {
  .radio-row { grid-template-columns: 1fr; }
  .np-page-loader__core { padding-inline: 17px; }
  .np-page-loader__telemetry { letter-spacing: .06em; }
}

body.nx-dialog-open { overflow: hidden; }

.nx-dialog[hidden] { display: none; }
.nx-dialog {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}
.nx-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(8px);
}
.nx-dialog__card {
  position: relative;
  width: min(440px, 100%);
  padding: 26px 24px 20px;
  border: 1px solid rgba(201, 162, 39, .34);
  background:
    radial-gradient(circle at 100% 0, rgba(225, 6, 0, .2), transparent 36%),
    linear-gradient(160deg, #141116, #080809);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .72), 0 0 40px rgba(225, 6, 0, .12);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.nx-dialog__kicker {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nx-dialog__card h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.nx-dialog__message {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.45;
}
.nx-dialog__field { display: block; margin-top: 14px; }
.nx-dialog__field[hidden] { display: none; }
.nx-dialog__field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid rgba(201, 162, 39, .28);
  background: rgba(0, 0, 0, .45);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  outline: 0;
}
.nx-dialog__field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .12);
}
.nx-dialog__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.nx-dialog__actions button {
  flex: 1;
  min-height: 48px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nx-dialog__cancel {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}
.nx-dialog__ok {
  color: #1a1403;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}
.nx-dialog__ok.is-danger {
  color: #fff;
  background: linear-gradient(135deg, var(--red-hot), #6b0000);
}
.nx-dialog__actions button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .nx-dialog {
    place-items: end center;
    padding: 0;
  }
  .nx-dialog__card {
    width: 100%;
    max-height: min(88dvh, 640px);
    overflow-y: auto;
    padding: 22px 16px calc(16px + env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    clip-path: none;
    border-radius: 18px 18px 0 0;
  }
  .nx-dialog__card h2 { font-size: 1.08rem; }
  .nx-dialog__actions { flex-direction: column-reverse; }
  .nx-dialog__actions button { width: 100%; min-height: 50px; }
  .nx-dialog__field textarea { font-size: 16px; }
}

.api-pre {
  margin: 0;
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
  color: var(--gold-bright);
  font-size: .84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.api-steps { margin: 0; padding-left: 18px; color: var(--text-muted); }
.api-steps li { margin: 8px 0; }
.api-steps strong { color: var(--text); }
.secret-grid { display: grid; gap: 10px; }
.secret-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  align-items: center;
}
.secret-row code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border);
  overflow: auto;
  color: var(--gold-bright);
}
@media (max-width: 720px) {
  .secret-row { grid-template-columns: 1fr; }
}

.rank-arena {
  position: relative;
  padding: 6px 4px 18px;
}
.rank-arena::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 72px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(240, 208, 96, .22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}
.rank-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 36px;
}
.rank-head h1 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: .95;
  background: linear-gradient(180deg, #fff 20%, #f0d060 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffb4ae;
  font-family: var(--font-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
}
.rank-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 12px var(--red-hot);
  animation: rank-pulse 1.4s ease-in-out infinite;
}
.rank-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(240, 208, 96, .28);
  background: rgba(8, 8, 10, .72);
  box-shadow: 0 0 24px rgba(240, 208, 96, .08);
}
.rank-clock .icon { color: var(--gold-bright); }
.rank-clock small { display: block; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.rank-clock b { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-bright); }
.rank-podium {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 22px;
  align-items: end;
}
.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}
.rank-card--1 { order: 2; z-index: 2; }
.rank-card--2 { order: 1; }
.rank-card--3 { order: 3; }
.rank-medal {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  margin-bottom: -34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  color: #2a2418;
}
.rank-medal .icon { width: 20px; height: 20px; }
.rank-medal b {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: .9;
}
.rank-card--1 .rank-medal {
  width: 118px;
  height: 118px;
  margin-bottom: -46px;
  color: #3d2a08;
  background:
    radial-gradient(circle at 32% 28%, #fff8d4, #f0d060 36%, #c99216 70%, #7a5410 100%);
  box-shadow:
    0 0 0 7px rgba(240, 208, 96, .16),
    0 16px 40px rgba(0, 0, 0, .45),
    0 0 36px rgba(240, 208, 96, .45);
  animation: rank-float 3.4s ease-in-out infinite;
}
.rank-card--1 .rank-medal .icon { width: 26px; height: 26px; }
.rank-card--1 .rank-medal b { font-size: 2rem; }
.rank-card--2 .rank-medal {
  background: radial-gradient(circle at 32% 28%, #ffffff, #d7dbe3 40%, #8e96a3 74%, #4e5560);
  box-shadow: 0 0 0 6px rgba(215, 219, 227, .12), 0 14px 28px rgba(0, 0, 0, .4);
  color: #1d2128;
}
.rank-card--3 .rank-medal {
  background: radial-gradient(circle at 32% 28%, #ffe0c2, #e7a56d 40%, #b15f2c 74%, #5c2d12);
  box-shadow: 0 0 0 6px rgba(225, 140, 74, .14), 0 14px 28px rgba(0, 0, 0, .4);
  color: #3d1d0c;
}
.rank-crown {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 58px;
  height: 32px;
  transform: translateX(-50%);
  color: #f0d060;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
}
.rank-plate {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 52px 16px 20px;
  border-radius: 26px 26px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(28, 28, 34, .96), rgba(10, 10, 12, .94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.rank-plate::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
}
.rank-card--1 .rank-plate {
  padding-top: 68px;
  border-color: rgba(240, 208, 96, .72);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(240, 208, 96, .28), transparent 55%),
    linear-gradient(180deg, rgba(46, 36, 14, .98), rgba(12, 10, 8, .96));
  box-shadow: 0 0 48px rgba(240, 208, 96, .18), 0 22px 40px rgba(0, 0, 0, .4);
}
.rank-card--1 .rank-plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 244, 200, .22) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: rank-sheen 4.2s ease-in-out infinite;
  pointer-events: none;
}
.rank-card--2 .rank-plate {
  border-color: rgba(210, 216, 226, .38);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(220, 226, 236, .16), transparent 56%),
    linear-gradient(180deg, rgba(28, 30, 36, .98), rgba(10, 11, 14, .96));
}
.rank-card--3 .rank-plate {
  border-color: rgba(224, 140, 82, .42);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(224, 140, 82, .18), transparent 56%),
    linear-gradient(180deg, rgba(40, 24, 16, .98), rgba(12, 8, 6, .96));
}
.rank-card__title {
  position: relative;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .74rem;
  font-family: var(--font-display);
}
.rank-card--1 .rank-card__title { color: #f0d060; }
.rank-card--2 .rank-card__title { color: #d5dbe6; }
.rank-card--3 .rank-card__title { color: #e7a56d; }
.rank-card__account {
  position: relative;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .12em;
}
.rank-card__gross {
  position: relative;
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: .02em;
}
.rank-card--1 .rank-card__gross {
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  background: linear-gradient(180deg, #fff6c8, #f0d060 46%, #c99216);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-card--2 .rank-card__gross {
  background: linear-gradient(180deg, #ffffff, #c5ccd6 55%, #8d96a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-card--3 .rank-card__gross {
  background: linear-gradient(180deg, #ffe0c2, #e7a56d 50%, #b15f2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-card__count {
  position: relative;
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .32);
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
}
.rank-plinth {
  width: 78%;
  border-radius: 0 0 18px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.rank-card--1 .rank-plinth {
  height: 108px;
  background: linear-gradient(180deg, #f3d56a 0%, #b8861c 28%, #6d4c10 100%);
}
.rank-card--2 .rank-plinth {
  height: 68px;
  background: linear-gradient(180deg, #e6ebf2 0%, #9aa3b0 32%, #555d69 100%);
}
.rank-card--3 .rank-plinth {
  height: 44px;
  background: linear-gradient(180deg, #f0b27a 0%, #b86a38 34%, #6a3518 100%);
}
.rank-card.is-empty { opacity: .62; }
@keyframes rank-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}
@keyframes rank-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes rank-sheen {
  0%, 55% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@media (max-width: 860px) {
  .rank-head { display: grid; justify-items: start; margin-bottom: 28px; }
  .rank-podium { grid-template-columns: 1fr; gap: 28px; }
  .rank-card--1, .rank-card--2, .rank-card--3 { order: initial; }
  .rank-card--1 { order: 1; }
  .rank-card--2 { order: 2; }
  .rank-card--3 { order: 3; }
  .rank-card--1 .rank-medal { animation: none; }
  .rank-plinth { height: 16px !important; width: 100%; border-radius: 0 0 14px 14px; }
}

