/* ==========================================================================
   METAEDGE UNIVERSAL FIXED HEADER, LANGUAGE SWITCHER & RIGHT BURGER DRAWER
   ========================================================================== */
:root {
  --gold-primary: #D4AF37;
  --gold-accent: #FFD700;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --header-height: 64px;
}

/* Push content below fixed header */
body {
  padding-top: var(--header-height) !important;
}

/* Universal Fixed Navbar */
.metaedge-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--header-height) !important;
  z-index: 99990 !important;
  background: rgba(10, 12, 18, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.08) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.metaedge-navbar .nav-left {
  display: flex;
  align-items: center;
}

.metaedge-navbar .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.metaedge-navbar .brand-logo-img {
  height: 32px;
  width: auto;
}

.metaedge-navbar .brand-text {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metaedge-navbar .brand-depin-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #D4AF37;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Center area: Dynamic Live Users & Total Site Visitors */
.metaedge-navbar .nav-center-clean {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-stats-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.live-users-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 12px;
  border-radius: 24px;
  font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace, sans-serif;
  font-size: 12px;
  color: #e2e8f0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.12);
  transition: all 0.3s ease;
  user-select: none;
}

.live-users-pill:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.22);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 8px #10B981;
  animation: liveUserPulse 1.8s infinite ease-in-out;
}

@keyframes liveUserPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    transform: scale(1.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(0.95);
  }
}

.live-users-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-users-count {
  color: #10B981;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Visitors Pill: Total Site Visitors (Base 10,435,677 + Real) */
.visitors-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 5px 12px;
  border-radius: 24px;
  font-family: 'JetBrains Mono', 'Plus Jakarta Sans', monospace, sans-serif;
  font-size: 12px;
  color: #e2e8f0;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.12);
  transition: all 0.3s ease;
  user-select: none;
}

.visitors-pill:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
}

.visitors-label {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.visitors-count {
  color: #FFD700;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Media queries for stats responsiveness */
@media (max-width: 900px) {
  .live-users-label,
  .visitors-label {
    display: none;
  }
  .header-stats-group {
    gap: 6px;
  }
  .live-users-pill,
  .visitors-pill {
    padding: 4px 8px;
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  .visitors-pill {
    display: none; /* Visible in drawer on mobile to keep fixed header sleek */
  }
  .live-users-pill {
    padding: 4px 9px;
    gap: 6px;
  }
  .live-users-count {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .metaedge-navbar {
    padding: 0 10px !important;
  }
  .live-users-pill {
    padding: 3px 7px;
  }
  .live-users-count {
    font-size: 11px;
  }
  .metaedge-navbar .brand-depin-badge {
    display: none;
  }
}

/* Right Area: Language Switcher Dropdown + Burger Menu Button */
.metaedge-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header DApp Web3 Primary Link - Effetto Pulsazione High-Impact */
.nav-dapp-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22) 0%, rgba(100, 45, 252, 0.4) 100%);
  border: 1.5px solid #00f0ff;
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 7px 15px;
  border-radius: 10px;
  position: relative;
  overflow: visible;
  white-space: nowrap;
  animation: dappButtonPulse 1.9s infinite cubic-bezier(0.4, 0, 0.6, 1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.45), inset 0 0 10px rgba(0, 240, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

@keyframes dappButtonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.45), 0 0 0 0 rgba(0, 240, 255, 0.65);
    border-color: rgba(0, 240, 255, 0.85);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(0, 240, 255, 0.85), 0 0 0 6px rgba(0, 240, 255, 0.18), 0 0 35px rgba(100, 45, 252, 0.55);
    border-color: #00f0ff;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.45), 0 0 0 0 rgba(0, 240, 255, 0);
    border-color: rgba(0, 240, 255, 0.85);
  }
}

.nav-dapp-header-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #642DFC 100%);
  color: #07090e !important;
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.95), 0 0 50px rgba(100, 45, 252, 0.7);
  border-color: #ffffff;
}

.nav-dapp-header-btn:active {
  transform: scale(0.97);
}

.nav-dapp-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00f0ff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00f0ff;
  animation: liveUserPulse 1.2s infinite ease-in-out;
}

.nav-dapp-badge-tag {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #07090e;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: 2px;
  display: inline-block;
}

@media (max-width: 580px) {
  .nav-dapp-header-btn span.btn-label-long {
    display: none;
  }
  .nav-dapp-header-btn {
    padding: 6px 11px;
    font-size: 11.5px;
    gap: 6px;
  }
}

