/**
 * RealGaming Custom Styles v5.0
 * 2025-2026 Design System
 * Glassmorphism + Micro-animations + Fluid Typography
 */

/* ============================================
   CSS CUSTOM PROPERTIES - REFINED 2026
   ============================================ */

:root {
  /* Brand colors - refined */
  --rg-primary: #0066FF;
  --rg-primary-glow: rgba(0, 102, 255, 0.4);
  --rg-secondary: #0049d1;
  --rg-accent: #F5C518;
  --rg-accent-glow: rgba(245, 197, 24, 0.3);
  --rg-purple: #6B21A8;
  --rg-purple-glow: rgba(107, 33, 168, 0.3);

  /* Dark theme base - deeper */
  --rg-black: #000000;
  --rg-dark: #08080F;
  --rg-darker: #050508;

  /* Glass materials - enhanced 2026 */
  --glass-bg: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  --glass-bg-solid: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glass-blur: 24px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-subtle: rgba(255, 255, 255, 0.35);

  /* Fluid Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-hero: clamp(2.5rem, 2rem + 3vw, 4.5rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ============================================
   SMART NAVIGATION - SINGLE ACTIVE STATE
   ============================================ */

/* Kill ALL underlines everywhere on menu */
body .sf-menu .menu-item a,
body .sf-menu .menu-item a span,
body .sf-menu .menu-item a .menu-title-text,
body #header-outer .sf-menu a,
body #header-outer .sf-menu a span,
body #header-outer .sf-menu .menu-title-text {
  text-decoration: none !important;
  border-bottom: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Kill ALL pseudo-element underlines */
body .sf-menu .menu-item a::before,
body .sf-menu .menu-item a::after,
body .sf-menu .menu-item a span::before,
body .sf-menu .menu-item a span::after,
body .sf-menu .menu-title-text::before,
body .sf-menu .menu-title-text::after,
body #header-outer .sf-menu a::before,
body #header-outer .sf-menu a::after,
body #header-outer .sf-menu .menu-title-text::before,
body #header-outer .sf-menu .menu-title-text::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* NOW add underline ONLY to current page's menu-title-text */
body .sf-menu .menu-item.current-menu-item .menu-title-text,
body .sf-menu .menu-item.current_page_item .menu-title-text,
body #header-outer .sf-menu .current-menu-item .menu-title-text,
body #header-outer .sf-menu .current_page_item .menu-title-text {
  position: relative !important;
  display: inline-block !important;
}

body .sf-menu .menu-item.current-menu-item .menu-title-text::after,
body .sf-menu .menu-item.current_page_item .menu-title-text::after,
body #header-outer .sf-menu .current-menu-item .menu-title-text::after,
body #header-outer .sf-menu .current_page_item .menu-title-text::after {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  bottom: -3px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: var(--rg-accent) !important;
  opacity: 1 !important;
}

/* ============================================
   GLOBAL BASE - Dark Mode Depth
   ============================================ */

html {
  background: var(--rg-dark);
  scroll-behavior: smooth;
}

body {
  /* Layered depth gradients - 2026 trend */
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(107, 33, 168, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(0, 102, 255, 0.04) 0%, transparent 30%),
    var(--rg-dark);
  background-attachment: fixed;
  color: var(--text-primary);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 102, 255, 0.4);
  color: #fff;
}

/* ============================================
   MICRO-ANIMATIONS - Scroll Reveal
   ============================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].visible,
[data-animate]:target {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grids */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-animate-stagger].visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-animate-stagger].visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger].visible > *:nth-child(3) { transition-delay: 0.15s; }
[data-animate-stagger].visible > *:nth-child(4) { transition-delay: 0.2s; }

[data-animate-stagger].visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   GLASSMORPHISM 2026 - Enhanced
   ============================================ */

.liquid-glass,
.glass-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.liquid-glass:hover,
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glass button style */
.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--glass-bg-solid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px var(--rg-primary-glow);
  transform: translateY(-2px);
}

/* Primary button with glow */
.btn-primary,
.nectar-button[data-color-override="default"] {
  background: var(--rg-primary) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  transition: all 0.3s var(--ease-out) !important;
}

.btn-primary:hover,
.nectar-button[data-color-override="default"]:hover {
  box-shadow: 0 0 30px var(--rg-primary-glow) !important;
  transform: translateY(-2px) !important;
}

/* ============================================
   HEADER - Glass on Scroll
   ============================================ */

#header-outer {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease !important;
}

#header-outer[data-transparent-header="true"].scrolled,
#header-outer.scrolled,
body.scrolled #header-outer {
  background: rgba(8, 8, 15, 0.85) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Nav link hover glow */
