/* =====================================================================
   ROB RUN HUB — Tema Oficial (Looty Bay / Trade Laptop / Syndicate)
   Intuitivo, escuro, alto contraste e responsivo.
   ===================================================================== */

:root {
  --bg-body: #090b0f;
  --bg-sidebar: #0e1218;
  --bg-panel: #131822;
  --bg-card: #181f2c;
  --bg-card-hover: #1e2738;
  --bg-input: #0c1017;

  --border: #252f42;
  --border-strong: #34435e;

  --text-main: #edf2f7;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --gold: #f5b82e;
  --gold-dim: rgba(245, 184, 46, 0.14);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.14);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.14);

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --sidebar-w: 256px;

  --font-display: 'Barlow Condensed', 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

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

html, body {
  min-height: 100%;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Scrollbar discreta */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0e14;
}
::-webkit-scrollbar-thumb {
  background: #273247;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4b68;
}

/* =====================================================================
   SHELL PRINCIPAL (SIDEBAR + CONTEÚDO)
   ===================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.25s ease;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5b82e, #d97706);
  color: #090b0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 18px rgba(245, 184, 46, 0.35);
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
}

.brand-text span {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.sidebar-user {
  margin: 14px 12px 6px;
  padding: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #090b0f;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.avatar-badge.sm {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.avatar-badge.lg {
  width: 58px;
  height: 58px;
  border-radius: 13px;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid var(--bg-panel);
  display: inline-block;
  flex-shrink: 0;
}
.online-dot.on {
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
}

.avatar-badge .online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-nick {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.nav-menu {
  flex: 1;
  padding: 10px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-dim);
  font-weight: 700;
  padding: 10px 10px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: var(--bg-card);
  color: #fff;
  text-decoration: none;
}

.nav-link.active {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(245, 184, 46, 0.35);
}

.nav-link .nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 60px;
  background: rgba(14, 18, 24, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.content-wrap {
  padding: 22px 24px 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* =====================================================================
   COMPONENTES REUTILIZÁVEIS (CARDS, BOTÕES, TAGS, FORMULÁRIOS)
   ===================================================================== */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pill, .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  line-height: 1.4;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pill-server {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-clan {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(245, 184, 46, 0.35);
}

.pill-green {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pill-red {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.pill-muted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #f7c344, #e09f16);
  color: #0b0e13;
  box-shadow: 0 3px 12px rgba(245, 184, 46, 0.25);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-green {
  background: linear-gradient(180deg, #27d466, #16a34a);
  color: #04130a;
}
.btn-green:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-danger {
  background: var(--red-dim);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-danger:hover:not(:disabled) {
  background: var(--red);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-card);
  color: #fff;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 15px;
}

/* Formulários */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control, select.form-control, textarea.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 82px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Alerts / Flash */
.alert {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  display: block;
  border: 1px solid;
}
.alert > svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}
.alert strong {
  font-weight: 800;
  color: #fff;
}
.alert-success { background: var(--green-dim); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.alert-error   { background: var(--red-dim);   color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.alert-warning { background: var(--gold-dim);  color: #fde68a; border-color: rgba(245, 184, 46, 0.35); }
.alert-info    { background: var(--cyan-dim);  color: #bae6fd; border-color: rgba(56, 189, 248, 0.35); }

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Tabelas */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px;
  border-bottom: 1px solid rgba(37, 47, 66, 0.55);
  vertical-align: middle;
}
.table tr:hover td {
  background: rgba(30, 39, 56, 0.45);
}

/* Stat boxes */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
}
.stat-box .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
}
.stat-box .stat-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  line-height: 1.1;
}
.stat-box .stat-val.money { color: var(--green); }
.stat-box .stat-val.gold  { color: var(--gold); }
.stat-box .stat-val.cyan  { color: var(--cyan); }

/* =====================================================================
   TELA DE LOGIN / CADASTRO (AUTH)
   ===================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 184, 46, 0.13), transparent 40%),
    radial-gradient(circle at 82% 80%, rgba(239, 68, 68, 0.12), transparent 42%),
    linear-gradient(180deg, #090b0f 0%, #0e131c 100%);
}

.auth-container {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-hero {
  padding: 40px 34px;
  background:
    linear-gradient(145deg, rgba(245, 184, 46, 0.12), rgba(14, 18, 24, 0.92)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 28px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-hero-title {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 1px;
  margin-top: 18px;
}

.auth-hero-title span {
  color: var(--gold);
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 26px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-main);
}

.auth-features li .f-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-forms {
  padding: 34px 32px;
}

/* =====================================================================
   ÁRVORE DO LARRY — MAPA INTERATIVO COMPLETO (171 ITENS, PAN & ZOOM)
   ===================================================================== */
.tree-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tree-workspace {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 16px;
  align-items: start;
}

.tree-canvas-card {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 70%),
    #1c1e22;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 640px;
  max-height: 76vh;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.tree-canvas-card.dragging {
  cursor: grabbing;
}

.tree-viewport-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.tree-ctrl-group {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(13, 17, 24, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5px 7px;
  backdrop-filter: blur(6px);
  pointer-events: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.tree-search-wrap {
  position: relative;
  pointer-events: auto;
  width: 240px;
}

.tree-search-input {
  width: 100%;
  background: rgba(13, 17, 24, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: #fff;
  padding: 7px 11px;
  font-size: 12.5px;
  outline: none;
}
.tree-search-input:focus {
  border-color: var(--gold);
}

.tree-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #131822;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  max-height: 260px;
  overflow-y: auto;
  display: none;
  z-index: 30;
  box-shadow: var(--shadow);
}
.tree-search-results.open {
  display: block;
}

.tree-search-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(37, 47, 66, 0.5);
  font-size: 12.5px;
}
.tree-search-item:hover {
  background: var(--bg-card-hover);
}
.tree-search-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: #1d222b;
  flex-shrink: 0;
}

.tree-legend-bar {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(13, 17, 24, 0.88);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.tree-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 3720px;
  height: 2020px;
  transform-origin: 0 0;
  will-change: transform;
}

.tree-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tree-spine {
  stroke: #7a808a;
  stroke-width: 3;
}

.tree-edge {
  fill: none;
  stroke: #565d68;
  stroke-width: 2.5;
  stroke-linejoin: miter;
}

.tree-edge.available {
  stroke: rgba(245, 184, 46, 0.65);
  stroke-width: 2.8;
}

.tree-edge.unlocked {
  stroke: #22c55e;
  stroke-width: 3.4;
  filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.55));
}

.tree-edge.dimmed {
  opacity: 0.14;
}

/* Polaroids do Larry e das 8 Categorias (fiel ao jogo!) */
.larry-polaroid {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #e9e4d8;
  color: #18181b;
  padding: 7px 7px 10px;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  z-index: 5;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
}

.larry-polaroid::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 44px;
  height: 13px;
  background: rgba(235, 228, 210, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.larry-polaroid.hub-cat {
  width: 104px;
  cursor: pointer;
}

.larry-polaroid.hub-cat:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 0 3px var(--gold), 0 12px 28px rgba(0, 0, 0, 0.7);
  z-index: 9;
}

.larry-polaroid.hub-cat.active-cat {
  box-shadow: 0 0 0 3px var(--gold), 0 14px 30px rgba(245, 184, 46, 0.3);
}

.larry-polaroid.hub-larry {
  width: 162px;
  padding: 8px 8px 12px;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  cursor: pointer;
  z-index: 6;
}

.larry-polaroid.dimmed {
  opacity: 0.25;
}

.larry-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #14171d;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.larry-polaroid .pol-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 6px;
  line-height: 1.05;
  color: #18181b;
}

