/* ===========================
   GreenSurebet Dashboard CSS
   (Dark Base Nova + Layout Original)
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Logos das Casas de Aposta --- */
.house-display {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 80px; /* Garante um espaço mínimo */
}

.house-logo {
    max-height: 25px; /* Altura máxima para não quebrar a tabela */
    max-width: 90px;
    object-fit: contain;
    display: block;
}

.house-name-fallback {
    font-weight: 500;
    font-size: 0.9em;
    color: #e5e7eb;
}

/* =========================================
   Surebets – Layout PRO / Minimal (compact)
   Cole no FINAL do <style> do surebets.html
   ========================================= */

.dashboard.surebets-dashboard #groups-container{ margin-top: 12px; }

.dashboard.surebets-dashboard .group-card{
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: none;
}

.dashboard.surebets-dashboard .group-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
}

.dashboard.surebets-dashboard .group-title{
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
}

.dashboard.surebets-dashboard .group-meta{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}

.dashboard.surebets-dashboard .group-meta .dot{
  opacity: .6;
  transform: translateY(-1px);
}

.dashboard.surebets-dashboard .group-event{
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.25;
}

.dashboard.surebets-dashboard .group-right{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 0 0 auto;
}

.dashboard.surebets-dashboard .actions{
  display:flex;
  align-items:center;
  gap: 6px;
}

/* Badges minimalistas */
.dashboard.surebets-dashboard .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  white-space: nowrap;
}

.dashboard.surebets-dashboard .badge-muted{
  color: var(--muted);
  background: rgba(156,163,175,.10);
  border-color: rgba(156,163,175,.18);
}

.dashboard.surebets-dashboard .badge-green{
  color: #00ffab;
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.22);
}

.dashboard.surebets-dashboard .badge-red{
  color: #ff4d4d;
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.22);
}

/* Botões por ícone (mantendo .btn pra não quebrar JS/estilos globais) */
.dashboard.surebets-dashboard .icon-btn{
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.10);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  transition: .15s ease;
}

.dashboard.surebets-dashboard .icon-btn:hover{
  color: var(--brand);
  border-color: rgba(0,241,173,.35);
  background: rgba(0,241,173,.08);
  transform: none;
}

.dashboard.surebets-dashboard .icon-btn.danger:hover{
  color: #ef4444;
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
}

.dashboard.surebets-dashboard .icon-btn svg{
  width: 16px;
  height: 16px;
}

/* Corpo / tabela mais pro e compacta */
.dashboard.surebets-dashboard .group-body{ margin-top: 10px; }

.dashboard.surebets-dashboard table.table-apostas{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.dashboard.surebets-dashboard table.table-apostas thead th{
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
  padding: 8px 10px;
  text-transform: none;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.dashboard.surebets-dashboard table.table-apostas tbody td{
  padding: 8px 10px;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.dashboard.surebets-dashboard table.table-apostas tbody tr:hover td{
  background: rgba(255,255,255,.03);
}

/* Alinhamento mais “financeiro” */
.dashboard.surebets-dashboard td.odd,
.dashboard.surebets-dashboard td.stake{ text-align: right; font-variant-numeric: tabular-nums; }
.dashboard.surebets-dashboard td.event-time{ white-space: nowrap; }
.dashboard.surebets-dashboard td.market{ text-align:left; }

/* Mobile: header quebra bem sem ficar gigante */
@media (max-width: 768px){
  .dashboard.surebets-dashboard .group-header{ align-items:flex-start; }
  .dashboard.surebets-dashboard .group-right{ flex-wrap: wrap; justify-content:flex-end; }
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:  "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
}
  .top-title{ 
border-bottom: 1px solid var(--stroke);
  }
html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  
  /* 1. Cor de fundo base */
  background-color: var(--bg);

  /* 2. O Segredo das Camadas */
  background-image: 
    /* Camada 1: Vinheta Radial (Escurece as bordas para dar foco no centro) */
    radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.7) 100%),

    /* Camada 2: Linhas Horizontais */
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),

    /* Camada 3: Linhas Verticais */
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

  /* 3. Tamanho dos quadrados do Grid (40px é um tamanho padrão de UI bom) */
  background-size: 100% 100%, 40px 40px, 40px 40px;

  /* 4. Fixar para efeito 3D ao rolar */
  background-attachment: fixed;
}


/* -------- VARIÁVEIS -------- */
html[data-theme="dark"] {
  --bg: #1b1b1b;
  --panel: #12141d;
  --panel-graf: #0f172a;
  --panel-2: #00f1ad1a;
  --stroke: #2e2e2e;
  --text: #ffffff;
  --muted: #a1a1aa;
  --brand: #00f1ad;
  --brand-bg: #00f1ad1a;
  --ok: #10b981;
  --err: #ef4444;
  --chip: #2c2f36;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  --sidebar-bg:/*rgb(15 23 42 / 1)*/ #181818;
  --topbar-bg: /*rgb(15 23 42 / 1)*/#181818;
}

html[data-theme="light"] {
  --bg: #f1f3f6;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --stroke: #e0e4ea;
  --text: #1a1f27;
  --muted: #5a6475;
  --brand: #00c49f;
  --brand-bg: #00c49f1a;
  --ok: #16a34a;
  --err: #dc2626;
  --chip: #e8ebf1;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  --sidebar-bg: linear-gradient(180deg, #f9fafb 0%, #eef1f5 100%);
  --topbar-bg: #ffffff;
}
.inp.inpstatus option {
    background-color: #092129;
    color: white;
    border: none;
}
input[type="number"] {
    -webkit-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clone-grid { align-items: start; }

/* Cabeçalho do bloco de clones */
.clones-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin: 0 0 8px 0; /* controla só aqui */
}

/* IMPORTANTE: remove o margin-bottom padrão do label dentro do header */
.clones-head .clones-label{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
}

.clones-label{
	margin-top: 3px !important;
}