/* Header Language Switcher Dropdown */
.lang-switch-select {
  background: rgba(14, 18, 30, 0.95);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  padding: 7px 28px 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' 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-repeat: no-repeat;
  background-position: right 9px center;
  transition: all 0.2s ease;
}

.lang-switch-select:hover,
.lang-switch-select:focus {
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.lang-switch-select option {
  background: #0c101d;
  color: #ffffff;
  padding: 8px;
}

/* Burger Button */
.metaedge-navbar .burger-btn {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 99995;
  padding: 0;
}

.metaedge-navbar .burger-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.metaedge-navbar .burger-line {
  width: 20px;
  height: 2px;
  background: #D4AF37;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.metaedge-navbar .burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.metaedge-navbar .burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.metaedge-navbar .burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.mega-menu-overlay {
  position: fixed !important;
  top: 64px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  z-index: 99991 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

.mega-menu-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Slide-in Drawer from Right */
.mega-menu-panel {
  position: fixed !important;
  top: 64px !important;
  right: 0 !important;
  width: min(420px, 92vw) !important;
  height: calc(100vh - 64px) !important;
  background: #0b0e17 !important;
  border-left: 1px solid rgba(212, 175, 55, 0.35) !important;
  z-index: 99992 !important;
  overflow-y: auto !important;
  transform: translateX(100%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s !important;
  padding: 24px 24px 44px !important;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.7) !important;
  box-sizing: border-box !important;
}

.mega-menu-panel.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.menu-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D4AF37;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-section-title:first-child {
  margin-top: 0;
}

.menu-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid transparent;
}

.menu-nav-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  color: #FFD700;
  transform: translateX(4px);
}

.menu-nav-item .menu-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-nav-item .menu-desc {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  margin-top: 1px;
}

.menu-nav-item .menu-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.menu-cta-row {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-menu-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #D4AF37 50%, #fbbf24 100%);
  color: #0b0d14 !important;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
}

.btn-menu-gold:hover {
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

/* Gold SVG Icon Standards */
.gold-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  color: #D4AF37 !important;
  fill: none;
  stroke: #D4AF37 !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.gold-icon-fill {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  color: #D4AF37 !important;
  fill: #D4AF37 !important;
  stroke: none;
  flex-shrink: 0;
}

/* ==========================================================================
   METAEDGE UNIVERSAL MOBILE-FIRST RESPONSIVE SHELL ENGINE
   Guarantees 100% Viewport Containment ("dentro al guscio")
   Prevents any element from overflowing horizontally on any mobile device.
   ========================================================================== */

/* 1. Strict Root & Body Shell Guardrails */
html {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100% !important;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit !important;
}

body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: var(--header-height, 64px) !important;
  -webkit-font-smoothing: antialiased;
}

/* 2. Media & Canvas Containment */
img, video, canvas, iframe, embed, object {
  max-width: 100% !important;
  height: auto !important;
}

svg {
  max-width: 100%;
}

