/* ══════════════════════════════════════════════════════════
   MODO TESTE — LABORATÓRIO DE VALIDAÇÃO
══════════════════════════════════════════════════════════ */
.teste-shell {
  display: grid;
  gap: 18px;
}

.teste-banner-top {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(245, 158, 11, .13), rgba(245, 158, 11, .035)),
    rgba(20, 24, 32, .88);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 16px 44px rgba(245, 158, 11, .08);
}
.teste-banner-top.visible { display: flex; }
.teste-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, .11), 0 0 20px rgba(245, 158, 11, .55);
}

.teste-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  overflow: hidden;
  min-height: 310px;
  padding: 28px;
  border: 1px solid rgba(34, 197, 94, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 5%, rgba(34, 197, 94, .23), transparent 31%),
    radial-gradient(circle at 84% 13%, rgba(245, 158, 11, .22), transparent 28%),
    linear-gradient(135deg, rgba(15, 18, 25, .98), rgba(13, 16, 23, .94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

.teste-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .85), transparent 76%);
}

.teste-hero-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(48px);
}
.teste-hero-orb-a {
  inset: auto auto -120px -90px;
  width: 270px;
  height: 270px;
  background: rgba(34, 197, 94, .16);
}
.teste-hero-orb-b {
  inset: -120px -80px auto auto;
  width: 260px;
  height: 260px;
  background: rgba(245, 158, 11, .13);
}

.teste-hero-content,
.teste-hero-panel {
  position: relative;
  z-index: 1;
}

.teste-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.teste-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(34, 197, 94, .7);
}

.teste-hero h2 {
  max-width: 780px;
  margin: 12px 0;
  color: var(--text);
  font-size: clamp(29px, 4vw, 48px);
  line-height: .98;
  letter-spacing: -.055em;
}

.teste-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.78;
}

.teste-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.teste-master-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: min(100%, 390px);
  padding: 14px 15px 14px 17px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(20, 24, 32, .76);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.teste-master-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, .22);
  background: rgba(20, 24, 32, .92);
}
.teste-master-toggle.active {
  border-color: rgba(245, 158, 11, .32);
  box-shadow: 0 18px 48px rgba(245, 158, 11, .09);
}

.teste-master-copy strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}
.teste-master-copy small {
  display: block;
  margin-top: 4px;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 11px;
}

.teste-switch {
  width: 58px;
  height: 32px;
}
.teste-switch .slider {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .09);
}
.teste-switch .slider::before {
  width: 22px;
  height: 22px;
  left: 5px;
  bottom: 4px;
  background: linear-gradient(180deg, #fff, #d6d8dc);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.teste-switch input:checked + .slider {
  background: linear-gradient(135deg, var(--amber), #f97316);
  box-shadow: 0 0 24px rgba(245, 158, 11, .24);
}
.teste-switch input:checked + .slider::before { transform: translateX(25px); }

.teste-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .08);
  font-family: var(--mono);
  font-size: 11px;
}
.teste-status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 15px rgba(34, 197, 94, .65);
}
.teste-status-pill.active {
  border-color: rgba(245, 158, 11, .26);
  color: var(--amber);
  background: rgba(245, 158, 11, .09);
}
.teste-status-pill.active span {
  background: var(--amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, .65);
}

.teste-hero-panel {
  display: grid;
  align-content: space-between;
  min-height: 254px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: rgba(8, 11, 17, .48);
  backdrop-filter: blur(14px);
}

.teste-panel-top,
.teste-hero-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.teste-panel-top span,
.teste-hero-metrics span {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.teste-panel-top strong {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .1);
  font-family: var(--mono);
  font-size: 11px;
}
.teste-shell.active .teste-panel-top strong {
  color: var(--amber);
  background: rgba(245, 158, 11, .11);
}

