/* NEMESIS — Dashboard & modais cyberpunk */

@keyframes cyber-border-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes cyber-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* —— Modais —— */
.query-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 999;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 240, 255, 0.06), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(189, 0, 255, 0.08), transparent 40%),
    rgba(2, 4, 14, 0.88);
  backdrop-filter: blur(10px) saturate(1.2);
}

.query-modal.open {
  display: flex;
}

.query-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.018) 2px,
    rgba(0, 240, 255, 0.018) 4px
  );
  opacity: 0.65;
}

.query-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(6, 10, 24, 0.98) 0%, rgba(2, 5, 16, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(189, 0, 255, 0.12) inset,
    0 0 48px rgba(0, 240, 255, 0.1),
    0 0 80px rgba(189, 0, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.72);
  scrollbar-width: thin;
  scrollbar-color: #00c8e8 #040812;
}

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

.query-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(rgba(0, 240, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 95%);
}

.query-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #bd00ff, #00f0ff, transparent);
  animation: cyber-border-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.query-card-checker {
  width: min(96vw, 1280px);
  max-width: 1280px;
}

.query-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.22);
  position: relative;
  z-index: 1;
}

.query-head-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.query-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #eefcff;
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.55),
    0 0 28px rgba(0, 240, 255, 0.2);
}

.query-head-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow:
    0 0 10px rgba(0, 240, 255, 0.22),
    inset 0 0 8px rgba(0, 240, 255, 0.08);
  background: rgba(0, 12, 24, 0.72);
}

.query-head-icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.query-close {
  width: auto;
  padding: 0.42rem 0.9rem;
  border-radius: 2px;
}

.query-card label {
  display: block;
  margin-top: 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
}

.query-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.query-row.renda-alta-sexo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  grid-template-columns: unset;
}

.query-card input[type="text"],
.query-card input[type="search"],
.query-card input[type="number"],
.query-card select,
.query-card textarea,
.checker-textarea {
  width: 100%;
  margin-top: 0;
  padding: 0.72rem 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 6, 18, 0.92);
  color: #e8fbff;
  font-family: Consolas, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checker-textarea {
  min-height: 140px;
  resize: vertical;
}

.query-card input:focus,
.query-card select:focus,
.query-card textarea:focus,
.checker-textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.35),
    0 0 22px rgba(0, 240, 255, 0.15),
    inset 0 0 28px rgba(0, 240, 255, 0.06);
}

.query-card .btn,
.query-card button.btn {
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

.query-card .btn-gold {
  background: linear-gradient(135deg, #ffe082 0%, #f5b942 35%, #c9922a 100%);
  color: #0a1020;
  border: 1px solid rgba(255, 220, 120, 0.55);
  box-shadow: 0 0 22px rgba(245, 185, 66, 0.28);
}

.query-card .btn-gold:hover {
  box-shadow: 0 0 32px rgba(245, 185, 66, 0.45);
  filter: brightness(1.06);
}

.query-card .btn-blue {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.35), rgba(0, 90, 180, 0.55));
  color: #e8faff;
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.2);
}

.query-card .btn-blue:hover {
  box-shadow: 0 0 28px rgba(0, 180, 255, 0.35);
  filter: brightness(1.08);
}

.btn-renda-homem,
.btn-renda-mulher {
  flex: 1;
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn-renda-homem:hover,
.btn-renda-mulher:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-renda-homem {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.btn-renda-mulher {
  background: linear-gradient(135deg, #f472b6, #db2777);
  border: 1px solid rgba(244, 114, 182, 0.55);
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.25);
}

.btn-renda-homem svg,
.btn-renda-mulher svg {
  flex-shrink: 0;
}

/* —— Resultados dentro dos modais —— */
.query-result,
.advanced-section,
.cnpj-section,
.cep-card,
.name-card,
.checker-status,
.checker-results,
.detect-summary {
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 8, 20, 0.72);
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.03);
}

.query-result {
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.query-result pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c8f5ff;
  font-size: 0.84rem;
  line-height: 1.4;
  font-family: Consolas, "Cascadia Mono", monospace;
}

.query-kv {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0.45rem;
  font-size: 0.88rem;
  margin-bottom: 0.28rem;
}

.query-kv strong {
  color: #67e8f9;
  letter-spacing: 0.04em;
}

