.browser-notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100070;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 24, 40, .45);
}

.browser-notification-card {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e2e8ef;
  background: #fff;
  box-shadow: 0 18px 40px rgba(31, 48, 67, .14);
}

.browser-notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  color: #3977ed;
}

.browser-notification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.browser-notification-actions .primary-button:disabled,
.browser-notification-actions .secondary-button:disabled {
  opacity: .6;
  cursor: wait;
}

/* After allow/later: suppress React re-creating the blocking modal */
html.regab-browser-notification-prompt-hidden .browser-notification-backdrop,
.browser-notification-backdrop[hidden],
.browser-notification-backdrop[aria-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Full-page scrim: dims/blurs app content; browser chrome stays sharp */
.regab-notif-coach-scrim {
  position: fixed;
  inset: 0;
  z-index: 100075;
  pointer-events: auto;
  background: rgba(7, 21, 34, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: regab-notif-scrim-in .25s ease-out;
}

body.theme-dark .regab-notif-coach-scrim,
html.theme-dark .regab-notif-coach-scrim {
  background: rgba(3, 12, 22, .72);
}


/* Coach card: centered for all browsers */
.regab-notif-coach {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 100080;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #9fc0f5;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 21, 34, .35);
  color: #17304a;
  transform: translate(-50%, -50%);
  animation: regab-notif-coach-in-center .28s ease-out;
}


.regab-notif-coach-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #3977ed;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  animation: regab-notif-coach-pulse 1s ease-in-out infinite;
}

.regab-notif-coach-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.regab-notif-coach-body strong {
  font: 800 16px/1.25 "DM Sans", system-ui, sans-serif;
}

.regab-notif-coach-body span {
  font: 600 14px/1.4 "DM Sans", system-ui, sans-serif;
  color: #4a6278;
}

.regab-notif-coach-body em {
  font-style: normal;
  font-weight: 800;
  color: #1d5fd6;
}

.regab-notif-coach-dismiss {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #c7d7f5;
  background: #f4f8ff;
  color: #17304a;
  font: 700 13px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}

.regab-notif-coach-dismiss:hover {
  border-color: #3977ed;
  color: #1d5fd6;
  background: #eaf1ff;
}

@keyframes regab-notif-scrim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes regab-notif-coach-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes regab-notif-coach-in-center {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes regab-notif-coach-pulse {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-3px, -5px);
  }
}

  50% {
    transform: translateY(-6px);
  }
}

/* Keep card bright against dark scrim even in dark theme */
body.theme-dark .regab-notif-coach,
html.theme-dark .regab-notif-coach {
  border-color: #6b9ef0;
  background: #f7fafc;
  color: #17304a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

body.theme-dark .regab-notif-coach-body span,
html.theme-dark .regab-notif-coach-body span {
  color: #4a6278;
}

body.theme-dark .regab-notif-coach-body em,
html.theme-dark .regab-notif-coach-body em {
  color: #1d5fd6;
}

body.theme-dark .regab-notif-coach-dismiss,
html.theme-dark .regab-notif-coach-dismiss {
  border-color: #c7d7f5;
  background: #fff;
  color: #17304a;
}

body.theme-dark .regab-notif-coach-dismiss:hover,
html.theme-dark .regab-notif-coach-dismiss:hover {
  border-color: #3977ed;
  color: #1d5fd6;
}
