
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,Segoe UI,sans-serif;
}

body{
    min-height:100vh;
    padding:20px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:
    radial-gradient(circle at top left,#8b5cf644,transparent 35%),
    radial-gradient(circle at bottom right,#06b6d444,transparent 35%),
    #0f172a;
    color:#fff;
}

.container{
    width:100%;
    max-width:1000px;
}

.card{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.12);
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,.35);
}

.header{
    text-align:center;
    padding:35px;
    background:linear-gradient(135deg,#8b5cf622,#06b6d422);
}

.logo{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:24px;
    background:linear-gradient(135deg,#8b5cf6,#06b6d4);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    margin-bottom:15px;
}

h1{
    font-size:2.2rem;
    margin-bottom:10px;
}

.subtitle{
    color:#94a3b8;
}

.content{
    padding:25px;
}

textarea{
    width:100%;
    min-height:250px;
    border:none;
    outline:none;
    resize:vertical;
    padding:18px;
    border-radius:20px;
    background:rgba(255,255,255,.06);
    color:white;
    font-size:15px;
    line-height:1.7;
    margin-bottom:20px;
}

.controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-bottom:20px;
}

label{
    display:block;
    margin-bottom:8px;
    color:#cbd5e1;
}

select{
    width:100%;
    padding:14px;
    border:none;
    outline:none;
    border-radius:15px;
    background:rgba(255,255,255,.06);
    color:white;
}

select option{
    background:#0f172a;
    color:white;
}

.buttons{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:25px;
}

button{
    padding:15px;
    border:none;
    border-radius:16px;
    cursor:pointer;
    color:white;
    font-weight:600;
    transition:.25s;
}

button:hover{
    transform:translateY(-2px);
}

.calculate{
    background:linear-gradient(135deg,#8b5cf6,#06b6d4);
}

.copy{
    background:linear-gradient(135deg,#0891b2,#06b6d4);
}

.clear{
    background:linear-gradient(135deg,#475569,#64748b);
}

.results{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.result-card{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:20px;
    text-align:center;
}

.result-value{
    font-size:1.8rem;
    font-weight:700;
    color:#60a5fa;
    margin-bottom:6px;
}

.result-label{
    color:#94a3b8;
    font-size:.9rem;
}

.progress-container{
    margin-top:25px;
}

.progress-title{
    margin-bottom:10px;
}

.progress-bar{
    height:12px;
    background:rgba(255,255,255,.08);
    border-radius:999px;
    overflow:hidden;
}

.progress{
    width:0%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#8b5cf6,#06b6d4);
    transition:.4s;
}

@media(max-width:768px){

    .controls{
        grid-template-columns:1fr;
    }

    .buttons{
        grid-template-columns:1fr;
    }

    .results{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:500px){

    .results{
        grid-template-columns:1fr;
    }

    h1{
        font-size:1.7rem;
    }

    .content{
        padding:18px;
    }
}
