/* === Calculadora de IMC — visual exclusivo === */
.imc-page .imc-app { padding: 20px; }

/* Inputs grid */
.imc-inputs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.imc-input-card { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.imc-input-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 14px; color: #0f172a; }

.imc-num-wrap { position: relative; display: flex; align-items: center; }
.imc-num-wrap input { width: 100%; padding: 12px 42px 12px 14px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-size: 16px; font-weight: 600; color: #0f172a; }
.imc-num-wrap input:focus { outline: 2px solid #1f4fd8; outline-offset: 1px; border-color: #1f4fd8; }
.imc-num-wrap .imc-unit { position: absolute; right: 14px; font-size: 12px; color: #94a3b8; font-weight: 600; pointer-events: none; }
.imc-num-big input { font-size: 28px; font-weight: 800; padding: 16px 60px 16px 18px; text-align: center; color: #1f4fd8; }
.imc-num-big .imc-unit { right: 18px; font-size: 14px; }

.imc-range { width: 100%; margin-top: 14px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #cbd5e1, #1f4fd8); outline: none; }
.imc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #1f4fd8; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(31,79,216,0.35); cursor: pointer; }
.imc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #1f4fd8; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(31,79,216,0.35); cursor: pointer; }
.imc-range-marks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #94a3b8; font-weight: 600; }

.imc-input-extras .imc-pills { display: inline-flex; background: #eef2fb; border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 12px; }
.imc-input-extras .imc-pills button { background: transparent; border: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #5a6a8a; cursor: pointer; transition: all .15s; }
.imc-input-extras .imc-pills button.active { background: #1f4fd8; color: #fff; box-shadow: 0 2px 8px rgba(31,79,216,0.25); }
.imc-age-label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 10px; }
.imc-note { font-size: 11.5px; color: #94a3b8; line-height: 1.5; margin: 0; }

/* Stage: silhueta + resultado */
.imc-stage { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 18px; padding: 26px; margin-bottom: 22px; }

.imc-silhouette-wrap { display: flex; justify-content: center; align-items: center; min-height: 360px; }
.imc-silhouette-wrap svg { width: 100%; max-width: 240px; height: auto; display: block; transition: filter .3s; }
.imc-silhouette-wrap svg path, .imc-silhouette-wrap svg ellipse, .imc-silhouette-wrap svg circle { transition: fill .3s, transform .3s; }

.imc-result-block { display: flex; flex-direction: column; gap: 18px; }

.imc-result-hero { border-radius: 16px; padding: 22px 24px; color: #fff; text-align: center; transition: background .3s; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.imc-result-hero.cat-baixo  { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.imc-result-hero.cat-normal { background: linear-gradient(135deg, #34d399, #059669); }
.imc-result-hero.cat-sobre  { background: linear-gradient(135deg, #fbbf24, #d97706); }
.imc-result-hero.cat-ob1    { background: linear-gradient(135deg, #fb923c, #c2410c); }
.imc-result-hero.cat-ob2    { background: linear-gradient(135deg, #f87171, #b91c1c); }
.imc-result-hero.cat-ob3    { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.imc-result-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; font-weight: 600; }
.imc-result-value { font-size: 60px; font-weight: 900; line-height: 1; margin: 4px 0; letter-spacing: -2px; font-family: 'Inter', system-ui, sans-serif; }
.imc-result-class { font-size: 17px; font-weight: 700; opacity: 0.95; }

/* Régua */
.imc-ruler-wrap { position: relative; padding-top: 18px; }
.imc-ruler { display: flex; height: 26px; border-radius: 999px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.imc-ruler-seg { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); white-space: nowrap; padding: 0 6px; }
.seg-baixo  { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.seg-normal { background: linear-gradient(90deg, #34d399, #10b981); }
.seg-sobre  { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.seg-ob1    { background: linear-gradient(90deg, #fb923c, #ea580c); }
.seg-ob2    { background: linear-gradient(90deg, #f87171, #dc2626); }
.seg-ob3    { background: linear-gradient(90deg, #b91c1c, #7f1d1d); }

.imc-ruler-marker { position: absolute; top: 8px; transform: translateX(-50%); pointer-events: none; transition: left .35s cubic-bezier(.4,0,.2,1); }
.imc-ruler-pin { display: block; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 14px solid #0f172a; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.imc-ruler-pin::after { content: ''; display: block; position: absolute; top: -38px; left: -3px; width: 6px; height: 30px; background: #0f172a; border-radius: 3px; }

.imc-ruler-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #64748b; font-weight: 600; }

/* Faixas */
.imc-faixas-wrap { margin-bottom: 22px; }
.imc-faixas-wrap h3, .imc-ideal-wrap h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: #0f172a; }
.imc-faixas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.imc-faixa { background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 14px; transition: all .25s; position: relative; }
.imc-faixa.active { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.imc-faixa.active::after { content: '✓ Você'; position: absolute; top: -10px; right: 10px; background: #0f172a; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.imc-faixa-range { font-family: 'Courier New', monospace; font-size: 16px; font-weight: 800; }
.imc-faixa-name { font-size: 13px; font-weight: 700; margin-top: 4px; }
.imc-faixa-desc { font-size: 11.5px; color: #64748b; margin-top: 6px; line-height: 1.4; }
.imc-faixa.f-baixo  { border-color: #93c5fd; } .imc-faixa.f-baixo  .imc-faixa-range  { color: #1d4ed8; } .imc-faixa.f-baixo.active  { border-color: #1d4ed8; background: #eff6ff; }
.imc-faixa.f-normal { border-color: #6ee7b7; } .imc-faixa.f-normal .imc-faixa-range { color: #059669; } .imc-faixa.f-normal.active { border-color: #059669; background: #ecfdf5; }
.imc-faixa.f-sobre  { border-color: #fcd34d; } .imc-faixa.f-sobre  .imc-faixa-range  { color: #d97706; } .imc-faixa.f-sobre.active  { border-color: #d97706; background: #fffbeb; }
.imc-faixa.f-ob1    { border-color: #fdba74; } .imc-faixa.f-ob1    .imc-faixa-range    { color: #c2410c; } .imc-faixa.f-ob1.active    { border-color: #c2410c; background: #fff7ed; }
.imc-faixa.f-ob2    { border-color: #fca5a5; } .imc-faixa.f-ob2    .imc-faixa-range    { color: #b91c1c; } .imc-faixa.f-ob2.active    { border-color: #b91c1c; background: #fef2f2; }
.imc-faixa.f-ob3    { border-color: #f87171; } .imc-faixa.f-ob3    .imc-faixa-range    { color: #7f1d1d; } .imc-faixa.f-ob3.active    { border-color: #7f1d1d; background: #fef2f2; }

/* Peso ideal */
.imc-ideal-wrap { margin-bottom: 22px; }
.imc-ideal-card { background: #f8fafc; border-radius: 14px; padding: 20px; border: 2px solid #e2e8f0; }
.imc-ideal-range { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 16px; align-items: center; }
.imc-ideal-min, .imc-ideal-max { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.imc-ideal-min { text-align: left; }
.imc-ideal-max { text-align: right; }
.imc-ideal-label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.imc-ideal-val { font-size: 22px; font-weight: 800; color: #059669; font-family: 'Inter', system-ui, sans-serif; }
.imc-ideal-bar { position: relative; height: 12px; background: #e2e8f0; border-radius: 999px; }
.imc-ideal-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 999px; }
.imc-ideal-bar-now { position: absolute; top: -7px; transform: translateX(-50%); width: 4px; height: 26px; background: #0f172a; border-radius: 2px; transition: left .35s cubic-bezier(.4,0,.2,1); box-shadow: 0 2px 4px rgba(0,0,0,0.25); }
.imc-ideal-bar-now::after { content: ''; position: absolute; top: -3px; left: -4px; width: 12px; height: 12px; background: #0f172a; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.25); }
.imc-ideal-msg { text-align: center; margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.imc-ideal-msg.ok   { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.imc-ideal-msg.up   { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }
.imc-ideal-msg.down { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }

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

@media (max-width: 880px) {
  .imc-inputs-grid { grid-template-columns: 1fr; }
  .imc-stage { grid-template-columns: 1fr; padding: 18px; }
  .imc-silhouette-wrap svg { max-width: 200px; }
  .imc-result-value { font-size: 48px; }
  .imc-ruler-seg { font-size: 9px; }
  .imc-ideal-range { grid-template-columns: 1fr; gap: 12px; }
  .imc-ideal-min, .imc-ideal-max { text-align: center; }
  .imc-ideal-val { font-size: 18px; }
  .imc-num-big input { font-size: 22px; }
}
