/* ============================================================
   Binaryzando — Reusable Components
   Navbar, sidebar, modals, tabs, forms, notifications, etc.
   ============================================================ */

/* ==================== NAVBAR (sidebar vertical no desktop) ==================== */
/* padding-left no body (não no main) porque nem toda página envolve o
   conteúdo em <main> — algumas montam <section> direto no body. */
body {
  padding-left: var(--sidebar-width);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 14px;
  overflow-y: auto;
  background: rgba(1,1,9,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(25,138,223,.18);
  box-shadow: 4px 0 30px rgba(0,0,0,.55), 1px 0 0 rgba(25,138,223,.1);
}

/* Logo no topo da sidebar (desktop): mostra a arte inteira, sem cortar
   nem esticar — sem moldura/brilho por cima, só a logo. */
.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  margin: 0 0 18px;
  padding: 12px 0;
  height: auto;
  flex-shrink: 0;
}

.navbar-logo {
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  display: block;
  transition: opacity .2s var(--ease-out);
}
.navbar-brand:hover .navbar-logo {
  opacity: .88;
}

.footer-logo {
  height: 24px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex: 1;
}

.navbar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-secondary);
  transition: all .2s;
  white-space: nowrap;
  position: relative;
}

/* Ícone antes do texto de cada aba — via ::before pra não depender de
   markup novo em cada uma das 12 páginas que repetem essa navbar. */
.navbar-link::before {
  font-size: 1rem;
  width: 18px;
  text-align: left;
  flex-shrink: 0;
  filter: grayscale(.4) brightness(1.3);
  opacity: .75;
  transition: all .2s;
}
a.navbar-link[href="index.html"]::before             { content: "🏠"; }
a.navbar-link[href="inventario.html"]::before         { content: "🎴"; }
a.navbar-link[href="rankings.html"]::before           { content: "🏆"; }
a.navbar-link[href="planos.html"]::before             { content: "💎"; }

.navbar-link:hover {
  color: var(--text-primary);
  background: rgba(25,138,223,.06);
  border-color: rgba(25,138,223,.3);
  box-shadow: 0 0 12px rgba(25,138,223,.18);
}
.navbar-link:hover::before {
  filter: none;
  opacity: 1;
}

.navbar-link.active {
  color: #F9FAFB;
  background: linear-gradient(90deg, rgba(240,10,230,.16), rgba(25,138,223,.1));
  border-color: var(--neon-magenta);
  box-shadow: 0 0 16px rgba(240,10,230,.4), inset 0 0 10px rgba(240,10,230,.12);
  text-shadow: 0 0 10px rgba(240,10,230,.5);
}
.navbar-link.active::before {
  filter: none;
  opacity: 1;
}
.navbar-link.active::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--accent-hover);
  border-right: 2px solid var(--accent-hover);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 4px rgba(25,138,223,.8));
}

/* MVP: abas desativadas temporariamente (sem página/backend real ainda) */
.navbar-link-disabled {
  display: none;
}

/* MVP: botões de timeframe desativados (só M1 por enquanto) */
.tf-desativado {
  opacity: .4;
  cursor: not-allowed;
}

.navbar-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.navbar-avatar {
  width: 36px;
  height: 36px;
  margin-left: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1C48D5, #198ADF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: transform .2s;
}
.navbar-avatar:hover {
  transform: scale(1.08);
}

/* Zoom do avatar da navbar — clique no avatar abre o preview grande no
   meio da tela, em vez de só navegar direto pro perfil.html (o link pro
   perfil continua disponível dentro do card, e na sidebar). */
#nav-avatar-zoom { display: none; }
#nav-avatar-zoom.aberto { display: block; }
#nav-avatar-zoom .az-backdrop { position: fixed; inset: 0; z-index: 3000; background: rgba(1,1,9,.82);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
#nav-avatar-zoom .az-card { position: relative; width: 320px; max-width: 92vw; padding: 34px 26px 26px;
  background: linear-gradient(160deg, #06122e, #020912); border: 1px solid var(--neon-cyan);
  clip-path: var(--hud-clip-panel); box-shadow: 0 0 40px rgba(25,138,223,.4); text-align: left; }
#nav-avatar-zoom .az-x { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; cursor: pointer;
  background: none; border: none; color: var(--text-muted); font-size: 1.1rem; }
#nav-avatar-zoom .az-x:hover { color: #fff; }
#nav-avatar-zoom .az-imgwrap { position: relative; width: 200px; height: 200px; margin: 0 auto 18px; border-radius: 50%; }
#nav-avatar-zoom .az-nome { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 16px; }

/* ==================== MENU DA CONTA (dropdown do avatar) ==================== */
.account-menu-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 200;
}
.account-menu.open {
  display: block;
  animation: fade-in .15s var(--ease-out);
}
.account-menu-email {
  padding: 8px 10px 6px;
  font-size: .75rem;
  color: var(--text-muted);
  word-break: break-all;
}
.account-menu-plano {
  margin: 0 10px 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-secondary);
}
.account-menu-plano.premium {
  color: var(--accent-hover);
}

