.beta-auth-root[hidden] { display: none; }
.beta-auth-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.beta-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, .58);
  backdrop-filter: blur(8px);
}
.beta-auth-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(880px, 92vh);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  background: #fff;
  color: #17171c;
  box-shadow: 0 30px 90px rgba(10,12,20,.34);
  padding: 28px;
}
.beta-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f6;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
}
.beta-auth-dialog h2 { margin: 0 44px 6px 0; font-size: clamp(1.45rem, 4vw, 2rem); }
.beta-auth-lede { margin: 0 0 22px; color: #656570; line-height: 1.55; }
.beta-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: #f3f3f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.beta-auth-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: transparent;
  color: #62626d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.beta-auth-tabs button[aria-selected="true"] { background: #fff; color: #17171c; box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.beta-fields { display: grid; gap: 14px; }
.beta-field { display: grid; gap: 6px; }
.beta-field label, .beta-consents legend { font-size: .84rem; font-weight: 700; }
.beta-field input, .beta-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d8df;
  border-radius: 10px;
  background: #fff;
  color: #17171c;
  padding: 10px 12px;
  font: inherit;
}
.beta-field input:focus, .beta-field select:focus, .beta-auth-dialog button:focus-visible {
  outline: 3px solid rgba(27,51,255,.24);
  outline-offset: 2px;
  border-color: #1b33ff;
}
.beta-field small, .beta-age-note { color: #73737d; line-height: 1.45; }
.beta-consents {
  border: 1px solid #e1e1e7;
  border-radius: 12px;
  padding: 14px;
  margin: 4px 0 0;
}
.beta-consents legend { padding: 0 5px; }
.beta-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  margin: 10px 0;
  font-size: .84rem;
  line-height: 1.5;
}
.beta-consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #1b33ff; }
.beta-ai-notice {
  margin: 10px 0;
  border-left: 3px solid #1b33ff;
  padding: 8px 10px;
  background: #f5f7ff;
  color: #565662;
  font-size: .84rem;
  line-height: 1.5;
}
.beta-required { color: #1b33ff; font-weight: 800; }
.beta-optional { color: #71717b; font-weight: 700; }
.beta-form-actions { display: grid; gap: 10px; margin-top: 18px; }
.beta-submit {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: #1b33ff;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.beta-submit:disabled { cursor: wait; opacity: .58; }
.beta-auth-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #9b2f28;
  font-size: .86rem;
  line-height: 1.5;
}
.beta-auth-status.is-ok { color: #246c43; }
.beta-account-control { display: inline-flex; align-items: center; gap: 8px; }
.beta-account-control button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.beta-account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beta-checkout-status {
  margin-top: 10px;
  min-height: 20px;
  font-size: .82rem;
  line-height: 1.45;
  color: #656570;
}
.beta-checkout-status.is-error { color: #a33b32; }
.beta-checkout-status.is-progress { color: #1b33ff; }
.beta-checkout-status.is-ok { color: #246c43; }
.beta-policy-note {
  margin: 18px auto 0;
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid rgba(27,51,255,.2);
  border-radius: 12px;
  background: rgba(27,51,255,.05);
  color: inherit;
  font-size: .9rem;
  line-height: 1.6;
}
.beta-auth-lock { overflow: hidden; }
#church .prices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.language-suggestion {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9000;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: #141722;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  font-size: .88rem;
}
.language-suggestion[hidden] { display: none; }
.language-suggestion a { margin-left: auto; color: #fff; font-weight: 800; white-space: nowrap; }
.language-suggestion button { border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.tools-body > .church-gate {
  width: min(680px, calc(100% - 32px));
  margin: 120px auto 48px;
  padding: 38px 28px;
  border: 1px solid rgba(120,110,90,.22);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 60px rgba(50,42,28,.09);
}
.tools-body > .church-gate[hidden] { display: none; }
.tools-body > .church-gate h1 { margin: 0 0 10px; }
.tools-body > .church-gate p { max-width: 560px; margin: 0 auto 20px; line-height: 1.7; color: #68636a; }
@media (max-width: 640px) {
  .beta-auth-root { padding: 0; align-items: end; }
  .beta-auth-dialog { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1100px) {
  #church .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #church .prices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .beta-auth-root *, .beta-checkout-status { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Google 원클릭 (2026-08-09) — 이메일 폼 위에 두되 동의 게이트는 동일하게 적용된다 */
.beta-social { margin: 14px 0 4px; }
.beta-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border: 1px solid #d7d9e0; border-radius: 10px; background: #fff;
  font: 600 15px/1 Inter, system-ui, sans-serif; color: #1f2027; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.beta-google:hover { background: #f6f7f9; border-color: #c3c6d0; }
.beta-google:disabled { opacity: .55; cursor: default; }
.beta-or {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 2px;
  font: 500 12px/1 Inter, system-ui, sans-serif; color: #8b8e99; text-transform: uppercase; letter-spacing: .06em;
}
.beta-or::before, .beta-or::after { content: ""; flex: 1; height: 1px; background: #e5e7ec; }
[data-theme="dark"] .beta-google { background: #16171c; border-color: #2c2e37; color: #e9eaee; }
[data-theme="dark"] .beta-google:hover { background: #1d1f26; }
[data-theme="dark"] .beta-or::before, [data-theme="dark"] .beta-or::after { background: #2c2e37; }