.larry-polaroid.hub-larry .pol-title {
  font-size: 16px;
  color: #991b1b;
}

.larry-polaroid .pol-sub {
  font-size: 10px;
  color: #44403c;
  margin-top: 3px;
  line-height: 1.25;
  font-weight: 600;
}

/* Nós de Itens (171 quadrados fiéis ao print!) */
.skill-node {
  position: absolute;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%) scale(1);
  background: #2b2f36;
  border: 2px solid #444a55;
  border-radius: 5px;
  cursor: pointer;
  z-index: 4;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.14s, box-shadow 0.16s, background 0.16s, opacity 0.18s;
}

.skill-node:hover {
  transform: translate(-50%, -50%) scale(1.16);
  z-index: 16;
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.72);
}

/* Nó selecionado na árvore: fica bem maior e em destaque para achar na hora! */
.skill-node.selected {
  transform: translate(-50%, -50%) scale(1.42);
  background: linear-gradient(180deg, #524014 0%, #261d09 100%) !important;
  border: 2.5px solid #fde047 !important;
  box-shadow:
    0 0 0 4px rgba(245, 184, 46, 0.45),
    0 0 28px rgba(250, 204, 21, 0.85),
    0 12px 28px rgba(0, 0, 0, 0.85) !important;
  z-index: 30;
}

.skill-node.selected.unlocked {
  background: linear-gradient(180deg, #1b5936 0%, #0f2c1c 100%) !important;
  border-color: #fde047 !important;
}

.skill-node.selected:hover {
  transform: translate(-50%, -50%) scale(1.48);
  z-index: 35;
}

.skill-node.new-up {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
}

.skill-node-new-tag {
  position: absolute;
  top: -8px;
  left: -8px;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  color: #031521;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1.5px solid #090b0f;
  z-index: 7;
  pointer-events: none;
  letter-spacing: 0.3px;
}

.skill-node.locked {
  background: #23262c;
  border-color: #3a3f49;
}

.skill-node.locked img {
  filter: grayscale(0.75) brightness(0.6);
  opacity: 0.78;
}

.skill-node.available {
  background: #2f343e;
  border-color: rgba(245, 184, 46, 0.7);
}

.skill-node.available img {
  filter: brightness(0.92);
}

.skill-node.unlocked {
  background: linear-gradient(180deg, #323c34 0%, #202a23 100%);
  border-color: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

.skill-node.unlocked img {
  filter: none;
  opacity: 1;
}

.skill-node.dimmed {
  opacity: 0.14;
  pointer-events: none;
}

.skill-node-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

.skill-node-rar {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
}

.skill-node-tier {
  position: absolute;
  top: 2px;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.skill-node-cost {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 12, 16, 0.82);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  padding: 1px 2px;
  border-radius: 0 0 3px 3px;
  pointer-events: none;
}

.skill-node.unlocked .skill-node-cost {
  background: rgba(16, 46, 26, 0.92);
  color: #86efac;
}

.skill-node-check, .skill-node-order {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #f7c344, #d99310);
  color: #090b0f;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b0f16;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 6;
}

/* Lista de Ordem de Compra no painel lateral */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 3px;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.order-row:hover {
  border-color: var(--gold);
  background: var(--bg-card);
}
.order-num {
  min-width: 28px;
  height: 24px;
  border-radius: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(245, 184, 46, 0.45);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.order-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: #1d222b;
  border-radius: 5px;
  padding: 2px;
  flex-shrink: 0;
}

/* Gear / Kit Builder (Armas, Sets & Consumíveis) */
.gear-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gear-slot-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #141820;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
}
.gear-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gear-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}
.gear-pick-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.gear-pick-item:hover {
  border-color: var(--gold);
  background: var(--bg-card);
}
.gear-pick-item.picked {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}
.gear-pick-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #1b202b;
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

/* =====================================================================
   FAKE INVENTÁRIO ROB RUN (IDÊNTICO AO PRINT IN-GAME!)
   ===================================================================== */
.robrun-inv-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 235px;
  gap: 12px;
  background:
    linear-gradient(155deg, rgba(64, 62, 56, 0.55) 0%, rgba(28, 30, 34, 0.94) 52%, rgba(36, 33, 28, 0.9) 100%);
  border: 1px solid #3f4552;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.inv-panel {
  background: rgba(29, 32, 37, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.inv-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.inv-panel-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f3f4f6;
  line-height: 1;
}

.inv-panel-money {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
}

.inv-car-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.inv-car-tab {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 22, 26, 0.85);
  color: #d1d5db;
  transform: skewX(-6deg);
}
.inv-car-tab > span {
  transform: skewX(6deg);
}
.inv-car-tab.active {
  background: #c6f52e;
  color: #111315;
}

.inv-grid-stage {
  max-height: 550px;
  overflow-y: auto;
  padding-right: 2px;
}

.inv-grid-wrap {
  position: relative;
}

.inv-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.inv-items-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(var(--inv-rows, 9), minmax(0, 1fr));
  gap: 4px;
  pointer-events: none;
  z-index: 4;
}

