/* V128 — First Deposit Bonus popup. Local 16px em base (site html rem is ~width/10). */

.first-recharge-queue-dialog,
.van-popup:has(.first-recharge-queue-dialog),
.van-overlay:has(+ .van-popup .first-recharge-queue-dialog) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#co-fdb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(8px, env(safe-area-inset-top, 0px)) 12px max(8px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  font-size: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

#co-fdb *,
#co-fdb *::before,
#co-fdb *::after {
  box-sizing: border-box;
}

#co-fdb.is-on {
  display: flex;
}

html.co-fdb-open,
html.co-fdb-open body {
  overflow: hidden !important;
}

#co-fdb .fdb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

#co-fdb .fdb-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  max-height: 100%;
  min-height: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#co-fdb .fdb-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  min-height: 0;
  max-height: calc(100% - 44px);
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background-color: #f7f8f2;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding-top: 0;
  display: flex;
  flex-direction: column;
}

#co-fdb .fdb-banner {
  display: block;
  flex-shrink: 0;
  min-height: 132px;
  height: 132px;
  padding: 0;
  overflow: hidden;
  position: relative;
  background-color: transparent;
  z-index: 1;
}

#co-fdb .fdb-banner-art {
  position: absolute;
  top: -84px;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 0;
}

#co-fdb .fdb-card.is-fallback {
  height: auto;
  background-color: #f7f8f2;
}

#co-fdb .fdb-card.is-fallback .fdb-banner-art {
  display: none;
}

#co-fdb .fdb-card.is-fallback .fdb-banner {
  height: auto;
  min-height: 140px;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, #0f5132 0%, #1f9d55 100%);
}

#co-fdb .fdb-card.is-fallback .fdb-table-wrap {
  height: auto;
  background: #f7f8f2;
}

#co-fdb .fdb-card.is-fallback .fdb-cta {
  margin: 16px auto 18px;
}

#co-fdb .fdb-card:not(.is-fallback) .fdb-ribbon,
#co-fdb .fdb-card:not(.is-fallback) .fdb-headline,
#co-fdb .fdb-card:not(.is-fallback) .fdb-subheadline {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#co-fdb .fdb-ribbon {
  position: absolute;
  top: 10px;
  left: 0;
  background: #d9a441;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px 5px 10px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  line-height: 1;
}

#co-fdb .fdb-ribbon::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  border-width: 6px 6px 0 0;
  border-style: solid;
  border-color: #a67c2e transparent transparent transparent;
}

#co-fdb .fdb-ribbon-mark {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
}

#co-fdb .fdb-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 5;
  border: 0;
  padding: 0;
}

#co-fdb .fdb-headline {
  color: #ffffff;
  font-weight: 800;
  font-size: 32px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

#co-fdb .fdb-subheadline {
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  margin-top: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 2;
}

#co-fdb .fdb-table-wrap {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f7f8f2;
  padding: 6px 18px 0;
  margin-top: 0;
}

#co-fdb .fdb-table-header,
#co-fdb .fdb-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.2fr 1fr 0.2fr 0.85fr;
  align-items: center;
  column-gap: 0;
  padding-left: 6px;
  padding-right: 6px;
}

#co-fdb .fdb-table-header {
  font-weight: 600;
  font-size: 12px;
  color: #111111;
  padding-top: 0;
  padding-bottom: 6px;
  letter-spacing: 0;
}

#co-fdb .fdb-table-header span:last-child {
  text-align: right;
}

#co-fdb .fdb-table-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#co-fdb .fdb-row {
  margin: 0;
  min-height: 28px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 8px;
  position: relative;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

#co-fdb .fdb-row .deposit,
#co-fdb .fdb-row .reward,
#co-fdb .fdb-row .cash,
#co-fdb .fdb-row .bonus {
  font-size: 13px;
  font-weight: 600;
}

#co-fdb .fdb-row.featured {
  background-color: transparent;
  background-image: none;
  padding-top: 6px;
  padding-bottom: 6px;
  min-height: 36px;
  margin: 0;
  border-radius: 0;
}

#co-fdb .fdb-row.featured::before {
  content: '';
  position: absolute;
  left: -16px;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url('/assets/auth/okborder-DEdiPKF2.avif');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

#co-fdb .fdb-row.featured > *:not(.fdb-hot-badge) {
  position: relative;
  z-index: 1;
}

#co-fdb .fdb-row .deposit {
  font-weight: 600;
  color: #111111;
}

#co-fdb .fdb-row .reward {
  font-weight: 600;
  color: #111111;
  display: flex;
  align-items: center;
  gap: 4px;
}

#co-fdb .fdb-row .reward img {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
}

#co-fdb .fdb-row .eq,
#co-fdb .fdb-row .plus {
  color: #999999;
  font-weight: 600;
  text-align: center;
  font-size: 12px;
}

#co-fdb .fdb-row .cash {
  font-weight: 600;
  color: #1f9d55;
}

#co-fdb .fdb-row .bonus {
  font-weight: 600;
  color: #111111;
  text-align: right;
}

#co-fdb .fdb-hot-badge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#co-fdb .fdb-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  width: calc(100% - 32px);
  margin: 10px 16px 14px;
  padding: 12px 0;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #0a3d1c;
  background: linear-gradient(180deg, #7dff9a 0%, #3ad066 48%, #22c353 100%);
  box-shadow: 0 3px 0 #17a844, 0 8px 16px rgba(34, 195, 83, 0.32);
  border: none;
  cursor: pointer;
}

#co-fdb .fdb-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#co-fdb .fdb-footer {
  width: 100%;
  flex-shrink: 0;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 2px;
}

#co-fdb .fdb-mute {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

#co-fdb .fdb-mute input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  accent-color: #34c45f;
  margin: 0;
}

@media (max-width: 360px) {
  #co-fdb {
    padding-left: 8px;
    padding-right: 8px;
  }

  #co-fdb .fdb-headline {
    font-size: 28px;
  }

  #co-fdb .fdb-table-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  #co-fdb .fdb-row {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
  }
}

@media (max-height: 780px) {
  #co-fdb .fdb-banner {
    height: 118px;
    min-height: 118px;
  }

  #co-fdb .fdb-row {
    min-height: 24px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  #co-fdb .fdb-row.featured {
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  #co-fdb .fdb-cta {
    margin: 8px 16px 12px;
    padding: 11px 0;
  }
}

@media (max-height: 640px) {
  #co-fdb .fdb-banner {
    height: 96px;
    min-height: 96px;
  }

  #co-fdb .fdb-table-header {
    font-size: 11px;
    padding-bottom: 4px;
  }

  #co-fdb .fdb-row {
    min-height: 22px;
    font-size: 12px;
  }
}
