.garage-wrapper{
max-width:1200px;
margin:40px auto;
padding:20px;
}

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

.garage-title-box{
display:flex;
align-items:center;
gap:14px;
}

.garage-icon{
width:52px;
height:52px;
display:flex;
align-items:center;
justify-content:center;
background:linear-gradient(135deg,var(--accent),var(--accent-strong));
border-radius:16px;
font-size:22px;
color:white;
box-shadow:0 18px 30px rgba(255,90,54,0.20);
}

.garage-title-text h2{
margin:0;
font-size:30px;
letter-spacing:0.02em;
}

.garage-title-text p{
margin:6px 0 0;
color:var(--text-secondary);
font-size:14px;
}

.car-switcher{
background:rgba(255,255,255,0.04);
border:1px solid var(--border);
color:var(--text);
padding:12px 14px;
border-radius:14px;
font-size:15px;
min-width:220px;
}

.garage-empty-state{
padding:44px 28px;
border-radius:28px;
background:var(--card);
border:1px solid var(--border);
box-shadow:var(--shadow-md);
text-align:center;
}

.garage-empty-state i{
font-size:38px;
color:#ffb199;
margin-bottom:16px;
}

.garage-empty-state p{
color:var(--text-secondary);
max-width:560px;
margin:0 auto 22px;
}

.garage-hero-card{
display:grid;
grid-template-columns:minmax(0,1fr) 220px 260px;
gap:28px;
align-items:center;
padding:32px;
border-radius:30px;
border:1px solid rgba(255,255,255,0.08);
background:
radial-gradient(circle at top right,rgba(255,90,54,0.20),transparent 34%),
linear-gradient(145deg,rgba(15,24,39,0.94),rgba(12,13,16,0.98));
box-shadow:0 26px 70px rgba(0,0,0,0.28);
margin-bottom:22px;
}

.garage-hero-visual{
min-height:190px;
margin:0;
}

.garage-hero-card h1{
margin:0 0 10px;
font-size:clamp(34px,5vw,56px);
}

.garage-hero-card p{
margin:0;
color:var(--text-secondary);
}

.garage-hero-actions{
display:flex;
gap:12px;
flex-wrap:wrap;
margin-top:22px;
}

.garage-health-ring{
position:relative;
width:200px;
height:200px;
margin:auto;
}

.garage-health-ring svg{
width:100%;
height:100%;
transform:rotate(-90deg);
}

.ring-bg,
.ring-value{
fill:none;
stroke-width:11;
}

.ring-bg{
stroke:rgba(255,255,255,0.08);
}

.ring-value{
stroke:var(--accent);
stroke-linecap:round;
stroke-dasharray:314;
filter:drop-shadow(0 0 12px rgba(255,90,54,0.42));
}

.garage-health-ring div{
position:absolute;
inset:0;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
}

.garage-health-ring strong{
font-size:52px;
line-height:1;
}

.garage-health-ring span{
margin-top:8px;
color:var(--text-secondary);
font-weight:700;
}

.garage-kpi-grid{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:16px;
margin-bottom:22px;
}

.garage-kpi-card,
.garage-card{
background:var(--card);
border:1px solid var(--border);
border-radius:24px;
box-shadow:var(--shadow-md);
}

.garage-kpi-card{
padding:20px;
min-height:166px;
}

.garage-kpi-card i{
width:44px;
height:44px;
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:14px;
background:rgba(255,255,255,0.05);
margin-bottom:14px;
}

.garage-kpi-card span{
display:block;
font-size:12px;
letter-spacing:0.12em;
text-transform:uppercase;
color:var(--text-secondary);
}

.garage-kpi-card strong{
display:block;
font-size:22px;
margin-top:6px;
}

.garage-kpi-card p{
margin:8px 0 0;
color:var(--text-secondary);
font-size:13px;
}

.garage-kpi-card.green i,
.status-pill.green,
.card-corner-icon.green{
color:#5dd39e;
background:rgba(93,211,158,0.12);
}

.garage-kpi-card.yellow i,
.status-pill.yellow,
.card-corner-icon.yellow{
color:#ffc857;
background:rgba(255,200,87,0.12);
}

.garage-kpi-card.red i,
.status-pill.red{
color:#ff7b7b;
background:rgba(255,123,123,0.12);
}

.garage-kpi-card.blue i,
.status-pill.blue{
color:#72a7ff;
background:rgba(114,167,255,0.12);
}

.garage-kpi-card.muted i,
.status-pill.muted{
color:var(--text-secondary);
background:rgba(255,255,255,0.05);
}

.garage-dashboard-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:22px;
align-items:start;
}

.garage-dashboard-grid.lower{
margin-top:22px;
}

.garage-card{
padding:24px;
}

.garage-card h3{
margin:0 0 14px;
font-size:22px;
}

.garage-card h4{
margin:14px 0 6px;
font-size:24px;
}

.garage-card-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:16px;
margin-bottom:18px;
}

.status-pill{
display:inline-flex;
align-items:center;
padding:8px 11px;
border-radius:999px;
font-size:12px;
font-weight:800;
white-space:nowrap;
}

.card-corner-icon{
width:42px;
height:42px;
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:14px;
}

.service-progress-track,
.cost-range-bar{
height:12px;
background:rgba(255,255,255,0.08);
border-radius:999px;
overflow:hidden;
}

