.tool-hero { background:linear-gradient(135deg,#4338ca 0%,#2563eb 100%); padding:5rem 1.5rem 3rem; margin-top:68px; text-align:center; position:relative; overflow:hidden; }
.tool-hero::before { content:''; position:absolute; width:400px; height:400px; border-radius:50%; background:rgba(255,255,255,.06); top:-150px; right:-100px; }
.tool-hero::after { content:''; position:absolute; width:300px; height:300px; border-radius:50%; background:rgba(255,255,255,.04); bottom:-100px; left:-50px; }
.tool-hero-content { position:relative; z-index:1; }
.tool-hero-icon { width:72px; height:72px; border-radius:20px; background:rgba(255,255,255,.15); backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:center; font-size:2rem; margin:0 auto 1.25rem; border:1px solid rgba(255,255,255,.2); }
.tool-hero h1 { font-size:clamp(1.75rem,4vw,2.75rem); font-weight:800; color:white; letter-spacing:-1px; margin-bottom:.75rem; }
.tool-hero p { font-size:1rem; color:rgba(255,255,255,.78); max-width:500px; margin:0 auto; }
.tool-main { max-width:1000px; margin:0 auto; padding:2.5rem 1.5rem 5rem; }

.emi-layout { display:grid; grid-template-columns:360px 1fr; gap:1.5rem; align-items:start; }

.form-panel { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow); overflow:hidden; }
.form-panel-header { padding:1.25rem 1.5rem; border-bottom:1px solid var(--border-light); display:flex; align-items:center; gap:.75rem; }
.form-panel-icon { width:36px; height:36px; border-radius:10px; background:rgba(67,56,202,.12); display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.form-panel-title { font-size:.95rem; font-weight:700; color:var(--text); }
.form-panel-body { padding:1.5rem; display:flex; flex-direction:column; gap:1.1rem; }

.field-group { display:flex; flex-direction:column; gap:.4rem; }
.field-label { font-size:.78rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px; }
.field-input-wrap { position:relative; }
.field-prefix { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:.9rem; font-weight:600; color:var(--text-muted); pointer-events:none; }
.field-suffix { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-size:.85rem; font-weight:600; color:var(--text-muted); pointer-events:none; }
.field-input { width:100%; padding:.7rem 2.5rem .7rem 2rem; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:.95rem; font-family:'Inter',sans-serif; color:var(--text); outline:none; transition:var(--transition); background:var(--bg); }
.field-input.no-prefix { padding-left:.9rem; }
.field-input.no-suffix { padding-right:.9rem; }
.field-input:focus { border-color:#4338ca; background:white; box-shadow:0 0 0 3px rgba(67,56,202,.1); }
.field-input::placeholder { color:var(--text-light); }
.field-select { width:100%; padding:.7rem .9rem; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:.9rem; font-family:'Inter',sans-serif; color:var(--text); outline:none; transition:var(--transition); background:var(--bg); cursor:pointer; }
.field-select:focus { border-color:#4338ca; background:white; box-shadow:0 0 0 3px rgba(67,56,202,.1); }

.range-wrap { display:flex; flex-direction:column; gap:.5rem; }
.range-row { display:flex; justify-content:space-between; font-size:.75rem; color:var(--text-muted); }
.field-range { width:100%; -webkit-appearance:none; appearance:none; height:4px; background:var(--border); border-radius:100px; outline:none; cursor:pointer; }
.field-range::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:#4338ca; cursor:pointer; box-shadow:0 2px 6px rgba(67,56,202,.3); }

.btn-calc { width:100%; padding:.875rem; background:linear-gradient(135deg,#4338ca,#2563eb); color:white; border:none; border-radius:var(--radius); font-size:.95rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); box-shadow:0 4px 12px rgba(67,56,202,.3); }
.btn-calc:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(67,56,202,.4); }
.btn-reset-small { width:100%; padding:.7rem; background:transparent; color:var(--text-muted); border:1.5px solid var(--border); border-radius:var(--radius); font-size:.875rem; font-weight:600; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); }
.btn-reset-small:hover { border-color:var(--text-muted); color:var(--text); }

.results-col { display:flex; flex-direction:column; gap:1.25rem; }

.summary-card { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); box-shadow:var(--shadow-md); overflow:hidden; }
.summary-card-header { padding:1.25rem 1.5rem; background:linear-gradient(135deg,#4338ca,#2563eb); color:white; }
.summary-card-title { font-size:.95rem; font-weight:700; }
.summary-card-sub { font-size:.78rem; color:rgba(255,255,255,.75); margin-top:2px; }

.emi-big { padding:1.5rem; text-align:center; border-bottom:1px solid var(--border-light); }
.emi-big-label { font-size:.78rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:.4rem; }
.emi-big-value { font-size:2.75rem; font-weight:900; letter-spacing:-2px; color:#4338ca; line-height:1; }

.emi-metrics { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--border-light); }
.emi-metric { padding:1rem; text-align:center; border-right:1px solid var(--border-light); }
.emi-metric:last-child { border-right:none; }
.emi-metric-value { font-size:1.1rem; font-weight:900; color:var(--text); letter-spacing:-.5px; display:block; }
.emi-metric-label { font-size:.7rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px; display:block; margin-top:2px; }

.chart-section { padding:1.25rem 1.5rem; border-bottom:1px solid var(--border-light); }
.chart-title { font-size:.8rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:1rem; }
.pie-wrap { display:flex; align-items:center; gap:1.5rem; }
.pie-canvas-wrap { position:relative; flex-shrink:0; }
.pie-legend { display:flex; flex-direction:column; gap:.625rem; }
.pie-legend-item { display:flex; align-items:center; gap:.5rem; }
.pie-dot { width:10px; height:10px; border-radius:3px; flex-shrink:0; }
.pie-legend-label { font-size:.78rem; color:var(--text-muted); }
.pie-legend-value { font-size:.8rem; font-weight:700; color:var(--text); margin-left:.25rem; }

.amort-section { padding:1.25rem 1.5rem; }
.amort-toggle { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.amort-title { font-size:.8rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.5px; }
.btn-toggle-amort { padding:.4rem .875rem; background:rgba(67,56,202,.1); color:#4338ca; border:1.5px solid rgba(67,56,202,.2); border-radius:100px; font-size:.75rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); }
.btn-toggle-amort:hover { background:rgba(67,56,202,.16); }
.amort-table-wrap { max-height:280px; overflow-y:auto; border-radius:var(--radius-sm); border:1px solid var(--border); display:none; }
.amort-table-wrap.show { display:block; }
.amort-table { width:100%; border-collapse:collapse; font-size:.78rem; }
.amort-table th { background:var(--bg); padding:.625rem .875rem; text-align:left; font-weight:700; color:var(--text-muted); font-size:.7rem; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid var(--border); position:sticky; top:0; }
.amort-table td { padding:.625rem .875rem; border-bottom:1px solid var(--border-light); color:var(--text); }
.amort-table tr:last-child td { border-bottom:none; }
.amort-table tr:hover td { background:var(--bg); }

.placeholder-card { background:white; border-radius:var(--radius-lg); border:1px solid var(--border); padding:3rem 2rem; text-align:center; color:var(--text-light); box-shadow:var(--shadow); }
.placeholder-icon { font-size:3rem; margin-bottom:1rem; opacity:.35; }

.btn-export { padding:.6rem 1.25rem; background:rgba(67,56,202,.1); color:#4338ca; border:1.5px solid rgba(67,56,202,.2); border-radius:var(--radius); font-size:.8rem; font-weight:700; font-family:'Inter',sans-serif; cursor:pointer; transition:var(--transition); }
.btn-export:hover { background:rgba(67,56,202,.16); }

@media(max-width:760px) { .emi-layout{grid-template-columns:1fr;} .emi-metrics{grid-template-columns:1fr 1fr;} .emi-metric:nth-child(2){border-right:none;} }
