/* ============================================
   AG Sandbox — Accordion + Background + Menu
   ============================================ */

/* ---------- BG Layer — rich lavender gradient ---------- */
.ag-bg-layer {
  position: fixed;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 70% at 25% 25%, rgba(186, 104, 200, 0.50) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 75% 75%, rgba(126, 87, 194, 0.40) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(225, 190, 231, 0.65) 0%, transparent 45%),
    linear-gradient(155deg, #ede7f6 0%, #d1c4e9 25%, #ce93d8 50%, #e1bee7 75%, #f3e5f5 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 400% 400%;
  animation: ag-bg-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

/* ---------- BG Shine sweep ---------- */
.ag-bg-shine {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 255, 255, 0.07) 47%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.07) 53%,
    transparent 68%
  );
  background-size: 250% 250%;
  animation: ag-bg-shine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ag-bg-drift {
  0% { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 50%; }
  50% { background-position: 80% 20%, 20% 80%, 60% 40%, 50% 50%; }
  100% { background-position: 100% 100%, 0% 0%, 40% 60%, 100% 50%; }
}

@keyframes ag-bg-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Banner wrappers (between categories) ---------- */
.ag-banner-wrapper {
  width: 100%;
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(74, 20, 140, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ag-banner-wrapper:hover {
  box-shadow:
    0 8px 32px rgba(74, 20, 140, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.ag-banner-wrapper .elementor-widget-container,
.ag-banner-wrapper .elementor-widget-container img,
.ag-banner-wrapper img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 16px;
}

/* ---------- Accordion ---------- */
.ag-category-accordion {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #f3e5f5, #ede7f6);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.8),
    inset -2px -2px 5px rgba(186, 104, 200, 0.15),
    4px 4px 12px rgba(74, 20, 140, 0.10),
    -2px -2px 8px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.ag-accordion-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  cursor: pointer;
  background: linear-gradient(
    110deg,
    #1a0033 0%,
    #3d0e61 15%,
    #6a1b9a 30%,
    #8e24aa 45%,
    #ab47bc 52%,
    #8e24aa 60%,
    #6a1b9a 75%,
    #3d0e61 90%,
    #1a0033 100%
  );
  background-size: 250% 100%;
  animation: ag-metallic-flow 4s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 24px rgba(74, 20, 140, 0.2);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
  text-align: left;
}

.ag-accordion-header::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 48%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: ag-shine-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

.ag-accordion-header::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 12px;
  position: relative;
  z-index: 1;
}

.ag-category-accordion.is-expanded .ag-accordion-header::after {
  transform: rotate(180deg);
}

.ag-accordion-header:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 32px rgba(74, 20, 140, 0.35);
  transform: translateY(-1px);
}

.ag-accordion-title {
  color: #fff;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.2;
}

.ag-accordion-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-left: 16px;
}

.ag-accordion-btn,
.ag-accordion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.ag-accordion-btn:hover,
.ag-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ag-accordion-toggle {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.ag-accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.32);
}

@keyframes ag-metallic-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ag-shine-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Accordion Content ---- */
.ag-accordion-content {
  max-height: 520px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-accordion-content::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(243, 229, 245, 0) 0%,
    rgba(243, 229, 245, 0.85) 60%,
    rgba(237, 231, 246, 0.98) 100%
  );
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ag-category-accordion.is-expanded .ag-accordion-content {
  max-height: 8000px;
}

.ag-category-accordion.is-expanded .ag-accordion-content::before {
  opacity: 0;
}

/* Hide old heading & button widgets moved into content */
.ag-hidden-widget {
  display: none !important;
}

/* Hide native Load More/Less More buttons inside accordion (replaced by accordion toggle) */
.ag-accordion-content .pagination_load_more,
.ag-accordion-content .pagination_area {
  display: none !important;
}

/* Category pages: hide hamburger toggle, keep menu in normal flow */
body:not(.home) .eael-simple-menu-toggle,
body:not(.home) .eael-simple-menu-hamburger {
  display: none !important;
}

/* Single event pages: hide injected banner */
body.single-mep_events .ag-injected-banner {
  display: none !important;
}

.ag-accordion-content .mage_grid_box {
  padding: 16px 8px 0;
}

/* ============================================
   MN-1: Floating glass menu (Elementor pages)
   ============================================ */
.ag-floating-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  background: rgba(26, 0, 51, 0.25) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