/* Cards de estratégia trancados no plano Free (mostram badge "Premium"). */
.anchoring-card.preset-locked {
  position: relative;
  opacity: .55;
  filter: grayscale(.4);
}
.anchoring-card.preset-locked:hover {
  opacity: .78;
}

/* Pares trancados no plano Free (mesmo tratamento, em botão em vez de card). */
.direction-btn.preset-locked {
  opacity: .5;
  filter: grayscale(.5);
  cursor: pointer;
}
.direction-btn.preset-locked:hover {
  opacity: .75;
}
.preset-lock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--accent-hover);
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
}
.account-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.account-menu-item.destaque {
  color: var(--accent-hover);
  font-weight: 700;
}

/* ==================== FORMULÁRIOS DE CONTA (login + menu da conta) ==================== */
.auth-error {
  display: none;
  background: rgba(247, 18, 49, .1);
  border: 1px solid var(--danger);
  color: #FA3A32;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: .82rem;
  margin-bottom: 16px;
}

/* Checklist de força da senha — usado no cadastro (login.html) e no modal
   de "Mudar senha" do menu da conta. */
.auth-reqs {
  display: none;
  margin: -6px 0 18px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.auth-reqs.show { display: block; }
.auth-reqs-titulo {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.auth-req {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-secondary);
  padding: 2px 0;
  transition: color .2s;
}
.auth-req .icone {
  width: 16px;
  text-align: left;
  color: var(--text-muted);
  transition: color .2s;
}
.auth-req.ok { color: var(--success); }
.auth-req.ok .icone { color: var(--success); }

/* ==================== FOTO DE PERFIL (modal "Mudar foto") ==================== */
.foto-preview-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.foto-preview {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1C48D5, #198ADF);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  border: 2px solid var(--border);
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.navbar-toggle:hover {
  background: rgba(25, 138, 223, 0.1);
  color: var(--accent);
}
@media (max-width: 968px) {
  body { padding-left: 0; padding-top: 80px; }

  .navbar {
    top: 0; left: 0; right: 0; bottom: auto;
    width: auto; height: var(--header-height);
    flex-direction: row;
    align-items: center;
    padding: 0 48px 0 24px;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid rgba(25,138,223,.18);
    box-shadow: 0 1px 0 rgba(25,138,223,.1), 0 4px 30px rgba(0,0,0,.55);
  }
  .navbar-brand {
    display: flex; align-items: center;
    margin: 0 auto 0 0; width: auto; height: auto;
    border-bottom: none; box-shadow: none; overflow: visible;
  }
  .navbar-logo { width: auto; height: 34px; object-fit: contain; }
  .navbar-actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-top: 0;
    margin-left: 16px;
    padding-top: 0;
    border-top: none;
  }
  .navbar-avatar { margin-left: 30px; }

  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }

  /* O ☰ abre os próprios links da navbar como um painel dropdown (em vez de
     uma sidebar separada, que não existe nas páginas). */
  .navbar-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-lg);
  }
  .navbar-links.mobile-open .navbar-link {
    padding: 12px 14px;
  }
}

/* Em telas estreitas, o CTA textual sai (o avatar "?" também leva ao login);
   evita apertar a logo e o ☰ em celulares pequenos. */
@media (max-width: 600px) {
  .navbar-actions .btn-primary { display: none; }
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  overflow-y: auto;
  z-index: 90;
  transition: transform .3s var(--ease-out);
}

.sidebar-group {
  margin-bottom: 24px;
}

.sidebar-group-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
  cursor: pointer;
}
.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: rgba(25,138,223,.1);
  color: var(--accent-hover);
}
.sidebar-item .icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: left;
}

.sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(25,138,223,.15);
  color: var(--accent-hover);
  font-size: .7rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

/* ==================== PAGE LAYOUT ==================== */
.page-wrapper {
  margin-left: var(--sidebar-width);
  padding-top: var(--header-height);
  min-height: 100vh;
}
@media (max-width: 768px) {
  .page-wrapper {
    margin-left: 0;
  }
}

.page-content {
  padding: 32px 32px 64px;
  max-width: 1400px;
}
@media (max-width: 768px) {
  .page-content {
    padding: 20px 16px 48px;
  }
}