.advanced-wrap {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.advanced-section,
.cnpj-section {
  padding: 0.72rem 0.82rem;
}

.advanced-title,
.cnpj-title {
  margin: 0 0 0.45rem;
  color: #a5f3fc;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.advanced-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.45rem;
  margin: 0.16rem 0;
  font-size: 0.86rem;
}

.advanced-row b {
  color: #7dd3fc;
  font-weight: 700;
}

.advanced-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.advanced-list li {
  font-size: 0.84rem;
  color: #d0f4ff;
  border-left: 2px solid rgba(0, 240, 255, 0.45);
  padding-left: 0.5rem;
}

.cep-results,
.name-results {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
  max-height: 56vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.cep-card,
.name-card {
  padding: 0.65rem 0.75rem;
}

.cep-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.cep-icon-wrap {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #67e8f9;
  flex-shrink: 0;
}

.cep-icon-wrap svg {
  width: 14px;
  height: 14px;
  display: block;
}

.cep-name,
.name-title {
  font-size: 0.89rem;
  font-weight: 700;
  color: #e8faff;
  line-height: 1.25;
}

.cep-cpf {
  font-size: 0.8rem;
  color: #7dd3fc;
}

.cep-address,
.name-meta-line {
  font-size: 0.82rem;
  color: #c4e8ff;
  line-height: 1.32;
}

.cep-address {
  margin: 0;
  padding-left: 2rem;
}

.name-meta-line {
  margin: 0.12rem 0;
}

.cep-meta,
.name-count,
.cep-empty {
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  color: #a5d8ff;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(0, 8, 20, 0.65);
}

.cep-empty {
  margin-top: 0.75rem;
  padding: 0.75rem;
}

.cnpj-wrap {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.cnpj-row {
  margin: 0.16rem 0;
  font-size: 0.84rem;
  color: #d0f0ff;
  line-height: 1.35;
}

.cnpj-row strong {
  color: #7dd3fc;
}

.photo-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.photo-card {
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 2px;
  background: rgba(0, 8, 20, 0.72);
  padding: 0.6rem;
}

.photo-card h5 {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  color: #a5f3fc;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-box {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 4, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-empty {
  color: #7da8c8;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
}

.result-actions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

/* —— Checker / Detect / Separador —— */
.checker-status {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  color: #a5d8ff;
  position: relative;
  z-index: 1;
}

.checker-status strong {
  color: #e0faff;
}

.checker-results {
  margin-top: 0.75rem;
  max-height: 42vh;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  position: relative;
  z-index: 1;
}

.checker-line {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #d8f4ff;
  border-left: 2px solid rgba(0, 240, 255, 0.5);
  padding-left: 0.55rem;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: Consolas, "Cascadia Mono", monospace;
}

.checker-line:last-child {
  margin-bottom: 0;
}

.checker-line.is-live {
  border-left-color: #34d399;
  box-shadow: -4px 0 12px rgba(52, 211, 153, 0.15);
}

.checker-line.is-die {
  border-left-color: #f87171;
  box-shadow: -4px 0 12px rgba(248, 113, 113, 0.12);
}

.detect-summary {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: #c8e4ff;
  position: relative;
  z-index: 1;
}

.detect-summary strong {
  color: #e0faff;
}

.detect-filters {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.detect-filter {
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 8, 22, 0.9);
  color: #bae6fd;
  border-radius: 2px;
  padding: 0.38rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.detect-filter:hover {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

.detect-filter.active {
  border-color: rgba(0, 240, 255, 0.85);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(189, 0, 255, 0.2));
  color: #fff;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.2);
}

.checker-actions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .checker-actions {
    grid-template-columns: 1fr;
  }
}

.query-card button[type="submit"][disabled],
.query-card input[type="submit"][disabled],
.query-card .btn-renda-homem[disabled],
.query-card .btn-renda-mulher[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

/* —— Toast —— */
.copy-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 1200;
  background: linear-gradient(135deg, rgba(0, 180, 120, 0.95), rgba(0, 120, 80, 0.95));
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ecfff5;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* —— Dashboard seções & tiles —— */
.dashboard-section-title {
  margin: 0 0 0.35rem;
  padding-left: 0.7rem;
  border-left: 3px solid #00f0ff;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #67e8f9;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}

.dashboard-section-title.modulos-title {
  margin-top: 0.65rem;
}

.dashboard-tools-block,
.dashboard-modules-block {
  width: 100%;
  flex-shrink: 0;
}

.dashboard-page .dashboard-tools-block .grid-tools {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.dashboard-page .module-tile {
  border-color: rgba(0, 240, 255, 0.18);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(4, 10, 26, 0.92), rgba(2, 6, 16, 0.95));
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.03);
}

.tile-favorite {
  position: absolute;
  left: 0.2rem;
  top: 0.1rem;
  z-index: 3;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.18s ease;
}

/* nemesis.css aplica cor/tamanho em todo .module-tile span — sobrescreve só a estrela */
.dashboard-page .module-tile .tile-favorite-icon {
  display: inline !important;
  margin-top: 0 !important;
  font-size: 2.5rem !important;
  line-height: 1 !important;
  text-shadow: none !important;
  filter: none !important;
  color: rgba(100, 120, 145, 0.35) !important;
}

.dashboard-page .module-tile.is-favorited .tile-favorite-icon,
.dashboard-page .module-tile .tile-favorite[aria-pressed="true"] .tile-favorite-icon {
  color: #ffc800 !important;
  text-shadow: none !important;
  filter: none !important;
}

.tile-favorite:hover {
  transform: scale(1.05);
}

.dashboard-page .module-tile .tile-favorite:hover .tile-favorite-icon {
  color: rgba(140, 160, 185, 0.5) !important;
}

.dashboard-page .module-tile.is-favorited .tile-favorite:hover .tile-favorite-icon,
.dashboard-page .module-tile .tile-favorite[aria-pressed="true"]:hover .tile-favorite-icon {
  color: #ffd633 !important;
}

@keyframes favToastPopIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.88);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes favToastPopOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.92);
  }
}

.dashboard-fav-toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(14px) scale(0.88);
  z-index: 12000;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: min(88vw, 380px);
  padding: 0.42rem 0.78rem 0.42rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 0, 0.28);
  background: rgba(7, 12, 24, 0.94);
  color: #e8f1ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.dashboard-fav-toast-star {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
  color: #ffc800;
}

.dashboard-fav-toast.is-remove .dashboard-fav-toast-star {
  color: rgba(150, 170, 195, 0.75);
}

.dashboard-fav-toast-text {
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-fav-toast.show {
  visibility: visible;
  animation: favToastPopIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dashboard-fav-toast.show.is-leaving {
  animation: favToastPopOut 0.26s ease forwards;
}

.dashboard-fav-toast[hidden] {
  display: inline-flex !important;
}

.email-sep-provedor-row,
.email-sep-delim-row {
  margin-top: 0.55rem;
  position: relative;
  z-index: 1;
}

.email-sep-provedor-row input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 8, 22, 0.92);
  color: #e8f1ff;
}

