:root {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: rgba(255, 255, 255, 0.95);
  background-color: #000000;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #00B4FF;
  text-decoration: inherit;
}
a:hover {
  color: #64FF00;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #000000;
  overflow-x: hidden;
}

#root {
  width: 100%;
  min-height: 100vh;
}

/* Mobile-first — touch targets & readability (exclude compact nav/footer controls) */
button:not(.setgox-nav-btn):not(.setgox-footer-btn):not(.setgox-dashboard-tab),
.MuiButton-root:not(.setgox-nav-btn):not(.setgox-footer-btn):not(.setgox-dashboard-tab) {
  min-height: 44px;
}

/* Dashboard section tabs — compact pills, horizontal scroll */
.setgox-dashboard-tabs-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.setgox-dashboard-tabs {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding-inline: 12px;
}

.setgox-dashboard-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.setgox-navbar .setgox-dashboard-tab {
  min-height: 32px !important;
  max-height: 32px !important;
  min-width: unset !important;
  padding: 0 12px !important;
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
  border-radius: 999px !important;
  scroll-snap-align: center;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.setgox-navbar .setgox-dashboard-tab:active {
  transform: scale(0.97);
}

/* Navbar — compact aligned controls */
.setgox-navbar .setgox-nav-btn {
  min-height: 34px !important;
  max-height: 34px;
}

.setgox-navbar .setgox-nav-icon-btn {
  min-height: 28px !important;
  min-width: 28px !important;
}

.setgox-navbar .MuiToolbar-root {
  min-height: unset !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.setgox-footer .setgox-footer-btn {
  min-height: unset !important;
}

.setgox-footer button {
  min-height: unset !important;
}

.MuiTypography-root {
  overflow-wrap: break-word;
  word-break: normal;
}

* {
  box-sizing: border-box;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
}

button {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: rgba(18, 18, 18, 0.95);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

button:hover {
  border-color: rgba(0, 180, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.2);
}

button:focus,
button:focus-visible {
  outline: 2px solid rgba(100, 255, 0, 0.5);
  outline-offset: 2px;
}

/* SetGoX brand scrollbar inside mobile shell */
.setgox-mobile-shell ::-webkit-scrollbar {
  width: 4px;
}
.setgox-mobile-shell ::-webkit-scrollbar-track {
  background: #0a0a0a;
}
.setgox-mobile-shell ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00B4FF, #64FF00);
  border-radius: 4px;
}

/* Force all MUI containers to stay within mobile shell */
.setgox-mobile-shell .MuiContainer-root {
  max-width: 480px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.setgox-mobile-shell .MuiGrid-container {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Force mobile-friendly grids inside shell regardless of viewport width */
.setgox-mobile-shell .setgox-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* MUI Grid: cap at 2 columns inside mobile shell on large viewports */
.setgox-mobile-shell .MuiGrid-container > .MuiGrid-item {
  max-width: 50% !important;
  flex-basis: 50% !important;
  flex-grow: 0 !important;
}

.setgox-mobile-shell .MuiGrid-container > .MuiGrid-item[class*="MuiGrid-grid-xs-12"],
.setgox-mobile-shell .MuiGrid-container > .MuiGrid-item[class*="grid-xs-12"] {
  max-width: 100% !important;
  flex-basis: 100% !important;
}

/* ── SetGoX animation keyframes ── */
@keyframes setgoxShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

@keyframes setgoxGradientSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes setgoxPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(100, 255, 0, 0.5); }
  50% { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 4px rgba(100, 255, 0, 0); }
}

@keyframes setgoxCardGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

@keyframes setgoxShimmerBg {
  0% { transform: translateX(-100%) rotate(15deg); }
  100% { transform: translateX(200%) rotate(15deg); }
}

.setgox-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64FF00;
  animation: setgoxPulseDot 1.8s ease-in-out infinite;
}

.setgox-card-glow {
  animation: setgoxCardGlow 4s ease-in-out infinite;
}

.setgox-shimmer-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: setgoxShimmerBg 4s ease-in-out infinite;
}

@keyframes setgoxLogoRipple {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.setgox-logo-wave-wrap::before,
.setgox-logo-wave-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 1px solid rgba(0, 180, 255, 0.35);
  animation: setgoxLogoRipple 2.8s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

.setgox-logo-wave-wrap::after {
  animation-delay: 1.4s;
  border-color: rgba(100, 255, 0, 0.28);
}

.setgox-logo-wave-wrap .setgox-logo-wave-img {
  position: relative;
  z-index: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .setgox-pulse-dot,
  .setgox-card-glow,
  .setgox-shimmer-bg::after,
  .setgox-logo-wave-wrap::before,
  .setgox-logo-wave-wrap::after {
    animation: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Web3Modal Trust Wallet Priority Styles */

/* Trust Wallet Priority - Make it stand out */
w3m-modal wui-wallet-button[data-wallet-id="4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0"] {
  order: -999 !important;
  border: 2px solid #00B4FF !important;
  background: linear-gradient(135deg, #00B4FF 0%, #007FFF 100%) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(0, 180, 255, 0.4) !important;
  margin-bottom: 8px !important;
}

/* Trust Wallet text styling */
w3m-modal wui-wallet-button[data-wallet-id="4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0"] wui-text {
  color: white !important;
  font-weight: bold !important;
}

/* Mobile specific - Trust Wallet first */
@media (max-width: 768px) {
  w3m-modal wui-wallet-button[data-wallet-id="4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0"] {
    order: -999 !important;
    transform: scale(1.1) !important;
    margin-bottom: 12px !important;
  }
}


