/* =========================================
   Common base styles (Shared)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

/* =========================================
   User Login (Phone OTP via WhatsApp)
   ========================================= */

.user-auth-bar{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px;
    align-items:center;
    margin-top:10px;
}

.user-auth-btn{
    border:0;
    border-radius:999px;
    padding:10px 14px;
    cursor:pointer;
    font-weight:700;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.user-auth-chip{
    display:flex;
    align-items:center;
    gap:8px;
    background: rgba(255,255,255,0.9);
    border-radius:999px;
    padding:8px 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
    font-size:0.9em;
}

.user-auth-chip .phone{
    font-weight:700;
}

.user-auth-modal{
    position:fixed;
    inset:0;
    background: rgba(0,0,0,0.55);
    display:none;
    align-items:center;
    justify-content:center;
    padding:16px;
    z-index:9999;
}

.user-auth-card{
    width: min(520px, 100%);
    background:#fff;
    border-radius:18px;
    padding:16px 14px 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.user-auth-card h2{
    margin-bottom:6px;
    color:#2d3748;
    font-size:1.15em;
}

.user-auth-card p{
    margin-bottom:12px;
    color:#4a5568;
    font-size:0.9em;
    line-height:1.6;
}

.ua-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.ua-field{
    width:100%;
}

.ua-field label{
    display:block;
    font-weight:700;
    margin-bottom:6px;
    color:#2d3748;
    font-size:0.9em;
}

.ua-field input{
    width:100%;
    padding:10px 12px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    font-size:1em;
    outline:none;
}

.ua-actions{
    display:flex;
    gap:8px;
    justify-content:flex-start;
    flex-wrap:wrap;
    margin-top:10px;
}

.ua-actions button{
    border:0;
    border-radius:12px;
    padding:10px 12px;
    cursor:pointer;
    font-weight:700;
}

.ua-primary{ background:#2b6cb0; color:#fff; }
.ua-secondary{ background:#edf2f7; color:#2d3748; }
.ua-danger{ background:#fed7d7; color:#9b2c2c; }

.ua-msg{
    margin-top:10px;
    background:#f7fafc;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:10px 12px;
    font-size:0.88em;
    color:#4a5568;
    white-space:pre-wrap;
    display:none;
}

.ua-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.ua-close{
    border:0;
    background:#edf2f7;
    border-radius:12px;
    padding:8px 10px;
    cursor:pointer;
    font-weight:700;
}

/* intl-tel-input داخل المودال */
.user-auth-card .iti{ width:100%; }
