.customer-auth-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(18px);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:3000;
}

.customer-auth-overlay.show{
    display:flex;
}

.customer-auth-modal{
    width:min(720px,96vw);
    max-height:92vh;
    overflow-y:auto;
    border-radius:34px;
    padding:30px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 36%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:0 45px 140px rgba(0,0,0,.42);
    position:relative;
    animation:customerAuthIn .32s ease;
}

@keyframes customerAuthIn{
    from{
        opacity:0;
        transform:translateY(24px) scale(.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.customer-auth-close{
    position:absolute;
    top:18px;
    right:18px;
    width:42px;
    height:42px;
    border-radius:15px;
    border:1px solid var(--border);
    background:var(--soft);
    color:var(--text);
    font-size:24px;
    cursor:pointer;
}

.auth-brand{
    text-align:center;
    margin-bottom:22px;
}

.auth-brand img{
    width:78px;
    height:78px;
    object-fit:contain;
    margin-bottom:12px;
}

.auth-brand h2{
    color:var(--gold);
    font-size:28px;
    letter-spacing:-1px;
}

.auth-brand p{
    color:var(--muted);
    line-height:1.7;
    max-width:520px;
    margin:8px auto 0;
}

.auth-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:8px;
    border-radius:22px;
    background:var(--surface2);
    border:1px solid var(--border);
    margin-bottom:22px;
}

.resend-link{
    min-height:48px;
    margin-top:12px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:var(--text);
    background:var(--soft);
    border:1px solid var(--border);
    font-weight:900;
}

.auth-tab{
    height:48px;
    border:none;
    cursor:pointer;
    border-radius:16px;
    background:transparent;
    color:var(--muted);
    font-family:inherit;
    font-weight:900;
}

.auth-tab.active{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
}

.auth-panel{
    display:none;
}

.auth-panel.active{
    display:block;
}

.auth-form .form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.auth-form .input-group.full{
    grid-column:1 / -1;
}

.auth-form .input-group label{
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:8px;
}

.auth-form .input-group input,
.auth-form .input-group textarea{
    width:100%;
    border:none;
    outline:none;
    color:var(--text);
    background:var(--surface2);
    border:1px solid var(--border);
    border-radius:17px;
    font-family:inherit;
}

.auth-form .input-group input{
    height:54px;
    padding:0 15px;
}

.auth-form .input-group textarea{
    min-height:105px;
    resize:vertical;
    padding:15px;
    line-height:1.7;
}

.auth-form .input-group input:focus,
.auth-form .input-group textarea:focus{
    border-color:rgba(212,175,55,.65);
    box-shadow:0 0 0 4px rgba(212,175,55,.10);
}

.location-btn,
.auth-submit{
    width:100%;
    min-height:54px;
    border:none;
    cursor:pointer;
    border-radius:18px;
    font-family:inherit;
    font-weight:900;
    margin-top:14px;
}

.location-btn{
    color:var(--text);
    background:var(--soft);
    border:1px solid var(--border);
}

.auth-submit{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2),#b88a1e);
    box-shadow:0 16px 34px rgba(212,175,55,.22);
}

.location-status{
    color:var(--muted);
    line-height:1.6;
    font-size:13px;
    margin-top:10px;
}

.auth-chip{
    border:none;
    cursor:pointer;
}

@media(max-width:680px){
    .customer-auth-modal{
        padding:24px;
        border-radius:28px;
    }

    .auth-form .form-grid{
        grid-template-columns:1fr;
    }

    .auth-form .input-group.full{
        grid-column:auto;
    }
}