/* ═══════════════════════════════════════════════════════════════════════════
   INVESTIGA — Sistema Restrito | Style Sheet
   Theme: Pure Black × White × Crimson (accent only)
═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:        #080808;
  --bg-surface:     rgba(13, 13, 15, 0.15);
  --bg-card:        rgba(18, 18, 20, 0.3);
  --bg-card-hover:  rgba(25, 25, 30, 0.4);
  --bg-input:       rgba(0, 0, 0, 0.4);
  --bg-sidebar:     rgba(9, 9, 9, 0.3);

  /* Neutrals */
  --white:          #ffffff;
  --grey-50:        #fafafa;
  --grey-100:       #f5f5f5;
  --grey-200:       #e5e5e5;
  --grey-300:       #d4d4d4;
  --grey-400:       #a3a3a3;
  --grey-500:       #737373;
  --grey-600:       #525252;
  --grey-700:       #404040;
  --grey-800:       #262626;
  --grey-900:       #171717;

  /* Accent — Crimson Red */
  --accent:         #dc2626;
  --accent-sub:     rgba(220, 38, 38, 0.7);
  --accent-glow:    rgba(220, 38, 38, 0.15);

  /* Primary Theme Red */
  --red:            #dc2626;
  --red-light:      #ef4444;
  --red-dark:       #991b1b;
  --red-glow:       rgba(220, 38, 38, 0.18);

  /* Legacy compat — mapped to Theme Red/Grey */
  --blue-400:       var(--grey-400);
  --blue-500:       var(--red);
  --blue-600:       var(--red-dark);
  --blue-700:       #7f1d1d;
  --blue-glow:      var(--red-glow);
  --cyan-400:       var(--grey-200);
  --cyan-500:       var(--grey-400);
  --cyan-glow:      rgba(255, 255, 255, 0.1);
  --purple-400:     var(--grey-400);
  --purple-500:     var(--grey-500);
  --purple-glow:    rgba(255, 255, 255, 0.1);
  --green-400:      #4ade80;
  --green-500:      #22c55e;
  --green-glow:     rgba(34, 197, 100, 0.12);
  --primary-sub:    var(--grey-300);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: var(--grey-400);
  --text-muted:     var(--grey-600);
  --text-blue:      var(--grey-200);

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-mid:     rgba(255, 255, 255, 0.12);
  --border-blue:    rgba(220, 38, 38, 0.15);
  --border-red:     rgba(220, 38, 38, 0.4);
  --border-cyan:    rgba(255, 255, 255, 0.1);

  /* Spacing */
  --sidebar-w: 260px;
  --topbar-h:  64px;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; touch-action: manipulation; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
}

button, input, select, textarea, a {
  touch-action: manipulation;
}

/* ─── Page Utilities ──────────────────────────────────────────────────────── */
.page { width: 100%; background: transparent; }
.page.active { display: block; }
.page.hidden  { display: none;  }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════ LOGIN PAGE ════════════ */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#plexus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(4px) saturate(180%);
  -webkit-backdrop-filter: blur(4px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05); /* Bordas quase invisíveis */
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.85);
  animation: card-enter 0.6s var(--ease-spring) forwards;
}

@media (max-width: 768px) {
  #page-login {
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    inset: 0;
  }
  .login-container {
    height: 100dvh;
    min-height: auto;
    overflow: hidden;
    padding: 16px;
  }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Logo styles ─────────────────────────────────────────────────────────── */
.pf-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(18%) sepia(88%) saturate(7406%) hue-rotate(358deg) brightness(91%) contrast(106%);
}

.pf-logo-sidebar {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(18%) sepia(88%) saturate(7406%) hue-rotate(358deg) brightness(91%) contrast(106%);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--grey-600);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ─── "ACESSO RESTRITO" badge ────────────────────────────────────────────── */
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--grey-300);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.badge-dot {
  width: 5px; height: 5px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

.login-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.login-desc {
  font-size: 13px;
  color: var(--grey-500);
  margin-bottom: 28px;
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0 6px 0;
  color: var(--grey-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.login-divider span {
  padding: 0 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 15px; height: 15px;
  color: var(--grey-600);
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.2s;
  z-index: 1;
}

.input-wrapper:focus-within .input-icon { color: var(--grey-300); }

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 13px 44px 13px 42px;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
}

/* Remove setinhas nativas dos inputs type=number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.input-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}

.input-wrapper input::placeholder { color: var(--grey-700); }

.input-wrapper:focus-within::after {
  width: 100%;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  background: rgba(255, 255, 255, 0.05);
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--grey-600);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  z-index: 10;
}
.toggle-pw:hover { color: var(--grey-300); }
.toggle-pw svg { width: 15px; height: 15px; }

.select-wrapper select {
  cursor: pointer;
  color: var(--white);
  color-scheme: dark;
}
.select-wrapper select option {
  background: #111111;
  color: var(--grey-300);
  padding: 12px;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--white);
  color: #080808;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary::after {
  display: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--grey-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.btn-primary svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-full { width: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--grey-400);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-secondary svg { width: 14px; height: 14px; }

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--grey-500);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-logout:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.btn-logout svg { width: 15px; height: 15px; }

.btn-danger-sm {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--grey-500);
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-danger-sm:hover {
  border-color: rgba(220, 38, 38, 0.4);
  color: #f87171;
  background: rgba(220, 38, 38, 0.1);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
  transform: translateY(-1px);
}
.btn-danger-sm svg { width: 12px; height: 12px; }

/* ─── Spinner ─────────────────────────────────────────────────────────────── */
.btn-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Form feedback ───────────────────────────────────────────────────────── */
.form-error, .form-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: fade-in 0.3s var(--ease);
}

.form-error {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--grey-200);
}
.form-success {
  background: rgba(134,239,172,0.07);
  border: 1px solid rgba(134,239,172,0.2);
  color: var(--green-400);
}

.form-error svg, .form-success svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

.login-footer {
  font-size: 11px;
  color: var(--grey-700);
  text-align: center;
  margin-top: 22px;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════ DASHBOARD ════════════ */

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */
#page-dashboard {
  display: flex;
  min-height: 100dvh;
  background: transparent;
}

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  background: var(--bg-sidebar);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1), height 0.6s cubic-bezier(0.86, 0, 0.07, 1), border-color 0.4s ease;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.02), 4px 0 40px rgba(0,0,0,0.4);
  overflow: hidden;
  will-change: transform;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px;
  color: var(--grey-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.sidebar-toggle-btn svg { width: 15px; height: 15px; }

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  transition: opacity 0.3s ease 0.1s, transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  transform: translateY(0);
  opacity: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--grey-500);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s var(--ease);
  position: relative;
}

.nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-item:hover:not(.active) {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.nav-item.active {
  background: rgba(220, 38, 38, 0.1);
  color: var(--white);
  font-weight: 700;
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: inset 3px 0 0 var(--red);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -1px; top: 0;
  width: 4px; height: 100%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.8);
  border-radius: 0 4px 4px 0;
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.7; box-shadow: 0 0 8px rgba(220, 38, 38, 0.5); }
  to   { opacity: 1; box-shadow: 0 0 18px rgba(220, 38, 38, 0.9); }
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  transform: translateY(0);
  opacity: 1;
}

