/* ==========================================================================
   SYNAPSE PLATFORM - AUTH, WELCOME, PROFILE & ADMIN STYLES
   Strict adherence to Asimov Academy / Synapse Design System:
   - Deep Surface: #0E1014 / #13161C / #181B23
   - Primary Accent: #00D2B4 (Teal/Cyan)
   - Secondary Accents: #3B82F6 (Blue), #E5A93C (Amber), #10B981 (Green)
   - Clean 1px Borders: rgba(255, 255, 255, 0.08)
   - Zero Emojis (Phosphor Icons Exclusive)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LOGIN PAGE (login.html)
   -------------------------------------------------------------------------- */
.login-page-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-app, #0E1014);
  font-family: var(--font-sans, 'DM Sans', 'Inter', sans-serif);
  color: var(--text-primary, #FFFFFF);
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-canvas-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: auto;
}

.login-glass-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 410px;
  padding: 20px;
  margin: auto;
}

.login-glass-card {
  background: rgba(19, 22, 28, 0.76);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg, 18px);
  padding: 32px 32px 28px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65),
              inset 0 1px 1px rgba(255, 255, 255, 0.12),
              inset 0 0 20px rgba(0, 210, 180, 0.02);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

/* Efeito de Luz no Contorno do Card (Border Spotlight) */
.login-glass-card::before,
.synapse-welcome-modal::before,
.inspect-modal-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  border: 1.5px solid transparent !important;
  background: radial-gradient(
    320px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    #00D2B4 0%,
    rgba(0, 240, 255, 0.90) 30%,
    rgba(0, 210, 180, 0.25) 60%,
    transparent 100%
  ) border-box !important;
  -webkit-mask: 
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0) !important;
  -webkit-mask-composite: destination-out !important;
  mask: 
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0) !important;
  mask-composite: exclude !important;
  opacity: 0 !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 10 !important;
}

/* Brilho de Superfície Suave */
.login-glass-card::after,
.synapse-welcome-modal::after,
.inspect-modal-card::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: 1 !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: radial-gradient(
    260px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(0, 210, 180, 0.10) 0%,
    rgba(0, 210, 180, 0.02) 50%,
    transparent 80%
  ) !important;
}

.login-glass-card:hover::before,
.login-glass-card:hover::after,
.synapse-welcome-modal:hover::before,
.synapse-welcome-modal:hover::after,
.inspect-modal-card:hover::before,
.inspect-modal-card:hover::after {
  opacity: 1 !important;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-brain-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm, 10px);
  background: rgba(0, 210, 180, 0.10);
  border: 1px solid rgba(0, 210, 180, 0.25);
  color: var(--ui-accent, #00D2B4);
  margin-bottom: 10px;
  box-shadow: 0 0 16px rgba(0, 210, 180, 0.15);
}