.email-sep-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.88);
}

.email-sep-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.email-sep-result-bar .email-sep-status {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.email-sep-result-bar #separadorEmailDownload {
  width: auto;
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}

.email-sep-preview-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  opacity: 0.85;
}

.dashboard-page .module-tile::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 240, 255, 0.14), transparent 50%),
    radial-gradient(circle at 88% 100%, rgba(189, 0, 255, 0.08), transparent 45%);
}

.dashboard-page .module-tile:hover {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.45);
}

.dashboard-page .module-label {
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.module-tile.module-disabled {
  opacity: 0.78;
  cursor: not-allowed;
}

.module-tile.module-disabled .module-status {
  color: #ff9ea5;
}

.module-expired-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff6d78;
  box-shadow: 0 0 10px rgba(255, 109, 120, 0.65);
}

/* —— Shell cyber: topbar, sidebar, rodapé —— */
body.dashboard-page .topbar {
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.99), rgba(2, 5, 14, 0.97));
  border-bottom: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.42),
    inset 0 -1px 0 rgba(0, 240, 255, 0.06);
}

body.dashboard-page .topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
  z-index: 0;
}

body.dashboard-page .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.22), rgba(189, 0, 255, 0.14), transparent);
}

body.dashboard-page .topbar-logo {
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.18)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

body.dashboard-page .sidebar-menu {
  background: linear-gradient(180deg, rgba(3, 6, 16, 0.99), rgba(2, 4, 11, 0.99));
  border-right: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow:
    inset -1px 0 0 rgba(0, 240, 255, 0.05),
    10px 0 32px rgba(0, 0, 0, 0.38);
  padding: 0.8rem 0.68rem;
}

body.dashboard-page .sidebar-user-box {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.68rem 0.72rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: linear-gradient(180deg, rgba(4, 10, 26, 0.95), rgba(2, 6, 16, 0.98));
  box-shadow:
    inset 0 0 28px rgba(0, 240, 255, 0.04),
    0 0 18px rgba(0, 240, 255, 0.04);
  overflow: hidden;
}

body.dashboard-page .sidebar-user-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.85;
}

body.dashboard-page .sidebar-user-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #bd00ff, transparent);
  opacity: 0.75;
  pointer-events: none;
}

body.dashboard-page .sidebar-user-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin: 0.32rem 0;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

body.dashboard-page .sidebar-user-row:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

body.dashboard-page .sidebar-user-text {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: #e8faff;
  line-height: 1.3;
}

body.dashboard-page .sidebar-user-text strong {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 0.14rem;
}

/* Icones sidebar — caixa neon unificada (substitui webp antigos) */
body.dashboard-page .sidebar-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.38);
  background: linear-gradient(145deg, rgba(0, 18, 36, 0.95), rgba(0, 8, 20, 0.98));
  box-shadow:
    0 0 14px rgba(0, 240, 255, 0.14),
    inset 0 0 10px rgba(0, 240, 255, 0.06);
  color: #7dd3fc;
}

body.dashboard-page .sidebar-icon-box svg {
  width: 1.08rem;
  height: 1.08rem;
  display: block;
}

body.dashboard-page .sidebar-icon-box-sm {
  width: 1.65rem;
  height: 1.65rem;
}

body.dashboard-page .sidebar-icon-box-sm svg {
  width: 0.92rem;
  height: 0.92rem;
}

body.dashboard-page .sidebar-icon-box-user {
  color: #7dd3fc;
  border-color: rgba(0, 240, 255, 0.42);
}

body.dashboard-page .sidebar-icon-box-time {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.42);
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.12), inset 0 0 8px rgba(252, 211, 77, 0.05);
}

body.dashboard-page .sidebar-icon-box-status {
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.12), inset 0 0 8px rgba(94, 234, 212, 0.05);
}

body.dashboard-page .sidebar-icon-box-key {
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.45);
  box-shadow: 0 0 12px rgba(253, 230, 138, 0.14), inset 0 0 8px rgba(253, 230, 138, 0.05);
}

body.dashboard-page .sidebar-icon-box-admin {
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.42);
  box-shadow: 0 0 12px rgba(196, 181, 253, 0.12), inset 0 0 8px rgba(196, 181, 253, 0.05);
}

body.dashboard-page .sidebar-icon-box-logout {
  color: #fda4af;
  border-color: rgba(253, 164, 175, 0.45);
  box-shadow: 0 0 12px rgba(253, 164, 175, 0.12), inset 0 0 8px rgba(253, 164, 175, 0.05);
}

body.dashboard-page .sidebar-icon-box-activate {
  color: #fde047;
  border-color: rgba(253, 224, 71, 0.4);
}

body.dashboard-page .sidebar-icon-box-buy {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.4);
}

body.dashboard-page .status-active {
  color: #5eead4;
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.35);
}

body.dashboard-page .sidebar-nav-panel {
  position: relative;
  padding: 0.62rem 0.58rem 0.68rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: linear-gradient(180deg, rgba(3, 8, 22, 0.92), rgba(2, 5, 14, 0.96));
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.03);
}

body.dashboard-page .sidebar-title {
  margin: 0 0 0.55rem;
  padding-left: 0.55rem;
  border-left: 3px solid #00f0ff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #67e8f9;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
  opacity: 1;
}

