:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #10151e;
  --text: #edf3ff;
  --muted: #98a6ba;
  --line: #263348;
  --blue: #5cc8ff;
  --danger: #ff5d66;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at 20% 0, #152437, #090b10 38%), #090b10;
  color: var(--text);
}

.shell {
  min-height: 100vh;
  padding: 14px 20px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

/* Fundo tecnológico discreto (grid + brilho) — só decoração */
.tech-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(37, 99, 235, .12), transparent 60%),
    linear-gradient(rgba(92, 200, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 200, 255, .04) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
}

/* ─────────── PÁGINA INICIAL / LANDING ─────────── */
.auth { width: min(1180px, 100%); }

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.landing-hero {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 23, 34, .97), rgba(8, 12, 19, .97));
  box-shadow: 0 20px 60px #0008;
  overflow: hidden;
}

/* escudo discreto ao fundo */
.landing-hero::after {
  content: "🛡";
  position: absolute;
  right: -18px;
  top: -28px;
  font-size: 230px;
  opacity: .045;
  transform: rotate(-10deg);
  pointer-events: none;
  line-height: 1;
}

.hero-tagline {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.hero-title {
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--blue);
}

.hero-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 650;
}

.hero-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.hero-highlights {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.hero-highlights li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: #c6d6ee;
  line-height: 1.4;
}

.hero-highlights li span { flex: none; }

.hero-trial {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #31577f;
  border-radius: 12px;
  background: #0b1724;
}

.hero-trial-badge {
  width: max-content;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}

.hero-trial p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.trial-cta {
  justify-self: start;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(180deg, #2446de, #1930a8);
  border: 1px solid #3d6fff;
  border-radius: 10px;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}

.trial-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }

.hero-trial small {
  color: var(--muted);
  font-size: 12px;
}

.landing-form {
  display: grid;
  gap: 12px;
}

.form-intro {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.form-intro strong {
  color: var(--text);
  font-size: 14px;
}

/* destaque sutil para a aba Registro (teste grátis) */
.tab-cta {
  border-color: #365e8c;
  color: var(--blue);
}

.tab-cta.active {
  color: var(--text);
  border-color: #3d6fff;
  background: linear-gradient(180deg, #2446de, #1930a8);
}

/* ─────────── FLUXO (passo a passo) ─────────── */
.landing-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid #1d2a3d;
  border-radius: 14px;
  background: rgba(13, 18, 27, .85);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c6d6ee;
  font-weight: 650;
}

.flow-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #365e8c;
  border-radius: 50%;
  background: #0d2033;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.flow-arrow {
  color: #365e8c;
  font-size: 14px;
  font-weight: 700;
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.mark {
  width: 52px;
  height: 52px;
  border: 1px solid #355c7d;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0b1724;
  color: var(--blue);
  font-weight: 800;
}

.brand h1, header h1, .intro h2, .section-head h3 { margin: 0; }
.brand h1, header h1 { font-size: 24px; }
.intro h2 { font-size: 18px; }
.section-head h3 { font-size: 15px; }
.brand p, header p, .intro p, .section-head p { margin: 4px 0 0; color: var(--muted); }

.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab, .button, button {
  border: 1px solid var(--line);
  background: #111a28;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}

.tab.active, .button, form button[type=submit] {
  background: linear-gradient(180deg, #2446de, #1930a8);
  border-color: #3d6fff;
}

.card {
  background: linear-gradient(180deg, rgba(21, 29, 42, .96), rgba(13, 18, 27, .96));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 60px #0008;
}

.intro { margin-bottom: 14px; }
.license-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.license-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.license-card span {
  color: var(--muted);
  font-size: 12px;
}

.license-card strong {
  color: var(--text);
  font-size: 16px;
}

.flat {
  box-shadow: none;
  padding: 0;
  margin: 18px 0;
  background: transparent;
  border: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini {
  display: grid;
  gap: 6px;
}

.mini span {
  color: var(--muted);
  font-size: 12px;
}

.mini strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.form { display: none; gap: 12px; }
.form.active { display: grid; }

label {
  display: grid;
  gap: 6px;
  color: #aac4e5;
  font-size: 13px;
}

input, select {
  width: 100%;
  background: #090f18;
  border: 1px solid #2a3950;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

input:focus, select:focus { border-color: var(--blue); }
.link { background: transparent; border: 0; color: var(--blue); padding: 4px; }
.hidden, .hidden-field { display: none !important; }
.dashboard {
  width: min(1760px, 100%);
  justify-self: stretch;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 28px);
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 23, 34, .98), rgba(8, 12, 19, .98));
  box-shadow: 0 20px 60px #0008;
}

.side-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #223249;
}

.side-brand strong, .side-brand span { display: block; }

.side-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.sidebar #logoutBtn {
  margin-top: auto;
}

