/*
 * Modale de soutien affichee quand un bloqueur de publicite est detecte.
 * Meme langage visuel que les modales existantes (timeline, lecteur premium) :
 * fond sombre floute, carte arrondie 24px, accent vert #8ef0a7.
 */

.br-support {
  position: fixed;
  inset: 0;
  z-index: 100800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  font-family: inherit;
}

.br-support.is-open {
  display: flex;
}

.br-support__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 24, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.br-support__card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 30px 26px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(55, 215, 106, .16), transparent 60%),
    linear-gradient(180deg, #131a2b 0, #0d1220 100%);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .55);
  text-align: center;
}

.br-support__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border: 1px solid rgba(142, 240, 167, .28);
  border-radius: 22px;
  background: rgba(55, 215, 106, .12);
  color: #8ef0a7;
}

.br-support__icon svg {
  width: 32px;
  height: 32px;
}

.br-support__eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #8ef0a7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.br-support__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.br-support__copy {
  margin: 14px 0 0;
  color: #9aa4bf;
  font-size: 14.5px;
  line-height: 1.65;
}

.br-support__status {
  display: none;
  margin: 18px 0 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.br-support__status.is-visible {
  display: block;
}

.br-support__status.is-error {
  border-color: rgba(255, 118, 118, .32);
  background: rgba(255, 90, 90, .12);
  color: #ffb3b3;
}

.br-support__status.is-success {
  border-color: rgba(142, 240, 167, .32);
  background: rgba(55, 215, 106, .12);
  color: #a9f5c0;
}

.br-support__actions {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.br-support__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}

.br-support__btn:hover {
  text-decoration: none;
}

.br-support__btn:focus-visible {
  outline: 3px solid rgba(142, 240, 167, .55);
  outline-offset: 3px;
}

.br-support__btn--primary {
  background: linear-gradient(135deg, #8ef0a7 0, #37d76a 100%);
  color: #0b1220;
}

.br-support__btn--primary:hover {
  color: #0b1220;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.br-support__btn--secondary {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #e7ecff;
}

.br-support__btn--secondary:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.br-support__btn[disabled] {
  cursor: default;
  opacity: .6;
  transform: none;
}

.br-support__later {
  margin: 16px 0 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #7c86a3;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.br-support__later:hover {
  color: #b6c0dc;
}

.br-support__later:focus-visible {
  outline: 2px solid rgba(142, 240, 167, .55);
  outline-offset: 2px;
  border-radius: 6px;
}

.br-support__note {
  margin: 18px 0 0;
  color: #6f7893;
  font-size: 12.5px;
  line-height: 1.5;
}

body.br-support-locked {
  overflow: hidden;
}

@media (max-width: 480px) {
  .br-support {
    padding: 14px 12px;
  }

  .br-support__card {
    padding: 26px 20px 22px;
    border-radius: 20px;
  }

  .br-support__title {
    font-size: 21px;
  }

  .br-support__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-support__btn {
    transition: none;
  }

  .br-support__btn--primary:hover {
    transform: none;
  }
}