body.dashboard-page .sidebar-link {
  padding: 0.62rem 0.68rem;
  margin-bottom: 0.38rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: linear-gradient(180deg, rgba(4, 10, 26, 0.88), rgba(2, 6, 16, 0.94));
  color: #e8faff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

body.dashboard-page .sidebar-link:hover {
  border-color: rgba(0, 240, 255, 0.55);
  background: linear-gradient(180deg, rgba(6, 16, 36, 0.95), rgba(3, 10, 24, 0.98));
  box-shadow:
    0 0 18px rgba(0, 240, 255, 0.12),
    inset 0 0 24px rgba(0, 240, 255, 0.05);
  transform: translateY(-1px);
}

body.dashboard-page .sidebar-item:has(.sidebar-submenu.open) > .sidebar-link {
  border-color: rgba(0, 240, 255, 0.52);
  box-shadow:
    0 0 16px rgba(0, 240, 255, 0.1),
    inset 0 0 22px rgba(0, 240, 255, 0.05);
}

body.dashboard-page .sidebar-link:hover .sidebar-icon-box {
  border-color: rgba(0, 240, 255, 0.62);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2), inset 0 0 12px rgba(0, 240, 255, 0.08);
  filter: brightness(1.08);
}

body.dashboard-page .sidebar-logout:hover .sidebar-icon-box-logout {
  border-color: rgba(253, 164, 175, 0.7);
  box-shadow: 0 0 16px rgba(253, 164, 175, 0.22);
}

body.dashboard-page .menu-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: #67e8f9;
  opacity: 0.92;
  transition: transform 0.2s ease;
}

body.dashboard-page .menu-caret svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

body.dashboard-page .sidebar-item:has(.sidebar-submenu.open) .menu-caret {
  transform: rotate(180deg);
}

body.dashboard-page .sidebar-submenu {
  margin: 0.15rem 0 0.35rem;
  padding: 0.35rem 0 0.15rem 0.55rem;
  border-left: 2px solid rgba(0, 240, 255, 0.35);
}

body.dashboard-page .sidebar-sublink {
  display: block;
  width: 100%;
  padding: 0.52rem 0.62rem;
  margin-bottom: 0.3rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  background: rgba(0, 8, 20, 0.72);
  color: #d0f4ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.dashboard-page .sidebar-sublink-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.dashboard-page .sidebar-sublink:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 16, 32, 0.88);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.1);
}

body.dashboard-page .sidebar-logout {
  margin-top: 0.15rem;
  border-color: rgba(255, 109, 120, 0.35);
  background: linear-gradient(180deg, rgba(28, 8, 14, 0.88), rgba(16, 4, 8, 0.94));
}

body.dashboard-page .sidebar-logout:hover {
  border-color: rgba(255, 109, 120, 0.62);
  box-shadow: 0 0 18px rgba(255, 109, 120, 0.14);
}

body.dashboard-page .sidebar-link-admin:hover .sidebar-icon-box-admin {
  border-color: rgba(196, 181, 253, 0.65);
  box-shadow: 0 0 16px rgba(196, 181, 253, 0.2);
}

body.dashboard-page .sidebar-activate-box {
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 6, 18, 0.92);
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.04);
}

body.dashboard-page .sidebar-activate-box label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

body.dashboard-page .sidebar-activate-box input {
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 6, 18, 0.92);
  font-family: Consolas, "Cascadia Mono", monospace;
}

body.dashboard-page .sidebar-activate-box input:focus {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.25), 0 0 18px rgba(0, 240, 255, 0.12);
}

body.dashboard-page .dashboard-footer-bar {
  position: relative;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.97), rgba(2, 4, 12, 0.99));
  border-top: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

body.dashboard-page .dashboard-footer-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #bd00ff, transparent);
  opacity: 0.7;
  pointer-events: none;
}

body.dashboard-page .dashboard-footer-tagline {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5f3fc;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

body.dashboard-page .dashboard-footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #8ecae6;
}

body.dashboard-page .dashboard-footer-copy-row .tg-link {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 140, 200, 0.45), rgba(0, 70, 140, 0.55));
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.18);
}

/* —— Login & cadastro cyber —— */
body.auth-page {
  background:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(0, 240, 255, 0.07), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(189, 0, 255, 0.08), transparent 38%),
    linear-gradient(165deg, #050a14 0%, #02050c 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

body.auth-page .page-wrap {
  padding-bottom: calc(78px + 1rem);
}

body.auth-page .brand-logo {
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.16)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.42));
}

body.auth-page .card {
  max-width: 460px;
  padding: 1.45rem 1.5rem 1.55rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(6, 10, 24, 0.98) 0%, rgba(2, 5, 16, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(189, 0, 255, 0.1) inset,
    0 0 48px rgba(0, 240, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}

body.auth-page .card::before {
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.45), rgba(189, 0, 255, 0.2), rgba(255, 224, 130, 0.25));
}

body.auth-page .card::after {
  display: none;
}

body.auth-page .card > * {
  position: relative;
  z-index: 1;
}

body.auth-page .auth-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #eefcff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

body.auth-page .auth-card-subtitle {
  font-size: 0.78rem;
  color: #8ecae6;
  letter-spacing: 0.02em;
}

body.auth-page label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #67e8f9;
}

body.auth-page input[type="text"],
body.auth-page input[type="password"] {
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 6, 18, 0.92);
  font-family: Consolas, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.88rem;
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.04);
}

body.auth-page input:focus {
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.3),
    0 0 20px rgba(0, 240, 255, 0.14),
    inset 0 0 28px rgba(0, 240, 255, 0.06);
  transform: none;
}

body.auth-page .toggle-password {
  border-radius: 2px;
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 10, 24, 0.9);
  color: #67e8f9;
}