.ag-floating-menu.is-scrolled {
  background: rgba(40, 0, 80, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.ag-floating-menu .eael-simple-menu a,
.ag-floating-menu #menu-main-menu a,
.ag-floating-menu .eael-simple-menu-horizontal a,
.ag-floating-menu .eael-simple-menu-vertical a {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

.ag-floating-menu .eael-simple-menu a:hover,
.ag-floating-menu #menu-main-menu a:hover {
  color: #e1bee7 !important;
}

.ag-floating-menu .eael-simple-menu-toggle,
.ag-floating-menu .eael-simple-menu-container .eael-simple-menu-toggle {
  color: #fff !important;
}

.ag-floating-menu .eael-simple-menu-horizontal.eael-simple-menu-responsive,
.ag-floating-menu .eael-simple-menu-vertical.eael-simple-menu-responsive {
  background: rgba(40, 0, 80, 0.95) !important;
  backdrop-filter: blur(16px) !important;
}

/* ============================================
   MN-1b: Floating glass menu (Nexter theme pages)
   ============================================ */
.ag-floating-menu-nexter {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  background: rgba(26, 0, 51, 0.25) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

.ag-floating-menu-nexter.is-scrolled {
  background: rgba(40, 0, 80, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.single-mep_events #nxt-header .site-branding a,
body.tax-mep_cat #nxt-header .site-branding a,
body.post-type-archive-mep_events #nxt-header .site-branding a,
.ag-floating-menu-nexter .site-branding a,
body.single-mep_events #nxt-header .site-title a,
body.tax-mep_cat #nxt-header .site-title a,
body.post-type-archive-mep_events #nxt-header .site-title a,
.ag-floating-menu-nexter .site-title a,
body.single-mep_events #nxt-header .site-description,
body.tax-mep_cat #nxt-header .site-description,
body.post-type-archive-mep_events #nxt-header .site-description,
.ag-floating-menu-nexter .site-description,
body.single-mep_events #nxt-header .nxt-primary-menu a,
body.tax-mep_cat #nxt-header .nxt-primary-menu a,
body.post-type-archive-mep_events #nxt-header .nxt-primary-menu a,
.ag-floating-menu-nexter .nxt-primary-menu a {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.2s ease;
}

body.single-mep_events #nxt-header .nxt-primary-menu a:hover,
body.tax-mep_cat #nxt-header .nxt-primary-menu a:hover,
body.post-type-archive-mep_events #nxt-header .nxt-primary-menu a:hover,
.ag-floating-menu-nexter .nxt-primary-menu a:hover {
  color: #e1bee7 !important;
}

/* ============================================
   Event Pages — Harmonization
   ============================================ */
/* ============================================
   Universal Sandbox Background (all target pages)
   ============================================ */
body.ag-sandbox-active {
  position: relative;
  background:
    radial-gradient(ellipse 70% 70% at 25% 25%, rgba(186, 104, 200, 0.50) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 75% 75%, rgba(126, 87, 194, 0.40) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(225, 190, 231, 0.65) 0%, transparent 45%),
    linear-gradient(155deg, #ede7f6 0%, #d1c4e9 25%, #ce93d8 50%, #e1bee7 75%, #f3e5f5 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 400% 400%;
  animation: ag-bg-drift 18s ease-in-out infinite alternate;
}

/* Force Elementor wrappers transparent so bg-layer shows through */
body.ag-sandbox-active .elementor-section-wrap,
body.ag-sandbox-active .elementor-inner,
body.ag-sandbox-active .elementor-kit-2885 {
  background: transparent !important;
}

/* ============================================
   Event Pages - Harmonization
   ============================================ */
body.single-mep_events,
body.tax-mep_cat,
body.post-type-archive-mep_events {
  position: relative;
  /* Direct lavender gradient fallback (bg-layer z-index:-2 sits behind body) */
  background:
    radial-gradient(ellipse 70% 70% at 25% 25%, rgba(186, 104, 200, 0.50) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 75% 75%, rgba(126, 87, 194, 0.40) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(225, 190, 231, 0.65) 0%, transparent 45%),
    linear-gradient(155deg, #ede7f6 0%, #d1c4e9 25%, #ce93d8 50%, #e1bee7 75%, #f3e5f5 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 400% 400%;
  animation: ag-bg-drift 18s ease-in-out infinite alternate;
}

/* Fallback: ensure bg layers are visible on all event pages */
body.single-mep_events .wrapper-main,
body.tax-mep_cat .wrapper-main,
body.post-type-archive-mep_events .wrapper-main {
  background: transparent;
}

/* ---- Main layout transparency ---- */
body.single-mep_events .mep-default-theme,
body.single-mep_events .mep-default-content {
  background: transparent;
}

/* ---- Hide cart/registration section ---- */
body.single-mep_events .mep-default-feature-cart-sec {
  display: none !important;
}

/* ---- Main wrapper transparency (reveals lavender BG) ---- */
body.single-mep_events .mep-events-wrapper,
body.tax-mep_cat .mep-events-wrapper,
body.post-type-archive-mep_events .mep-events-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

body.single-mep_events .mep-events-container {
  background: transparent;
}

/* ---- Feature date/location bar — glass panel ---- */
body.single-mep_events .mep-default-feature-date-location {
  background: linear-gradient(145deg, rgba(243, 229, 245, 0.75), rgba(237, 231, 246, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.5),
    inset -2px -2px 5px rgba(186, 104, 200, 0.08),
    2px 2px 10px rgba(74, 20, 140, 0.08),
    -1px -1px 6px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 20px;
  margin: 20px 0;
}

body.single-mep_events .mep-default-feature-item {
  background: rgba(250, 245, 252, 0.55);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

body.single-mep_events .df-ico i {
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

body.single-mep_events .df-dtl h3 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a148c;
  margin-bottom: 4px;
}

body.single-mep_events .df-dtl p,
body.single-mep_events .df-dtl span {
  color: #1a0033;
  font-weight: 700;
}

/* ---- Sidebar glass panel ---- */
body.single-mep_events .mep-default-sidebar .df-sidebar-part {
  background: linear-gradient(145deg, rgba(243, 229, 245, 0.85), rgba(237, 231, 246, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.6),
    inset -2px -2px 5px rgba(186, 104, 200, 0.1),
    4px 4px 16px rgba(74, 20, 140, 0.08),
    -2px -2px 8px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  padding: 20px;
}

/* Sidebar meta (organizer) */
body.single-mep_events .mep-default-sidrbar-meta {
  background: linear-gradient(135deg, #4a148c, #7b1fa2) !important;
  color: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

body.single-mep_events .mep-default-sidrbar-meta p,
body.single-mep_events .mep-default-sidrbar-meta p a,
body.single-mep_events .mep-default-sidrbar-meta i {
  color: #fff !important;
}

body.single-mep_events .mep-default-sidrbar-meta i {
  background: transparent !important;
  font-size: 18px;
}

/* Price/seat info */
body.single-mep_events .mep-default-sidrbar-price-seat {
  background: rgba(250, 245, 252, 0.6);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

body.single-mep_events .mep-default-sidrbar-price-seat h5 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4a148c;
}

/* ---- Date schedule accordion ---- */
body.single-mep_events .mep-default-sidrbar-events-schedule {
  background: transparent;
  padding: 0;
  margin-bottom: 15px;
}

body.single-mep_events .sidrbar-events-schedule-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a0033 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  position: static !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: break-word !important;
  display: block !important;
}

body.single-mep_events .sidrbar-events-schedule-title::after {
  content: none !important;
  display: none !important;
}



/* ---- Translate feature bar labels (Event Date / Time / Location) ---- */
body.single-mep_events .mep-default-feature-date .df-dtl h3 {
  font-size: 0 !important;
  line-height: 1.2 !important;
}
body.single-mep_events .mep-default-feature-date .df-dtl h3::after {
  content: "DATA DO EVENTO:";
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a148c;
}

body.single-mep_events .mep-default-feature-time .df-dtl h3 {
  font-size: 0 !important;
  line-height: 1.2 !important;
}
body.single-mep_events .mep-default-feature-time .df-dtl h3::after {
  content: "HORÁRIO DO EVENTO:";
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a148c;
}

body.single-mep_events .mep-default-feature-location .df-dtl h3 {
  font-size: 0 !important;
  line-height: 1.2 !important;
}
body.single-mep_events .mep-default-feature-location .df-dtl h3::after {
  content: "LOCAL DO EVENTO:";
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a148c;
}

body.single-mep_events ul.mep_event_date_sch {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.single-mep_events ul.mep_event_date_sch li {
  background: rgba(250, 245, 252, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-mep_events ul.mep_event_date_sch li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.1);
}

/* Show only first 3 dates + scroll indicator */
body.single-mep_events ul.mep_event_date_sch:not(.is-expanded) {
  max-height: 220px;
  overflow-y: auto;
  position: relative;
  padding-bottom: 4px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 20, 140, 0.25) transparent;
}

body.single-mep_events ul.mep_event_date_sch:not(.is-expanded)::-webkit-scrollbar {
  width: 4px;
}
body.single-mep_events ul.mep_event_date_sch:not(.is-expanded)::-webkit-scrollbar-track {
  background: transparent;
}
body.single-mep_events ul.mep_event_date_sch:not(.is-expanded)::-webkit-scrollbar-thumb {
  background: rgba(74, 20, 140, 0.25);
  border-radius: 4px;
}

body.single-mep_events ul.mep_event_date_sch:not(.is-expanded) li:nth-child(n+4) {
  display: none;
}

/* Gradient fade at bottom when truncated */
body.single-mep_events ul.mep_event_date_sch:not(.is-expanded)::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  display: block;
  height: 36px;
  margin-top: -36px;
  background: linear-gradient(to bottom, transparent, rgba(237, 231, 246, 0.95));
  pointer-events: none;
  z-index: 1;
}

/* Expanded state — allow scroll for very long lists */
body.single-mep_events ul.mep_event_date_sch.is-expanded {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 20, 140, 0.3) transparent;
}
body.single-mep_events ul.mep_event_date_sch.is-expanded::-webkit-scrollbar {
  width: 5px;
}
body.single-mep_events ul.mep_event_date_sch.is-expanded::-webkit-scrollbar-thumb {
  background: rgba(74, 20, 140, 0.3);
  border-radius: 4px;
}

/* Hide original text toggle buttons */
body.single-mep_events #mep_single_view_all_date,
body.single-mep_events #mep_single_hide_all_date {
  display: none !important;
}

/* ---- Arrow date toggle ---- */
body.single-mep_events .ag-date-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: rgba(74, 20, 140, 0.08);
  border: 1px solid rgba(74, 20, 140, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 4px;
}

body.single-mep_events .ag-date-toggle:hover {
  background: rgba(74, 20, 140, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.1);
}

body.single-mep_events .ag-date-toggle-label {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #4a148c;
  line-height: 1.2;
}

body.single-mep_events .ag-date-toggle .ag-date-toggle-arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: solid #4a148c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: 2px;
}

body.single-mep_events .ag-date-toggle.is-expanded .ag-date-toggle-arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* ---- Calendar button ---- */
body.single-mep_events #mep_add_calender_button.mep-add-calender {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: unset !important;
  height: auto !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  background: linear-gradient(135deg, #4a148c, #7b1fa2) !important;
  color: #fff !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow:
    0 4px 15px rgba(74, 20, 140, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

body.single-mep_events #mep_add_calender_button.mep-add-calender:hover {
  background: linear-gradient(135deg, #6a1b9a, #9c27b0) !important;
  box-shadow:
    0 6px 20px rgba(74, 20, 140, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}

body.single-mep_events #mep_add_calender_button.mep-add-calender i.far.fa-calendar {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
  font-size: 16px !important;
  display: inline-block !important;
  color: #fff !important;
}

body.single-mep_events #mep_add_calender_button.mep-add-calender::after {
  content: "Adicionar ao Calendário" !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

/* Calendar dropdown */
body.single-mep_events ul#mep_add_calender_links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(74, 20, 140, 0.1);
  overflow: hidden;
}

body.single-mep_events ul#mep_add_calender_links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: #1a0033 !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  text-align: center;
  border-bottom: 1px solid rgba(74, 20, 140, 0.05);
  transition: background 0.2s ease;
}

body.single-mep_events ul#mep_add_calender_links li a::after {
  content: none !important;
}

body.single-mep_events ul#mep_add_calender_links li a:hover {
  background: rgba(74, 20, 140, 0.05);
  color: #7b1fa2 !important;
}

body.single-mep_events ul#mep_add_calender_links li:last-child a {
  border-bottom: none;
}

/* ---- Cart / registration section ---- */
body.single-mep_events .mep-default-feature-cart-sec {
  background: linear-gradient(145deg, rgba(243, 229, 245, 0.7), rgba(237, 231, 246, 0.75));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.4),
    inset -2px -2px 5px rgba(186, 104, 200, 0.06),
    2px 2px 10px rgba(74, 20, 140, 0.06),
    -1px -1px 6px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  margin: 20px 0;
}

body.single-mep_events .mep-default-feature-cart-sec h3,
body.single-mep_events .mep-default-feature-cart-sec h4 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #1a0033;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.single-mep_events .mep-default-feature-cart-sec button.single_add_to_cart_button {
  background: linear-gradient(135deg, #4a148c, #7b1fa2) !important;
  color: #fff !important;
  border-radius: 10px !important;
  border: none !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3) !important;
  transition: all 0.3s ease !important;
}

body.single-mep_events .mep-default-feature-cart-sec button.single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #6a1b9a, #9c27b0) !important;
  box-shadow: 0 6px 20px rgba(74, 20, 140, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* ---- Social share ---- */
body.single-mep_events .mep-default-sidrbar-social {
  background: rgba(250, 245, 252, 0.6);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

body.single-mep_events .mep-default-sidrbar-social .mep-share-btn-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4a148c;
  margin-bottom: 10px;
}

body.single-mep_events ul.mep-social-share a {
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
  color: #fff !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-mep_events ul.mep-social-share a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.3);
}

/* ---- Address section ---- */
body.single-mep_events .mep-default-sidebar-address {
  background: rgba(250, 245, 252, 0.6);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---- Map section ---- */
body.single-mep_events .mep-default-map {
  background: linear-gradient(145deg, rgba(243, 229, 245, 0.7), rgba(237, 231, 246, 0.75));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.4),
    inset -2px -2px 5px rgba(186, 104, 200, 0.06),
    2px 2px 10px rgba(74, 20, 140, 0.06),
    -1px -1px 6px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  margin: 20px 0;
  overflow: hidden;
}

body.single-mep_events .mep-default-map .map-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a0033;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

/* ---- FAQ section ---- */
body.single-mep_events .mep-default-feature-faq-sec {
  background: linear-gradient(145deg, rgba(243, 229, 245, 0.7), rgba(237, 231, 246, 0.75));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.4),
    inset -2px -2px 5px rgba(186, 104, 200, 0.06),
    2px 2px 10px rgba(74, 20, 140, 0.06),
    -1px -1px 6px rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  margin: 20px 0;
}

/* ---- Event title ---- */
body.single-mep_events .mep-default-title h1,
body.single-mep_events .mep-default-title h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a0033;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(74, 20, 140, 0.1);
  margin-bottom: 20px;
}

/* ---- Content typography ---- */
body.single-mep_events .mpwem_details_content {
  color: #1a0033;
  line-height: 1.7;
}

body.single-mep_events .mpwem_details_content h2,
body.single-mep_events .mpwem_details_content h3 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #4a148c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Sidebar text wrapping fixes ---- */
body.single-mep_events .mep-default-sidebar,
body.single-mep_events .df-sidebar-part,
body.single-mep_events .mep-default-sidrbar-meta,
body.single-mep_events .mep-default-sidebar-address,
body.single-mep_events .mep-default-sidrbar-social,
body.single-mep_events .mep-default-sidrbar-price-seat {
  word-break: break-word;
  overflow-wrap: anywhere;
}

body.single-mep_events .mep-more-date,
body.single-mep_events .mep-more-date p,
body.single-mep_events .mep_date_scdl_start_datetime {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* ---- Calendar dropdown flex fixes ---- */
body.single-mep_events ul#mep_add_calender_links {
  max-width: 100%;
}

body.single-mep_events ul#mep_add_calender_links li a {
  flex-wrap: wrap;
  min-height: 44px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ============================================
   Category & Archive Pages — Harmonization
   ============================================ */

/* Category title header */
body.tax-mep_cat .mep_cat-details,
body.post-type-archive-mep_events .mep_cat-details {
  background: linear-gradient(145deg, rgba(243, 229, 245, 0.75), rgba(237, 231, 246, 0.8)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.5),
    inset -2px -2px 5px rgba(186, 104, 200, 0.08),
    2px 2px 10px rgba(74, 20, 140, 0.08),
    -1px -1px 6px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 20px;
  margin-bottom: 20px;
}

body.tax-mep_cat .mep_cat-details h1,
body.post-type-archive-mep_events .mep_cat-details h1 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a0033;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(74, 20, 140, 0.1);
}

