/* AI Rap Duo auth modal — intentionally scoped so it can be mounted on any page. */
.auth-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(4,18,45,.58);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
.auth-backdrop.is-open{opacity:1;visibility:visible}
.auth-modal{position:relative;width:min(100%,430px);border:1px solid rgba(8,53,170,.12);border-radius:28px;background:#fffdf6;color:#15213d;box-shadow:0 28px 80px rgba(4,20,70,.28);padding:34px 32px 30px;transform:translateY(12px) scale(.98);transition:transform .22s ease}
.auth-backdrop.is-open .auth-modal{transform:none}
.auth-close{position:absolute;top:14px;right:16px;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:#345078;font-size:24px;line-height:1;cursor:pointer}
.auth-close:hover{background:#eef3ff;color:#073dc2}
.auth-eyebrow{margin:0 0 10px;color:#e9573f;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.auth-title{margin:0;color:#073dc2;font-size:30px;line-height:1.05;letter-spacing:-.04em}
.auth-copy{margin:12px 0 24px;color:#56647e;font-size:15px;line-height:1.5}
.auth-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 18px;padding:4px;border-radius:14px;background:#edf2fb}
.auth-mode{min-height:36px;border:0;border-radius:10px;background:transparent;color:#64728b;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.auth-mode.is-active{background:#fff;color:#073dc2;box-shadow:0 2px 8px rgba(20,48,110,.12)}
.auth-google,.auth-email-submit{width:100%;min-height:48px;border-radius:14px;font:inherit;font-weight:800;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.auth-google{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #d5def0;background:#fff;color:#15213d}
.auth-google:hover,.auth-email-submit:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(7,61,194,.14)}
.auth-google-mark{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fff2bd;color:#073dc2;font-size:14px;font-weight:900}
.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#8b98ad;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#e3e8f0}
.auth-label{display:block;margin:0 0 8px;font-size:13px;font-weight:800;color:#263858}
.auth-email{width:100%;box-sizing:border-box;min-height:48px;border:1px solid #cfd9eb;border-radius:14px;padding:0 14px;background:#fff;color:#15213d;font:inherit;outline:none}
.auth-email:focus{border-color:#073dc2;box-shadow:0 0 0 4px rgba(7,61,194,.12)}
.auth-password,.auth-name,.auth-otp{width:100%;box-sizing:border-box;min-height:48px;border:1px solid #cfd9eb;border-radius:14px;padding:0 14px;background:#fff;color:#15213d;font:inherit;outline:none;margin-top:10px}
.auth-password:focus,.auth-name:focus,.auth-otp:focus{border-color:#073dc2;box-shadow:0 0 0 4px rgba(7,61,194,.12)}
.auth-email-submit{margin-top:12px;border:0;background:#073dc2;color:#fff}
.auth-footnote{margin:18px 0 0;color:#71809a;font-size:12px;line-height:1.45;text-align:center}
.auth-status{min-height:20px;margin:12px 0 0;color:#d34f36;font-size:13px;line-height:1.4}
.auth-status.is-success{color:#08794f}
.auth-status.is-error{color:#d34f36}
.auth-status.is-neutral{color:#56647e}
.auth-otp-wrap{display:none;margin-top:14px}.auth-otp-wrap.is-visible{display:block}
.rap-header-account .rap-account-menu summary{display:grid;place-items:center;width:42px;height:42px;box-sizing:border-box;border:1px solid #dccac3;border-radius:50%;padding:3px;background:#fff}
.rap-account-avatar{position:relative;display:grid;place-items:center;width:100%;height:100%;overflow:hidden;border-radius:50%;background:#f6e3db;color:#8e3022;font-size:13px;font-weight:750}
.rap-account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rap-header-account .rap-account-options{width:min(260px,calc(100vw - 64px));padding:6px;color:#27201e}
.rap-account-identity{display:grid;gap:3px;padding:8px 10px 10px;overflow-wrap:anywhere}
.rap-account-identity strong{font-size:14px}
.rap-account-identity span,.rap-account-feedback{color:#64534d;font-size:12px}
.rap-account-balance{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:10px;border-block:1px solid #eee5e1;font-size:13px}
.rap-account-balance strong{color:#8e3022;white-space:nowrap}
.rap-header-account .rap-account-options .rap-account-sign-out{margin-top:4px;cursor:pointer}
.rap-account-sign-out:focus-visible{outline:2px solid #a43524;outline-offset:-2px}
.rap-account-feedback{margin:2px 10px 8px}
@media (max-width:520px){.auth-modal{padding:30px 22px 24px;border-radius:22px}.auth-title{font-size:27px}}