/* contador ao lado do título */
.mini-badge-inline{
  margin: 0 !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Linha de busca + botão alinhados */
.search-row{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.search-row .search-wrap{
  margin-bottom: 0; /* anula o margin-bottom padrão do search-wrap */
  flex: 1;
}
.search-row .btn.danger.sm{
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 77, 0.35);
  background: rgba(255, 77, 77, 0.14);
  color: #ffd6d6;
}

.search-row .btn.danger.sm:hover{
  background: rgba(255, 77, 77, 0.22);
  border-color: rgba(255, 77, 77, 0.55);
}

/* responsivo */
@media (max-width: 520px){
  .clones-head{ grid-template-columns: 1fr; }
  .mini-badge-inline{ width: fit-content; }
  .search-row{ flex-direction: column; align-items: stretch; }
  .search-row .btn.sm{ width: 100%; }
}


.clone-controls{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin: 6px 0 10px 0;
}

/* (Opcional) se quiser alinhar botão com o topo do quadro */
.checkbox-area{
  display:block;
}

.group-card .edit-btn,
.group-card .cancel-btn,
.group-card .save-btn {
  margin-left: 0px;
}

/* padrão: só Ajuste visível */
.group-card .cancel-btn,
.group-card .save-btn {
  display: none;
}

/* em edição: mostra Cancelar + Salvar, esconde Ajuste */
.group-card.editing .edit-btn {
  display: none !important;
}

.group-card.editing .cancel-btn,
.group-card.editing .save-btn {
  display: inline-block !important;
}



/* Estilos para o Painel de Conta (Dropdown) */
      .account-wrapper {
          position: relative;
          display: inline-block;
      }

      .account-compact {
          display: flex;
          align-items: center;
          gap: 10px;
          cursor: pointer;
          padding:2px 0px 1px 22px;
          border-radius: 59px;
          transition: background-color 0.2s; 
      }

      .account-compact:hover {
          background-color: rgba(255, 255, 255, 0.05);
      }

      .avatar {
          width: 44px;
          height: 44px;
          border-radius: 59px;
          overflow: hidden;
          background-color: #2a2f3d;
          display: flex;
          justify-content: center;
          align-items: center;
      }

      .avatar img {
          width: 100%;
          height: 100%;
          object-fit: cover;
      }

      .user-info-text {
          display: flex;
          flex-direction: column;
          line-height: 1;
      }

      .user-name {
          font-size: 13px;
          font-weight: 500;
          color: #fff;
text-align: right;
      }

      .user-id {
          font-size: 11px;
          color: #9ca3af;
      }

      /* Painel Flutuante */
      .account-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 242px;
    background-color: #121212;
    border: 1px solid #2a2f3d;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 10px;
    z-index: 1000;
    margin-top: 9px;
      }

      /* --- CORREÇÃO DO HOVER (PONTE INVISÍVEL) --- */
    .account-panel::before {
        content: "";
        position: absolute;
        top: -15px;  /* Sobe para cobrir o espaço do margin-top */
        left: 0;
        width: 100%;
        height: 20px; /* Altura suficiente para conectar o avatar ao menu */
        background: transparent; /* Invisível */
        display: block;
    }

      /* Mostrar no Hover */
      .account-wrapper:hover .account-panel {
          display: block;
      }

      /* Cabeçalho do Painel */
      .panel-header-user {
          display: flex;
          align-items: center;
          gap: 12px;
          padding: 7px;
          border-bottom: 1px solid #2a2f3d;
          margin-bottom: 8px;
      }

      .panel-avatar {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          overflow: hidden;
      }
      .panel-avatar img { width: 100%; height: 100%; object-fit: cover; }

      .panel-user-name {
          font-size: 15px;
          font-weight: 600;
          color: #fff;
      }
      
      /* Estilo base do botão */
    .logout-icon {
        color: #9ca3af; /* Cinza original */
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transição suave */
        display: flex;
        margin-left: auto;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        padding: 4px; /* Aumenta a área clicável */
    }

    /* Animação ao passar o mouse */
    .logout-icon:hover {
        color: #ef4444; /* Vermelho alerta */
        background-color: rgba(239, 68, 68, 0.1); /* Fundo vermelho bem suave */
        transform: translate(3px) scale(1.1); /* Move para direita e cresce */
        box-shadow: -2px 2px 10px rgba(239, 68, 68, 0.2); /* Sombra suave */
    }

    /* (Opcional) Animação específica na seta do ícone */
    .logout-icon:hover svg line,
    .logout-icon:hover svg polyline {
        transform: translateX(2px); /* Empurra a seta interna mais um pouco */
        transition: transform 0.2s ease;
    }

      /* Links do Menu */
      /* Links do Menu */
      .panel-links {
          display: flex;
          flex-direction: column;
          gap: 4px; /* Aumentei um pouco o gap para respirar a animação */
      }

      .menu-link-item {
          display: flex;
          align-items: center;
          gap: 12px;
          padding: 10px 12px;
          border-radius: 8px;
          color: #9ca3af;
          text-decoration: none;
          font-size: 14px;
          /* 🔥 AQUI COMEÇA A MÁGICA DA ANIMAÇÃO */
          transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); /* Movimento suave */
          border-left: 3px solid transparent; /* Prepara para a borda lateral */
      }

      .menu-link-item:hover {
          background-color: rgba(255, 255, 255, 0.06);
          color: #00f1ad;
          transform: translateX(6px); /* Desliza 6px para a direita */
          /*border-left: 3px solid #00f1ad; /* Adiciona uma borda verde na esquerda */
      }

      /* Animação específica para o ícone SVG dentro do link */
      .menu-link-item svg {
          width: 18px;
          height: 18px;
          transition: transform 0.2s ease, color 0.2s ease;
      }

      .menu-link-item:hover svg {
          color: #00f1ad; /* Ícone fica verde */
          transform: scale(1.15) rotate(5deg); /* Ícone cresce um pouco e inclina */
      }
      
      .usage-card {
          margin-top: 10px;
          background-color: #1a1d24;
          border-radius: 8px;
          padding: 4px 12px;
          display: flex;
          align-items: center;
          gap: 12px;
      }
      
      .usage-icon {
          width: 32px;
          height: 32px;
          background-color: rgba(99, 102, 241, 0.2); /* Roxo suave */
          color: #6366f1;
          border-radius: 8px;
          display: flex;
          align-items: center;
          justify-content: center;
      }
      
      .usage-info {
          display: flex;
          flex-direction: column;
          /*padding-top: 4px;*/
      }
      
      .usage-title { font-size: 14px; font-weight: 600; color: #fff; }
      .usage-stats { font-size: 11px; color: #9ca3af; }

/* cabeçalho do painel ("Signed in as") */
.panel-header {
    padding: 6px 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08); /* mesma cor da borda externa */
}

.signed-as {
    display: block;
    font-size: 11px;
    color: #6b7280;
}

.signed-email {
    display: block;
    font-size: 12px;
    color: #e5e7eb;
}

/* links do painel */
.panel-links {
    padding: 1px 0;           /* sem padding lateral → linha encosta na borda */
}

.panel-links a {
    display: flex;
    padding: 4px 4px;
    margin: 0px;
    font-size: 13px;
    color: #e5e7eb;
    text-decoration: none;
}

.panel-links span{
  font-size: 12.5px;
}

.panel-links a:hover {
    background: rgba(30, 41, 59, 0.5);
    outline: 0px solid #2d8f0057;
    border-radius: 6px;
}

/* linha estrutural entre Help center e Logout */
.panel-separator {
    border-top: 1px solid rgba(255,255,255,0.08); /* mesma cor das outras linhas */
    margin: 6px 0;                                /* só espaço vertical */
}

/* rodapé do painel (mesmo bloco do usuário) */
.panel-footer {
    margin-top: 4px;
    padding: 8px 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}



/* -------- LAYOUT -------- */
.left{
  width: max-content;
}
.top-title{
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}
.gsb {
  display: flex;
  min-height: 100vh; /* Garante no mínimo a altura da tela */
  height: auto;      /* Permite que o container estique */
  overflow: visible; /* Libera a rolagem para acompanhar o conteúdo longo */
}

.gsb-sidebar {
    width: 279px;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg);
	  border-right: 1px solid var(--stroke);

    min-height: 100%; /* Faz a sidebar ter sempre a mesma altura que o .main */
}

.gsb-sidebar .menu-background {
  display: flex;
  flex-direction: column;
  flex: 1; /* Esta linha "empurra" o bottom para baixo ocupando o espaço vago */
  min-height: 0;
}

