/* Ultra-Lightweight Theme - 99 PageSpeed Score Optimized */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.5;color:#212529;background:#f5f5f5;padding:15px 10px}
.container{max-width:1100px;margin:0 auto}

/* Header - White Card */
.header{background:#fff;padding:12px 15px;margin-bottom:12px;border-radius:6px;text-align:center;border:1px solid #e0e0e0}
.language-switcher{display:flex;gap:6px;justify-content:center;margin-bottom:8px}
.lang-link{padding:4px 10px;border-radius:4px;text-decoration:none;font-size:12px;color:#333;border:1px solid #ddd;background:#fff}
.lang-link:hover{border-color:#1976d2}
.lang-link.active{background:#1976d2;color:#fff;border-color:#1976d2}
.main-title{font-size:20px;font-weight:600;margin-bottom:4px;color:#1976d2;line-height:1.2}
.subtitle{font-size:14px;font-weight:500;margin-bottom:4px;color:#666;line-height:1.2}
.description{font-size:12px;margin-bottom:8px;color:#777;max-width:650px;margin-left:auto;margin-right:auto;line-height:1.3}
.company-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:10px}
.company-badges .badge{background:#f5f5f5;border:1px solid #ddd;padding:5px 10px;border-radius:4px;font-size:11px;color:#555}
.tip{font-size:12px;color:#888;font-style:italic}
.coverage-list{font-size:11px;color:#777;line-height:1.4}

/* Two-Column Layout (Desktop: Side-by-Side, Mobile: Calculator First) */
.main-grid{display:grid;grid-template-columns:1fr;gap:15px;margin-bottom:15px}
@media (min-width:769px){
.main-grid{grid-template-columns:1fr 1fr}
.calculator-card{order:1}
.hero-card{order:2}
}
@media (max-width:768px){
.calculator-card{order:1}
.hero-card{order:2}
}

/* Cards - Simple */
.calculator-card,.hero-card,.graph-container,.share-section,.faq-section{background:#fff;border-radius:6px;padding:20px;margin-bottom:15px;border:1px solid #e0e0e0}
.section-label{display:block;font-size:13px;font-weight:600;color:#333;margin-bottom:10px;text-transform:uppercase;letter-spacing:0.3px}

/* Hero Card - SEO Content */
.hero-card h2{font-size:20px;font-weight:600;color:#1976d2;margin-bottom:12px}
.hero-card h3{font-size:16px;font-weight:600;color:#333;margin:15px 0 8px 0}
.hero-card p{font-size:13px;line-height:1.6;color:#666;margin-bottom:10px}
.hero-card ul{margin:10px 0 15px 20px}
.hero-card li{font-size:13px;line-height:1.6;color:#666;margin-bottom:5px}
.coverage-list{font-size:12px;color:#777;line-height:1.5}

/* Buttons - Compact Pills */
.department-section,.ratna-section{margin-bottom:15px}
.dept-buttons{display:flex;gap:8px;flex-wrap:wrap}
.dept-btn{flex:0 0 auto;min-width:95px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:0;padding:8px 12px;background:#fff;color:#333;border:1px solid #ddd;border-radius:20px;font-size:13px;font-weight:500;cursor:pointer}
.dept-btn:hover{border-color:#1976d2;background:#f5f5f5}
.dept-btn.active{background:#1976d2;color:#fff;border-color:#1976d2}
.dept-btn .btn-icon{display:none}
.dept-btn .btn-text{font-size:13px}
.ratna-btn{min-width:85px;padding:7px 12px}
#ratna-selector{display:none}
.info-badge{background:#e3f2fd;color:#1565c0;padding:10px;border-radius:4px;font-size:12px;text-align:center;margin-bottom:15px;border-left:3px solid #1976d2}

/* Inputs */
.calculator-inputs{display:flex;flex-direction:column;gap:15px}
.input-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}
.input-group{display:flex;flex-direction:column;gap:5px}
.input-group.full-width{grid-column:1/-1}
.input-label{font-size:12px;font-weight:500;color:#333}
.input-field,select{padding:8px 10px;border:1px solid #ddd;border-radius:4px;font-size:13px;color:#333;background:#fff;font-family:inherit}
.input-field:focus,select:focus{outline:none;border-color:#1976d2}
.slider{width:100%;height:5px;border-radius:3px;background:#ddd;outline:none;-webkit-appearance:none;cursor:pointer}
.slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#1976d2;cursor:pointer}
.slider::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#1976d2;cursor:pointer;border:none}
.fitment-display{font-weight:600;color:#1976d2;font-size:15px}
.slider-labels{display:flex;justify-content:space-between;margin-top:3px;font-size:10px;color:#999}

/* Calculate Button */
.calculate-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 20px;background:#1976d2;color:#fff;border:none;border-radius:6px;font-size:15px;font-weight:600;cursor:pointer;margin-top:8px}
.calculate-btn:hover{background:#1565c0}
.calculate-btn .btn-icon{font-size:18px}

/* Results */
.results-section{display:none;min-height:0;transition:none}
.results-section.visible{display:block}
.toggle-container{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:15px}
.toggle-label{font-size:12px;font-weight:500;color:#333}
.toggle-switch{display:flex;background:#f0f0f0;border-radius:5px;padding:2px;border:1px solid #ddd}
.toggle-btn{padding:5px 14px;border:none;background:transparent;color:#333;font-size:12px;font-weight:500;cursor:pointer;border-radius:4px}
.toggle-btn.active{background:#1976d2;color:#fff}

/* Result Cards */
.comparison-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:15px;margin-bottom:15px}
.result-card{background:#fff;border-radius:6px;border:1px solid #e0e0e0;overflow:hidden}
.result-card.current .card-header{background:#1976d2;color:#fff}
.result-card.projected .card-header{background:#7b1fa2;color:#fff}
.card-header{padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
.card-title{font-size:16px;font-weight:600}
.card-badge{padding:3px 8px;border-radius:3px;font-size:10px;font-weight:600;text-transform:uppercase;background:rgba(255,255,255,0.2)}
.card-body{padding:16px}
.salary-component{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f5f5f5}
.salary-component:last-child{border-bottom:none}
.component-label{font-size:13px;color:#666;font-weight:400}
.component-value{font-size:14px;color:#333;font-weight:600}
.component-value.large{font-size:18px;font-weight:700}
.salary-component.total{padding-top:12px;margin-top:8px;border-top:2px solid #ddd}
.salary-component.total .component-label{color:#333;font-weight:600}
.salary-component.total .component-value{font-size:16px;color:#1976d2}
.card-section.deductions{background:#fafafa;padding:16px;margin:0;border-top:1px solid #e0e0e0}
.section-title{font-size:12px;font-weight:600;color:#333;text-transform:uppercase;letter-spacing:0.3px;margin-bottom:10px}
.salary-component.negative .component-value{color:#d32f2f}
.card-footer{background:#263238;color:#fff;padding:16px}
.card-footer .component-label{color:rgba(255,255,255,0.7)}
.card-footer .component-value{color:#fff}
.salary-component.takehome .component-value{color:#4caf50;font-size:20px}

/* Increase Summary */
.increase-summary{display:flex;justify-content:center;gap:30px;background:#e8f5e9;border:1px solid #c8e6c9;border-radius:6px;padding:20px;margin-bottom:15px}
.increase-item{display:flex;flex-direction:column;align-items:center;gap:5px}
.increase-label{font-size:12px;color:#666;font-weight:500}
.increase-value{font-size:26px;font-weight:700}
.increase-value.positive{color:#388e3c}

/* Graph & Share */
.section-heading{font-size:18px;font-weight:600;color:#333;margin-bottom:15px;text-align:center}
#salary-graph{width:100%;height:400px;min-height:400px}
.graph-container{min-height:450px}
.share-buttons{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.share-btn{display:flex;align-items:center;gap:6px;padding:8px 16px;border:1px solid #ddd;border-radius:5px;background:#fff;color:#333;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit}
.share-btn:hover{background:#f5f5f5;border-color:#1976d2}
.share-btn.pdf{border-color:#d32f2f;color:#d32f2f}
.share-btn.pdf:hover{background:#d32f2f;color:#fff}
.share-btn.whatsapp{border-color:#25d366;color:#25d366}
.share-btn.whatsapp:hover{background:#25d366;color:#fff}
.share-btn.twitter{border-color:#1da1f2;color:#1da1f2}
.share-btn.twitter:hover{background:#1da1f2;color:#fff}

/* FAQ */
.faq-item{border-bottom:1px solid #e0e0e0}
.faq-item:last-child{border-bottom:none}
.faq-question{width:100%;display:flex;justify-content:space-between;align-items:center;padding:12px 0;background:none;border:none;text-align:left;cursor:pointer;font-family:inherit}
.faq-question:hover{color:#1976d2}
.faq-text{font-size:14px;font-weight:600;color:#333;flex:1}
.faq-icon{font-size:13px;color:#999}
.faq-answer{max-height:0;overflow:hidden}
.faq-answer.open{max-height:500px}
.faq-answer p{padding:0 0 12px 0;color:#666;line-height:1.6;font-size:13px}

/* Footer */
.footer{text-align:center;padding:25px 15px;background:#263238;color:rgba(255,255,255,0.8);border-radius:6px;margin-top:15px}
.disclaimer{font-size:12px;margin-bottom:10px}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:10px}
.footer-links a{color:rgba(255,255,255,0.8);text-decoration:none;font-size:12px}
.footer-links a:hover{color:#fff;text-decoration:underline}
.copyright{font-size:11px}

/* Quick Guide */
.quick-guide{background:#1976d2;border-radius:6px;padding:15px 20px;margin-bottom:15px}
.guide-title{color:#fff;font-size:15px;font-weight:600;margin:0 0 12px 0;text-align:center}
.guide-steps{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.guide-step{background:#fff;border-radius:5px;padding:8px 12px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:110px}
.step-number{width:26px;height:26px;background:#1976d2;color:#fff;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px}
.step-content{text-align:center}
.step-content strong{display:block;font-size:12px;font-weight:600;color:#333;margin-bottom:2px}
.step-content span{display:block;font-size:10px;color:#666}
.guide-arrow{color:#fff;font-size:18px;font-weight:700}

/* PF Config */
.pf-config-section{margin-top:15px;padding:15px;background:#fafafa;border-radius:5px;border:1px dashed #ddd}
.info-note{margin-top:10px;padding:8px 10px;background:#e1f5fe;border-left:3px solid#0277bd;border-radius:3px}
.info-note small{color:#01579b;font-size:11px;line-height:1.4}
.pf-note{display:none}
.pf-note.active{display:block}

/* Author/Review */
.review-section,.author-section{background:#fff;border-radius:6px;padding:20px;margin-bottom:15px;border:1px solid #e0e0e0;text-align:center}
.author-card{display:flex;gap:15px;align-items:flex-start;margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #e0e0e0}
.author-avatar{width:60px;height:60px;background:#1976d2;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.avatar-initial{font-size:28px;font-weight:700;color:#fff}
.author-content{flex:1;text-align:left}
.author-name{font-size:15px;font-weight:600;color:#333;margin-bottom:3px}
.author-title{font-size:13px;font-weight:500;color:#666;margin-bottom:6px}
.author-bio{color:#666;font-size:13px;line-height:1.5}

/* Mobile */
@media (max-width:768px){
body{padding:10px;font-size:16px}
.header{padding:12px;margin-bottom:12px}
.language-switcher{justify-content:flex-start;margin-bottom:8px}
.lang-link{padding:6px 12px;font-size:14px}
.main-title{font-size:24px;margin-bottom:6px}
.subtitle{font-size:16px;margin-bottom:6px}
.description{font-size:14px;margin-bottom:10px}
.coverage-list{font-size:13px;margin:5px 0!important}
.calculator-card{padding:20px}
.section-label{font-size:15px;margin-bottom:12px;font-weight:700}
.dept-buttons{justify-content:flex-start;gap:10px}
.dept-btn{min-width:100px;padding:10px 16px;font-size:15px}
.info-badge{padding:12px;font-size:14px;margin-bottom:16px}
.calculator-inputs{gap:18px}
.input-row{grid-template-columns:1fr;gap:18px}
.input-group.full-width{grid-column:1/-1}
.input-label{font-size:14px;font-weight:600;margin-bottom:6px}
.input-field,select{padding:12px 14px;font-size:16px;min-height:48px}
.calculate-btn{padding:16px 24px;font-size:18px;margin-top:12px;font-weight:700;min-height:56px}
.comparison-grid{grid-template-columns:1fr}
.increase-summary{flex-direction:column;gap:15px}
.share-buttons{flex-direction:column}
.guide-steps{flex-direction:column}
.guide-step{width:100%;max-width:220px}
.author-card{flex-direction:column;align-items:center;text-align:center}
.author-content{text-align:center}
.main-grid{grid-template-columns:1fr}
.hero-card{display:none}
}

/* Print */
@media print{
body{background:#fff}
.header,.share-section,.calculate-btn,.toggle-container{display:none}
.result-card{page-break-inside:avoid}
}
