
/* PlayNovaEra Referral System v4.9.9 by StarDev */
.referral-hero,
.referral-admin-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    overflow:hidden;
    position:relative;
}
.referral-hero::after{
    content:"";
    position:absolute;
    inset:auto -80px -110px auto;
    width:280px;
    height:280px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(244,190,70,.22),rgba(244,190,70,0) 70%);
    pointer-events:none;
}
.ref-reward-card{
    min-width:245px;
    padding:22px;
    border:1px solid rgba(244,190,70,.35);
    border-radius:18px;
    background:linear-gradient(145deg,rgba(244,190,70,.14),rgba(10,17,28,.68));
    display:flex;
    flex-direction:column;
    gap:5px;
}
.ref-reward-card span,
.ref-reward-card small,
.ref-code-box span,
.ref-welcome-bonus span,
.ref-stat-grid span{
    color:var(--muted,#95a2b6);
}
.ref-reward-card strong{
    font-size:28px;
    color:#ffd36b;
}
.ref-code-box{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:15px 17px;
    border:1px solid rgba(244,190,70,.28);
    border-radius:14px;
    background:rgba(255,255,255,.025);
    margin:12px 0;
}
.ref-code-box strong{
    letter-spacing:2px;
    color:#ffd36b;
}
.ref-link-row,
.ref-share-row{
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:10px;
}
.ref-link-row input{
    flex:1;
    min-width:0;
}
.ref-invite-hint{
    margin:4px 0 14px;
    padding:12px 14px;
    border:1px solid rgba(244,190,70,.3);
    border-radius:12px;
    background:rgba(244,190,70,.08);
}
.ref-rules{
    list-style:none;
    margin:12px 0;
    padding:0;
    display:grid;
    gap:10px;
}
.ref-rules li{
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:10px;
    background:rgba(255,255,255,.02);
}
.ref-welcome-bonus{
    margin-top:14px;
    padding:14px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    border-radius:12px;
    background:rgba(76,175,80,.08);
    border:1px solid rgba(76,175,80,.22);
}
.ref-welcome-bonus strong{color:#86e89a}
.ref-stat-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:18px 0;
}
.ref-stat-grid article{
    padding:18px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:15px;
    background:rgba(10,17,28,.78);
    display:flex;
    flex-direction:column;
    gap:6px;
}
.ref-stat-grid strong{
    font-size:27px;
    color:#f5f7fb;
}
.ref-status{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}
.ref-status.ok{background:rgba(56,189,113,.14);color:#78e0a3;border:1px solid rgba(56,189,113,.25)}
.ref-status.warn{background:rgba(245,178,47,.13);color:#ffd36b;border:1px solid rgba(245,178,47,.25)}
.ref-status.danger{background:rgba(230,70,70,.13);color:#ff8d8d;border:1px solid rgba(230,70,70,.25)}
.ref-status.pending{background:rgba(82,126,180,.14);color:#a9c8ef;border:1px solid rgba(82,126,180,.25)}
.ref-admin-actions{
    display:flex;
    flex-direction:column;
    gap:7px;
    min-width:180px;
}
.ref-admin-actions .compact-form{
    display:flex;
    gap:6px;
    align-items:center;
    margin:0;
}
.ref-admin-actions input{
    min-width:105px;
}
.referral-service{
    border-color:rgba(244,190,70,.35)!important;
}
@media(max-width:900px){
    .referral-hero,.referral-admin-head{align-items:stretch;flex-direction:column}
    .ref-reward-card{min-width:0}
    .ref-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
    .ref-link-row,.ref-share-row{align-items:stretch;flex-direction:column}
    .ref-link-row .button,.ref-share-row .button{width:100%}
    .ref-stat-grid{grid-template-columns:1fr 1fr}
}