.inv-cell {
  aspect-ratio: 1 / 1;
  background: rgba(39, 41, 45, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.12s, background 0.12s, transform 0.1s;
}

.inv-cell.clickable {
  cursor: pointer;
}
.inv-cell.clickable:hover {
  border-color: rgba(245, 184, 46, 0.75);
}

.inv-cell.blocked-red {
  background: linear-gradient(145deg, rgba(185, 28, 28, 0.78), rgba(127, 29, 29, 0.92)) !important;
  border-color: #ef4444 !important;
  box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.45);
  cursor: pointer;
}
.inv-cell.blocked-red::before,
.inv-cell.blocked-red::after {
  content: '';
  position: absolute;
  width: 56%;
  height: 2px;
  background: rgba(254, 202, 202, 0.85);
}
.inv-cell.blocked-red::before { transform: rotate(45deg); }
.inv-cell.blocked-red::after  { transform: rotate(-45deg); }

.inv-cell.blocked-red .inv-blocked-tag {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fee2e2;
  letter-spacing: 0.4px;
}

/* =====================================================================
   SELETOR VISUAL INTERATIVO (MOCHILA, CARRO, MODS)
   Mostra só o selecionado; ao clicar abre a grade completa com foto,
   slots dentro e valor ($) embaixo no meio!
   ===================================================================== */
.visual-picker-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Janela flutuante estilo RPG (Pop-up abaixo do item selecionado sem quebrar o layout!) */
.rpg-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 340px;
  max-width: min(560px, 90vw);
  background: linear-gradient(180deg, #161b26 0%, #0e121a 100%);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.82), 0 0 22px rgba(245, 184, 46, 0.22);
  z-index: 120;
  animation: rpgPopIn 0.14s ease-out;
}

.rpg-popover.align-right {
  left: auto;
  right: 0;
}

.rpg-popover::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #161b26;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: rotate(45deg);
}

.rpg-popover.align-right::before {
  left: auto;
  right: 24px;
}

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

.rpg-popover-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--gold);
}

.rpg-popover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 3px;
}

/* Pop-up fixo para slots do EQUIPAMENTO / BOLSA TÁTICA (ancorado no clique) */
.rpg-equip-popup {
  position: fixed;
  width: 390px;
  max-width: calc(100vw - 24px);
  max-height: 440px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #171d29 0%, #0d1119 100%);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.88), 0 0 24px rgba(245, 184, 46, 0.2);
  z-index: 250;
  animation: rpgPopIn 0.14s ease-out;
}

@keyframes rpgPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tooltip flutuante estilo RPG ao passar o mouse nos itens */
.rpg-tooltip {
  position: fixed;
  z-index: 400;
  pointer-events: none;
  width: 270px;
  max-width: calc(100vw - 20px);
  background: rgba(13, 17, 24, 0.97);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
  display: none;
  backdrop-filter: blur(6px);
}

.rpg-tooltip.visible,
.rpg-tooltip.open {
  display: block;
}

.rpg-tt-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.rpg-tt-head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #1b212e;
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

.rpg-tt-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
}

.rpg-tt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.inv-equip-box.interactive {
  cursor: pointer;
  transition: transform 0.12s, border-color 0.14s, box-shadow 0.14s;
}
.inv-equip-box.interactive:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(245, 184, 46, 0.35);
  transform: scale(1.02);
}

.vpick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.vpick-card {
  position: relative;
  background: #141923;
  border: 2px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 6px 7px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s;
  user-select: none;
}