body.tax-mep_cat .mep_cat-details p,
body.post-type-archive-mep_events .mep_cat-details p {
  color: #4a148c;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Event list cards — glassmorphism */
body.tax-mep_cat .mep-event-list-loop,
body.post-type-archive-mep_events .mep-event-list-loop {
  background: linear-gradient(145deg, rgba(250, 245, 252, 0.85), rgba(243, 229, 245, 0.9)) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 4px 16px rgba(74, 20, 140, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.tax-mep_cat .mep-event-list-loop:hover,
body.post-type-archive-mep_events .mep-event-list-loop:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 24px rgba(74, 20, 140, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

body.tax-mep_cat .mep-event-list-loop .mep_list_event_details,
body.post-type-archive-mep_events .mep-event-list-loop .mep_list_event_details {
  background: transparent;
}

body.tax-mep_cat .mep-event-list-loop .mep_list_title,
body.post-type-archive-mep_events .mep-event-list-loop .mep_list_title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #1a0033;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

body.tax-mep_cat .mep-event-list-loop .mep_list_date,
body.post-type-archive-mep_events .mep-event-list-loop .mep_list_date {
  color: #4a148c;
  font-weight: 600;
  font-size: 0.9rem;
}

body.tax-mep_cat .mep-event-list-loop .evl-ico i,
body.post-type-archive-mep_events .mep-event-list-loop .evl-ico i {
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
  color: #fff;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
}

body.tax-mep_cat .mep-event-list-loop .evl-cc h5,
body.post-type-archive-mep_events .mep-event-list-loop .evl-cc h5 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4a148c;
  margin-bottom: 2px;
}

body.tax-mep_cat .mep-event-list-loop .evl-cc h6,
body.post-type-archive-mep_events .mep-event-list-loop .evl-cc h6 {
  color: #1a0033;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Pagination */
body.tax-mep_cat .mep_event_pagination,
body.post-type-archive-mep_events .mep_event_pagination {
  text-align: center;
  margin-top: 20px;
}

body.tax-mep_cat .mep_event_pagination a,
body.tax-mep_cat .mep_event_pagination span,
body.post-type-archive-mep_events .mep_event_pagination a,
body.post-type-archive-mep_events .mep_event_pagination span {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  color: #4a148c;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}

body.tax-mep_cat .mep_event_pagination a:hover,
body.post-type-archive-mep_events .mep_event_pagination a:hover {
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.25);
}

body.tax-mep_cat .mep_event_pagination span.current,
body.post-type-archive-mep_events .mep_event_pagination span.current {
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.25);
}

/* ---- Grid & List item overrides ---- */
body.tax-mep_cat .mep_event_grid_item,
body.post-type-archive-mep_events .mep_event_grid_item {
  background: linear-gradient(145deg, rgba(250, 245, 252, 0.85), rgba(243, 229, 245, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 4px 16px rgba(74, 20, 140, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

body.tax-mep_cat .mep_event_list_item,
body.post-type-archive-mep_events .mep_event_list_item {
  background: linear-gradient(145deg, rgba(250, 245, 252, 0.85), rgba(243, 229, 245, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 4px 16px rgba(74, 20, 140, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

/* Transparent containers */
body.tax-mep_cat .mep_event_list,
body.post-type-archive-mep_events .mep_event_list,
body.tax-mep_cat .mage_grid_box,
body.post-type-archive-mep_events .mage_grid_box,
body.tax-mep_cat .list_with_filter_section.mep_event_list,
body.post-type-archive-mep_events .list_with_filter_section.mep_event_list {
  background: transparent !important;
}

/* Date badge on cards */
body.tax-mep_cat .mep-ev-start-date,
body.post-type-archive-mep_events .mep-ev-start-date {
  background: linear-gradient(135deg, #4a148c, #7b1fa2) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.3);
}

body.tax-mep_cat .mep-ev-start-date .mep-day,
body.post-type-archive-mep_events .mep-ev-start-date .mep-day {
  color: #fff;
  font-weight: 700;
}

body.tax-mep_cat .mep-ev-start-date .mep-month,
body.post-type-archive-mep_events .mep-ev-start-date .mep-month {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

/* Ribbons / badges */
body.tax-mep_cat .mepev-ribbon .ribbon,
body.post-type-archive-mep_events .mepev-ribbon .ribbon {
  background: rgba(74, 20, 140, 0.85) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  font-weight: 600;
}

body.tax-mep_cat .mepev-ribbon .ribbon.sold-out,
body.post-type-archive-mep_events .mepev-ribbon .ribbon.sold-out {
  background: linear-gradient(135deg, #c62828, #e53935) !important;
}

body.tax-mep_cat .mepev-ribbon .ribbon.limited-availability,
body.post-type-archive-mep_events .mepev-ribbon .ribbon.limited-availability {
  background: linear-gradient(135deg, #ef6c00, #fb8c00) !important;
}

body.tax-mep_cat .mepev-ribbon .ribbon.online,
body.post-type-archive-mep_events .mepev-ribbon .ribbon.online {
  background: linear-gradient(135deg, #00838f, #00acc1) !important;
}

body.tax-mep_cat .mepev-ribbon .ribbon.multidate,
body.post-type-archive-mep_events .mepev-ribbon .ribbon.multidate,
body.tax-mep_cat .mepev-ribbon .ribbon.recurring,
body.post-type-archive-mep_events .mepev-ribbon .ribbon.recurring {
  background: linear-gradient(135deg, #6a1b9a, #9c27b0) !important;
}

/* Footer list icons */
body.tax-mep_cat .mep-list-footer ul li i,
body.post-type-archive-mep_events .mep-list-footer ul li i {
  background: linear-gradient(135deg, #4a148c, #7b1fa2) !important;
  color: #fff !important;
}

/* Hover book button overlay */
body.tax-mep_cat div.item_hover_effect a,
body.post-type-archive-mep_events div.item_hover_effect a {
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
}

body.tax-mep_cat div.item_hover_effect a:hover,
body.post-type-archive-mep_events div.item_hover_effect a:hover {
  background: linear-gradient(135deg, #6a1b9a, #9c27b0);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   Universal Floating Glass Menu — Enhancements
   ============================================ */

/* CSS fallback: force Nexter header to glass on all target pages */
body.single-mep_events #nxt-header,
body.tax-mep_cat #nxt-header,
body.post-type-archive-mep_events #nxt-header,
.ag-floating-menu-nexter {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  background: rgba(26, 0, 51, 0.25) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

body.single-mep_events #nxt-header.is-scrolled,
body.tax-mep_cat #nxt-header.is-scrolled,
body.post-type-archive-mep_events #nxt-header.is-scrolled,
.ag-floating-menu-nexter.is-scrolled {
  background: rgba(40, 0, 80, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Ensure body has padding for fixed header (JS will recalculate, but this prevents overlap on load) */
body.single-mep_events,
body.tax-mep_cat,
body.post-type-archive-mep_events {
  padding-top: 60px;
}

/* Nexter submenu glass styling */
.ag-floating-menu-nexter .site-navigation ul.menu li ul {
  background: rgba(40, 0, 80, 0.92) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.ag-floating-menu-nexter .site-navigation ul.menu li ul li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ag-floating-menu-nexter .site-navigation ul.menu li ul li a {
  color: #fff !important;
}

.ag-floating-menu-nexter .site-navigation ul.menu li ul li a:hover {
  color: #e1bee7 !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.ag-floating-menu-nexter .site-navigation ul.menu li.menu-item-has-children:after {
  color: #fff !important;
}

/* Mobile menu toggle under glass menu */
.ag-floating-menu-nexter .menu-toggle {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ag-accordion-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ag-accordion-title {
    font-size: 1.1rem;
    width: 100%;
  }

  .ag-accordion-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .ag-accordion-btn,
  .ag-accordion-toggle {
    padding: 7px 14px;
    font-size: 0.75rem;
  }

  .ag-accordion-header::after {
    width: 20px;
    height: 20px;
    margin-left: auto;
  }

  .ag-accordion-content {
    max-height: 580px;
  }

  .ag-floating-menu .eael-simple-menu a {
    font-size: 0.9rem;
  }

  body.single-mep_events .mep-default-content,
  body.single-mep_events .mep-default-sidebar {
    width: 100% !important;
    padding: 0 !important;
  }

  body.single-mep_events .mep-default-feature-date-location {
    display: block;
    padding: 15px;
  }

  body.single-mep_events .mep-default-feature-item {
    width: 100%;
    margin-bottom: 10px;
  }

  body.single-mep_events .df-sidebar-part {
    padding: 15px;
    border-radius: 14px;
  }

  body.single-mep_events #mep_add_calender_button.mep-add-calender {
    min-height: 40px !important;
    padding: 8px 14px !important;
  }

  body.single-mep_events #mep_add_calender_button.mep-add-calender::after {
    font-size: 0.75rem !important;
  }

  body.single-mep_events ul#mep_add_calender_links li a {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  body.single-mep_events .ag-date-toggle {
    padding: 8px;
  }

  body.single-mep_events .ag-date-toggle-label {
    font-size: 0.68rem;
  }

  body.single-mep_events ul.mep_event_date_sch:not(.is-expanded),
  body.single-mep_events ul.mep_event_date_sch.is-expanded {
    max-height: 280px;
  }

  /* Category pages mobile */
  body.tax-mep_cat .mep_cat-details,
  body.post-type-archive-mep_events .mep_cat-details {
    padding: 15px;
    border-radius: 14px;
  }

  body.tax-mep_cat .mep_cat-details h1,
  body.post-type-archive-mep_events .mep_cat-details h1 {
    font-size: 1.4rem;
  }

  body.tax-mep_cat .mep-event-list-loop,
  body.post-type-archive-mep_events .mep-event-list-loop {
    border-radius: 14px;
  }

  body.tax-mep_cat .mep-event-list-loop .mep_list_title,
  body.post-type-archive-mep_events .mep-event-list-loop .mep_list_title {
    font-size: 1rem;
  }

  body.tax-mep_cat .mep_event_pagination a,
  body.tax-mep_cat .mep_event_pagination span,
  body.post-type-archive-mep_events .mep_event_pagination a,
  body.post-type-archive-mep_events .mep_event_pagination span {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* Mobile header padding adjustment */
  body.single-mep_events,
  body.tax-mep_cat,
  body.post-type-archive-mep_events,
  body.ag-has-injected-header {
    padding-top: 120px;
  }

  .ag-injected-header .ag-injected-nav.is-open {
    max-height: 70vh;
    padding: 12px 20px 20px;
    opacity: 1;
  }

  .ag-injected-header .ag-injected-nav.is-open ul {
    gap: 6px;
  }

  .ag-injected-header .ag-injected-nav.is-open li a {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

/* ============================================
   INJECTED HEADER — Pages without native menu
   ============================================ */
.ag-injected-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  background: rgba(26, 0, 51, 0.25) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

.ag-injected-header.is-scrolled {
  background: rgba(40, 0, 80, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.ag-injected-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  gap: 20px;
}

/* Logo */
.ag-injected-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.ag-injected-logo img {
  height: 150px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.ag-injected-logo-text {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  white-space: nowrap;
}

/* Navigation */
.ag-injected-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.ag-injected-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ag-injected-nav li a {
  display: block;
  padding: 8px 14px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.ag-injected-nav li a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #e1bee7 !important;
}

/* Mobile toggle */
.ag-injected-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.ag-injected-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ag-injected-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ag-injected-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.ag-injected-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Body padding when injected header is present */
body.ag-has-injected-header {
  padding-top: 180px;
}

/* Injected banner below fixed header */
.ag-injected-banner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 0;
  box-sizing: border-box;
}

.ag-injected-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(74, 20, 140, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .ag-injected-header-inner {
    padding: 10px 16px;
  }

  .ag-injected-logo img {
    height: 100px;
  }

  .ag-injected-logo-text {
    font-size: 0.95rem;
  }

  .ag-injected-menu-toggle {
    display: flex;
  }

  .ag-injected-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 0, 51, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.35s ease;
    justify-content: stretch;
  }

  .ag-injected-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .ag-injected-nav li {
    width: 100%;
  }

  .ag-injected-nav li a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ag-injected-nav.is-open {
    max-height: 70vh;
    padding: 12px 20px 20px;
    opacity: 1;
  }
}

/* ============================================
   Envie sua Sugestão — Premium Metallic & Glass Forms
   ============================================ */
.ag-suggestion-page-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.metallic-plate {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(243, 229, 245, 0.7), rgba(237, 231, 246, 0.75));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, 0.75),
    inset -2px -2px 6px rgba(186, 104, 200, 0.15),
    0 10px 30px rgba(74, 20, 140, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 35px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metallic-plate:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, 0.85),
    inset -2px -2px 6px rgba(186, 104, 200, 0.2),
    0 15px 40px rgba(74, 20, 140, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.08);
}

.flow-gradient-header {
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(186, 104, 200, 0.15);
  padding-bottom: 20px;
}

.ag-card-title.flow-gradient {
  display: inline-block;
  margin: 0 0 10px 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  background: linear-gradient(
    110deg,
    #1a0033 0%,
    #3d0e61 15%,
    #6a1b9a 30%,
    #8e24aa 45%,
    #ab47bc 52%,
    #8e24aa 60%,
    #6a1b9a 75%,
    #3d0e61 90%,
    #1a0033 100%
  );
  background-size: 250% auto;
  animation: ag-metallic-flow 6s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.4);
}

.ag-instructions-card h3.ag-card-title.flow-gradient {
  font-size: 1.8rem;
}

.ag-card-subtitle {
  color: #4a148c;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

/* WPForms Metallic styling */
.ag-form-container .wpforms-container {
  margin: 0 !important;
  max-width: 100% !important;
}

.ag-form-container .wpforms-form {
  display: grid;
  gap: 20px;
}

.ag-form-container .wpforms-field-container {
  display: grid;
  gap: 20px;
}

.ag-form-container .wpforms-field {
  padding: 0 !important;
  margin: 0 !important;
}

.ag-form-container label.wpforms-field-label {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px;
  color: #4a148c !important;
  margin-bottom: 8px !important;
  display: block;
}

.ag-form-container input[type="text"],
.ag-form-container input[type="email"],
.ag-form-container textarea {
  width: 100% !important;
  background: rgba(250, 245, 252, 0.6) !important;
  border: 1px solid rgba(186, 104, 200, 0.3) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-family: 'Segoe UI', system-ui, sans-serif !important;
  font-size: 1rem !important;
  color: #1a0033 !important;
  box-shadow: inset 1px 1px 4px rgba(74, 20, 140, 0.08) !important;
  transition: all 0.25s ease !important;
}

.ag-form-container input[type="text"]:focus,
.ag-form-container input[type="email"]:focus,
.ag-form-container textarea:focus {
  outline: none !important;
  border-color: #8e24aa !important;
  background: #fff !important;
  box-shadow:
    inset 1px 1px 3px rgba(74, 20, 140, 0.05),
    0 0 10px rgba(142, 36, 170, 0.2) !important;
}

/* Metallic flowing button */
.ag-form-container button[type="submit"],
.ag-form-container .wpforms-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 35px !important;
  cursor: pointer !important;
  color: #fff !important;
  font-family: 'Segoe UI', system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: linear-gradient(
    110deg,
    #1a0033 0%,
    #3d0e61 15%,
    #6a1b9a 30%,
    #8e24aa 45%,
    #ab47bc 52%,
    #8e24aa 60%,
    #6a1b9a 75%,
    #3d0e61 90%,
    #1a0033 100%
  ) !important;
  background-size: 250% 100% !important;
  animation: ag-metallic-flow 4s ease-in-out infinite !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 20px rgba(74, 20, 140, 0.22) !important;
  transition: all 0.3s ease !important;
  justify-self: start;
}

.ag-form-container button[type="submit"]:hover,
.ag-form-container .wpforms-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 25px rgba(74, 20, 140, 0.32) !important;
  filter: brightness(1.1);
}

.ag-form-container button[type="submit"]:active,
.ag-form-container .wpforms-submit:active {
  transform: translateY(1px) !important;
}

/* Instructions card steps */
.ag-instructions-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.ag-instruction-step {
  background: rgba(250, 245, 252, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ag-instruction-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 20, 140, 0.08);
  background: rgba(250, 245, 252, 0.7);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a1b9a, #8e24aa);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(106, 27, 154, 0.25);
}

.step-content h4 {
  margin: 0 0 8px 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d0e61;
}

.step-content p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1a0033;
}

.step-content code {
  background: rgba(74, 20, 140, 0.08);
  color: #6a1b9a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.85rem;
}

.ag-instructions-footer {
  background: rgba(74, 20, 140, 0.05);
  border-radius: 12px;
  padding: 16px 20px;
  border-left: 4px solid #8e24aa;
}

.ag-instructions-footer p {
  margin: 0;
  font-size: 0.95rem;
  color: #3d0e61;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .ag-suggestion-page-wrapper {
    margin: 20px auto;
  }
  
  .metallic-plate {
    padding: 24px;
  }
  
  .ag-card-title.flow-gradient {
    font-size: 1.7rem;
  }
  
  .ag-instructions-card h3.ag-card-title.flow-gradient {
    font-size: 1.5rem;
  }
}

/* ============================================
   Banners and Menus — Harmonized Rounded Corners (16px)
   ============================================ */
/* Applying rounded borders (16px) to header and all other banners */
img[src*="TEMP"],
img[src*="EVRBanner"],
img[src*="TopBannerVR5"],
img[src*="Banner-Pacote-Romanticos"],
.elementor-element-a5c8984 img,
.elementor-widget-image img,
.ag-injected-banner img {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Applying rounded borders (16px) to all menus as floating glass capsules */
.ag-floating-menu,
.ag-floating-menu-nexter,
.ag-injected-header {
  border-radius: 16px !important;
  margin: 12px auto !important;
  width: 95% !important;
  left: 2.5% !important;
  right: 2.5% !important;
  box-shadow: 0 8px 32px rgba(26, 0, 51, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  overflow: visible !important;
}

/* Keep the mobile menus cohesive and rounded at the bottom */
.ag-injected-nav.is-open {
  border-radius: 0 0 16px 16px !important;
}

/* Style for category page event lists (to match the homepage emboss card styling) */
body.ag-sandbox-active:not(.home) .list_with_filter_section {
  background: linear-gradient(145deg, #f3e5f5, #ede7f6) !important;
  border-radius: 20px !important;
  padding: 30px !important;
  margin: 30px auto !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.8),
    inset -2px -2px 5px rgba(186, 104, 200, 0.15),
    4px 4px 12px rgba(74, 20, 140, 0.10),
    -2px -2px 8px rgba(255, 255, 255, 0.6) !important;
}

/* Category / Archive Page Titles Styled to Match Suggestion Form Title */
body.tax-mep_cat .archive-post-title,
body.tax-mep_cat .archive-title,
body.tax-mep_cat .page-title,
body.tax-mep_cat h1,
body.tax-mep_cat h2.page-title,
body.post-type-archive-mep_events .archive-post-title,
body.post-type-archive-mep_events .archive-title,
body.post-type-archive-mep_events .page-title,
body.post-type-archive-mep_events h1,
.archive-page-header .archive-post-title,
body.ag-sandbox-active:not(.home):not(.single-mep_events) .elementor-widget-heading h2,
body.page-id-6500 .elementor-widget-heading h2,
body.page-id-6508 .elementor-widget-heading h2,
body.page-id-6509 .elementor-widget-heading h2,
body.page-id-6519 .elementor-widget-heading h2,
body.page-id-6520 .elementor-widget-heading h2,
body.page-id-6524 .elementor-widget-heading h2,
body.page-id-6535 .elementor-widget-heading h2,
body.page-id-6542 .elementor-widget-heading h2 {
  display: inline-block !important;
  font-family: 'Segoe UI', system-ui, sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: #fff !important;
  background: linear-gradient(
    110deg,
    #1a0033 0%,
    #3d0e61 15%,
    #6a1b9a 30%,
    #8e24aa 45%,
    #ab47bc 52%,
    #8e24aa 60%,
    #6a1b9a 75%,
    #3d0e61 90%,
    #1a0033 100%
  ) !important;
  background-size: 250% auto !important;
  animation: ag-metallic-flow 6s ease-in-out infinite !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4) !important;
  margin-top: 15px !important;
  margin-bottom: 20px !important;
}

.flow-gradient-header {
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

.flow-gradient-header .ag-card-title.flow-gradient {
  margin-top: 15px !important;
  margin-bottom: 10px !important;
}
