/* Welcome / bonus details modal */
.popup.popup--welcome-offer {
  width: min(380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
}

.popup.popup--welcome-offer.active {
  padding: 0 !important;
}

/* Kill .popup--about p { text-align: justify } and other inherited skew */
.popup.popup--welcome-offer p,
.popup.popup--about.popup--welcome-offer p {
  text-align: left !important;
  text-justify: auto;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  letter-spacing: normal;
  word-spacing: normal;
  margin: 0;
}

.welcome-offer-modal.wom {
  --wom-muted: rgba(255, 255, 255, 0.55);
  --wom-faint: rgba(255, 255, 255, 0.38);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wom__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}

.wom__kicker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wom__title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wom-faint);
}

.wom__close.close {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wom-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}
.wom__close.close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero — single left axis, no glow ball */
.wom__hero {
  position: relative;
  text-align: left;
  padding: 12px 14px 14px;
}
.wom__hero::before {
  display: none;
}
.wom__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wom__badge--available {
  color: #04140a;
  background: var(--global-brand, #00b352);
}
.wom__badge--used {
  color: var(--wom-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup.popup--welcome-offer .wom__percent,
.wom__percent {
  position: relative;
  margin: 0 !important;
  font-family: inherit;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05 !important;
  color: #fff !important;
  text-align: left !important;
}
.wom__percent span {
  color: var(--global-lime, #7dff9a);
}

.popup.popup--welcome-offer .wom__sub,
.wom__sub {
  position: relative;
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

.popup.popup--welcome-offer .wom__offer-name,
.wom__offer-name {
  position: relative;
  margin: 4px 0 0 !important;
  font-size: 12px !important;
  font-weight: 600;
  color: var(--wom-faint) !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* Stats — equal cells, stable baseline */
.wom__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 14px;
}
.wom__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 64px;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}
.wom__stat-val {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wom__stat-val--accent {
  color: var(--global-lime, #7dff9a);
}
.wom__stat-lab {
  display: block;
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wom-faint);
  line-height: 1.2;
}

/* Detail rows */
.wom__rails {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 0;
}
.wom__rail {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.wom__rail-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 179, 82, 0.14);
  color: var(--global-lime, #7dff9a);
  font-size: 13px;
}
.wom__rail-ico--wager {
  background: rgba(245, 197, 66, 0.16);
  color: #f5c542;
}
.wom__rail-ico svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.wom__rail-body {
  min-width: 0;
}
.wom__rail-title {
  display: block;
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.wom__rail-meta {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--wom-muted);
  line-height: 1.35;
}
.wom__rail-meta strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.popup.popup--welcome-offer .wom__hint,
.wom__hint {
  margin: 12px 14px 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 179, 82, 0.08);
  border: 1px solid rgba(0, 179, 82, 0.22);
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--wom-muted) !important;
  font-weight: 500;
  text-align: left !important;
  text-wrap: pretty;
}

.wom__foot {
  padding: 12px 14px 14px;
}
.welcome-offer-modal__btn,
.wom__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 13px 16px !important;
  border: none;
  border-radius: 12px !important;
  background: var(--global-brand, #00b352) !important;
  color: #04140a !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease;
  box-sizing: border-box;
}
.welcome-offer-modal__btn:hover,
.wom__cta:hover {
  background: var(--global-lime, #7dff9a) !important;
  transform: none;
  color: #04140a !important;
}

/* Static fallback before JS hydrate */
.popup.popup--welcome-offer .wrapper-root-lending span,
.popup.popup--welcome-offer .list-root-title,
.popup.popup--welcome-offer .total-right-info,
.popup.popup--welcome-offer .total-left-info {
  color: rgba(255, 255, 255, 0.9) !important;
}
.popup.popup--welcome-offer .wrapper-root-lending p,
.popup.popup--welcome-offer .info-using {
  color: var(--wom-muted, rgba(255, 255, 255, 0.55)) !important;
  text-align: left !important;
}
.popup.popup--welcome-offer .table-rules-dep {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.popup.popup--welcome-offer .btn-get-modal-dep {
  background: var(--global-brand, #00b352) !important;
  color: #04140a !important;
  font-weight: 800;
  border-radius: 12px;
}

@media (max-width: 420px) {
  .wom__stats {
    gap: 5px;
  }
  .wom__stat {
    min-height: 58px;
    padding: 8px 4px;
  }
  .wom__stat-val {
    font-size: 13px;
  }
  .popup.popup--welcome-offer .wom__percent,
  .wom__percent {
    font-size: 34px;
  }
}
