/* ===============================
   MOBILE PINBET - HEADER COMPACTO (CORRIGIDO)
   =============================== */

   @media (max-width: 768px) {
    body {
      margin: 0 !important;
      padding: 0 !important;
      background: #000 !important;
      overflow-x: hidden !important;
    }
  
    .main-content {
      background: #000 !important;
      padding-top: calc(35px + 56px + 35px) !important; /* promo + header + menu */
    }
  
  /* 🔹 Promo bar verde */
  .promo-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important; /* ✅ ocupa a viewport inteira */
    height: 40px !important;
    background: #99ff00 !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* ✅ centraliza conteúdo */
    gap: 12px !important; /* ✅ espaço entre texto e botão */
    padding: 0 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    z-index: 1100 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  }
  
  /* Botão roxo "Indicar" */
  .promo-bar .btn-indicar {
    background: #5c1080 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 5px 16px !important;
    font-size: 13px !important;
    border: none !important;
    font-weight: 600 !important;
  }
  
  /* Botão "X" no canto direito */
  .promo-bar .btn-close-promo {
    position: absolute !important;
    right: 15px !important;
    top: 8px !important;
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    font-size: 20px !important;
    cursor: pointer !important;
    line-height: 1 !important;
  }
  
    /* 🔹 Header compacto */
    .header {
      position: fixed !important;
      top: 35px !important;
      left: 0 !important;
      right: 0 !important;
      height: 56px !important;
      background: #2a004a !important;
      z-index: 1090 !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start !important;
      align-items: stretch !important;
      box-shadow: 0 2px 4px rgba(0,0,0,0.25) !important;
    }
  
    .header-content {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding: 10px 15px !important;
      height: 56px !important;
    }
  
    .logo-text {
      font-size: 22px !important;
      font-weight: 700 !important;
      color: #fff !important;
    }
  
    .logo-exclamation {
      color: #99ff00 !important;
    }
    
    .logo-image {
      height: 35px !important;
      width: auto !important;
      max-width: 100px !important;
      object-fit: contain !important;
    }
  
    .header-actions {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
  
    .notification-icon,
    .gift-icon {
      width: 30px !important;
      height: 30px !important;
      font-size: 16px !important;
      color: #fff !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
  
    .btn-register {
      background: #99ff00 !important;
      color: #000 !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      padding: 6px 12px !important;
      border-radius: 6px !important;
      border: none !important;
    }
  
    .btn-login {
      background: transparent !important;
      color: #fff !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      padding: 6px 12px !important;
      border: 1px solid #99ff00 !important;
      border-radius: 6px !important;
    }
  
    /* 🔹 Menu roxo */
    .mobile-nav {
      position: fixed !important;
      top: calc(35px + 56px) !important;
      height: 35px !important;
      background: #2a004a !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-evenly !important;
      width: 100% !important;
      border-top: 1px solid rgba(255,255,255,0.1) !important;
      border-bottom: 1px solid rgba(255,255,255,0.1) !important;
      z-index: 1080 !important;
    }
  
    .mobile-nav-list {
      display: flex !important;
      list-style: none !important;
      justify-content: space-evenly !important;
      align-items: center !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 8px !important;
    }
  
    .mobile-nav-link {
      font-size: 12px !important;
      color: #fff !important;
      text-decoration: none !important;
      text-transform: uppercase !important;
      border-bottom: 2px solid transparent !important;
      font-weight: 600 !important;
      flex: 1 !important;
      text-align: center !important;
    }
  
    .mobile-nav-link.active,
    .mobile-nav-link:hover {
      color: #99ff00 !important;
      border-bottom-color: #99ff00 !important;
    }
  
    /* 🔹 Esconde nav desktop apenas em telas pequenas */
    .nav,
    .nav-list {
      display: none !important;
    }
  }
  
  /* ⚠️ IMPORTANTE: não esconder nada acima de 769px */
  @media (min-width: 769px) {
    /* mostra header desktop normalmente */
    .header,
    .header-content,
    .nav,
    .nav-list {
      display: flex !important;
    }
  
    /* oculta apenas o menu e header mobile */
    .mobile-nav {
      display: none !important;
    }
  
    /* mantém promo-bar visível no desktop */
    .promo-bar {
      display: flex !important;
    }
  }
  
  /* ==============================
     🔹 MODO AUTENTICADO - MOBILE
     ============================== */
  
  @media (max-width: 768px) {
  
    /* Botão Depositar */
    .btn-deposit-mobile {
      background: #99ff00 !important;
      color: #000 !important;
      font-weight: 700 !important;
      border: none !important;
      border-radius: 6px !important;
      padding: 6px 12px !important;
      font-size: 13px !important;
      white-space: nowrap !important;
    }
  
    /* Container nome + saldo */
    .user-info-mobile {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      justify-content: center !important;
      background: transparent !important;
      padding-left: 8px !important;
    }
  
    /* Nome */
    .user-name-mobile {
      color: #fff !important;
      font-weight: 600 !important;
      font-size: 13px !important;
      line-height: 1.2 !important;
    }
  
    /* Linha de saldo + ícone */
    .user-balance-row {
      display: flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
  
    .user-balance-mobile {
      color: #99ff00 !important;
      font-size: 12px !important;
      font-weight: 700 !important;
    }
  
    /* Ícone de usuário */
    .user-avatar-mobile {
      width: 24px !important;
      height: 24px !important;
      border-radius: 50% !important;
      background: #99ff00 !important;
      color: #2a004a !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 13px !important;
      margin-left: 4px !important;
    }
  
    /* Ajustar header layout autenticado */
    .header-actions {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-end !important;
      gap: 8px !important;
    }
  }
  
   /* ===================================================== */
  /* 🔹 DROPDOWN USUÁRIO - PINBET (DESKTOP + MOBILE FIX) */
  /* ===================================================== */
  .user-dropdown {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    width: 280px;
    background: #5300a6;
    border-radius: 12px;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }
  
  /* Ativo (visível) */
  .user-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Header do dropdown */
  .user-dropdown .dropdown-header {
    text-align: center;
    padding: 20px 10px 10px;
    background: #6a00d6;
  }
  
  .user-dropdown .dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #99ff00;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 10px;
  }
  
  /* Nome e saldos */
  .user-dropdown .dropdown-name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
  }
  
  .user-dropdown .dropdown-balances {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: #5a00bf;
  }
  
  .user-dropdown .balance-col {
    text-align: center;
  }
  
  .user-dropdown .balance-label {
    display: block;
    font-size: 13px;
    opacity: 0.8;
  }
  
  .user-dropdown .balance-value {
    color: #99ff00;
    font-weight: 600;
    font-size: 14px;
  }
  
  /* Botões Depositar / Sacar */
  .user-dropdown .dropdown-buttons {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .user-dropdown .btn-depositar,
  .user-dropdown .btn-sacar {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
  }
  
  .user-dropdown .btn-depositar:hover,
  .user-dropdown .btn-sacar:hover {
    background: #99ff00;
    color: #000;
    border-color: #99ff00;
  }
  
  /* Ícones e links */
  .user-dropdown .dropdown-links {
    padding: 10px 15px;
  }
  
  .user-dropdown .link-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .user-dropdown .link-row div {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
  }
  
  .user-dropdown .link-row div:hover {
    color: #99ff00;
  }
  
  /* Botão sair */
  .user-dropdown .dropdown-footer {
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .user-dropdown .btn-sair {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .user-dropdown .btn-sair:hover {
    background: #ff3333;
    border-color: #ff3333;
    color: #fff;
  }
  
  /* ===================================================== */
  /* 🔸 MOBILE FIX (PAINEL TOTAL CENTRALIZADO) */
  /* ===================================================== */
  @media (max-width: 768px) {
    .user-dropdown {
      position: fixed;
      top: 70px;
      left: 10px;
      right: 10px;
      width: auto;
      height: auto;
      border-radius: 12px;
      background: #5300a6;
      z-index: 9999;
      max-height: calc(100vh - 80px);
      overflow-y: auto;
      animation: slideDown 0.25s ease;
    }
  
    .user-dropdown.active {
      display: block;
      opacity: 1;
    }
  
    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-15px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    .user-dropdown .dropdown-links {
      display: flex;
      flex-direction: column;
    }
  
    .user-dropdown .link-row {
      flex-direction: column;
      gap: 6px;
    }
  
    .user-dropdown .link-row div {
      flex: none;
      justify-content: flex-start;
      font-size: 15px;
    }
  
    .user-dropdown .dropdown-footer {
      padding-bottom: 20px;
    }
  }