/* 🔥 ABSOLUTE MAXIMUM BADGE HIDING - PC + MOBILE 🔥 */

/* ========== GLOBAL NUCLEAR RULES ========== */

/* Verstecke ALLE a-Tags mit manus im href */
a[href*="manus"],
a[href*="Manus"],
a[href*="MANUS"],
a[href*="manus.im"],
a[href*="manus.ai"],
a[href*="manus.space"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -999999px !important;
  top: -999999px !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: polygon(0 0, 0 0, 0 0) !important;
  transform: scale(0) translate(-999999px, -999999px) !important;
  z-index: -999999 !important;
}

/* Verstecke ALLE Elemente mit badge/watermark/branding */
[class*="badge"],
[class*="Badge"],
[class*="BADGE"],
[class*="watermark"],
[class*="Watermark"],
[class*="WATERMARK"],
[class*="branding"],
[class*="Branding"],
[class*="attribution"],
[id*="badge"],
[id*="Badge"],
[id*="watermark"],
[id*="Watermark"],
[id*="branding"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -999999px !important;
  top: -999999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  transform: scale(0) !important;
  z-index: -999999 !important;
}

/* ========== POSITION-BASED HIDING ========== */

/* Verstecke ALLE fixed Elemente in der rechten unteren Ecke */
*[style*="position: fixed"][style*="bottom"],
*[style*="position:fixed"][style*="bottom"],
*[style*="position: fixed"][style*="right"],
*[style*="position:fixed"][style*="right"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: scale(0) !important;
}

/* Verstecke ALLE absolute Elemente in der rechten unteren Ecke */
*[style*="position: absolute"][style*="bottom"],
*[style*="position:absolute"][style*="bottom"],
*[style*="position: absolute"][style*="right"],
*[style*="position:absolute"][style*="right"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: scale(0) !important;
}

/* ========== Z-INDEX BASED HIDING ========== */

/* Verstecke Elemente mit sehr hohem z-index (Badges haben oft 9999+) */
*[style*="z-index: 999"],
*[style*="z-index:999"],
*[style*="z-index: 9999"],
*[style*="z-index:9999"],
*[style*="z-index: 99999"],
*[style*="z-index:99999"],
*[style*="z-index: 999999"],
*[style*="z-index:999999"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0) translate(-999999px, -999999px) !important;
  position: fixed !important;
  left: -999999px !important;
  top: -999999px !important;
}

/* ========== BODY CHILDREN PROTECTION ========== */

/* Verstecke ALLE direkten Body-Kinder außer #root und essentials */
body > *:not(#root):not(script):not(style):not(link):not(meta):not(noscript) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -999999px !important;
  top: -999999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  transform: scale(0) !important;
  z-index: -999999 !important;
}

/* ========== MOBILE-SPECIFIC RULES ========== */

/* Mobile: Verstecke ALLE kleinen fixed/absolute Elemente */
@media (max-width: 768px) {
  *[style*="position: fixed"],
  *[style*="position:fixed"],
  *[style*="position: absolute"],
  *[style*="position:absolute"] {
    /* Wird von JavaScript geprüft - kleine Elemente werden entfernt */
  }
  
  /* Mobile: Extra aggressive für bottom-right */
  *[style*="bottom"][style*="right"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: scale(0) translate(-999999px, -999999px) !important;
  }
}

/* ========== PSEUDO-ELEMENTS ========== */

/* Verhindere Badge via ::before/::after */
body::before,
body::after,
html::before,
html::after,
*::before,
*::after {
  /* Wird von JavaScript geprüft */
}

/* ========== IFRAME PROTECTION ========== */

/* Verstecke iframes mit manus */
iframe[src*="manus"],
iframe[src*="Manus"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* ========== ROOT PROTECTION ========== */

/* Stelle sicher dass #root IMMER sichtbar ist */
#root {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ========== CATCH-ALL RULES ========== */

/* Verstecke ALLES was "Made" enthält (außer in #root) */
body > *:not(#root) {
  /* Wird von JavaScript geprüft */
}

/* Verstecke ALLE Elemente mit data-Attributen die auf badge hinweisen */
[data-badge],
[data-watermark],
[data-branding],
[data-attribution],
[data-powered],
[data-made] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: scale(0) !important;
}
