/* ═══════════════════════════════════════════════
   gate.css — account controls and paywall modal
   Standalone: does not depend on main.css tokens,
   because course pages load different stylesheets.
   ═══════════════════════════════════════════════ */

.bse-account-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bse-account-controls[hidden] {
  display: none !important;
}

.bse-account-controls--course {
  position: fixed;
  z-index: 2147482000;
  top: 12px;
  right: 14px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(17, 17, 23, .9);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bse-account-button {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 700 12px/1 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}

.bse-account-button:hover {
  transform: translateY(-1px);
}

.bse-account-button--primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 190px;
  color: #1a1205;
  background: #fbbf24;
}

.bse-account-button--primary span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bse-account-button--primary:hover {
  background: #f59e0b;
}

.bse-account-button--quiet {
  color: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}

.bse-account-button--quiet:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
}

.bse-account-user-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #178344;
  box-shadow: 0 0 0 3px rgba(23, 131, 68, .16);
}

#bse-paywall,
#bse-check-email {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bse-pw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bse-fade .18s ease;
}

.bse-pw-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #16161c;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
  text-align: center;
  animation: bse-rise .22s cubic-bezier(.2, .8, .3, 1);
}

.bse-pw-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1a1205;
  background: #fbbf24;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.bse-pw-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #f5f6fa;
}

.bse-pw-card p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .62);
}

.bse-pw-primary {
  display: block;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #1a1205;
  background: #fbbf24;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.bse-pw-primary:hover { background: #f59e0b; transform: translateY(-1px); }
.bse-pw-primary:active { transform: translateY(0); }

.bse-pw-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  font-size: 14px;
  font-family: inherit;
  color: rgba(255, 255, 255, .55);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bse-pw-link:hover { color: #fbbf24; }

.bse-pw-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, .38);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  pointer-events: auto;
  touch-action: manipulation;
}
.bse-pw-close:hover { color: #fff; background: rgba(255, 255, 255, .07); }

/* Secondary line under the main "check your inbox" copy. */
.bse-pw-note {
  font-size: 13px !important;
  color: rgba(255, 255, 255, .42) !important;
}

.bse-pw-email {
  color: #fbbf24;
  font-weight: 600;
  word-break: break-word;
}

@keyframes bse-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes bse-rise {
  from { opacity: 0; transform: translateY(14px) scale(.97) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}

@media (max-width: 480px) {
  .bse-account-controls--course {
    top: 8px;
    right: 8px;
    padding: 5px;
  }
  .bse-account-controls--course .bse-account-button {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 11px;
  }
  .bse-account-controls--course .bse-account-button--primary {
    max-width: 122px;
  }
  .bse-pw-card { padding: 30px 22px 26px; }
  .bse-pw-card h2 { font-size: 20px; }
}
