/* =========================================================================
   PokeIdle — tema visual "Pokémon moderno" (glassmorphism)
   -------------------------------------------------------------------------
   Folha carregada por último (depois de app/main/inline/hub-extra).

   Direção visual: Pokémon atual (Scarlet/Violet, UNITE, Pokémon Center):
   • vidro escuro com blur, bordas finas e cantos generosos;
   • acentos em gradiente (azul #38bdf8 → violeta #8b5cf6, vermelho #ff4d67,
     amarelo #facc15);
   • tipografia Outfit (corpo) + Bebas Neue (títulos/marca);
   • botões "pill", brilhos suaves e animações discretas.

   O tema CLÁSSICO (retrô) continua guardado em css/pokemon-theme.css —
   para voltar a ele, troque o <link> no index.html.

   Nada aqui depende de JS: é só uma camada de apresentação.
   ========================================================================= */

/* ── Fontes (locais, sem CDN) ────────────────────────────────────────────── */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas-neue-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Paleta e tokens ─────────────────────────────────────────────────────── */
:root {
  --md-bg: #060a16;
  --md-bg-2: #0a1122;
  --md-panel: rgba(15, 22, 40, 0.72);
  --md-panel-solid: #0f1628;
  --md-glass: rgba(255, 255, 255, 0.05);
  --md-glass-2: rgba(255, 255, 255, 0.09);
  --md-border: rgba(148, 163, 184, 0.16);
  --md-border-soft: rgba(148, 163, 184, 0.1);
  --md-text: #eef2ff;
  --md-muted: #8b9bb8;
  --md-dim: #5f6f8e;
  --md-blue: #4f8ef7;
  --md-cyan: #38bdf8;
  --md-violet: #8b5cf6;
  --md-red: #ff4d67;
  --md-yellow: #facc15;
  --md-green: #34d399;
  --md-shadow: 0 14px 34px rgba(2, 6, 17, 0.4);
  --md-grad-blue: linear-gradient(135deg, #38bdf8, #4f8ef7 55%, #8b5cf6);
  --md-grad-brand: linear-gradient(90deg, #ff4d67, #facc15 50%, #38bdf8);
  --md-grad-hp: linear-gradient(90deg, #10b981, #34d399);
  --md-grad-xp: linear-gradient(90deg, #38bdf8, #8b5cf6);

  /* Tokens do hub apontando para a paleta moderna. */
  --phw-accent: var(--md-cyan);
  --phw-primary: var(--md-violet);
  --phw-secondary: var(--md-blue);
  --phw-bg-dark: #0a1122;
  --phw-bg-mid: #101a30;
  --phw-bg-light: #182440;
  --phw-border-secondary: 1px solid rgba(148, 163, 184, 0.22);
  --phw-glow-primary: 0 0 20px rgba(56, 189, 248, 0.35);
  --phw-glow-subtle: 0 0 10px rgba(56, 189, 248, 0.18);
  --phw-radius-sm: 8px;
  --phw-radius-md: 12px;
  --phw-radius-lg: 18px;

  --ot-bg: #0a1122;
  --ot-panel: #101a30;
  --ot-panel-2: #182440;
  --ot-border: rgba(148, 163, 184, 0.2);
  --ot-gold: var(--md-yellow);
  --ot-gold-dim: #a78b2a;
  --ot-text: var(--md-text);
  --ot-muted: var(--md-muted);
  --ot-hp: var(--md-green);
  --ot-stamina: var(--md-yellow);
}

/* ── Base tipográfica e de página ────────────────────────────────────────── */
html,
body {
  background: var(--md-bg) !important;
  color: var(--md-text);
  font-family: 'Outfit', 'Inter', 'Segoe UI', Tahoma, sans-serif !important;
}

button,
input,
select,
textarea {
  font-family: 'Outfit', 'Inter', 'Segoe UI', Tahoma, sans-serif !important;
}

::selection {
  background: rgba(56, 189, 248, 0.45);
  color: #fff;
}

a {
  color: var(--md-cyan);
}

/* Scrollbars finas e escuras, com polegar ciano. */
* {
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(10, 17, 34, 0.8);
}
.ot-scroll::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
.ot-scroll::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: rgba(6, 10, 22, 0.9);
}
.ot-scroll::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.65), rgba(139, 92, 246, 0.65));
  border-radius: 8px;
  border: 2px solid rgba(6, 10, 22, 0.9);
}
.ot-scroll::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: var(--md-cyan);
}

/* ── Pokébola em CSS (versão moderna, com brilho) ────────────────────────── */
.pk-ball {
  --pk-ball-size: 32px;
  position: relative;
  display: inline-block;
  width: var(--pk-ball-size);
  height: var(--pk-ball-size);
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 38%),
    linear-gradient(180deg, #ff6b7d 0%, #ef3b52 44%, #262a3d 46%, #262a3d 54%, #f4f6fb 54%, #cdd5e6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.07),
    0 0 18px rgba(56, 189, 248, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.pk-ball::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  height: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f4f6fb;
  border: 2px solid #262a3d;
  box-sizing: border-box;
}
.pk-ball::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17%;
  height: 17%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  border: 1px solid #262a3d;
  box-sizing: border-box;
}