body.auth-page .btn {
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.auth-page .btn-gold {
  background: linear-gradient(135deg, #ffe082 0%, #f5b942 35%, #c9922a 100%);
  color: #0a1020;
  border: 1px solid rgba(255, 220, 120, 0.55);
  box-shadow: 0 0 22px rgba(245, 185, 66, 0.28);
}

body.auth-page .btn-gold:hover {
  box-shadow: 0 0 32px rgba(245, 185, 66, 0.42);
}

body.auth-page .btn-blue {
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.35), rgba(0, 90, 180, 0.55));
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.2);
}

body.auth-page .remember-row {
  color: #9ecfe8;
  font-size: 0.8rem;
}

body.auth-page .remember-row input[type="checkbox"] {
  accent-color: #00e5ff;
}

body.auth-page .signup-block {
  color: #8ecae6;
}

body.auth-page .inline-login-link {
  color: #67e8f9;
}

body.auth-page .links-row .buy-key-btn,
body.auth-page .links-row a {
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.auth-page .links-row .buy-key-btn {
  border-color: rgba(255, 220, 120, 0.55);
  background: linear-gradient(135deg, rgba(120, 90, 30, 0.95), rgba(70, 52, 16, 0.98));
  box-shadow: 0 0 16px rgba(245, 185, 66, 0.18);
}

body.auth-page .alert {
  border-radius: 2px;
  font-size: 0.82rem;
}

body.auth-page .alert-error {
  border-color: rgba(255, 109, 120, 0.45);
  background: rgba(40, 8, 14, 0.72);
  color: #fecdd3;
}

body.auth-page .alert-success {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(6, 32, 22, 0.72);
  color: #bbf7d0;
}

body.auth-page .auth-footer-bar {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0.5rem 1rem 0.58rem;
  margin-top: 0;
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.97), rgba(2, 4, 12, 0.99));
  border-top: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

body.auth-page .auth-footer-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #bd00ff, transparent);
  opacity: 0.7;
  pointer-events: none;
}

body.auth-page .auth-footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
}

body.auth-page .auth-footer-tagline {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5f3fc;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

body.auth-page .auth-footer-copy-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #8ecae6;
}

body.auth-page .auth-footer-copy-row .tg-link {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 140, 200, 0.45), rgba(0, 70, 140, 0.55));
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.18);
}

/* —— BIN STORE —— */
.bin-store-status {
  margin-top: 0.75rem;
}

.bin-store-progress-wrap {
  margin-top: 0.15rem;
}

.bin-store-progress-label {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: #a5f3fc;
  letter-spacing: 0.05em;
}

.bin-store-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 12, 28, 0.85);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}

.bin-store-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b8d9 0%, #00f0ff 45%, #ffd633 100%);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
  transition: width 0.28s linear;
}

.bin-store-progress-pct {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #67e8f9;
  text-align: right;
}

.bin-store-results {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.65rem;
  max-height: 52vh;
  overflow: auto;
  padding-right: 0.15rem;
}

.bin-store-results-head {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  color: #a5f3fc;
  letter-spacing: 0.04em;
}

.bin-store-card {
  padding: 0.75rem 0.82rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 8, 20, 0.72);
  box-shadow: inset 0 0 28px rgba(0, 240, 255, 0.03);
}

.bin-store-card-body {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.bin-store-card-main {
  flex: 1;
  min-width: 0;
}

.bin-store-card-photo {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bin-store-bot-photo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
  background: rgba(0, 12, 28, 0.8);
}

.bin-store-photo-empty {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  background: rgba(0, 12, 28, 0.55);
}

.bin-store-card-head {
  margin-bottom: 0.45rem;
}

.bin-store-bot-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8faff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.bin-store-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.bin-store-metric {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.55rem;
  border-radius: 2px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: #c8f5ff;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 12, 28, 0.65);
}

.bin-store-metric strong {
  margin-right: 0.28rem;
  color: #67e8f9;
  font-weight: 800;
}

.bin-store-metric-full {
  border-color: rgba(255, 200, 0, 0.35);
  background: rgba(40, 28, 0, 0.45);
}

.bin-store-metric-full strong {
  color: #ffd633;
}

.bin-store-open-btn {
  width: auto;
  display: inline-flex;
  padding: 0.48rem 0.9rem;
  text-decoration: none;
}

/* —— Estimativa de Compra —— */
.query-card-estimativa {
  width: min(92vw, 640px);
}

.estimativa-intro {
  margin-bottom: 0.65rem;
}

.estimativa-result {
  margin-top: 0.85rem;
}

.estimativa-result-animate {
  animation: estimativaReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.estimativa-identity {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 8, 20, 0.65);
}

.estimativa-kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  font-size: 0.82rem;
  align-items: baseline;
}

.estimativa-kv span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

.estimativa-kv strong {
  color: #e8faff;
  font-weight: 700;
  word-break: break-word;
}

.estimativa-gauge-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.estimativa-gauge {
  position: relative;
  width: min(100%, 220px);
  margin: 0 auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.15));
}

.estimativa-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.estimativa-gauge-track {
  fill: none;
  stroke: rgba(0, 240, 255, 0.1);
  stroke-width: 14;
}

.estimativa-gauge-progress {
  fill: none;
  stroke: url(#estimativaGaugeGrad);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.estimativa-gauge-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.estimativa-gauge-score {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #eefcff;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.estimativa-gauge-tier {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
}

.estimativa-gauge.estimativa-tier-high .estimativa-gauge-score {
  color: #fde68a;
  text-shadow: 0 0 20px rgba(245, 185, 66, 0.4);
}

.estimativa-gauge.estimativa-tier-good .estimativa-gauge-score {
  color: #a5f3fc;
}

.estimativa-gauge.estimativa-tier-mid .estimativa-gauge-score {
  color: #7dd3fc;
}

.estimativa-gauge.estimativa-tier-low .estimativa-gauge-score {
  color: #fda4af;
}

.estimativa-gauge.estimativa-tier-verylow .estimativa-gauge-score {
  color: #f87171;
}

.estimativa-range-box {
  padding: 0.75rem 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(245, 185, 66, 0.35);
  background: linear-gradient(145deg, rgba(40, 30, 8, 0.55), rgba(12, 10, 4, 0.75));
  box-shadow: inset 0 0 24px rgba(245, 185, 66, 0.06);
}

.estimativa-range-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fcd34d;
  margin-bottom: 0.35rem;
}