/* 3. Text, Pre & Code Overflow Prevention */
h1, h2, h3, h4, h5, h6, p, span, a, li {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

pre, code, kbd, samp {
  white-space: pre-wrap !important;
  word-break: break-all !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
}

/* 4. Inputs, Buttons & Forms Containment */
input, select, textarea, button, .btn {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 5. Decorative Glows & Background Lights Containment */
.hero-glow-bg, .bg-glow-1, .bg-glow-2, .ambient-glow-1, .ambient-glow-2,
[class*="glow"], [class*="radial-bg"], [class*="ambient"] {
  max-width: 100vw !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 6. Universal Table & Marquee Responsive Wrapper */
table, .comp-table {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.table-container, .table-responsive, .table-wrap, .comp-table-wrap,
div:has(> table) {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Infinite Tickers and Marquees Containment */
.ticker-strip, .live-ticker, .ticker-bar, .ticker-wrap,
.ticker-marquee-box, .ticker-container, .ticker-scroll,
.ticker-strip-inner, #tickerContent {
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* 7. Tablet & Mobile Responsive Layer (<= 992px & <= 768px) */
@media (max-width: 992px) {
  .container, main, section, .section, .hero-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 768px) {
  /* Containers strictly inside shell */
  .container, main, section, .section, .hero-section,
  .view-container, .simulator-container, .crypto-wallet-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* All Grid Layouts Collapse to Single Column */
  .grid, [class*="grid-"], .grid-2, .grid-2col, .grid-3, .grid-4,
  .band-grid, .steps-grid, .usecase-ribbon, .download-grid-actions,
  .download-btns-grid, .footer-content-grid, .footer-columns,
  .webinar-chapters-grid, .product-cards-grid, .plan-selector-grid,
  .quick-calc-tiers-selector, .quick-calc-metrics-grid, .pricing-grid,
  .pricing-grid-4, .canonical-plans-grid, .catalog-grid-3, .plans-grid,
  .kpi-grid, .regions-grid, .sandbox-grid, .security-grid, .value-grid,
  .wallet-hero-grid, .charts-grid-2x2, .node-stats-grid, .crypto-form-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
  }

  .visitors-pill {
    display: none !important;
  }
  .hud-right-actions {
    gap: 6px !important;
  }

  /* All Cards within Grids Fit 100% */
  .card, .plan-card, .pricing-card, .kpi-card, .feature-card,
  .auth-card, .converter-card, .crypto-summary-card, .device-bind-card,
  .faq-accordion-box, .quick-calc-card, .sim-result-card, .wallet-stat-card,
  .webinar-theater-box, .region-card, .step-box, .module-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Flex Rows Wrap Gracefully */
  .row, .flex-row, .actions-row, .card-actions, .btn-group,
  .s-row, .summary-row, .stream-row, .telemetry-row, .user-info-row,
  .user-ref-badge-row, .converter-row, .quick-calc-actions-row,
  .rank-pills-row, .menu-cta-row, .tabs-nav {
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }

  /* Hero Section Mobile-First Adaptations */
  .hero-section {
    padding: 30px 14px 20px !important;
  }

  .hero-title {
    font-size: clamp(26px, 7.5vw, 38px) !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    margin-bottom: 16px !important;
  }

  .hero-subtitle {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 24px !important;
  }

  /* Hero Buttons Stack Vertically & Touch-Friendly */
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    padding: 0 !important;
    margin-bottom: 28px !important;
  }

  .hero-buttons .btn,
  .hero-buttons a {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  /* Modals on Mobile */
  .crypto-modal-box, .modal-box, .modal-content {
    width: 94% !important;
    max-width: 94% !important;
    margin: 20px auto !important;
    padding: 20px 16px !important;
  }
}

/* 8. Ultra-Compact Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 58px;
  }

  body {
    padding-top: 58px !important;
  }

  .metaedge-navbar {
    height: 58px !important;
    padding: 0 10px !important;
  }

  .metaedge-navbar .brand-logo-img {
    height: 26px !important;
  }

  .metaedge-navbar .brand-text {
    font-size: 15px !important;
  }

  .metaedge-navbar .brand-depin-badge {
    display: none !important;
  }

  .header-stats-group {
    gap: 5px !important;
  }

  .live-users-pill {
    padding: 3px 7px !important;
    font-size: 11px !important;
    gap: 5px !important;
  }

  .live-users-label {
    display: none !important;
  }

  .live-users-count {
    font-size: 11.5px !important;
  }

  .visitors-pill {
    display: none !important; /* Fully visible in drawer on small phones */
  }

  .lang-switch-select {
    padding: 5px 22px 5px 7px !important;
    font-size: 11px !important;
    max-width: 76px !important;
    background-position: right 6px center !important;
  }

  .metaedge-navbar .burger-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
  }

  .mega-menu-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    top: 58px !important;
    height: calc(100vh - 58px) !important;
    padding: 16px 14px 40px !important;
  }

  .mega-menu-overlay {
    top: 58px !important;
  }

  /* Typography scale on phones */
  h1 { font-size: clamp(24px, 7vw, 32px) !important; }
  h2 { font-size: clamp(20px, 6vw, 26px) !important; }
  h3 { font-size: clamp(17px, 5vw, 21px) !important; }

  /* Compact section paddings */
  section, .section, .hero-section {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}

/* Background glows containment */
.bg-glow-1, .bg-glow-2, .ambient-glow-1, .ambient-glow-2,
[class*="bg-glow"], [class*="ambient-glow"], [class*="radial-glow"] {
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Network Map HUD Mobile Adaptation */
@media (max-width: 900px) {
  .top-hud {
    height: 58px !important;
    padding: 0 10px !important;
  }
  .top-hud .brand-info p {
    display: none !important;
  }
  .hud-controls-center {
    position: fixed !important;
    bottom: 12px !important;
    left: 8px !important;
    right: 8px !important;
    transform: none !important;
    z-index: 99980 !important;
    background: rgba(6, 9, 16, 0.95) !important;
    padding: 6px 8px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
    max-width: calc(100vw - 16px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
  .hud-controls-center .mode-switch-btn {
    padding: 4px 6px !important;
    font-size: 9.5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .hud-controls-center .game-action-btn {
    padding: 4px 6px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hud-controls-center .audio-toggle-btn {
    padding: 4px 6px !important;
    flex-shrink: 0 !important;
  }
}

/* ==========================================================================
   SUPER WOW VISUAL NEON SUITE & MATRIX WATERMARK LAYER
   ========================================================================== */

/* 1. Matrix Watermark Background Canvas (Ascending Stream) */
#metaedge-matrix-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.16 !important; /* Elegant watermark semi-transparency */
  mix-blend-mode: screen !important;
  transition: opacity 0.5s ease-in-out !important;
}

/* Ensure foreground content and cards sit crisply above Matrix watermark */
main, section, .section, .hero-section, .container, .wrap, .wrapper,
.card, .plan-card, .pricing-card, .kpi-card, .feature-card,
.dashboard-container, .table-container, .metaedge-navbar,
.mega-menu-panel, .mega-menu-overlay, footer {
  position: relative;
  z-index: 1;
}

/* 2. Cyber Neon Glassmorphic Cards */
.card, .plan-card, .pricing-card, .kpi-card, .feature-card,
.auth-card, .converter-card, .crypto-summary-card, .device-bind-card,
.faq-accordion-box, .quick-calc-card, .sim-result-card, .wallet-stat-card,
.webinar-theater-box, .region-card, .step-box, .module-card {
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55),
              0 0 15px rgba(212, 175, 55, 0.09),
              inset 0 0 15px rgba(212, 175, 55, 0.02) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover, .plan-card:hover, .pricing-card:hover, .kpi-card:hover,
.feature-card:hover, .converter-card:hover, .step-box:hover,
.module-card:hover, .quick-calc-card:hover {
  border-color: rgba(212, 175, 55, 0.75) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7),
              0 0 25px rgba(212, 175, 55, 0.35),
              0 0 45px rgba(80, 192, 255, 0.15),
              inset 0 0 20px rgba(212, 175, 55, 0.06) !important;
  transform: translateY(-2.5px) !important;
}

/* ==========================================================================
   METAEDGE GLOBAL UNIFIED BUTTON DESIGN SYSTEM
   Standardizzazione Unica e Coerente di TUTTI i pulsanti di tutto il sito
   ========================================================================== */

/* 1. Base Standard Geometry & Micro-Interactions (Universal Standard) */
button:not(.burger-btn):not(.btn-close-panel):not(.metaedge-floating-lang-btn):not(#metaedgeFloatingLangBtn),
.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-gold,
.btn-action,
.btn-neon,
.btn-gradient,
.cta-button,
.cta-btn,
.nav-btn,
.dock-btn,
.dock-pill,
.dock-btn-ai-route,
.flow-hud-btn,
.flow-burst-btn,
.calc-btn,
.hero-map-cta,
.tier-btn,
.plan-cta,
.sim-calc-btn,
.res-btn,
.dash-btn,
.panel-action-btn,
.btn-node-action,
.btn-node-outline,
.game-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  line-height: 1 !important;
  border-radius: 12px !important; /* Unified Standard Form-Factor */
  cursor: pointer !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  user-select: none !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Floating European Language Trigger (Always Fixed, Never Relative) */
.metaedge-floating-lang-btn,
#metaedgeFloatingLangBtn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
  z-index: 99990 !important;
  overflow: visible !important;
}

/* Micro-press response on all buttons */
button:not(.burger-btn):active,
.btn:active,
.dock-btn:active,
.dock-pill:active,
.cta-button:active,
.flow-hud-btn:active {
  transform: scale(0.97) !important;
}

/* Standardized Icon Alignment */
button svg,
.btn svg,
.dock-btn svg,
.dock-pill svg,
.flow-hud-btn svg,
.panel-action-btn svg,
.cta-button svg,
.gold-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  stroke-width: 2.2 !important;
  vertical-align: middle !important;
}

/* 2. Tier 1: Primary Neon Button (Electric Cyan / Purple Cyber Gradient) */
.btn-primary,
.btn-gradient,
.cta-primary,
.flow-burst-btn,
.hero-map-cta,
.btn-neon,
.btn-node-action,
.dock-btn-ai-route {
  background: linear-gradient(135deg, #642DFC 0%, #3b82f6 50%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(80, 192, 255, 0.7) !important;
  box-shadow: 0 4px 18px rgba(100, 45, 252, 0.38), 0 0 14px rgba(6, 182, 212, 0.28) !important;
}

.btn-primary:hover,
.btn-gradient:hover,
.cta-primary:hover,
.flow-burst-btn:hover,
.hero-map-cta:hover,
.btn-neon:hover,
.btn-node-action:hover,
.dock-btn-ai-route:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #0891b2 100%) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(100, 45, 252, 0.6), 0 0 25px rgba(80, 192, 255, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.25) !important;
}

/* 3. Tier 2: Gold VIP & Financial Action Button (High-Converting CTAs) */
.btn-gold,
.btn-accent,
.cta-gold,
.cta-button,
.plan-cta.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 60%, #fef08a 100%) !important;
  color: #060913 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), 0 0 14px rgba(251, 191, 36, 0.3) !important;
}

.btn-gold:hover,
.btn-accent:hover,
.cta-gold:hover,
.cta-button:hover,
.plan-cta.gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 60%, #fde047 100%) !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.65), 0 0 28px rgba(254, 240, 138, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.4) !important;
}

/* 4. Tier 3: High-Tech Cyber Glass (Outline / Secondary / Command Docks / Tool HUDs) */
.btn-secondary,
.btn-outline,
.btn-glass,
.dock-btn,
.dock-pill,
.flow-hud-btn,
.nav-btn,
.calc-btn,
.panel-action-btn,
.btn-node-outline,
.dash-btn,
.dock-btn-icon {
  background: rgba(13, 18, 32, 0.84) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(80, 192, 255, 0.35) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-glass:hover,
.dock-btn:hover,
.dock-pill:hover,
.flow-hud-btn:hover,
.nav-btn:hover,
.calc-btn:hover,
.panel-action-btn:hover,
.btn-node-outline:hover,
.dash-btn:hover,
.dock-btn-icon:hover {
  background: rgba(80, 192, 255, 0.18) !important;
  border-color: #50C0FF !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 20px rgba(80, 192, 255, 0.45) !important;
}

/* Active / Selected state for buttons */
.dock-btn.active,
.dock-pill.active,
.flow-hud-btn.active,
.dock-btn-icon.active,
.btn.active {
  background: linear-gradient(135deg, rgba(100, 45, 252, 0.55) 0%, rgba(80, 192, 255, 0.45) 100%) !important;
  border-color: #50C0FF !important;
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(80, 192, 255, 0.55), inset 0 0 10px rgba(80, 192, 255, 0.25) !important;
}

/* Standardized Sheen Light Ray Sweep on Primary & Gold CTAs */
@keyframes unifiedSheenSweep {
  0% { left: -140%; opacity: 0; }
  20% { opacity: 0.45; }
  45% { left: 180%; opacity: 0; }
  100% { left: 180%; opacity: 0; }
}

.btn-primary::after,
.btn-gold::after,
.cta-button::after,
.cta-primary::after,
.flow-burst-btn::after,
.hero-map-cta::after,
.dock-btn-ai-route::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -140% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  transform: skewX(-24deg) !important;
  pointer-events: none !important;
  animation: unifiedSheenSweep 5s infinite ease-in-out !important;
}

/* 4. Neon Cyber Typography Glow */
h1, .hero-title {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.35),
               0 0 40px rgba(80, 192, 255, 0.18) !important;
}

