.calc-page { background: linear-gradient(180deg, #fbfcff 0%, #f5f7ff 42%, #f8f9ff 100%); min-height: 100vh; padding: 0 0 80px; }
.calc-breadcrumb { font-size: 0.82rem; color: #888; margin-bottom: 28px; }
.calc-breadcrumb a { color: #F89E52; text-decoration: none; }
.calc-breadcrumb a:hover { text-decoration: underline; }
.calc-page-title { font-size: 1.6rem; font-weight: 700; color: #0B0B0B; margin-bottom: 4px; }
.calc-page-sub { font-size: 0.9rem; color: #666; margin-bottom: 32px; }
.calc-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-card { background: #fff; border-radius: 20px; border: 1px solid #e8edf5; padding: 32px 28px; box-shadow: 0 2px 12px rgba(15,28,63,0.05); }
.calc-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #f0f2f8; }
.calc-card-header .header-icon { width: 44px; height: 44px; background: linear-gradient(135deg, #F89E52 0%, #d97a28 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.calc-card-header h2 { font-size: 1.1rem; font-weight: 700; color: #0B0B0B; margin: 0; }
.calc-card-header p { font-size: 0.8rem; color: #888; margin: 0; }
.loan-type-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.loan-tab { border: 1.5px solid #e8edf5; background: #fff; border-radius: 10px; padding: 8px 16px; font-size: 0.8rem; font-weight: 600; color: #666; cursor: pointer; transition: all 0.18s; display: flex; align-items: center; gap: 6px; }
.loan-tab.active { border-color: #F89E52; background: #FFF4EA; color: #d97a28; }
.calc-field { margin-bottom: 26px; }
.calc-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: #444; margin-bottom: 10px; }
.value-pill { background: #FFF4EA; color: #d97a28; font-size: 0.88rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; min-width: 90px; text-align: center; border: none; cursor: text; outline: none; font-family: inherit; }
.value-pill:focus { background: #ffe8cc; box-shadow: 0 0 0 2px rgba(248,158,82,0.3); }
.calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 10px; outline: none; cursor: pointer; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #F89E52; box-shadow: 0 2px 8px rgba(248,158,82,0.35); cursor: pointer; transition: transform 0.15s; }
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.18); }
.calc-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #F89E52; }
.range-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: #aaa; margin-top: 5px; }
.result-card { background: linear-gradient(160deg, #3a1f08 0%, #6b3a10 100%); border-radius: 20px; padding: 28px; color: #fff; position: sticky; top: 100px; }
.result-card h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.result-emi { font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.result-sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 28px; }
.breakdown-bar { width: 100%; height: 10px; border-radius: 10px; background: rgba(255,255,255,0.12); overflow: hidden; margin-bottom: 16px; display: flex; }
.bar-principal { background: #F89E52; border-radius: 10px 0 0 10px; transition: width 0.5s cubic-bezier(.4,0,.2,1); }
.bar-interest { background: #3482FF; border-radius: 0 10px 10px 0; transition: width 0.5s cubic-bezier(.4,0,.2,1); }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.breakdown-row:last-child { border-bottom: none; }
.breakdown-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-right: 10px; }
.breakdown-label { font-size: 0.83rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; }
.breakdown-amount { font-size: 0.95rem; font-weight: 700; color: #fff; }
.breakdown-pct { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-left: 6px; }
.info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.info-pill { background: #f8f9fc; border: 1px solid #e8edf5; border-radius: 12px; padding: 14px 16px; }
.info-pill .pill-label { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.info-pill .pill-value { font-size: 1rem; font-weight: 700; color: #0B0B0B; }
.schedule-toggle { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 600; user-select: none; }
.schedule-toggle .chevron { transition: transform 0.25s; }
.schedule-toggle.open .chevron { transform: rotate(180deg); }
#amortization-schedule { display: none; margin-top: 14px; max-height: 280px; overflow-y: auto; }
#amortization-schedule::-webkit-scrollbar { width: 4px; }
#amortization-schedule::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.schedule-table th { position: sticky; top: 0; background: #5a2f0d; text-align: left; color: rgba(255,255,255,0.4); font-weight: 600; padding: 4px 0 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.schedule-table td { padding: 7px 0; color: rgba(255,255,255,0.75); border-bottom: 1px solid rgba(255,255,255,0.06); }
.schedule-table td:last-child, .schedule-table th:last-child { text-align: right; }
.about-card { margin-top: 28px; }
.about-card h4 { font-size: 1rem; font-weight: 700; color: #0B0B0B; margin-bottom: 12px; }
.about-card p { font-size: 0.875rem; color: #555; line-height: 1.7; }
.chart-growth-card { background: #fff; border-radius: 20px; border: 1px solid #e8edf5; padding: 24px 20px 12px; box-shadow: 0 2px 12px rgba(15,28,63,.05); margin-top: 24px; }
.chart-growth-title { font-size: .85rem; font-weight: 700; color: #444; margin-bottom: 4px; }
.formula-block { background: #f8f9fc; padding: 10px 14px; border-radius: 10px; font-family: monospace; font-size: 0.85rem; color: #d97a28; border: 1px solid #e8edf5; }
.formula-note { font-size: 0.8rem; color: #888; }
.chart-donut { margin: -4px -8px 8px; }
.breakdown-dot-principal { background: #F89E52; }
.breakdown-dot-interest { background: #3482FF; }
.breakdown-row-total { border-bottom: 1px solid rgba(255,255,255,0.15); }
.breakdown-label-total { color: #fff; font-weight: 700; }
.breakdown-dot-total { background: #fff; }
