:root{
--bg:#f4f7fb;
--card:#ffffff;
--text:#0f172a;
--blue:#2563eb;
--blue2:#60a5fa;
--border:#dbeafe;
}

body.mta-dark{
--bg:#08111f;
--card:#101827;
--text:#f8fafc;
--border:#1e3a5f;
}

.mta-app{
padding:30px;
background:var(--bg);
min-height:100vh;
font-family:Arial,sans-serif;
color:var(--text);
transition:.3s;
}

.mta-header{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin-bottom:25px;
flex-wrap:wrap;
}

.mta-header h1{
margin:0;
font-size:38px;
}

button{
background:linear-gradient(135deg,var(--blue),var(--blue2));
border:none;
color:#fff;
padding:14px 20px;
border-radius:14px;
cursor:pointer;
font-weight:600;
}

.mta-panel,
.mta-card,
.mta-meta-card,
.mta-details,
.mta-overview{
background:var(--card);
border-radius:24px;
padding:24px;
border:1px solid var(--border);
box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.mta-input-wrap{
display:flex;
gap:12px;
flex-wrap:wrap;
}

input{
flex:1;
padding:14px;
border-radius:14px;
border:1px solid var(--border);
background:transparent;
color:var(--text);
}

.mta-overview{
display:flex;
align-items:center;
gap:24px;
margin:25px 0;
}

.mta-circle{
width:140px;
height:140px;
border-radius:50%;
background:conic-gradient(var(--blue) 0% 82%, #dbeafe 82% 100%);
display:flex;
align-items:center;
justify-content:center;
font-size:42px;
font-weight:bold;
color:var(--text);
}

.mta-grid,
.mta-meta-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:20px;
margin-bottom:24px;
}

.mta-card-head{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:14px;
}

.mta-bar{
height:12px;
background:#dbeafe;
border-radius:999px;
overflow:hidden;
}

.mta-fill{
height:100%;
background:linear-gradient(135deg,var(--blue),var(--blue2));
border-radius:999px;
}

.mta-details{
height:420px;
margin-bottom:24px;
}

.mta-meta-card h4{
margin-top:0;
}

.mta-spinner{
width:70px;
height:70px;
border:6px solid rgba(0,0,0,.08);
border-top-color:var(--blue);
border-radius:50%;
animation:spin 1s linear infinite;
margin:auto;
}

#mta-loader{
text-align:center;
padding:40px;
}

@keyframes spin{
to{
transform:rotate(360deg);
}
}

@media(max-width:768px){
.mta-input-wrap{
flex-direction:column;
}
button{
width:100%;
}
.mta-overview{
flex-direction:column;
text-align:center;
}
}