.section-title {
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}

/* 5. Neon Live Pulse Halos */
.live-pulse-dot {
  box-shadow: 0 0 10px #10b981,
              0 0 20px #10b981,
              0 0 35px rgba(16, 185, 129, 0.8) !important;
  animation: neonLivePulse 1.8s infinite ease-in-out !important;
}

@keyframes neonLivePulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #10b981, 0 0 25px #10b981, 0 0 45px rgba(16, 185, 129, 0.9); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-users-pill {
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25),
              inset 0 0 10px rgba(16, 185, 129, 0.06) !important;
}

.visitors-pill {
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25),
              inset 0 0 10px rgba(212, 175, 55, 0.06) !important;
}

/* 6. Neon Gold Hairline Trims */
.metaedge-navbar {
  border-bottom: 1px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.75),
              0 1px 18px rgba(212, 175, 55, 0.25) !important;
}

.mega-menu-panel {
  border-left: 1px solid rgba(212, 175, 55, 0.45) !important;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85),
              -2px 0 20px rgba(212, 175, 55, 0.22) !important;
}




/* ==========================================================================
   PERMANENT SUPPRESSION OF GOOGLE TRANSLATE BANNERS, BARS & FLOATING OVERLAYS
   ========================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
.VIpgJd-ZVi9od-ORHb-OJyqTe,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWneB-L7eAZc,
#google_translate_element,
div[id^="goog-gt-"],
iframe[id^=":"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -99999 !important;
}

body {
  top: 0px !important;
  position: static !important;
  transform: none !important;
}
