/* =============================================
   Calculadora de Netos — Pordata
   Stylesheet | calculadora_netos.css
   ============================================= */

:root {
  --primary: #004ccc;
  --primary-dark: #003a9e;
  --accent: #2abfd3;
  --accent-dark: #1fa3b5;
  --soft: #c6aeec;
  --soft-bg: #f1ebfb;
  --highlight: #00b99d;
  --highlight-dark: #008f78;
  --highlight-bg: #e6faf5;
  --bg: #f5f7fc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e0e7ff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 10px 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.shell {
  width: 100%;
  max-width: 880px;
}

/* ---- HERO BANNER ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #003a9e 0%, #004ccc 55%, #1565d8 100%);
  border-radius: 14px;
  padding: 22px 24px 24px;
  text-align: center;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0, 76, 204, 0.18);
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(42, 191, 211, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -70%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(198, 174, 236, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-q {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0;
}

.hero-q em {
  font-style: normal;
  color: #2abfd3;
}

@media (max-width: 700px) {
  .hero { padding: 60px 16px 18px; }
  .hero-q { font-size: 22px; }
}

/* ---- TABS ---- */
.tabs {
  display: flex;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 76, 204, 0.05);
}

.tab-btn {
  flex: 1;
  padding: 9px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--soft-bg);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 76, 204, 0.3);
}

.tab-btn .ti {
  vertical-align: -3px;
  margin-right: 6px;
  display: inline-block;
  color: var(--primary);
}

.tab-btn.active .ti {
  color: #fff;
}

/* ---- PANEL ---- */
.panel {
  display: none;
  position: relative;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 22px 26px;
  box-shadow: 0 8px 20px -5px rgba(0, 76, 204, 0.06);
}

.panel.active {
  display: block;
  animation: fade 0.35s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

h2.panel-title {
  font-size: 19px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 3px;
  text-align: center;
}

.panel-sub {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

.panel-sub-lg {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3px;
  min-height: 30px;
  justify-content: flex-end;
}

.panel-header .panel-title {
  flex: 1;
  margin-bottom: 0;
}

/* ---- FORM ELEMENTS ---- */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

select,
input[type="number"] {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

select:focus,
input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 191, 211, 0.2);
}

.form-group {
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; gap: 12px; }
}

/* ---- BUTTONS ---- */
.btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 6px;
}

.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.99); }

.btn-reset {
  flex-shrink: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: none;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-reset.visible { display: inline-flex; }
.btn-reset:hover { background: #fafbff; color: var(--primary); border-color: var(--accent); }
.btn-reset:active { transform: scale(0.97); }

@media (max-width: 520px) {
  .btn-reset { padding: 5px 8px; font-size: 11px; }
  .btn-reset .btn-reset-label { display: none; }
}

/* ---- METRICS ---- */
.metric-ico {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--accent);
}

.metric:nth-child(1) .metric-ico { color: var(--primary); }
.metric:nth-child(2) .metric-ico { color: var(--accent); }
.metric:nth-child(3) .metric-ico { color: #a48dd9; }
.metric:nth-child(4) .metric-ico { color: var(--highlight); }

.highlight-card .net-deco {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--highlight-dark);
  opacity: 0.85;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.2s;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 76, 204, 0.08);
  border-color: var(--accent);
}