.gsb-sidebar .menu {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-support {
  margin-top: auto; /* Alinha o bloco de atendimento no fim da coluna */
  padding: 14px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Botões */
.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: #a5a5a5;
    /* background: rgba(255,255,255,0.04); */
    /* border: 1px solid rgba(255,255,255,0.06); */
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
    margin: 0px 0px;
}

.support-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.support-btn svg{
width: 15px;
  height: 15px;

}

.support-btn span{
  font-size: 12px;
  font-weight: 500;
}

.support-btn i {
  width: 18px;
  height: 18px;
}

/* Cores sutis por canal (opcional) */
.support-telegram i { color: #2AABEE; }
.support-whatsapp i { color: #25D366; }

.brand {
    display: flex;
    align-items: center;
    padding-right: 14px;
    width: 250px;
    justify-content: center;
}

.logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;        /* garante que a imagem não vaze */
  background: none !important;  /* remove o quadrado verde */
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 500;
  font-size: 18px;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  display:none;
}

.menu-background{
  padding-left: 1rem;
  padding-right: 1rem;
  flex-grow: 1;
}

.menu-section{
      font-weight: 500;
    font-size: 12.5px;
    line-height: 1rem;
    text-transform: uppercase;
    color: #ffffffd9;
    padding-left: 12px;
    margin-bottom: 10px;
}
.toast-container{
  display: none !important;
}
.menu {
  flex-grow: 1;
  padding: 20px 0;
}

.menu-top {
  flex-grow: 1;
  padding: 11px 0;
  display: flex;
  gap:8px;
  margin-left: 45px;
}


.menu-top .menu-item {
  padding: 8px 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  color: #d7d7d7;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: 0.2s;
}

.menu-item:hover {
  background: var(--panel-2);
  border-radius: 6px;
}

.menu-item.active {
  background: var(--brand-bg);
  color: var(--brand) !important;
  /*border-left: 3px solid var(--brand);*/
  border-radius: 6px;
  font-weight: 500;
}

.menu-item svg {
    stroke: #a1a1a1 !important; 
}

.menu-item.active svg {
    stroke: var(--brand) !important; 
}

/* -------- MAIN CONTENT -------- */
.gsb-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  box-shadow: var(--shadow);
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn.primary {
  background: var(--brand-bg);
  color: var(--brand);
}

/* ===== Botão Danger (padrão do modal) ===== */
.btn.danger {
  background: #ff4242;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14.5px;
  font-family: inherit;

  padding: 9px; /* mesmo tamanho visual do botão Confirm/Cancelar */
  cursor: pointer;

  transition: all 0.25s ease;
}

/* Hover — igual ao botão cancelar do modal */
.btn.danger:hover {
  background-image: linear-gradient(135deg, #ff6b6b, #d40000);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);

}

/* Clique */
.btn.danger:active {
  transform: scale(0.96);
}


#btn-select-month {
  background-image: linear-gradient(to top right, #4f46e5, #6366f1, #a855f7);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
      font-size: 11.5px;
    padding-left: 7px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 11px;
  
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover no mesmo padrão dos botões do modal */
#btn-select-month:hover {
  background-image: linear-gradient(to top right,#4338ca 0%,#4f46e5 50%,#9333ea 100%);
}

/* Clique */
#btn-select-month:active {
  transform: scale(0.96);
}

#btn-select-month-surebet {
  background-image: linear-gradient(to top right, #4f46e5, #6366f1, #a855f7);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 500;
      font-size: 11.5px;
    padding-left: 7px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 11px;
  
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover no mesmo padrão dos botões do modal */
#btn-select-month-surebet:hover {
  background-image: linear-gradient(to top right,#4338ca 0%,#4f46e5 50%,#9333ea 100%);
}

/* Clique */
#btn-select-month-surebet:active {
  transform: scale(0.96);
}


/* ======================
   💫 ANIMAÇÃO NOS BOTÕES EDITAR / CANCELAR / EXCLUIR
   ====================== */
.btn-yellow,
.btn-blue {
  transition: all 0.25s ease;
}

/* Efeito geral: leve elevação e brilho */
.btn-yellow:hover,
.btn-blue:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 12px rgba(0, 241, 173, 0.25);
}

/* Personalização por cor */
.btn-yellow:hover {
  background: #5fd3ff;
  box-shadow: 0 0 16px rgba(4, 176, 255, 0.4);
  color: #ffffff;

}

.btn-blue:hover {
  background: linear-gradient(135deg, #5fd3ff, #0ea5e9);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}



/* Efeito de clique */
.btn-yellow:active,
.btn-blue:active {
  transform: scale(0.96);
}


/* -------- CONTENT -------- */
.content {
  flex-grow: 1;
  padding: 1px 12px;
  overflow-y: auto;
}

/* KPI GRID */
/* ======================
   📊 GRID DE KPIs
====================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(249px, 1fr));
  gap: 11px;
  
}

/* ======================
   🧮 CARD DE KPI
====================== */
.kpi-card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 17px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

      color: #bababa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* ======================
   🏷️ TÍTULO
====================== */
.kpi-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

/* ======================
   💰 NÚMERO PRINCIPAL
====================== */
.kpi-main p {
  font-size: 2.4rem;
  font-weight: 700;
  color: #07e173;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
  letter-spacing: 0;
}

.kpi-main p .currency {
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 0.9;
  display: inline-block;
  transform: translateY(-1px);  /* sobe um tiquinho pra alinhar com o topo do número */
  margin-right: 2px;             /* pequeno respiro antes do número */
}

/* ======================
   🔺 TENDÊNCIAS
====================== */
.kpi-trend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}

.kpi-trend.up {
  color: var(--ok);
}

.kpi-trend.down {
  color: var(--err);
}

.kpi-trend.neutral {
  color: #9ca3af;
}


/* GRÁFICOS */
.chart-grid {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  background: #1d1d1d;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  flex: 1 1 48%;
  min-width: 340px;
}

.chart-card canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 200px !important;
}

.inputadddate{
  width:165px !important;
}

.inputadddate1{
  width:190px !important;
}

.btadd{
  display: flex;
  gap:8px;
  justify-content: center;
}

/* ===================== LISTA DE APOSTAS ===================== */
/* Container do botão + badge */
.filter-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    /*width: 205px;*/
    margin-top:10px;*/
}

/* BOTÃO PRINCIPAL */
.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: linear-gradient(90deg, #4f46e5, #6366f1, #a855f7);
    color: #fff;

    border: none;
    border-radius: 18px;

    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.45);
}

.btn-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.55);
}

.btn-filter:active {
    transform: scale(0.97);
}

/* BADGE DO MÊS */
.filter-badge {
    position: absolute;
     right: 148px;
    bottom: 4px;
    background: #00316f;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    color: #e5e7eb;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}


.saudacao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  /*margin: 12px 0;*/
      margin: 0 50%;

      background: var(--panel);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 0 !important;
}

.saudacao h4 {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.dashboard-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  /*margin: 12px 0;*/    
}

.dashboard-bar h4 {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.group-card {
  background: var(--panel);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--stroke);
}
.btn.ghost svg {
  width: 16px;
  height: 16px;
}

.btn.ghost.data svg {
  width: 16px;
  height: 16px;
}

.btn.ghost span{
	font-size:12px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.group-title {
  color: var(--text);
  line-height: 1.3;
}

.group-title strong {
  font-size: 14px;
  font-weight: 600;
}

.group-title em {
  font-size: 0.85rem;
  color: var(--muted);
}

.group-title span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.group-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===============================
   💰 STATUS E CHIPS (versão maior)
   =============================== */

.chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 30px;          /* igual aos botões */
  border-radius: 8px;
  font-size: 14px;         /* levemente maior */
  font-weight: 600;           /* mesmo peso dos botões */
  text-align: center;
  /*min-width: 130px;           /* igual aos botões */
  height: 33px;               /* mesma altura dos botões */
  box-sizing: border-box;
  transition: all 0.25s ease;
}

/* === CORES === */
.chip-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.chip-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.chip-gray {
  background: rgba(100, 116, 139, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* === Hover sutil (opcional) === */
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 241, 173, 0.1);
}


.btn-yellow {
  background-color: #1f222c;
  color: #f1f1f1;
  border: 1px solid #2a2d3b;
  font-weight: 500;
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 4px 10px;
  transition: all 0.2s;
}
.btn-yellow:hover {
  transform: scale(1.05);
}


.btn-blue {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #000;
  font-weight: 500;
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 4px 10px;
  transition: all 0.2s;
}
.btn-blue:hover {
  transform: scale(1.05);
}

/* TABELAS DE APOSTAS */
.table-apostas {
  width: 100%;
  border-collapse: collapse;
  /*margin-top: 10px;*/
  border: 1px solid var(--stroke);
}

.table-apostas th,
.table-apostas td {
  padding: 8px 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--stroke);
}

.table-apostas th {
  background: var(--panel-2);
  font-weight: 600;
  color: var(--muted);
}

.table-apostas tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

