/* FreeTools Hub - Salary Tax Calculator 2026-27 (PK / IN / PH) */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.site-header { background: linear-gradient(135deg, #1d4ed8, #7c3aed); color: #fff; padding: 40px 0 32px; }
.crumb { color: #dbeafe; text-decoration: none; font-size: .9rem; }
.crumb:hover { text-decoration: underline; }
.site-header h1 { font-size: 2rem; margin: 8px 0 4px; }
.site-header h1 .yr { font-size: 1.2rem; opacity: .85; font-weight: 600; }
.site-header .sub { opacity: .92; }
.estimate-badge { display: inline-block; margin-top: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: .9rem; }

main.wrap { padding-top: 28px; padding-bottom: 40px; }
.card { background: #fff; border-radius: 14px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 16px rgba(15,23,42,.06); }
.card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.small-note { font-size: .8rem; color: #64748b; font-weight: 400; }

/* Tabs */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { flex: 1; min-width: 150px; padding: 14px; border: 2px solid #e2e8f0; background: #fff; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; color: #475569; }
.tab.active { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }

/* Input */
.input-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.amount-wrap { flex: 1; min-width: 220px; display: flex; align-items: center; border: 2px solid #e2e8f0; border-radius: 12px; padding: 0 16px; background: #fff; }
.amount-wrap:focus-within { border-color: #1d4ed8; }
.cur { font-weight: 700; color: #64748b; margin-right: 8px; }
#salary { border: none; outline: none; font-size: 1.4rem; font-weight: 700; width: 100%; padding: 14px 0; color: #1e293b; background: transparent; }
.toggle { display: flex; border: 2px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.tog { border: none; background: #fff; padding: 14px 22px; font-weight: 700; cursor: pointer; color: #64748b; font-size: .95rem; }
.tog.active { background: #1d4ed8; color: #fff; }
.note { margin-top: 12px; font-size: .88rem; color: #64748b; }

/* Results */
.results { margin-bottom: 20px; }
.hero { text-align: center; background: linear-gradient(135deg, #1d4ed8, #7c3aed); color: #fff; }
.hero .label { display: block; opacity: .9; font-size: .95rem; margin-bottom: 6px; }
.hero strong { font-size: 2.6rem; letter-spacing: -1px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { text-align: center; margin-bottom: 0; }
.stat .label { display: block; font-size: .82rem; color: #64748b; margin-bottom: 6px; }
.stat strong { font-size: 1.35rem; color: #1d4ed8; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
th { color: #64748b; font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { border-bottom: none; border-top: 2px solid #e2e8f0; }
tr.special td { color: #166534; }
tr.special.neg td { color: #b91c1c; }

/* FAQ */
.faq { border-bottom: 1px solid #f1f5f9; padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 8px; color: #475569; font-size: .94rem; }
.faq a { color: #1d4ed8; }

.site-footer { text-align: center; padding: 24px 0 36px; color: #94a3b8; font-size: .85rem; }

@media (max-width: 640px) {
  .site-header h1 { font-size: 1.5rem; }
  .hero strong { font-size: 2rem; }
  .grid3 { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
}
