/* === Aposentadoria === */
.apo-page .apo-app { padding: 20px; }
.apo-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.apo-input { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 14px; }
.apo-input label { display: block; font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.3px; }
.apo-num { display: flex; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 4px 12px; gap: 6px; }
.apo-num input { flex: 1; border: 0; outline: none; font-size: 22px; font-weight: 800; color: #15803d; text-align: right; padding: 6px 0; }
.apo-num input::-webkit-outer-spin-button, .apo-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.apo-num span { font-size: 13px; color: #94a3b8; font-weight: 600; }
.apo-num .left { padding-right: 4px; }
.apo-pills { display: flex; gap: 4px; background: #eef2fb; border-radius: 999px; padding: 4px; }
.apo-pills button { flex: 1; background: transparent; border: 0; padding: 8px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #5a6a8a; cursor: pointer; }
.apo-pills button.active { background: #15803d; color: #fff; }

.apo-result-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: linear-gradient(135deg, #16a34a 0%, #14532d 100%); color: #fff; border-radius: 18px; padding: 26px; margin-bottom: 22px; box-shadow: 0 10px 30px rgba(22,163,74,0.25); }
.apo-hero-icon { font-size: 56px; line-height: 1; }
.apo-hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; font-weight: 600; }
.apo-hero-value { font-size: 42px; font-weight: 900; line-height: 1.05; }
.apo-hero-sub { font-size: 14px; opacity: 0.9; margin-top: 4px; }
.apo-hero-falta { background: rgba(255,255,255,0.18); border-radius: 12px; padding: 12px 16px; text-align: center; }
.apo-hero-falta span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.9; display: block; }
.apo-hero-falta strong { font-size: 22px; font-weight: 900; }

.apo-timeline-wrap { margin-bottom: 22px; }
.apo-timeline-wrap h3, .apo-regras h3, .apo-benef h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: #0f172a; }
.apo-timeline { position: relative; padding: 22px 0 6px; }
.apo-timeline-bar { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.apo-timeline-fill { height: 100%; background: linear-gradient(90deg, #4ade80, #16a34a); border-radius: 999px; transition: width .5s; }
.apo-timeline-marker { position: absolute; top: -4px; transform: translateX(-50%); text-align: center; pointer-events: none; transition: left .5s; }
.apo-pin { font-size: 22px; display: block; }
.apo-pin-label { display: block; font-size: 10px; font-weight: 800; color: #15803d; background: #fff; padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 4px rgba(0,0,0,0.15); margin-top: 2px; }
.apo-timeline-end { position: absolute; right: -4px; top: 0; font-size: 22px; }
.apo-timeline-scale { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; font-weight: 600; margin-top: 14px; }

.apo-regras { margin-bottom: 22px; }
.apo-regras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apo-regra { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px; padding: 16px; }
.apo-regra.ok { border-color: #16a34a; background: #f0fdf4; }
.apo-regra-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.apo-regra-body { font-size: 14px; color: #475569; margin: 8px 0; line-height: 1.5; }
.apo-regra-progress { background: #e2e8f0; border-radius: 999px; height: 8px; overflow: hidden; }
.apo-regra-fill { height: 100%; background: linear-gradient(90deg, #fbbf24, #16a34a); border-radius: 999px; transition: width .5s; }

.apo-benef-card { background: #f8fafc; border-radius: 12px; padding: 16px 18px; }
.apo-benef-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: #475569; border-bottom: 1px solid #e2e8f0; }
.apo-benef-row strong { color: #0f172a; font-weight: 700; }
.apo-benef-total { font-size: 16px !important; padding-top: 12px !important; }
.apo-benef-total strong { font-size: 22px; color: #15803d; }
.apo-warn { font-size: 12px; color: #b45309; background: #fffbeb; border-left: 3px solid #f59e0b; padding: 10px 14px; border-radius: 8px; margin-top: 12px; }

.apo-content { margin-top: 20px; }
.apo-content h2 { margin-top: 0; }
.apo-content p { color: #475569; line-height: 1.7; margin: 0 0 14px; }

@media (max-width: 820px) {
  .apo-inputs { grid-template-columns: 1fr 1fr; }
  .apo-result-hero { grid-template-columns: 1fr; text-align: center; padding: 20px; }
  .apo-hero-value { font-size: 32px; }
  .apo-regras-grid { grid-template-columns: 1fr; }
}