.service-progress-track div{
height:100%;
border-radius:999px;
background:linear-gradient(90deg,#5dd39e,#ffc857,#ff5a36);
}

.service-progress-meta,
.garage-metric-list div{
display:flex;
justify-content:space-between;
gap:14px;
padding:14px 0;
border-bottom:1px solid rgba(255,255,255,0.08);
}

.service-progress-meta{
border-bottom:none;
color:var(--text-secondary);
font-size:13px;
}

.garage-metric-list div:last-child{
border-bottom:none;
}

.garage-metric-list span,
.garage-note{
color:var(--text-secondary);
}

.garage-note{
margin:12px 0 0;
line-height:1.7;
}

.cost-range-bar span{
display:block;
width:72%;
height:100%;
border-radius:999px;
background:linear-gradient(90deg,#72a7ff,#ffc857,#ff5a36);
}

.component-item{
margin-bottom:16px;
}

.component-row{
display:flex;
justify-content:space-between;
font-size:14px;
margin-bottom:7px;
color:var(--text-soft);
}

.bar{
width:100%;
height:9px;
background:rgba(255,255,255,0.08);
border-radius:999px;
overflow:hidden;
}

.bar div{
height:100%;
background:linear-gradient(90deg,#5dd39e,#72a7ff);
}

.garage-list{
margin:0;
padding-left:18px;
color:var(--text-secondary);
line-height:1.8;
}

.button-group{
display:flex;
justify-content:center;
gap:14px;
margin-top:28px;
flex-wrap:wrap;
}

.garage-disclaimer{
margin-top:40px;
background:var(--card);
border:1px solid var(--border);
padding:26px;
border-radius:24px;
text-align:center;
box-shadow:var(--shadow-md);
}

.garage-disclaimer h4{
margin:0 0 8px;
}

.garage-disclaimer p{
margin:0;
color:var(--text-secondary);
}

/* ================= CALCULATORS / TOOLS ================= */

.tools-premium-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:22px;
}

.tools-premium-card{
display:block;
min-height:240px;
padding:24px;
border-radius:24px;
border:1px solid var(--border);
background:
radial-gradient(circle at top right,rgba(255,90,54,0.13),transparent 34%),
var(--card);
box-shadow:var(--shadow-md);
transition:transform .25s,border-color .25s,box-shadow .25s;
}

.tools-premium-card i{
width:52px;
height:52px;
display:inline-flex;
align-items:center;
justify-content:center;
border-radius:16px;
font-size:23px;
margin-bottom:18px;
}

.tools-premium-card h3{
margin:0 0 10px;
font-size:22px;
}

.tools-premium-card p{
min-height:52px;
margin:0 0 18px;
color:var(--text-secondary);
}

.tools-premium-card span{
font-weight:800;
color:#ffb199;
}

.tools-premium-card:hover{
transform:translateY(-5px);
border-color:rgba(255,90,54,0.38);
box-shadow:0 24px 60px rgba(255,90,54,0.14);
}

.tools-premium-card.fuel i{color:#5dd39e;background:rgba(93,211,158,0.12);}
.tools-premium-card.finance i{color:#72a7ff;background:rgba(114,167,255,0.12);}
.tools-premium-card.value i{color:#ff7b7b;background:rgba(255,123,123,0.12);}
.tools-premium-card.maintenance i{color:#ffc857;background:rgba(255,200,87,0.12);}
.tools-premium-card.diagnosis i{color:#ff9d7d;background:rgba(255,90,54,0.14);}
.tools-premium-card.health i{color:#5dd39e;background:rgba(93,211,158,0.12);}

.calculator-page{
max-width:1120px;
margin:50px auto;
padding:0 20px;
}

.calculator-header{
max-width:760px;
margin-bottom:24px;
}

.calculator-layout{
display:grid;
grid-template-columns:minmax(0,0.95fr) minmax(320px,0.75fr);
gap:24px;
align-items:start;
}

.calculator-card,
.calculator-result-card{
padding:26px;
border-radius:24px;
border:1px solid var(--border);
background:var(--card);
box-shadow:var(--shadow-md);
}

.calculator-card .auth-input{
margin-bottom:14px;
}

.calc-submit{
width:100%;
margin-top:8px;
}

.calc-inline{
display:grid;
grid-template-columns:1fr 150px;
gap:12px;
}

.calculator-result-card h2{
margin:6px 0 20px;
font-size:clamp(28px,4vw,42px);
color:#fff;
}

.calc-label{
margin:0;
font-size:12px;
letter-spacing:0.14em;
text-transform:uppercase;
color:#ffb199;
}

.calc-muted{
color:var(--text-secondary);
line-height:1.7;
}

.calc-error{
padding:12px 14px;
border-radius:14px;
background:rgba(255,123,123,0.12);
border:1px solid rgba(255,123,123,0.28);
color:#ffc3c3;
margin-bottom:16px;
}

.calc-result-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px;
}

.calc-result-grid div{
padding:16px;
border-radius:16px;
background:rgba(255,255,255,0.04);
border:1px solid rgba(255,255,255,0.07);
}

.calc-result-grid span{
display:block;
font-size:12px;
color:var(--text-secondary);
margin-bottom:6px;
}

@media(max-width:1100px){
.garage-kpi-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:900px){
.garage-hero-card,
.garage-dashboard-grid,
.calculator-layout{
grid-template-columns:1fr;
}
}

@media(max-width:620px){
.garage-wrapper,
.calculator-page{
padding:0 14px;
margin-top:28px;
}

.garage-hero-card,
.garage-card,
.calculator-card,
.calculator-result-card{
padding:22px;
}

.garage-kpi-grid,
.calc-result-grid,
.calc-inline{
grid-template-columns:1fr;
}

.garage-health-ring{
width:190px;
height:190px;
}
}
