/* G6M_BUNDLE_11 — 3 feuilles, ordre du document preserve */
/* ==== g6m-inline-p2-04-v701.css ==== */
/* Externalise (passe 2) — bloc inline #4 — position inchangee */

/* G6M_AUTH_FOOTER_RESTORE_V333 — full forum footer on login/register */
html#XF body[data-template="login"] .g6m-forum-footer,
html#XF body.template-login .g6m-forum-footer,
html#XF body[data-template="login_password"] .g6m-forum-footer,
html#XF body[data-template="login_two_step"] .g6m-forum-footer,
html#XF body[data-template="register_form"] .g6m-forum-footer,
html#XF body.template-register_form .g6m-forum-footer,
html#XF body[data-template="login"] .p-footer.g6m-p-footer--v48,
html#XF body[data-template="register_form"] .p-footer.g6m-p-footer--v48,
html#XF body[data-template="login"] .p-footer,
html#XF body[data-template="register_form"] .p-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  margin-top: 3rem !important;
  padding-top: 0 !important;
}

html#XF body[data-template="login"] .g6m-forum-footer__body,
html#XF body.template-login .g6m-forum-footer__body,
html#XF body[data-template="login_password"] .g6m-forum-footer__body,
html#XF body[data-template="login_two_step"] .g6m-forum-footer__body,
html#XF body[data-template="register_form"] .g6m-forum-footer__body,
html#XF body.template-register_form .g6m-forum-footer__body,
html#XF body[data-template="login"] .g6m-forum-footer__border,
html#XF body.template-login .g6m-forum-footer__border,
html#XF body[data-template="register_form"] .g6m-forum-footer__border,
html#XF body.template-register_form .g6m-forum-footer__border,
html#XF body[data-template="login"] .g6m-forum-footer__scene,
html#XF body.template-login .g6m-forum-footer__scene,
html#XF body[data-template="register_form"] .g6m-forum-footer__scene,
html#XF body.template-register_form .g6m-forum-footer__scene {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  width: auto !important;
  overflow: hidden !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

html#XF body[data-template="login"] .g6m-forum-footer__body,
html#XF body[data-template="register_form"] .g6m-forum-footer__body {
  position: relative !important;
  min-height: clamp(320px, 42vw, 460px) !important;
}

html#XF body[data-template="login"] .g6m-forum-footer__grid,
html#XF body[data-template="register_form"] .g6m-forum-footer__grid {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

html#XF body[data-template="login"] .g6m-forum-footer__bottom,
html#XF body[data-template="register_form"] .g6m-forum-footer__bottom,
html#XF body[data-template="login"] .g6m-footer-legal,
html#XF body[data-template="register_form"] .g6m-footer-legal {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

html#XF body[data-template="login"] .g6m-forum-cta,
html#XF body[data-template="register_form"] .g6m-forum-cta {
  display: none !important;
}

/* ==== g6m-dash-forum-home-only-v334.css ==== */
/* G6M_DASH_HOME_ONLY_V353
   Hide visitor dashboard outside forum homepage.
   XF 2.3: data-template / template-* live on <html>, not <body>.
*/
html:not([data-template="forum_list"]):not(.template-forum_list) .g6m-dash,
html:not([data-template="forum_list"]):not(.template-forum_list) [data-widget-key="g6m_sidebar_visitor"],
html:not([data-template="forum_list"]):not(.template-forum_list) .block[data-widget-definition="g6m_visitor_dashboard"],
html.template-thread_view .g6m-dash,
html.template-forum_view .g6m-dash,
html[data-template="thread_view"] .g6m-dash,
html[data-template="forum_view"] .g6m-dash {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ==== g6m-cmp.css ==== */
/* G6M CMP banner — Rockstar / GTA VI dark glass */
:root {
  --g6m-cmp-bg: linear-gradient(135deg, #17131f 0%, #241538 50%, #1b1327 100%);
  --g6m-cmp-pink: #ff5dbd;
  --g6m-cmp-green: #7cff5b;
  --g6m-cmp-ink: #f4f1fb;
  --g6m-cmp-muted: rgba(220, 215, 235, 0.72);
}

#g6m-cmp {
  position: fixed;
  z-index: 10050;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  pointer-events: none;
}

#g6m-cmp[hidden] {
  display: none !important;
}

#g6m-cmp .g6m-cmp__card {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--g6m-cmp-ink);
  background: var(--g6m-cmp-bg);
  border: 1px solid rgba(255, 93, 189, 0.35);
  box-shadow:
    0 0 0 1px rgba(124, 255, 91, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: Rajdhani, Inter, system-ui, sans-serif;
}

#g6m-cmp .g6m-cmp__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#g6m-cmp .g6m-cmp__text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--g6m-cmp-muted);
}

#g6m-cmp .g6m-cmp__text a {
  color: #7ee8ff;
  text-decoration: underline;
}

#g6m-cmp .g6m-cmp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#g6m-cmp .g6m-cmp__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

#g6m-cmp .g6m-cmp__btn--primary {
  color: #120e18;
  background: linear-gradient(115deg, var(--g6m-cmp-green), #c8ff8a 40%, var(--g6m-cmp-pink));
}

#g6m-cmp .g6m-cmp__btn--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

#g6m-cmp .g6m-cmp__btn--ghost {
  color: var(--g6m-cmp-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#g6m-cmp-panel[hidden] {
  display: none !important;
}

#g6m-cmp-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: var(--g6m-cmp-muted);
}

@media (max-width: 600px) {
  #g6m-cmp {
    padding: 10px;
  }
  #g6m-cmp .g6m-cmp__btn {
    flex: 1 1 auto;
  }
}