#header-outer .sf-menu > li > a:hover .menu-title-text {
  text-shadow: 0 0 20px var(--rg-primary-glow);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .liquid-glass {
    background: rgba(10, 10, 18, 0.95);
  }
}

/* ============================================
   CONTENT STRUCTURE
   ============================================ */

#ajax-content-wrap,
.container-wrap,
.container.main-content {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* Let particles show through content areas */
.wpb_row,
.vc_row,
.vc_row-fluid,
.row-bg-wrap,
.full-width-section,
.full-width-content,
#footer-outer,
.nectar-box-roll {
  background-color: transparent !important;
}

/* Keep row background images but transparent otherwise */
.row-bg-wrap { z-index: 0; }
.row_col_wrap_12, .wpb_column { position: relative; z-index: 2; }

/* Page fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.container-wrap {
  animation: fadeIn 0.5s var(--ease-out) forwards;
}

/* ============================================
   HERO SECTION - Responsive Padding
   ============================================ */

.container.main-content > .row > .wpb_row:first-child,
.container.main-content > .row > [id^="fws_"]:first-child {
  padding-top: clamp(60px, 8vh, 120px) !important;
}

@media (min-width: 1440px) {
  .container.main-content > .row > .wpb_row:first-child,
  .container.main-content > .row > [id^="fws_"]:first-child {
    padding-top: clamp(80px, 10vh, 140px) !important;
  }
}

@media (max-width: 767px) {
  .container.main-content > .row > .wpb_row:first-child,
  .container.main-content > .row > [id^="fws_"]:first-child {
    padding-top: clamp(50px, 7vh, 80px) !important;
  }
}

/* ============================================
   STICKY FOOTER
   ============================================ */

html, body { margin: 0 !important; padding: 0 !important; }

#ajax-content-wrap {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100vh - 126px) !important;
}

#ajax-content-wrap > .container-wrap {
  flex: 1 1 auto !important;
}

#ajax-content-wrap > footer.rg-footer-minimal {
  flex: 0 0 auto !important;
  margin-top: auto !important;
}

/* Slide-out menus - remove from flow */
#ajax-content-wrap > #slide-out-widget-area-bg,
#ajax-content-wrap > #slide-out-widget-area {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  flex: none !important;
}

/* ============================================
   HEADER - Clean Glass
   ============================================ */

#header-outer {
  transition: all 0.3s var(--ease-smooth) !important;
}

#header-outer[data-transparent-header="false"],
#header-outer.scrolled-down {
  background: rgba(10, 10, 18, 0.85) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Logo hover */
#header-outer #logo img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#header-outer #logo:hover img {
  transform: scale(1.02);
}

/* Nav links */
#header-outer .sf-menu > li > a {
  transition: color 0.2s ease;
}

#header-outer .sf-menu > li > a:hover {
  color: var(--rg-primary) !important;
}

/* ============================================
   FOOTER - Simple & Clean
   ============================================ */

