/* Shared auth UI styles for user-info displayed after login */
.user-info{
    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;
}
/* Use Cairo font as the site-wide UI font (fallbacks included) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
html,body,input,button,textarea,select{font-family:'Cairo', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}
.user-name{
    font-weight:700;
    background:linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.06));
    padding:8px 12px;
    border-radius:20px;
    color:#fff;
    font-size:15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12) inset;
}
.icon-btn{
    background:rgba(255,255,255,0.08);
    border:none;
    color:#fff;
    width:40px;
    height:40px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:18px;
    transition:all .18s ease;
}
.icon-btn:hover{ transform:translateY(-2px); background:rgba(255,255,255,0.14); }
/* Ensure login button keeps similar visual when present */
.login-btn{ text-transform:uppercase; letter-spacing:0.6px; background:rgba(255,255,255,0.08); padding:8px 14px; border-radius:20px; color:#fff; border:1px solid rgba(255,255,255,0.06) }

/* small responsive helpers */
@media (max-width:640px){
    .sla-login-modal{padding:14px}
    .user-name{display:none}
}

/* centered large submit button inside modal */
.submit-wrap{display:flex;align-items:center;justify-content:center;margin-top:8px}
.submit-wrap .submit-btn{width:100%;max-width:320px;padding:12px 18px;font-size:16px}
.sla-login-modal .remember{flex:1}

/* Notifications */
.notif-wrap{
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-btn{
    position: relative;
}

.notif-badge{
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 10.5px;
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(20, 24, 33, 0.95);
    box-sizing: border-box;
}

.notif-menu{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    max-height: 440px;
    overflow: hidden;
    background: rgba(20, 24, 33, 0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    z-index: 1000;
}

.notif-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.notif-title{
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.notif-refresh{
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.85);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

.notif-refresh:hover{
    background: rgba(255,255,255,0.10);
}

.notif-list{
    max-height: 370px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.notif-empty{
    padding: 14px 12px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.notif-item{
    display: block;
    padding: 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.notif-item:hover{
    background: rgba(255,255,255,0.07);
}

.notif-item-top{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 3px;
}

.notif-item-title{
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-time{
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
}

.notif-item-sub{
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 6px;
}

.notif-item-msg{
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}

/* Mobile tuning */
@media (max-width:640px){
    .notif-badge{
        top: -4px;
        right: -4px;
        min-width: 15px;
        height: 15px;
        font-size: 10px;
        line-height: 15px;
    }
    /* Use fixed dropdown so it never gets clipped and fits viewport */
    .notif-menu{
        position: fixed;
        left: 10px;
        right: 10px;
        top: 86px;
        width: auto;
        max-height: 60vh;
        border-radius: 14px;
    }
    .notif-item{ padding: 11px 12px; }
    .notif-item-title{ font-size: 12.5px; }
    .notif-item-msg{ font-size: 12px; }
}