.metric-t {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-v {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.highlight-card {
  grid-column: span 4;
  background: var(--highlight-bg);
  border: 1px solid #a8ecdb;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  margin-top: 4px;
}

.highlight-card .metric-t {
  color: var(--highlight-dark);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: auto;
  font-weight: 600;
  margin-bottom: 2px;
}

.highlight-card .sub {
  font-size: 11px;
  color: var(--highlight-dark);
  font-style: italic;
  margin: 2px 0 6px;
  opacity: 0.8;
}

.highlight-card .metric-v {
  font-size: 26px;
  color: var(--highlight-dark);
}

@media (max-width: 768px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .highlight-card { grid-column: span 2; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .highlight-card { grid-column: span 1; }
}

/* ---- RESULT BOXES ---- */
.result-box {
  display: none;
  margin-top: 14px;
  padding: 16px;
  background: var(--highlight-bg);
  border: 1px solid #a8ecdb;
  border-radius: 10px;
  text-align: center;
  animation: fade 0.3s ease;
}

.result-lab {
  font-size: 11px;
  font-weight: 600;
  color: var(--highlight-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--highlight-dark);
  margin: 6px 0;
}

.result-sub {
  font-size: 11px;
  color: var(--highlight-dark);
  opacity: 0.8;
}

.result-box.secondary {
  background: var(--soft-bg);
  border-color: var(--soft);
}

.result-box.secondary .result-lab,
.result-box.secondary .result-val,
.result-box.secondary .result-sub {
  color: var(--primary);
}

/* ---- SECTION ---- */
.section {
  border-top: 1px solid var(--bg);
  padding-top: 14px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.45;
  text-align: center;
}

.row3 {
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.row3 .form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.row3 .form-group:last-child { margin-bottom: 0; }

.row3 label {
  flex: 1;
  margin-bottom: 0;
}

.row3 input[type="number"] {
  width: 100px;
  text-align: center;
  padding: 8px 10px;
}

/* ---- INFO LINE ---- */
.info-line {
  background: var(--soft-bg);
  border-left: 4px solid var(--soft);
  padding: 9px 13px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--primary);
  display: none;
  margin-top: 6px;
}

/* ---- COUNTER ---- */
.counter {
  background: var(--soft-bg);
  border: 1px dashed var(--soft);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-bottom: 14px;
}

.counter span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.counter strong {
  font-size: 26px;
  color: var(--primary);
  font-weight: 800;
}

/* ---- TAB 3 LAYOUT ---- */
.t3-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 620px) {
  .t3-layout { grid-template-columns: 1fr; }
}

.t3-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t3-card {
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.t3-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(42, 191, 211, 0.1);
}

.t3-card-ico {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t3-card:nth-child(1) .t3-card-ico { background: #e8f0ff; color: var(--primary); }
.t3-card:nth-child(2) .t3-card-ico { background: #e6faf5; color: var(--highlight-dark); }
.t3-card:nth-child(3) .t3-card-ico { background: var(--soft-bg); color: #7c5cbf; }

.t3-card-body {
  flex: 1;
  min-width: 0;
}

.t3-card-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.t3-card-body-row label { margin-bottom: 2px; }

.t3-num-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.t3-num-grid .t3-num-col label { margin-bottom: 0; }

.t3-num-grid select.t3-num-select {
  width: auto !important;
  min-width: 180px !important;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .t3-num-grid { flex-direction: column; align-items: stretch; gap: 8px; }
  .t3-num-grid select.t3-num-select { width: 100% !important; }
}

.t3-num-select {
  width: auto !important;
  min-width: 110px !important;
  max-width: none !important;
  flex-shrink: 0;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  height: 48px !important;
}

/* Top row: nº filhos + botão */
.t3-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.t3-card-num { flex: 1; min-width: 0; }

.t3-top-row .btn-t3 {
  flex-shrink: 0;
  width: auto;
  padding: 14px 34px;
  font-size: 15px;
  align-self: center;
}

@media (max-width: 520px) {
  .t3-top-row { flex-direction: column; }
  .t3-top-row .btn-t3 { width: 100%; }
}

/* Campos inline dentro do card filho */
.t3-child-card .t3-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t3-inline-fields {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.t3-inline-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.t3-inline-field .t2-input {
  width: auto;
  min-width: 120px;
}

.btn-t3 {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(42, 191, 211, 0.3);
}

.btn-t3:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #188a9a 100%);
  box-shadow: 0 6px 16px rgba(42, 191, 211, 0.4);
}

.btn-t3:active { transform: scale(0.98); }

.t3-card-body label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.t3-card-body .t3-period {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.3px;
}

.t3-card-body input[type="number"] {
  width: 80px;
  text-align: center;
  padding: 7px 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.t3-card-body input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 191, 211, 0.18);
}

.t3-card-body select.t2-input,
.t3-card-body input.t2-input {
  width: 100%;
  max-width: 200px;
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.t3-card-body select.t2-input:focus,
.t3-card-body input.t2-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 191, 211, 0.18);
}

.t3-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 10px;
}

#t1 .t3-layout { align-items: stretch; }
#t1 .t3-right  { position: static; justify-content: center; }

.t3-btn-wrap { margin-top: 0; }

.t3-result-wrap {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: fade 0.3s ease;
}

.t3-result-wrap.visible { display: flex; }

.t3-res-card {
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.t3-res-card.primary-res { background: var(--highlight-bg); border: 1px solid #a8ecdb; }
.t3-res-card.secondary-res { background: var(--soft-bg); border: 1px solid var(--soft); }

.t3-res-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.t3-res-card.primary-res .t3-res-label { color: var(--highlight-dark); }
.t3-res-card.secondary-res .t3-res-label { color: var(--primary); }

.t3-res-val {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.t3-res-card.primary-res .t3-res-val { color: var(--highlight-dark); }
.t3-res-card.secondary-res .t3-res-val { color: var(--primary); }

.t3-placeholder {
  background: #f8faff;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.t3-placeholder svg { opacity: 0.35; margin-bottom: 8px; }

/* ---- T3 INPUTS ---- */
.t3-inputs {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

.t3-numctrl {
  background: var(--soft-bg);
  border: 1px dashed var(--soft);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.t3-numctrl .t3-numctrl-ico { color: var(--primary); opacity: 0.85; margin-bottom: 2px; }
.t3-numctrl label { margin-bottom: 0; color: var(--primary); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.t3-numctrl select { width: 100%; padding: 9px 12px; font-weight: 700; font-size: 14px; text-align: center; text-align-last: center; }

.t3-children-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.t3-children-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.t3-children-header .t3-head-spacer {
  flex-shrink: 0;
  min-width: 62px;
  padding: 6px 10px;
}

.t3-children-header .t3-head-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.t3-children-header .t3-head-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 2px;
}

.t3-children-header .t3-head-cell svg { color: var(--primary); opacity: 0.7; }

.t3-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.t3-child-row {
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.t3-child-row:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(42, 191, 211, 0.08);
}

.t3-child-tag {
  flex-shrink: 0;
  min-width: 62px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #e8f0ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.t3-child-tag svg { flex-shrink: 0; opacity: 0.85; }

.t3-child-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.t3-child-field select,
.t3-child-field input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
}

.t3-child-field select:focus,
.t3-child-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 191, 211, 0.18);
}

@media (max-width: 560px) {
  .t3-inputs { grid-template-columns: 1fr; gap: 10px; }
  .t3-numctrl { flex-direction: row; justify-content: center; padding: 10px 14px; gap: 12px; }
  .t3-numctrl .t3-numctrl-ico { margin-bottom: 0; }
  .t3-numctrl label { text-align: left; }
  .t3-numctrl select { width: auto; min-width: 140px; }
  .t3-children-header { display: none; }
  .t3-child-fields { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .t3-child-fields { grid-template-columns: 1fr; gap: 6px; }
  .t3-child-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .t3-child-tag { width: 100%; }
}

.t3-calc-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(42, 191, 211, 0.3);
  margin-bottom: 14px;
}

.t3-calc-btn:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #188a9a 100%);
  box-shadow: 0 6px 16px rgba(42, 191, 211, 0.4);
}

.t3-calc-btn:active { transform: scale(0.99); }

/* ---- RESULTS WRAP ---- */
.t3-results-wrap {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: fade 0.35s ease;
}

.t3-results-wrap.visible { display: flex; }

.t3-rcard {
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: #fff;
}

.t3-rcard.individual { background: var(--soft-bg); border-color: var(--soft); }

.t3-rcard h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.t3-rcard.individual h4 { color: var(--primary); }
.t3-rcard h4 .sub { font-size: 11.5px; font-weight: 500; opacity: 0.75; font-style: italic; }

.t3-mgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.t3-m {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px 14px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.t3-rcard.individual .t3-m { background: #fff; border-color: var(--soft); }
.t3-m:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 76, 204, 0.06); }

.t3-m-ico { display: flex; justify-content: center; align-items: center; height: 24px; }

.t3-rcard.individual .t3-m:nth-child(1) .t3-m-ico { color: var(--primary); }
.t3-rcard.individual .t3-m:nth-child(2) .t3-m-ico { color: var(--accent); }
.t3-rcard.individual .t3-m:nth-child(3) .t3-m-ico { color: #a48dd9; }
.t3-rcard.individual .t3-m:nth-child(4) .t3-m-ico { color: var(--highlight); }

.t3-m-label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t3-m-value { font-size: 20px; font-weight: 800; color: var(--primary); }

@media (max-width: 680px) { .t3-mgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .t3-mgrid { grid-template-columns: 1fr; } }

/* ---- GLOBAL SEPARATOR ---- */
.t3-global-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
  color: var(--highlight-dark);
}

.t3-global-sep::before,
.t3-global-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #a8ecdb, transparent);
}

.t3-global-sep span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- GLOBAL CARD ---- */
.t3-rcard.global {
  background: linear-gradient(135deg, var(--highlight-bg) 0%, #d6f5ea 100%);
  border: 2px solid var(--highlight);
  box-shadow: 0 8px 24px -6px rgba(0, 185, 157, 0.25);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}

.t3-rcard.global::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 185, 157, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.t3-rcard.global > * { position: relative; z-index: 1; }

.t3-rcard.global h4 {
  color: var(--highlight-dark);
  border-bottom-color: #a8ecdb;
  font-size: 15.5px;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.t3-rcard.global h4 .title-wrap { display: flex; align-items: center; gap: 8px; }
.t3-rcard.global h4 .title-wrap svg { color: var(--highlight-dark); flex-shrink: 0; }

.t3-rcard.global .t3-m { background: #fff; border-color: #a8ecdb; padding: 14px 8px 16px; }
.t3-rcard.global .t3-m:hover { box-shadow: 0 4px 12px rgba(0, 185, 157, 0.15); border-color: var(--highlight); }
.t3-rcard.global .t3-m-ico { color: var(--highlight-dark); }
.t3-rcard.global .t3-m-value { color: var(--highlight-dark); font-size: 22px; }
.t3-rcard.global .t3-m-label { color: var(--highlight-dark); opacity: 0.85; font-weight: 700; }

/* ---- PLACEHOLDER FULL ---- */
.t3-placeholder-full {
  background: #f8faff;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.t3-placeholder-full svg { opacity: 0.35; margin-bottom: 8px; }

/* ---- T3 UTILITY OVERRIDES (moved from inline HTML styles) ---- */
.t3-card-ico--primary { background: #e8f0ff; color: var(--primary); }
.t3-questions--spaced { margin: 14px 0; }
.t3-results-wrap--spaced { margin-top: 14px; }

/* ---- FOOTNOTE ---- */
.footnote {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 14px;
  text-align: justify;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.footnote strong { color: var(--primary); }
.footnote a { color: var(--primary); text-decoration: none; }
.footnote a:hover { text-decoration: underline; }