.rg-footer-minimal {
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 24px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.rg-footer-minimal__logo-link {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.rg-footer-minimal__logo {
  width: 32px;
  height: auto;
  margin-bottom: 6px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.rg-footer-minimal__logo-link:hover .rg-footer-minimal__logo {
  opacity: 1;
}

.rg-footer-minimal__tagline { display: none; }

.rg-footer-minimal__partners {
  color: var(--text-muted);
  font-size: 9px;
  margin-bottom: 8px;
}

.rg-footer-minimal__partner-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rg-footer-minimal__partner-link:hover {
  color: var(--text-secondary);
}

/* Compliance badges - minimal inline style */
.rg-footer-minimal__badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.rg-footer-minimal__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rg-footer-minimal__badge:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.rg-footer-minimal__badge-icon {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.rg-footer-minimal__badge-text {
  font-size: 8px;
  opacity: 0.7;
  white-space: nowrap;
}

.rg-footer-minimal__divider { display: none; }

.rg-footer-minimal__legal {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.rg-footer-minimal__legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rg-footer-minimal__legal a:hover {
  color: var(--text-secondary);
}

/* ============================================
   EMAIL CTA - Bot-Proof Click-to-Reveal
   ============================================ */

.rg-email-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  user-select: none;
}

.rg-email-cta:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border-color: var(--rg-primary);
  box-shadow: 0 0 30px var(--rg-primary-glow), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.rg-email-cta__icon {
  font-size: 18px;
  opacity: 0.9;
}

.rg-email-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.rg-email-cta__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.rg-email-cta__value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Revealed state */
.rg-email-cta.revealed {
  background: linear-gradient(135deg, rgba(0,102,255,0.15) 0%, rgba(0,102,255,0.08) 100%);
  border-color: var(--rg-primary);
}

.rg-email-cta.revealed .rg-email-cta__value {
  color: var(--rg-accent);
}

/* ============================================
   GLASS CTA - Premium 2026 Design
   ============================================ */

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

.rg-glass-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 18px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: none;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

/* Animated gradient border */
.rg-glass-cta__border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,102,255,0.3) 50%, rgba(139,92,246,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderGlow 3s ease-in-out infinite;
}

/* Background glow */
.rg-glass-cta__glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 50%, rgba(0,102,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139,92,246,0.1) 0%, transparent 50%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: pulse 4s ease-in-out infinite;
}

/* Content container */
.rg-glass-cta__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

/* Icon styling */
.rg-glass-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0,102,255,0.2) 0%, rgba(139,92,246,0.15) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rg-glass-cta__icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

/* Text container */
.rg-glass-cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.rg-glass-cta__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.rg-glass-cta__action {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  transition: all 0.3s ease;
}

/* Arrow */
.rg-glass-cta__arrow {
  display: flex;
  align-items: center;
  margin-left: 8px;
  color: rgba(255,255,255,0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rg-glass-cta__arrow svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shimmer effect */
.rg-glass-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
}

/* Hover state */
.rg-glass-cta:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(0, 102, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rg-glass-cta:hover .rg-glass-cta__glow {
  opacity: 1;
}

.rg-glass-cta:hover .rg-glass-cta__border {
  background: linear-gradient(135deg, rgba(0,102,255,0.5) 0%, rgba(139,92,246,0.5) 50%, rgba(0,102,255,0.5) 100%);
}

.rg-glass-cta:hover .rg-glass-cta__icon {
  background: linear-gradient(135deg, rgba(0,102,255,0.35) 0%, rgba(139,92,246,0.3) 100%);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.rg-glass-cta:hover .rg-glass-cta__icon svg {
  transform: rotate(-10deg) scale(1.1);
}

.rg-glass-cta:hover .rg-glass-cta__label {
  color: rgba(255,255,255,0.7);
}

.rg-glass-cta:hover .rg-glass-cta__action {
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.rg-glass-cta:hover .rg-glass-cta__arrow {
  color: rgba(255,255,255,0.8);
  transform: translateX(4px);
}

.rg-glass-cta:hover .rg-glass-cta__arrow svg {
  transform: translateX(2px);
}

.rg-glass-cta:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

/* Active/pressed state */
.rg-glass-cta:active {
  transform: translateY(-2px) scale(0.98);
}

/* Revealed state after click */
.rg-glass-cta.revealed {
  background: linear-gradient(135deg, rgba(0,102,255,0.15) 0%, rgba(139,92,246,0.1) 100%);
}

.rg-glass-cta.revealed .rg-glass-cta__border {
  background: linear-gradient(135deg, rgba(0,102,255,0.6) 0%, rgba(139,92,246,0.6) 100%);
}

.rg-glass-cta.revealed .rg-glass-cta__action {
  color: var(--rg-accent);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .rg-glass-cta {
    padding: 14px 20px;
    width: 100%;
    justify-content: center;
  }

  .rg-glass-cta__icon {
    width: 38px;
    height: 38px;
  }

  .rg-glass-cta__action {
    font-size: 14px;
  }
}

/* ============================================
   PARTNER CARDS - Enhanced Glassmorphism 2026
   ============================================ */

.nectar-post-grid-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-lg) !important;
  overflow: visible !important;
  transition: all 0.4s var(--ease-out) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.nectar-post-grid-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 102, 255, 0.4) !important;
  box-shadow:
    0 20px 50px rgba(0, 102, 255, 0.2),
    0 0 40px rgba(0, 102, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.nectar-post-grid-item .inner,
.nectar-post-grid-item .nectar-post-grid-item-bg,
.nectar-post-grid-item .content {
  background: transparent !important;
  overflow: visible !important;
}

.nectar-post-grid-item,
.nectar-post-grid-item .inner,
.nectar-post-grid-item .nectar-post-grid-item-bg {
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

.nectar-post-grid-item-bg img {
  object-fit: contain !important;
  object-position: center !important;
}

.nectar-post-grid-wrap {
  position: relative;
  z-index: 5;
}

/* Partner Grid - Centering Fix */
.nectar-post-grid {
  justify-content: center !important;
  justify-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 16px !important;
}

/* Tablet - 2x2 grid, centered */
@media (max-width: 900px) and (min-width: 561px) {
  .nectar-post-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(200px, 280px)) !important;
    gap: 16px !important;
    justify-content: center !important;
  }

  .nectar-post-grid-item {
    width: 100% !important;
    max-width: 280px !important;
  }
}

/* Mobile portrait - single column, centered */
@media (max-width: 560px) {
  .nectar-post-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }

  .nectar-post-grid-item {
    width: 100% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Center containers on mobile */
  .main-content,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ============================================
   BUTTONS - 2026 Glass Style with Glow
   ============================================ */

.nectar-button,
a.nectar-button {
  background: linear-gradient(135deg, var(--rg-primary) 0%, #0044cc 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  transition: all 0.3s var(--ease-out) !important;
  box-shadow:
    0 4px 20px var(--rg-primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.nectar-button:hover,
a.nectar-button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow:
    0 8px 35px var(--rg-primary-glow),
    0 0 20px var(--rg-primary-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Secondary button */
a.nectar-button.see-through,
a.nectar-button[data-color-override="false"] {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none !important;
}

a.nectar-button.see-through:hover,
a.nectar-button[data-color-override="false"]:hover {
  background: var(--glass-highlight) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

p { line-height: 1.7; }

a {
  transition: color 0.2s ease;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--rg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 119, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 119, 255, 0.5);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rg-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   NO WEBGL FALLBACK
   ============================================ */

body.no-webgl {
  background: linear-gradient(135deg, var(--rg-dark) 0%, #0a1428 50%, var(--rg-purple) 100%);
  background-attachment: fixed;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .rg-footer-minimal {
    padding: 12px 16px 10px;
  }

  .rg-footer-minimal__logo { width: 28px; }
  .rg-footer-minimal__partners { font-size: 8px; }
  .rg-footer-minimal__badges { gap: 8px; }

  .rg-footer-minimal__badge {
    padding: 3px 6px;
  }

  .rg-footer-minimal__badge-icon { font-size: 9px; }
  .rg-footer-minimal__badge-text { font-size: 7px; }
  .rg-footer-minimal__legal { font-size: 9px; }
}

/* ============================================
   CUSTOM MOBILE MENU - Glass 2025-2026
   ============================================ */

/* Hide theme's mobile toggle */
@media (max-width: 999px) {
  .slide-out-widget-area-toggle.mobile-icon {
    display: none !important;
  }
  #header-outer nav {
    display: none !important;
  }
}

/* Hamburger Button - Glass Pill */
.rg-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

@media (max-width: 999px) {
  .rg-hamburger {
    display: flex;
  }
}

.rg-hamburger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--rg-primary);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

/* Three identical lines */
.rg-hamburger__line {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Hamburger to X animation */
.rg-hamburger.active .rg-hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.rg-hamburger.active .rg-hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.rg-hamburger.active .rg-hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu - Centered Glass Sheet */
.rg-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}

.rg-mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
}

/* Overlay - Deep blur */
.rg-mobile-menu__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rg-mobile-menu.open .rg-mobile-menu__overlay {
  opacity: 1;
}

/* Panel - Centered Glass Card */
.rg-mobile-menu__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.4),
    0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 24px;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rg-mobile-menu.open .rg-mobile-menu__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close Button - Hidden (tap outside to close) */
.rg-mobile-menu__close {
  display: none;
}

/* Navigation Links - Large touch targets */
.rg-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rg-mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 60px;
}

.rg-mobile-menu__link:hover,
.rg-mobile-menu__link:active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.25) 0%, rgba(0, 102, 255, 0.15) 100%);
  border-color: rgba(0, 102, 255, 0.4);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.2);
}

/* ============================================
   Footer Disclaimer - Regulatory Text (Subtle)
   ============================================ */
.rg-footer-disclaimer {
  display: block !important;
  visibility: visible !important;
  max-width: 700px;
  margin: 12px auto 0 !important;
  padding: 8px 20px 0 !important;
  border-top: none;
  text-align: center;
}

.rg-footer-disclaimer p {
  display: block !important;
  visibility: visible !important;
  font-size: 8px !important;
  line-height: 1.35 !important;
  color: rgba(255, 255, 255, 0.28) !important;
  margin: 0 0 3px 0 !important;
  letter-spacing: 0.1px;
}

.rg-footer-disclaimer p:last-child {
  margin-bottom: 0 !important;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.32) !important;
}

@media (max-width: 768px) {
  .rg-footer-disclaimer {
    padding: 6px 12px 0 !important;
  }
  .rg-footer-disclaimer p {
    font-size: 7px !important;
  }
}