.vpick-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #1b2230;
}

.vpick-card.selected-only {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 9px 12px;
  width: 100%;
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.08), rgba(20, 25, 35, 0.96));
}

.vpick-card.rar-uncommon  { border-color: rgba(103, 248, 53, 0.55); }
.vpick-card.rar-epic      { border-color: rgba(227, 117, 255, 0.6); }
.vpick-card.rar-legendary { border-color: rgba(255, 213, 0, 0.65); }
.vpick-card.rar-exotic    { border-color: rgba(239, 68, 68, 0.65); }

.vpick-thumb {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 5px;
  border-radius: 7px;
  background: #1d232f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.vpick-card.selected-only .vpick-thumb {
  margin: 0;
  width: 68px;
  height: 68px;
}

.vpick-thumb img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  transform: translateY(-3px);
}

.vpick-slots-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(9, 11, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.25;
}

.vpick-val-inside {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 12, 16, 0.86);
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 2px 2px;
  line-height: 1.1;
}

.vpick-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.vpick-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vpick-change-hint {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(245, 184, 46, 0.35);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.ally-section-card {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-panel);
  padding: 16px;
  margin-bottom: 18px;
}

.inv-cell.locked {
  background: rgba(28, 30, 34, 0.45);
  border-color: rgba(255, 255, 255, 0.04);
}
.inv-cell.locked::before,
.inv-cell.locked::after {
  content: '';
  position: absolute;
  width: 44%;
  height: 1.5px;
  background: rgba(156, 163, 175, 0.25);
}
.inv-cell.locked::before { transform: rotate(45deg); }
.inv-cell.locked::after  { transform: rotate(-45deg); }

.inv-cell.cash {
  background: linear-gradient(180deg, rgba(42, 62, 43, 0.88) 0%, rgba(28, 56, 33, 0.96) 100%);
  border-color: rgba(103, 248, 53, 0.42);
}

.inv-cell.cash img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transform: translateY(-4px);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.inv-cell-val {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1;
}

.inv-cell.overflow-cell {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.7), rgba(69, 10, 10, 0.9));
  border-color: rgba(239, 68, 68, 0.7);
}

/* Item multi-slot (1x1, 2x1, 2x2, 3x2, 4x2) sobreposto na grade 2D (Modo COMPRAR) */
.inv-placed-item {
  pointer-events: auto;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: radial-gradient(circle at 50% 42%, rgba(44, 52, 68, 0.94), rgba(18, 22, 29, 0.98));
  border: 1.5px solid var(--tile-color, rgba(245, 184, 46, 0.65));
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: border-color 0.12s, box-shadow 0.12s, filter 0.12s;
}
.inv-placed-item:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(0, 0, 0, 0.65);
  z-index: 6;
}
.inv-placed-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}
.inv-placed-item img {
  max-width: 82%;
  max-height: 76%;
  object-fit: contain;
  transform: translateY(-4px);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7));
  z-index: 1;
}
.inv-placed-item .inv-cell-val {
  color: #fde68a;
  z-index: 2;
  font-size: 10px;
  bottom: 3px;
}
.inv-placed-item.size-1x1 .inv-cell-val {
  font-size: 9px;
  bottom: 2px;
}
.inv-size-tag {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 3;
  background: rgba(9, 11, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.15;
}
.item-dim-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: middle;
}

/* Barra compacta de resumo no topo da página Compras & Vendas */
.inv-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  margin-bottom: 14px;
}
.inv-top-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.inv-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.inv-metric-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}
.inv-metric-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.inv-metric-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.inv-metric-div {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Switcher limpo COMPRAR / VENDER */
.trade-mode-switcher {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 3px;
  gap: 4px;
}
.trade-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.14s ease;
}
.trade-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.trade-mode-btn.active-buy {
  background: linear-gradient(135deg, #f5b82e, #d97706);
  color: #090b0f;
  box-shadow: 0 3px 12px rgba(245, 184, 46, 0.32);
}
.trade-mode-btn.active-sell {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #06140c;
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.32);
}

.trade-tabs-row {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.trade-tabs-row .btn {
  padding: 5px 10px;
  font-size: 12px;
}

.trade-pct-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.trade-pct-row .pct-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 2px;
  white-space: nowrap;
}