/* STATUS LABELS */
.status-green { color: #22c55e; font-weight: 600; }
.status-red { color: #ef4444; font-weight: 600; }
.status-half-green { color: #4ade80; font-weight: 600; }
.status-half-red { color: #f87171; font-weight: 600; }
.status-devolvido { color: #60a5fa; font-weight: 600; }
.status-pendente { color: #9ca3af; font-weight: 600; }

/* ALERTAS */
.alert-msg {
  padding: 10px;
  border-radius: 6px;
  font-weight: 500;
  background: rgba(0,0,0,0.2);
  color: var(--text);
}

/* BOTÕES DO TOPO */
/* --- BOTÃO PAINEL ADMIN --- */
/* Topbar: equalizar tamanho visual dos botões */
.top-actions .btn,
.topbar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;              /* mesma altura */
  padding: 0 15px;           /* padding igual nos dois */
  border-radius: 8px;        /* mesmo raio */
  font-size: 14.5px;         /* mesma fonte */
  font-weight: 500;
  font-family: inherit;
  /*line-height: 1;            /* centraliza verticalmente */*/
}



/* Sair mantém o gradiente, mas herda altura/padding acima */
/* === BOTÃO PAINEL ADMIN (IGUAL AO SAIR) === */
.admin-btn {
  background: linear-gradient(135deg, #00b3ff, #0077b6); /* azul vibrante */
  color: #ffffff;
  font-weight: 700;
  padding: 4px 10px; /* igual ao sair */
  border-radius: 6px;  
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  height: 28px; /* mesma altura */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.3s;
  font-weight: 500;
}

.admin-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 179, 255, 0.4);
}



/* FILTROS */
#filter-panel {
  display: none;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--stroke);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

#filter-panel label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2px;
}

#filter-panel input,
#filter-panel select {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

/* KPIs DETALHADOS */
.kpi-card h4 {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 500;
}
.chart-title {
text-transform: none;
}

.kpi-card p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}

.kpi-card p .currency {
  font-size: 1.2rem;
  vertical-align: top;
  opacity: 0.85;
  margin-right: 2px;
}

/* CHARTS E CANVAS */
.chart-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.chart-card canvas {
  width: 100%;
  height: 240px;
}

/* DASHBOARD GERAL */
.dashboard {
  display: flex;
  flex-direction: column;
  /*padding: 20px;*/
  gap: 20px;
  color: var(--text);
  background: #121212;
}
.content {
background: #121212;
}

.dashboard h4 {
  font-weight: 600;
}

.dashboard .btn {
  font-size: 0.85rem;
}

/* ===========================
   FORMULÁRIOS E INPUTS
   =========================== */

form {
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, select, textarea {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.9rem;
  width: 165px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.main {
    width: 100%;
    min-height: 100vh; /* Ocupa no mínimo a tela, mas cresce conforme o conteúdo */
    height: auto;      /* Libera a altura travada */
    overflow-y: visible; /* O scroll agora deve ser do navegador/body */
    display: flex;  
    background-color: #121212/*var(--sidebar-bg);*/
}
.content {
    width: 100%;
    margin: 0 auto;
    padding: 29px;
}
/* ===========================
   RESPONSIVIDADE BASE
   =========================== */

@media (min-width: 1024px) {
  .titulo-desktop{
  display: none;
}
  .content {
  
  }
}

@media (max-width: 900px) {
  .chart-card {
    min-width: 100%;
  }
}

.table-apostas {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-apostas th,
.table-apostas td {
  width: 20%;
  text-align: center !important;
  padding: 10px;
}

.align-table th,
.align-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: unset;
}

/* ===========================
   BOTÕES COLORIDOS
   =========================== */



.btn-green {
  background-color: #00f1ad;
  color: #000;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* Estilo ghost (cinza-claro sobre fundo escuro) */
.btn.ghost {
  background-color: #1f222c;
  color: #f1f1f1;
  border: 1px solid #2a2d3b;
  font-weight: 700;
  padding: 7px 10px; /* igual ao sair */
  border-radius: 6px;  
  letter-spacing: 0.5px;
  font-size: 12px;
  /*height: 28px; /* mesma altura */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.3s;
  font-weight: 500;
}



/* ===========================
   CENTRALIZAÇÃO E ALINHAMENTO
   =========================== */

.table-apostas th:nth-child(3),
.table-apostas th:nth-child(4),
.table-apostas th:nth-child(5),
.table-apostas td:nth-child(3),
.table-apostas td:nth-child(4),
.table-apostas td:nth-child(5) {
  text-align: center !important;
}

/* ===========================
   MELHORIAS VISUAIS DO DASHBOARD
   =========================== */

h3, .section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

h4 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

p, td, th, span {
  font-size: 16px;
}

/* --- Dashboard Bar --- */
.dashboard-bar {
  background: var(--panel);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  
}

.dashboard-bar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
}

.dashboard-bar .btn.primary {
  background: var(--brand);
  color: #000;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}

.dashboard-bar .btn.primary:hover {
  background: #00ffbd;
}

/* --- Painel de Filtros Retrátil --- */
#filter-panel {
  margin-top: 24px !important;
  background: var(--panel);
  padding: 18px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

#filter-panel label {
  font-size: 0.8rem;
  color: var(--muted);
}

#filter-panel input,
#filter-panel select {
  font-size: 0.85rem;
  padding: 8px 10px;
  background: var(--panel-2);
  color: var(--text);
  border-radius: 6px;
  border: 1px solid var(--stroke);
}

/* --- KPIs --- */
.kpi-card {
  background: var(--panel); 
  transition: 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* --- Gráficos --- */
.chart-card {
  background: var(--panel-graf); 
  transition: 0.2s ease;
}

.chart-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Cards de apostas --- */
.group-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.group-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* --- Títulos dos jogos --- */
.group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.event-name {
  color: var(--brand);
  font-weight: 600;
}

.market-name {
  color: var(--muted);
  font-style: italic;
}

/* --- Botões Editar / Excluir --- */
.btn-yellow {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  
}

.swal2-toast-shown .swal2-container.swal2-top-end, body.swal2-toast-shown .swal2-container.swal2-top-right{
  inset: 0 !important;
  margin:0 auto !important;
}




/* --- Menu lateral --- */
.menu-item {
  font-size: 0.9rem;
  font-weight: 500;
   margin-top: 2.5px;
  margin-bottom: 2.5px;
}

.menu-item.active {
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-bg);
  /*border-left: 3px solid var(--brand);*/
  border-radius: 6px;
  margin-top: 2.5px;
  margin-bottom: 2.5px;

    border-left-width: 2px;
    border-color: hsl(var(--primary)); 
    color: hsl(var(--primary));

}

/* ===========================
   MODAIS E POPUPS
   =========================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  width: 95%;
  max-width: 520px;
  color: var(--text);
}

.modal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.modal-content .btn {
  margin-top: 10px;
}

/* ===========================
   MENSAGENS / ALERTAS
   =========================== */
.alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
}

/* ===========================
   ANIMAÇÕES LEVES
   =========================== */
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.3s ease forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* ===========================
   RESPONSIVIDADE AVANÇADA
   =========================== */
@media (max-width: 768px) {
  .dashboard {
    padding: 14px;
    gap: 16px;
  }
  .dashboard-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .group-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .group-right {
    justify-content: flex-start;
  }
  .table-apostas th,
  .table-apostas td {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
  .kpi-main p {
    font-size: 1.8rem;
  }
  .kpi-main p .currency {
    font-size: 1.1rem;
  }
}

@media (max-width: 540px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .chart-card canvas {
    height: 200px;
  }
  .btn {
    padding: 6px 10px;
  }
}

/* ===========================
   SCROLL PERSONALIZADO
   =========================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}
::-webkit-scrollbar-track {
  background: #111;
}

/* ===========================
   TOOLTIP SIMPLES
   =========================== */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 4px 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ===========================
   LINKS, FOOTER, DETALHES
   =========================== */
a {
  color: var(--brand);
  text-decoration: none;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 20px 0;
}

/* ===========================
   UTILITÁRIOS / HELPERS
   =========================== */

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid {
  display: grid;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--brand);
}

.rounded {
  border-radius: 10px;
}

.shadow {
  box-shadow: var(--shadow);
}

/* ===========================
   ANIMAÇÕES VISUAIS
   =========================== */

.fade-up {
  animation: fadeUp 0.35s ease-in-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scale-in {
  animation: scaleIn 0.25s ease forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===========================
   CARDS E SHADOWS
   =========================== */

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* ===========================
   BADGES / STATUS
   =========================== */

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green {
  background: rgba(0, 241, 173, 0.2);
  color: #00f1ad;
}

.badge-red {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.badge-gray {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

/* ===========================
   GRÁFICOS / CHARTS AJUSTES
   =========================== */

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}

.chart-card canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Evita quebra do layout */
canvas {
  display: block;
  max-width: 100%;
}

/* ===========================
   TOGGLE DE TEMA / SWITCH
   =========================== */

.theme-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s;
  z-index: 900;
}

.theme-toggle:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.05);
}

/* ===========================
   ANIMAÇÃO DE ENTRADA DE PÁGINA
   =========================== */

.page-enter {
  animation: pageIn 0.4s ease-in-out forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVIDADE FINAL
   =========================== */

@media (max-width: 480px) {
  .brand{
    padding-right: 0px;
    margin-bottom: 10px;
  }
  .dashboard h4{
    font-size: 100%;
  }
  .top-actions{
    display: contents !important;
  }
  .kpi-card{
    display: grid;
  }
  .top-title{
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    flex-direction: column;
border-bottom: 1px solid var(--stroke);
  }
  .brand-title{
    display: none;
  }
  .dashboard-bar {
    padding: 10px 12px;
  }

  .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .kpi-card {
    padding: 12px;
  }

  .kpi-main p {
    font-size: 1.6rem;
  }

  .group-card {
    padding: 10px;
  }

  .table-apostas th,
  .table-apostas td {
    font-size: 0.75rem;
  }

  footer {
    font-size: 0.8rem;
  }
}

/* ===========================
   FINALIZAÇÃO
   =========================== */

body.gsb {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  max-width: 1600px;
  margin: 0 auto;
}

.gsb-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  
}

.gsb-sidebar {
  transition: all 0.3s ease-in-out;
}

.table-apostas {
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
}

/* ===========================
   CABEÇALHO INLINE DE APOSTAS
   =========================== */

.group-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.group-sport {
  font-weight: 600;
  color: #a1a1aa;
}

.group-event {
  font-weight: 600;
  color: #00f1ad;
}

.group-market {
  font-style: italic;
  color: #a1a1aa;
}

.group-date {
  font-weight: 600;
  color: #e5e5e5;
}

/* Separadores visuais entre itens */
.group-title > *::after {
  content: "•";
  /*margin: 0 0 0 12px;*/
  color: rgba(255, 255, 255, 0.3);
}

.group-title > *:last-child::after {
  content: "";
}

/* ===========================
        EXPANDIR/RECOLHER
   =========================== */


/* Esconde apenas os botões quando o card está recolhido */
.group-card.collapsed .edit-btn,
.group-card.collapsed .cancel-btn,
.group-card.collapsed .delete-btn {
  display: none !important;
}

/* Continua escondendo o corpo e mensagens */
.group-card.collapsed .group-body,
.group-card.collapsed .alert-msg {
  display: none;
}

/* Mantém o cabeçalho visível e compacto */
.group-card.collapsed .group-header {
  background: #1a1a1a; /* pode ajustar conforme seu tema */
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ícone de expandir/recolher */
.group-title::after {
  content: " ▼";
  font-size: 0.9em;
  opacity: 0.6;
  margin-left: 4px;
  transition: transform 0.2s;
}
.group-card.collapsed .group-title::after {
  content: " ▶";
}



/* ================================
   📱 RESPONSIVIDADE GERAL DASHBOARD
   ================================ */

/* ===== Sidebar ===== */
@media (max-width: 1024px) {
  .gsb-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    transform: translateX(-100%);
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* bounce suave */
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  /* Quando ativo */
  .gsb-sidebar.active {
    transform: translateX(0);
  }

  /* Ícone do menu no topo */
  .topbar::before {
    content: "☰";
    font-size: 1.6rem;
    color: #00f1ad;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s, color 0.3s;
  }

  .topbar::before:hover {
    color: #00ffc6;
    transform: scale(1.15);
  }

  /* Efeito de escurecer o fundo quando menu aberto */
  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
    transition: opacity 0.3s ease;
  }

  .gsb-main {
    margin-left: 0 !important;
    width: 100%;
  }
}


/* ===== Topbar ===== */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .top-title {
    font-size: 1.1rem;
  }
}