.estimativa-range-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fde68a;
  line-height: 1.25;
  text-shadow: 0 0 14px rgba(245, 185, 66, 0.25);
}

.estimativa-range-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #c4e8ff;
  opacity: 0.9;
}

.estimativa-factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.estimativa-factor {
  padding: 0.45rem 0.55rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  background: rgba(0, 6, 18, 0.72);
  font-size: 0.74rem;
}

.estimativa-factor span {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 0.12rem;
}

.estimativa-factor strong {
  color: #d0f4ff;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.estimativa-disclaimer {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 2px;
  border: 1px dashed rgba(0, 240, 255, 0.22);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #9ecfe8;
  background: rgba(0, 8, 20, 0.45);
}

@media (max-width: 560px) {
  .estimativa-gauge-wrap {
    grid-template-columns: 1fr;
  }

  .estimativa-factors {
    grid-template-columns: 1fr;
  }

  .estimativa-kv {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* —— Painel Admin cyber —— */
body.admin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(0, 240, 255, 0.07), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(189, 0, 255, 0.08), transparent 38%),
    linear-gradient(165deg, #050a14 0%, #02050c 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

body.admin-page .admin-topbar {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: calc(0.72rem + env(safe-area-inset-top, 0px)) max(1.15rem, env(safe-area-inset-right, 0px)) 0.55rem max(1.15rem, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.99), rgba(2, 5, 14, 0.97));
  border-bottom: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.42);
}

body.admin-page .admin-topbar .topbar-logo-wrap {
  margin: 0;
}

body.admin-page .admin-topbar .topbar-logo {
  max-height: 3.1rem;
  max-width: min(320px, 42vw);
}

body.admin-page .admin-topnav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

body.admin-page .admin-nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.32);
  background: linear-gradient(180deg, rgba(4, 10, 26, 0.92), rgba(2, 6, 16, 0.96));
  color: #d0f4ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

body.admin-page .admin-nav-pill:hover {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
  transform: translateY(-1px);
}

body.admin-page .admin-nav-pill-danger {
  border-color: rgba(255, 109, 120, 0.4);
  color: #fecdd3;
  background: linear-gradient(180deg, rgba(28, 8, 14, 0.92), rgba(16, 4, 8, 0.96));
}

body.admin-page .admin-nav-pill-danger:hover {
  border-color: rgba(255, 109, 120, 0.65);
  box-shadow: 0 0 14px rgba(255, 109, 120, 0.15);
}

body.admin-page .admin-main {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1.15rem 1.15rem 2rem;
}

body.admin-page .admin-page-header {
  margin-bottom: 1rem;
}

body.admin-page .admin-page-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #eefcff;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

body.admin-page .admin-page-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #8ecae6;
}

body.admin-page .admin-alert {
  max-width: 100%;
  margin-bottom: 0.85rem;
  border-radius: 2px;
}

body.admin-page .admin-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

body.admin-page .admin-cyber-panel {
  position: relative;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: linear-gradient(180deg, rgba(6, 10, 24, 0.98), rgba(2, 5, 16, 0.99));
  box-shadow:
    0 0 0 1px rgba(189, 0, 255, 0.08) inset,
    0 0 40px rgba(0, 240, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

body.admin-page .admin-cyber-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #bd00ff, transparent);
  opacity: 0.75;
  pointer-events: none;
}

body.admin-page .admin-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

body.admin-page .admin-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.38);
  background: rgba(0, 10, 24, 0.85);
  color: #67e8f9;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.12);
}

body.admin-page .admin-panel-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

body.admin-page .admin-panel-icon-gold {
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.45);
  box-shadow: 0 0 12px rgba(253, 230, 138, 0.12);
}

body.admin-page .admin-panel-title {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eefcff;
}

body.admin-page .admin-panel-desc {
  margin: 0;
  font-size: 0.76rem;
  color: #8ecae6;
  line-height: 1.4;
}

body.admin-page .admin-panel-desc code {
  color: #67e8f9;
  font-size: 0.9em;
}

body.admin-page .admin-tg-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.55rem;
}

body.admin-page .admin-tg-badge {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 12, 28, 0.85);
  color: #a5f3fc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.admin-page .admin-tg-badge[data-status="connected"] {
  border-color: rgba(52, 211, 153, 0.5);
  color: #bbf7d0;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.15);
}

body.admin-page .admin-tg-badge[data-status="error"],
body.admin-page .admin-tg-badge[data-status="qr_expired"] {
  border-color: rgba(255, 109, 120, 0.5);
  color: #fecdd3;
}

body.admin-page .admin-tg-user {
  font-size: 0.8rem;
  color: #c8e8ff;
}

body.admin-page .admin-tg-hint {
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  color: #fda4af;
  line-height: 1.35;
}