/* ── Topbar: barra de vidro com filete de gradiente ──────────────────────── */
#topbar {
  background: rgba(9, 13, 26, 0.78) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 0 !important;
  box-shadow: 0 10px 28px rgba(2, 6, 17, 0.45) !important;
  align-items: center;
}
/* O filete de gradiente na base da barra (vermelho→amarelo→azul). */
#topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--md-grad-brand);
  opacity: 0.85;
  pointer-events: none;
}

/* Marca: Pokébola + logo em Bebas Neue com texto em gradiente. */
.pk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: 2px;
  position: relative;
  z-index: 1;
}
.pk-brand-ball {
  --pk-ball-size: 34px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}
/* A ampulheta no canto da Pokébola: o "tempo" do idle (o jogo joga por você). */
.pk-brand .pk-hourglass {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #0a1122;
  border: 2px solid var(--md-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  z-index: 2;
}
.pk-brand .pk-hourglass::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--md-cyan) 0 44%, #0a1122 44% 56%, var(--md-yellow) 56% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 50%, 100% 100%, 0 100%, 50% 50%);
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 50%, 100% 100%, 0 100%, 50% 50%);
}
.pk-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.pk-brand-copy b {
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.08em;
  background: var(--md-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.25));
}
.pk-brand-copy small {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #aebadb;
  white-space: nowrap;
}
.pk-top-divider {
  width: 1px;
  height: 56%;
  flex: 0 0 auto;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 2px;
}

/* Botões da topbar: pills de vidro. */
#topbar .top-icon-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 10px !important;
  color: #dbe4f8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease !important;
}
#topbar .top-icon-btn:hover {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}
#topbar .top-icon-btn:active {
  transform: translateY(0) scale(0.97) !important;
}
#topbar .top-icon-btn:before {
  background: none !important;
}
#topbar .top-ico {
  color: #b9c8e8 !important;
  opacity: 1;
}
#topbar .top-icon-btn:hover .top-ico {
  color: #7dd3fc !important;
}
#topbar .top-icon-btn img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
#topbar .top-icon-btn {
  font-weight: 700;
}
#topbar .top-icon-label {
  color: var(--md-muted) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}
#topbar .top-icon-btn:hover .top-icon-label {
  color: #bae6fd !important;
}

/* Botões especiais. */
#topbar #admin-btn {
  background: rgba(139, 92, 246, 0.16) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #d8c8ff !important;
}
#topbar #admin-btn:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  color: #fff !important;
}
#topbar #logout-btn {
  background: rgba(255, 77, 103, 0.14) !important;
  border-color: rgba(255, 77, 103, 0.4) !important;
  color: #ffd3da !important;
}
#topbar #logout-btn:hover {
  background: rgba(255, 77, 103, 0.28) !important;
  color: #fff !important;
}
#topbar .messages-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b81, #ef2d56);
  border: 2px solid #0a1122;
  color: #fff;
  font-weight: 800;
  font-size: 9px;
  line-height: 11px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 77, 103, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
  animation: md-badge-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), md-badge-glow 2.2s ease-in-out 0.3s infinite;
}
#topbar #messages-btn {
  position: relative;
}
/* Acento de cor POR MENU: cada ícone acende com a cor do seu assunto no hover. */
#topbar [data-panel="dex"]:hover .top-ico { color: #ff8ba0 !important; }
#topbar [data-panel="capture"]:hover .top-ico { color: #fde68a !important; }
#topbar #messages-btn:hover .top-ico { color: #fda4af !important; }
#topbar #friends-btn:hover .top-ico { color: #86efac !important; }
#topbar #ranking-btn:hover .top-ico { color: #facc15 !important; }
#topbar #guild-btn:hover .top-ico { color: #c4b5fd !important; }
#topbar [data-panel="shop"]:hover .top-ico { color: #7dd3fc !important; }
#topbar #pokepedia-btn:hover .top-ico { color: #93c5fd !important; }
#topbar #market-btn:hover .top-ico { color: #fbbf24 !important; }
#topbar #config-btn:hover .top-ico { color: #bae6fd !important; }
#topbar #tutorials-btn:hover .top-ico { color: #fde047 !important; }
#topbar #admin-btn:hover .top-ico { color: #d8c8ff !important; }
#topbar #logout-btn:hover .top-ico { color: #fda4af !important; }
@keyframes md-badge-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes md-badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 77, 103, 0.45), 0 1px 3px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 16px rgba(255, 77, 103, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5); }
}

/* Carteira: pills de vidro com número tabular. */
#topbar .topbar-gold,
#topbar .topbar-diamonds {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 999px !important;
  color: var(--md-text) !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
#topbar .topbar-gold {
  color: #fde68a !important;
}
#topbar .topbar-diamonds {
  color: #bae6fd !important;
}
#topbar .topbar-gold:hover,
#topbar .topbar-diamonds:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18) !important;
}

/* ── Sidebar direita: vidro escuro ───────────────────────────────────────── */
#sidebar-right {
  background: rgba(9, 14, 28, 0.66) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-left: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: -12px 0 34px rgba(2, 6, 17, 0.28) !important;
}

/* ── Card do treinador ───────────────────────────────────────────────────── */
#trainer-card {
  background:
    radial-gradient(circle at 85% 0%, rgba(139, 92, 246, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: var(--md-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  color: var(--md-text) !important;
  padding: 14px 12px 13px !important;
  gap: 7px !important;
  margin: 10px 10px 0 !important;
  font-family: 'Outfit', sans-serif !important;
}
#trainer-card::after {
  content: 'TREINADOR';
  position: absolute;
  right: 11px;
  top: 9px;
  z-index: 2;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: #7dd3fc;
  pointer-events: none;
}
#tr-map-wrap {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 11px;
  padding: 3px;
  background: rgba(4, 8, 18, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  margin-bottom: 10px !important;
  overflow: hidden;
}
#tr-minimap {
  border: 0 !important;
  border-radius: 8px !important;
  background: #04070f !important;
}
#tr-pos {
  right: 7px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
