/* ===============================
   SIP PAGE FIX (CRITICAL)
================================ */

/* isolate calculator canvas */
main.wrap{
  background:transparent;
}

/* force SIP section to behave like EMI */
#sip.tool{
  max-width:1200px;
  margin:auto;
}
body{
  background-color:var(--bg);
}
/* ===============================
   SIP CALCULATOR PAGE
================================ */

.wrap{
  max-width:1200px;
  margin:auto;
  padding:40px 20px 80px;
}

/* ===============================
   TOOL LAYOUT
================================ */

.tool-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  margin-bottom:50px;
}

/* ===============================
   INPUT PANEL
================================ */

.input-panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px;
}

.field{
  margin-bottom:28px;
}

.field label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
}

.input-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}

.input-row span{
  font-size:14px;
  color:var(--muted);
}

.input-row input[type="number"]{
  flex:1;
  background:#0c1020;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  color:var(--text);
  font-size:14px;
}

input[type="range"]{
  width:100%;
}

/* ===============================
   RESULT PANEL
================================ */

.result-panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px;
}

/* Summary cards */
.summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:20px;
  margin-bottom:30px;
}

.summary-item{
  background:rgba(255,255,255,.04);
  padding:20px;
  border-radius:16px;
  text-align:center;
}

.summary-item span{
  font-size:12px;
  color:var(--muted);
}

.summary-item strong{
  display:block;
  margin-top:6px;
  font-size:18px;
}

/* ===============================
   CHART
================================ */

.chart-box{
  background:#0c1020;
  border-radius:16px;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===============================
   SIP TABLE
================================ */

.table-section{
  margin-top:60px;
}

.table-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
  flex-wrap:wrap;
  gap:14px;
}

.table-header h2{
  font-size:22px;
}

.toggle-btn{
  padding:8px 14px;
  font-size:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
}

.toggle-btn.active{
  background:var(--accent);
  color:#000;
  border:none;
  font-weight:600;
}

.table-wrapper{
  overflow-x:auto;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

thead{
  background:rgba(255,255,255,.04);
}

th,td{
  padding:12px 14px;
  text-align:right;
  border-bottom:1px solid var(--border);
}

th:first-child,
td:first-child{
  text-align:left;
}

tbody tr:hover{
  background:rgba(255,255,255,.03);
}

/* ===============================
   SEO CONTENT
================================ */

.content-section{
  margin-top:80px;
  max-width:900px;
}

.content-section h2{
  font-size:22px;
  margin-top:26px;
  margin-bottom:10px;
}

.content-section p,
.content-section li{
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
}

.content-section ul{
  padding-left:18px;
}

/* ===============================
   RESPONSIVE
================================ */

@media(max-width:900px){
  .tool-layout{
    grid-template-columns:1fr;
  }
}
