.auth-modal-layer { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 18px; }
.auth-modal-layer[hidden] { display: none; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 24, 38, .56); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.auth-modal { position: relative; z-index: 1; width: min(100%, 420px); max-height: min(700px, calc(100dvh - 32px)); overflow: auto; padding: 29px 22px 20px; border: 1px solid #e8e4f5; border-radius: 14px; color: var(--profile-ink, #282b31); background: var(--profile-surface, #fff); box-shadow: 0 28px 68px rgba(29, 25, 52, .24); }
.auth-modal-close { position: absolute; top: 10px; right: 10px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #969ba5; background: transparent; font-size: 23px; line-height: 1; }
.auth-modal-close:hover { color: var(--profile-ink, #282b31); background: #f1f2f5; }
.auth-kicker { margin: 0; color: var(--profile-primary, #7356dc); font-size: 8px; font-weight: 850; letter-spacing: .13em; line-height: 1.2; }
.auth-modal h2 { margin: 8px 0 0; color: var(--profile-ink-strong, #17191e); font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.08; }
.auth-intro { margin: 9px 0 20px; color: var(--profile-muted, #7c828e); font-size: 11px; line-height: 1.45; }
.auth-label { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; color: var(--profile-ink, #282b31); font-size: 11px; font-weight: 760; }
.auth-label input { width: 100%; min-height: 43px; padding: 0 11px; border: 1px solid #e1e3e9; border-radius: 8px; outline: 0; color: var(--profile-ink, #282b31); background: #fafbfc; font-size: 13px; letter-spacing: .02em; }
.auth-label input:focus { border-color: #bfb2f3; box-shadow: 0 0 0 3px rgba(115, 86, 220, .11); }
.auth-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px; align-items: end; gap: 9px; }
.auth-send-code { min-height: 43px; margin-top: 14px; border: 1px solid #d9d1f6; border-radius: 8px; color: var(--profile-primary-deep, #5740b8); background: #faf9ff; font-size: 10px; font-weight: 850; }
.auth-send-code:hover:not(:disabled) { background: var(--profile-primary-soft, #f0edff); }
.auth-send-code:disabled { cursor: not-allowed; color: #a9a6b8; background: #f3f3f6; }
.auth-config-hint { min-height: 14px; margin: 9px 0 0; color: var(--profile-muted-light, #a5aab3); font-size: 9px; line-height: 1.35; }
.auth-status { min-height: 18px; margin: 8px 0 0; color: var(--profile-primary-deep, #5740b8); font-size: 10px; line-height: 1.4; }
.auth-status.error { color: #b35454; }
.auth-status.success { color: var(--profile-green, #14885a); }
.auth-submit { width: 100%; min-height: 43px; margin-top: 8px; border-radius: 8px; color: #fff; background: var(--profile-primary, #7356dc); box-shadow: 0 7px 15px rgba(115, 86, 220, .2); font-size: 11px; font-weight: 850; }
.auth-submit:hover:not(:disabled) { background: var(--profile-primary-deep, #5740b8); }
.auth-submit:disabled { cursor: wait; opacity: .68; }
.auth-legal { margin: 16px 0 0; color: var(--profile-muted-light, #a5aab3); font-size: 9px; line-height: 1.5; text-align: center; }
.auth-legal a { color: var(--profile-primary-deep, #5740b8); font-weight: 750; }
@media (max-width: 430px) {
  .auth-modal-layer { padding: 12px; }
  .auth-modal { padding-inline: 17px; }
  .auth-code-row { grid-template-columns: minmax(0, 1fr) 96px; }
}
@media (prefers-reduced-motion: reduce) { .auth-modal { animation: none; } }

.auth-modal button, .account-checkout button { cursor: pointer; font: inherit; }
.auth-modal button:focus-visible, .account-checkout button:focus-visible { outline: 2px solid #7356dc; outline-offset: 3px; }
.auth-label input { box-sizing: border-box; font-size: 16px; min-width: 0; }
.auth-intro, .auth-status { font-size: 13px; line-height: 1.5; }
.auth-private-note { margin: 12px 0; color: #6b6476; font-size: 12px; line-height: 1.5; }
.account-save-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-save-actions .auth-submit { margin: 0; }
.auth-secondary { min-height: 43px; border: 1px solid #d9d1f6; border-radius: 8px; background: #faf9ff; color: #5740b8; }
.auth-switch { display: block; min-height: 44px; margin: 8px auto 0; padding: 8px; border: 0; color: #5740b8; background: transparent; text-decoration: underline; font-size: 13px; }
.account-checkout { padding: 12px 0; border-block: 1px solid #ece8f2; text-align: left; }
.account-checkout p { margin: 0; }
.account-checkout strong { display: block; overflow-wrap: anywhere; color: #494151; font: 12px/1.5 ui-monospace, monospace; }
.account-checkout small { display: block; margin-top: 4px; color: #71697c; font-size: 12px; line-height: 1.5; }
.account-checkout > div { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.account-checkout button { min-height: 36px; padding: 5px 0; border: 0; color: #6243c1; background: transparent; font-size: 12px; text-decoration: underline; }