.user-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-avatar {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  text-transform: uppercase;
}

.user-details { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--grey-600); }
.user-expire { font-size: 10px; color: var(--grey-700); margin-top: 2px; }

.badge-subscription {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-subscription.active {
  background: rgba(134,239,172,0.1);
  color: var(--green-400);
  border: 1px solid rgba(134,239,172,0.2);
}
.badge-subscription.expired {
  background: rgba(255,255,255,0.06);
  color: var(--grey-400);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge-subscription.admin {
  background: rgba(255,255,255,0.08);
  color: var(--grey-200);
  border: 1px solid rgba(255,255,255,0.14);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 999;
  backdrop-filter: blur(4px);
}

/* ─── Main Content ────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-top: var(--topbar-h);
  transition: margin-left 0.6s cubic-bezier(0.86, 0, 0.07, 1);
  background: transparent;
  overflow-x: hidden;
  max-width: 100%;
}

@media (min-width: 769px) {
  body.sidebar-collapsed .sidebar {
    height: var(--topbar-h);
    border-right-color: transparent;
  }
  body.sidebar-collapsed .sidebar-nav,
  body.sidebar-collapsed .sidebar-footer {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  }
  body.sidebar-collapsed .main-content {
    margin-left: 0;
  }
  #sidebar-close {
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    transform-origin: center;
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  body.sidebar-collapsed #sidebar-close {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
    pointer-events: none;
  }
  #sidebar-open.sidebar-toggle-btn {
    display: flex;
    max-width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
    overflow: hidden;
    transform: rotate(180deg) scale(0);
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.86, 0, 0.07, 1), max-width 0.5s cubic-bezier(0.86, 0, 0.07, 1), margin 0.5s ease, padding 0.5s ease;
  }
  body.sidebar-collapsed #sidebar-open.sidebar-toggle-btn {
    max-width: 40px;
    opacity: 1;
    padding: 7px;
    margin-right: 12px;
    border-width: 1px;
    transform: rotate(0deg) scale(1);
  }
}

/* ─── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 500;
}

#sidebar-open { display: none; }

.topbar-logo-mobile { display: none; }

.topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-300);
  flex: 1;
  letter-spacing: 0.02em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu-container { position: relative; }

.topbar-avatar { width: 32px; height: 32px; font-size: 12px; cursor: pointer; transition: all 0.2s; }
.topbar-avatar:hover { border-color: rgba(255,255,255,0.35); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(10,10,10,0.95);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05);
  animation: fade-in 0.2s var(--ease);
  z-index: 200;
}

.user-dropdown.hidden { display: none !important; }

.user-dropdown-info {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
}

.dropdown-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.dropdown-role {
  font-size: 11px;
  color: var(--grey-500);
  text-transform: capitalize;
}

.btn-dropdown-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--grey-300);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.btn-dropdown-logout:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}

.btn-dropdown-logout svg { width: 15px; height: 15px; }

/* ─── Content Panels ──────────────────────────────────────────────────────── */
.content-panel {
  flex: 1;
  padding: 32px 28px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  animation: fade-in 0.35s var(--ease);
  overflow-x: hidden;
  box-sizing: border-box;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Hub ─────────────────────────────────────────────────────────────────── */
.hub-header {
  margin-bottom: 28px;
  position: relative;
  z-index: 5;
}

.hub-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.hub-desc {
  font-size: 13px;
  color: var(--grey-500);
}

.hub-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  perspective: 1000px;
}

.hub-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 22px;
  background: rgba(255,255,255,0.012);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--white);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
}

/* Border Sweep Animation Overlay */
.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
  transform: skewX(-25deg);
  transition: none;
  z-index: 0;
}

.hub-card:hover::before {
  animation: border-sweep 1.2s ease-in-out;
}

@keyframes border-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hub-card:hover {
  border-color: rgba(220, 38, 38, 0.4);
  transform: translateY(-4px) translateZ(10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(220, 38, 38, 0.2);
  background: rgba(15, 15, 15, 0.6); /* Mais escuro no hover para garantir leitura */
}

.hub-card:hover .hub-card-title { color: var(--white); }
.hub-card:hover .hub-card-desc { color: var(--grey-300); }

.hub-card > * { position: relative; z-index: 2; }
.hub-card::before { z-index: 0; }
.hub-card-glow { z-index: 1; }

.hub-card:hover .hub-card-glow { opacity: 0.8; }
.hub-card:hover .hub-card-arrow { transform: translateX(5px); color: var(--white); }

.hub-card:active {
  transform: translateY(-1px) scale(0.99);
  background: rgba(220, 38, 38, 0.08);
}

.hub-card-glow {
  position: absolute;
  top: -50px; left: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.hub-card-glow.red   { background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%); }
.hub-card-glow.white { background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%); }

.hub-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hub-card-icon.red,
.hub-card-icon.white,
.hub-card-icon.orange,
.hub-card-icon.blue {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

.hub-card-icon svg { width: 22px; height: 22px; }
.hub-card-icon.red svg    { color: var(--grey-200); }
.hub-card-icon.white svg  { color: var(--grey-300); }
.hub-card-icon.orange svg { color: var(--grey-300); } 
.hub-card-icon.blue svg   { color: var(--grey-300); }

.hub-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.hub-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.hub-card-desc {
  font-size: 13px;
  color: var(--grey-500);
}

.hub-card-arrow {
  display: flex;
  align-items: center;
  color: var(--grey-700);
  transition: transform 0.22s var(--ease), color 0.22s;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hub-card-arrow svg { width: 18px; height: 18px; }

/* ─── Back button ─────────────────────────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--grey-500);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.btn-back:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: var(--border-mid);
}

.btn-back svg { width: 14px; height: 14px; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.panel-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-icon.silver,
.panel-icon.orange,
.panel-icon.blue,
.panel-icon.cyan,
.panel-icon.purple {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.panel-icon.silver svg,
.panel-icon.orange svg,
.panel-icon.blue svg,
.panel-icon.cyan svg,
.panel-icon.purple svg { color: var(--grey-300); width: 22px; height: 22px; display: block; }

.panel-header h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 3px;
}

.panel-header p { font-size: 13px; color: var(--grey-500); }

/* ─── Search Card ─────────────────────────────────────────────────────────── */
.search-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  position: relative;
  z-index: 100;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
}

/* ─── Quota Badge ─────────────────────────────────────────────────────────── */
.quota-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.quota-badge:hover { opacity: 1; }
.quota-badge svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--grey-500); }
.quota-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-400);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
  min-width: 60px;
}
.quota-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  min-width: 40px;
}
.quota-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--green-500); /* Cor de sucesso padrão */
  transition: width 0.5s cubic-bezier(.4,0,.2,1), background 0.5s;
}
.quota-fill.warn  { background: #fbbf24; }
.quota-fill.crit  { background: #ef4444; }

.input-combined {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-select-wrapper {
  width: 140px;
  flex-shrink: 0;
}

.module-select {
  width: 100%;
  padding: 13px 30px 13px 14px !important;
  font-weight: 600;
  color: var(--white);
  background: var(--bg-surface) !important;
  border-color: var(--border-mid) !important;
}

/* ─── Custom Select ─────────────────────────────────────────────────────── */
.custom-select-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}

.custom-select-display span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.input-wrapper .custom-select-display {
  padding-left: 38px;
  width: 100%;
}

.custom-select-display:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0a0a0a;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 4px;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,0.8);
  animation: fadeDropdown 0.15s ease;
}

@keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-option {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--grey-400);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-option:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}

.custom-select-option.selected {
  color: var(--white);
  background: rgba(255,255,255,0.09);
}

.search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.flex-1 { flex: 1; }

.btn-search {
  padding: 13px 20px;
  flex-shrink: 0;
}

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title svg { width: 16px; height: 16px; color: var(--grey-400); }

/* ─── Result Area ─────────────────────────────────────────────────────────── */
.result-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  animation: stagger-fade-up 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
  border-radius: 16px;
  overflow: hidden;
}

/* Até 20 items pra stagger suave  */
.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.10s; }
.result-card:nth-child(3) { animation-delay: 0.15s; }
.result-card:nth-child(4) { animation-delay: 0.20s; }
.result-card:nth-child(5) { animation-delay: 0.25s; }
.result-card:nth-child(6) { animation-delay: 0.30s; }
.result-card:nth-child(7) { animation-delay: 0.35s; }
.result-card:nth-child(8) { animation-delay: 0.40s; }
.result-card:nth-child(9) { animation-delay: 0.45s; }
.result-card:nth-child(10) { animation-delay: 0.50s; }
.result-card:nth-child(n+11) { animation-delay: 0.55s; }

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border-subtle);
}

.result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 9px;
}

.result-title svg { width: 16px; height: 16px; color: var(--grey-400); }

.result-meta { font-size: 11px; color: var(--grey-600); }

.result-sections { padding: 22px; display: flex; flex-direction: column; gap: 22px; }

.result-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey-600);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-section-title svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0;
  color: inherit;
}

.result-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.result-field {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.18s, background 0.18s;
}

.result-field:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.result-field-key {
  font-size: 9px;
  font-weight: 700;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.result-field-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  word-break: break-word;
}

.result-field-full { grid-column: 1 / -1; }

.result-field-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.result-field-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white);
  padding: 5px 10px;
  background: rgba(255,255,255,0.025);
  border-radius: 6px;
  border-left: 2px solid var(--grey-700);
  transition: border-color 0.18s;
}

.result-field-list-item:hover {
  border-left-color: var(--grey-400);
  background: rgba(255,255,255,0.04);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-list-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  animation: fade-in 0.3s var(--ease) both;
}

.result-list-item:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  transform: translateX(3px);
}

.result-list-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.result-list-info { flex: 1; min-width: 0; }

.result-list-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-list-meta {
  font-size: 12px;
  color: var(--grey-600);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-list-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-empty {
  text-align: center;
  padding: 48px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  animation: fade-in 0.35s var(--ease);
}

.result-empty svg { width: 40px; height: 40px; color: var(--grey-700); margin-bottom: 14px; }
.result-empty h3  { font-size: 16px; font-weight: 700; color: var(--grey-500); margin-bottom: 6px; }
.result-empty p   { font-size: 13px; color: var(--grey-700); }

.result-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: var(--grey-200);
  font-size: 13px;
  font-weight: 500;
  animation: fade-in 0.3s var(--ease);
}

.result-error svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Admin Panel ─────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

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

.users-list { display: flex; flex-direction: column; gap: 8px; }

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  animation: fade-in 0.3s var(--ease) both;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.user-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
  transform-origin: bottom;
}

.user-row:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.user-row:hover::before { transform: scaleY(1); }

.user-row.admin-row {
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: linear-gradient(135deg, rgba(220,38,38,0.06) 0%, rgba(0,0,0,0) 100%);
}
.user-row.admin-row::before { background: #f87171; }

.user-row-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}

.user-row-avatar.admin-av {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.2);
}

.user-row-avatar.premium-av {
  border: 1.2px solid rgba(251, 191, 36, 0.6) !important;

}

.user-row-avatar.expired-av {
  opacity: 0.5;
}

.user-row-info { flex: 1; min-width: 0; }
.user-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.user-row-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.role-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}

.role-badge.admin {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--white);
}

.role-badge.user {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--grey-400);
}

.user-row-date { font-size: 11px; color: var(--grey-600); }

/* ─── Loading states ──────────────────────────────────────────────────────── */
.loading-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-600);
  font-size: 13px;
  padding: 10px 0;
}

.spinner-small {
  width: 15px; height: 15px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--grey-300);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,5,5,0.97);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content { text-align: center; }

.dna-loader {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  justify-content: center;
  height: 48px;
  margin-bottom: 22px;
}

.dna-bar {
  width: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  animation: dna-wave 1.2s ease-in-out infinite;
}

.dna-bar:nth-child(3) { 
  background: var(--red); 
  box-shadow: 0 0 15px var(--accent-glow);
}

.dna-bar:nth-child(1) { animation-delay: 0s; }
.dna-bar:nth-child(2) { animation-delay: 0.15s; }
.dna-bar:nth-child(3) { animation-delay: 0.3s; }
.dna-bar:nth-child(4) { animation-delay: 0.45s; }
.dna-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes dna-wave {
  0%, 100% { height: 14px; opacity: 0.3; }
  50%       { height: 44px; opacity: 1;  }
}

#loading-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}

.loading-sub { font-size: 12px; color: var(--grey-600); }

/* ═══════════════════════════════════════════════ RESPONSIVE ════════════════ */
@media (max-width: 1024px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }

  .sidebar {
    transform: translate3d(-100%, 0, 0);
    background: rgba(5,5,5,0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 5px 0 40px rgba(0,0,0,0.7);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  .sidebar.open { transform: translate3d(0, 0, 0); }

  .sidebar-overlay.visible { display: block !important; }

  #sidebar-open  { display: flex; }
  #sidebar-close { display: flex; }

  .main-content { margin-left: 0; }
  .topbar { left: 0; padding: 0 16px; }

  .topbar-title { display: none; }
  .topbar-logo-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex: 1;
    margin-left: 12px;
  }
  .topbar-logo-img { height: 18px; width: auto; filter: invert(18%) sepia(88%) saturate(7406%) hue-rotate(358deg) brightness(91%) contrast(106%); }

  .content-panel { padding: 18px 14px; }
  .search-row { flex-direction: column; align-items: stretch; }
  .btn-search { justify-content: center; }
  .result-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .panel-header h2 { font-size: 18px; }
  .result-list-meta { flex-direction: column; gap: 4px; }
  .login-card { padding: 28px 20px; }


}

@media (max-width: 480px) {
  .topbar { padding: 0 14px; }
  .status-badge span:last-child { display: none; }
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── Selection ───────────────────────────────────────────────────────────── */
::selection { background: rgba(255,255,255,0.18); color: #fff; }

/* Cloudflare Turnstile */
#login-turnstile, #search-turnstile {
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* ─── Photo Results ───────────────────────────────────────────────────────── */
.photo-result-body {
  display: flex;
  gap: 22px;
  padding: 22px;
}

.photo-container {
  width: 180px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cnh-photo { width: 100%; height: auto; display: block; }

.action-icon-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--grey-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: all 0.2s;
}

.action-icon-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--border-mid);
}

