
.ref-public,
.ref-public *{
    box-sizing:border-box;
}

.ref-public{
    --ref-primary:#1877f2;
    --ref-primary-dark:#0d5fc9;
    --ref-success:#168847;
    --ref-danger:#c9342e;
    --ref-warning:#a96d00;
    --ref-text:#172033;
    --ref-muted:#667085;
    --ref-border:#e1e7ef;
    --ref-bg:#f4f7fb;
    --ref-card:#fff;
    --ref-shadow:0 9px 28px rgba(15,35,70,.08);
    background:var(--ref-bg);
    color:var(--ref-text);
    font-family:Arial,Tahoma,sans-serif;
    line-height:1.8;
    padding:20px 0 55px;
}

.ref-container{
    width:calc(100% - 24px);
    max-width:1080px;
    margin:0 auto;
}

.ref-hero{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);
    align-items:center;
    gap:22px;
    padding:34px;
    border-radius:24px;
    color:#fff;
    background:linear-gradient(135deg,#1877f2,#0752ad);
    box-shadow:0 18px 42px rgba(24,119,242,.22);
    overflow:hidden;
    position:relative;
}

.ref-hero:before,
.ref-hero:after{
    content:"";
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.ref-hero:before{
    width:220px;
    height:220px;
    left:-80px;
    bottom:-110px;
}

.ref-hero:after{
    width:140px;
    height:140px;
    right:38%;
    top:-85px;
}

.ref-hero-content,
.ref-reward-box{
    position:relative;
    z-index:2;
}

.ref-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.15);
    font-weight:700;
    font-size:14px;
    margin-bottom:12px;
}

.ref-hero h1{
    margin:0 0 12px;
    color:#fff;
    font-size:clamp(29px,5vw,48px);
    line-height:1.3;
}

.ref-hero p{
    margin:0;
    color:#eef6ff;
    font-size:16px;
    max-width:700px;
}

.ref-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:22px;
}

.ref-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:12px;
    text-decoration:none;
    font-weight:800;
    transition:.2s ease;
}

.ref-btn:hover{
    transform:translateY(-1px);
}

.ref-btn-main{
    background:#fff;
    color:var(--ref-primary);
}

.ref-btn-soft{
    color:#fff;
    border:1px solid rgba(255,255,255,.32);
    background:rgba(255,255,255,.12);
}

.ref-btn-blue{
    background:var(--ref-primary);
    color:#fff;
}

.ref-btn-outline{
    background:#fff;
    color:var(--ref-primary);
    border:1px solid #cdddf6;
}

.ref-reward-box{
    padding:23px;
    border-radius:20px;
    background:#fff;
    color:var(--ref-text);
    text-align:center;
}

.ref-reward-icon{
    width:68px;
    height:68px;
    display:grid;
    place-items:center;
    margin:0 auto 10px;
    border-radius:20px;
    background:#edf5ff;
    font-size:35px;
}

.ref-reward-box small{
    display:block;
    color:var(--ref-muted);
}

.ref-reward-value{
    color:var(--ref-success);
    font-size:31px;
    line-height:1.35;
    font-weight:900;
    margin:4px 0;
}

.ref-program-status{
    margin-top:13px;
    padding:10px;
    border-radius:11px;
    font-size:14px;
    font-weight:800;
}

.ref-status-enabled{
    background:#eaf8ef;
    color:#13713a;
}

.ref-status-disabled{
    background:#fff0ef;
    color:var(--ref-danger);
}

.ref-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-top:15px;
}

.ref-stat{
    padding:17px 12px;
    border:1px solid var(--ref-border);
    border-radius:16px;
    background:#fff;
    box-shadow:var(--ref-shadow);
    text-align:center;
}

.ref-stat strong{
    display:block;
    color:var(--ref-primary);
    font-size:23px;
    line-height:1.4;
}

.ref-stat span{
    color:var(--ref-muted);
    font-size:13px;
}

.ref-section{
    padding-top:38px;
}

.ref-section-head{
    max-width:760px;
    margin:0 auto 21px;
    text-align:center;
}

.ref-section-head h2{
    margin:0 0 6px;
    font-size:28px;
    color:var(--ref-text);
}