/* ===== KPI Cards ===== */
@media (max-width: 1000px) {
  .kpi-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }

  .kpi-card h4 {
    font-size: 0.9rem;
  }

  .kpi-card p {
    font-size: 1rem;
  }
}

/* ===== Chart Grid ===== */
@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chart-card h4 {
    font-size: 1rem;
  }
}

/* ===== Botões e Layout ===== */
@media (max-width: 600px) {
  .dashboard-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .card,
  .kpi-card,
  .chart-card {
    padding: 14px;
  }

  .brand-title {
    font-size: 1rem;
  }
}

/* ===== Modais ===== */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 15px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .btn-cancel,
  .btn-confirm {
    width: 100%;
  }
}

/* =========================================
   🟩 GreenSurebet - Edição de Aposta (Grid)
   ========================================= */

.form-box {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(0, 241, 173, 0.1);
  border-radius: 16px;
  padding: 28px;
  color: #e5e7eb;
  max-width: 900px;
  margin: 25px auto;
  box-shadow: 0 0 20px rgba(0, 241, 173, 0.05);
}

.form-box h2 {
  text-align: center;
  color: #00f1ad;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-box h3 {
  text-align: center;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 20px;
}

/* === Grid === */
.bet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(17, 24, 39, 0.9);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bet-grid .header {
  display: contents;
}