body.admin-page .admin-tg-setup-alert {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

body.admin-page .admin-tg-setup-alert a {
  color: #7ee8ff;
}

body.admin-page .admin-tg-setup-form {
  margin-bottom: 0.85rem;
}

body.admin-page .admin-tg-setup-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

body.admin-page .admin-tg-live-alert {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

body.admin-page .admin-tg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

body.admin-page .admin-btn-compact {
  width: auto;
  padding: 0.55rem 0.95rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

body.admin-page .admin-tg-qr-box {
  text-align: center;
  margin: 0.55rem 0 0.75rem;
  padding: 0.75rem;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 3px;
  background: rgba(0, 8, 20, 0.65);
}

body.admin-page .admin-tg-qr-box img {
  display: block;
  margin: 0.45rem auto 0;
  border-radius: 4px;
  background: #fff;
  padding: 0.3rem;
}

body.admin-page .admin-tg-form-block {
  margin-top: 0.65rem;
}

body.admin-page .admin-tg-bots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

body.admin-page .admin-tg-bots-desc {
  margin: 0 0 0.45rem;
}

body.admin-page .admin-tg-bots-filter {
  margin-bottom: 0.45rem;
}

body.admin-page .admin-tg-bots-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 3px;
  background: rgba(0, 8, 20, 0.55);
  padding: 0.35rem;
}

body.admin-page .admin-tg-bot-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0.4rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.76rem;
  color: #d8f4ff;
}

body.admin-page .admin-tg-bot-item:hover {
  background: rgba(0, 240, 255, 0.06);
}

body.admin-page .admin-tg-bot-item.is-selected {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

body.admin-page .admin-tg-bot-item .tg-bot-check {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #00f0ff;
}

body.admin-page .admin-tg-saved-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.45rem 0;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 3px;
  background: rgba(6, 40, 30, 0.35);
}

body.admin-page .admin-tg-saved-label {
  font-size: 0.7rem;
  color: #6ee7b7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

body.admin-page .admin-tg-saved-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

body.admin-page .admin-tg-saved-chip {
  font-size: 0.68rem;
  color: #d8f4ff;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 20, 40, 0.6);
}

body.admin-page .admin-tg-bots-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

body.admin-page .admin-tg-manual-add {
  margin-top: 0.5rem;
}

body.admin-page .admin-tg-affiliate-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #8eb8cc;
}

body.admin-page .admin-tg-bot-item {
  cursor: pointer;
}

body.admin-page .admin-tg-aff-btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.35rem 0.55rem !important;
  font-size: 0.62rem !important;
}

body.admin-page .admin-tg-aff-ok {
  color: #6ee7b7;
  font-style: normal;
}

body.admin-page .admin-affiliate-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.admin-page .admin-affiliate-modal[hidden] {
  display: none !important;
}

body.admin-page .admin-affiliate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 12, 0.82);
}

body.admin-page .admin-affiliate-card {
  position: relative;
  width: min(100%, 420px);
  padding: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(4, 18, 36, 0.98), rgba(2, 10, 22, 0.98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body.admin-page .admin-affiliate-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #e8f8ff;
}

body.admin-page .admin-affiliate-bot {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #8eb8cc;
}

body.admin-page .admin-affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

body.admin-page .admin-tg-bot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}

body.admin-page .admin-tg-bot-meta span {
  color: #8eb8cc;
  font-size: 0.7rem;
}

body.admin-page .admin-tg-bots-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

body.admin-page .admin-tg-bots-count {
  font-size: 0.72rem;
  color: #7ee8ff;
}

body.admin-page .admin-tg-bots-empty {
  margin: 0.35rem;
  font-size: 0.74rem;
  color: #8eb8cc;
}

body.admin-page .admin-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
}

body.admin-page .admin-inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

body.admin-page .admin-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 6, 18, 0.92);
  color: #e8faff;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.84rem;
}

body.admin-page .admin-input:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.25), 0 0 16px rgba(0, 240, 255, 0.1);
}

body.admin-page .admin-tg-test-out {
  margin-top: 0.55rem;
  padding: 0.6rem 0.7rem;
  max-height: 180px;
  overflow: auto;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 6, 18, 0.9);
  color: #c8f5ff;
  font-size: 0.72rem;
  white-space: pre-wrap;
}

body.admin-page .admin-tg-help {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 240, 255, 0.12);
  font-size: 0.74rem;
  color: #8ecae6;
}

body.admin-page .admin-tg-help summary {
  cursor: pointer;
  color: #67e8f9;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.admin-page .admin-tg-help ol {
  margin: 0.45rem 0 0 1.1rem;
  line-height: 1.55;
}

body.admin-page .admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

body.admin-page .admin-plan-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 4.5rem;
  padding: 0.65rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: linear-gradient(180deg, rgba(4, 10, 26, 0.9), rgba(2, 6, 16, 0.95));
  color: #d0f4ff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

body.admin-page .admin-plan-tile:hover {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
  transform: translateY(-1px);
}

body.admin-page .admin-plan-tile-gold {
  border-color: rgba(255, 220, 120, 0.4);
  background: linear-gradient(180deg, rgba(40, 30, 8, 0.85), rgba(24, 18, 4, 0.92));
  color: #fde68a;
}

body.admin-page .admin-plan-tile-gold:hover {
  border-color: rgba(255, 220, 120, 0.65);
  box-shadow: 0 0 18px rgba(245, 185, 66, 0.18);
}

body.admin-page .admin-plan-num {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

body.admin-page .admin-plan-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

body.admin-page .admin-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

body.admin-page .admin-table-wrap {
  overflow: auto;
  margin-top: 0.35rem;
  max-height: 420px;
}

body.admin-page .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

body.admin-page .admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.5rem 0.55rem;
  text-align: left;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(4, 10, 24, 0.98);
  border-bottom: 1px solid rgba(0, 240, 255, 0.22);
}