.photo-placeholder {
  width: 180px;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--grey-600);
}

.photo-data-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

@media (max-width: 600px) {
  .photo-result-body { flex-direction: column; align-items: center; }
  .photo-container, .photo-placeholder { width: 100%; max-width: 240px; }
  .photo-data-grid { width: 100%; grid-template-columns: 1fr; }
}

/* ─── Photos V2 ───────────────────────────────────────────────────────────── */
.photo-v2-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}

.photo-v2-section {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.photo-v2-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.photo-v2-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  text-transform: uppercase;
}

.photo-v2-driver-grid { display: flex; gap: 20px; }

.photo-v2-portrait {
  width: 150px;
  aspect-ratio: 3/4;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.photo-v2-portrait-sub {
  font-size: 10px;
  color: var(--grey-500);
  margin-top: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.photo-v2-driver-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-v2-field-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  transition: border-color 0.2s;
}

.photo-v2-field-box:hover { border-color: rgba(255,255,255,0.1); }

.photo-v2-label {
  font-size: 9px;
  color: var(--grey-600);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-v2-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}

.photo-v2-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-v2-status-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px;
  margin-top: auto;
  font-size: 13px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-v2-disclaimer {
  font-size: 11px;
  color: var(--grey-500);
  line-height: 1.5;
  margin-top: 15px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
}

.photo-v2-full { grid-column: 1 / -1; }

.photo-v2-fine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 10px;
}

.photo-v2-fine-icon { width: 20px; height: 20px; color: var(--grey-500); flex-shrink: 0; }
.photo-v2-fine-text { font-size: 13px; color: var(--grey-300); }

@media (max-width: 900px) {
  .photo-v2-container { grid-template-columns: 1fr; }
}

/* ─── Admin Tabs & Logs ─────────────────────────────────────────────────── */
.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 30px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 6px;
  backdrop-filter: blur(8px);
}

.admin-tab {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: var(--grey-500);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.admin-tab:hover {
  color: var(--white);
}

.admin-tab.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.admin-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-tab-content.hidden { display: none !important; }

.logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.logs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrapper { max-width: 250px; }
.search-wrapper input { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }

.logs-container { display: flex; flex-direction: column; }

.log-row {
  display: grid;
  grid-template-columns: 160px 150px 130px 130px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all 0.25s var(--ease);
  position: relative;
}

.log-row:hover {
  background: rgba(255,255,255,0.03);
  transform: translateX(4px);
  border-bottom-color: transparent;
  box-shadow: -4px 0 0 var(--red);
}

.log-date { font-size: 11px; color: var(--grey-500); font-family: monospace; letter-spacing: 0.05em; }
.log-user { font-size: 13px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 8px; }
.log-user-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); }
.log-ip { font-size: 11px; color: var(--grey-600); font-family: monospace; }
.log-details { font-size: 12px; color: var(--grey-400); word-break: break-all; }
.log-details span { color: var(--white); font-weight: 500; }

.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.log-badge.login { background: rgba(134,239,172,0.1); color: var(--green-400); border-color: rgba(134,239,172,0.2); }
.log-badge.falha { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.2); }
.log-badge.nome  { background: rgba(255,255,255,0.06); color: var(--grey-200); border-color: rgba(255,255,255,0.1); }
.log-badge.cpf   { background: rgba(251,191,36,0.1); color: #fbbf24; border-color: rgba(251,191,36,0.2); }
.log-badge.foto  { background: rgba(192,132,252,0.1); color: #c084fc; border-color: rgba(192,132,252,0.2); }
.log-badge.ip    { background: rgba(34,211,238,0.1); color: #22d3ee; border-color: rgba(34,211,238,0.2); }
.log-badge.default { background: rgba(255,255,255,0.04); color: var(--grey-300); border-color: rgba(255,255,255,0.08); }

.log-filters-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.log-filter-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.log-filter-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.log-autocomplete-wrapper { position: relative; }

.log-autocomplete-wrapper input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-v2-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}

.photo-v2-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-v2-status-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px;
  margin-top: auto;
  font-size: 13px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.photo-v2-disclaimer {
  font-size: 11px;
  color: var(--grey-500);
  line-height: 1.5;
  margin-top: 15px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
}

.photo-v2-full { grid-column: 1 / -1; }

.photo-v2-fine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 10px;
}

.photo-v2-fine-icon { width: 20px; height: 20px; color: var(--grey-500); flex-shrink: 0; }
.photo-v2-fine-text { font-size: 13px; color: var(--grey-300); }

@media (max-width: 900px) {
  .photo-v2-container { grid-template-columns: 1fr; }
}

/* ─── Admin Tabs & Logs ─────────────────────────────────────────────────── */
.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 30px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 6px;
  backdrop-filter: blur(8px);
}

.admin-tab {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: var(--grey-500);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.admin-tab:hover {
  color: var(--white);
}

.admin-tab.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.admin-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-tab-content.hidden { display: none !important; }

.logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.logs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrapper { max-width: 250px; }
.search-wrapper input { padding-top: 10px; padding-bottom: 10px; font-size: 13px; }

.logs-container { display: flex; flex-direction: column; }

.log-row {
  display: grid;
  grid-template-columns: 160px 150px 130px 130px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all 0.25s var(--ease);
  position: relative;
}

.log-row:hover {
  background: rgba(255,255,255,0.03);
  transform: translateX(4px);
  border-bottom-color: transparent;
  box-shadow: -4px 0 0 var(--red);
}

.log-date { font-size: 11px; color: var(--grey-500); font-family: monospace; letter-spacing: 0.05em; }
.log-user { font-size: 13px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 8px; }
.log-user-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); }
.log-ip { font-size: 11px; color: var(--grey-600); font-family: monospace; }
.log-details { font-size: 12px; color: var(--grey-400); word-break: break-all; }
.log-details span { color: var(--white); font-weight: 500; }

.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.log-badge.login { background: rgba(134,239,172,0.1); color: var(--green-400); border-color: rgba(134,239,172,0.2); }
.log-badge.falha { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.2); }
.log-badge.nome  { background: rgba(255,255,255,0.06); color: var(--grey-200); border-color: rgba(255,255,255,0.1); }
.log-badge.cpf   { background: rgba(251,191,36,0.1); color: #fbbf24; border-color: rgba(251,191,36,0.2); }
.log-badge.foto  { background: rgba(192,132,252,0.1); color: #c084fc; border-color: rgba(192,132,252,0.2); }
.log-badge.ip    { background: rgba(34,211,238,0.1); color: #22d3ee; border-color: rgba(34,211,238,0.2); }
.log-badge.default { background: rgba(255,255,255,0.04); color: var(--grey-300); border-color: rgba(255,255,255,0.08); }

.log-filters-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.log-filter-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.log-filter-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.log-autocomplete-wrapper { position: relative; }

.log-autocomplete-wrapper input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.log-autocomplete-wrapper input::placeholder { color: var(--grey-700); }

.log-autocomplete-wrapper input:focus {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.log-autocomplete-dropdown, .log-autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #080808;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 16px 48px rgba(0,0,0,0.9);
  animation: fade-in 0.15s ease;
}

.log-autocomplete-dropdown.hidden { display: none !important; }

.log-autocomplete-item {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--grey-300);
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.log-autocomplete-item:last-child { border-bottom: none; }
.log-autocomplete-item:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.log-autocomplete-item .highlight { color: var(--white); font-weight: 700; }

.log-autocomplete-item .ac-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  flex-shrink: 0;
}

.log-active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-200);
  animation: fade-in 0.2s ease;
}

