.bzh-premium-upsell {
  background: #0f4c68;
  color: #e3ecf3;
  margin: -15px -15px;
  padding: 20px 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(15, 42, 68, 0.25);
  border: 1px solid #2a6f8a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bzh-premium-upsell-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bzh-premium-upsell-title .fa-lock {
  color: #ffd700;
}
.bzh-premium-separator {
  border: 0;
  border-top: 1px solid #2a6f8a;
  opacity: 0.5;
  margin: 10px 0 15px 0;
}
.bzh-premium-upsell-desc {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 20px;
}
.bzh-premium-upsell-desc .highlight-feature {
  font-weight: 600;
  color: #ffd700;
}
.bzh-premium-upsell-desc .highlight-trust {
  font-weight: 600;
  color: #06d6a0;
}
.bzh-premium-upsell-desc .highlight-price {
  font-weight: bold;
  color: #ffd700;
}
.bzh-premium-upsell-btn {
  display: inline-block;
  background: #06d6a0;
  color: #0f4c68;
  font-weight: 700;
  font-size: 1.2em;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 15px rgba(6, 214, 160, 0.2);
}
.bzh-premium-upsell-btn:hover {
  background: #05b98a;
  color: #fff;
  transform: scale(1.03);
}

#bordaContainer, #iaContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}
.arrival-item {
  display: inline-block;
  vertical-align: top;
  position: relative;
  text-align: center;
  padding: 0;
  width: 70px;
  height: 70px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}
.horse-number {
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1;
  padding-top: 7px;
  height: 45px;
  box-sizing: border-box;
}
.horse-odds, .horse-score, .horse-percent {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 4px;
  font-weight: 400;
  text-align: right;
}
.horse-odds, .horse-percent {
  font-size: 0.7em;
  color: #555;
}
.horse-score {
  font-size: 0.7em;
  color: #555;
}
.arrival-item.win-1, .arrival-item.win-2, .arrival-item.win-3, .arrival-item.win-4, .arrival-item.win-5 {
  background-color: #00838F;
  border-color: #006064;
  color: white;
}
.arrival-item[class*="win-"] .pos-bubble {
    display: block;
}
.pos-bubble {
    position: absolute;

    background-color: #2D3748;
    color: white;
    font-size: 0.75em;
    font-weight: 700;
    width: 24px;
    height: 20px;

    display: none;
    align-items: center;
    justify-content: center;

}
.arrival-item.win-1 { background-color: #FBC02D; border-color: #F9A825; color: #000; }
.arrival-item.win-2 { background-color: #E0E0E0; border-color: #BDBDBD; color: #000; }
.arrival-item.win-3 { background-color: #D28C54; border-color: #BF723A; color: white; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.button-row button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: #ffffff;
}
.button-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#btnCustomBordaConfig, #btnManageBordaConfig {
  background-color: #00838F;
}
#btnCustomBordaConfig:hover, #btnManageBordaConfig:hover {
  background-color: #006064;
}
#btnBordaDetails, #btnToggleBordaDisplay, #btnExcel, #btnCopyProno, #togglePronostic {
  background-color: #4A5568;
  border-color: #2D3748;
}
#btnBordaDetails:hover, #btnToggleBordaDisplay:hover, #btnExcel:hover, #btnCopyProno:hover, #togglePronostic:hover {
  background-color: #2D3748;
}
#btnCopyProno:disabled {
  background-color: #2F855A;
  color: #FFF;
  cursor: default;
  transform: none;
  box-shadow: none;
}

@keyframes bzbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#bordaConfigModal.bzb-open {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 68, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bzbFadeIn 0.2s ease-out;
}
#bordaConfigModal .bzb-modal-dialog {
  width: 95vw;
  max-width: 540px;
}
#bordaConfigModal .bzb-modal-content {
  background: #0f4c68;
  color: #e3ecf3;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #2a6f8a;
  overflow: hidden;
}
#bordaConfigModal .bzb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a6f8a;
}
#bordaConfigModal .bzb-modal-title {
  font-size: 1.15em;
  font-weight: 600;
  color: #fff;
}
#bordaConfigModal .bzb-modal-close {
  font-size: 1.8em;
  line-height: 1;
  color: #fff;
  opacity: 0.7;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
#bordaConfigModal .bzb-modal-close:hover {
  opacity: 1;
  transform: scale(1.1);
}
#bordaConfigModal .bzb-modal-body {
  padding: 20px;
}
#bordaConfigList ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
}
#bordaConfigList li {
  margin-bottom: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
}
#bordaConfigList li[style*="background:#095074"] {
  background: #00838F !important;
}
#bordaConfigList li > span:first-child {
  flex: 1;
  font-weight: 500;
}
#bordaConfigModal .bzb-form-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
#bordaConfigName.bzb-input {
  flex: 1;
  font-size: 1em;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #2a6f8a;
  background: #0d3c50;
  color: #fff;
}
#bordaConfigName.bzb-input:focus {
  outline: none;
  border-color: #06d6a0;
  box-shadow: 0 0 0 2px rgba(6, 214, 160, 0.3);
}
#btnSaveConfigNow.bzb-btn-save {
  background-color: #06d6a0;
  color: #0f4c68;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}
#btnSaveConfigNow.bzb-btn-save:hover {
  background-color: #36e4b5;
}
#bordaConfigSavedMsg.bzb-saved-msg {
  display: none;
  margin-top: 8px;
  color: #06d6a0;
  font-size: 0.9em;
}
@media (min-width: 600px) {
  #bordaConfigModal .bzb-modal-dialog {
    max-width: 560px;
  }
}
