/* ── Hub shell: no chrome background — only the inner card is painted ───────── */
.mbtn-hub-viewport {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  /* Do NOT use 100vh here — Elementor/theme wrappers often already span the
     viewport; nested 100vh stacks height and pins the block to the bottom. */
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: visible;
  background: transparent !important;
}

/* Hub-only page tweaks */
body.mbtn-hub-active {
  overflow-x: hidden;
}

/* Anchor hub near the top — avoid stacking full-viewport min-heights (theme + Elementor + ours),
   which creates a tall runway and leaves the card below the first screen. */
body.mbtn-hub-active article.page .entry-content,
body.mbtn-hub-active .type-page .entry-content,
body.mbtn-hub-active .elementor-widget-shortcode .elementor-widget-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  min-height: 0 !important;
  padding-top: clamp(8px, 2vh, 28px) !important;
  padding-bottom: clamp(12px, 4vh, 48px) !important;
}

/* Horizontal full-bleed; vertical stack from top */
body.mbtn-hub-active .mbtn-hub-viewport {
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Elementor: widget-level margin/padding on the shortcode often shoves the hub — neutralize */
body.mbtn-hub-active .elementor-element.elementor-widget-shortcode:has(.mbtn-hub-viewport) {
  margin-block: 0 !important;
}
body.mbtn-hub-active .elementor-element.elementor-widget-shortcode:has(.mbtn-hub-viewport) > .elementor-widget-container {
  margin-block: 0 !important;
}

body.mbtn-hub-active .elementor-column:has(.mbtn-hub-viewport),
body.mbtn-hub-active .elementor-widget-shortcode .elementor-widget-container {
  overflow: visible !important;
}

/* Elementor sections/columns often use bottom alignment or 100vh — pin flex to top */
body.mbtn-hub-active .elementor-section:has(.mbtn-hub-viewport),
body.mbtn-hub-active .elementor-container:has(.mbtn-hub-viewport) {
  align-items: flex-start !important;
  align-content: flex-start !important;
  min-height: 0 !important;
}
body.mbtn-hub-active .elementor-column:has(.mbtn-hub-viewport),
body.mbtn-hub-active .elementor-column-wrap:has(.mbtn-hub-viewport),
body.mbtn-hub-active .elementor-widget-wrap:has(.mbtn-hub-viewport) {
  justify-content: flex-start !important;
  align-items: center !important;
  align-content: flex-start !important;
  min-height: 0 !important;
}

body.mbtn-hub-active .e-con:has(.mbtn-hub-viewport),
body.mbtn-hub-active .elementor-element.e-con:has(.mbtn-hub-viewport) {
  justify-content: flex-start !important;
  align-items: center !important;
  align-content: flex-start !important;
  min-height: 0 !important;
}

body.mbtn-hub-active #primary,
body.mbtn-hub-active .site-main,
body.mbtn-hub-active .content-area {
  justify-content: flex-start !important;
}

/* Decorative orbs inside hub cards removed — keeps UI one clean container */
.mbtn-hub-wrap .mbtn-card .glow-orb {
  display: none !important;
}

/*
 * Hub shortcode prints a tiny script that adds body.mbtn-hub-active so we can
 * defeat theme content max-width wrappers — background goes edge-to-edge,
 * inner .mbtn-hub-wrap stays a narrow column (cards not stretched).
 */
body.mbtn-hub-active #primary,
body.mbtn-hub-active #main,
body.mbtn-hub-active .site-main,
body.mbtn-hub-active .content-area,
body.mbtn-hub-active .entry-content,
body.mbtn-hub-active .wp-block-group__inner-container {
  max-width: none !important;
  width: 100% !important;
}
body.mbtn-hub-active article.page,
body.mbtn-hub-active article.post,
body.mbtn-hub-active .post-inner,
body.mbtn-hub-active .hentry {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.mbtn-hub-active article.page .entry-content,
body.mbtn-hub-active .type-page .entry-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.mbtn-hub-active #primary > .container,
body.mbtn-hub-active .site-main > .container,
body.mbtn-hub-active #primary .wrap,
body.mbtn-hub-active .site-content .ast-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.mbtn-hub-active .site-main,
body.mbtn-hub-active .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Strip theme filler behind the shortcode so only WP/theme chrome remains outside */
body.mbtn-hub-active #primary,
body.mbtn-hub-active .site-content,
body.mbtn-hub-active .site-main {
  background: transparent !important;
}

/* ── Hub wrap: centered column — invisible chrome (fields live inside .mbtn-card) ─ */
.mbtn-hub-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  padding: max(6px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  font-family: 'Poppins', Arial, sans-serif;
  color: #eee;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: transparent !important;
}
.mbtn-hub-header { text-align: center; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mbtn-hub-brand { color: #ff9800; font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; text-shadow: none; }
.mbtn-hub-brand-sub { font-size: .68rem; letter-spacing: 3px; color: #555; margin-top: 2px; }

/* ── Cards (solid dark panels — no glass shine pseudo-layer) ───────────────── */
.mbtn-card {
  position: relative;
  border-radius: 18px;
  padding: 22px;
  overflow: hidden;
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.mbtn-card > .glow-orb {
  z-index: 0;
}
.mbtn-card > *:not(.glow-orb) {
  position: relative;
  z-index: 1;
}
.mbtn-card h2, .mbtn-card h3 { margin: 0 0 10px; }
.mbtn-card label { display: block; margin: 0 0 6px; font-weight: 600; color: #ddd; }
.mbtn-card input, .mbtn-card select {
  width: 100%; box-sizing: border-box; background: #222; color: #eee; border: 1px solid #3a3a3a;
  border-radius: 6px; padding: 11px 12px; margin: 0 0 12px;
}
.mbtn-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.mbtn-btn { border: 0; border-radius: 6px; padding: 12px; color: #fff; font-weight: 600; cursor: pointer; }
.mbtn-btn:disabled { opacity: .7; cursor: not-allowed; }
.mbtn-green { background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%); }
.mbtn-blue { background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%); }
.mbtn-orange { background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%); }
.mbtn-gray { background: #555; }
.mbtn-muted { color: #aaa; font-size: .92rem; margin: 0 0 12px; }
.mbtn-card pre { background:#0e0e0e; border:1px solid #2b2b2b; border-radius:8px; padding:12px; min-height:120px; overflow:auto; margin-top: 14px; }
.mbtn-debug { display: none; }
.mbtn-status {
  margin-top: 12px;
  background: #141b2a;
  border: 1px solid #233149;
  color: #c9d7f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
}
.mbtn-status.is-ok { background: #152919; border-color: #2c5e35; color: #8ef0a4; }
.mbtn-status.is-error { background: #2b1517; border-color: #6b2a31; color: #ff9aa2; }
.mbtn-status.is-warn { background: #2b2314; border-color: #6f5b2f; color: #ffd38a; }
.phase { display: none; }
.phase.active { display: block; }
.credential-section {
  margin: 12px 0;
  padding: 12px;
  background: #1b1b1b;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
}
.credential-label {
  color: #9ca3af;
  font-size: .85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.credential-display {
  background: #0d0d0d;
  border: 1px solid #333;
  color: #ffeb3b;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 1rem;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  word-break: break-all;
  min-height: 24px;
}
.otp-display {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 2px;
}
.progress-track {
  width: 100%;
  height: 10px;
  background: #222;
  border: 1px solid #333;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff9800 0%, #66bb6a 100%);
  transition: width .35s ease;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: .45;
  pointer-events: none;
  animation: floatOrb 4s ease-in-out infinite;
}
.orb-1 { width: 90px; height: 90px; right: -20px; top: -20px; background: #ff8a00; }
.orb-2 { width: 70px; height: 70px; left: -15px; bottom: -20px; background: #00e0ff; animation-delay: .8s; }
.orb-3 { width: 55px; height: 55px; right: 35%; bottom: -22px; background: #8cff66; animation-delay: 1.4s; }
@keyframes floatOrb {
  0%,100% { transform: translateY(0px); opacity: .35; }
  50% { transform: translateY(-8px); opacity: .6; }
}

@media (max-width: 700px) {
  .mbtn-hub-wrap {
    max-width: 100%;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 18px max(10px, env(safe-area-inset-left));
  }
}

/* ── Key badge (credentials phase header) ─────────────────────────────────── */
.mbtn-key-badge-row { text-align: center; margin-bottom: 14px; }
.mbtn-key-badge {
  display: inline-block;
  font-family: Consolas, 'Courier New', monospace;
  font-size: .9rem;
  letter-spacing: 3px;
  color: #ff9800;
  background: #111;
  border: 1px solid #ff6600;
  box-shadow: 0 0 12px #ff660033;
  border-radius: 6px;
  padding: 4px 14px;
}

/* ── No-OTP notice ────────────────────────────────────────────────────────── */
.mbtn-no-otp-notice {
  margin-top: 12px;
  padding: 10px 14px;
  background: #1a1500;
  border: 1px solid #6f5b2f;
  color: #ffd38a;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
}

/* ── OTP countdown (styled) ───────────────────────────────────────────────── */
.mbtn-otp-countdown {
  text-align: center;
  color: #ff9800;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
  min-height: 1.4em;
}

/* ── Copy flash: green border pulse on credential display ─────────────────── */
@keyframes copyFlash {
  0%   { border-color: #333; box-shadow: none; }
  30%  { border-color: #4caf50; box-shadow: 0 0 10px #4caf5066; }
  100% { border-color: #333; box-shadow: none; }
}
.credential-display.copied { animation: copyFlash .8s ease both; }

/* ── Full-screen OTP loading overlay (Pac-Man + ghost + rotating tips) ─────── */
#mbtnLoadingOverlay.mbtn-loading-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  margin: 0 !important;
  background: rgba(5, 8, 15, 0.92) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#mbtnLoadingOverlay.mbtn-loading-overlay.is-active {
  display: flex !important;
}
.mbtn-loading-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}
.mbtn-loading-mascots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 8vw, 56px);
  margin-bottom: 28px;
  min-height: min(200px, 28vh);
}
.mbtn-loading-ghost {
  width: 48px;
  height: 54px;
  background: #00e5ff;
  border-radius: 24px 24px 0 0;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.45);
}
.mbtn-loading-ghost::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    #00e5ff 0,
    #00e5ff 9px,
    transparent 9px,
    transparent 15px
  );
}
.mbtn-loading-ghost-eye {
  position: absolute;
  top: 19px;
  width: 10px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}
.mbtn-loading-ghost-eye:first-child { left: 10px; }
.mbtn-loading-ghost-eye:last-child { right: 10px; }
.mbtn-loading-ghost-eye::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: #004e8c;
  border-radius: 50%;
}

.mbtn-loading-tip {
  font-size: clamp(1.12rem, 3.2vw, 1.48rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  min-height: 1.45em;
  animation: mbtnTipFade 0.42s ease both;
}
@keyframes mbtnTipFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mbtn-loading-detail {
  font-size: 0.94rem;
  color: #93c5fd;
  margin: 0 0 22px;
  min-height: 1.35em;
}
.mbtn-loading-warn {
  font-size: 0.88rem;
  color: #fecaca;
  margin: 0 auto;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(60, 15, 15, 0.42);
  line-height: 1.5;
}

body.mbtn-hub-loading {
  overflow: hidden !important;
}

body.mbtn-hub-loading #fetchingPhase.phase.active {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hero Pac-Man scale inside overlay */
.mbtn-pac-loader--hero .loader-wrapper {
  transform: scale(3.1);
  transform-origin: center center;
  margin: 52px auto;
}
@media (max-width: 480px) {
  .mbtn-pac-loader--hero .loader-wrapper {
    transform: scale(2.4);
    margin: 40px auto;
  }
}

/* ── Pac-Man loader (from Animations/Pac Man — scoped; dots above card bg) ──── */
.mbtn-pac-loader .loader-wrapper {
  position: relative;
  top: 0;
  left: 0;
  width: 110px;
  height: 48px;
  margin: 16px auto 10px;
}

.mbtn-pac-loader .packman {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  z-index: 2;
}

/* Two halves — explicit placement matches classic Pac-Man reference */
.mbtn-pac-loader .packman::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 50px;
  height: 25px;
  margin-left: -25px;
  background-color: #EFF107;
  border-radius: 100px 100px 0 0;
  transform-origin: center bottom;
  animation: mbtnPacTop 0.5s linear infinite;
}

.mbtn-pac-loader .packman::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 25px;
  width: 50px;
  height: 25px;
  margin-left: -25px;
  background-color: #EFF107;
  border-radius: 0 0 100px 100px;
  transform-origin: center top;
  animation: mbtnPacBot 0.5s linear infinite;
}

@keyframes mbtnPacTop {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-30deg); }
}

@keyframes mbtnPacBot {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(30deg); }
}

.mbtn-pac-loader .dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mbtn-pac-loader .dots .dot {
  position: absolute;
  z-index: 1;
  top: 50%;
  margin-top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.mbtn-pac-loader .dots .dot:nth-child(1) {
  left: 90px;
  animation: mbtnPacDotStage1 0.5s infinite;
}

.mbtn-pac-loader .dots .dot:nth-child(2) {
  left: 60px;
  animation: mbtnPacDotStage1 0.5s infinite;
}

.mbtn-pac-loader .dots .dot:nth-child(3) {
  left: 30px;
  animation: mbtnPacDotStage1 0.5s infinite;
}

.mbtn-pac-loader .dots .dot:nth-child(4) {
  left: 10px;
  animation: mbtnPacDotStage2 0.5s infinite;
}

@keyframes mbtnPacDotStage1 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-24px, 0); }
}

@keyframes mbtnPacDotStage2 {
  0%        { transform: scale(1); }
  5%, 100%  { transform: scale(0); }
}

/* ── Circuit-board "Verify Key" button ───────────────────────────────────── */
.mbtn-verify-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  width: 100%;
}
.mbtn-verify-btn {
  --vbtn-radius: 16px;
  outline: none;
  cursor: pointer;
  font-size: 20px;
  background: transparent;
  border: 0;
  position: relative;
  width: 100%;
  height: 62px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  border-radius: var(--vbtn-radius);
}
.mbtn-verify-btn::before,
.mbtn-verify-btn::after {
  content: '';
  position: absolute; top: 40%; z-index: 0;
  height: 50px; width: 50%; background: black;
  filter: blur(10px); border-radius: 10px; opacity: .7;
  pointer-events: none;
}
.mbtn-verify-btn::before { left: -2px; transform: rotate(-15deg); }
.mbtn-verify-btn::after  { right: -2px; transform: rotate(15deg); }
.vbtn-glow {
  position: absolute; inset: 0;
  box-shadow: 0 0 200px 5px rgba(255,208,0,.4);
  pointer-events: none;
}
.vbtn-glow::before {
  content: '';
  position: absolute; margin: auto; inset: 0;
  background: rgba(160,158,122,.05);
  border-radius: 50%; filter: blur(50px);
  height: 500px; width: 150px;
  transform: rotate(-45deg);
}
.vbtn-wave { position: absolute; width: 100%; height: 100%; inset: 0; margin: auto; transition: all .3s linear; }
.vbtn-wave::before, .vbtn-wave::after {
  content: ''; position: absolute; width: 100%; height: 100%;
  border: .5px solid rgba(255,208,0,.4); inset: 0; filter: blur(2px); border-radius: 30px;
}
.mbtn-verify-btn:focus .vbtn-wave::before { animation: vbtn-wave 2.2s linear; }
.mbtn-verify-btn:focus .vbtn-wave::after  { animation: vbtn-wave 2.2s linear; animation-delay: .35s; }
@keyframes vbtn-wave {
  0%,40%  { transform: scale(1);     opacity: 0; box-shadow: 0 0 30px 10px black, inset 0 0 30px rgba(255,255,255,.1); }
  60%     { transform: scale(1.2,1.5); opacity: 1; }
  100%    { transform: scale(1.6,2);   opacity: 0; box-shadow: 0 0 30px rgba(0,0,0,.1); }
}
.vbtn-bg {
  position: absolute; inset: -7px;
  border-radius: calc(var(--vbtn-radius) * 1.35);
  z-index: 1; overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
}
.vbtn-bg::before, .vbtn-bg::after {
  content: ''; position: absolute; inset: 0;
  border-radius: calc(var(--vbtn-radius) * 1.35);
}
.vbtn-bg::after {
  background: black;
  box-shadow: inset 0 0 0 1px rgba(92,83,54,.4),
    inset -2px 0 0 -1px rgba(92,83,54,1),
    inset 0 -2px 0 -1px rgba(92,83,54,.1);
}
.vbtn-bg .vbtn-shine { transition: all .5s linear; color: rgba(255,239,168,.85); }
.mbtn-verify-btn:active .vbtn-bg .vbtn-shine { color: rgba(42,255,205,.85); }
.vbtn-bg .vbtn-shine::before {
  content: ''; position: absolute; z-index: 2;
  background: currentColor; width: 10px; height: 10px;
  opacity: .3; left: 0; right: 0; bottom: 0; margin: auto;
  border-radius: 50%; filter: blur(2px);
  transform: translateY(0) scale(0);
  animation: vbtn-shine 2.2s linear infinite;
}
@keyframes vbtn-shine {
  0%   { transform: translateY(0) scale(0); }
  20%  { transform: translateY(0) scale(25); }
  100% { transform: translateY(-280px) scale(20,18); }
}
.vbtn-wrap {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
}
.vbtn-circuit {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 140%; height: auto; margin-top: -8px;
  pointer-events: none;
}
.vbtn-circuit-bg { opacity: .5; }
.vbtn-circuit-path { opacity: 0; transition: opacity .4s linear; }
.vbtn-circuit-path .vbtn-circuit-side path {
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: vbtn-line1 1.7s ease-in-out infinite;
  animation-delay: calc(var(--i) * .2s);
}
@keyframes vbtn-line1 {
  0%  { stroke-dashoffset: 200; filter: blur(2px) brightness(2); }
  70% { stroke-dashoffset: 0; }
  100% { opacity: 0; }
}
.vbtn-circuit-path .vbtn-circuit-bottom path {
  stroke-dasharray: 250; stroke-dashoffset: -250;
  animation: vbtn-line2 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * .1s);
}
@keyframes vbtn-line2 {
  0%  { stroke-dashoffset: -250; filter: blur(2px) brightness(2); }
  70% { stroke-dashoffset: 0; }
  100% { opacity: 0; }
}
.mbtn-verify-btn .vbtn-circuit-path-1,
.mbtn-verify-btn:hover .vbtn-circuit-path-2 { opacity: 1; }
.mbtn-verify-btn:hover .vbtn-circuit-path-1 { opacity: 0; }
.mbtn-verify-btn:focus .vbtn-circuit-path-1 { opacity: 1; }
.mbtn-verify-btn:active .vbtn-circuit-path-2 { opacity: 1; }
.vbtn-wrap-content {
  position: absolute; inset: 0; z-index: 1; transition: all .3s ease;
}
.mbtn-verify-btn:active .vbtn-wrap-content { transform: scale(.97,.96); }
.vbtn-content {
  border-radius: var(--vbtn-radius); overflow: hidden; height: 100%; padding: 2px;
  background: #fedc83;
  box-shadow: inset 0 0 16px 6px #c88a00, inset 0 -10px 10px -8px #ffac82;
  position: relative;
}
.mbtn-verify-btn:hover .vbtn-content { animation: vbtn-shake .5s linear infinite; }
.mbtn-verify-btn:focus .vbtn-content  { animation: vbtn-shakeout 1.9s ease forwards; }
@keyframes vbtn-shake {
  15%  { transform: translate(1px,1px); }   30%  { transform: translate(0,-1px); }
  45%  { transform: translate(1px,-1px); }  55%  { transform: translate(-1px,1px); }
  70%  { transform: translate(1px,0); }     85%  { transform: translate(-1px,-1px); }
}
@keyframes vbtn-shakeout {
  5%  { transform: translate(2px,2px); }   10% { transform: translate(0,-2px); }
  15% { transform: translate(2px,-2px); }  20% { transform: translate(-2px,2px); }
  25% { transform: translate(2px,0); }     30% { transform: translate(-2px,-2px); }
  35% { transform: translate(2px,2px); }   40% { transform: translate(0,-2px); }
  45% { transform: translate(2px,-2px); }  48% { transform: scale(.9); }
  100% { transform: translate(0); }
}
.vbtn-outline {
  position: absolute; overflow: hidden; inset: 0; outline: none; border-radius: inherit; transition: all .4s ease;
}
.vbtn-outline::before {
  content: ''; position: absolute; inset: 0; width: 120px; height: 300px; margin: auto;
  background: linear-gradient(to right, transparent 0%, #ffea00 50%, transparent 100%);
  animation: vbtn-spin 1.7s linear infinite;
}
@keyframes vbtn-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.vbtn-glyphs {
  pointer-events: none; display: flex; align-items: center; justify-content: center;
  z-index: 1; position: relative; height: 100%; gap: 10px;
  border-radius: calc(var(--vbtn-radius) * .85);
  font-weight: 600;
  background: #fedc83;
  box-shadow: inset 0 0 16px 6px #c88a00, 0 0 10px 10px rgba(0,0,0,.2), inset 0 -10px 10px -8px rgb(255,89,0);
  transition: all .3s ease;
}
.vbtn-text {
  transition: all .3s ease; transform: translateY(-1px);
  display: flex; align-items: center; justify-content: center; gap: 1px;
}
.vbtn-text span { display: block; color: transparent; position: relative; }
.vbtn-text .vbtn-gap { margin-right: 6px; }
.vbtn-text span { animation: vbtn-charin 1.2s ease backwards calc(var(--i) * .04s); }
.vbtn-text span::before, .vbtn-text span::after { content: attr(data-label); position: absolute; color: black; text-shadow: 0 2px 3px #dabc45; left: 0; }
.vbtn-text span::before { opacity: 0; transform: translateY(-100%); }
.mbtn-verify-btn:hover .vbtn-text span::before { animation: vbtn-charin .7s ease calc(var(--i) * .03s); }
.mbtn-verify-btn:hover .vbtn-text span::after  { opacity: 1; animation: vbtn-charout .7s ease calc(var(--i) * .03s) backwards; }
.mbtn-verify-btn:focus .vbtn-text span { animation: vbtn-charout2 .7s ease forwards calc(var(--i) * -.02s); }

@keyframes vbtn-charin {
  0%   { opacity: 0; transform: translateY(60%); filter: blur(20px); color: blue; }
  30%  { transform: translateY(-15%); opacity: 1; filter: blur(1px); color: #ff5100; }
  60%  { transform: translateY(5%); opacity: 1; filter: blur(0); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes vbtn-charout  { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-70%); opacity: 0; filter: blur(4px); } }
@keyframes vbtn-charout2 { 0%,50% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-70%); opacity: 0; filter: blur(4px); } }
.vbtn-icon-1 svg, .vbtn-icon-2 svg { margin-top: 3px; }
.mbtn-verify-btn .vbtn-icon-2 {
  position: absolute; filter: blur(5px); opacity: 0;
  animation: vbtn-icon2out .6s ease-in forwards;
}
@keyframes vbtn-icon2out { 0% { transform: translateX(0); filter: blur(0); opacity: 1; } 100% { transform: translateX(100px); filter: blur(5px); opacity: 0; } }
.mbtn-verify-btn .vbtn-icon-2 svg { height: 28px; width: auto; overflow: visible; }
.mbtn-verify-btn .vbtn-cloud-mask { animation: vbtn-cloudmask 2.2s ease infinite; }
@keyframes vbtn-cloudmask { 0%,5% { transform: translateX(0); opacity: .5; } 65%,100% { transform: translateX(640px); opacity: 1; } }
#vcloud-bg { color: #ffefa8; }
.mbtn-verify-btn:active #vcloud-bg { color: #90ffeb; }
.mbtn-verify-btn .vbtn-cloud { animation: vbtn-cloud 6s linear infinite .3s; opacity: 0; filter: blur(10px); animation-play-state: paused; }
.mbtn-verify-btn .vbtn-cloud-2 { animation-delay: 1.5s; }
.mbtn-verify-btn:focus .vbtn-cloud { animation-play-state: running; }
@keyframes vbtn-cloud { 0%,20% { transform: translateX(-140px); opacity: 0; } 70% { transform: translateX(0); opacity: .7; } 100% { transform: translateX(140px); opacity: 0; } }
.mbtn-verify-btn:focus .vbtn-icon-2 { animation: vbtn-icon2in 1.5s cubic-bezier(.5,-.15,.3,1) .8s forwards; }
@keyframes vbtn-icon2in { 0% { transform: translateY(20px); filter: blur(5px); opacity: 0; } 100% { transform: translateY(0); filter: blur(0); opacity: 1; } }
.mbtn-verify-btn:focus .vbtn-check {
  stroke-dasharray: 110; stroke-dashoffset: 110;
  animation: vbtn-check 1.5s cubic-bezier(.5,-.15,.3,1) forwards 1.2s;
}
@keyframes vbtn-check { 0% { stroke-dashoffset: 110; stroke-width: 5px; } 100% { stroke-dashoffset: 0; } }
.vbtn-icon-1 {
  margin-right: -8px;
  animation: vbtn-icon1in 1s cubic-bezier(.5,-.15,.3,1.4) forwards;
}
@keyframes vbtn-icon1in { 0% { transform: translateX(-230px) scale(2.5) rotate(-130deg); filter: blur(4px); } 80% { transform: translateX(5px); filter: blur(3px); color: #ffd15b; } 100% { transform: translate(0); } }
.mbtn-verify-btn:focus .vbtn-icon-1 { animation: vbtn-icon1out 1.5s ease-in-out forwards; }
@keyframes vbtn-icon1out { 0% { transform: translate(0); } 40% { transform: translateX(-250px) scale(2) rotate(-90deg); filter: blur(5px); } 40.0001% { transform: translate(-80px,-80px) scale(4); filter: contrast(2); opacity: 1; color: white; } 70%,97% { transform: translate(-80px,70px) scale(1); box-shadow: 0 0 50px 100px white; background-color: white; border-radius: 50%; } 100% { opacity: 0; } }
.vbtn-icon-1 svg { height: 32px; width: auto; overflow: visible; fill: #3a3631; }
.vbtn-icon-1 .stroke { stroke-dasharray: 90; stroke-dashoffset: -90; filter: blur(2px); animation: vbtn-stroke 3s linear infinite; }
@keyframes vbtn-stroke { 0% { stroke-dashoffset: -90; } 100% { stroke-dashoffset: 90; } }
.vbtn-icon-1 .stroke:nth-child(1) { stroke: #00ffff; stroke-width: 4px; }
.vbtn-icon-1 .stroke:nth-child(2) { stroke: #ff7700; stroke-width: 3px; animation-delay: 1.5s; }
.vbtn-icon-1 g { opacity: 0; transition: .4s linear; }
.mbtn-verify-btn:hover .vbtn-icon-1 g { opacity: 1; }
.vbtn-icon-1 .lightning { transform-origin: center; animation: vbtn-light1 .9s linear infinite; }
.vbtn-icon-1 .lightning:last-child { animation: vbtn-light1 1.1s linear infinite .2s; }
.vbtn-icon-1 .lightning-2 { transform-origin: center; animation: vbtn-light2 .9s linear infinite .2s; }
.vbtn-icon-1 .lightning-2:last-child { animation: vbtn-light2 1.1s linear infinite .4s; }
@keyframes vbtn-light1 { 0% { transform: translate(30px,-30px); filter: blur(10px); opacity: 0; color: white; } 50% { transform: translate(0); filter: blur(0); opacity: 1; color: #acacac; } 100% { transform: translate(-30px,30px); filter: blur(10px); opacity: 0; color: white; } }
@keyframes vbtn-light2 { 0% { transform: translate(30px,-30px); filter: blur(10px); opacity: 0; } 50% { transform: translate(0); filter: blur(0); opacity: 1; color: white; } 100% { transform: translate(-30px,30px); filter: blur(10px); opacity: 0; } }
.mbtn-verify-btn:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* ── Phase transition animations ──────────────────────────────────────────── */
@keyframes phaseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.phase.active { animation: phaseIn .28s cubic-bezier(.25,.8,.25,1) both; }

/* ── Admin Panel ──────────────────────────────────────────────────────────── */
.mbtn-admin-panel {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
}

/* Orbs specific to admin panel */
.orb-adm-1 { width: 80px; height: 80px; right: -18px; top: -18px; background: #7c3aed; }
.orb-adm-2 { width: 60px; height: 60px; left: -12px; bottom: -18px; background: #00d2ff; animation-delay: 1s; }

/* Toggle button — sits on top of the card, full width */
.mbtn-admin-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 14px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s;
}
.mbtn-admin-toggle[aria-expanded="true"] { border-bottom-color: #2e2e2e; }
.mbtn-admin-toggle:hover .mbtn-admin-toggle-label { color: #ff9800; }
.mbtn-admin-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: #ccc;
  transition: color .2s;
}
.mbtn-admin-icon { font-size: 1.1rem; }
.mbtn-admin-chevron {
  color: #555;
  font-size: .75rem;
  transition: transform .22s ease;
}
.mbtn-admin-toggle[aria-expanded="true"] .mbtn-admin-chevron { transform: rotate(180deg); }

/* Body */
.mbtn-admin-body {
  display: none;
  padding: 16px 18px 18px;
}
.mbtn-admin-body.is-open { display: block; animation: phaseIn .22s ease both; }

/* Tabs */
.mbtn-admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mbtn-tab-btn {
  flex: 1;
  min-width: 90px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: .83rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.mbtn-tab-btn:hover { background: #222; color: #ccc; border-color: #444; }
.mbtn-tab-btn.active {
  background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
  border-color: #ff9800;
  color: #fff;
}

/* Tab panes */
.mbtn-tab-pane { display: none; }
.mbtn-tab-pane.active {
  display: block;
  animation: phaseIn .2s ease both;
}

/* Field labels + inputs — reuse hub styles */
.mbtn-field-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 10px 0 5px;
}
.mbtn-field-req { color: #ff6b6b; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.mbtn-field-opt { color: #555; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .78rem; }

.mbtn-admin-panel input[type="text"],
.mbtn-admin-panel input[type="email"],
.mbtn-admin-panel select {
  width: 100%;
  box-sizing: border-box;
  background: #222;
  color: #eee;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .18s;
}
.mbtn-admin-panel input:focus,
.mbtn-admin-panel select:focus { outline: none; border-color: #ff9800; }

.mbtn-unified-field,
.mbtn-steam-field { /* spacing handled by .mbtn-field-label margin */ }

/* Buttons in admin — full width */
.mbtn-admin-panel .mbtn-actions .mbtn-btn { width: 100%; }

/* Result box */
.mbtn-admin-result { margin-top: 14px; border-radius: 8px; overflow: hidden; font-size: .88rem; animation: phaseIn .2s ease both; }
.mbtn-result-ok {
  background: #0d1f14;
  border: 1px solid #2c6b3a;
  color: #7ee8a2;
  padding: 8px 12px;
  font-weight: 700;
  border-radius: 8px 8px 0 0;
}
.mbtn-result-error {
  background: #1f0d10;
  border: 1px solid #6b2c35;
  color: #ffaab3;
  padding: 8px 12px;
  font-weight: 700;
  border-radius: 8px;
}
.mbtn-result-key-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border: 1px solid #2e2e2e;
  border-top: none;
  padding: 10px 12px;
}
.mbtn-result-key {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 1.15rem;
  color: #ffeb3b;
  letter-spacing: 2px;
  flex: 1;
  word-break: break-all;
}
.mbtn-result-key-wrap .mbtn-btn { width: auto; margin: 0; padding: 6px 14px; font-size: .8rem; flex-shrink: 0; }
.mbtn-result-meta {
  background: #111;
  border: 1px solid #2e2e2e;
  border-top: none;
  color: #888;
  padding: 5px 12px;
  font-size: .8rem;
}
.mbtn-result-meta:last-child { border-radius: 0 0 8px 8px; }

.mbtn-otp-countdown.is-urgent {
  color: #ff5252 !important;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255, 82, 82, 0.45);
}

/* Last 10s of OTP validity — card border toggles red each second */
#otpPhase.mbtn-otp-urgent-pulse {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.95), 0 0 22px rgba(239, 68, 68, 0.45);
}
#otpPhase.mbtn-otp-urgent-dim {
  border-color: rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

/* ── OTP pulse glow ────────────────────────────────────────────────────────── */
@keyframes otpGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(102,187,106,0); }
  50%      { box-shadow: 0 0 20px 4px rgba(102,187,106,.35); }
}
#otpPhase .credential-display.otp-display { animation: otpGlow 2s ease-in-out infinite; }

/* ── OTP Instructions Modal ──────────────────────────────────────────────── */
.mbtn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  padding: 16px;
}
.mbtn-modal-box {
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: phaseIn .25s cubic-bezier(.25,.8,.25,1) both;
}
.mbtn-modal-box h3 { margin: 0 0 14px; font-size: 1.1rem; color: #ffca28; }
.orb-modal-1 { width: 75px; height: 75px; right: -16px; top: -16px; background: #e65100; }
.orb-modal-2 { width: 55px; height: 55px; left: -12px; bottom: -14px; background: #00bcd4; animation-delay: .7s; }
.mbtn-modal-instructions {
  margin: 0 0 16px 0;
  padding: 0 0 0 18px;
  color: #c9d7f0;
  font-size: .9rem;
  line-height: 1.7;
}
.mbtn-modal-instructions li { margin-bottom: 6px; }
.mbtn-modal-instructions strong { color: #fff; }
.mbtn-modal-confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: #aaa;
  margin-top: 4px;
  user-select: none;
}
.mbtn-modal-confirm-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #ff9800;
  cursor: pointer;
}
.mbtn-modal-confirm-label:has(input:checked) span { color: #eee; }
#mbtnOtpModalProceed:not(:disabled) {
  box-shadow: 0 0 14px 2px rgba(76,175,80,.4);
}

/* ── Floating gear button ─────────────────────────────────────────────────── */
#mbtnAdminFloatBtn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124,58,237,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
#mbtnAdminFloatBtn:hover { transform: scale(1.1) rotate(30deg); box-shadow: 0 6px 22px rgba(124,58,237,.7); }
#mbtnAdminFloatBtn.is-open { transform: rotate(90deg); }

/* ── Admin panel modal overlay ────────────────────────────────────────────── */
.mbtn-admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.mbtn-admin-modal-box {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  animation: phaseIn .22s cubic-bezier(.25,.8,.25,1) both;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.mbtn-admin-modal-box::-webkit-scrollbar { width: 6px; }
.mbtn-admin-modal-box::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.mbtn-admin-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: transparent;
  border: 1px solid #333;
  color: #888;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}
.mbtn-admin-modal-close:hover { background: #2a1010; border-color: #e53935; color: #ff6b6b; }
.mbtn-admin-modal-header {
  padding: 16px 50px 12px 20px;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mbtn-admin-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ccc;
  letter-spacing: .5px;
}
.mbtn-admin-modal-title span { color: #ff9800; }

/* When the panel is inside the modal — remove redundant inline-admin chrome */
.mbtn-admin-modal-box .mbtn-admin-panel { border-radius: 0 0 14px 14px; margin: 0; box-shadow: none; }
.mbtn-admin-modal-box .mbtn-admin-body { display: block !important; padding: 16px 20px 20px; }
.mbtn-admin-modal-box .glow-orb { display: none; }

@media (max-width: 420px) {
  #mbtnAdminFloatBtn { right: 14px; bottom: 20px; }
}

/* ── Accounts CRUD table ─────────────────────────────────────────────────── */
.mbtn-acc-table { display: flex; flex-direction: column; gap: 6px; }
.mbtn-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0e1520;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  padding: 8px 12px;
}
.mbtn-acc-row-info { flex: 1; min-width: 0; }
.mbtn-acc-name { font-size: .88rem; font-weight: 700; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbtn-acc-id   { font-size: .76rem; color: #556; margin-top: 2px; font-family: Consolas, monospace; }
.mbtn-acc-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mbtn-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  vertical-align: middle;
}
.mbtn-badge-steam { background: #1e3a5f; color: #63b3ed; border: 1px solid #2a5a8c; }
.mbtn-badge-totp  { background: #1a3325; color: #6ee7b7; border: 1px solid #256648; }

/* ── Nuke tab danger styling ──────────────────────────────────────────────── */
.mbtn-tab-nuke-btn.active {
  background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%) !important;
  border-color: #e53935 !important;
}
.mbtn-red { background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%); }
.mbtn-red:disabled { opacity: .45; }

/* ── WP Admin page light-mode overrides ───────────────────────────────────── */
.wrap .mbtn-admin-panel { background: #1c1c1c; border-color: #333; }
.wrap .mbtn-tab-btn { background: #2a2a2a; border-color: #3a3a3a; color: #aaa; }
.wrap .mbtn-tab-btn:hover { background: #333; }
.wrap .mbtn-tab-btn.active { background: linear-gradient(135deg,#ff9800,#e65100); border-color: #ff9800; color:#fff; }
.wrap .mbtn-admin-panel input,
.wrap .mbtn-admin-panel select { background: #222; color: #eee; border-color: #3a3a3a; }

