.auth-stage { width:min(100%,760px); margin:0 auto; }
.auth-card { position:relative; display:grid; gap:22px; padding:clamp(24px,4vw,42px); border:2px solid var(--f-ink,#44166f); border-radius:var(--f-radius,28px); background:var(--f-panel,#fff8e9); color:var(--f-ink,#44166f); box-shadow:10px 12px 0 var(--f-accent,#7628ed); font-family:"Space Grotesk",Inter,system-ui,sans-serif; }
.auth-card [hidden] { display:none !important; }
.auth-card[aria-busy="true"] { cursor:progress; }
.auth-heading { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:15px; }
.auth-heading h2 { margin:7px 0 0; font-size:clamp(28px,4vw,45px); line-height:.96; letter-spacing:-.05em; }
.auth-lock, .auth-success-mark { display:grid; place-items:center; width:46px; aspect-ratio:1; border:2px solid var(--f-ink,#44166f); border-radius:13px; background:var(--f-accent,#7628ed); color:var(--f-accent-ink,#fff); font-size:22px; font-weight:1000; box-shadow:4px 4px 0 var(--f-ink,#44166f); }
.auth-intro { max-width:58ch; margin:-6px 0 0; color:var(--f-muted,#775f86); line-height:1.55; }
.auth-channel-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:6px; border:1px solid var(--f-line,#dfc68f); border-radius:16px; background:var(--f-soft,#ffeaa5); }
.auth-channel-tabs button { min-height:48px; border:0; border-radius:11px; background:transparent; color:var(--f-muted,#775f86); font-size:13px; font-weight:900; cursor:pointer; }
.auth-channel-tabs button.active { background:var(--f-ink,#44166f); color:var(--f-panel,#fff8e9); box-shadow:0 7px 20px rgba(0,0,0,.12); }
.auth-request, .auth-verify { display:grid; gap:16px; }
.auth-field, .auth-code-field { display:grid; gap:7px; }
.auth-field > span:first-child, .auth-code-field > span { color:var(--f-muted,#775f86); font-size:10px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.auth-field > input, .auth-code-field input { box-sizing:border-box; width:100%; min-height:58px; padding:0 16px; border:2px solid var(--f-line,#dfc68f); border-radius:13px; background:var(--f-bg,#ffd1a3); color:var(--f-ink,#44166f); font:inherit; font-size:17px; outline:0; }
.auth-field > input:focus, .auth-code-field input:focus { border-color:var(--f-accent,#7628ed); box-shadow:0 0 0 3px color-mix(in srgb,var(--f-accent,#7628ed) 22%,transparent); }
.auth-phone-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; align-items:end; }
.auth-phone-entry { display:grid; grid-template-columns:auto 1fr; align-items:center; min-height:58px; border:2px solid var(--f-line,#dfc68f); border-radius:13px; background:var(--f-bg,#ffd1a3); overflow:hidden; }
.auth-phone-entry:focus-within { border-color:var(--f-accent,#7628ed); box-shadow:0 0 0 3px color-mix(in srgb,var(--f-accent,#7628ed) 22%,transparent); }
.auth-phone-entry input { box-sizing:border-box; width:100%; min-width:0; min-height:54px; padding:0 14px; border:0; background:transparent; color:var(--f-ink,#44166f); font:inherit; font-size:17px; outline:0; }
.auth-country-trigger { align-self:stretch; display:flex; align-items:center; gap:8px; min-width:116px; min-height:54px; padding:0 12px; border:0; border-right:1px solid var(--f-line,#dfc68f); background:color-mix(in srgb,var(--f-panel,#fff8e9) 70%,transparent); color:var(--f-ink,#44166f); font:inherit; cursor:pointer; }
.auth-country-trigger:focus-visible { outline:3px solid color-mix(in srgb,var(--f-accent,#7628ed) 25%,transparent); outline-offset:-3px; }
.auth-country-trigger strong { font-size:15px; }
.auth-country-flag { font-size:22px; line-height:1; }
.auth-country-chevron { margin-left:auto; color:var(--f-muted,#775f86); font-size:16px; }
.auth-country-dialog { width:min(520px,calc(100% - 24px)); max-height:min(760px,calc(100dvh - 24px)); padding:0; border:3px solid var(--f-ink,#44166f); border-radius:26px; background:var(--f-panel,#fff8e9); color:var(--f-ink,#44166f); box-shadow:9px 11px 0 var(--f-accent,#7628ed); overflow:hidden; }
.auth-country-dialog::backdrop { background:rgba(20,8,24,.68); backdrop-filter:blur(5px); }
.auth-country-sheet { display:grid; grid-template-rows:auto auto minmax(0,1fr); max-height:min(750px,calc(100dvh - 30px)); }
.auth-country-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:21px 21px 14px; }
.auth-country-sheet-head h3 { margin:5px 0 0; font-size:27px; line-height:1; letter-spacing:-.04em; }
.auth-country-close { display:grid; place-items:center; width:42px; aspect-ratio:1; border:2px solid var(--f-ink,#44166f); border-radius:50%; background:var(--f-soft,#ffeaa5); color:var(--f-ink,#44166f); font-size:22px; font-weight:900; cursor:pointer; box-shadow:3px 4px 0 var(--f-hot,#ff5b79); }
.auth-country-search { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:9px; margin:0 20px 14px; padding:0 13px; border:2px solid var(--f-line,#dfc68f); border-radius:14px; background:var(--f-bg,#ffd1a3); }
.auth-country-search:focus-within { border-color:var(--f-accent,#7628ed); box-shadow:0 0 0 3px color-mix(in srgb,var(--f-accent,#7628ed) 22%,transparent); }
.auth-country-search input { min-width:0; min-height:54px; border:0; outline:0; background:transparent; color:var(--f-ink,#44166f); font:inherit; font-size:16px; }
.auth-country-options { min-height:0; overflow-y:auto; padding:0 10px 14px; }
.auth-country-option { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; width:100%; min-height:58px; padding:0 12px; border:0; border-bottom:1px solid color-mix(in srgb,var(--f-line,#dfc68f) 58%,transparent); background:transparent; color:var(--f-ink,#44166f); text-align:left; cursor:pointer; }
.auth-country-option:hover, .auth-country-option:focus-visible { background:var(--f-soft,#ffeaa5); outline:0; }
.auth-country-option strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auth-country-option > span:last-child { color:var(--f-muted,#775f86); font-weight:900; }
.auth-country-empty { padding:18px; color:var(--f-muted,#775f86); text-align:center; }
.auth-code-field { justify-items:center; text-align:center; }
.auth-code-field input { max-width:300px; min-height:78px; margin-inline:auto; font-size:34px; font-weight:1000; letter-spacing:.28em; text-align:center; text-transform:uppercase; }
.auth-marketing { display:flex; align-items:flex-start; gap:11px; padding:13px 14px; border:1px solid var(--f-line,#dfc68f); border-radius:12px; color:var(--f-muted,#775f86); font-size:11px; line-height:1.45; cursor:pointer; }
.auth-marketing input { width:18px; height:18px; margin:0; flex:0 0 auto; accent-color:var(--f-accent,#7628ed); }
.auth-primary { width:100%; justify-content:center; }
.auth-verify > p { margin:0; color:var(--f-muted,#775f86); line-height:1.5; }
.auth-verify > p strong { color:var(--f-ink,#44166f); }
.auth-secondary-actions { display:flex; flex-wrap:wrap; gap:10px 18px; }
.auth-secondary-actions button, .auth-text-button { padding:0; border:0; background:transparent; color:var(--f-ink,#44166f); font-size:11px; font-weight:900; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.auth-secondary-actions button:disabled { color:var(--f-muted,#775f86); cursor:not-allowed; }
.auth-success { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:16px; padding:19px; border:2px solid #259865; border-radius:16px; background:color-mix(in srgb,#259865 8%,var(--f-panel,#fff8e9)); }
.auth-success > div { display:grid; gap:4px; }
.auth-success > div span { color:var(--f-muted,#775f86); font-size:12px; }
.auth-success .funnel-button { grid-column:1 / -1; }
.auth-success .auth-text-button { grid-column:1 / -1; justify-self:start; }
.auth-message { min-height:18px; margin:-8px 0; color:#259865; font-size:12px; font-weight:800; }
.auth-message.error { color:#d62d2d; }
.auth-privacy { color:var(--f-muted,#775f86); font-size:10px; line-height:1.5; }
.auth-flow-back { width:min(100%,760px); margin:24px auto 0; }
.auth-dialog { width:min(760px,calc(100% - 30px)); max-height:calc(100dvh - 30px); padding:0; border:0; border-radius:var(--f-radius,28px); background:transparent; color:var(--f-ink,#44166f); overflow:visible; }
.auth-dialog::backdrop { background:rgba(20,8,24,.76); backdrop-filter:blur(5px); }
.auth-dialog .auth-card { max-height:calc(100dvh - 30px); overflow-y:auto; }
.auth-dialog-close { position:absolute; z-index:3; top:14px; right:14px; display:grid; place-items:center; width:42px; aspect-ratio:1; border:2px solid var(--f-ink,#44166f); border-radius:50%; background:var(--f-panel,#fff8e9); color:var(--f-ink,#44166f); font-size:23px; font-weight:900; cursor:pointer; box-shadow:3px 4px 0 var(--f-accent,#7628ed); }
.auth-global-login { position:fixed; z-index:900; top:16px; right:16px; min-height:44px; padding:0 20px; border:2px solid var(--f-ink,#44166f); border-radius:999px; background:var(--f-panel,#fff8e9); color:var(--f-ink,#44166f); font:900 13px/1 "Space Grotesk",Inter,system-ui,sans-serif; cursor:pointer; box-shadow:4px 5px 0 var(--f-accent,#7628ed); }
.auth-global-login-inline { position:static; z-index:auto; margin-left:auto; flex:0 0 auto; }
.auth-dashboard-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 20px; border:2px solid var(--f-ink,#44166f); border-radius:999px; background:var(--f-accent,#7628ed); color:var(--f-accent-ink,#fff); font:900 13px/1 "Space Grotesk",Inter,system-ui,sans-serif; white-space:nowrap; box-shadow:4px 5px 0 var(--f-hot,#ff5b79); }
.auth-dashboard-link[hidden] { display:none !important; }
.auth-dashboard-link-fixed { position:fixed; z-index:900; top:16px; right:122px; }
.auth-dashboard-link-inline { position:static; z-index:auto; flex:0 0 auto; }
.auth-nav-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; min-width:0; margin-left:auto; }
.site-coach > .funnel-nav .auth-nav-actions { grid-column:3; justify-self:end; margin-left:0; }
.site-coach > .funnel-nav .auth-nav-actions .funnel-button { justify-self:auto; }

@media (max-width:700px) {
  .auth-card { gap:17px; padding:22px 17px; box-shadow:6px 7px 0 var(--f-accent,#7628ed); }
  .auth-heading { grid-template-columns:38px 1fr; gap:11px; }
  .auth-lock, .auth-success-mark { width:38px; font-size:18px; box-shadow:3px 3px 0 var(--f-ink,#44166f); }
  .auth-heading h2 { font-size:31px; }
  .auth-phone-fields { grid-template-columns:1fr; }
  .auth-country-dialog { align-self:end; width:100%; max-width:none; max-height:82dvh; margin:0; border-width:3px 3px 0; border-radius:26px 26px 0 0; box-shadow:0 -8px 0 var(--f-accent,#7628ed); }
  .auth-country-sheet { max-height:82dvh; }
  .auth-code-field input { max-width:min(100%,300px); }
  .auth-success { grid-template-columns:38px 1fr; padding:15px; }
  .auth-global-login { top:10px; right:10px; min-height:40px; padding:0 15px; }
  .auth-dashboard-link { min-height:40px; padding:0 13px; font-size:11px; }
  .auth-dashboard-link-fixed { top:10px; right:105px; }
  .auth-nav-actions { gap:7px; }
  .site-coach > .funnel-nav .auth-nav-actions { grid-column:2; grid-row:1; }
  .auth-nav-actions .funnel-button { padding-inline:10px; }
}