.teste-radar {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 4px auto;
  display: grid;
  place-items: center;
}
.teste-radar span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 999px;
}
.teste-radar span:nth-child(2) { inset: 27px; border-color: rgba(245, 158, 11, .18); }
.teste-radar span:nth-child(3) { inset: 54px; border-color: rgba(255, 255, 255, .1); }
.teste-radar-core {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 20px;
  background: rgba(34, 197, 94, .1);
  font-size: 25px;
  box-shadow: 0 18px 45px rgba(34, 197, 94, .1);
}
.teste-shell.active .teste-radar-core {
  border-color: rgba(245, 158, 11, .3);
  background: rgba(245, 158, 11, .12);
  box-shadow: 0 18px 45px rgba(245, 158, 11, .12);
}

.teste-hero-metrics > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.teste-hero-metrics strong {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
}
.teste-hero-metrics span {
  display: block;
  margin-top: 7px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.teste-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.teste-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 24, 32, .88), rgba(15, 18, 25, .97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
}
.teste-allow-card { padding: 21px; }
.teste-guide-card {
  position: sticky;
  top: 86px;
  padding: 20px;
}

.teste-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.teste-card-head p {
  max-width: 590px;
  margin: -2px 0 0;
  color: var(--text3);
  font-size: 12px;
  line-height: 1.6;
}
.teste-count-badge {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .08);
  font-family: var(--mono);
  font-size: 10px;
}

.teste-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 18px 0 14px;
}
.teste-input-wrap {
  position: relative;
}
.teste-input-wrap span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  pointer-events: none;
}
.teste-input-wrap .inp {
  height: 42px;
  padding-left: 30px;
  border-radius: 13px;
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(8, 11, 17, .52);
}
.teste-add-btn {
  min-height: 42px;
  border-radius: 13px;
  padding-inline: 16px;
}

.teste-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  min-height: 132px;
  overflow: auto;
  padding: 4px 2px 4px 0;
}
.teste-list::-webkit-scrollbar { width: 7px; }
.teste-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.teste-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 130px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 15px;
  color: var(--text3);
  text-align: center;
  background: rgba(255, 255, 255, .02);
}
.teste-empty span { font-size: 24px; }
.teste-empty strong {
  color: var(--text2);
  font-size: 13px;
}
.teste-empty small {
  max-width: 270px;
  color: var(--text3);
  font-size: 11px;
  line-height: 1.5;
}

.num-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  background: rgba(8, 11, 17, .45);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.num-item:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, .18);
  background: rgba(34, 197, 94, .045);
}
.num-item::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, .1);
}
.num-remove {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all .14s ease;
}
.num-remove:hover {
  border-color: rgba(239, 68, 68, .3);
  color: var(--red);
  background: rgba(239, 68, 68, .09);
}

.teste-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.teste-actions .btn { border-radius: 12px; padding: 9px 14px; }
.teste-actions #saveMsgNumeros {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 11px;
}

.teste-guide-list {
  display: grid;
  gap: 10px;
}
.teste-guide-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .028);
}
.teste-guide-list span {
  grid-row: span 2;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}
.teste-guide-list strong {
  color: var(--text);
  font-size: 12px;
}
.teste-guide-list small {
  margin-top: 4px;
  color: var(--text3);
  font-size: 11px;
  line-height: 1.45;
}
.teste-example {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(34, 197, 94, .16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, .09), rgba(34, 197, 94, .025));
}
.teste-example span {
  display: block;
  margin-bottom: 7px;
  color: var(--text3);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.teste-example code {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .teste-hero,
  .teste-grid {
    grid-template-columns: 1fr;
  }
  .teste-guide-card { position: static; }
}

@media (max-width: 640px) {
  .teste-hero,
  .teste-allow-card,
  .teste-guide-card {
    padding: 18px;
    border-radius: 17px;
  }
  .teste-hero-actions,
  .teste-card-head,
  .teste-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .teste-master-toggle { min-width: 0; width: 100%; }
  .teste-add-row { grid-template-columns: 1fr; }
  .teste-hero-metrics { flex-direction: column; align-items: stretch; }
}