.bet-grid .header div {
  background: rgba(17, 24, 39, 0.95);
  color: #9ca3af;
  font-weight: 600;
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bet-grid .row {
  display: contents;
}

.bet-grid .cell {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  color: #e2e8f0;
  background: rgba(31, 41, 55, 0.7);
}

.bet-grid .cell select {
  width: 90%;
  padding: 8px 10px;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(0, 241, 173, 0.12);
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.bet-grid .cell select:focus {
  border-color: #00f1ad;
  box-shadow: 0 0 6px rgba(0, 241, 173, 0.4);
  outline: none;
}

/* === Botões === */
.form-box .btn {
  margin-top: 12px;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  transition: 0.25s ease;
}

.form-box .btn.primary {
  background: linear-gradient(90deg, #00f1ad, #00c4ff);
  color: #000;
  border: none;
}

.form-box .btn.primary:hover {
  box-shadow: 0 0 15px rgba(0, 241, 173, 0.35);
}

.form-box .btn {
  background: rgba(31, 41, 55, 0.7);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-box .btn:hover {
  background: rgba(41, 51, 65, 0.9);
}

/* === Agrupamento de botões === */
.form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.form-actions .btn {
  min-width: 100px;
  text-align: center;
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ===== MOBILE (simplificado: mostra Casa + Status) ===== */
@media (max-width: 768px) {
  .bet-grid .header {
    display: none;
  }

  .bet-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bet-grid .row {
    display: flex;
    flex-direction: column;
    background: rgba(17, 24, 39, 0.9);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 241, 173, 0.1);
  }

  .bet-grid .cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    font-size: 0.9rem;
  }

  /* Esconde Lado, Odd e Stake */
  .bet-grid .cell[data-label="Lado"],
  .bet-grid .cell[data-label="Odd"],
  .bet-grid .cell[data-label="Stake"] {
    display: none !important;
  }

  .bet-grid .cell[data-label="Casa"] {
    color: #00f1ad;
    font-weight: 600;
  }

  .bet-grid .cell[data-label="Status"] {
    margin-top: 6px;
  }

  .bet-grid .cell select {
    width: 100%;
    font-size: 0.9rem;
  }
}

/* =========================================
   🟩 GreenSurebet - Lista de Apostas (index)
   Responsividade das tabelas
   ========================================= */

/* === TABLET/IPAD: Oculta Data do Evento === */
@media (max-width: 1024px) {
  table.table-apostas th:nth-child(1),
  table.table-apostas td:nth-child(1) {
    display: none !important;
  }
}

/* === MOBILE: Mostra só Casa + Status === */
@media (max-width: 768px) {
  table.table-apostas {
    border: none;
    width: 100%;
  }

  table.table-apostas thead {
    display: none;
  }

  table.table-apostas tbody tr {
    display: block;
    background: rgba(17, 24, 39, 0.9);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(0, 241, 173, 0.1);
  }

  table.table-apostas td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 6px 0;
    font-size: 0.9rem;
  }

  /* 🧩 ESCONDE colunas: Data, Evento, Mercado, Odd, Stake */
  table.table-apostas td:nth-child(1),
  table.table-apostas td:nth-child(3),
  table.table-apostas td:nth-child(4),
  table.table-apostas td:nth-child(5),
  table.table-apostas td:nth-child(6) {
    display: none !important;
  }

  /* ✅ MOSTRA Casa (2ª) + Status (7ª) */
  table.table-apostas td:nth-child(2),
  table.table-apostas td:nth-child(7) {
    display: flex !important;
  }

  /* Casa em destaque */
  table.table-apostas td:nth-child(2) {
    color: #00f1ad;
    font-weight: 600;
  }

  table.table-apostas select {
    width: 100%;
    font-size: 0.9rem;
  }
}

/* ==== FIXES FINAIS (colar no fim do style.css) ==== */

/* 1) Lista de apostas no MOBILE: mostrar só Casa (2ª) + Status (7ª)
      e liberar quebra de linha (sem ellipsis) pra não “apagar” a direita */
@media (max-width: 768px) {
  table.table-apostas {
    border: none;
    width: 100%;
  }

  table.table-apostas thead { display: none; }

  table.table-apostas tbody tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(0, 241, 173, 0.1);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
  }

  table.table-apostas td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 6px 0;
    font-size: 0.9rem;
  }

  /* esconder: Data(1), Evento(3), Mercado(4), Odd(5), Stake(6) */
  table.table-apostas td:nth-child(1),
  table.table-apostas td:nth-child(3),
  table.table-apostas td:nth-child(4),
  table.table-apostas td:nth-child(5),
  table.table-apostas td:nth-child(6) {
    display: none !important;
  }

  /* mostrar: Casa(2) + Status(7) */
  table.table-apostas td:nth-child(2),
  table.table-apostas td:nth-child(7) {
    display: flex !important;
  }

  /* Casa em destaque */
  table.table-apostas td:nth-child(2) {
    color: #00f1ad;
    font-weight: 600;
  }

  /* remover elipses e cortes no mobile */
  .align-table th,
  .align-table td {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

/* 2) Botões “Editar / Cancelar / Excluir” do card (INDEX):
      alinhar à direita no desktop e CENTRALIZAR no mobile */
.group-right { justify-content: flex-end; }
@media (max-width: 768px) {
  .group-right {
    width: 100%;
    justify-content: center !important;
  }
}

/* 3) Form de settle (Salvar/Cancelar/Excluir) – centralizado
      e 100% da largura no mobile */
.form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.form-actions .btn { min-width: 140px; text-align: center; }
@media (max-width: 768px) {
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}

/* ==== FIXES FINAIS (ajuste mobile cards) ==== */

@media (max-width: 768px) {
  /* Forçar layout tipo card limpo */
  table.table-apostas tbody tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(17, 24, 39, 0.92);
    border-radius: 10px;
    padding: 14px 12px;
    border: 1px solid rgba(0, 241, 173, 0.12);
    width: 100%;
    box-sizing: border-box;
  }

  table.table-apostas td {
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 6px 0;
    background: none;
  }

  table.table-apostas td:nth-child(2) {
    font-weight: 600;
    color: #00f1ad;
    font-size: 1rem;
  }

  table.table-apostas td:nth-child(7) {
    justify-content: center;
  }

  table.table-apostas select {
    width: 90%;
    margin-top: 6px;
    text-align: center;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(0, 241, 173, 0.2);
  }

  /* Remover qualquer corte de texto */
  .align-table td {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
}

/* === FIX FINAL: comportamento e responsividade do botão Cancelar === */

/* Oculta o botão sempre por padrão */
.btn-blue.cancel-btn {
  display: none !important;
  font-weight: 600;
  background: linear-gradient(90deg, #00a8ff, #00c6ff);
  color: #000 !important;
  border: none;
  border-radius: 8px;
  transition: 0.25s ease;
}

/* Mostra somente quando o JS adiciona a classe .is-visible */
.btn-blue.cancel-btn.is-visible {
  display: block !important;
  width: 100%;
  margin: 8px auto 0 auto;
  text-align: center;
}

/* ======== Layout dos botões (Editar / Cancelar / Excluir) ======== */
.group-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* centraliza no desktop */
  align-items: center;
  gap: 8px;
}

/* Botões em ordem lógica */
.group-right .edit-btn { order: 1; }
.group-right .cancel-btn { order: 2; }
.group-right .delete-btn { order: 3; }

/* Mobile: empilha */
@media (max-width: 768px) {
  .group-right {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .group-right .btn {
    width: 100%;
    text-align: center;
  }

  .btn-blue.cancel-btn.is-visible {
    width: 100%;
  }
}

/* Desktop: lado a lado */
/* ===================== BOTÕES EDITAR / CANCELAR / EXCLUIR ===================== */

/* Container dos botões */
.group-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

/* MOBILE – empilha */
@media (max-width: 768px) {
  .group-right {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .group-right .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===================== BOTÃO CANCELAR ===================== */

/* Escondido por padrão */
.btn-blue.cancel-btn {
  display: none !important;
}

/* Visível quando JS adiciona a classe */
.btn-blue.cancel-btn.is-visible {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  background: linear-gradient(90deg, #00a8ff, #00c6ff);
  color: #000 !important;
  border: none;
  border-radius: 8px;
  transition: 0.25s ease;
}

/* Hover */
.btn-blue.cancel-btn.is-visible:hover {
  box-shadow: 0 0 12px rgba(0, 198, 255, 0.4);
  transform: translateY(-1px);
}

/* DESKTOP: lado a lado */
@media (min-width: 769px) {
  .group-right {
    justify-content: center; /* centraliza horizontalmente */
    gap: 10px;
  }

  .group-right .btn {
    width: auto !important;
    min-width: 75px;
    padding: 6px 16px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .btn-blue.cancel-btn.is-visible {
    width: auto;
    margin: 0;
  }
}

/* Remove o logo e texto da parte inferior */
.sidebar-footer {
  display: none;
}

/* Ajusta o botão de tema */
.theme-toggle {
  background-color: var(--primary-color); /* ou a variável usada no seu tema */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--primary-color-dark); /* tom um pouco mais escuro */
}

/* Oculta o menu inferior no desktop */
.mobile-nav {
  display: none;
}

/* Exibe apenas em telas pequenas */
@media (max-width: 768px) {
	.kpi-main{
		text-align: center;
	}
  .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px; /* Um pouco mais alto para facilitar o toque */
        background: #12141d;
        border-top: 1px solid #2a2d3b;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom); /* iPhone X+ safe area */
        
        /* Habilita o Scroll Horizontal */
        overflow-x: auto;
        justify-content: flex-start; /* Itens começam na esquerda */
        gap: 0; /* Remove gap, usaremos padding no link */
        
        /* Remove a barra de rolagem visual, mas mantém a função */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    }

    /* Esconde barra de rolagem no Chrome/Safari/Opera */
    .mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
        gap: 5px;
        
        /* Tamanho fixo para cada item */
        min-width: 80px; /* Largura mínima para ser clicável e forçar scroll */
        height: 100%;
        flex-shrink: 0; /* IMPEDE que o item encolha */
        
        transition: all 0.2s ease;
        border-top: 2px solid transparent; /* Indicador de ativo no topo */
    }

    .mobile-nav a:active {
        background-color: rgba(255,255,255,0.03);
    }

    .mobile-nav a i, 
    .mobile-nav a svg {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
        transition: 0.2s;
    }

    /* Estado Ativo */
    .mobile-nav a.active {
        color: #00f1ad;
        background: linear-gradient(to top, rgba(0, 241, 173, 0.05), transparent);
        border-top: 2px solid #00f1ad; /* Linha verde no topo do item ativo */
    }

    .mobile-nav a.active svg,
    .mobile-nav a.active i {
        stroke: #00f1ad;
        color: #00f1ad;
        transform: translateY(-2px); /* Leve pulo do ícone */
        filter: drop-shadow(0 0 5px rgba(0, 241, 173, 0.4));
    }

  .mobile-nav a i {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
  }

  .mobile-nav a.active {
    color: var(--primary-color, #00f1ad);
  }

  .mobile-nav a.active i {
    color: var(--primary-color, #00f1ad);
  }

  /* Esconde a sidebar quando o menu inferior aparece */
  .gsb-sidebar {
    display: none;
  }

  /* Adiciona espaço no conteúdo pra não sobrepor o menu */
  .content {
    padding-bottom: 80px;
  }
}

/* ===============================
   🎨 Perfil - Estilo Instagram Dark
   =============================== */

/* 🔹 Banner */
.profile-banner {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--panel-2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: -60px;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  border-radius: 12px;
}

/* 🔹 Cabeçalho */
.profile-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border: 4px solid var(--brand);
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  flex-shrink: 0;
  margin-top: -60px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-info h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

/* 🔹 Métricas */
.profile-stats {
  display: flex;
  justify-content: space-around;
  background: var(--panel);
  border-radius: 10px;
  margin: 20px 0;
  padding: 14px 0;
}

.profile-stats strong {
  display: block;
  color: var(--ok);
  font-size: 1.1rem;
}

.profile-stats span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 🔹 Bio */
.profile-bio {
  background: var(--panel);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-top: 10px;
}

/* ===============================
   🏆 Leaderboard
   =============================== */
.leaderboard {
  background: var(--panel) !important;
  border-radius: 10px !important;
  padding: 18px !important;
  border: 1px solid var(--stroke) !important;
  margin-top: 16px !important;
}

.leaderboard h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  color: var(--brand) !important;
}

.leaderboard ul {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.leaderboard li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--panel-2) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  transition: 0.25s ease !important;
}

.leaderboard li:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 10px rgba(0, 241, 173, 0.15) !important;
}

.leaderboard .rank {
  font-weight: 600 !important;
  color: var(--brand) !important;
  margin-right: 6px !important;
}

.leaderboard .lb-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  margin: 0 10px !important;
  flex-shrink: 0 !important;
}

.leaderboard .lb-name {
  flex: 1 !important;
  color: var(--text) !important;
  font-weight: 500 !important;
}

.leaderboard .lb-roi {
  color: var(--ok) !important;
  font-weight: 600 !important;
}

/* ===============================
   📱 Responsivo
   =============================== */
@media (max-width: 640px) {
  .profile-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .profile-info h2 {
    font-size: 1.2rem !important;
  }

  .profile-avatar {
    width: 100px !important;
    height: 100px !important;
    margin-top: -50px !important;
  }

  .profile-stats {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .user-search {
    max-width: 90% !important;
    margin: 10px auto !important;
    padding: 10px !important;
  }

  .user-search form.search-form {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .user-search input,
  .user-search button {
    width: 100% !important;
  }
}

/* ===============================
   🔍 Campo de busca de apostador
   =============================== */
.user-search-container {
  width: 100%;
  margin-top: 16px;
}

/* 🔹 Box principal da busca */
.user-search {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: var(--panel) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  box-shadow: var(--shadow) !important;
  transition: 0.2s ease !important;
}

.user-search:focus-within {
  border-color: var(--brand) !important;
  box-shadow: 0 0 6px rgba(0, 241, 173, 0.25) !important;
}

/* 🔹 Form interno */
.user-search form.search-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}


/* 🔹 Campo de input */
.user-search input[type="text"],
.user-search input[type="search"] {
  flex: 1 !important;
  min-width: 0 !important;
  background: var(--panel-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-size: 0.9rem !important;
  outline: none !important;
  transition: 0.25s !important;
}

.user-search input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 4px rgba(0, 241, 173, 0.3) !important;
}

/* 🔹 Botão de busca */
.user-search button {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #00ffc3, #00c4ff) !important;
  color: #0f172a !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: 0.3s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.user-search button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 0 10px rgba(0, 255, 195, 0.35) !important;
}

.user-search button i {
  margin-left: 6px !important;
  font-size: 0.9rem !important;
}

/* ===============================
   🔍 Resultados da busca (com métricas)
   =============================== */
.search-results {
  width: 100%;
  margin-top: 20px;
}

.search-results .card {
  background: var(--panel);
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.search-results h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
}

.query-text {
  color: var(--text);
}

.user-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-result-item {
  background: var(--panel-2);
  border-radius: 8px;
  transition: 0.25s ease;
}

.user-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 241, 173, 0.15);
}

.user-result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
}