.filter-chip .chip-label { color: var(--grey-500); font-weight: 500; }
.filter-chip .chip-remove { cursor: pointer; opacity: 0.6; transition: opacity 0.15s; display: flex; align-items: center; }
.filter-chip .chip-remove:hover { opacity: 1; }

@media (max-width: 900px) {
  .log-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px; padding: 16px 20px;
    align-items: flex-start !important;
    width: 100%; max-width: 100% !important;
    box-sizing: border-box; overflow: hidden !important;
  }
  .log-row *, .result-list-item *, .user-row * {
    max-width: 100% !important; min-width: 0 !important;
    overflow-wrap: anywhere !important; word-break: break-word !important;
    white-space: normal !important; flex-shrink: 1 !important;
  }
  .log-row > div:last-child { text-align: left !important; margin-top: 6px; }
  .log-row span { flex-wrap: wrap; }
  .log-date, .log-user, .log-ip, .log-details { font-size: 12px; }
  .admin-tabs {
    flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 8px;
    justify-content: flex-start;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { flex: 0 0 auto; white-space: nowrap; }
  .log-filters-bar { flex-direction: column; align-items: stretch; gap: 16px; flex-wrap: nowrap !important; }
  .log-filter-group { width: 100%; flex: auto !important; }
  .user-row {
    flex-direction: column !important; align-items: flex-start !important;
    gap: 16px; padding: 16px 20px; width: 100%;
    max-width: 100vw; box-sizing: border-box; overflow: hidden !important;
  }
  .user-row > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .result-list-item {
    flex-wrap: wrap !important; width: 100% !important; max-width: 100% !important;
    padding: 16px !important; box-sizing: border-box !important; overflow: hidden !important;
  }
  .result-list-info { min-width: 0 !important; flex: 1 1 100% !important; }
  .result-list-arrow { display: none !important; }
}

/* ─── IntelX Layout Fix ───────────────────────────────────────────────────── */
/* Prevent any child of intelx section from blowing past viewport */
#intelx-results, #intelx-header-actions {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.intelx-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.intelx-card-actions {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  gap: 8px !important;
}

/* IntelX spinner - defined in stylesheet so it animates inside innerHTML */
.intelx-loader {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(220, 38, 38, 0.2);
  border-top-color: var(--accent, #dc2626);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  flex-shrink: 0;
}

/* Preview modal: safe on small screens */
.intelx-preview-card {
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
}

/* Prevent horizontal body overflow from any element */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* ─── Global Fluidity ─────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, button {
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-primary:active, .btn-secondary:active { transform: scale(0.97) !important; }

.input-wrapper input, .input-wrapper select { transition: all 0.3s ease; }

.input-wrapper:focus-within {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}

.content-panel {
  display: none;
}
.content-panel.active {
  display: block;
}
.content-panel.active > .panel-header,
.content-panel.active > .search-card,
.content-panel.active > .hub-cards,
.content-panel.active > .admin-controls,
.content-panel.active > .stats-grid {
  animation: stagger-fade-up 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) backwards;
}
.content-panel.active > :nth-child(1) { animation-delay: 0.05s; }
.content-panel.active > :nth-child(2) { animation-delay: 0.12s; }
.content-panel.active > :nth-child(3) { animation-delay: 0.19s; }
.content-panel.active > :nth-child(4) { animation-delay: 0.26s; }
.content-panel.active > :nth-child(5) { animation-delay: 0.33s; }

@keyframes stagger-fade-up {
  0% { opacity: 0; transform: translateY(12px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Ambient White Orbs ─────────────────────────────────────────────────── */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 50%,
    rgba(255,255,255,0) 70%
  );
  animation: orb-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes orb-drift {
  0%   { transform: translate3d(0px, 0px, 0) scale(1); }
  25%  { transform: translate3d(40px, -30px, 0) scale(1.06); }
  50%  { transform: translate3d(-20px, 50px, 0) scale(0.94); }
  75%  { transform: translate3d(60px, 20px, 0) scale(1.1); }
  100% { transform: translate3d(-30px, -40px, 0) scale(0.98); }
}

/* ─── Snow canvas overlay ───────────────────────────────────────────────── */
#snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.4;
}

/* ─── Toast Notification ─────────────────────────────────────────────────── */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  transition: transform 0.4s var(--ease-spring), opacity 0.3s;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Captcha Modal ───────────────────────────────────────────────────────── */
.captcha-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
}

.captcha-modal-box {
  background: rgba(12,12,12,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  animation: card-enter 0.4s var(--ease-spring);
}

.captcha-modal-box h3 { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.captcha-modal-box p  { font-size: 13px; color: var(--grey-500); margin-bottom: 24px; }

/* ─── Modais / Overlays genéricos ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
  padding: 16px;
}

.modal-box {
  background: rgba(10,10,10,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9);
  animation: card-enter 0.35s var(--ease-spring);
}

.modal-box h3 { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 20px; }

/* === PREMIUM ANIMATIONS v2 | INVESTIGA ===================================== */

/* Sidebar nav: hover lift + icon scale */
.nav-item {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-item:hover { transform: translateX(4px); background: rgba(255,255,255,0.04); }
.nav-item:active { transform: translateX(2px) scale(0.98); }
.nav-item .nav-icon { transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.25s; }
.nav-item:hover .nav-icon { transform: scale(1.18); color: var(--white); }
.nav-item.active .nav-icon { color: var(--red); filter: drop-shadow(0 0 6px rgba(220,38,38,0.55)); }

/* Topbar scanning red line (sem sobrescrever position:fixed) */
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.4), transparent);
  animation: topbar-scan 5s ease-in-out infinite;
}
@keyframes topbar-scan {
  0%   { opacity:0; transform: translateX(-100%); }
  30%  { opacity:1; }
  70%  { opacity:1; }
  100% { opacity:0; transform: translateX(100%); }
}

/* Btn-search: light sweep on hover */
.btn-search { position: relative; overflow: hidden; }
.btn-search::after {
  content: '';
  position: absolute; top:0; left:-80px;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-search:hover::after { animation: btn-shine 0.65s ease-in-out forwards; }
@keyframes btn-shine {
  0%   { left:-80px; opacity:0; }
  20%  { opacity:1; }
  100% { left:130%; opacity:0; }
}

/* Result cards: hover lift */
.result-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 14px 44px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* Field rows: slide in from left */
.field-row { animation: field-appear 0.38s cubic-bezier(0.4,0,0.2,1) backwards; }
.field-row:nth-child(1)   { animation-delay: 0.04s; }
.field-row:nth-child(2)   { animation-delay: 0.09s; }
.field-row:nth-child(3)   { animation-delay: 0.14s; }
.field-row:nth-child(4)   { animation-delay: 0.19s; }
.field-row:nth-child(5)   { animation-delay: 0.24s; }
.field-row:nth-child(n+6) { animation-delay: 0.28s; }
@keyframes field-appear {
  from { opacity:0; transform: translateX(-10px); }
  to   { opacity:1; transform: translateX(0); }
}

/* Card titles: red accent bar */
.card-title { position: relative; padding-left: 12px !important; }
.card-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--red);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(220,38,38,0.45);
}

