/* ===============================
   EMI CALCULATOR PAGE
================================ */

.wrap{
  max-width:1200px;
  margin:auto;
  padding:40px 20px 80px;
}

/* Page Heading */
.page-title{
  font-size:34px;
  margin-bottom:10px;
}
.page-intro{
  max-width:800px;
  color:var(--muted);
  margin-bottom:30px;
  font-size:15px;
}

/* ===============================
   LOAN TABS
================================ */

.loan-tabs{
  display:flex;
  gap:12px;
  margin-bottom:30px;
  flex-wrap:wrap;
}

.tab-btn{
  padding:10px 18px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  cursor:pointer;
}

.tab-btn.active{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#000;
  border:none;
  font-weight:600;
}

/* ===============================
   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 */
.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;
}

/* ===============================
   CHARTS
================================ */

.chart-tabs{
  display:flex;
  gap:10px;
  margin-bottom:14px;
}

.chart-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;
}

.chart-btn.active{
  background:var(--accent2);
  color:#000;
  border:none;
  font-weight:600;
}

.chart-box{
  background:#0c1020;
  border-radius:16px;
  padding:16px;
}

/* ===============================
   AMORTIZATION 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;
}

.table-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.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;
  }
}

@media(max-width:600px){
  .page-title{
    font-size:28px;
  }
}
