/**
 * First-visit beta welcome modal — scoped only.
 * Does not touch custom.css / footer.php.
 */

body.cotinder-beta-welcome-open {
  overflow: hidden !important;
}

.cotinder-beta-welcome {
  position: fixed;
  inset: 0;
  z-index: 10090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cotinder-beta-welcome[hidden] {
  display: none !important;
}

.cotinder-beta-welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.5);
}

.cotinder-beta-welcome__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 8px));
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(45, 45, 45, 0.22);
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  color: var(--main-color, #2d2d2d);
}

.cotinder-beta-welcome__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #a3a3a3;
  cursor: pointer;
  padding: 4px 8px;
}

.cotinder-beta-welcome__close:hover,
.cotinder-beta-welcome__close:focus-visible {
  color: var(--main-color, #2d2d2d);
}

.cotinder-beta-welcome__title {
  margin: 0 28px 14px 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--main-color, #2d2d2d);
}

.cotinder-beta-welcome__body {
  display: grid;
  gap: 12px;
}

.cotinder-beta-welcome__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4a4a;
}

.cotinder-beta-welcome__viral-promo {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d 0%, #fd7728 45%, #f25c1a 100%);
  box-shadow: 0 10px 28px rgba(253, 119, 40, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cotinder-beta-welcome__viral-promo:hover,
.cotinder-beta-welcome__viral-promo:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(253, 119, 40, 0.55);
  color: #fff;
  outline: none;
}

.cotinder-beta-welcome__viral-promo-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
}

.cotinder-beta-welcome__viral-promo-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.cotinder-beta-welcome__viral-promo-text {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
}

.cotinder-beta-welcome__viral-promo-cta {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cotinder-beta-welcome__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.cotinder-beta-welcome__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cotinder-beta-welcome__btn--tg {
  color: #fff;
  background: #2aabee;
  border: 1px solid #2aabee;
}

.cotinder-beta-welcome__btn--tg:hover,
.cotinder-beta-welcome__btn--tg:focus-visible {
  background: #229ed9;
  border-color: #229ed9;
  color: #fff;
  opacity: 0.96;
}

.cotinder-beta-welcome__btn--ok {
  color: #fff;
  background: #fd7728;
  border: 1px solid #fd7728;
}

.cotinder-beta-welcome__btn--ok:hover,
.cotinder-beta-welcome__btn--ok:focus-visible {
  background: #e86a20;
  border-color: #e86a20;
  color: #fff;
}

@media (max-width: 575.98px) {
  .cotinder-beta-welcome {
    padding: 10px;
    align-items: flex-end;
  }

  .cotinder-beta-welcome__panel {
    width: 100%;
    max-height: min(88vh, 680px);
    padding: 22px 16px 16px;
    border-radius: 16px 16px 12px 12px;
  }

  .cotinder-beta-welcome__title {
    font-size: 18px;
    margin-right: 24px;
  }

  .cotinder-beta-welcome__body p {
    font-size: 14px;
  }

  .cotinder-beta-welcome__btn {
    min-height: 46px;
    font-size: 14px;
    padding: 11px 12px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cotinder-beta-welcome__panel {
    width: min(520px, calc(100% - 24px));
  }
}
