/* BetZap - Drawer V3 Premium */

#profile-drawer {
  width: min(395px, 100vw) !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 18px 17px 22px !important;
  background: linear-gradient(
    180deg, #030e0b 0%, #010a07 100%
  ) !important;
  border-left: 1px solid #163d2e !important;
  color: #f8fffc !important;
  font-family: Montserrat, system-ui, sans-serif !important;
  overflow-y: auto !important;
}

#profile-drawer,
#profile-drawer * {
  box-sizing: border-box;
}

/* Cabecalho: titulo acessivel, botao fechar a direita */
#profile-drawer .profile-drawer-top {
  display: flex !important;
  justify-content: flex-end !important;
  min-height: 32px !important;
  margin-bottom: 13px !important;
  padding: 0 !important;
}

#profile-drawer .profile-drawer-top h2 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#profile-drawer .profile-close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  border: 1px solid #244436 !important;
  background: #14251d !important;
  color: #d9f5e8 !important;
  display: grid !important;
  place-items: center !important;
}

/* Card premium da conta */
#profile-drawer .profile-identity {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: flex-start !important;
  gap: 10px 13px !important;
  position: relative !important;
  min-height: 171px !important;
  padding: 29px 16px 15px !important;
  margin: 27px 0 22px !important;
  border: 1px solid #235644 !important;
  border-radius: 20px !important;
  background: linear-gradient(
    130deg,
    #11251c 0%,
    #07140f 55%,
    #04100c 100%
  ) !important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.025),
    0 12px 28px rgba(0,0,0,.12) !important;
}

/* Avatar circular parcialmente sobreposto */
#profile-drawer .profile-identity
.profile-initials {
  position: relative !important;
  flex: 0 0 68px !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  border: 2px solid #00d7a1 !important;
  border-radius: 50% !important;
  background: radial-gradient(
    circle at 35% 20%, #10392c, #06120d 75%
  ) !important;
  color: #00e4ae !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 0 0 4px rgba(0,215,161,.06);
  transform: translateY(-9px);
}

/* Miniatura de camera - visual */
#profile-drawer .btr-drawer-camera {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #00d7a1;
  color: #002317;
  border: 2px solid #071710;
  pointer-events: none;
}

#profile-drawer .btr-drawer-camera svg {
  width: 13px;
  height: 13px;
}

/* Nome e email ao lado do avatar */
#profile-drawer .profile-identity
> :not(.profile-initials):not(.btr-drawer-tournaments) {
  min-width: 0;
}

#profile-drawer .profile-identity strong {
  display: block !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  color: #ffffff !important;
  overflow-wrap: anywhere;
}

#profile-drawer .profile-identity strong::after {
  content: '✎';
  display: inline-block;
  margin-left: 8px;
  color: #91b5a5;
  font-size: 16px;
  font-weight: 400;
  vertical-align: middle;
}

#profile-drawer .profile-identity small {
  display: block !important;
  font-size: 12px !important;
  line-height: 21px !important;
  font-weight: 400 !important;
  color: #9dbbae !important;
  overflow-wrap: anywhere;
}

/* Torneios - apenas indicativo nesta etapa */
#profile-drawer .btr-drawer-tournaments {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  margin-top: 6px;
  border: 1px solid #1d4938;
  border-radius: 13px;
  background: rgba(0,215,161,.035);
  color: #f3fff8;
}

#profile-drawer .btr-trophy-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #176a4b;
  border-radius: 10px;
  background: #0b3022;
  color: #00dfa8;
}

#profile-drawer .btr-trophy-icon svg {
  width: 19px;
  height: 19px;
}

#profile-drawer .btr-tournament-text {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

#profile-drawer .btr-tournament-text small {
  color: #75998a !important;
  font-size: 10px !important;
  white-space: nowrap;
}

/* Secao de navegacao */
#profile-drawer .btr-drawer-menu-link {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 13px !important;
  border: 1px solid #223b30 !important;
  border-radius: 12px !important;
  background: #08120e !important;
  color: #e8f4ed !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background .18s, border-color .18s;
}

#profile-drawer .btr-drawer-menu-link:hover {
  background: #0c2b20 !important;
  border-color: #167c58 !important;
}

#profile-drawer .btr-drawer-menu-link.active {
  background: #0a3426 !important;
  border-color: #177653 !important;
  color: #00dfab !important;
}

#profile-drawer .btr-drawer-menu-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

