*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}

body{
background:#f1f5f9;
min-height:100vh;
padding:20px;
}

.container{
max-width:1000px;
margin:auto;
}

.header{
background:linear-gradient(
135deg,
#2563eb,
#1e40af
);
color:white;
padding:25px;
border-radius:20px;
text-align:center;
margin-bottom:20px;
box-shadow:0 10px 30px rgba(37,99,235,.25);
}

.header h1{
font-size:30px;
margin-bottom:5px;
}

.header p{
opacity:.9;
}

.form-card,
.summary,
.progress-section{
background:white;
padding:25px;
border-radius:20px;
margin-bottom:20px;
box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.form-group{
margin-bottom:20px;
}

label{
display:block;
margin-bottom:8px;
font-weight:600;
color:#334155;
}

input{
width:100%;
padding:14px;
border:1px solid #cbd5e1;
border-radius:12px;
font-size:16px;
transition:.3s;
}

input:focus{
outline:none;
border-color:#2563eb;
box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

input[type="number"]{
appearance:textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{
-webkit-appearance:none;
margin:0;
}

.helper-text{
display:block;
margin-top:8px;
font-size:12px;
color:#64748b;
line-height:1.6;
}

/* MODE */

.mode-selector{
display:flex;
gap:15px;
margin-bottom:25px;
flex-wrap:wrap;
}

.radio-box{
flex:1;
min-width:200px;
background:#eff6ff;
border:2px solid #bfdbfe;
border-radius:14px;
padding:14px;
cursor:pointer;
transition:.3s;
text-align:center;
}

.radio-box:hover

.radio-box input{
width:auto;
margin-right:8px;
}

#manualFields{
background:#f8fafc;
border:1px solid #e2e8f0;
border-radius:15px;
padding:20px;
margin-bottom:20px;
}

/* BUTTON */

.button-group{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.button-group button{
flex:1;
}

button{
width:100%;
padding:15px;
border:none;
border-radius:12px;
background:#2563eb;
color:white;
font-size:16px;
font-weight:bold;
cursor:pointer;
transition:.3s;
}

button:hover

.btn-reset{
background:#64748b;
}

.btn-reset:hover

/* SUMMARY */

.summary h3{
margin-bottom:15px;
color:#1e293b;
}

.summary p{
display:flex;
justify-content:space-between;
gap:10px;
margin:10px 0;
}

.summary p span:last-child{
font-weight:600;
color:#1e293b;
}

/* CARD */

.cards{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(280px,1fr));
gap:20px;
}

.card{
padding:25px;
border-radius:20px;
color:white;
text-align:center;
transition:.3s;
}

.card:hover{
transform:translateY(-3px);
box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.reseller{
background:linear-gradient(
135deg,
#16a34a,
#15803d
);
}

.isp{
background:linear-gradient(
135deg,
#ea580c,
#c2410c
);
}

.nominal{
font-size:30px;
font-weight:bold;
margin-top:12px;
word-break:break-word;
}

.percent{
font-size:22px;
margin-top:10px;
}

/* PROGRESS */

.progress-item{
margin-top:15px;
}

.progress-item p{
display:flex;
justify-content:space-between;
margin-bottom:5px;
}

.progress-bar{
height:18px;
background:#e2e8f0;
border-radius:30px;
overflow:hidden;
}

.progress-fill{
height:100%;
width:0%;
transition:.5s;
}

.fill-reseller{
background:#16a34a;
}

.fill-isp{
background:#ea580c;
}

#barPPNBHP{
background:#8b5cf6;
}

.total{
text-align:center;
font-size:24px;
font-weight:bold;
margin-top:20px;
color:#1e293b;
}

/* ANIMATION */

#hasil{
animation:fadeIn .4s ease;
}

@keyframes fadeIn{

from{
    opacity:0;
    transform:translateY(15px);
}

to{
    opacity:1;
    transform:translateY(0);
}

}

/* MOBILE */

@media(max-width:768px){

body{
    padding:12px;
}

.header{
    padding:20px;
}

.header h1{
    font-size:22px;
}

.header p{
    font-size:14px;
}

.form-card,
.summary,
.progress-section{
    padding:18px;
}

.mode-selector{
    flex-direction:column;
}

.button-group{
    flex-direction:column;
}

.nominal{
    font-size:22px;
}

.percent{
    font-size:18px;
}

.total{
    font-size:20px;
}

}