/* Status dot: breathe animation */
.status-dot { animation: status-breathe 2.5s ease-in-out infinite; }
@keyframes status-breathe {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* Logo subtle float */
.pf-logo-sidebar, .pf-logo-img {
  animation: logo-float 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes logo-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}

/* Hub card icon: scale + glow on hover */
.hub-card-icon { transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), filter 0.3s; }
.hub-card:hover .hub-card-icon {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 9px rgba(220,38,38,0.55));
}

/* Modal spring pop */
.modal-box, .captcha-modal-box { animation: modal-pop 0.38s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes modal-pop {
  0%   { opacity:0; transform: scale(0.87) translateY(14px); }
  65%  { transform: scale(1.03); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}

/* Skeleton shimmer for loading states */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size:200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Placeholder fades out when focused */
.input-wrapper input:focus::placeholder { opacity:0; transition: opacity 0.2s; }

/* Section dividers: gradient */
.card-divider, hr {
  border:none; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  margin: 12px 0;
}

/* Premium scrollbar */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius:6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(220,38,38,0.5); }

/* Text selection highlight */
::selection { background: rgba(220,38,38,0.3); color:#fff; }

/* Search card hover depth */
.search-card {
  transition: box-shadow 0.3s ease, border-color 0.3s, transform 0.3s ease;
}
.search-card:hover {
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 8px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

/* Toast bounce up */
.toast-notification.show {
  animation: toast-bounce 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes toast-bounce {
  0%   { opacity:0; transform: translateX(-50%) translateY(20px); }
  65%  { transform: translateX(-50%) translateY(-5px); }
  100% { opacity:1; transform: translateX(-50%) translateY(0); }
}
/* === END PREMIUM ANIMATIONS ============================================== */

/* ─── DISCORD CONSOLE ─────────────────────────────────────────────────────── */
.discord-console {
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  height: 300px;
  backdrop-filter: blur(8px);
}

.discord-console-top {
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-console-btn-clear {
  background: transparent;
  color: var(--grey-500);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.discord-console-btn-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.discord-console-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
}

.discord-console-log {
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  word-wrap: break-word;
  animation: field-appear 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-console-log.info { border-left: 3px solid var(--grey-500); color: var(--grey-300); }
.discord-console-log.success { border-left: 3px solid var(--green); color: var(--green); }
.discord-console-log.warning { border-left: 3px solid var(--yellow); color: var(--yellow); }
.discord-console-log.error { border-left: 3px solid var(--red); color: var(--red); background: rgba(220, 38, 38, 0.05); }

/* Discord actions btn variations */
.btn-discord-danger {
  background: linear-gradient(135deg, #111 0%, #200 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.02), 0 4px 12px rgba(220, 38, 38, 0.15);
  color: var(--white);
}
.btn-discord-danger:hover {
  background: linear-gradient(135deg, #200 0%, #300 100%);
  border-color: var(--red);
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.05), 0 8px 24px rgba(220, 38, 38, 0.3);
}

.badge-warning-text {
  font-size: 10px;
  color: var(--yellow);
  background: rgba(234, 179, 8, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(234, 179, 8, 0.2);
  margin-left: 8px;
}

.card-nuclear-glow {
  background: rgba(220, 38, 38, 0.05) !important;
}
.hub-card-nuclear {
  border: 1px solid rgba(220, 38, 38, 0.3) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.1) !important;
}

/* ─── Discord Mode Selector (Undiscord Clone) ─── */
.discord-mode-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mode-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-item input {
  display: none;
}
.mode-item:hover {
  background: rgba(255,255,255,0.06);
}
.mode-item.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.mode-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--grey-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mode-icon svg { width: 18px; height: 18px; }
.mode-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.mode-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.mode-desc {
  font-size: 12px;
  color: var(--grey-500);
}
.mode-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red, #cf2e2e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s;
}
.mode-check svg { width: 12px; height: 12px; }
.mode-item.active .mode-check {
  opacity: 1;
  transform: scale(1);
}


/* ─── Custom Premium Toggle Switch ─── */
.custom-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.custom-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.05);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: var(--grey-400);
  transition: .3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.custom-toggle input:checked + .toggle-slider {
  background-color: var(--red, #cf2e2e);
  border-color: rgba(220, 38, 38, 0.4);
}
.custom-toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: #fff;
}



.btn-purchase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  color: var(--red-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
}
.btn-purchase:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.1);
}

/* ─── Maintenance Block ─────────────────────────────────────────────────── */
.maintenance-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  gap: 10px;
}
.maintenance-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.maintenance-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.maintenance-subtitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-light);
  margin: 0;
}
.maintenance-desc {
  font-size: 13px;
  color: var(--grey-400);
  line-height: 1.6;
  margin: 6px 0 12px;
}
.maintenance-desc strong {
  color: var(--grey-200);
}
.maintenance-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.mbadge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-400);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 99px;
  padding: 4px 10px;
}

/* Purchase page */
.purchase-card {
  max-width: 480px;
  width: 100%;
  min-height: 560px;
}
.purchase-step.hidden { display: none; }

.btn-back-purchase {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--grey-400);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.btn-back-purchase:hover { color: var(--white); }

.purchase-subtitle {
  text-align: center;
  color: var(--grey-400);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Plan cards */
.plans-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plans-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(220,38,38,0.07) 0%, transparent 70%);
  transition: opacity 0.3s;
}
.plan-card:hover { border-color: rgba(220,38,38,0.35); }
.plan-card:hover::before { opacity: 1; }
.plan-card.plan-premium {
  border-color: rgba(220,38,38,0.2);
  background: rgba(220,38,38,0.04);
}
.plan-card.plan-premium::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-light), transparent);
  opacity: 0.6;
}
.plan-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  flex-shrink: 0;
}
.plan-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--red-light);`r`n  stroke: var(--red-light);
}
.plan-card-body { min-width: 0; }
.plan-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.plan-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(220,38,38,0.15);
  color: var(--red-light);
  border: 1px solid rgba(220,38,38,0.25);
}
.plan-card-desc {
  display: block;
  font-size: 12px;
  color: var(--grey-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.plan-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}
.plan-card-price.price-tbd {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-500);
}
.plan-card-select {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.plan-card-select svg { width: 12px; height: 12px; }
.plan-card:hover .plan-card-select { color: var(--red-light); }

/* PIX Payment */
/* ─── PIX Header Row ─────────────────────────────────────────────── */
.pix-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 20px;
}
.pix-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pix-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.pix-plan-name {
  color: var(--grey-500);
  font-size: 12px;
  margin: 2px 0 0;
}
.pix-valor-badge {
  margin-left: auto;
  font-size: 18px;
  font-weight: 800;
  color: var(--red-light);
  white-space: nowrap;
}