.user-result-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-result-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-result-name {
  font-weight: 600;
  color: var(--text);
}

.user-result-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* 🔹 Estatísticas à direita */
.user-result-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: right;
}

.user-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.user-stat .label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.user-stat strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.text-profit {
  color: var(--ok);
}

.text-loss {
  color: var(--error);
}

/* 🪶 Responsivo */
@media (max-width: 640px) {
  .user-result-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .user-result-stats {
    width: 100%;
    justify-content: space-between;
  }

  .user-stat {
    align-items: flex-start;
  }
}

.hidden {
  display: none;
}

.toggle-password-btn {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-password-btn:hover {
  background: var(--brand-bg);
  transform: scale(1.05);
}

.password-section {
  width: 100%;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke);
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.password-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.password-section input {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.9rem;
  padding: 10px 12px;
  transition: border-color 0.25s ease;
}

.password-section input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


.gsb-sidebar.menu-empty .sidebar-support{
  margin-top: 12px !important; /* remove o empurrão pro rodapé */
  border-top: 0 !important;
  padding-top: 0 !important;
}


/* Seu ajuste do suporte */
.gsb-sidebar.menu-empty .sidebar-support{
  margin-top: 12px !important;
  border-top: 0 !important;
  padding-top: 0 !important;
}

.sidebar-support-title {
    display: block;
    text-align: left;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ffffffd9;
    padding-left: 7px;
}

.sidebar-support-title i {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.btn-green {
    background: transparent;
    color: #10b981; /* Verde */
    border: 1px solid #10b981;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.btn-green:hover {
    background: #10b981;
    color: #fff;
}

.btn-gray {
    background: transparent;
    color: #9ca3af; /* Cinza */
    border: 1px solid #9ca3af;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}
.btn-gray:hover {
    background: #9ca3af;
    color: #fff;
}

/* ==========================================================================
   📱 RESPONSIVIDADE TOTAL (MOBILE & TABLET)
   Cole isto no final do seu style.css
   ========================================================================== */



/* --- Regras para Celulares (Telas até 768px) --- */
@media (max-width: 768px) {

    /* 1. LAYOUT E ESTRUTURA */
    body {
        overflow-x: hidden; /* Evita rolagem lateral na página inteira */
    }

    .gsb-main {
        flex-direction: column;
        width: 100%;
        margin-left: 0 !important;
    }

    /* Esconde a Sidebar lateral */
    .gsb-sidebar {
        display: none !important;
    }

    /* Ajusta o conteúdo para não ficar atrás do menu inferior */
    .content {
        padding: 15px;
        padding-bottom: 90px !important; /* Espaço extra para o menu inferior */
        width: 100%;
        overflow-x: hidden;
    }

    /* 2. TOPO (TOPBAR) */
    .topbar {
        padding: 10px 15px;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
    }

    /* Esconde elementos desnecessários no topo mobile */
    .titulo-desktop, 
    .user-name, 
    .user-plan,
    .user-id {
        display: none !important;
    }

    /* Mantém o logo e o avatar */
    .brand {
        width: auto;
        padding-right: 0;
    }
    
    .brand-title {
        font-size: 14px;
    }

    /* Ajuste do botão de conta */
    .account-compact {
        padding: 2px;
        background: transparent;
    }
    .avatar {
        width: 38px;
        height: 38px;
    }

    /* 3. MENU INFERIOR (MOBILE NAV) */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #12141d; /* Cor do fundo do menu */
        border-top: 1px solid #2a2d3b;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom); /* Ajuste para iPhone */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        text-decoration: none;
        font-size: 10px;
        gap: 5px;
        flex: 1;
        height: 100%;
    }

    .mobile-nav a.active {
        color: #00f1ad;
    }

    .mobile-nav a.active svg,
    .mobile-nav a.active i {
        stroke: #00f1ad;
        color: #00f1ad;
    }

    /* 4. GRIDS E CARDS (KPIs, Gráficos) */
    .kpi-grid, 
    .chart-grid, 
    .steps-grid,
    .form-grid {
        display: grid;
        grid-template-columns: 1fr !important; /* Uma coluna por linha */
        gap: 15px;
    }

    /* Filtros empilhados */
    #filter-panel {
        flex-direction: column;
        align-items: stretch;
    }
    #filter-panel > div, 
    #filter-panel input, 
    #filter-panel select,
    #filter-panel button {
        width: 100% !important;
    }

    /* 5. TABELAS COM ROLAGEM */
    /* Classe utilitária para envolver tabelas */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
        border-radius: 8px;
        border: 1px solid var(--stroke);
    }

    /* Garante que a tabela não encolha demais */
    .table-responsive table {
        min-width: 600px; 
        border: none; /* Remove borda da tabela pois a div já tem */
    }

    /* 6. MODAIS */
    .modal-content {
        width: 92% !important;
        max-height: 85vh;
        overflow-y: auto;
        padding: 20px;
    }

    /* 7. BOTÕES E AÇÕES */
    .group-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .group-right {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between; /* Distribui os botões */
    }
    
    .group-right .btn {
        flex: 1; /* Botões ocupam largura igual */
        text-align: center;
        justify-content: center;
    }

    /* Ajuste do botão de filtro e download */
    .filter-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-wrapper .btn-filter {
        flex: 1;
        font-size: 11px;
        padding: 10px;
        justify-content: center;
    }
    
    /* Oculta texto longo do botão se precisar */
    .filter-wrapper .filter-badge {
        position: static; /* Remove posição absoluta no mobile */
        margin-left: 5px;
    }
}