body.admin-page .admin-table td {
  padding: 0.48rem 0.55rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  color: #d0f4ff;
  vertical-align: middle;
}

body.admin-page .admin-table-muted {
  color: #8ecae6;
  font-size: 0.76rem;
}

body.admin-page .admin-key-code {
  font-size: 0.74rem;
  color: #fde68a;
  letter-spacing: 0.03em;
}

body.admin-page .admin-pill {
  display: inline-flex;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #a5f3fc;
  background: rgba(0, 10, 24, 0.7);
}

body.admin-page .admin-pill-yes {
  border-color: rgba(196, 181, 253, 0.45);
  color: #ddd6fe;
}

body.admin-page .admin-pill-free {
  border-color: rgba(52, 211, 153, 0.4);
  color: #bbf7d0;
}

body.admin-page .admin-pill-used {
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

body.admin-page .btn-delete-key {
  border-radius: 2px;
  border: 1px solid rgba(255, 109, 120, 0.45);
  background: rgba(40, 8, 14, 0.85);
  color: #fecdd3;
  padding: 0.28rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

body.admin-page .btn-delete-key:hover {
  box-shadow: 0 0 12px rgba(255, 109, 120, 0.2);
}

body.admin-page .admin-keys-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

body.admin-page .admin-keys-table-head .dashboard-section-title {
  margin: 0;
}

body.admin-page .admin-keys-generated {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 200, 80, 0.28);
  border-radius: 3px;
  background: rgba(20, 14, 0, 0.35);
}

body.admin-page .admin-keys-generated-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

body.admin-page .admin-keys-generated-text {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  color: #e8f8ff;
  background: rgba(0, 8, 20, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 3px;
  padding: 0.5rem;
}

body.admin-page .admin-keys-status {
  margin: 0.5rem 0 0;
  font-size: 0.74rem;
  color: #8eb8cc;
  min-height: 1rem;
}

body.admin-page .admin-keys-status.is-ok {
  color: #6ee7b7;
}

body.admin-page .admin-keys-status.is-error {
  color: #fda4af;
}

body.admin-page .admin-keys-qty-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.admin-page .admin-keys-qty-modal[hidden] {
  display: none !important;
}

body.admin-page .admin-delete-form {
  margin: 0;
}

body.admin-page .admin-footer {
  margin-top: auto;
  padding: 0.5rem 1rem 0.6rem;
  border-top: 1px solid rgba(0, 240, 255, 0.28);
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.97), rgba(2, 4, 12, 0.99));
}

body.admin-page .admin-footer .dashboard-footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

body.admin-page .admin-footer .dashboard-footer-tagline {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5f3fc;
}

@media (max-width: 960px) {
  body.admin-page .admin-top-grid,
  body.admin-page .admin-tables-grid {
    grid-template-columns: 1fr;
  }

  body.admin-page .admin-topbar {
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
  }

  body.admin-page .admin-inline-field {
    grid-template-columns: 1fr;
  }

  body.admin-page .admin-btn-compact {
    width: 100%;
  }
}

/* —— Mobile: login, dashboard e admin (tela preta / conteudo cortado) —— */
@media (max-width: 900px) {
  html,
  html.dashboard-html {
    height: auto;
    min-height: 100%;
  }

  body.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-attachment: fixed;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-page .page-wrap {
    flex: 1 0 auto;
    min-height: auto;
    justify-content: flex-start;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 0.85rem 1rem;
  }

  body.auth-page .page-wrap::before,
  body.auth-page .page-wrap::after {
    position: fixed;
  }

  body.auth-page .site-footer.fixed {
    position: static;
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(7, 19, 39, 0.62), rgba(6, 16, 33, 0.96));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  body.auth-page .auth-footer-stack,
  body.auth-page .site-footer {
    text-align: center;
  }

  body.auth-login .brand-logo {
    transform: none;
    max-height: clamp(3.5rem, 18vw, 5.5rem);
  }

  body.auth-page .card,
  .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.dashboard-page {
    --topbar-h: 72px;
    --sidebar-w: 0px;
    --dashboard-footer-h: 74px;
    --dashboard-bottom-stack-h: 0px;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    background-attachment: fixed;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.dashboard-page .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
  }

  body.dashboard-page .topbar-logo {
    max-height: 2.35rem;
    max-width: min(220px, 68vw);
  }

  body.dashboard-page .dashboard-shell {
    flex-direction: column;
    overflow: visible;
    flex: 1 0 auto;
    min-height: auto;
  }

  body.dashboard-page .sidebar-menu {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
    flex-shrink: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  body.dashboard-page .dashboard-shell .dashboard-main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: visible;
    flex: 1 1 auto;
    padding: 0.75rem 0.85rem 1rem;
  }

  body.dashboard-page .dashboard-bottom-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    flex-shrink: 0;
    pointer-events: auto;
  }

  body.dashboard-page .dashboard-footer-bar {
    min-height: var(--dashboard-footer-h);
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  body.dashboard-page .grid-modules,
  body.dashboard-page .grid-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem;
  }

  body.dashboard-page .query-modal .query-card {
    width: min(100vw - 1rem, 520px);
    max-height: min(88dvh, 88vh);
    overflow-y: auto;
  }

  body.admin-page {
    min-height: 100vh;
    min-height: 100dvh;
    background-attachment: fixed;
    overflow-x: hidden;
  }

  body.admin-page .admin-main {
    width: 100%;
    padding-bottom: 1rem;
  }

  body.admin-page .admin-footer {
    margin-top: auto;
    padding-bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  body.dashboard-page .grid-modules,
  body.dashboard-page .grid-tools {
    grid-template-columns: 1fr !important;
  }

  body.admin-page .admin-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-page .admin-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