/* ─── QR Code area ─────────────────────────────────────────────────── */
.pix-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.pix-qr-frame {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  border: 1.5px solid rgba(255,255,255,0.07);
}
.pix-qr-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.pix-qr-corners span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--red-light);
  border-style: solid;
}
.pix-qr-corners span:nth-child(1) { top: 6px; left: 6px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.pix-qr-corners span:nth-child(2) { top: 6px; right: 6px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.pix-qr-corners span:nth-child(3) { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.pix-qr-corners span:nth-child(4) { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.pix-qr-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pix-qr-label {
  font-size: 10px;
  color: var(--grey-600);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.pix-timer-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--grey-500);
}
.pix-timer-hint strong { color: var(--grey-300); }

/* ─── Copia e Cola ─────────────────────────────────────────────────── */
.pix-copiacola { margin-bottom: 16px; }
.pix-copiacola-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.pix-code-wrapper {
  display: flex;
  gap: 8px;
}
.pix-code-input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--grey-400);
  font-size: 11px;
  font-family: 'Courier New', monospace;
  outline: none;
}
.btn-copy-pix {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 8px;
  color: #22c55e;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-copy-pix:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
}
.btn-pix-confirm {
  margin-bottom: 10px;
}
.pix-footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--grey-600);
  margin: 0;
}


/* ─── Step 3: Definir Senha ──────────────────────────────────────────────── */
.pwstep-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.pwstep-title-block { margin-top: 16px; }
.pwstep-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 4px;
}
.pwstep-subtitle {
  font-size: 12px;
  color: var(--grey-500);
  margin: 0;
}

/* Username block — compact and neutral */
.generated-user-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 16px;
}
.generated-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--grey-500);
}
.generated-user-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-500);
}
.generated-user-value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.generated-user-hint {
  font-size: 11px;
  color: var(--grey-600);
  margin: 0;
  line-height: 1.5;
}

/* Error block */
.purchase-error-block {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--red-light);
  margin-bottom: 12px;
}
.purchase-error-block svg { flex-shrink: 0; margin-top: 1px; stroke: var(--red-light); }
.purchase-error-block.hidden { display: none; }

/* ─── Step 4: Manutenção / Sucesso ───────────────────────────────────────── */
.pwsuccess-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 0 8px;
}
.pwsuccess-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.pwsuccess-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.pwsuccess-desc {
  font-size: 13px;
  color: var(--grey-400);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}
.pwsuccess-desc strong { color: var(--grey-200); }

/* Secondary button */
.pwstep-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--grey-300);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.pwstep-btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESELLER PANEL
═══════════════════════════════════════════════════════════════════════════ */

.reseller-only.hidden { display: none !important; }

.reseller-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.reseller-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition: border-color 0.25s;
}
.reseller-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.reseller-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reseller-stat-icon svg { width: 22px; height: 22px; }
.reseller-stat-icon.green {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.reseller-stat-icon.green svg { stroke: #22c55e; }
.reseller-stat-icon.blue {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red-light);
}
.reseller-stat-icon.blue svg { stroke: var(--red-light); }
.reseller-stat-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}
.reseller-stat-icon.orange svg { stroke: #f97316; }
.reseller-stat-info { display: flex; flex-direction: column; }
.reseller-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.reseller-stat-label {
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 4px;
  font-weight: 500;
}

/* Reseller create form */
.reseller-create-form .reseller-create-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.reseller-create-form .reseller-create-row .flex-1 { flex: 1; }

.reseller-create-result {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  padding: 16px;
}
.reseller-create-result .created-username {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #22c55e;
}

/* Role badge for reseller */
.role-badge.reseller,
.badge-reseller {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .reseller-stats { grid-template-columns: 1fr; }
  .reseller-create-form .reseller-create-row { flex-direction: column; }
  .plans-container { gap: 10px; }
}



/* --- Floating Indicator Override --- */
.admin-tabs { position: relative; }
.admin-tab { z-index: 2; }
.admin-tab.active { background: transparent !important; box-shadow: none !important; }
.admin-tab-indicator { position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); pointer-events: none; z-index: 1; }