#profile-drawer
.btr-drawer-menu-link:focus-visible,
#profile-drawer
button:focus-visible {
  outline: 2px solid #00d7a1 !important;
  outline-offset: 2px;
}

/* Contadores existentes */
#profile-drawer .btr-drawer-menu-link i {
  background: #00d7a1 !important;
  color: #001b12 !important;
  border-radius: 999px;
  font-style: normal;
  font-weight: 700;
}

/* Rodape / Sair */
#profile-drawer [data-action="logout"],
#profile-drawer [data-profile-logout] {
  color: #a5c5b6 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

@media (max-width: 520px) {
  #profile-drawer {
    width: 100vw !important;
    padding: 15px 14px 20px !important;
  }

  #profile-drawer .profile-identity {
    padding: 27px 14px 14px !important;
    margin-top: 24px !important;
  }

  #profile-drawer .profile-identity strong {
    font-size: 15px !important;
  }

  #profile-drawer .btr-drawer-menu-link {
    min-height: 47px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #profile-drawer .btr-drawer-menu-link {
    transition: none;
  }
}

/* =======================================
   BETZAP DRAWER V3.1 - AJUSTE PREMIUM
   ======================================= */

/* Card principal mais sofisticado */
#profile-drawer .profile-identity {
  min-height: 184px !important;
  padding: 32px 16px 16px !important;
  margin-top: 34px !important;
  margin-bottom: 23px !important;
  overflow: visible !important;

  background:
    radial-gradient(
      ellipse at 14% 0%,
      rgba(0,215,161,.17),
      transparent 57%
    ),
    linear-gradient(
      125deg,
      #10291f 0%,
      #071b14 55%,
      #03110c 100%
    ) !important;

  border: 1px solid #187354 !important;
  border-radius: 20px !important;

  box-shadow:
    0 10px 28px rgba(0,0,0,.19),
    inset 0 1px 0 rgba(0,215,161,.08)
    !important;
}

/* Avatar maior, sobreposto ao topo */
#profile-drawer .profile-identity
.profile-initials {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  flex-basis: 76px !important;

  border: 2px solid #00e0aa !important;
  background: radial-gradient(
    circle at 30% 20%,
    #164637 0%,
    #061610 75%
  ) !important;

  color: #00e5ae !important;
  font-size: 25px !important;
  font-weight: 700 !important;

  transform: translateY(-29px) !important;
  margin-bottom: -17px !important;

  box-shadow:
    0 0 0 4px #041810,
    0 5px 20px rgba(0,0,0,.23)
    !important;

  z-index: 1;
}

/* Camera sobreposta ao avatar */
#profile-drawer .btr-drawer-camera {
  right: -6px !important;
  bottom: -5px !important;
  width: 28px !important;
  height: 28px !important;
  border: 2px solid #061b14 !important;
  background: #00dca5 !important;
  box-shadow: 0 3px 9px rgba(0,0,0,.2);
}

/* Nome e email alinhados */
#profile-drawer .profile-identity strong {
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
}

#profile-drawer .profile-identity small {
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 12px !important;
  line-height: 21px !important;
  color: #a2c3b4 !important;
}

/* Destaque da secao Torneios */
#profile-drawer .btr-drawer-tournaments {
  min-height: 59px !important;
  padding: 10px 12px !important;
  margin-top: 7px !important;
  gap: 13px !important;

  background: linear-gradient(
    90deg,
    rgba(0,215,161,.08),
    rgba(0,215,161,.025)
  ) !important;

  border: 1px solid #205844 !important;
  border-radius: 14px !important;
}

/* Icone de trofeu */
#profile-drawer .btr-trophy-icon {
  width: 40px !important;
  height: 40px !important;

  background: #0b3929 !important;
  border: 1px solid #167e5b !important;
  border-radius: 11px !important;

  color: #00e1ab !important;
}

#profile-drawer .btr-trophy-icon svg {
  width: 22px !important;
  height: 22px !important;
}

/* Texto Torneios */
#profile-drawer .btr-tournament-text {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #f4fff9 !important;
}

#profile-drawer .btr-tournament-text small {
  font-size: 10px !important;
  color: #88b09f !important;
}

/* Ajuste responsivo */
@media(max-width:520px) {
  #profile-drawer .profile-identity {
    min-height: 177px !important;
    padding: 30px 14px 14px !important;
  }

  #profile-drawer .profile-identity
  .profile-initials {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    flex-basis: 72px !important;
    transform: translateY(-27px) !important;
  }

  #profile-drawer .btr-drawer-tournaments {
    min-height: 55px !important;
  }
}