/* Estilo para os Selects no Header */
.header-select {
    background-color: #242424;
    color: #ffffff;
    border: 1px solid #242424;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    height: 34px;
    transition: border-color 0.2s;
}

    .header-select:hover { border-color: #00f1ad; }
    .header-select:focus { border-color: #00f1ad; box-shadow: 0 0 0 2px rgba(0, 241, 173, 0.1); }

@media (max-width: 600px) {
    .desktop-only {
        display: none; /* Esconde o texto "Baixar PDF" no celular para economizar espaço */
    }
}

@media (max-width: 1367px) {
    .menu-top{
      margin-left: 10px;
    }
    .gsb-sidebar{
      width: 282px;
    }
    .brand{
      display: flex;
    justify-content: flex-start;
    padding-left: 12px;
    width: 235px;
    }
    .user-info-text span{
      font-size: 13px;
    }
}


@media (min-width: 1280px) {
    .mobile-nav, .floating-fab, .sidebar-overlay, .nav-arrow { 
        display: none !important; 
    }
}

@media (max-width: 1279px) {
    .floating-fab{
      display: none;
    }
    .gsb-main{
      width:100%;
    }
    .menu-item span {
      font-size: 11px;
    }
    .menu-top {
      margin-left: 0;
    }
    .brand-title{
      font-size: 12.5px;
    }
    .user-name{
      font-size:17px ;
    }
    .brand{
      padding-right: 0;
      justify-content: flex-start;
      width: 194px;
    }
    .gsb-sidebar{
      width: 235px;
    }
    .menu-top{
      gap: 4px;
    }
    .support-btn span{
      font-size: 10.5px;
    }
    .sidebar-support-title span{
      font-size:11px !important;
    }
    .sidebar-support.js-sidebar-support{
      padding-left:0;
      padding-right: 0;
    }
}


/* --- Mobile (Regras Principais) --- */
@media (max-width: 1024px) {
    
    /* 1. CORREÇÃO DE SCROLL E ALTURA (O Pulo do Gato) */
    .main {
        /* Desconta a altura do topo (65px) para não cortar o final da página */
        height: calc(100vh - 65px) !important; 
        margin-top: 0 !important;
        overflow-y: auto !important;
        display: block !important;
    }

    /* Espaço extra generoso no final para o menu não tapar nada */
    .content {
        padding-bottom: 150px !important; 
        min-height: 100% !important;
    }

    /* 2. CONFIGURAÇÃO DO TOPO */
    .topbar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: 65px !important;
        padding-right: 15px;
        padding-left: 15px;
        flex-shrink: 0 !important; /* Impede que o topo encolha */
        align-content: space-between;
    }

    /* Remove ícones antigos */
    .topbar::before, .menu-top, .titulo-desktop {
        content: none !important;
        display: none !important;
    }

    .automation-toggle.active{
        padding: 6px 10px;
    }

    .campo-input-wrap{
      display: flex;
      align-items: flex-end;
    }

    /* Logo Esquerda */
    .top-title {
        display: flex !important;
        justify-content: flex-start !important;
        width: auto !important;
        margin: 0 !important;
    }
    .brand {
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    .brand-title {
        font-size: 14px !important;
        display: block !important; 
        line-height: 1.1;
    }
    .brand-sub { display: none !important; }

    /* Perfil Direita */
    .top-actions {
        display: flex !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-left: auto !important;
    }
    .account-wrapper { display: flex !important; align-items: center !important; }
    .account-compact {
          display: flex;
          align-items: center;
          gap: 10px;
          cursor: pointer;
          padding:2px 0px 1px 22px;
          border-radius: 59px;
          transition: background-color 0.2s; 
    }
    .avatar {
        width: 38px !important;
        height: 38px !important;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Nome e Plano */
    .user-info-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        margin-right: 5px;
    }
    .account-compact { flex-direction: row !important; }
    .user-info-text {
        align-items: flex-start !important;
        margin-left: 8px !important;
        margin-right: 0 !important;
    }
    .user-name {
        display: block !important;
        font-size: 12px !important;
        max-width: 90px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
text-align: right;
    }
    .user-plan { display: block !important; font-size: 10px !important; }

    /* 3. MENU INFERIOR */
    .mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0; left: 0; width: 100%; height: 75px !important;
        background: #12141d !important;
        border-top: 1px solid #2a2d3b;
        z-index: 999999;
        overflow-x: auto;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-nav::-webkit-scrollbar { display: none; }
    .mobile-nav a {
        display: flex !important; flex-direction: column; align-items: center; justify-content: center;
        min-width: auto !important; padding: 0 18px !important; height: 100%; flex-shrink: 0 !important;
        color: #9ca3af !important; text-decoration: none !important; font-size: 10.5px !important;
        font-weight: 500; white-space: nowrap !important; 
    }
    .mobile-nav a.active {
        color: #00f1ad;
        background: linear-gradient(to top, rgba(0, 241, 173, 0.05), transparent);
        border-top: 2px solid #00f1ad; /* Linha verde no topo do item ativo */
    }
    .mobile-nav a.active::after {
        content: ""; position: absolute; top: 0; width: 30px; height: 3px;
        background: #00f1ad; border-radius: 0 0 4px 4px; box-shadow: 0 0 10px #00f1ad;
    }
    .mobile-nav a i, .mobile-nav a svg { width: 24px; height: 24px; margin-bottom: 6px; stroke: #9ca3af; }
    .mobile-nav a.active i, .mobile-nav a.active svg { stroke: #00f1ad !important; color: #00f1ad !important; transform: translateY(-3px); filter: drop-shadow(0 0 8px rgba(0, 241, 173, 0.5)); }

    /* 4. SETAS E BOTÃO BOLA */
    .nav-arrow {
        position: fixed; bottom: 0; height: 75px; width: 30px;
        display: flex; align-items: center; justify-content: center;
        z-index: 1000000; pointer-events: none; opacity: 0; transition: opacity 0.3s;
    }
    .nav-arrow i { color: #00f1ad; animation: pulseArrow 1.5s infinite; }
    .nav-arrow.arrow-left { left: 0; background: linear-gradient(to right, #12141d 0%, transparent 100%); }
    .nav-arrow.arrow-right { right: 0; background: linear-gradient(to left, #12141d 0%, transparent 100%); }
    .nav-arrow.visible { opacity: 1; }

    .floating-fab {
        display: flex; align-items: center; justify-content: center; position: fixed;
        bottom: 90px; right: 20px; width: 50px; height: 50px;
        background: #00f1ad; color: #020617; border: none; border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0, 241, 173, 0.4); z-index: 1000002 !important;
        cursor: pointer; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    .floating-fab.active {
        bottom: 25px !important; background: #ef4444; color: #fff;
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5); transform: rotate(180deg);
    }
    .floating-fab svg { width: 24px; height: 24px; stroke-width: 2.5px; transition: transform 0.5s ease; }

    /* 5. SIDEBAR */
    .gsb-sidebar {
        display: flex !important; position: fixed !important; top: 0; left: 0; bottom: 0;
        width: 280px !important; z-index: 1000001 !important;
        transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        background: #12141d !important; box-shadow: 5px 0 30px rgba(0,0,0,0.6);
    }
    .gsb-sidebar.active { transform: translateX(0) !important; }
    
    .sidebar-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(2px);
        z-index: 1000000; opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .sidebar-overlay.active { opacity: 1; visibility: visible; }
    
    @keyframes pulseArrow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
}

/* =========================================
   🔄 AVISO GLOBAL DE MODO PAISAGEM (SOMENTE CELULAR)
   ========================================= */
#landscape-warning {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #0d0f10;
    z-index: 2147483647;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

#landscape-warning svg, 
#landscape-warning i {
    color: #00f1ad;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    
    /* GARANTE QUE A ANIMAÇÃO RODE */
    animation: rotate-phone 2s infinite ease-in-out !important;
    transform-origin: center center; /* Garante o eixo de rotação no meio */
}

/* DEFINIÇÃO DA ANIMAÇÃO */
@keyframes rotate-phone {
    0%, 10% { transform: rotate(0deg); }
    40%, 60% { transform: rotate(-90deg); } /* Gira 90 graus */
    90%, 100% { transform: rotate(0deg); }
}

/* ... (Estilos internos do aviso mantidos iguais) ... */

/* LÓGICA CORRIGIDA:
   1. Orientação Paisagem
   2. Altura MÁXIMA de 500px (Isso pega celulares, mas ignora Tablets que são mais altos)
*/
@media only screen 
  and (orientation: landscape) 
  and (max-height: 500px) { 
    
    #landscape-warning {
        display: flex !important;
    }
    
    .gsb-main, .topbar, .mobile-nav, .floating-fab, .sidebar-overlay { 
        display: none !important; 
    }
    
    body, html {
        overflow: hidden !important;
        height: 100% !important;
        background-color: #0d0f10 !important;
    }
}




    .btn-filter:hover { background-color: rgba(0, 241, 173, 0.1) !important; }

    /* --- ESTADOS DOS CARDS --- */

    /* Estado Padrão (Neutro/Zerado) */
    .kpi-card, .chart-card {
        transition: all 0.3s ease;
        background-color: #1d1d1d; /* Fundo padrão */
    }

    /* Estado Negativo (Vermelho) */
    .status-negative {
        border-color: #ff4e4e !important;
        background: linear-gradient(165deg, rgba(255, 78, 78, 0.15), #12141d) !important;
        box-shadow: 0 4px 15px rgba(255, 78, 78, 0.2) !important;
    }

    /* Estado Positivo (Verde Neon) */
    .status-positive {
    background: #1d1d1d;
    /* box-shadow: 0 4px 15px rgba(0, 241, 173, 0.15) !important; */
    color: #bababa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    }

    /* Cores de Texto */
    .text-neon { color: #00f1ad !important; }
    .text-red { color: #ff4e4e !important; }
    .text-white { color: #ffffff !important; }

    /* Cores dos Ícones */
    .icon-neon {     /* stroke: #00f1ad !important; */
    color: #5cd408 !important;
    background: #0c28ee4f;
    border-radius: 22px;
    padding: 6px;}

    .icon-verde {     /* stroke: #00f1ad !important; */
    color: #5cd408 !important;
    background: #2c88084f;
    border-radius: 22px;
    padding: 6px;
    width: 36px;
    height: 36px;
}
    .icon-red {
    /* stroke: #00f1ad !important; */
    color: #fca00a !important;
    background: #cd731147;
    border-radius: 22px;
    padding: 6px;
    width: 36px;
    height: 36px;

 }
    .icon-white {     /* stroke: #00f1ad !important; */
    color: #5cd408 !important;
    background: #2c88084f;
    border-radius: 22px;
    padding: 6px;
    width: 36px;
    height: 36px; }
    .icon-branco {     /* stroke: #00f1ad !important; */
    color: #5cd408 !important;
    background: #2c88084f;
    border-radius: 22px;
    padding: 6px;
    width: 36px;
    height: 36px; }

    .icon-rosa {      /* stroke: #00f1ad !important; */
    color: #ff08ea !important;
    background: #cc20c24f;
    border-radius: 22px;
    padding: 6px;
    width: 36px;
    height: 36px;}
    .kpi-card i { transition: color 0.3s, stroke 0.3s; color: #9ca3af; }

    @media (max-width: 600px) {
        .filter-wrapper { flex-direction: column-reverse; align-items: stretch !important; gap: 15px; }
        .desktop-only { display: inline; }
        button.btn-filter { justify-content: center; width: 100%; }
        .right-filters { width: 100%; justify-content: space-between; }
        .header-select { flex: 1; }
    }