/* ─── PANDORA Premium Styles ─────────────────────────────────────────────────── */
.golden {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}
.pandora-main-card {
  border: 1px solid rgba(251, 191, 36, 0.15) !important;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.04) 0%, rgba(5,5,5,0.4) 100%) !important;
  backdrop-filter: blur(20px);
}
.pandora-section {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.pandora-section:last-child { border-bottom: none; }
.section-divider {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fbbf24;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.9;
}
.section-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(251, 191, 36, 0.25), transparent);
}
.pandora-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-item.full { grid-column: 1 / -1; }
.grid-label {
  font-size: 9px; color: var(--grey-600);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 6px; font-weight: 600;
}
.grid-value {
  font-size: 14px; color: var(--grey-100);
  font-weight: 500; line-height: 1.4;
}
.grid-value.jumbo {
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em; color: #fff;
}
.grid-value.highlight {
  color: #fbbf24; font-family: inherit; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px; background: rgba(251, 191, 36, 0.08); border-radius: 6px;
  transition: all 0.2s;
}
.grid-value.highlight:hover { background: rgba(251, 191, 36, 0.15); transform: translateY(-1px); }
.relationships-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.relation-card {
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px; padding: 16px; transition: all 0.3s var(--ease);
}
.relation-card:hover {
  background: rgba(255, 255, 255, 0.05); transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.relation-role {
  font-size: 9px; font-weight: 800; color: #fbbf24;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.relation-info { display: flex; flex-direction: column; gap: 2px; }
.relation-name { font-size: 14px; font-weight: 700; color: #fff; }
.relation-cpf {
  font-size: 12px; color: var(--grey-500); font-family: monospace;
  cursor: pointer; transition: color 0.2s;
}
.relation-cpf:hover { color: #fbbf24; }
.relation-meta {
  font-size: 11px; color: var(--grey-600); margin-top: 10px;
  padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.03);
}
.address-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.addr-card {
  background: rgba(255, 255, 255, 0.02); border-left: 3px solid #fbbf24;
  padding: 15px; border-radius: 4px 12px 12px 4px;
}
.addr-line { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.addr-sub { font-size: 12px; color: var(--grey-400); line-height: 1.4; }
.contacts-footer {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-badge {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s;
}
.contact-badge:hover {
  background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.4); transform: scale(1.03);
}
.contact-badge.email { color: #93c5fd; border-color: rgba(147, 197, 253, 0.2); }
.contact-badge.email:hover { background: rgba(147, 197, 253, 0.1); }
@media (max-width: 600px) {
  .pandora-grid { grid-template-columns: 1fr; }
  .relationships-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   PURCHASE / RESELLER (added by integration)
   ═══════════════════════════════════════════════════════════════════ */

/* Real PIX QR rendered inside #pix-qr-img */
.pix-qr-real {
  width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: 8px;
  display: block;
}

.purchase-loading { display: flex; align-items: center; gap: 10px; color: var(--grey-300); font-size: 13px; padding: 14px; }

/* Reseller panel */
.reseller-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.reseller-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 18px;
}
.reseller-card-balance {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-color: rgba(255,255,255,0.15);
}
.reseller-card-label { font-size: 12px; color: var(--grey-400); text-transform: uppercase; letter-spacing: 0.5px; }
.reseller-card-value { font-size: 26px; font-weight: 700; color: #fff; margin-top: 6px; }
.reseller-card-sub { font-size: 12px; color: var(--grey-300); margin-top: 6px; }

.reseller-actions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 8px;
}
.reseller-action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 18px;
}
.reseller-action-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #fff; margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.reseller-form { display: flex; flex-direction: column; gap: 6px; }
.reseller-form label {
  font-size: 11px; color: var(--grey-400); text-transform: uppercase;
  letter-spacing: 0.5px; margin-top: 6px;
}
.reseller-input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-size: 14px; outline: none;
}
.reseller-input:focus { border-color: rgba(255,255,255,0.25); }
.reseller-feedback {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
}
.reseller-feedback.success { background: rgba(99,201,140,0.12); color: #63c98c; border: 1px solid rgba(99,201,140,0.25); }
.reseller-feedback.error   { background: rgba(248,113,113,0.10); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

.reseller-history-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 18px;
}
.reseller-history-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.reseller-sales-list {
  display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto;
}
.reseller-sale-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.20); padding: 10px 14px; border-radius: 8px;
  border-left: 3px solid var(--grey-500); font-size: 13px;
}
.reseller-sale-row.paid    { border-left-color: #63c98c; }
.reseller-sale-row.pending { border-left-color: #fbbf24; }
.reseller-sale-row.expired { border-left-color: #f87171; }
.reseller-sale-payer { color: #fff; font-weight: 600; }
.reseller-sale-meta  { color: var(--grey-400); font-size: 11px; margin-top: 2px; }
.reseller-sale-amount { font-weight: 700; color: #fff; font-size: 14px; }
.reseller-sale-status {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px;
  border-radius: 4px; margin-left: 8px;
}
.reseller-sale-status.paid    { background: rgba(99,201,140,0.15); color: #63c98c; }
.reseller-sale-status.pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.reseller-sale-status.expired { background: rgba(248,113,113,0.15); color: #f87171; }
.reseller-empty { color: var(--grey-400); font-size: 13px; text-align: center; padding: 20px; }

.btn-ghost {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  transition: all .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }

/* Status banner inside the PIX step */
.pix-status-banner {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.pix-status-banner.waiting { background: rgba(251,191,36,0.10); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.pix-status-banner.paid    { background: rgba(99,201,140,0.12); color: #63c98c; border: 1px solid rgba(99,201,140,0.30); }
.pix-status-banner.error   { background: rgba(248,113,113,0.10); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

/* ═══════════════════════════════════════════════════════════════════
   FIX: garante que dashboard/purchase fiquem acima do #plexus-canvas
   (que tem position:absolute z-index:0 e pinta retângulo PRETO opaco
   por baixo dos panels translúcidos do reseller).
   ═══════════════════════════════════════════════════════════════════ */
#page-dashboard,
#page-purchase {
  position: relative;
  z-index: 1;
}

/* Esconde o plexus apenas no dashboard (painel principal do usuário). */
#page-dashboard.active ~ #plexus-canvas,
body:has(#page-dashboard.active) #plexus-canvas {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN: Lista de planos / produtos
   ═══════════════════════════════════════════════════════════════════ */
.plans-admin-list {
  display: flex; flex-direction: column; gap: 10px;
}
.plan-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.plan-row:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
.plan-row.inactive { opacity: 0.55; }
.plan-row-info { min-width: 0; }
.plan-row-info .plan-row-id {
  font-size: 11px; color: var(--grey-500); font-family: monospace;
  text-transform: uppercase; letter-spacing: .5px;
}
.plan-row-info .plan-row-label {
  font-size: 14px; color: #fff; font-weight: 700; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plan-row-info .plan-row-desc {
  font-size: 12px; color: var(--grey-400); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plan-row-meta {
  text-align: right; font-size: 12px; color: var(--grey-300);
  white-space: nowrap; line-height: 1.4;
}
.plan-row-price {
  font-size: 14px; font-weight: 700; color: #cf2e2e;
  background: rgba(220,38,38,0.10); border: 1px solid rgba(220,38,38,0.25);
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.plan-row-actions { display: flex; gap: 6px; }
.plan-row-actions button {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--grey-200); padding: 7px 10px; border-radius: 8px; cursor: pointer;
  font-size: 12px; display: inline-flex; align-items: center; gap: 5px;
  transition: all .15s;
}
.plan-row-actions button:hover { background: rgba(255,255,255,0.10); color: #fff; }
.plan-row-actions .btn-edit:hover { border-color: rgba(59,130,246,0.5); color: #60a5fa; }
.plan-row-actions .btn-toggle:hover { border-color: rgba(251,191,36,0.5); color: #fbbf24; }
.plan-row-actions .btn-del:hover { border-color: rgba(248,113,113,0.5); color: #f87171; }

@media (max-width: 700px) {
  .plan-row { grid-template-columns: 1fr; gap: 8px; }
  .plan-row-meta { text-align: left; }
}

/* Modal de plano (compartilha estilo do create-user-modal) */
.plan-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(8px);
}
.plan-modal {
  background: #0f0f10; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  max-height: 90vh; overflow-y: auto;
}
.plan-modal h3 {
  font-size: 18px; color: #fff; margin: 0 0 18px; display: flex;
  align-items: center; gap: 10px;
}
.plan-modal label {
  font-size: 11px; color: var(--grey-500); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600; display: block; margin: 14px 0 6px;
}
.plan-modal input,
.plan-modal textarea {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: #fff; padding: 10px 12px; font-size: 14px; outline: none;
  box-sizing: border-box; transition: border-color 0.15s;
  font-family: inherit;
}
.plan-modal input:focus,
.plan-modal textarea:focus { border-color: rgba(255,255,255,0.25); }
.plan-modal textarea { resize: vertical; min-height: 60px; }
.plan-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-modal-actions {
  display: flex; gap: 10px; margin-top: 22px;
}
.plan-modal-actions button { flex: 1; padding: 12px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s;
  border: none;
}
.plan-modal-actions .btn-cancel {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--grey-400);
}
.plan-modal-actions .btn-save {
  background: linear-gradient(135deg, #cf2e2e, #a82222); color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}
.plan-modal-error {
  display: none; background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.3); color: #f87171;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   QR CODE - design melhorado
   ═══════════════════════════════════════════════════════════════════ */
.pix-qr-real {
  width: 220px; height: 220px;
  padding: 14px;
  background: #ffffff;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 30px rgba(239,68,68,0.18),
              0 4px 12px rgba(0,0,0,0.5),
              inset 0 0 0 1px rgba(255,255,255,0.08);
}
.pix-qr-stack {
  position: relative;
  display: inline-block;
}
.pix-qr-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: #ffffff;
  border: 3px solid #ef4444;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  pointer-events: none;
}
.pix-qr-logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: invert(18%) sepia(88%) saturate(7406%) hue-rotate(358deg) brightness(91%) contrast(106%);
}

.custom-select-wrapper { width: 100%; position: relative; }
.custom-toggle { vertical-align: middle; }


.custom-select-ready, .module-select { display: none !important; }
.custom-toggle.sm { width: 34px; height: 18px; }
.custom-toggle.sm .toggle-slider:before { height: 12px; width: 12px; left: 2.5px; bottom: 2px; }
.custom-toggle.sm input:checked + .toggle-slider:before { transform: translateX(16px); }