.ref-section-head p{
    margin:0;
    color:var(--ref-muted);
}

.ref-steps{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.ref-step,
.ref-card,
.ref-benefit,
.ref-faq details{
    border:1px solid var(--ref-border);
    background:#fff;
    box-shadow:var(--ref-shadow);
}

.ref-step{
    padding:20px;
    border-radius:17px;
}

.ref-step-number{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--ref-primary);
    color:#fff;
    font-weight:900;
    margin-bottom:11px;
}

.ref-step h3{
    margin:0 0 5px;
    font-size:18px;
}

.ref-step p{
    margin:0;
    color:var(--ref-muted);
    font-size:14px;
}

.ref-grid-two{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.ref-card{
    border-radius:19px;
    padding:22px;
}

.ref-card h3{
    margin:0 0 12px;
    font-size:20px;
}

.ref-list{
    list-style:none;
    padding:0;
    margin:0;
}

.ref-list li{
    display:flex;
    gap:9px;
    padding:9px 0;
    border-bottom:1px dashed #e8ecf2;
}

.ref-list li:last-child{
    border-bottom:0;
}

.ref-check{
    color:var(--ref-success);
    font-weight:900;
}

.ref-cross{
    color:var(--ref-danger);
    font-weight:900;
}

.ref-condition{
    margin-top:16px;
    padding:16px;
    border:1px solid #cfe0fa;
    border-radius:15px;
    background:#eef5ff;
    color:#174f92;
    text-align:center;
    font-weight:800;
}

.ref-benefits{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.ref-benefit{
    padding:19px 14px;
    border-radius:16px;
    text-align:center;
}

.ref-benefit-icon{
    font-size:29px;
}

.ref-benefit strong{
    display:block;
    margin:4px 0;
}

.ref-benefit span{
    color:var(--ref-muted);
    font-size:13px;
}

.ref-faq{
    max-width:850px;
    margin:auto;
    display:grid;
    gap:9px;
}

.ref-faq details{
    padding:0 17px;
    border-radius:13px;
}

.ref-faq summary{
    cursor:pointer;
    padding:15px 0;
    font-weight:800;
}

.ref-faq p{
    margin:0 0 15px;
    color:var(--ref-muted);
}

.ref-terms-preview{
    white-space:pre-line;
    color:#475467;
    background:#fafbfd;
    border:1px solid var(--ref-border);
    padding:15px;
    border-radius:13px;
    max-height:240px;
    overflow:auto;
}

.ref-final{
    margin-top:38px;
    padding:29px;
    border:1px solid var(--ref-border);
    border-radius:21px;
    background:#fff;
    box-shadow:var(--ref-shadow);
    text-align:center;
}

.ref-final h2{
    margin:0 0 7px;
}

.ref-final p{
    max-width:700px;
    margin:0 auto 18px;
    color:var(--ref-muted);
}

.ref-final-actions{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
}

@media(max-width:850px){
    .ref-hero{
        grid-template-columns:1fr;
    }

    .ref-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ref-steps{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ref-benefits{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:600px){
    .ref-public{
        padding-top:10px;
    }

    .ref-container{
        width:calc(100% - 16px);
    }

    .ref-hero{
        padding:22px 16px;
        border-radius:18px;
    }

    .ref-hero h1{
        font-size:29px;
    }

    .ref-actions,
    .ref-final-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .ref-btn{
        width:100%;
    }

    .ref-stats{
        gap:8px;
    }

    .ref-stat{
        padding:14px 7px;
    }

    .ref-stat strong{
        font-size:19px;
    }

    .ref-section{
        padding-top:29px;
    }

    .ref-section-head h2{
        font-size:23px;
    }

    .ref-steps,
    .ref-grid-two,
    .ref-benefits{
        grid-template-columns:1fr;
    }

    .ref-step,
    .ref-card{
        padding:17px;
    }

    .ref-final{
        padding:23px 15px;
    }
}

.ref-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin:0 2px 12px;
    color:var(--ref-muted);
    font-size:13px;
}

.ref-breadcrumb a{
    color:var(--ref-primary);
    text-decoration:none;
    font-weight:700;
}

.ref-card p{
    margin:0;
    color:var(--ref-muted);
}


