/* Opotiguar Neon Blocks — estilo isolado, sem frameworks/CDN */
.opnb {
  --opnb-green: #a3ff12;
  --opnb-cyan: #00eaff;
  --opnb-purple: #7545ff;
  --opnb-magenta: #ff23d8;
  --opnb-ring-purple: #6642ff;
  --opnb-ring-magenta: #ff22da;
  --opnb-arrow: #abff45;
  --opnb-card-green: #9cff21;
  --opnb-card-cyan: #00eccc;
  --opnb-card-purple: #9b35ff;
  --opnb-card-magenta: #ff26c9;
  --opnb-avatar-green: #9cff21;
  --opnb-avatar-cyan: #00ebdc;
  --opnb-avatar-purple: #a530ff;
  --opnb-avatar-magenta: #ff28dd;
  box-sizing: border-box;
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.opnb *, .opnb *::before, .opnb *::after { box-sizing: border-box; }

/* Botão neon */
.opnb-button-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px auto;
  padding: 8px 0;
}
.opnb .opnb-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 17px 28px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #111827, #130d25) padding-box,
    linear-gradient(110deg, var(--opnb-green), var(--opnb-cyan), var(--opnb-purple), var(--opnb-magenta)) border-box;
  color: #fff !important;
  font: 700 14px/1.4 system-ui, sans-serif;
  letter-spacing: .4px;
  text-align: center;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 25px #0006, 0 0 20px #8c35ff25, inset 0 0 20px #ffffff08;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.opnb a.opnb-button:hover {
  transform: translateY(-4px) scale(1.025);
  filter: brightness(1.15);
  box-shadow: 0 10px 35px #0008, 0 0 25px #00ffcc55, 0 0 40px #af25ff55;
  color: #fff !important;
  text-decoration: none !important;
}
.opnb a.opnb-button:active { transform: scale(.97); }
.opnb a.opnb-button:focus-visible { outline: 2px solid var(--opnb-cyan); outline-offset: 5px; }
.opnb a.opnb-card:focus-visible { outline: 3px solid var(--opnb-card-green); outline-offset: 4px; }
.opnb .opnb-button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--opnb-green), var(--opnb-cyan), var(--opnb-ring-purple), var(--opnb-ring-magenta), var(--opnb-green));
  box-shadow: 0 0 13px #7cff0088;
  animation: opnb-spin 5s linear infinite;
}
.opnb .opnb-button-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #111827;
}
.opnb .opnb-button-text { min-width: 0; }
.opnb .opnb-button-arrow { color: var(--opnb-arrow); font-size: 21px; flex: 0 0 auto; transition: transform .28s; }
.opnb a.opnb-button:hover .opnb-button-arrow { transform: translateX(5px); }
@keyframes opnb-spin { to { transform: rotate(360deg); } }

/* Cartão de créditos */
.opnb-card-wrap { margin: 25px auto; }
.opnb .opnb-card {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #111521, #170d27) padding-box,
    linear-gradient(125deg, var(--opnb-card-green), var(--opnb-card-cyan), var(--opnb-card-purple), var(--opnb-card-magenta)) border-box;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 35px #0005, 0 0 24px #982fff22;
  transition: transform .28s ease, box-shadow .28s ease;
  cursor: pointer;
}
.opnb a.opnb-card:hover {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-4px);
  box-shadow: 0 14px 45px #0007, 0 0 26px #a82fff66, 0 0 35px #9cff2133;
}
.opnb .opnb-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b4ff68;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.opnb .opnb-dot {
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7ff24;
  box-shadow: 0 0 12px #a7ff24;
}
.opnb .opnb-card-content { display: flex; gap: 22px; align-items: center; }
.opnb .opnb-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 105px;
  width: 105px;
  height: 105px;
  padding: 3px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--opnb-avatar-green), var(--opnb-avatar-cyan), var(--opnb-avatar-purple), var(--opnb-avatar-magenta));
  box-shadow: 0 0 26px #ad32ff44;
}
.opnb .opnb-card-img,
.opnb .opnb-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 19px;
  background: #0c0c17;
  object-fit: cover;
}
.opnb .opnb-card-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  color: var(--opnb-magenta);
  text-shadow: 0 0 22px #ff23d877;
}
.opnb .opnb-card-info { display: block; flex: 1; min-width: 0; }
.opnb .opnb-card-title {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}
.opnb .opnb-card-description {
  display: block;
  color: #c8bfd7;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.opnb .opnb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #ffffff1c;
}
.opnb .opnb-card-domain { color: #d0a1ff; font-size: 12px; font-weight: 600; }
.opnb .opnb-card-action { color: #b4ff68; font-size: 12px; font-weight: 800; letter-spacing: .4px; transition: transform .28s; }
.opnb a.opnb-card:hover .opnb-card-action { transform: translateX(5px); }
.opnb .opnb-disabled { cursor: default; opacity: .72; }

@media (max-width: 520px) {
  .opnb-button-wrap { padding: 8px 4px; }
  .opnb .opnb-button { padding: 15px 18px; gap: 10px; font-size: 12px; border-radius: 14px; }
  .opnb .opnb-button-icon { flex-basis: 18px; width: 18px; height: 18px; }
  .opnb .opnb-button-arrow { font-size: 18px; }
  .opnb .opnb-card { padding: 20px; }
  .opnb .opnb-card-content { flex-direction: column; gap: 16px; text-align: center; }
  .opnb .opnb-card-label { justify-content: center; }
  .opnb .opnb-card-title { font-size: 17px; }
  .opnb .opnb-card-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .opnb *, .opnb *::before, .opnb *::after { animation: none !important; transition: none !important; }
}


/* ================================================================
   v1.3 — Grupo de Botões Neon
   Os botões individuais mantêm seus links, atributos e render PHP.
   ================================================================ */
.opnb-gallery {
  width: 100%;
  max-width: 100%;
  margin: 24px auto;
}
.opnb-gallery > .opnb-gallery-inner {
  display: grid;
  grid-template-columns: repeat(var(--opnb-gallery-cols, 2), minmax(0, 1fr));
  gap: var(--opnb-gallery-gap, 12px);
  align-items: stretch;
  min-width: 0;
}
.opnb-gallery--vertical > .opnb-gallery-inner {
  grid-template-columns: minmax(0, 1fr);
}
.opnb-gallery--row > .opnb-gallery-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.opnb-gallery--row > .opnb-gallery-inner > .opnb-button-wrap {
  flex: 1 1 200px;
}
.opnb-gallery .opnb-gallery-inner > .opnb-button-wrap {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.opnb-gallery.opnb-gallery--fill .opnb-button-wrap .opnb-button { width: 100%; }
.opnb-gallery .opnb-button-wrap .opnb-button { max-width: 100%; }
@media (max-width: 600px) {
  .opnb-gallery--row > .opnb-gallery-inner,
  .opnb-gallery--grid > .opnb-gallery-inner {
    display: grid;
    grid-template-columns: repeat(var(--opnb-gallery-mobile-cols, 1), minmax(0, 1fr));
  }
  .opnb-gallery > .opnb-gallery-inner > .opnb-button-wrap { min-width: 0; }
}