.login-brand-title {
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.login-brand-title .brand-accent {
  color: var(--ui-accent, #00D2B4);
}

.login-restricted-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(0, 210, 180, 0.08);
  border: 1px solid rgba(0, 210, 180, 0.20);
  color: var(--ui-accent, #00D2B4);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.login-alert-box {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 500;
}

.login-alert-box.error {
  display: flex;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}

.login-alert-box.success {
  display: flex;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
}

.login-form-group {
  margin-bottom: 14px;
}

.login-form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary, #CBD5E1);
  margin-bottom: 5px;
}

.login-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.forgot-link {
  color: var(--ui-accent, #00D2B4) !important;
  text-decoration: none;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: color var(--transition-fast, 150ms), opacity var(--transition-fast, 150ms);
}

.forgot-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

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

.login-input-wrap i.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted, #8E96A4);
  font-size: 15px;
  pointer-events: none;
  transition: all var(--transition-fast, 180ms) cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.login-input-wrap:hover i.input-icon {
  color: var(--ui-accent, #00D2B4);
  filter: drop-shadow(0 0 6px rgba(0, 210, 180, 0.50));
  transform: scale(1.05);
}

.login-input-wrap:focus-within i.input-icon {
  color: var(--ui-accent, #00D2B4) !important;
  filter: drop-shadow(0 0 10px rgba(0, 210, 180, 0.85));
  transform: scale(1.1);
}

.login-input-wrap input {
  width: 100%;
  height: 40px;
  background: rgba(24, 27, 35, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 0 36px 0 36px;
  font-size: 13px;
  font-family: inherit;
  color: #FFFFFF;
  outline: none;
  transition: all var(--transition-fast, 150ms);
  box-sizing: border-box;
}

.login-input-wrap:hover input {
  border-color: rgba(0, 210, 180, 0.45);
}

.login-input-wrap input:focus {
  background: rgba(32, 36, 46, 0.85);
  border: 1px solid var(--ui-accent, #00D2B4);
  box-shadow: none;
}

/* Correção Definitiva de Autofill do Navegador (Chrome / Edge / Safari) */
.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover, 
.login-input-wrap input:-webkit-autofill:focus, 
.login-input-wrap input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #181B23 inset !important;
  box-shadow: 0 0 0 1000px #181B23 inset !important;
  -webkit-text-fill-color: #FFFFFF !important;
  caret-color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.login-input-wrap input:-webkit-autofill:focus {
  border-color: var(--ui-accent, #00D2B4) !important;
  -webkit-box-shadow: 0 0 0 1000px #181B23 inset !important;
  box-shadow: 0 0 0 1000px #181B23 inset !important;
}

.login-input-wrap input:-webkit-autofill ~ i.input-icon,
.login-input-wrap input:-webkit-autofill ~ .toggle-pwd-btn {
  z-index: 2;
  color: #CBD5E1;
}

.login-input-wrap .toggle-pwd-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted, #8E96A4);
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-input-wrap .toggle-pwd-btn:hover {
  color: #FFFFFF;
}

.login-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted, #8E96A4);
  margin-bottom: 16px;
  user-select: none;
  cursor: pointer;
}

.login-checkbox-row input[type="checkbox"] {
  accent-color: var(--ui-accent, #00D2B4);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.login-submit-btn,
.login-btn-primary {
  width: 100%;
  height: 40px;
  background: var(--ui-accent, #00D2B4);
  border: none;
  border-radius: var(--radius-sm, 8px);
  color: #080C14;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
}

.login-submit-btn:hover,
.login-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.login-submit-btn:active,
.login-btn-primary:active {
  transform: translateY(0);
}

/* Animação Fluida de Spinner e Estado de Carregamento */
@keyframes phSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ph-spin,
.login-spinner-icon {
  display: inline-block !important;
  animation: phSpin 0.75s linear infinite !important;
  transform-origin: center center;
}

.login-btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(8, 12, 20, 0.25);
  border-top-color: #080C14;
  border-radius: 50%;
  animation: phSpin 0.65s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.login-submit-btn:disabled,
.login-btn-primary:disabled {
  opacity: 0.9;
  cursor: wait;
  filter: brightness(0.96);
  pointer-events: none;
}

.login-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  text-align: center;
  font-size: 11px;
  color: var(--text-muted, #8E96A4);
  line-height: 1.4;
}

/* Transição de Boas-Vindas no Próprio Card de Login */
.login-welcome-view {
  text-align: center;
  padding: 4px 0 2px;
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-welcome-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid rgba(0, 210, 180, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--ui-accent, #00D2B4);
  margin: 0 auto 12px;
  overflow: hidden;
}

.login-welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(0, 210, 180, 0.08);
  border: 1px solid rgba(0, 210, 180, 0.20);
  color: var(--ui-accent, #00D2B4);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.login-welcome-title {
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.login-glass-container.welcome-expanded,
.login-glass-container:has(.login-welcome-view) {
  max-width: 580px;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-welcome-desc {
  font-size: 13.5px;
  color: var(--text-secondary, #CBD5E1);
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 520px;
}

.login-welcome-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.login-welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 6px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary, #CBD5E1);
  white-space: nowrap;
}

.login-welcome-chip.streak {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.20);
  color: #F59E0B;
}

.login-welcome-chip.xp {
  background: rgba(0, 210, 180, 0.08);
  border-color: rgba(0, 210, 180, 0.20);
  color: var(--ui-accent, #00D2B4);
}

/* Barra de Carregamento Dinâmica Suave */
.login-loading-container {
  width: 100%;
  padding: 0;
  margin-top: 14px;
  background: transparent;
  border: none;
}

.login-loading-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
  position: relative;
}

.login-loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00D2B4, #00F0FF);
  border-radius: var(--radius-full, 9999px);
  width: 0%;
  box-shadow: 0 0 10px rgba(0, 210, 180, 0.5);
  animation: loadProgress 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  30% { width: 45%; }
  70% { width: 85%; }
  100% { width: 100%; }
}

/* --------------------------------------------------------------------------
   2. DYNAMIC CENTRAL WELCOME MODAL (.synapse-welcome-overlay)
   -------------------------------------------------------------------------- */
.synapse-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast, 150ms);
}

.synapse-welcome-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.synapse-welcome-modal {
  position: relative;
  max-width: 580px;
  width: 94%;
  background: rgba(18, 22, 30, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg, 20px);
  padding: 36px 40px 30px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 210, 180, 0.10);
  transform: scale(0.96) translateY(-10px);
  transition: all var(--transition-fast, 150ms);
  overflow: hidden;
}

.synapse-welcome-overlay.show .synapse-welcome-modal {
  transform: scale(1) translateY(0);
}

.welcome-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #8E96A4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast, 150ms);
}

.welcome-modal-close:hover {
  background: var(--bg-surface-hover, #20242E);
  border-color: rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
}

.welcome-modal-halo-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
}

.welcome-modal-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-surface-raised, #181B23);
  border: 2px solid rgba(0, 210, 180, 0.45);
  box-shadow: 0 0 20px rgba(0, 210, 180, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--ui-accent, #00D2B4);
  overflow: hidden;
}

.welcome-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(0, 210, 180, 0.10);
  border: 1px solid rgba(0, 210, 180, 0.25);
  color: var(--ui-accent, #00D2B4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.welcome-modal-title {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0 0 8px 0;
}

.welcome-modal-message {
  font-size: 13.5px;
  color: var(--text-secondary, #CBD5E1);
  margin: 0 auto 20px;
  line-height: 1.5;
  max-width: 520px;
}

.welcome-modal-chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.welcome-modal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #CBD5E1);
  white-space: nowrap;
}

.welcome-modal-chip.streak {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.25);
  color: #F59E0B;
}

.welcome-modal-chip.xp {
  background: rgba(0, 210, 180, 0.10);
  border-color: rgba(0, 210, 180, 0.25);
  color: var(--ui-accent, #00D2B4);
}

/* Barra Dinâmica de Carregamento no Modal de Boas-Vindas */
.welcome-loading-container {
  width: 100%;
  padding: 0;
  margin-top: 16px;
  background: transparent;
  border: none;
}

.welcome-loading-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
  position: relative;
}

.welcome-loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00D2B4, #00F0FF);
  border-radius: var(--radius-full, 9999px);
  width: 0%;
  box-shadow: 0 0 10px rgba(0, 210, 180, 0.5);
  animation: loadProgress 4.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes loadProgressFarewell {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* --------------------------------------------------------------------------
   3. STUDENT PROFILE PAGE (perfil.html) - OFFICIAL SYNAPSE IDENTITY
   -------------------------------------------------------------------------- */
.profile-page-container {
  max-width: 1400px;
  margin: 88px auto 80px;
  padding: 0 28px;
  width: 100%;
}

/* Glassmorphic Unified Hero Card */
.synapse-profile-hero {
  background: rgba(19, 22, 28, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-large {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #13161C;
  border: 2px solid rgba(0, 210, 180, 0.45);
  box-shadow: 0 0 20px rgba(0, 210, 180, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.profile-level-badge-float {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--ui-accent, #00D2B4);
  color: #080C14;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  border: 2px solid #13161C;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
  z-index: 2;
}

.profile-identity-block {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.profile-display-name {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0;
}

.profile-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 210, 180, 0.12);
  border: 1px solid rgba(0, 210, 180, 0.28);
  color: var(--ui-accent, #00D2B4);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-headline-text {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 8px 0;
}

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

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8E96A4;
}

.profile-meta-item i {
  font-size: 14px;
}

/* XP Card on Right */
.profile-hero-right {
  min-width: 260px;
}

.profile-xp-box {
  background: rgba(14, 16, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 18px;
}

.profile-xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 8px;
}

.profile-xp-val {
  font-family: var(--font-mono, monospace);
  color: var(--ui-accent, #00D2B4);
}

.xp-bar-outer {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.xp-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #00D2B4, #00F0FF);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.profile-xp-sub {
  font-size: 10.5px;
  color: #64748B;
  font-family: var(--font-mono, monospace);
  margin-top: 6px;
}

/* Linear / Vercel Minimalist Tabs */
.profile-tabs-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(14, 16, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 24px;
  overflow-x: auto;
}

.profile-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #8E96A4;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 150ms ease;
  white-space: nowrap;
}

.profile-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.profile-tab-btn.active {
  background: rgba(0, 210, 180, 0.12);
  color: var(--ui-accent, #00D2B4);
  border-color: rgba(0, 210, 180, 0.25);
  font-weight: 600;
}

.profile-tab-pane {
  display: none;
}

.profile-tab-pane.active {
  display: block;
  animation: fadeIn 200ms ease;
}

/* Metrics Grid 4 - Cohesive Dark OLED */
.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: rgba(19, 22, 28, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 150ms ease;
}

.admin-stat-card:hover {
  border-color: rgba(0, 210, 180, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.admin-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.admin-stat-icon.teal {
  background: rgba(0, 210, 180, 0.10);
  border: 1px solid rgba(0, 210, 180, 0.22);
  color: var(--ui-accent, #00D2B4);
}

.admin-stat-icon.cyan {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.20);
  color: #00F0FF;
}

.admin-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #FFFFFF;
  line-height: 1.1;
}

.admin-stat-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #8E96A4;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   GALERIA DE 250 CONQUISTAS (BADGES GAMIFICADAS COM 3D TILT & HOLOGRAPHIC)
   -------------------------------------------------------------------------- */
/* ==========================================================================
   GALERIA DE CONQUISTAS: VITRINE DE EMBLEMAS (ESTILO COMPACTO & MINIMALISTA)
   ========================================================================== */
.badges-grid-250 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  perspective: 2200px;
}

.badge-card-250 {
  background: rgba(18, 21, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(2200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  min-height: 142px;
  box-sizing: border-box;
}

/* Micro-Reflexo Super Suave (5%) */
.badge-card-250::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle 140px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.06), transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.badge-card-250:hover::after {
  opacity: 1;
}

.badge-card-250:hover,
.badge-card-250:focus-visible {
  border-color: rgba(0, 210, 180, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 210, 180, 0.12);
  z-index: 2;
}

.badge-card-250.unlocked {
  background: linear-gradient(145deg, rgba(22, 26, 35, 0.94) 0%, rgba(16, 19, 26, 0.90) 100%);
  border-color: rgba(0, 210, 180, 0.35);
}

.badge-card-250.locked {
  background: rgba(14, 16, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.55;
  filter: grayscale(0.80);
}

.badge-card-250.locked:hover {
  opacity: 0.95;
  filter: grayscale(0.15);
  background: rgba(20, 24, 32, 0.88);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 255, 255, 0.06);
}

/* Disco do Emblema */
.emblem-icon-disc {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
  position: relative;
  transition: all 200ms ease;
}

.badge-card-250.rarity-bronze.unlocked .emblem-icon-disc {
  background: radial-gradient(circle, rgba(205, 127, 50, 0.25) 0%, rgba(205, 127, 50, 0.08) 100%);
  border: 1.5px solid rgba(205, 127, 50, 0.55);
  color: #E29B52;
}
.badge-card-250.rarity-bronze.unlocked {
  border-color: rgba(205, 127, 50, 0.40);
}
.badge-card-250.rarity-bronze.unlocked:hover {
  border-color: #CD7F32;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(205, 127, 50, 0.25);
}

.badge-card-250.rarity-silver.unlocked .emblem-icon-disc {
  background: radial-gradient(circle, rgba(203, 213, 225, 0.25) 0%, rgba(203, 213, 225, 0.08) 100%);
  border: 1.5px solid rgba(203, 213, 225, 0.55);
  color: #F1F5F9;
}
.badge-card-250.rarity-silver.unlocked {
  border-color: rgba(203, 213, 225, 0.40);
}
.badge-card-250.rarity-silver.unlocked:hover {
  border-color: #E2E8F0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(203, 213, 225, 0.25);
}

.badge-card-250.rarity-gold.unlocked .emblem-icon-disc {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  color: #FBBF24;
}
.badge-card-250.rarity-gold.unlocked {
  border-color: rgba(245, 158, 11, 0.45);
}
.badge-card-250.rarity-gold.unlocked:hover {
  border-color: #FBBF24;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.30);
}

.badge-card-250.rarity-platinum.unlocked .emblem-icon-disc {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(0, 210, 180, 0.08) 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.55);
  color: #00F0FF;
}
.badge-card-250.rarity-platinum.unlocked {
  border-color: rgba(0, 210, 180, 0.50);
}
.badge-card-250.rarity-platinum.unlocked:hover {
  border-color: #00F0FF;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 240, 255, 0.30);
}

.badge-card-250.rarity-diamond.unlocked .emblem-icon-disc {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, rgba(217, 70, 239, 0.10) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  color: #C084FC;
  animation: diamondShimmer 4s infinite linear;
}
.badge-card-250.rarity-diamond.unlocked {
  border-color: rgba(168, 85, 247, 0.52);
  background: linear-gradient(145deg, rgba(30, 20, 48, 0.90) 0%, rgba(18, 16, 28, 0.88) 100%);
}
.badge-card-250.rarity-diamond.unlocked:hover {
  border-color: #C084FC;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 24px rgba(168, 85, 247, 0.35);
}

.badge-card-250.locked .emblem-icon-disc {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.10) !important;
  color: #64748B !important;
}

.emblem-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 31px;
  word-break: break-word;
}

.badge-card-250.locked .emblem-title {
  color: #CBD5E1;
}

.emblem-xp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ui-accent, #00D2B4);
  letter-spacing: 0.02em;
}

.badge-card-250.locked .emblem-xp {
  color: #64748B;
}

@keyframes diamondShimmer {
  0% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }
  50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.35); }
  100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }
}

.badge-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-tier-tag {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-tier-tag.bronze { color: #CD7F32; border-color: rgba(205, 127, 50, 0.4); }
.badge-tier-tag.silver { color: #CBD5E1; border-color: rgba(203, 213, 225, 0.4); }
.badge-tier-tag.gold { color: #F59E0B; border-color: rgba(245, 158, 11, 0.4); }
.badge-tier-tag.platinum { color: #00F0FF; border-color: rgba(0, 240, 255, 0.4); }
.badge-tier-tag.diamond { color: #C084FC; border-color: rgba(168, 85, 247, 0.4); }

.badge-xp-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ui-accent, #00D2B4);
  background: rgba(0, 210, 180, 0.08);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 210, 180, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(0, 210, 180, 0.08);
  color: var(--ui-accent, #00D2B4);
  border: 1px solid rgba(0, 210, 180, 0.20);
  transition: all 200ms ease;
}

.badge-content {
  flex: 1;
}

.badge-title {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.badge-desc {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.45;
}

.badge-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-status-row.unlocked {
  color: var(--ui-accent, #00D2B4);
}

.badge-status-row.locked {
  color: #64748B;
}

/* ==========================================================================
   SALÃO DE TROFÉUS DE FORMAÇÕES & ELITE (TROPHY ROOM SHOWCASE)
   ========================================================================== */
.trophy-hall-card {
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.92) 0%, rgba(13, 16, 23, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.trophy-hall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.trophy-hall-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trophy-hall-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(205, 127, 50, 0.15) 100%);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.trophy-hall-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trophy-hall-subtitle {
  font-size: 12px;
  color: #8E96A4;
  margin-top: 2px;
}

.trophy-hall-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.04em;
}

.trophy-hall-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.trophy-hall-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trophy-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #8E96A4;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trophy-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.trophy-filter-btn.active {
  background: rgba(0, 210, 180, 0.12);
  border-color: rgba(0, 210, 180, 0.35);
  color: #00D2B4;
}

.trophy-hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* Base Trophy Card com Acento Lateral Unilateral e Fundo Elegante */
.trophy-card {
  background: rgba(14, 18, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  transform: perspective(2200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.trophy-card:hover {
  z-index: 2;
  border-top-color: rgba(255, 255, 255, 0.14);
  border-right-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Micro-Reflexo de Luz Suave (Spotlight Glare) */
.trophy-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 200px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.06), transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 1;
}

.trophy-card:hover::after {
  opacity: 1;
}

/* Tier-specific Card Styles - Brilho Apenas no Lado Esquerdo */
.trophy-card.bronze {
  border-left: 3.5px solid #CD7F32;
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, rgba(14, 18, 26, 0.82) 40%);
}
.trophy-card.bronze:hover {
  border-left-color: #E5A93C;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), -4px 0 16px rgba(205, 127, 50, 0.22);
}

.trophy-card.silver {
  border-left: 3.5px solid #CBD5E1;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.08) 0%, rgba(14, 18, 26, 0.82) 40%);
}
.trophy-card.silver:hover {
  border-left-color: #F1F5F9;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), -4px 0 16px rgba(203, 213, 225, 0.22);
}

.trophy-card.gold {
  border-left: 3.5px solid #F59E0B;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.09) 0%, rgba(14, 18, 26, 0.82) 40%);
}
.trophy-card.gold:hover {
  border-left-color: #FBBF24;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), -4px 0 18px rgba(245, 158, 11, 0.25);
}

.trophy-card.platinum {
  border-left: 3.5px solid #00D2B4;
  background: linear-gradient(90deg, rgba(0, 210, 180, 0.09) 0%, rgba(14, 18, 26, 0.82) 40%);
}
.trophy-card.platinum:hover {
  border-left-color: #00F0FF;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), -4px 0 18px rgba(0, 210, 180, 0.25);
}

.trophy-card.diamond {
  border-left: 3.5px solid #C084FC;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.10) 0%, rgba(14, 18, 26, 0.82) 40%);
}
.trophy-card.diamond:hover {
  border-left-color: #E879F9;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), -4px 0 20px rgba(192, 132, 252, 0.28);
}

/* Unlocked State */
.trophy-card.unlocked {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(16, 20, 28, 0.90) 100%);
}

.trophy-card.unlocked.bronze { background: linear-gradient(90deg, rgba(205, 127, 50, 0.10) 0%, rgba(14, 18, 26, 0.86) 45%); }
.trophy-card.unlocked.silver { background: linear-gradient(90deg, rgba(203, 213, 225, 0.10) 0%, rgba(14, 18, 26, 0.86) 45%); }
.trophy-card.unlocked.gold { background: linear-gradient(90deg, rgba(245, 158, 11, 0.11) 0%, rgba(14, 18, 26, 0.86) 45%); }
.trophy-card.unlocked.platinum { background: linear-gradient(90deg, rgba(0, 210, 180, 0.11) 0%, rgba(14, 18, 26, 0.86) 45%); }
.trophy-card.unlocked.diamond { background: linear-gradient(90deg, rgba(192, 132, 252, 0.12) 0%, rgba(236, 72, 153, 0.04) 30%, rgba(14, 18, 26, 0.86) 60%); }

.trophy-card.locked {
  background: rgba(14, 16, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  opacity: 0.55;
  filter: grayscale(0.80);
}

.trophy-card.locked:hover {
  opacity: 0.95;
  filter: grayscale(0.15);
  background: rgba(20, 24, 32, 0.88);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

/* Trophy Top Stage */
.trophy-stage-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trophy-icon-stage {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748B;
  transition: all 0.25s ease;
  position: relative;
}

.trophy-card:hover .trophy-icon-stage {
  transform: scale(1.08) rotate(-3deg);
}

/* Metallic Trophy Icons (Sutis & Nobres) */
.trophy-card.bronze .trophy-icon-stage {
  color: #CD7F32;
  background: radial-gradient(circle, rgba(205, 127, 50, 0.16) 0%, rgba(205, 127, 50, 0.03) 80%);
  border-color: rgba(205, 127, 50, 0.28);
  box-shadow: 0 2px 8px rgba(205, 127, 50, 0.12);
}

.trophy-card.silver .trophy-icon-stage {
  color: #CBD5E1;
  background: radial-gradient(circle, rgba(203, 213, 225, 0.18) 0%, rgba(203, 213, 225, 0.03) 80%);
  border-color: rgba(203, 213, 225, 0.30);
  box-shadow: 0 2px 8px rgba(203, 213, 225, 0.12);
}

.trophy-card.gold .trophy-icon-stage {
  color: #F59E0B;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.04) 80%);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

.trophy-card.platinum .trophy-icon-stage {
  color: #00D2B4;
  background: radial-gradient(circle, rgba(0, 210, 180, 0.18) 0%, rgba(0, 210, 180, 0.04) 80%);
  border-color: rgba(0, 210, 180, 0.32);
  box-shadow: 0 2px 10px rgba(0, 210, 180, 0.15);
}

.trophy-card.diamond .trophy-icon-stage {
  color: #C084FC;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.20) 0%, rgba(236, 72, 153, 0.06) 80%);
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 2px 12px rgba(192, 132, 252, 0.18);
}

.trophy-main-info {
  flex: 1;
  min-width: 0;
}

.trophy-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.trophy-category-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8E96A4;
}

.trophy-tier-pill {
  font-size: 9.5px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

.trophy-tier-pill.bronze { background: rgba(205, 127, 50, 0.2); color: #E5A93C; border: 1px solid rgba(205, 127, 50, 0.4); }
.trophy-tier-pill.silver { background: rgba(203, 213, 225, 0.2); color: #CBD5E1; border: 1px solid rgba(203, 213, 225, 0.4); }
.trophy-tier-pill.gold { background: rgba(245, 158, 11, 0.2); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.4); }
.trophy-tier-pill.platinum { background: rgba(0, 210, 180, 0.2); color: #00D2B4; border: 1px solid rgba(0, 210, 180, 0.4); }
.trophy-tier-pill.diamond { background: rgba(192, 132, 252, 0.2); color: #C084FC; border: 1px solid rgba(192, 132, 252, 0.4); }

.trophy-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 3px;
  white-space: normal;
}

.trophy-desc {
  font-size: 11.5px;
  color: #8E96A4;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress & Footer Row */
.trophy-footer-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trophy-progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trophy-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: #8E96A4;
}

.trophy-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.trophy-progress-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.35s ease;
}

.trophy-card.bronze .trophy-progress-fill { background: linear-gradient(90deg, #CD7F32, #E5A93C); }
.trophy-card.silver .trophy-progress-fill { background: linear-gradient(90deg, #94A3B8, #CBD5E1); }
.trophy-card.gold .trophy-progress-fill { background: linear-gradient(90deg, #D97706, #F59E0B); }
.trophy-card.platinum .trophy-progress-fill { background: linear-gradient(90deg, #059669, #00D2B4); }
.trophy-card.diamond .trophy-progress-fill { background: linear-gradient(90deg, #9333EA, #C084FC, #EC4899); }

.trophy-bottom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trophy-xp-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #00D2B4;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.trophy-status-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trophy-status-tag.locked {
  background: rgba(255, 255, 255, 0.04);
  color: #64748B;
}

.trophy-status-tag.completed {
  background: rgba(0, 210, 180, 0.12);
  color: #00D2B4;
}

/* Fallback backward compatibility for .milestones-track-card */
.milestones-track-card {
  display: none;
}

/* ==========================================================================
   VITRINE DE DESTAQUES NO CABEÇALHO (PINNED BADGES SHOWCASE)
   ========================================================================== */
.pinned-badges-showcase {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pinned-badges-header {
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #8E96A4;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pinned-badges-slots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pinned-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(14, 16, 22, 0.7);
  border: 1px solid rgba(0, 210, 180, 0.25);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 160ms ease;
}

.pinned-badge-chip:hover {
  background: rgba(0, 210, 180, 0.12);
  border-color: var(--ui-accent, #00D2B4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 210, 180, 0.2);
}

.pinned-badge-chip i {
  color: var(--ui-accent, #00D2B4);
  font-size: 14px;
}

/* Slot Vazio: Acinzentado por padrão, acende em Ciano Neon no Rollover/Hover */
.pinned-badge-chip.empty {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: #64748B;
  opacity: 0.65;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pinned-badge-chip.empty i {
  color: #64748B;
  transition: color 180ms ease;
}

.pinned-badge-chip.empty:hover {
  background: rgba(0, 210, 180, 0.08);
  border: 1px solid var(--ui-accent, #00D2B4);
  color: #00D2B4;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0, 210, 180, 0.28);
}

.pinned-badge-chip.empty:hover i {
  color: #00D2B4;
}



/* Toolbar Buttons & Selects */
.badge-filter-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #8E96A4;
  background: rgba(14, 16, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.badge-filter-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.badge-filter-btn.active {
  background: rgba(0, 210, 180, 0.12);
  color: var(--ui-accent, #00D2B4);
  border-color: rgba(0, 210, 180, 0.28);
}

/* ==========================================================================
   CUSTOM SYNAPSE SELECT DROPDOWN (GLASSMORPHIC & OLED DARK)
   ========================================================================== */
.synapse-custom-select {
  position: relative;
  display: inline-block;
  user-select: none;
  font-family: inherit;
}

.synapse-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(18, 21, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  outline: none;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.synapse-select-trigger:hover {
  background: rgba(26, 31, 40, 0.9);
  border-color: rgba(0, 210, 180, 0.40);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 210, 180, 0.14);
}

.synapse-custom-select.open .synapse-select-trigger {
  background: rgba(26, 31, 40, 0.98);
  border-color: var(--ui-accent, #00D2B4);
  color: #FFFFFF;
  box-shadow: 0 0 22px rgba(0, 210, 180, 0.25);
}

.select-prefix-icon {
  font-size: 14px;
  color: var(--ui-accent, #00D2B4);
  opacity: 0.95;
}

.select-caret-icon {
  font-size: 12px;
  color: #8E96A4;
  margin-left: 2px;
  transition: transform 220ms ease;
}

.synapse-custom-select.open .select-caret-icon {
  transform: rotate(180deg);
  color: var(--ui-accent, #00D2B4);
}

.synapse-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: rgba(14, 16, 22, 0.96);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 210, 180, 0.14);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.synapse-custom-select.open .synapse-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.synapse-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
  cursor: pointer;
  transition: all 140ms ease;
}

.synapse-select-option .option-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.synapse-select-option .option-left i {
  font-size: 15px;
}

.synapse-select-option .option-check {
  font-size: 13px;
  color: var(--ui-accent, #00D2B4);
  opacity: 0;
  transform: scale(0.7);
  transition: all 140ms ease;
}

.synapse-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.synapse-select-option.active {
  background: rgba(0, 210, 180, 0.12);
  color: #FFFFFF;
  font-weight: 600;
}

.synapse-select-option.active .option-check {
  opacity: 1;
  transform: scale(1);
}

/* Fallback para selects nativos restantes */
select,
.badge-select-filter {
  height: 34px;
  padding: 0 30px 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  color: #CBD5E1;
  background-color: rgba(18, 21, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%2300D2B4' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color-scheme: dark;
  transition: all 180ms ease;
}

select:hover,
.badge-select-filter:hover {
  border-color: rgba(0, 210, 180, 0.4);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 210, 180, 0.12);
}

select option,
.badge-select-filter option {
  background: #13161C;
  color: #FFFFFF;
  padding: 8px;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION DE CONQUISTA DESBLOQUEADA (.synapse-badge-toast)
   -------------------------------------------------------------------------- */
.synapse-badge-toast {
  position: fixed;
  bottom: max(32px, env(safe-area-inset-bottom, 32px));
  right: max(28px, env(safe-area-inset-right, 28px));
  z-index: 100000;
  max-width: min(440px, calc(100vw - 48px));
  width: auto;
  box-sizing: border-box;
  background: rgba(19, 22, 28, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(0, 210, 180, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 210, 180, 0.20);
  transform: translateX(50px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.synapse-badge-toast.show {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.synapse-badge-toast.hide {
  transform: translateX(40px) scale(0.95);
  opacity: 0;
}

@media (max-width: 640px) {
  .synapse-badge-toast {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    max-width: calc(100vw - 32px);
    width: auto;
    transform: translateY(30px) scale(0.95);
  }
  .synapse-badge-toast.show {
    transform: translateY(0) scale(1);
  }
  .synapse-badge-toast.hide {
    transform: translateY(20px) scale(0.95);
  }
}

.toast-content-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.toast-icon-halo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(0, 210, 180, 0.12);
  color: var(--ui-accent, #00D2B4);
  border: 1px solid rgba(0, 210, 180, 0.30);
  box-shadow: 0 0 16px rgba(0, 210, 180, 0.25);
  flex-shrink: 0;
}

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

.toast-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.toast-header-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ui-accent, #00D2B4);
  font-family: var(--font-mono, monospace);
  transition: color 0.2s ease;
}

.toast-rarity-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.toast-rarity-pill.bronze { color: #CD7F32; background: rgba(205, 127, 50, 0.15); }
.toast-rarity-pill.silver { color: #CBD5E1; background: rgba(203, 213, 225, 0.15); }
.toast-rarity-pill.gold { color: #F59E0B; background: rgba(245, 158, 11, 0.15); }
.toast-rarity-pill.platinum { color: #00F0FF; background: rgba(0, 240, 255, 0.15); }
.toast-rarity-pill.diamond { color: #C084FC; background: rgba(168, 85, 247, 0.15); }

.toast-title {
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-desc {
  font-size: 11.5px;
  color: #94A3B8;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toast-xp-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 210, 180, 0.12);
  border: 1px solid rgba(0, 210, 180, 0.25);
  color: var(--ui-accent, #00D2B4);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* ==========================================================================
   TEMATIZAÇÃO POR RARIDADE DA CONQUISTA (BRONZE, PRATA, OURO, PLATINA, DIAMANTE)
   ========================================================================== */

/* 1. BRONZE */
.synapse-badge-toast.rarity-bronze {
  border-color: rgba(205, 127, 50, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 28px rgba(205, 127, 50, 0.25);
}
.synapse-badge-toast.rarity-bronze .toast-icon-halo {
  background: rgba(205, 127, 50, 0.15);
  color: #E5A93C;
  border-color: rgba(205, 127, 50, 0.40);
  box-shadow: 0 0 16px rgba(205, 127, 50, 0.30);
}
.synapse-badge-toast.rarity-bronze .toast-header-tag {
  color: #E5A93C;
}
.synapse-badge-toast.rarity-bronze .toast-xp-pill {
  background: rgba(205, 127, 50, 0.15);
  border-color: rgba(205, 127, 50, 0.35);
  color: #E5A93C;
}

/* 2. PRATA (SILVER) */
.synapse-badge-toast.rarity-silver {
  border-color: rgba(203, 213, 225, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 28px rgba(203, 213, 225, 0.25);
}
.synapse-badge-toast.rarity-silver .toast-icon-halo {
  background: rgba(203, 213, 225, 0.15);
  color: #F1F5F9;
  border-color: rgba(203, 213, 225, 0.40);
  box-shadow: 0 0 16px rgba(203, 213, 225, 0.30);
}
.synapse-badge-toast.rarity-silver .toast-header-tag {
  color: #E2E8F0;
}
.synapse-badge-toast.rarity-silver .toast-xp-pill {
  background: rgba(203, 213, 225, 0.15);
  border-color: rgba(203, 213, 225, 0.35);
  color: #F1F5F9;
}

/* 3. OURO (GOLD) */
.synapse-badge-toast.rarity-gold {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 28px rgba(245, 158, 11, 0.30);
}
.synapse-badge-toast.rarity-gold .toast-icon-halo {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.40);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.30);
}
.synapse-badge-toast.rarity-gold .toast-header-tag {
  color: #FBBF24;
}
.synapse-badge-toast.rarity-gold .toast-xp-pill {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}

/* 4. PLATINA (PLATINUM) */
.synapse-badge-toast.rarity-platinum {
  border-color: rgba(0, 210, 180, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 28px rgba(0, 210, 180, 0.30);
}
.synapse-badge-toast.rarity-platinum .toast-icon-halo {
  background: rgba(0, 210, 180, 0.15);
  color: #00D2B4;
  border-color: rgba(0, 210, 180, 0.40);
  box-shadow: 0 0 16px rgba(0, 210, 180, 0.30);
}
.synapse-badge-toast.rarity-platinum .toast-header-tag {
  color: #00D2B4;
}
.synapse-badge-toast.rarity-platinum .toast-xp-pill {
  background: rgba(0, 210, 180, 0.15);
  border-color: rgba(0, 210, 180, 0.35);
  color: #00D2B4;
}

/* 5. DIAMANTE / MÍTICO (DIAMOND / MYTHIC) */
.synapse-badge-toast.rarity-diamond,
.synapse-badge-toast.rarity-mythic {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(168, 85, 247, 0.35);
}
.synapse-badge-toast.rarity-diamond .toast-icon-halo,
.synapse-badge-toast.rarity-mythic .toast-icon-halo {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border-color: rgba(168, 85, 247, 0.40);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}
.synapse-badge-toast.rarity-diamond .toast-header-tag,
.synapse-badge-toast.rarity-mythic .toast-header-tag {
  color: #C084FC;
}
.synapse-badge-toast.rarity-diamond .toast-xp-pill,
.synapse-badge-toast.rarity-mythic .toast-xp-pill {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #C084FC;
}

/* --------------------------------------------------------------------------
   MODAL DE INSPEÇÃO DETALHADA (.badge-inspect-overlay & .badge-inspect-modal)
   -------------------------------------------------------------------------- */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  touch-action: none !important;
}

.badge-inspect-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100% !important;
  min-height: -webkit-fill-available !important;
  background: rgba(6, 10, 18, 0.62) !important;
  backdrop-filter: blur(22px) saturate(160%) contrast(105%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) contrast(105%) !important;
  z-index: 9999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px !important;
  margin: 0 !important;
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.badge-inspect-overlay.open {
  display: flex !important;
  opacity: 1 !important;
}

.badge-inspect-modal {
  background: linear-gradient(165deg, rgba(20, 24, 34, 0.98) 0%, rgba(11, 14, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 210, 180, 0.15);
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  transform: scale(0.92) translateY(20px);
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  margin: auto;
}

.badge-inspect-overlay.open .badge-inspect-modal {
  transform: scale(1) translateY(0);
}

.badge-inspect-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8E96A4;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
  z-index: 10;
}

.badge-inspect-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transform: scale(1.08);
}

.badge-inspect-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.badge-inspect-icon-glow {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(0, 210, 180, 0.12);
  border: 1.5px solid rgba(0, 210, 180, 0.4);
  color: #00D2B4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 0 32px rgba(0, 210, 180, 0.3);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.badge-inspect-icon-glow.rarity-bronze {
  background: rgba(205, 127, 50, 0.15);
  border-color: rgba(205, 127, 50, 0.5);
  color: #E5A93C;
  box-shadow: 0 0 32px rgba(205, 127, 50, 0.35);
}
.badge-inspect-icon-glow.rarity-silver {
  background: rgba(203, 213, 225, 0.15);
  border-color: rgba(203, 213, 225, 0.5);
  color: #F1F5F9;
  box-shadow: 0 0 32px rgba(203, 213, 225, 0.35);
}
.badge-inspect-icon-glow.rarity-gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #FBBF24;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.35);
}
.badge-inspect-icon-glow.rarity-platinum {
  background: rgba(0, 210, 180, 0.15);
  border-color: rgba(0, 210, 180, 0.5);
  color: #00D2B4;
  box-shadow: 0 0 32px rgba(0, 210, 180, 0.35);
}
.badge-inspect-icon-glow.rarity-diamond,
.badge-inspect-icon-glow.rarity-mythic {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  color: #C084FC;
  box-shadow: 0 0 36px rgba(168, 85, 247, 0.4);
}
.badge-inspect-icon-glow.locked {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #64748B;
  box-shadow: none;
}

.badge-inspect-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-inspect-cat-tag {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-xp-tag {
  font-size: 11.5px;
  font-weight: 800;
  font-family: monospace;
  color: #00D2B4;
  background: rgba(0, 210, 180, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0, 210, 180, 0.25);
}

.badge-inspect-body {
  text-align: center;
  margin-bottom: 24px;
}

.badge-inspect-title {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.badge-inspect-desc {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.badge-inspect-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.inspect-meta-card {
  background: rgba(24, 28, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.inspect-meta-card i {
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.inspect-meta-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.inspect-meta-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.45;
  word-break: break-word;
  white-space: normal;
}

.badge-inspect-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

/* Form Styles */
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
}

@media (max-width: 600px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

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

.profile-form-group.full {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .profile-form-group.full {
    grid-column: span 1;
  }
}

.profile-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #CBD5E1);
}

.profile-form-group input,
.profile-form-group textarea,
.profile-form-group select {
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-sm, 8px);
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #FFFFFF;
  outline: none;
  transition: all var(--transition-fast, 150ms);
}

.profile-form-group input:focus,
.profile-form-group textarea:focus,
.profile-form-group select:focus {
  border-color: var(--ui-accent, #00D2B4);
  box-shadow: 0 0 0 2px rgba(0, 210, 180, 0.18);
}

/* --------------------------------------------------------------------------
   4. HIDDEN ADMIN DASHBOARD (admin.html)
   -------------------------------------------------------------------------- */
.admin-container {
  max-width: 1280px;
  margin: 84px auto 80px;
  padding: 0 24px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-title-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.admin-title-text h1 {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  margin: 0 0 2px 0;
}

.admin-title-text p {
  font-size: 12.5px;
  color: var(--text-muted, #8E96A4);
  margin: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-surface, #13161C);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition-fast, 150ms);
}

.admin-stat-card:hover {
  border-color: var(--border-medium, rgba(255, 255, 255, 0.14));
}

.admin-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.admin-stat-icon.violet {
  background: rgba(0, 210, 180, 0.10);
  border: 1px solid rgba(0, 210, 180, 0.25);
  color: var(--ui-accent, #00D2B4);
}

.admin-stat-icon.blue {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60A5FA;
}

.admin-stat-icon.green {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.admin-stat-icon.amber {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FBBF24;
}

.admin-stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  margin: 0;
}

.admin-stat-label {
  font-size: 11.5px;
  color: var(--text-muted, #8E96A4);
  margin: 0;
}

/* Admin Table */
.admin-table-card {
  background: var(--bg-surface, #13161C);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
}

.admin-table-toolbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  background: var(--bg-surface-raised, #181B23);
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8E96A4);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  color: var(--text-secondary, #CBD5E1);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--bg-surface-hover, #20242E);
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid rgba(0, 210, 180, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--ui-accent, #00D2B4);
  flex-shrink: 0;
  overflow: hidden;
}

.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-user-names {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-weight: 600;
  color: #FFFFFF;
}

.admin-user-email {
  font-size: 11.5px;
  color: var(--text-muted, #8E96A4);
  font-family: var(--font-mono, monospace);
}

/* --------------------------------------------------------------------------
   5. STUDENT INSPECTION MODAL (admin.html)
   -------------------------------------------------------------------------- */
.inspect-modal-card {
  max-width: 580px;
  width: 100%;
  background: var(--bg-surface, #13161C);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.10));
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-xl, 0 20px 40px rgba(0, 0, 0, 0.5));
}

.inspect-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.inspect-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ui-accent, #00D2B4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inspect-modal-content {
  padding: 20px;
}

.inspect-user-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-md, 12px);
  margin-bottom: 16px;
}

.inspect-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.inspect-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface-active, #282D3A);
  border: 1px solid rgba(0, 210, 180, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--ui-accent, #00D2B4);
  overflow: hidden;
}

.inspect-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inspect-avatar-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid var(--bg-surface-raised, #181B23);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.inspect-user-details {
  flex: 1;
  min-width: 0;
}

.inspect-user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.inspect-user-name {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  margin: 0;
}

.inspect-user-headline {
  font-size: 12.5px;
  color: var(--text-secondary, #CBD5E1);
  margin: 0 0 4px 0;
}

.inspect-user-email-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted, #8E96A4);
  font-family: var(--font-mono, monospace);
}

.inspect-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .inspect-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.inspect-metric-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-sm, 8px);
  padding: 10px;
}

.inspect-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm, 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.inspect-metric-box.emerald .inspect-metric-icon {
  background: rgba(16, 185, 129, 0.10);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.20);
}

.inspect-metric-box.blue .inspect-metric-icon {
  background: rgba(59, 130, 246, 0.10);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.20);
}

.inspect-metric-box.purple .inspect-metric-icon {
  background: rgba(0, 210, 180, 0.10);
  color: var(--ui-accent, #00D2B4);
  border: 1px solid rgba(0, 210, 180, 0.20);
}

.inspect-metric-box.amber .inspect-metric-icon {
  background: rgba(245, 158, 11, 0.10);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.20);
}

.inspect-metric-data .metric-val {
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-sans, 'DM Sans', sans-serif);
  color: #FFFFFF;
  line-height: 1.2;
}

.inspect-metric-data .metric-lbl {
  font-size: 10.5px;
  color: var(--text-muted, #8E96A4);
  margin-top: 1px;
  white-space: nowrap;
}

.inspect-tracks-container {
  margin-bottom: 16px;
}

.inspect-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #8E96A4);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspect-track-card {
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-sm, 8px);
  padding: 10px 12px;
  margin-bottom: 6px;
}

.inspect-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.inspect-track-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspect-track-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.inspect-track-icon.asimov {
  background: rgba(229, 169, 60, 0.12);
  color: #E5A93C;
}

.inspect-track-icon.sctec {
  background: rgba(0, 163, 255, 0.12);
  color: #00A3FF;
}

.inspect-track-icon.design {
  background: rgba(236, 72, 153, 0.12);
  color: #EC4899;
}

.inspect-track-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.inspect-track-sub {
  font-size: 10.5px;
  color: var(--text-muted, #8E96A4);
}

.inspect-track-pill {
  padding: 1px 8px;
  border-radius: var(--radius-full, 9999px);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.inspect-track-pill.asimov {
  background: rgba(229, 169, 60, 0.10);
  color: #E5A93C;
  border: 1px solid rgba(229, 169, 60, 0.20);
}

.inspect-track-pill.sctec {
  background: rgba(0, 163, 255, 0.10);
  color: #00A3FF;
  border: 1px solid rgba(0, 163, 255, 0.20);
}

.inspect-track-pill.design {
  background: rgba(236, 72, 153, 0.10);
  color: #EC4899;
  border: 1px solid rgba(236, 72, 153, 0.20);
}

.inspect-track-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
}

.inspect-track-progress-fill {
  height: 100%;
  border-radius: var(--radius-full, 9999px);
}

.inspect-track-progress-fill.asimov {
  background: #E5A93C;
}

.inspect-track-progress-fill.sctec {
  background: #00A3FF;
}

.inspect-track-progress-fill.design {
  background: #EC4899;
}

.inspect-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
  border-radius: var(--radius-sm, 6px);
  font-size: 11.5px;
  color: var(--text-muted, #8E96A4);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 6px;
}

.inspect-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.inspect-meta-item strong {
  color: #FFFFFF;
}

.inspect-actions-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-synapse-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 8px);
  background: var(--ui-accent, #00D2B4);
  border: 1px solid var(--ui-accent, #00D2B4);
  color: #080C14;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
}

.btn-synapse-solid:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-synapse-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.10));
  color: var(--text-primary, #FFFFFF);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
}

.btn-synapse-outline:hover {
  background: var(--bg-surface-hover, #20242E);
  border-color: var(--border-highlight, rgba(255, 255, 255, 0.16));
  color: #FFFFFF;
}

/* ==========================================================================
   32-BIT MULTI-SPECIES AVATAR PRESET SELECTOR (PERFIL.HTML)
   ========================================================================== */
.avatar-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 20px;
  max-height: 340px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(14, 16, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.avatar-preset-grid::-webkit-scrollbar {
  width: 5px;
}
.avatar-preset-grid::-webkit-scrollbar-track {
  background: transparent;
}
.avatar-preset-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.avatar-preset-item {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-surface-raised, #181B23);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast, 150ms);
  padding: 2px;
  outline: none;
  overflow: hidden;
}

.avatar-preset-item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  image-rendering: auto;
}

.avatar-preset-item:hover,
.avatar-preset-item:focus-visible {
  transform: translateY(-2px) scale(1.08);
  border-color: var(--ui-accent, #00D2B4);
  box-shadow: 0 0 18px rgba(0, 210, 180, 0.30);
  z-index: 2;
}

.avatar-preset-item.selected {
  border-color: var(--ui-accent, #00D2B4);
  box-shadow: 0 0 0 3px rgba(0, 210, 180, 0.35), 0 0 24px rgba(0, 210, 180, 0.40);
  transform: scale(1.06);
  z-index: 3;
}

.avatar-item-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  background: #181B23;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  pointer-events: none;
}

.avatar-item-badge.female {
  color: #F472B6;
  border-color: rgba(244, 114, 182, 0.4);
  background: #2A1728;
}

.avatar-item-badge.male {
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
  background: #132438;
}

/* ==========================================================================
   PALETA DE FUNDOS CRIATIVOS & CUSTOMIZAÇÃO SIMPLIFICADA (AVATAR BACKGROUND)
   ========================================================================== */
.avatar-bg-palette-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.avatar-bg-swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast, 150ms);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 0;
}

.avatar-bg-swatch-btn:hover {
  transform: translateY(-2px) scale(1.15);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.avatar-bg-swatch-btn.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px #00D2B4, 0 0 16px rgba(0, 210, 180, 0.6);
  transform: scale(1.18);
  z-index: 3;
}

.avatar-bg-swatch-btn.active::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.avatar-bg-custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-full, 9999px);
  color: var(--text-secondary, #CBD5E1);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast, 150ms);
}

.avatar-bg-custom-btn:hover {
  background: var(--bg-surface-hover, #20242E);
  border-color: var(--ui-accent, #00D2B4);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.avatar-bg-custom-btn input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
}

/* ==========================================================================
   PADRÕES & TEXTURAS DINÂMICAS DE FUNDO (AVATAR PATTERNS)
   ========================================================================== */
.avatar-pattern-chips-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.avatar-pattern-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--bg-surface-raised, #181B23);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-full, 9999px);
  color: var(--text-secondary, #CBD5E1);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast, 150ms);
}

.avatar-pattern-chip-btn:hover {
  background: var(--bg-surface-hover, #20242E);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.avatar-pattern-chip-btn.active {
  background: rgba(0, 210, 180, 0.12);
  border-color: var(--ui-accent, #00D2B4);
  color: var(--ui-accent, #00D2B4);
  box-shadow: 0 0 12px rgba(0, 210, 180, 0.25);
}

/* Isolamento estrito de todos os containers de avatar para que NUNCA vazem padrões */
.user-avatar-circle,
.user-dropdown-avatar,
.procedural-avatar-circle,
.avatar-preset-item,
.profile-avatar-large,
.welcome-modal-avatar,
.avatar-canvas-preview {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  isolation: isolate;
}

/* Pseudo-elemento base para todas as texturas sobrepostas */
.avatar-pattern-circuits::before,
.avatar-pattern-grid::before,
.avatar-pattern-dots::before,
.avatar-pattern-honeycomb::before,
.avatar-pattern-topography::before,
.avatar-pattern-memphis::before,
.avatar-pattern-constellation::before,
.avatar-pattern-scanlines::before,
.avatar-pattern-stripes::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Garantir que as ilustrações Open Peeps fiquem perfeitamente centralizadas e enquadradas na moldura circular */
.procedural-avatar-circle img,
.avatar-preset-item img,
.profile-avatar-large img,
.welcome-modal-avatar img,
.user-avatar-circle img,
.user-dropdown-avatar img,
.student-card-avatar img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.04) translateY(-3%);
  transform-origin: center center;
  pointer-events: none;
}

.avatar-item-badge,
.profile-level-badge-float {
  z-index: 4;
}

/* 1. Sem Padrão / Liso */
.avatar-pattern-none::before {
  display: none !important;
}

/* 2. Circuitos Neurais */
.avatar-pattern-circuits::before {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h12l6-6h10l4 4h8M20 0v8l-6 6v12l6 6v8M34 14a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm-20 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0z' stroke='rgba(255,255,255,0.26)' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='14' r='1.5' fill='rgba(255,255,255,0.85)'/%3E%3Ccircle cx='12' cy='26' r='1.5' fill='rgba(255,255,255,0.85)'/%3E%3C/svg%3E");
  background-size: 36px 36px;
  background-repeat: repeat;
}

/* 3. Grelha Cyber Tron */
.avatar-pattern-grid::before {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.20) 1px, transparent 1px);
  background-size: 14px 14px;
  background-repeat: repeat;
}

/* 4. Malha de Pontos Matrix */
.avatar-pattern-dots::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.38) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  background-repeat: repeat;
}

/* 5. Colmeia Hexagonal */
.avatar-pattern-honeycomb::before {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='48' viewBox='0 0 28 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 0l14 8v16l-14 8L0 24V8l14-8zm0 48l14-8V24l-14 8-14-8v16l14 8z' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 24px 40px;
  background-repeat: repeat;
}

/* 6. Curvas Topográficas */
.avatar-pattern-topography::before {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20c25-10 40 20 65 10s35-20 35-20M0 50c30-15 45 25 75 10s25-25 25-25M0 80c20-10 50 15 70 5s30-20 30-20' fill='none' stroke='rgba(255,255,255,0.26)' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 64px 64px;
  background-repeat: repeat;
}

/* 7. Geometria Criativa Memphis */
.avatar-pattern-memphis::before {
  background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 8h6m-3-3v6M35 35l6 6m0-6l-6 6M12 38a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm28-26a3 3 0 1 1-6 0 3 3 0 0 1 6 0z' stroke='rgba(255,255,255,0.30)' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  background-repeat: repeat;
}

/* 8. Constelação Estelar */
.avatar-pattern-constellation::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 10l2 5 5 2-5 2-2 5-2-5-5-2 5-2 2-5zm30 25l1.5 3.5 3.5 1.5-3.5 1.5-1.5 3.5-1.5-3.5-3.5-1.5 3.5-1.5 1.5-3.5zM20 42a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm25-30a1 1 0 1 1-2 0 1 1 0 0 1 2 0z' fill='rgba(255,255,255,0.38)'/%3E%3C/svg%3E");
  background-size: 46px 46px;
  background-repeat: repeat;
}

/* 9. Scanlines Retrô CRT */
.avatar-pattern-scanlines::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.45) 50%, transparent 50%);
  background-size: 100% 4px;
  background-repeat: repeat;
}

/* 10. Fitas Diagonais Speed */
.avatar-pattern-stripes::before {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12) 3px, transparent 3px, transparent 8px);
}

.avatar-item-badge.legendary {
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.6);
  background: #261A07;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.avatar-item-badge.mythic {
  color: #C084FC;
  border-color: rgba(192, 132, 252, 0.6);
  background: #1D112C;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

/* Efeito de Brilho Especial para Raros/Lendários */
.avatar-preset-item.rarity-glow {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.avatar-preset-item.rarity-glow:hover {
  border-color: #F59E0B;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   PERSONALIZAÇÃO DE AVATAR SYNAPSE
   ========================================================================== */
.avatar-studio-container {
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.85) 0%, rgba(14, 16, 23, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.avatar-studio-header {
  margin-bottom: 18px;
}

.avatar-studio-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.avatar-studio-subtitle {
  font-size: 12.5px;
  color: var(--text-muted, #94A3B8);
  line-height: 1.4;
}

/* Layout do Estúdio de Avatar */
.procedural-studio-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: start;
  background: rgba(10, 12, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
}

@media (max-width: 860px) {
  .procedural-studio-layout {
    grid-template-columns: 1fr;
  }
}

.procedural-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 15px;
  background: rgba(18, 22, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 14px;
}

.procedural-avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  background: #0E1118;
  border: 2.5px solid var(--ui-accent, #00D2B4);
  box-shadow: 0 0 20px rgba(0, 210, 180, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.procedural-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-seed-badge {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ui-accent, #00D2B4);
  text-align: center;
  word-break: break-all;
  max-width: 100%;
  background: rgba(0, 210, 180, 0.1);
  border: 1px solid rgba(0, 210, 180, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.procedural-controls-box,
.pixelizer-controls-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-row label {
  font-size: 12px;
  font-weight: 600;
  color: #CBD5E1;
  margin: 0;
}

.studio-select {
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.studio-select:focus {
  border-color: var(--ui-accent, #00D2B4);
}

.palette-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.palette-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 25, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 6px 10px;
  color: #CBD5E1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
}

.palette-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.palette-pill-btn.active {
  border-color: var(--ui-accent, #00D2B4);
  background: rgba(0, 210, 180, 0.12);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 210, 180, 0.2);
}

.palette-dots {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Layout do Pixelizer de Fotos */
.pixelizer-studio-layout {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(12, 14, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

@media (max-width: 600px) {
  .pixelizer-studio-layout {
    grid-template-columns: 1fr;
  }
}

.pixelizer-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 10px;
}

.pixelizer-canvas-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  position: relative;
  background: #0E1118;
  border: 2px dashed rgba(0, 210, 180, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
  flex-shrink: 0;
}

.pixelizer-canvas-wrap.dragover {
  border-color: var(--ui-accent, #00D2B4);
  background: rgba(0, 210, 180, 0.08);
}

.pixelizer-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  image-rendering: pixelated;
}

.pixelizer-empty-state {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 10px;
  font-size: 11px;
  color: var(--text-muted, #94A3B8);
  pointer-events: none;
}

.studio-range {
  width: 100%;
  accent-color: var(--ui-accent, #00D2B4);
  cursor: pointer;
}

.dither-btn-group {
  display: flex;
  gap: 6px;
}

.dither-btn {
  flex: 1;
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94A3B8);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.dither-btn:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.dither-btn.active {
  border-color: var(--ui-accent, #00D2B4);
  background: rgba(0, 210, 180, 0.12);
  color: #FFF;
  font-weight: 700;
}

/* Resumo do Avatar Selecionado */
.avatar-selected-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 210, 180, 0.06);
  border: 1px solid rgba(0, 210, 180, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 18px;
}

.summary-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ui-accent, #00D2B4);
  box-shadow: 0 0 10px rgba(0, 210, 180, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.summary-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.summary-avatar-info {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: var(--ui-accent, #00D2B4);
  letter-spacing: 0.5px;
}

.summary-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Animações Idle para Avatares */
.synapse-avatar-glow {
  animation: avatarPulseNeon 3s infinite alternate ease-in-out;
}

@keyframes avatarPulseNeon {
  0% {
    box-shadow: 0 0 10px rgba(0, 210, 180, 0.2);
  }
  100% {
    box-shadow: 0 0 22px rgba(0, 210, 180, 0.55), 0 0 35px rgba(168, 85, 247, 0.25);
  }
}

/* ==========================================================================
   MENUS DE ESCOLHA CYBERPUNK (CHIPS & CARDS INTERATIVOS)
   ========================================================================== */
.control-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Grid de Espécies / Arquétipos */
.species-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 7px;
}

.species-chip-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 25, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 8px 10px;
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
  text-align: left;
  outline: none;
}

.species-emoji {
  font-size: 15px;
  line-height: 1;
}

.species-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.species-chip-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.species-chip-btn.active {
  background: rgba(0, 210, 180, 0.14);
  border-color: var(--ui-accent, #00D2B4);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 210, 180, 0.28);
}



/* Grid de Efeitos de Fundo */
.bgfx-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 7px;
}

.bgfx-chip-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 25, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 8px 10px;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
  outline: none;
}

.bgfx-chip-btn i {
  font-size: 14px;
  color: var(--ui-accent, #00D2B4);
}

.bgfx-chip-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.bgfx-chip-btn.active {
  background: rgba(0, 210, 180, 0.14);
  border-color: var(--ui-accent, #00D2B4);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 210, 180, 0.25);
}

/* Steps de Resolução do Pixelizer */
.resolution-step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.res-step-btn {
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  padding: 6px 4px;
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  white-space: nowrap;
}

.res-step-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.res-step-btn.active {
  background: rgba(0, 210, 180, 0.14);
  border-color: var(--ui-accent, #00D2B4);
  color: #00D2B4;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 210, 180, 0.2);
}

/* ==========================================================================
   AVATAR BACKGROUND & BORDER EFFECTS (8 MODOS DINÂMICOS)
   ========================================================================== */

/* 1. Pulso Neon Sináptico */
.avatar-effect-neon-pulse {
  border-color: #00D2B4 !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 180, 0.35), 0 0 25px rgba(0, 210, 180, 0.55) !important;
  animation: avatarNeonPulse 2.4s ease-in-out infinite alternate !important;
}
@keyframes avatarNeonPulse {
  0% { box-shadow: 0 0 0 2px rgba(0, 210, 180, 0.3), 0 0 15px rgba(0, 210, 180, 0.3); }
  100% { box-shadow: 0 0 0 4px rgba(0, 210, 180, 0.6), 0 0 32px rgba(0, 210, 180, 0.75); }
}

/* 2. Anel Orbital Conic (Rotating Border Beam) */
.avatar-effect-orbital-ring {
  position: relative !important;
  border-color: transparent !important;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.35) !important;
}
.avatar-effect-orbital-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, transparent 0%, #00D2B4 50%, #00F0FF 75%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: avatarRotateOrbit 2.8s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes avatarRotateOrbit {
  to { transform: rotate(360deg); }
}

/* 3. Cyberpunk Synthwave */
.avatar-effect-cyberpunk {
  border-color: #EC4899 !important;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(192, 132, 252, 0.2) 60%, #13161C 100%) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.35), 0 0 26px rgba(236, 72, 153, 0.55), inset 0 0 12px rgba(192, 132, 252, 0.3) !important;
  animation: avatarCyberGlow 3s ease-in-out infinite alternate !important;
}
@keyframes avatarCyberGlow {
  0% { box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.3), 0 0 18px rgba(236, 72, 153, 0.4); }
  100% { box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.6), 0 0 35px rgba(236, 72, 153, 0.75); }
}

/* 4. Matrix Hacker Grid */
.avatar-effect-matrix-rain {
  border-color: #10B981 !important;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(6, 78, 59, 0.25) 60%, #0A140F 100%) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 0 24px rgba(16, 185, 129, 0.55), inset 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

/* 5. Solar Gold Cósmico (Asimov Amber) */
.avatar-effect-solar-asimov {
  border-color: #F59E0B !important;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(229, 169, 60, 0.2) 60%, #1A1408 100%) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), 0 0 28px rgba(245, 158, 11, 0.65), inset 0 0 14px rgba(245, 158, 11, 0.35) !important;
  animation: avatarSolarPulse 2.5s ease-in-out infinite alternate !important;
}
@keyframes avatarSolarPulse {
  0% { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 0 16px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.65), 0 0 36px rgba(245, 158, 11, 0.8); }
}

/* 6. Void Cósmico Astral */
.avatar-effect-void-nebula {
  border-color: #A855F7 !important;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(59, 130, 246, 0.2) 60%, #120E1E 100%) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.4), 0 0 28px rgba(168, 85, 247, 0.65), inset 0 0 14px rgba(168, 85, 247, 0.35) !important;
  animation: avatarVoidFloat 3.5s ease-in-out infinite alternate !important;
}
@keyframes avatarVoidFloat {
  0% { box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3), 0 0 18px rgba(168, 85, 247, 0.4); }
  100% { box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.65), 0 0 38px rgba(168, 85, 247, 0.8); }
}

/* 7. Fogo de Plasma Neural */
.avatar-effect-plasma-fire {
  border-color: #EF4444 !important;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, rgba(249, 115, 22, 0.2) 60%, #1C0F0E 100%) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4), 0 0 28px rgba(239, 68, 68, 0.65), inset 0 0 14px rgba(249, 115, 22, 0.35) !important;
  animation: avatarPlasmaFlicker 1.8s ease-in-out infinite alternate !important;
}
@keyframes avatarPlasmaFlicker {
  0% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 0 18px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.65), 0 0 34px rgba(239, 68, 68, 0.75); }
}

/* 8. Glitch Holográfico Cyber */
.avatar-effect-glitch-holo {
  border-color: #00F0FF !important;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(0, 210, 180, 0.15) 60%, #0E161C 100%) !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.4), 0 0 25px rgba(0, 240, 255, 0.55), inset 0 0 12px rgba(0, 240, 255, 0.25) !important;
}


/* ==========================================================================
   MODAL DE PRIMEIRO ACESSO / ONBOARDING DEFINITIVO (REFINADO & MINIMALISTA)
   ========================================================================== */
/* ==========================================================================
   MODAL DE PRIMEIRO ACESSO / ONBOARDING DEFINITIVO (REFINADO & ULTRA-NÍTIDO)
   ========================================================================== */
.synapse-onboarding-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(6, 8, 14, 0.45) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  z-index: 99999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 1 !important;
  animation: onboardingFadeIn 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes onboardingFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.synapse-onboarding-overlay.fade-out {
  animation: onboardingFadeOut 200ms ease forwards !important;
}

@keyframes onboardingFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.97); pointer-events: none; }
}

.synapse-onboarding-modal {
  background: #11141D !important;
  border: 1px solid rgba(0, 210, 180, 0.28) !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 520px !important;
  padding: 30px 26px 26px !important;
  position: relative !important;
  z-index: 100000000 !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95),
              0 0 30px rgba(0, 210, 180, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  opacity: 1 !important;
  z-index: 10000000 !important;
  transform: scale(0.96) translateY(6px);
  animation: onboardingPopUp 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes onboardingPopUp {
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.onboarding-ambient-glow {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 210, 180, 0.18) 0%, rgba(139, 92, 246, 0.10) 50%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
}

.onboarding-close-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #94A3B8 !important;
  font-size: 18px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 160ms ease !important;
  z-index: 20 !important;
}

.onboarding-close-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
  transform: scale(1.05);
}

.onboarding-avatar-wrap {
  position: relative !important;
  z-index: 2 !important;
  margin-bottom: 14px !important;
}

.onboarding-avatar-circle {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(0, 210, 180, 0.6) !important;
  box-shadow: 0 0 20px rgba(0, 210, 180, 0.25) !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #141822 !important;
}

.onboarding-avatar-circle img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: scale(1.04) translateY(-3%) !important;
  transform-origin: center center !important;
}

.onboarding-badge-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  background: rgba(0, 210, 180, 0.10) !important;
  color: #00D2B4 !important;
  border: 1px solid rgba(0, 210, 180, 0.30) !important;
  margin-bottom: 10px !important;
  position: relative !important;
  z-index: 2 !important;
}

.onboarding-title {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px !important;
  position: relative !important;
  z-index: 2 !important;
}

.onboarding-subtitle {
  font-size: 13px !important;
  color: #94A3B8 !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.5 !important;
  max-width: 440px !important;
  position: relative !important;
  z-index: 2 !important;
}

.onboarding-pillars-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  width: 100% !important;
  margin-bottom: 22px !important;
  position: relative !important;
  z-index: 2 !important;
  text-align: left !important;
}

.onboarding-pillar-card {
  background: #161B26 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  transition: all 180ms ease !important;
}

.onboarding-pillar-card:hover {
  background: #1C2230 !important;
  border-color: rgba(0, 210, 180, 0.35) !important;
  transform: translateX(2px) !important;
}

.pillar-icon-box {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(0, 210, 180, 0.12) !important;
  border: 1px solid rgba(0, 210, 180, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #00D2B4 !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}

.pillar-icon-box.purple {
  background: rgba(168, 85, 247, 0.12) !important;
  border-color: rgba(168, 85, 247, 0.25) !important;
  color: #C084FC !important;
}

.pillar-icon-box.amber {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #FBBF24 !important;
}

.pillar-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.pillar-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin: 0 0 2px 0 !important;
}

.pillar-desc {
  font-size: 12px !important;
  color: #94A3B8 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.onboarding-action-wrap {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 2 !important;
}

.btn-onboarding-start {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 240px !important;
  padding: 12px 28px !important;
  background: linear-gradient(135deg, #00D2B4 0%, #009E87 100%) !important;
  color: #04080C !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 180ms ease !important;
  box-shadow: 0 4px 18px rgba(0, 210, 180, 0.30) !important;
  text-decoration: none !important;
}

.btn-onboarding-start:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(0, 210, 180, 0.45) !important;
  background: linear-gradient(135deg, #00E4C4 0%, #00AB92 100%) !important;
}

.btn-onboarding-start:active {
  transform: translateY(0) scale(0.99) !important;
}

@media (max-width: 540px) {
  .synapse-onboarding-modal {
    padding: 24px 18px !important;
    max-width: 94% !important;
  }
  .onboarding-title {
    font-size: 19px !important;
  }
  .onboarding-subtitle {
    font-size: 12px !important;
  }
  .btn-onboarding-start {
    width: 100% !important;
  }
}