.badge-buy {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(245, 184, 46, 0.16);
  color: var(--gold);
  border: 1px solid rgba(245, 184, 46, 0.4);
}
.badge-sell {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Painel Equipamento (direita do Fake Inventário) */
.inv-equip-box {
  background: rgba(24, 27, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.inv-equip-box.rarity-uncommon {
  background: linear-gradient(180deg, rgba(35, 58, 34, 0.82), rgba(22, 40, 24, 0.92));
  border-color: rgba(103, 248, 53, 0.55);
}
.inv-equip-box.rarity-epic {
  background: linear-gradient(180deg, rgba(72, 36, 94, 0.82), rgba(45, 22, 66, 0.94));
  border-color: rgba(227, 117, 255, 0.6);
}
.inv-equip-box.rarity-legendary {
  background: linear-gradient(180deg, rgba(99, 76, 20, 0.85), rgba(62, 46, 12, 0.95));
  border-color: rgba(255, 213, 0, 0.65);
}

.inv-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

@media (max-width: 1120px) {
  .robrun-inv-board {
    grid-template-columns: 1fr 1fr;
  }
  .robrun-inv-board > .inv-equip-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .robrun-inv-board {
    grid-template-columns: 1fr;
  }
}

/* Painel Inspetor da Skill */
.inspector-card {
  position: sticky;
  top: 76px;
}

.inspector-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.inspector-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #1b202b;
  overflow: hidden;
  padding: 5px;
}

.inspector-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.spec-row span:first-child { color: var(--text-muted); }
.spec-row strong { color: #fff; font-family: var(--font-mono); text-align: right; }

.level-row {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  margin-bottom: 6px;
  font-size: 12px;
}
.level-row.bought {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}

/* =====================================================================
   CLÃ HERO & CARDS
   ===================================================================== */
.clan-banner {
  background:
    linear-gradient(125deg, rgba(245, 184, 46, 0.14), rgba(19, 24, 34, 0.96) 55%),
    var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.clan-emblem-lg {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090b0f;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.45);
}

.clan-announcement {
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(245, 184, 46, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #fef3c7;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.perm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
}
.perm-check input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}

/* =====================================================================
   CHAT (GERAL & PRIVADO)
   ===================================================================== */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 16px;
  height: calc(100vh - 130px);
  min-height: 500px;
}

.friends-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  height: calc(100vh - 130px);
  min-height: 520px;
}

.chat-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 92%;
}

.chat-msg.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  min-width: 120px;
}

.chat-msg.mine .chat-bubble {
  background: rgba(245, 184, 46, 0.12);
  border-color: rgba(245, 184, 46, 0.35);
}

.chat-msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}

.chat-msg-text {
  font-size: 13.5px;
  color: var(--text-main);
  word-break: break-word;
  white-space: pre-wrap;
}

.chat-input-bar {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: var(--bg-card);
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.friend-item:hover {
  background: var(--bg-card);
}
.friend-item.active {
  background: var(--gold-dim);
  border-color: rgba(245, 184, 46, 0.35);
}

/* Pickers de Ícone e Cor */
.picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.icon-opt, .color-opt {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.icon-opt:hover, .color-opt:hover {
  border-color: #fff;
  color: #fff;
}
.icon-opt.active, .color-opt.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245, 184, 46, 0.35);
  color: var(--gold);
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-backdrop.open {
  display: flex;
}
.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: var(--shadow);
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: #161d2b;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--gold);
  color: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: toastIn 0.2s ease;
}
.toast.success { border-left-color: var(--green); }
.toast.error   { border-left-color: var(--red); }

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

.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 45;
}

/* =====================================================================
   MAPA INTERATIVO ROB RUN (LOOTY BAY) + MINI-MAPA FLUTUANTE (PIP / POPUP)
   ===================================================================== */
.map-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  height: calc(100vh - 108px);
  min-height: 540px;
}

.map-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-sidebar-head {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
}

.map-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-sec-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-layer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-layer-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(15, 20, 29, 0.55);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.map-layer-btn:hover {
  background: var(--bg-card);
  color: #fff;
}
.map-layer-btn.on {
  background: rgba(245, 184, 46, 0.09);
  border-color: rgba(245, 184, 46, 0.35);
  color: #fff;
}

.map-layer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.map-layer-cnt {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(9, 12, 18, 0.7);
  padding: 1px 6px;
  border-radius: 99px;
}
.map-layer-btn.on .map-layer-cnt {
  color: var(--gold);
}

.map-stage-wrap {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: #61adb5;
  box-shadow: var(--shadow);
}

.map-pip-host {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #61adb5;
  user-select: none;
  touch-action: none;
  cursor: grab;
}
.map-pip-host.dragging {
  cursor: grabbing;
}
.map-pip-host.adding-pin {
  cursor: crosshair;
}

.map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 4096px;
  height: 3355px;
  transform-origin: 0 0;
  will-change: transform;
}

.map-bg-img {
  position: absolute;
  inset: 0;
  width: 4096px;
  height: 3355px;
  display: block;
  pointer-events: none;
  image-rendering: auto;
}

.map-district-label {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--label-scale, 1));
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(10, 15, 24, 0.85), 0 0 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

/* Marcadores Oficiais (POIs) */
.map-poi-pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--inv-scale, 1));
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(13, 17, 24, 0.92);
  border: 2px solid var(--pin-color, #f5b82e);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: transform 0.1s ease, box-shadow 0.12s;
}
.map-poi-pin:hover {
  transform: translate(-50%, -50%) scale(calc(var(--inv-scale, 1) * 1.24));
  box-shadow: 0 0 0 3px var(--pin-color, #f5b82e), 0 6px 18px rgba(0, 0, 0, 0.85);
  z-index: 25;
}
.map-poi-pin.compact {
  width: 22px;
  height: 22px;
  border-width: 1.5px;
  z-index: 4;
}
.map-poi-pin img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}
.map-poi-pin.match-pulse {
  box-shadow: 0 0 0 4px rgba(245, 184, 46, 0.85), 0 0 16px rgba(245, 184, 46, 0.9);
  z-index: 20;
}