.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: .95rem;
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-item {
  padding: 12px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab-item:hover {
  color: var(--text-secondary);
}
.tab-item.active {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fade-in .3s var(--ease-out);
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b95a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* ==================== NOTIFICATION TOAST ==================== */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: 16px;
  z-index: 9800;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  /* Mesmo visual do botão "Seguir" e do "⋯" do perfil (Diego, 2026-07-11):
     fundo quase preto, borda azul neon com glow, texto branco. O título
     continua em azul (regra .toast-title logo abaixo). */
  background: rgba(4,10,24,.88);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  box-shadow: 0 0 14px rgba(25,138,223,.45), var(--shadow-lg);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  animation: slide-in-right .4s var(--ease-spring);
  max-width: 380px;
}
.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.toast-body {
  flex: 1;
}
.toast-title {
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 2px;
  color: var(--neon-cyan);
}
.toast-message {
  font-size: .78rem;
  color: #fff;
}

.toast.discovery {
  border-color: var(--rarity-legendary);
  background: linear-gradient(135deg, var(--bg-elevated), rgba(251,79,5,.06));
}
.toast.discovery .toast-icon {
  color: var(--rarity-legendary);
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Toast inline (#toast) — usado pelo builder de estratégia e laboratórios.
   Fica escondido por padrão e aparece centralizado no topo só quando ativo. */
#toast {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  left: 50%;
  z-index: 250;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 420px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-16px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  animation: none;
}
#toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: scale-in .3s var(--ease-spring);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neon-cyan);
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all .2s;
}
.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ==================== LOADING / SPINNER ==================== */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.spinner.legendary {
  border-top-color: var(--rarity-legendary);
}

.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  color: var(--text-secondary);
  font-size: .9rem;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: left;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.empty-state-text {
  font-size: .9rem;
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ==================== TOOLTIP ==================== */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  z-index: 50;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== PROGRESS RING ==================== */
.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.progress-ring svg {
  transform: rotate(-90deg);
}
.progress-ring-bg {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 4;
}
.progress-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease-out);
}
.progress-ring-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
}

/* ==================== VERSUS DISPLAY ==================== */
.versus-display {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin: 32px 0;
}

.versus-card {
  flex: 1;
  max-width: 320px;
  text-align: left;
}

.versus-vs {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #F71231, #FB4F05);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

/* ==================== COMPARISON BAR ==================== */
.comparison-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-base);
}
.comparison-bar-left {
  background: linear-gradient(90deg, #198ADF, #1C48D5);
  transition: width .8s var(--ease-out);
}
.comparison-bar-right {
  background: linear-gradient(90deg, #F71231, #FB4F05);
  transition: width .8s var(--ease-out);
}

/* ==================== MEDAL ==================== */
.medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
}
.medal-gold   { background: linear-gradient(135deg, #FB4F05, #FA2C0B); color: #010001; }
.medal-silver { background: linear-gradient(135deg, #DBDEF1, #F9FAFB); color: #010001; }
.medal-bronze { background: linear-gradient(135deg, #FA2C0B, #FB4F05); color: #010001; }

/* ==================== ACHIEVEMENT ==================== */
.achievement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .25s;
}
.achievement:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
}
.achievement-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.achievement-icon.gold { background: rgba(251,79,5,.15); }
.achievement-icon.purple { background: rgba(173,5,238,.15); }
.achievement-icon.blue { background: rgba(25,138,223,.15); }
.achievement-icon.green { background: rgba(239,6,138,.15); }
.achievement-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 2px;
}
.achievement-desc {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ==================== TABS DE LABORATÓRIO / INVENTÁRIO ==================== */
.lab-tabs {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.lab-tab {
  padding: 12px 20px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.lab-tab:hover {
  color: var(--text-primary);
}

.lab-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Abas principais da Forja com visual de botão (igual "Todo o histórico") ── */
#lab-grupo-tabs {
  border-bottom: none;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
#lab-grupo-tabs .lab-tab {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border: 2px solid rgba(25, 138, 223, 0.5);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.2s ease;
}
#lab-grupo-tabs .lab-tab:hover {
  border-color: var(--accent);
  background: rgba(25, 138, 223, 0.05);
  color: var(--text-primary);
}
/* Selecionada = padrão do site (imagem 1): escura + borda azul reforçada +
   brilho. O "cresce um tico" e o selo de canto vêm do global.css. Nunca azul
   cheio com texto preto (imagem 3). */
#lab-grupo-tabs .lab-tab.active {
  background: var(--bg-card);
  border-color: var(--neon-cyan);
  border-width: 2px;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 0 22px rgba(25,138,223,.55), inset 0 0 14px rgba(25,138,223,.12);
}
/* Ícone neon personalizado de cada aba da Forja */
#lab-grupo-tabs .tab-ico {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(25, 138, 223, 0.75));
}
#lab-grupo-tabs .lab-tab.active .tab-ico {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 4px rgba(25,138,223,.85));
}
/* Variante emoji: o emoji já é colorido, não precisa de cor/filtro nem caixa fixa */
#lab-grupo-tabs .tab-ico.tab-emoji {
  width: auto;
  height: auto;
  font-size: 17px;
  line-height: 1;
  filter: none;
}
#lab-grupo-tabs .lab-tab.active .tab-ico.tab-emoji { filter: none; }

.lab-subtabs {
  margin-top: -14px;
  margin-bottom: 24px;
}
.lab-subtabs .lab-tab {
  padding: 8px 16px;
  font-size: 13px;
  border-bottom-width: 1px;
}
