:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #059669;
    --warning: #d97706;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.header { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
.logo-icon { font-size: 1.75rem; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; }
.logo-text span { color: var(--primary); }
.main-nav { display: flex; gap: 1.5rem; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: white; padding: 3rem 0; text-align: center; }
.hero h1 { font-family: 'Outfit', sans-serif; font-size: 2.5rem; margin-bottom: 0.75rem; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.categories { padding: 3rem 0; }
.category-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.calc-card { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: var(--text); border: 1px solid var(--border); transition: all 0.2s; display: flex; gap: 1rem; align-items: flex-start; position: relative; }
.calc-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.calc-icon { font-size: 2rem; flex-shrink: 0; }
.calc-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.calc-info p { font-size: 0.85rem; color: var(--text-muted); }
.calc-badge { position: absolute; top: 0.75rem; right: 0.75rem; background: var(--primary); color: white; font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 20px; font-weight: 600; }
.calculator-page { padding: 2rem 0; }
.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.calculator-container { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
@media (max-width: 900px) { .calculator-container { grid-template-columns: 1fr; } .info-panel { order: -1; } }
.calculator-main { background: var(--card-bg); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.calculator-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.calculator-title-icon { font-size: 2.5rem; }
.calculator-title h1 { font-family: 'Outfit', sans-serif; font-size: 1.75rem; }
.currency-selector { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0.75rem; background: #f1f5f9; border-radius: 8px; }
.currency-selector select { padding: 0.5rem; border-radius: 6px; border: 1px solid var(--border); font-size: 0.9rem; }
.calc-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; }
.input-wrapper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: white; }
.input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.input-wrapper input, .input-wrapper select { flex: 1; padding: 0.75rem; border: none; font-size: 1rem; outline: none; background: transparent; }
.input-wrapper .currency-symbol, .input-wrapper .unit { padding: 0.75rem; background: #f8fafc; color: var(--text-muted); font-weight: 500; }
.btn-calculate { background: var(--primary); color: white; border: none; padding: 1rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-calculate:hover { background: var(--primary-dark); }
.btn-reset { background: #f1f5f9; color: var(--text); border: none; padding: 1rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.result-section { margin-top: 1.5rem; }
.result-box { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: white; padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.result-label { font-size: 0.9rem; opacity: 0.9; margin-bottom: 0.25rem; }
.result-value { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 700; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.summary-card { background: #f8fafc; padding: 1rem; border-radius: 8px; text-align: center; }
.summary-card .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.summary-card .value { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 600; }
.summary-card.highlight { background: #dbeafe; }
.summary-card.success { background: #dcfce7; }
.progress-bar-container { margin-top: 1.5rem; }
.progress-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-size: 0.75rem; font-weight: 600; }
.progress-principal { background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; }
.progress-interest { background: #f97316; color: white; display: flex; align-items: center; justify-content: center; }
.monthly-breakup { margin-top: 1.5rem; }
.monthly-breakup h3, .monthly-breakup h4 { margin-bottom: 1rem; font-size: 1rem; }
.monthly-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.monthly-table th, .monthly-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.monthly-table th { background: #f8fafc; font-weight: 600; }
.monthly-table .total-row { background: #dcfce7; font-weight: 600; }
.monthly-table .year-row { background: #dbeafe; }
.view-toggle { display: flex; gap: 0.5rem; margin: 1.5rem 0 1rem; }
.toggle-btn { padding: 0.5rem 1rem; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.toggle-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.info-panel { display: flex; flex-direction: column; gap: 1rem; }
.info-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.info-card h3 { font-size: 0.95rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.info-card p { font-size: 0.85rem; color: var(--text-muted); }
.quick-ref-table { width: 100%; font-size: 0.8rem; }
.quick-ref-table td { padding: 0.4rem 0; }
.quick-ref-table td:last-child { text-align: right; font-weight: 500; }
.related-calcs { display: flex; flex-direction: column; gap: 0.5rem; }
.related-calc-link { color: var(--primary); text-decoration: none; font-size: 0.85rem; }
.related-calc-link:hover { text-decoration: underline; }
.faq-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.faq-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; margin-bottom: 1.5rem; }
.faq-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; padding: 1rem 1.25rem; background: white; border: none; text-align: left; font-size: 0.95rem; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { background: #f8fafc; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.footer { background: var(--text); color: white; padding: 2rem 0; text-align: center; margin-top: 3rem; }
.footer p { opacity: 0.8; font-size: 0.9rem; }
@media (max-width: 600px) {
    .hero h1 { font-size: 1.75rem; }
    .calculator-title h1 { font-size: 1.25rem; }
    .result-value { font-size: 1.5rem; }
    .main-nav { display: none; }
}