/* Pontos de Loot / Drops (927 spawns reais) */
.map-loot-dot {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--inv-scale, 1));
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-color, #22c55e);
  border: 2px solid #0b0f17;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.1s;
}
.map-loot-dot:hover {
  transform: translate(-50%, -50%) scale(calc(var(--inv-scale, 1) * 1.65));
  border-color: #fff;
  z-index: 24;
}
.map-loot-dot.match-pulse {
  width: 14px;
  height: 14px;
  border-color: #fff;
  box-shadow: 0 0 10px var(--dot-color, #f5b82e);
  z-index: 18;
}

/* Marcadores Personalizados do Usuário */
.map-user-pin {
  position: absolute;
  transform: translate(-50%, -100%) scale(var(--inv-scale, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 12;
  transition: transform 0.1s;
}
.map-user-pin:hover {
  transform: translate(-50%, -100%) scale(calc(var(--inv-scale, 1) * 1.18));
  z-index: 30;
}
.map-user-pin-head {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin-color, #f5b82e);
  border: 2px solid #0b0f17;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-user-pin-head > span {
  transform: rotate(45deg);
  font-size: 13px;
  line-height: 1;
  color: #090b0f;
  font-weight: 900;
}
.map-user-pin-tag {
  margin-top: 3px;
  background: rgba(11, 15, 22, 0.92);
  border: 1px solid var(--pin-color, #f5b82e);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* HUD Flutuante no Mapa */
.map-hud-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.map-hud-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  pointer-events: auto;
  background: rgba(13, 17, 24, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5px 7px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.map-hud-banner {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  background: rgba(13, 17, 24, 0.95);
  border: 2px solid var(--gold);
  color: #fff;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.map-hud-banner.visible {
  display: inline-flex;
}

/* Tooltip do Mapa (fica DENTRO de #mapPipHost para funcionar no Pop-up PiP!) */
.map-tooltip {
  position: absolute;
  z-index: 80;
  pointer-events: none;
  width: 265px;
  max-width: calc(100% - 16px);
  background: rgba(11, 15, 22, 0.97);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 9px 11px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85);
  display: none;
}
.map-tooltip.visible {
  display: block;
}
.map-tt-drops {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.map-tt-drop-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.25;
}

/* Barra Compacta Exclusiva do Modo Mini-Mapa Flutuante (PiP / ?mini=1) */
.map-mini-bar {
  display: none;
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  z-index: 50;
  background: rgba(11, 15, 22, 0.88);
  border: 1px solid rgba(245, 184, 46, 0.45);
  border-radius: 7px;
  padding: 4px 6px;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  backdrop-filter: blur(5px);
}
.map-mini-chip {
  border: 1px solid var(--border-strong);
  background: rgba(20, 26, 36, 0.9);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
}
.map-mini-chip.on {
  background: rgba(245, 184, 46, 0.2);
  border-color: var(--gold);
  color: #fff;
}

/* Quando está dentro da janela PiP ou ?mini=1 */
.map-pip-host.is-pip-mode .map-hud-bar {
  display: none;
}
.map-pip-host.is-pip-mode .map-mini-bar {
  display: flex;
}
.map-pip-host.is-pip-mode .map-tooltip {
  width: 225px;
  padding: 7px 9px;
}
body.mini-map-body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  background: #61adb5;
}
body.mini-map-body .map-pip-host {
  width: 100vw;
  height: 100vh;
}

.map-pip-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #161d2b, #0c1018);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
  z-index: 5;
}

/* === ROTAS GPS NO MAPA (LINHA VERMELHA SEGUINDO AS RUAS + PINGS NUMERADOS) === */
.map-route-svg {
  position: absolute;
  inset: 0;
  width: 4096px;
  height: 3355px;
  pointer-events: none;
  z-index: 8;
}

.map-route-halo {
  fill: none;
  stroke: rgba(15, 10, 12, 0.78);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-route-line {
  fill: none;
  stroke: #ef4444;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.75));
}

.map-route-flow {
  fill: none;
  stroke: #fecaca;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 26;
  animation: routeDashFlow 1.6s linear infinite;
}

@keyframes routeDashFlow {
  from { stroke-dashoffset: 40; }
  to   { stroke-dashoffset: 0; }
}

.map-route-ping {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--inv-scale, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 16;
  transition: transform 0.1s;
}
.map-route-ping:hover {
  transform: translate(-50%, -50%) scale(calc(var(--inv-scale, 1) * 1.18));
  z-index: 32;
}

.map-route-ping-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ef4444, #b91c1c);
  border: 2.5px solid #fff;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 0 12px rgba(239, 68, 68, 0.7);
}

.map-route-ping-lbl {
  margin-top: 2px;
  background: rgba(15, 10, 12, 0.92);
  border: 1px solid rgba(239, 68, 68, 0.75);
  color: #fee2e2;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

/* Banner da Rota Ativa no canto inferior esquerdo do mapa */
.map-active-route-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 42;
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
  background: rgba(13, 17, 24, 0.94);
  border: 1.5px solid rgba(239, 68, 68, 0.75);
  border-radius: 9px;
  padding: 7px 11px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.map-active-route-pill.visible {
  display: flex;
}
.map-pip-host.is-pip-mode .map-active-route-pill {
  bottom: 6px;
  left: 6px;
  padding: 4px 7px;
  font-size: 10.5px;
  gap: 5px;
}

/* Editor Inline de Rota & Lista de Rotas na Sidebar */
.route-editor-box {
  background: rgba(15, 20, 29, 0.95);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  border-radius: 9px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}

.route-wp-list {
  max-height: 155px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-wp-row {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
}

.route-wp-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.route-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.12s;
}
.route-card.active-route {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.route-ver-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.route-import-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.route-import-card:hover {
  border-color: var(--border-strong);
}

.version-row-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.version-row-card.is-active {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.07);
}

@media (max-width: 960px) {
  .map-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }
  .map-stage-wrap {
    height: 62vh;
    min-height: 420px;
  }
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1100px) {
  .tree-workspace {
    grid-template-columns: 1fr;
  }
  .inspector-card {
    position: static;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }
  .main-area {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 26px 22px;
  }
  .grid-2, .grid-3, .friends-layout {
    grid-template-columns: 1fr;
  }
  .friends-layout {
    height: auto;
  }
  .content-wrap {
    padding: 16px;
  }
}


/* =====================================================================
   CLÃ ROSTER — ITENS MAIS UPADOS (LAPTOP) + SISTEMA DE TRADES
   ===================================================================== */
.clan-top-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  max-width: 390px;
}

.clan-top-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(160deg, #1b2230, #111620);
  border: 1.5px solid var(--border-strong);
  padding: 3px 3px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
  transition: transform 0.12s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.clan-top-item.can-trade {
  cursor: pointer;
}

.clan-top-item.can-trade:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 14px rgba(245, 184, 46, 0.35);
  z-index: 3;
}

.clan-top-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.clan-top-price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 10, 15, 0.9);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  padding: 0 1px;
}

