/* Quick-Register modal — email-only signup gate. Rendered globally for anon
   users; opened by any [data-quick-register] trigger. */

.qrm[hidden] { display: none; }
.qrm {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--modal-dur) var(--modal-ease);
}
.qrm.qrm-in { opacity: 1; }
body.qrm-open { overflow: hidden; }

.qrm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.qrm-panel {
    position: relative;
    background: #FFFFFF;
    border-radius: 22px;
    box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.25);
    width: calc(100% - 32px);
    max-width: 460px;
    /* dvh = "dynamic viewport height" — shrinks when iOS soft keyboard pops up,
       preventing the panel from being clipped. Fallback to vh for older browsers. */
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 32px 32px 24px;
    transform: translateY(10px) scale(.985);
    transition: transform var(--modal-dur) var(--modal-ease);
}
.qrm.qrm-in .qrm-panel { transform: none; }

.qrm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    flex: 0 0 36px;
    border: 0;
    background: transparent;
    color: #98A2B3;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .14s ease, color .14s ease;
}
.qrm-close:hover { background: #F2F4F7; color: #475467; }

.qrm-h {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #101828;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.qrm-sub {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: #667085;
    line-height: 1.55;
    margin: 0 0 22px;
}
.qrm-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #D0D5DD;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #344054;
    text-decoration: none;
    transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
    margin-bottom: 18px;
    min-height: 48px;
}
.qrm-google:hover {
    border-color: #98A2B3;
    box-shadow: 0 4px 10px -2px rgba(16, 24, 40, 0.08);
    background: #FAFBFC;
}
.qrm-divider {
    position: relative;
    text-align: center;
    margin: 0 0 18px;
}
.qrm-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #EAECF0;
}
.qrm-divider span {
    position: relative;
    display: inline-block;
    background: #FFFFFF;
    padding: 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #98A2B3;
}

.qrm-trust {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #FAFBFC;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #475467;
    text-align: center;
    letter-spacing: 0.005em;
}
.qrm-trust strong { color: #101828; font-weight: 700; }

.qrm-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}
.qrm-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #D0D5DD;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #101828;
    transition: border-color .14s ease, box-shadow .14s ease;
}
.qrm-input::placeholder { color: #98A2B3; }
.qrm-input:focus {
    outline: none;
    border-color: #7F56D9;
    box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.12);
}

.qrm-error {
    margin: 10px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #D92D20;
    background: #FEF3F2;
    border: 1px solid #FEE4E2;
    padding: 8px 12px;
    border-radius: 8px;
}
.qrm-error a { color: #B42318; font-weight: 600; }

.qrm-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    background: linear-gradient(135deg, #FF7A5C 0%, #F43F5E 100%);
    color: #FFFFFF;
    border: 0;
    border-radius: 12px;
    padding: 14px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.005em;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
    min-height: 48px;
}
.qrm-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -4px rgba(244, 63, 94, 0.5);
}
.qrm-cta:disabled { cursor: wait; }
.qrm-cta-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.qrm-cta-spinner[hidden] { display: none; }

.qrm-checks {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #475467;
}
.qrm-checks li {
    position: relative;
    padding-left: 18px;
}
.qrm-checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #12B76A;
    font-weight: 800;
}

.qrm-foot {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #F2F4F7;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #667085;
    text-align: center;
}
.qrm-foot a {
    color: #7F56D9;
    font-weight: 600;
    text-decoration: none;
}
.qrm-foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .qrm-panel { padding: 24px 20px 18px; max-width: 100%; }
    .qrm-h { font-size: 22px; }
}