.nav-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: #b9cbe5;
}

.nav-item.active {
  border-color: #365e8c;
  background: #0d2033;
  color: var(--text);
}

.full { width: 100%; }
.content { min-width: 0; }
.view { display: none; }
.view.active { display: block; }

header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}

header h1 { font-size: 25px; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.launcher-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.ghost { background: #10151e; }
.danger { border-color: #61313a; background: #281117; color: #ffb8bd; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wide { grid-column: 1 / -1; }
.grid button[type=submit] { grid-column: 1 / -1; }

.license-bind {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #31577f;
  border-radius: 10px;
  background: #0b1724;
}

.license-bind strong {
  color: var(--text);
}

.license-bind span {
  color: var(--blue);
  font-weight: 800;
}

.license-bind p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.connections {
  display: grid;
  gap: 10px;
}

.connection {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b111a;
  border: 1px solid #233149;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 59px;
}

.check input { width: auto; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #111a28;
  border: 1px solid #355c7d;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: .18s;
}

.toast.show { opacity: 1; transform: none; }

.page-card {
  display: grid;
  gap: 11px;
  padding: 14px 18px;
}

.page-card h2, .account-form h2 {
  margin: 0;
  font-size: 18px;
}

.page-card p, .account-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.disabled {
  opacity: .65;
  cursor: default;
  width: max-content;
}

.renew-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.renew-plan {
  width: min(320px, 100%);
}

.pix-box {
  padding: 14px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

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

.pix-content img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #fff;
}

.pix-content strong, .pix-content span {
  display: block;
}

.pix-content span {
  margin: 5px 0 10px;
  color: var(--muted);
}

textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  background: #090f18;
  border: 1px solid #2a3950;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
}

.empty {
  padding: 18px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
  color: var(--muted);
}

.tutorial-list {
  display: grid;
  gap: 12px;
}

.tutorial-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.tutorial-card h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.tutorial-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tutorial-desc strong {
  color: var(--text);
}

.tutorial-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tutorial-note code {
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.tutorial-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tutorial-steps li::marker {
  color: var(--blue);
  font-weight: 700;
}

.tutorial-steps code {
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.tutorial-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #31577f;
  border-radius: 8px;
  background: #0b1724;
}

.tutorial-code code {
  color: var(--blue);
  font-family: Consolas, monospace;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.copy-btn {
  flex: none;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid #365e8c;
  background: #0d2033;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--blue);
}

.tutorial-warn {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #61313a;
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  background: #281117;
}

.tutorial-warn strong {
  color: #ffb8bd;
  font-size: 12px;
  letter-spacing: .05em;
}

.tutorial-warn p {
  margin: 0;
  color: #ffd9dc;
  font-size: 13px;
  line-height: 1.55;
}

.account-form {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-section {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #223249;
}

.payments-list {
  display: grid;
  gap: 10px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 300px));
  gap: 10px;
  align-items: stretch;
}

.module-card {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 12px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.module-card h3 {
  margin: 0;
  font-size: 15px;
}

.module-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.module-card button {
  width: max-content;
}

.module-card-static {
  grid-template-rows: 1fr auto;
}

.module-section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #223249;
}

.ban-form {
  display: grid;
  grid-template-columns: 180px 210px minmax(260px, 1fr) 160px 160px;
  gap: 10px;
  align-items: end;
}

.ban-form button[type=submit] {
  grid-column: auto;
}

.search-field {
  width: min(320px, 100%);
}

.player-list,
.ban-list {
  display: grid;
  gap: 10px;
}

.payment-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(90px, 1fr)) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.payment-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.payment-row strong {
  overflow-wrap: anywhere;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(90px, 1fr)) minmax(170px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.admin-payment-row, .webhook-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(90px, 1fr)) minmax(150px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.player-row, .ban-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(230px, 1.3fr) repeat(3, minmax(110px, 1fr)) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.webhook-row {
  grid-template-columns: minmax(240px, 1.5fr) repeat(5, minmax(90px, 1fr));
}

.admin-row span, .admin-payment-row span, .webhook-row span, .player-row span, .ban-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-row strong, .admin-payment-row strong, .webhook-row strong, .player-row strong, .ban-row strong {
  overflow-wrap: anywhere;
}

button:disabled {
  opacity: .55;
  cursor: default;
}

.add-days-form {
  display: grid;
  grid-template-columns: 74px auto;
  gap: 8px;
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-card, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ban-form, .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-row, .admin-payment-row, .webhook-row, .payment-row, .player-row, .ban-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pix-content { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { padding: 18px; place-items: start; }
  .grid, .connection, .license-card, .stats, .side-nav, .ban-form, .module-grid { grid-template-columns: 1fr; }
  header, .section-head { align-items: flex-start; flex-direction: column; }
  .admin-row, .admin-payment-row, .webhook-row, .payment-row, .player-row, .ban-row, .add-days-form { grid-template-columns: 1fr; }
  .launcher-actions { justify-content: flex-start; }
}

/* ─── Landing responsiva ─── */
@media (max-width: 880px) {
  .landing { grid-template-columns: 1fr; }
  .landing-hero { padding: 22px; }
  .landing-form { width: min(480px, 100%); justify-self: center; }
}

@media (max-width: 560px) {
  .hero-highlights { grid-template-columns: 1fr; }
  .hero-tagline { font-size: 18px; }
  .landing-flow { justify-content: flex-start; }
  .flow-arrow { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   SISTEMA VISUAL SaaS/CYBERSECURITY
   Reutilizável: status, badges, dots, empty states, seções, etc.
   ══════════════════════════════════════════════════════════════════ */

/* ---- ícones de navegação (sidebar) ---- */
.nav-ico {
  display: inline-block;
  width: 18px;
  margin-right: 9px;
  text-align: center;
  font-size: 13px;
  opacity: .9;
}

/* ---- cabeçalho de página com ícone ---- */
.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-head .ph-ico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #365e8c;
  border-radius: 9px;
  background: #0d2033;
  font-size: 15px;
}

.page-head h2, .page-head p { margin: 0; }
.page-head h2 { font-size: 18px; }
.page-head p { color: var(--muted); font-size: 13px; }

/* ---- badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  border: 1px solid transparent;
  width: max-content;
}

.badge-success { color: #7ce7a8; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); }
.badge-warning { color: #ffd37a; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
.badge-danger  { color: #ff9aa0; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); }
.badge-info    { color: #8fdcff; background: rgba(37, 99, 235, .12); border-color: rgba(56, 189, 248, .35); }
.badge-muted   { color: #9fb3d1; background: rgba(148, 163, 184, .10); border-color: rgba(148, 163, 184, .25); }
.badge-purple  { color: #c4a7ff; background: rgba(124, 58, 237, .14); border-color: rgba(124, 58, 237, .38); }

/* ---- dots de status ---- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px transparent;
}

.dot-success { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dot-warning { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.dot-danger  { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.dot-info    { background: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
.dot-purple  { background: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, .18); }
.dot-muted   { background: #64748b; box-shadow: 0 0 0 3px rgba(100, 116, 139, .18); }

/* ---- empty states com ícone ---- */
.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 26px 18px;
  border: 1px dashed #26344a;
  border-radius: 12px;
  background: #0b111a;
  color: var(--muted);
  font-size: 13px;
}

.empty::before {
  content: "🗂";
  font-size: 22px;
  opacity: .55;
}

.empty[data-icon="players"]::before { content: "👤"; }
.empty[data-icon="bans"]::before { content: "⛔"; }
.empty[data-icon="payments"]::before { content: "💳"; }
.empty[data-icon="webhooks"]::before { content: "🔗"; }
.empty[data-icon="licenses"]::before { content: "🛡"; }

.empty .empty-title {
  font-weight: 700;
  color: #c6d6ee;
  font-size: 14px;
}

.empty .empty-sub { font-size: 12px; }
.empty .empty-action { margin-top: 4px; }

/* ---- contadores de lista ---- */
.list-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.list-count b {
  color: var(--blue);
  background: #0d2033;
  border: 1px solid #365e8c;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
}

/* ---- seções da configuração ---- */
.config-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #223249;
  border-radius: 12px;
  background: #0b111a;
}

.config-section > .sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .02em;
}

.config-section > .sec-head .sec-ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #365e8c;
  border-radius: 7px;
  background: #0d2033;
  font-size: 12px;
}

.config-section .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.config-section .wide { grid-column: 1 / -1; }

.config-section .check { grid-column: span 2; }

/* status do IP vinculado (segurança) */
.license-bind.ok-state {
  border-color: rgba(34, 197, 94, .4);
}

.license-bind.ok-state::before {
  content: "✓ IP vinculado à licença";
  color: #7ce7a8;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
}

.license-bind.warn-state::before {
  content: "⚠ Configuração incompleta";
  color: #ffd37a;
  font-weight: 700;
  font-size: 12px;
}

/* linhas de status do ambiente (dashboard) */
.env-list {
  display: grid;
  gap: 7px;
}

.env-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #c6d6ee;
}