#tr-avatar {
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 11px !important;
  background: radial-gradient(circle at 50% 40%, #182a4e, #0a1222) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}
#tr-name {
  color: #f4f7ff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em;
}
.tr-bless {
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--md-muted) !important;
  border-radius: 999px !important;
}
.tr-bless.has {
  background: rgba(250, 204, 21, 0.14) !important;
  border-color: rgba(250, 204, 21, 0.4) !important;
  color: #fde68a !important;
}
#tr-hp-wrap {
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  background: rgba(4, 8, 18, 0.6) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  height: 14px !important;
}
#tr-hp {
  background: var(--md-grad-hp) !important;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}
#tr-hp-text {
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}
#tr-vitals {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 9px !important;
  color: var(--md-text) !important;
}
#tr-vitals:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
}
.tr-stamina-ico {
  color: #fda4af !important;
}
.tr-stamina {
  color: #dbe4f8 !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tr-ball {
  background: rgba(148, 163, 184, 0.25);
  border-color: transparent;
}
.tr-ball.on {
  background: var(--md-red);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 8px rgba(255, 77, 103, 0.6);
}
.tr-hunt-time {
  color: var(--md-muted) !important;
}
.tr-hunt-time b {
  color: #7dd3fc !important;
  font-weight: 800;
}
.tr-hunt-time.low b {
  color: #fda4af !important;
}
.tr-level-label {
  color: var(--md-muted) !important;
  font-weight: 700 !important;
}
#tr-level {
  color: #f4f7ff !important;
  font-weight: 800 !important;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  line-height: 1.5;
}
#tr-xp-wrap {
  background: rgba(4, 8, 18, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 999px !important;
  height: 6px !important;
}
#tr-xp {
  background: var(--md-grad-xp) !important;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
}
#tr-xptext {
  color: var(--md-muted) !important;
  font-weight: 700;
}
.tr-xp-bonus {
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  background: rgba(56, 189, 248, 0.12) !important;
  color: #bae6fd !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}
.tr-xp-bonus.negative {
  border-color: rgba(255, 77, 103, 0.45) !important;
  background: rgba(255, 77, 103, 0.14) !important;
  color: #fda4af !important;
}
.tr-xp-boost-row {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 10px !important;
}
.tr-xp-boost-label {
  color: #dbe4f8 !important;
}
.tr-xp-boost-star {
  color: var(--md-yellow) !important;
}
.tr-xp-boost-time {
  color: #7dd3fc !important;
}
.tr-xp-boost-buy {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.4);
}
.tr-xp-boost-buy:hover {
  filter: brightness(1.1);
}
.tr-xp-boost-toggle {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #dbe4f8 !important;
  border-radius: 8px !important;
}
.tr-xp-tip {
  color: #e7edfd !important;
  background: rgba(11, 17, 33, 0.97) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  backdrop-filter: blur(14px);
}
.tr-xp-tip-title,
.tr-xp-tip-total {
  color: #7dd3fc !important;
}
.tr-clan {
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #7dd3fc !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}
.tr-clan-rank {
  background: #0b1122 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #7dd3fc !important;
}
.tr-vip-days {
  color: #fde68a !important;
  text-shadow: 0 1px 2px #000 !important;
}
#tr-xp-tip {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

/* ── Mochila (inventário) ────────────────────────────────────────────────── */
#inventory {
  background:
    radial-gradient(circle at 90% 0%, rgba(56, 189, 248, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: var(--md-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  color: var(--md-text) !important;
  margin: 10px !important;
  padding: 12px 10px 12px !important;
}
#inventory .inv-head {
  margin-bottom: 4px;
}
#inventory .inv-title {
  color: #e7edfd !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#inventory .inv-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--md-grad-blue);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}
#inventory .inv-min {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--md-muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
#inventory .inv-min:hover {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}
#inventory .inv-tabs {
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 10px !important;
  background: rgba(4, 8, 18, 0.5) !important;
  padding: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
#inventory .inv-tab {
  color: var(--md-muted) !important;
  background: transparent !important;
  font-weight: 700 !important;
  padding: 6px 0 !important;
  border-radius: 7px;
}
#inventory .inv-tab.active {
  background: var(--md-grad-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.35) !important;
}
#inventory > #inv-grid {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.018) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.018) 75%),
    rgba(4, 8, 18, 0.55) !important;
  background-size: 18px 18px, 18px 18px, auto !important;
  background-position: 0 0, 9px 9px, 0 0 !important;
  background-repeat: repeat, repeat, no-repeat !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 11px !important;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  padding: 7px !important;
}
#inventory .inv-cell {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#inventory .inv-cell:hover {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
#inventory .inv-cell.inv-cell-empty {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(148, 163, 184, 0.18) !important;
  box-shadow: none !important;
}
#inventory .inv-cell .cnt {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.65) !important;
  padding: 0 !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#inventory .inv-cell.inv-has-menu {
  border-color: rgba(250, 204, 21, 0.45) !important;
}
#inventory .inv-cell.inv-has-menu:hover {
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.3) !important;
}
#inventory .inv-cell.inv-poke .inv-name {
  color: #bae6fd !important;
  text-shadow: 0 1px 2px #000 !important;
  font-weight: 800;
}
#inventory .inv-cell.inv-poke .inv-boost {
  color: #fde68a !important;
  text-shadow: 0 1px 2px #000 !important;
}
#inventory .inv-cell.inv-poke .inv-ball {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ── Card da sessão / automação ──────────────────────────────────────────── */
.session-side {
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: var(--md-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  color: var(--md-text) !important;
  padding: 0 !important;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.session-head {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.16)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  padding: 9px 12px !important;
  width: 100%;
  box-sizing: border-box;
  margin: 0 !important;
}
.session-title {
  color: #f4f7ff !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
}
.session-chev,
.session-collapse {
  color: #7dd3fc !important;
}
.session-body {
  padding: 10px 12px 12px !important;
}
.session-row .k {
  color: var(--md-muted) !important;
  font-weight: 600;
}
.session-row .v {
  color: #e7edfd !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.session-row .v.muted {
  color: var(--md-dim) !important;
}
.session-row .v.cyan {
  color: #7dd3fc !important;
  font-weight: 800;
}
.session-wave-bar {
  background: rgba(4, 8, 18, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  height: 6px;
}
.session-wave-bar i {
  background: var(--md-grad-blue) !important;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}
.session-auto-div {
  margin: 10px 0 8px !important;
}
.session-auto-line {
  background: rgba(148, 163, 184, 0.16) !important;
}
.session-auto-label {
  background: var(--md-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 9px !important;
  letter-spacing: 0.18em;
}
.session-check {
  background: rgba(148, 163, 184, 0.2) !important;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--md-muted) !important;
  font-weight: 800;
}
.session-chip.on .session-check {
  background: var(--md-grad-hp) !important;
  border-color: transparent;
  color: #04110b !important;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}
.session-chip-tag {
  color: #7dd3fc !important;
  font-weight: 800;
}
.session-chip-tag.spent {
  color: #fda4af !important;
}
.session-body .session-details,
.session-details {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(79, 142, 247, 0.35) !important;
  padding: 8px 10px !important;
}
.session-details:hover {
  filter: brightness(1.08);
}
.session-automation {
  background: linear-gradient(135deg, #facc15, #f59e0b) !important;
  border: 0 !important;
  color: #1f1300 !important;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35) !important;
}
.session-automation:hover {
  filter: brightness(1.06);
}
.session-stop {
  background: linear-gradient(135deg, #ff4d67, #e11d48) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 12px rgba(255, 77, 103, 0.35) !important;
}
.session-stop:hover {
  filter: brightness(1.08);
}

/* Botão HUNTS flutuante (dock). */
#hunt-btn {
  background: rgba(10, 16, 32, 0.78) !important;
  border: 1px solid rgba(255, 77, 103, 0.45) !important;
  border-radius: 12px !important;
  color: #ffd3da !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 22px rgba(2, 6, 17, 0.4), 0 0 16px rgba(255, 77, 103, 0.15) !important;
  padding: 9px 12px !important;
  backdrop-filter: blur(12px);
}
#hunt-btn::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  vertical-align: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, #ff6b7d 0 46%, #262a3d 46% 54%, #f4f6fb 54%);
  box-sizing: border-box;
  box-shadow: 0 0 8px rgba(255, 77, 103, 0.5);
}
#hunt-btn:hover {
  border-color: rgba(255, 77, 103, 0.7);
  filter: brightness(1.1);
}

/* ── Chat: painel de vidro ───────────────────────────────────────────────── */
/* O #chat É o .phw-chat (a classe é colada no mesmo elemento): as regras de
   fundo ficam aqui no ID — se ficassem no .phw-chat, o transparente do #chat
   (maior especificidade) vencia e o painel ficava sem fundo. */
#chat {
  /* Repouso: 39% de opacidade, sem blur. */
  background: rgba(11, 17, 33, 0.39) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: var(--md-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  padding: 0 !important;
  color: var(--md-text) !important;
}
/* Com o mouse em cima ou o input focado: totalmente sólido. */
#chat:hover,
#chat:focus-within {
  background: #0b1222 !important;
}
.phw-chat-head {
  background: rgba(255, 255, 255, 0.035) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  border-radius: 15px 15px 0 0;
  padding: 5px 8px !important;
}
.phw-chat-tab {
  color: var(--md-muted) !important;
  font-weight: 700 !important;
  font-size: 9.5px !important;
  letter-spacing: 0.06em !important;
  border-radius: 7px !important;
}
.phw-chat-tab:hover {
  color: #dbe4f8 !important;
}
.phw-chat-tab.active {
  background: var(--md-grad-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.35);
}
.phw-chat-tab.unread::after {
  background: var(--md-cyan);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}
.phw-chat-toggle {
  color: var(--md-muted) !important;
}
.phw-chat-toggle:hover {
  color: #7dd3fc !important;
}
.phw-chat-body {
  color: var(--md-text) !important;
}
.phw-chat-line {
  line-height: 1.45;
}
.phw-chat-time {
  color: var(--md-dim) !important;
  font-weight: 600;
}
.phw-chat-name {
  color: #7dd3fc !important;
  font-weight: 800;
}
.phw-chat-name.rank-leader {
  color: #a78bfa !important;
}
.phw-chat-name.rank-sublider {
  color: #7dd3fc !important;
}
.phw-chat-name.rank-membro {
  color: #5b6b8c !important;
}
.phw-chat-name.is-admin {
  color: #c4b5fd !important;
}
.phw-chat-name.is-tutor {
  color: #fbbf24 !important;
}
.phw-chat-text {
  color: #e7edfd !important;
}
.phw-chat-line.system .phw-chat-text {
  color: #c4b5fd !important;
}
.phw-chat-line.announce .phw-chat-text {
  background: var(--md-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-shadow: none !important;
}
.phw-chat-lvl,
.phw-chat-sep {
  color: var(--md-muted) !important;
}
.phw-chat-gtag {
  color: var(--md-dim) !important;
}
.phw-chat-foot {
  border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
  background: rgba(255, 255, 255, 0.03);
}
.phw-chat-input {
  background: rgba(4, 8, 18, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
  color: var(--md-text) !important;
}
.phw-chat-input::placeholder {
  color: var(--md-dim);
}
.phw-chat-input:focus {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.phw-chat-send {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.35);
}
.phw-chat-send:hover {
  filter: brightness(1.1);
}
.phw-chat-emoji {
  background: rgba(4, 8, 18, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
}
.phw-chat-emoji.active {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}
.phw-chat-hint {
  color: var(--md-dim) !important;
}

/* Log de combate. */
#log {
  color: var(--md-muted);
}

/* ── Barra de skills: dock flutuante de vidro ────────────────────────────── */
#floating-skill-bar {
  background: rgba(10, 16, 32, 0.72) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px rgba(2, 6, 17, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}
#floating-skill-bar::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.25);
  pointer-events: none;
}
#floating-skill-bar.horizontal::before {
  display: none;
}
.skill-slot {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.skill-slot-name {
  color: #dbe4f8 !important;
  font-weight: 700 !important;
}
.skill-slot:hover {
  background: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.skill-slot-overlay {
  background: rgba(4, 8, 18, 0.7) !important;
}
.skill-slot-timer {
  color: #fff !important;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(56, 189, 248, 0.6);
  font-weight: 800;
}
.skill-slot-locked {
  background: rgba(148, 163, 184, 0.08) !important;
  opacity: 0.55;
}
.skill-mode-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #dbe4f8 !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}
.skill-mode-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
}
.skill-mode-btn.manual {
  background: linear-gradient(135deg, #facc15, #f59e0b) !important;
  border-color: transparent !important;
  color: #1f1300 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
}
.skill-bar-toggle-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #b9c8e8 !important;
}
.skill-edit-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #b9c8e8 !important;
}
.skill-slot-hotkey {
  background: rgba(56, 189, 248, 0.22) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #bae6fd !important;
  border-radius: 5px !important;
  font-weight: 800;
}

/* ── Party: cartões de vidro com borda em gradiente quando ativos ────────── */
.party-square {
  background:
    radial-gradient(circle at 50% 34%, rgba(56, 189, 248, 0.12), transparent 60%),
    rgba(10, 16, 32, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: var(--md-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px);
}
.party-square.active {
  border: 1px solid transparent !important;
  background:
    linear-gradient(rgba(12, 19, 38, 0.88), rgba(12, 19, 38, 0.88)) padding-box,
    var(--md-grad-blue) border-box !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.35), 0 14px 34px rgba(2, 6, 17, 0.45) !important;
}
.party-square .ps-inner {
  background: transparent !important;
}
.party-square .ps-bar {
  background: rgba(2, 5, 12, 0.7) !important;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.party-square .ps-bar > i {
  background: var(--md-grad-hp) !important;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}
.party-square .ps-hp {
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px #000;
}
.party-square .ps-boost {
  background: rgba(255, 77, 103, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff !important;
  box-shadow: 0 0 10px rgba(255, 77, 103, 0.5);
}
.party-square .ps-types img {
  filter: drop-shadow(0 1px 2px #000);
}
.party-ctrl {
  background: rgba(10, 16, 32, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #b9c8e8 !important;
  box-shadow: 0 6px 16px rgba(2, 6, 17, 0.35);
  backdrop-filter: blur(10px);
}
.party-ctrl:hover {
  border-color: rgba(56, 189, 248, 0.5);
}
.party-ctrl.active {
  background: var(--md-grad-blue) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}
.party-tip {
  background: rgba(11, 17, 33, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(14px);
}
.party-tip-name {
  color: #7dd3fc !important;
  font-weight: 800;
}
.party-tip-row .k {
  color: var(--md-muted) !important;
}

/* ── Modais e painéis ────────────────────────────────────────────────────── */
.idle-modal-overlay {
  background: rgba(3, 6, 14, 0.72) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.idle-modal {
  background:
    radial-gradient(circle at 85% 0%, rgba(139, 92, 246, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(19, 27, 48, 0.94), rgba(9, 14, 28, 0.96)) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 22px !important;
  color: #e7edfd !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
}
.idle-modal-head {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.16)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  padding: 14px 18px !important;
}
.idle-modal-gear {
  color: #7dd3fc !important;
}
.idle-modal-title {
  color: #fff !important;
  font-family: 'Bebas Neue', 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  letter-spacing: 0.1em !important;
}
.idle-modal-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: var(--md-muted) !important;
  font-weight: 800 !important;
}
.idle-modal-x:hover {
  background: rgba(255, 77, 103, 0.18) !important;
  border-color: rgba(255, 77, 103, 0.5) !important;
  color: #ffd3da !important;
}
.idle-modal-foot {
  background: transparent !important;
  border-top: 0 !important;
  padding: 8px 14px 12px !important;
}
.idle-modal-foot .idle-config-btn,
.idle-modal-foot button {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 12px rgba(79, 142, 247, 0.35) !important;
}
.idle-modal-foot .idle-config-btn:hover,
.idle-modal-foot button:hover {
  filter: brightness(1.1);
}

/* A "tela" interna dos painéis continua escura, com aro ciano suave. */
.idle-modal > .dex2,
.idle-modal.dex2-modal > .dex2,
.idle-modal > .dex-drops-list,
.idle-modal > .hunts-shell,
.idle-modal > .coin-shop,
.idle-modal > .capture-list,
.idle-modal > .capture-status,
.idle-modal > .capture-tools,
.idle-modal > .capture-head,
.idle-modal > .hunts-list {
  background: transparent;
}

/* Pokédex. */
.dex2 {
  background: rgba(4, 8, 18, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.4);
  padding: 10px;
  margin: 10px;
}
.dex2-left {
  border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
}
.dex2-row {
  border-radius: 9px !important;
}
.dex2-row:hover {
  background: rgba(56, 189, 248, 0.08) !important;
}
.dex2-row.sel {
  background: linear-gradient(90deg, rgba(79, 142, 247, 0.28), rgba(139, 92, 246, 0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4);
}
.dex2-row.sel .nm {
  color: #7dd3fc;
}
.dex2-id {
  color: #7dd3fc !important;
  font-weight: 700;
}
.dex2-title {
  color: #f4f7ff;
  font-weight: 800;
  font-size: 19px !important;
}
.dex2-sub {
  color: var(--md-muted) !important;
}
.dex2-section {
  color: #7dd3fc !important;
  border-bottom-color: rgba(148, 163, 184, 0.14) !important;
  font-weight: 800;
  letter-spacing: 0.1em !important;
}
.dex2-stat-track {
  background: rgba(148, 163, 184, 0.14) !important;
  border-radius: 999px;
}
.dex2-stat-fill {
  background: var(--md-grad-blue) !important;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}
.dex2-search {
  background: rgba(4, 8, 18, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
  color: var(--md-text) !important;
}
.dex2-search::placeholder {
  color: var(--md-dim);
}
.dex2-search:focus {
  border-color: rgba(56, 189, 248, 0.55);
}
.dex2-fxtab {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 8px !important;
  color: #dbe4f8 !important;
  font-weight: 700;
}
.dex2-fxtab.on {
  background: var(--md-grad-blue) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.35);
}
.dex2-desc {
  color: #b9c4dd !important;
}
.dex2-arrow {
  color: #7dd3fc !important;
}
.dex2-chip {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #dbe4f8 !important;
}

/* Controles genéricos dos painéis. */
.capture-only {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 8px !important;
  color: #dbe4f8 !important;
  font-weight: 700 !important;
}
.capture-only.on {
  background: var(--md-grad-blue) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.35);
}
.capture-search,
.hunts-search,
.hunts-region,
.coin-shop input,
.idle-modal input[type='text'],
.idle-modal input[type='search'],
.idle-modal input[type='number'],
.idle-modal input[type='email'],
.idle-modal input[type='password'],
.idle-modal select {
  background: rgba(4, 8, 18, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
  color: var(--md-text) !important;
}
.capture-search::placeholder,
.hunts-search::placeholder {
  color: var(--md-dim);
}
.capture-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  color: var(--md-muted);
}
.capture-head .s.on {
  color: #7dd3fc !important;
}
.capture-row:hover {
  background: rgba(56, 189, 248, 0.06) !important;
}
.hunts-nav-item {
  border-radius: 9px !important;
}
.hunts-nav-item.on {
  background: var(--md-grad-blue) !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(79, 142, 247, 0.35);
}
.hunts-rank.on {
  background: linear-gradient(135deg, #facc15, #f59e0b) !important;
  border-color: transparent !important;
  color: #1f1300 !important;
}
.hunts-filter-btn,
.hunts-page-btn,
.hunts-back {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 8px !important;
  color: #dbe4f8 !important;
  font-weight: 700 !important;
}
.hunts-filter-btn:hover,
.hunts-page-btn:hover:not(:disabled),
.hunts-back:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}
.hunts-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #dbe4f8 !important;
  font-weight: 700;
}
.hunts-chip.on {
  background: var(--md-grad-blue) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.hunts-filter-clear {
  color: #fda4af !important;
  font-weight: 800;
}
.hunt-card {
  border-radius: 12px !important;
}
.hunt-card:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
}
.hunts-count {
  color: #7dd3fc !important;
}
.coin-shop-tab {
  border-radius: 8px !important;
}
.coin-shop-tab.on {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #7dd3fc !important;
}
.coin-shop-card {
  border-color: rgba(148, 163, 184, 0.16) !important;
  border-radius: 12px !important;
}
.coin-shop-buy {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.35);
}
.coin-shop-buy:hover {
  filter: brightness(1.1);
}
/* Loja de diamantes: respiro entre o conteúdo e as bordas da modal + o
   scroll vertical dos cards (a grade é a única parte que rola). */
.idle-modal > .coin-shop {
  width: auto !important;
  box-sizing: border-box;
  padding: 10px 16px 12px;
}
.idle-modal > .coin-shop .coin-shop-layout {
  grid-template-rows: minmax(0, 1fr);
}
.idle-modal > .coin-shop .coin-shop-main {
  overflow: hidden;
}
.idle-modal > .coin-shop .coin-shop-grid {
  padding: 2px 10px 6px 2px;
  overflow-y: auto;
}
/* Rodapé do card: preço à esquerda (o valor nunca corta: "diamantes" desce
   de linha quando falta espaço) e o botão COMPRAR sempre inteiro à direita —
   nunca sai pra fora do card. */
.idle-modal > .coin-shop .coin-shop-foot {
  flex-wrap: nowrap;
}
.idle-modal > .coin-shop .coin-shop-price {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 2px;
  overflow: visible;
  white-space: normal;
  justify-content: flex-start;
}
.idle-modal > .coin-shop .coin-shop-price b,
.idle-modal > .coin-shop .coin-shop-price-value {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.idle-modal > .coin-shop .coin-shop-buy {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 9px;
}
.idle-config-primary {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* Menus de contexto e popups pequenos. */
.inv-menu,
.party-tip,
.house-pickup-menu {
  background: rgba(11, 17, 33, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(14px);
}
.inv-menu-item {
  color: #e7edfd !important;
}
.inv-menu-item:hover {
  background: rgba(56, 189, 248, 0.14) !important;
}
/* Modal de confirmação (compra da Loja de Diamantes / pokeshop). */
.idle-modal .afk-title {
  color: #fff !important;
  font-family: 'Bebas Neue', 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  font-size: 19px !important;
  letter-spacing: 0.08em;
}
.idle-modal .afk-msg {
  color: #dbe4f8 !important;
}
.idle-modal .afk-msg b {
  color: #7dd3fc;
}
.idle-modal .shop-confirm-note {
  color: var(--md-muted) !important;
}

/* ── Login: tela com blobs de gradiente animados ─────────────────────────── */
.login-overlay {
  background:
    radial-gradient(circle at 18% 20%, rgba(139, 92, 246, 0.3), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(56, 189, 248, 0.26), transparent 46%),
    radial-gradient(circle at 50% 96%, rgba(255, 77, 103, 0.18), transparent 52%),
    #050a18 !important;
  color: var(--md-text);
  padding: 24px;
  overflow: hidden;
}
.login-overlay::before,
.login-overlay::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
}
.login-overlay::before {
  width: 44vw;
  height: 44vw;
  left: -12vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
  animation: md-blob-a 14s ease-in-out infinite alternate;
}
.login-overlay::after {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: -12vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5), transparent 65%);
  animation: md-blob-b 17s ease-in-out infinite alternate;
}
@keyframes md-blob-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, 4vh) scale(1.15); }
}
@keyframes md-blob-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-5vw, 6vh) scale(0.95); }
}
.login-card {
  position: relative;
  width: min(470px, 94vw) !important;
  background:
    radial-gradient(circle at 88% 2%, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(19, 27, 48, 0.88), rgba(10, 16, 32, 0.92)) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 24px !important;
  color: var(--md-text) !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: 26px 26px 22px !important;
  z-index: 1;
}
.login-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 38%),
    linear-gradient(180deg, #ff6b7d 0%, #ef3b52 44%, #262a3d 46%, #262a3d 54%, #f4f6fb 54%, #cdd5e6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 0 34px rgba(56, 189, 248, 0.4);
  box-sizing: border-box;
}
.login-card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #262a3d;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-sizing: border-box;
  z-index: 1;
}
.login-title {
  margin-top: 40px;
  color: transparent !important;
  background: var(--md-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: 'Bebas Neue', 'Outfit', sans-serif !important;
  font-size: 34px !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.05;
  filter: drop-shadow(0 4px 18px rgba(56, 189, 248, 0.3));
}
/* O slogan da marca logo abaixo do logo (o título usa texto em gradiente,
   então o pseudo precisa declarar a própria cor). */
.login-title::after {
  content: 'GANHE TEMPO · O JOGO JOGA POR VOCÊ';
  display: block;
  margin-top: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  color: var(--md-muted);
  -webkit-text-fill-color: var(--md-muted);
}
.login-subtitle {
  color: var(--md-muted) !important;
  font-weight: 600;
  font-size: 12.5px !important;
  letter-spacing: 0.06em;
}
.login-label {
  color: var(--md-muted) !important;
  font-weight: 800;
  font-size: 9.5px !important;
  letter-spacing: 0.14em !important;
}
.login-input {
  background: rgba(4, 8, 18, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 12px !important;
  color: var(--md-text) !important;
  font-size: 13px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.login-input::placeholder {
  color: var(--md-dim);
}
.login-input:focus {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.login-input.invalid {
  border-color: rgba(255, 77, 103, 0.7) !important;
}
.login-warn {
  color: #fda4af !important;
  font-size: 10.5px;
  font-weight: 600;
}
.login-btn {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.4) !important;
  padding: 11px !important;
}
.login-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.login-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(79, 142, 247, 0.35) !important;
}
.login-link {
  color: #7dd3fc !important;
  font-weight: 700;
}
.login-legal,
.login-consent {
  color: var(--md-muted) !important;
}
.login-legal a,
.login-consent a {
  color: #bae6fd !important;
  font-weight: 700;
}
.login-consent {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 10px !important;
}
.login-consent input {
  accent-color: var(--md-blue) !important;
}
.login-error {
  background: rgba(255, 77, 103, 0.12) !important;
  border: 1px solid rgba(255, 77, 103, 0.45) !important;
  border-radius: 10px !important;
  color: #ffd3da !important;
  font-weight: 600;
}
.login-char-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.login-char-card:hover,
.login-char-card:focus-visible {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.login-char-name {
  color: #f4f7ff !important;
  font-weight: 800;
}
.login-char-meta {
  color: var(--md-muted) !important;
}
.login-char-status {
  color: #7dd3fc !important;
}
.login-char-status.err {
  color: #fda4af !important;
}
.login-starter {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 11px !important;
}
.login-starter.sel {
  border: 1px solid transparent !important;
  background:
    linear-gradient(rgba(19, 27, 48, 0.9), rgba(19, 27, 48, 0.9)) padding-box,
    var(--md-grad-blue) border-box !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}
.login-starter-name {
  color: #dbe4f8 !important;
  font-weight: 700;
}
.login-sex-opt {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  color: #dbe4f8 !important;
  font-weight: 700;
  border-radius: 9px !important;
}
.login-sex-opt.sel {
  background: var(--md-grad-blue) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(79, 142, 247, 0.35);
}
.login-new-char {
  display: block;
  width: 100%;
  margin-top: 4px;
}

/* ── Avisos/toasts ───────────────────────────────────────────────────────── */
.phw-zoom-notice,
.phw-vigor-notice,
.phw-baby-evolve-notice,
.phw-leash-modal {
  background: rgba(13, 20, 38, 0.94) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: var(--md-shadow) !important;
  color: var(--md-text) !important;
}
.phw-zoom-notice-title,
.phw-vigor-notice-title,
.phw-baby-evolve-notice-title {
  color: #7dd3fc !important;
  font-weight: 800;
}
.phw-vigor-notice-text > span,
.phw-baby-evolve-notice-text > span {
  color: var(--md-muted) !important;
}
.phw-vigor-notice-buy,
.phw-leash-modal-ok {
  background: var(--md-grad-blue) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 9px !important;
}
.phw-zoom-notice-close,
.phw-vigor-notice-close,
.phw-baby-evolve-notice-close {
  color: var(--md-muted) !important;
}

/* Loading de transição de hunt/CP. */
.idle-loading-box {
  background: rgba(13, 20, 38, 0.94) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: var(--md-shadow) !important;
  color: var(--md-text) !important;
}
.idle-loading-spin {
  border-color: rgba(148, 163, 184, 0.2) !important;
  border-top-color: var(--md-cyan) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}
.idle-loading-text {
  color: var(--md-text);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ── Ajustes responsivos ─────────────────────────────────────────────────── */
@media (max-width: 1500px) {
  .pk-brand-copy small {
    display: none;
  }
  .pk-brand-copy b {
    font-size: 18px;
  }
}
@media (max-width: 1360px) {
  .pk-brand-copy {
    display: none;
  }
  .pk-brand-ball {
    --pk-ball-size: 30px;
  }
}
@media (max-width: 1080px) {
  .pk-brand,
  .pk-top-divider {
    display: none;
  }
}
@media (max-width: 900px) {
  #trainer-card {
    padding: 12px 10px 12px !important;
  }
  .session-side {
    border-width: 1px !important;
  }
  .phw-chat {
    border-width: 1px !important;
  }
  .login-card {
    padding: 20px 18px 18px !important;
  }
  .login-title {
    font-size: 27px !important;
  }
}

/* Quem prefere menos animação fica com o tema estático. */
@media (prefers-reduced-motion: reduce) {
  .login-overlay::before,
  .login-overlay::after {
    animation: none !important;
  }
  #topbar .messages-badge {
    animation: none !important;
  }
  #topbar .top-icon-btn,
  .login-btn,
  .session-details,
  .session-stop {
    transition: none !important;
  }
}

/* ── Painel do ADMIN (aberto pelo botão da topbar) ───────────────────────── */
.admin-box {
  background: linear-gradient(180deg, rgba(19, 27, 48, 0.97), rgba(9, 14, 28, 0.98)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
/* O cabeçalho do admin gruda no topo durante o scroll: precisa de fundo
   sólido (o gradiente translúcido padrão deixaria o conteúdo vazar). */
.admin-box > .idle-modal-head {
  background: linear-gradient(90deg, #0f2542, #171c40) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}
/* Inputs/selects do admin seguem o vidro do tema. */
.admin-box input,
.admin-box select,
.admin-box textarea {
  background: rgba(4, 8, 18, 0.55) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 10px !important;
  color: var(--md-text) !important;
}
/* Células do admin (inventário/pokémons/depot) no vidro do tema. */
.admin-box .inv-cell {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 12px !important;
}
.admin-box .inv-cell .cnt {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}
.admin-box .admin-cell-actions {
  gap: 4px;
}
.admin-box .admin-cell-actions .admin-inline {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #dbe4f8 !important;
}
.admin-box .admin-cell-actions .admin-inline:hover {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}
.admin-box .admin-cell-actions .admin-inline.del {
  color: #fda4af !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  background: rgba(248, 113, 113, 0.1) !important;
}
.admin-box .admin-cell-actions .admin-inline.del:hover {
  background: rgba(248, 113, 113, 0.2) !important;
}
