*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    height:100%;
    overflow-y:auto;
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#040816;
    color:white;
    min-height:100%;
    overflow-y:auto;
    overflow-x:hidden;
}

/* PAGE */

.page{
    width:100%;
    min-height:100vh;
    padding:16px 18px 90px;
    background:
    radial-gradient(circle at top left,#111f4d 0%,#040816 45%);
}

/* TOPBAR */

.topbar{
    height:52px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}

.top-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.subject-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:700;
}

.topbar h1{
    font-size:18px;
    font-weight:700;
}

.topbar p{
    font-size:11px;
    color:#94a0c6;
    margin-top:2px;
}

.dashboard-btn{
    text-decoration:none;
    color:white;
    background:#0d1532;
    border:1px solid rgba(255,255,255,0.05);
    padding:10px 16px;
    border-radius:12px;
    font-size:13px;
}

/* MAIN LAYOUT */

.layout{
    display:grid;
    grid-template-rows:auto auto;
    gap:12px;
}

.top-grid{
    display:grid;
    grid-template-columns:1.8fr 1fr;
    gap:12px;
    align-items:stretch;
}

.bottom-grid{
    display:grid;
    grid-template-columns:1.15fr 0.8fr 0.72fr 0.78fr;
    gap:12px;
    align-items:stretch;
}

/* CARDS */

.card{
    background:rgba(8,14,33,0.96);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:20px;
    padding:18px;
    position:relative;
    overflow:hidden;
    box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 30px rgba(0,0,0,0.35);
}

.card h2{
    font-size:16px;
    font-weight:700;
}

/* PROGRESS */

.progress-layout{
    margin-top:18px;
    display:grid;
    grid-template-columns:0.72fr 0.68fr 1fr;
    gap:20px;
    align-items:center;
}

.ring{
    width:160px;
    height:160px;
    border-radius:50%;
    background:
    conic-gradient(#8b5cf6 0% 74%,#1a2448 74% 100%);
    display:flex;
    align-items:center;
    justify-content:center;
}

.ring-inner{
    width:114px;
    height:114px;
    border-radius:50%;
    background:#070d22;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.ring-inner h3{
    font-size:34px;
    font-weight:800;
}

.ring-inner span{
    color:#98a3ca;
    margin-top:3px;
    font-size:13px;
}

/* STATS */

.stats-wrap{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.stat-item{
    display:flex;
    align-items:center;
    gap:10px;
}

.stat-icon{
    width:34px;
    height:34px;
    border-radius:10px;
    background:#0e1737;
    color:#9f6fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
}

.stat-item h4{
    font-size:16px;
}

.stat-item p{
    font-size:12px;
    color:#8f9bc4;
}

/* TOPICS */

.topics-wrap h3{
    margin-bottom:16px;
    font-size:16px;
}

.topic{
    margin-bottom:16px;
}

.topic-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:6px;
    font-size:13px;
}

.topic-row span:last-child{
    color:#b0badf;
}

.bar{
    width:100%;
    height:7px;
    background:#182347;
    border-radius:20px;
    overflow:hidden;
}

.fill{
    height:100%;
    border-radius:20px;
}

.blue{
    width:72%;
    background:#3b82f6;
}

.purple{
    width:82%;
    background:#a855f7;
}

.green{
    width:64%;
    background:#22c55e;
}

.orange{
    width:52%;
    background:#f59e0b;
}

/* RESOURCES */

.coming-badge{
    position:absolute;
    top:16px;
    right:16px;
    background:#6d28d9;
    color:white;
    padding:6px 10px;
    border-radius:10px;
    font-size:10px;
    font-weight:700;
}

.resources-content{
    height:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.resources-text{
    max-width:55%;
}

.resources-text h2{
    font-size:24px;
    margin-bottom:12px;
}

.resources-text p{
    color:#a1abd0;
    line-height:1.6;
    margin-bottom:18px;
    font-size:14px;
}

.resources-text button{
    border:none;
    background:linear-gradient(135deg,#7c3aed,#9333ea);
    color:white;
    padding:12px 24px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
}

.laptop-glow{
    font-size:96px;
    color:#8b5cf6;
    filter:
    drop-shadow(0 0 12px #8b5cf6)
    drop-shadow(0 0 24px #8b5cf6);
}

/* BOTTOM */

.card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.card-top span{
    background:#4c1d95;
    padding:5px 9px;
    border-radius:8px;
    font-size:10px;
}

/* CALCULATOR */

.calculator-layout{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
}

.calc-inputs{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.calc-inputs input{
    height:40px;
    border:none;
    outline:none;
    background:#0f1735;
    border-radius:10px;
    padding:0 12px;
    color:white;
    font-size:13px;
}

.calc-inputs button{
    height:40px;
    border:none;
    background:linear-gradient(135deg,#7c3aed,#9333ea);
    color:white;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

.calc-circle{
    width:118px;
    height:118px;
    border-radius:50%;
    background:
    conic-gradient(#8b5cf6 0% 72%,#1d2647 72% 100%);
    display:flex;
    align-items:center;
    justify-content:center;
}

.calc-inner{
    width:82px;
    height:82px;
    border-radius:50%;
    background:#071022;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.calc-inner h3{
    font-size:28px;
}

.calc-inner span{
    color:#98a3ca;
    margin-top:2px;
    font-size:12px;
}

/* TARGET */

.target-card select{
    width:100%;
    height:42px;
    border:none;
    outline:none;
    background:#0f1735;
    border-radius:10px;
    color:#aab4d7;
    padding:0 12px;
    margin-top:14px;
}

.target-bottom{
    margin-top:18px;
    display:flex;
    justify-content:space-around;
}

.small-ring{
    text-align:center;
}

.small-inner{
    width:68px;
    height:68px;
    border-radius:50%;
    border:2px solid #2a3562;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:6px;
}

.small-inner h4{
    font-size:22px;
}

.small-ring p{
    color:#9aa4cb;
    font-size:12px;
}

/* EXAM */

.exam-box{
    display:flex;
    gap:12px;
    margin-top:18px;
    align-items:flex-start;
}

.exam-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#111a3c;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

.exam-box h3{
    font-size:18px;
    margin-bottom:6px;
}

.exam-box p{
    color:#9ca7cf;
    margin-bottom:10px;
    font-size:13px;
}

.exam-box span{
    color:#b168ff;
    font-size:13px;
}

/* PAPERS */

.papers-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.papers-top a{
    color:#b168ff;
    text-decoration:none;
    font-size:12px;
}

.paper-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.paper-item span{
    color:#d8deff;
    font-size:14px;
}

.paper-item strong{
    color:#c6cfff;
    font-size:14px;
}