.clan-top-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 34px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px dashed var(--border-strong);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.14s, background 0.14s;
}

.clan-top-more:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

/* === TRADES PAGE: SEARCH BAR & DROPDOWN === */
.trade-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.trade-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
}

.trade-search-input {
  padding-left: 38px !important;
  padding-right: 34px !important;
  font-size: 13.5px;
}

.trade-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.trade-search-clear:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.trade-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow-y: auto;
  background: #121722;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78);
  z-index: 95;
  padding: 5px;
}

.trade-search-dropdown.open {
  display: block;
}

.trade-search-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.trade-search-row:hover {
  background: rgba(245, 184, 46, 0.1);
  border-color: rgba(245, 184, 46, 0.45);
}

.trade-search-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #1b2230;
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

.trade-search-result-box {
  background: var(--bg-input);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 12px;
}

.trade-search-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 8px;
}

.trade-search-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* === TRADES MAIN LAYOUT === */
.trades-main-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.trades-sidebar-card {
  padding: 12px;
  position: sticky;
  top: 72px;
}

.trades-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: calc(100vh - 255px);
  min-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.trade-list-item {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 11px;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, transform 0.1s;
}

.trade-list-item:hover {
  border-color: var(--gold);
  background: var(--bg-card);
}

.trade-list-item.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 184, 46, 0.35);
  background: rgba(245, 184, 46, 0.08);
}

/* TRADE CONCLUÍDO -> VERDE PERMANENTE NA LISTA! */
.trade-list-item.status-completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(20, 46, 30, 0.72));
  border-color: rgba(34, 197, 94, 0.75);
}

.trade-list-item.status-completed:hover,
.trade-list-item.status-completed.selected {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(20, 56, 35, 0.85));
  border-color: #4ade80;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.25);
}

.trade-list-item.status-cancelled {
  opacity: 0.62;
}

.trade-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.trade-status-pill.open {
  background: rgba(56, 189, 248, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.trade-status-pill.waiting-you {
  background: rgba(245, 184, 46, 0.2);
  color: var(--gold);
  border: 1px solid rgba(245, 184, 46, 0.55);
}

.trade-status-pill.accepted-me {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.trade-status-pill.completed {
  background: rgba(34, 197, 94, 0.28);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.trade-status-pill.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.trade-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
  flex-shrink: 0;
}

.trade-dot.on {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.trade-player-row {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}

.trade-player-row:hover,
.trade-player-row.selected {
  border-color: var(--gold);
  background: var(--bg-card);
}

.trade-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #141923;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.trade-mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === INVENTÁRIO DE FABRICAÇÃO ESTILO COMPRAS & VENDAS === */
.trade-inv-board {
  background: linear-gradient(155deg, rgba(64, 62, 56, 0.45) 0%, rgba(25, 28, 34, 0.96) 55%, rgba(33, 30, 26, 0.92) 100%);
  border: 1px solid #3f4552;
  border-radius: 10px;
  padding: 12px;
}

.trade-branch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.trade-inv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  max-height: 295px;
  overflow-y: auto;
  padding-right: 2px;
}

.trade-inv-slot {
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 4px;
  background: linear-gradient(170deg, rgba(35, 39, 48, 0.92), rgba(20, 23, 29, 0.96));
  border: 1.5px solid color-mix(in srgb, var(--rar, #556178) 65%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 5px 16px;
  overflow: hidden;
  transition: transform 0.1s, border-color 0.12s, box-shadow 0.14s;
}

.trade-inv-slot.empty {
  background: rgba(31, 34, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.trade-inv-slot.clickable {
  cursor: pointer;
}

.trade-inv-slot.clickable:hover {
  border-color: var(--gold);
  box-shadow: inset 0 0 12px rgba(245, 184, 46, 0.25), 0 0 10px rgba(245, 184, 46, 0.25);
  transform: translateY(-1px);
  z-index: 2;
}

.trade-inv-slot.in-offer {
  border-color: #22c55e;
  box-shadow: inset 0 0 14px rgba(34, 197, 94, 0.28);
}

.trade-inv-slot img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65));
}

.trade-inv-qty {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #22c55e;
  color: #06140b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.trade-inv-price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 10, 14, 0.88);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 2px 2px;
  line-height: 1.1;
}

/* === SALA DE TRADE: MESA DE TROCA + CHAT === */
.trade-room-card.status-completed {
  border-color: rgba(34, 197, 94, 0.8) !important;
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.14);
}

.trade-completed-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.26), rgba(16, 74, 38, 0.72));
  border: 1.5px solid #22c55e;
  color: #dcfce7;
  font-size: 13px;
}