.env-item .env-ico { width: 20px; text-align: center; opacity: .9; }
.env-item.ok  { color: #c9f2d9; }
.env-item.warn { color: #ffe3ae; }
.env-item.off { color: #8b9ab1; }

.env-item .env-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}

.env-item.ok .env-tag { color: #7ce7a8; }
.env-item.warn .env-tag { color: #ffd37a; }
.env-item.off .env-tag { color: #8b9ab1; }

/* score de saúde */
.health-score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #223249;
  border-radius: 12px;
  background: #0b111a;
}

.health-score .hs-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
}

.health-score .hs-label { font-size: 12px; color: var(--muted); line-height: 1.4; }
.health-score .hs-label b { color: #c6d6ee; }

/* barra de validade da licença */
.validity-bar {
  height: 8px;
  border-radius: 999px;
  background: #1a2434;
  overflow: hidden;
}

.validity-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .4s;
}

.validity-fill.ok { background: linear-gradient(90deg, #16a34a, #4ade80); }
.validity-fill.warn { background: linear-gradient(90deg, #d97706, #fbbf24); }
.validity-fill.danger { background: linear-gradient(90deg, #dc2626, #f87171); }

/* card hero da licença */
.license-hero {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #31577f;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 32, 51, .9), rgba(10, 17, 26, .95));
}

.license-hero .lh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.license-hero .lh-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--text);
}

.license-hero .lh-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.license-hero .lh-cell {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.license-hero .lh-cell span { color: var(--muted); font-size: 11px; }
.license-hero .lh-cell strong { font-size: 14px; }

/* campos de senha com botão mostrar/ocultar */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.pw-toggle:hover { color: var(--blue); }

/* feedback inline (sucesso/erro) */
.inline-feedback { font-size: 12.5px; font-weight: 650; min-height: 16px; }
.inline-feedback.ok { color: #7ce7a8; }
.inline-feedback.err { color: #ff9aa0; }

/* índice de tutoriais */
.tutorial-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.tutorial-index a {
  padding: 6px 12px;
  border: 1px solid #365e8c;
  border-radius: 999px;
  background: #0d2033;
  color: #b9cbe5;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.tutorial-index a:hover { border-color: var(--blue); color: var(--blue); }

.tutorial-card { scroll-margin-top: 14px; }

/* passos numerados em círculos */
.tutorial-steps {
  list-style: none;
  counter-reset: step;
}

.tutorial-steps.steps-continue { counter-reset: step 4; }

.tutorial-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 28px;
}

.tutorial-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #365e8c;
  border-radius: 50%;
  background: #0d2033;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

/* alerta amarelo (atenção) */
.tutorial-warn.amber {
  border-color: rgba(245, 158, 11, .4);
  border-left-color: #f59e0b;
  background: rgba(80, 54, 8, .25);
}

.tutorial-warn.amber strong { color: #ffd37a; }
.tutorial-warn.amber p { color: #ffe9c2; }

/* botão copiar com feedback */
.copy-btn.copied {
  border-color: rgba(34, 197, 94, .5);
  color: #7ce7a8;
  background: rgba(34, 197, 94, .1);
}

/* busca com lupa */
.search-field { position: relative; }
.search-field::before {
  content: "🔍";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .7;
  pointer-events: none;
  z-index: 1;
}
.search-field input { padding-left: 30px; }

/* botão de ban (ação punitiva) */
.btn-ban {
  background: #3b1417;
  border-color: #7f1d1d;
  color: #ffb8bd;
}

.btn-ban:hover { background: #4c1a1e; border-color: #b91c1c; }

/* resumo de pagamentos */
.pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* conta: dois cards */
.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}

.account-info-cell {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #223249;
  border-radius: 10px;
  background: #0b111a;
}

.account-info-cell span { color: var(--muted); font-size: 11px; }
.account-info-cell strong { font-size: 14px; overflow-wrap: anywhere; }

/* módulos: mini-status */
.module-card .mc-status { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.module-card .mc-status.ok { color: #7ce7a8; }
.module-card .mc-status.warn { color: #ffd37a; }
.module-card .mc-status.off { color: #8b9ab1; }

/* confirmação de salvar */
.save-ok {
  color: #7ce7a8;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* meta do Server Agent */
.agent-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* cores dos dias restantes da licença */
.lic-days.text-ok { color: #7ce7a8; }
.lic-days.text-warn { color: #ffd37a; }
.lic-days.text-danger { color: #ff9aa0; }
.lic-days.text-off { color: #8b9ab1; }

.lic-type, .lic-status { width: max-content; }

@media (max-width: 980px) {
  .license-hero .lh-row { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .config-section .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .config-section .grid { grid-template-columns: 1fr; }
  .config-section .check { grid-column: span 1; }
}
