/* Neon Poker v0.9.46 — targeted requested changes only. */

/* Exact requested top-bar order after the brand: sign out, profile, chips, gold, social, shop, home, settings, volume, help. */
.topbar-v046 {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
}
.topbar-v046 .header-actions-v046 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.topbar-v046 .account-area:not(.hidden) { display: contents !important; }
.topbar-v046 .account-area.hidden { display: none !important; }
.topbar-v046 .logout-btn { order: 1 !important; }
.topbar-v046 .account-badge { order: 2 !important; }
.topbar-v046 .header-chip-pill { order: 3 !important; }
.topbar-v046 .header-gold-pill { order: 4 !important; }
.topbar-v046 #socialToggle { order: 5 !important; }
.topbar-v046 #globalShopButton { order: 6 !important; }
.topbar-v046 #homeNavigationButton { order: 7 !important; }
.topbar-v046 #accountSettingsButton { order: 8 !important; }
.topbar-v046 #soundToggle { order: 9 !important; }
.topbar-v046 #volumePopover { order: 9 !important; }
.topbar-v046 #helpToggle { order: 10 !important; }
.topbar-v046 .header-bet-pill { order: 11 !important; }
.topbar-v046 .header-shoe-pill { order: 12 !important; }

/* Social is the only rail whose overlay must be visually transparent. */
#socialOverlay,
#socialOverlay.social-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
#socialOverlay .social-backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Poker bet range above the centered minus / Bet / plus row. */
#pokerApp .poker-raise-control-v046 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: 8px !important;
}
#pokerApp .poker-raise-control-v046 > label {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
#pokerApp .poker-raise-range-v046 { width: 100% !important; min-width: 0 !important; }
#pokerApp .poker-raise-buttons-v046 {
  display: grid !important;
  grid-template-columns: 40px minmax(112px, 160px) 40px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}
#pokerApp .poker-raise-buttons-v046 #pokerRaiseButton {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  justify-self: center !important;
}
#pokerApp .poker-raise-buttons-v046 .poker-raise-step {
  justify-self: center !important;
  margin: 0 !important;
}

/* Structured private Poker rule groups; no unrelated modal changes. */
.v046-private-poker-form { display: grid; gap: 16px; }
.v046-rule-group {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(0,0,0,.14);
}
.v046-rule-group > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.v046-rule-group > header > span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-weight: 900;
  background: rgba(125,211,252,.14);
  border: 1px solid rgba(125,211,252,.3);
}
.v046-rule-group h3 { margin: 0; }
.v046-rule-group p { margin: 4px 0 0; opacity: .7; font-size: .82rem; }
.v046-rule-group .v040-config-grid { margin-bottom: 0; }
.v046-rule-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Public profile level and Developer level control. */
.player-profile-panel .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.admin-level-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.admin-level-tools label { display: grid; gap: 5px; min-width: 92px; }
.admin-level-tools label > span { font-size: .68rem; font-weight: 900; text-transform: uppercase; opacity: .7; }
.admin-level-tools input { width: 92px; min-width: 0; }

/* Redeem codes now use the same accordion spacing as other Developer sections. */
#adminCodesPanel > summary { cursor: pointer; }
#adminCodesPanel > .developer-collapsible-content { padding-top: 16px; }

@media (max-width: 900px) {
  .topbar-v046 { grid-template-columns: 1fr !important; }
  .topbar-v046 .brand-wrap { grid-column: 1 !important; }
  .topbar-v046 .header-actions-v046 { grid-column: 1 !important; justify-content: flex-start !important; }
}
@media (max-width: 650px) {
  .v046-rule-toggle-grid { grid-template-columns: 1fr; }
  .player-profile-panel .profile-stats { grid-template-columns: 1fr !important; }
  #pokerApp .poker-raise-buttons-v046 { grid-template-columns: 36px minmax(100px, 1fr) 36px !important; }
}