.trade-room-split,
.trade-bottom-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.trade-offer-panel,
.trade-chat-panel {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.trade-offer-panel.completed {
  border-color: rgba(34, 197, 94, 0.65);
  background: linear-gradient(180deg, rgba(22, 66, 38, 0.35), var(--bg-input));
}

.trade-offer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 2px;
}

.trade-offer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.trade-offer-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #141923;
  border-radius: 5px;
  padding: 3px;
  flex-shrink: 0;
}

.trade-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.trade-qty-ctrl button {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trade-qty-ctrl button:hover {
  border-color: var(--gold);
}

.trade-qty-ctrl button.del:hover {
  border-color: var(--red);
  color: var(--red);
}

.trade-qty-ctrl span {
  min-width: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  color: #fff;
}

.trade-accept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trade-accept-box {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.trade-accept-box.ok {
  background: rgba(34, 197, 94, 0.16);
  border-color: #22c55e;
}

.trade-done-pill {
  margin-top: 10px;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.25);
  border: 1.5px solid #22c55e;
  color: #4ade80;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.trade-chat-messages {
  flex: 1;
  min-height: 220px;
  max-height: 310px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 4px 2px;
}

.trade-chat-bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.trade-chat-bubble.mine {
  align-self: flex-end;
  background: rgba(245, 184, 46, 0.12);
  border-color: rgba(245, 184, 46, 0.42);
}

.trade-chat-sys {
  align-self: center;
  text-align: center;
  font-size: 11px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 10px;
  border-radius: 99px;
  max-width: 96%;
}

@media (max-width: 1120px) {
  .trades-main-grid {
    grid-template-columns: 1fr;
  }
  .trades-sidebar-card {
    position: static;
  }
  .trades-list-scroll {
    max-height: 280px;
  }
  .trade-room-split,
  .trade-bottom-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .trade-inv-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* =====================================================================
   POP-UP PADRÃO DE CONFIRMAÇÃO — TEMA ROB RUN (RobRun.confirm)
   ===================================================================== */
.btn-danger-solid {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #fff;
  border: 1px solid rgba(254, 202, 202, 0.35);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}
.btn-danger-solid:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.rr-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(5, 7, 11, 0.78);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.rr-confirm-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.rr-confirm-box {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #151b26 0%, #0d1118 100%);
  border: 1.5px solid var(--border-strong);
  border-top: 3px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 32px rgba(239, 68, 68, 0.18);
  overflow: hidden;
  transform: translateY(10px) scale(0.96);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.rr-confirm-backdrop.open .rr-confirm-box {
  transform: translateY(0) scale(1);
}
.rr-confirm-box.variant-gold {
  border-top-color: var(--gold);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 32px rgba(245, 184, 46, 0.18);
}

.rr-confirm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(37, 47, 66, 0.7);
  background: rgba(255, 255, 255, 0.02);
}

.rr-confirm-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rr-confirm-icon.danger {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}
.rr-confirm-icon.gold {
  background: rgba(245, 184, 46, 0.16);
  border: 1px solid rgba(245, 184, 46, 0.45);
  color: var(--gold);
}

.rr-confirm-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.2;
}
.rr-confirm-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-top: 2px;
}

.rr-confirm-x {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rr-confirm-x:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rr-confirm-body {
  padding: 16px 18px;
}
.rr-confirm-msg {
  font-size: 13.5px;
  color: #e5e7eb;
  line-height: 1.5;
}
.rr-confirm-warn {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  border: 1px solid;
}
.rr-confirm-warn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.rr-confirm-warn.gold {
  background: rgba(245, 184, 46, 0.1);
  border-color: rgba(245, 184, 46, 0.35);
  color: #fde68a;
}

.rr-confirm-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(37, 47, 66, 0.6);
  background: rgba(8, 10, 14, 0.45);
}

/* =====================================================================
   ÁRVORE DE SKILLS — TOOLBAR ALINHADA, BANNER LIMPO E CARD NOVOS UPS
   ===================================================================== */
.tree-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tree-toolbar-left,
.tree-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tree-loadout-select {
  width: auto !important;
  min-width: 230px;
  max-width: 320px;
  height: 36px;
  padding: 0 12px !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-season-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.11), rgba(17, 23, 34, 0.92));
  font-size: 12.5px;
  line-height: 1.45;
  color: #cbd5e1;
}
.tree-season-banner.template {
  border-color: rgba(245, 184, 46, 0.35);
  background: linear-gradient(90deg, rgba(245, 184, 46, 0.1), rgba(17, 23, 34, 0.92));
}
.tree-season-banner strong {
  color: #fff;
}

.stat-box.new-ups-card {
  position: relative;
  border-color: rgba(56, 189, 248, 0.3);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.stat-box.new-ups-card.has-ups {
  border-color: rgba(56, 189, 248, 0.85);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), var(--bg-card));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}
.stat-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.btn-micro-reset {
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-micro-reset:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
}
