:root {
  --anim-fast: 0.18s;
  --anim: 0.36s;
  --anim-slow: 0.7s;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --brand-rgb: 108, 92, 231;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}
@keyframes slideInR {
  0% {
    opacity: 0;
    transform: translate3d(10px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes softPop {
  0% {
    transform: scale(0.98) rotate(0.001deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 rgba(var(--brand-rgb), 0);
  }
  50% {
    box-shadow: 0 8px 24px rgba(var(--brand-rgb), 0.28);
  }
  to {
    box-shadow: 0 0 rgba(var(--brand-rgb), 0);
  }
}

/* Futuristic Animations */
@keyframes neonPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4),
                0 0 40px rgba(0, 245, 255, 0.3),
                0 0 60px rgba(0, 245, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.6),
                0 0 60px rgba(0, 245, 255, 0.4),
                0 0 90px rgba(0, 245, 255, 0.3);
  }
}

@keyframes hologram {
  0% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-2px) rotateX(2deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
}

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

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

@keyframes matrixRain {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}
@keyframes subtleShimmer {
  0% {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}
.fade-in {
  animation: fadeIn var(--anim) var(--ease-std) both;
  will-change: opacity;
}
.fade-in-up {
  animation: fadeInUp var(--anim) var(--ease-out) both;
  will-change: transform, opacity;
}
.fade-in-down {
  animation: fadeInDown var(--anim) var(--ease-out) both;
  will-change: transform, opacity;
}
.slide-in-r {
  animation: slideInR var(--anim) var(--ease-out) both;
  will-change: transform, opacity;
}
.zoom-in {
  animation: zoomIn var(--anim) var(--ease-out) both;
  will-change: transform, opacity;
}
.pop {
  animation: softPop 0.25s var(--ease-out) both;
  will-change: transform, opacity;
}
.glow {
  animation: glowPulse 2s ease-in-out infinite;
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #ffffff0f 25%,
    #ffffff24 37%,
    #ffffff0f 63%
  );
  background-size: 200% 100%;
  animation: subtleShimmer 1.2s linear infinite;
  border-radius: 12px;
}
.skel-line {
  height: 14px;
}
.skel-box {
  background-clip: padding-box;
}
.hover-lift {
  transition: transform var(--anim-fast) var(--ease-std),
    box-shadow var(--anim-fast) var(--ease-std);
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px #00000040, 0 0 0 1px #ffffff0f inset;
}
.pressable {
  transition: transform 0.12s var(--ease-std);
}
.pressable:active {
  transform: translateY(1px) scale(0.995);
}
.dur-fast {
  animation-duration: var(--anim-fast) !important;
}
.dur {
  animation-duration: var(--anim) !important;
}
.dur-slow {
  animation-duration: var(--anim-slow) !important;
}
.delay-0 {
  animation-delay: 0ms !important;
}
.delay-100 {
  animation-delay: 0.1s !important;
}
.delay-200 {
  animation-delay: 0.2s !important;
}
.delay-300 {
  animation-delay: 0.3s !important;
}
.once {
  animation-iteration-count: 1 !important;
}
.loop {
  animation-iteration-count: infinite !important;
}
.linear {
  animation-timing-function: linear !important;
}
.stagger > * {
  --stagger: 70ms;
  animation-delay: calc(var(--stagger) * var(--i, 0));
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
:root {
  /* Futuristic Color Palette */
  --bg-dark: #0a0e1a;
  --bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 50%, #0f1b2a 100%);
  --surface-1: rgba(255, 255, 255, 0.15);
  --surface-2: rgba(255, 255, 255, 0.10);
  --surface-3: rgba(255, 255, 255, 0.08);
  --txt: #f0f8ff;
  --muted: #a8b3c8;
  --muted-2: #8a95b0;
  
  /* Neon Accent Colors */
  --accent1: #00f5ff;
  --accent2: #0099ff;
  --accent3: #6c5ce7;
  --accent4: #a855f7;
  --accent5: #ff6b9d;
  
  --gold: #ffd700;
  --neon-green: #00ff88;
  --neon-pink: #ff0080;
  --neon-blue: #0080ff;
  --neon-purple: #8000ff;
  
  --success: #00ff88;
  --warning: #ffaa00;
  --error: #ff4757;
  --info: #00a8ff;
  
  --accent: var(--accent1);
  --accent-hover: #00d4ff;
  --border: 1px solid rgba(0, 245, 255, 0.3);
  --border-glow: 1px solid rgba(0, 245, 255, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 245, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 245, 255, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 245, 255, 0.4);
  
  /* Enhanced Rounded Corners */
  --r-card: 24px;
  --r-btn: 18px;
  --r-pill: 999px;
  --r-input: 20px;
  
  --space: 20px;
  --container: 1200px;
  --bottom-nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  --font-display: "Bitcount Grid Single", "Chakra Petch", system-ui, sans-serif;
  
  /* Enhanced Glow Effects */
  --glow-cyan: 0 0 0 1px rgba(0, 245, 255, 0.4),
    0 0 40px rgba(0, 245, 255, 0.3);
  --glow-purple: 0 0 0 1px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(168, 85, 247, 0.3);
  --glow-pink: 0 0 0 1px rgba(255, 107, 157, 0.4),
    0 0 40px rgba(255, 107, 157, 0.3);
  --glow-amber: 0 0 0 1px rgba(255, 170, 0, 0.4),
    0 0 40px rgba(255, 170, 0, 0.3);
  
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.12s;
  --t-med: 0.18s;
  --t-slow: 0.35s;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  background: var(--bg-gradient);
  color: var(--txt);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.45;
  position: relative;
  overflow-x: hidden;
}

/* Futuristic Background Effects */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 107, 157, 0.08) 0%, transparent 50%);
  animation: aurora 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(0, 245, 255, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(168, 85, 247, 0.03) 50%, transparent 70%);
  animation: dataStream 15s linear infinite;
  pointer-events: none;
  z-index: -1;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}
.muted {
  color: var(--muted);
}
.row {
  display: flex;
  gap: var(--space);
  align-items: center;
}
.grid {
  display: grid;
  gap: var(--space);
}
.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.stack {
  display: grid;
  gap: 12px;
}
.stack-lg {
  display: grid;
  gap: 16px;
}
.hidden {
  display: none !important;
}
.center {
  display: grid;
  place-items: center;
}
.w100 {
  width: 100%;
}
.mt {
  margin-top: var(--space);
}
.mb {
  margin-bottom: var(--space);
}
.vstack {
  display: grid;
  gap: var(--space);
}
.vstack-lg {
  display: grid;
  gap: calc(var(--space) * 1.25);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1,
h2,
h3,
.btn,
.kpi-value {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0.2rem 0 0.6rem;
}
h1 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.2px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
}
.price,
.kpi-value {
  font-variant-numeric: tabular-nums;
}
.card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%);
  border: var(--border-glow);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--accent1) 0%,
    var(--accent3) 50%,
    var(--accent5) 100%);
  border-radius: var(--r-card) var(--r-card) 0 0;
  animation: neonPulse 3s ease-in-out infinite;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(0, 245, 255, 0.1) 50%,
    transparent 100%);
  transition: left 0.8s var(--ease);
}

.card:hover::after {
  left: 100%;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  border-color: rgba(0, 245, 255, 0.6);
}

.card:hover::before {
  animation: neonPulse 1.5s ease-in-out infinite;
}

@media (hover: none) {
  .card:hover {
    transform: none;
  }
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, 
    rgba(10, 14, 26, 0.95) 0%,
    rgba(26, 31, 58, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent1);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.logo {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.6));
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 12px 16px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(0, 245, 255, 0.2) 50%,
    transparent 100%);
  transition: left var(--t-med) var(--ease);
}

.nav a:hover::before {
  left: 100%;
}

.nav a:hover {
  color: var(--txt);
  background: rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

.nav a.active,
[aria-current="page"] {
  color: var(--accent1);
  background: linear-gradient(135deg, 
    rgba(0, 245, 255, 0.2) 0%,
    rgba(168, 85, 247, 0.1) 100%);
  border-color: var(--accent1);
  box-shadow: var(--glow-cyan);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
}
@media (max-width: 760px) {
  .topbar {
    display: none;
  }
  .container {
    padding-bottom: max(calc(var(--bottom-nav-h) + 16px), var(--safe-bottom));
  }
}
.btn,
.btn-primary,
.btn-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, 
    var(--accent1) 0%,
    var(--accent2) 50%,
    var(--accent3) 100%);
  color: #0a0e1a;
  border: 0;
  border-radius: var(--r-btn);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 16px;
  min-height: 48px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before,
.btn-primary::before,
.btn-connect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  transition: left 0.6s var(--ease);
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-connect:hover::before {
  left: 100%;
}

.btn:hover,
.btn-primary:hover,
.btn-connect:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  filter: brightness(1.1);
}

.btn:active,
.btn-primary:active,
.btn-connect:active {
  transform: translateY(0) scale(0.98);
}
.btn.connected,
.btn-primary.connected,
.btn-connect.connected {
  filter: saturate(95%);
  opacity: 0.9;
  cursor: default;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--accent1);
  color: var(--accent1);
  border-radius: var(--r-btn);
  padding: 10px 18px;
  min-height: 48px;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--accent1) 0%,
    var(--accent2) 100%);
  transition: width var(--t-med) var(--ease);
  z-index: -1;
}

.btn-outline:hover::before {
  width: 100%;
}

.btn-outline:hover {
  color: #0a0e1a;
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
  border-color: var(--accent1);
}
.btn-sm {
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  min-height: 34px;
}
.btn-lg {
  padding: 12px 18px;
  font-size: 15px;
  min-height: 44px;
}
.btn-success {
  background: linear-gradient(90deg, #32e0a5, #19c37d);
  color: #041218;
}
.btn-warn {
  background: linear-gradient(90deg, #ffd479, #ffb020);
  color: #3a2a00;
}
.btn-danger {
  background: linear-gradient(90deg, #ff7a7c, #ff4d4f);
  color: #2a0e0f;
}
.btn-ghost {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
}
.btn:disabled,
.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
}
.btn i,
.btn-outline i,
.btn-primary i {
  font-size: 18px;
}
.pod {
  position: relative;
  display: grid;
  place-items: center;
  height: 180px;
  background: var(--bg-dark);
  border-radius: 14px;
  border: var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pod:after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translate(-50%);
  width: 62%;
  height: 10px;
  border-radius: var(--r-pill);
  filter: blur(10px);
  background: radial-gradient(circle at 50% 50%, #6c5ce759, #0000);
}
.machine-gif {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}
.machine-gif.sm {
  max-height: 80px;
}
.halo {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 42px #00e0ff2e, var(--glow-cyan);
  opacity: 0.65;
}
.halo-boost {
  box-shadow: inset 0 0 44px #ffb02038, var(--glow-amber);
}
.halo-oclock {
  animation: oclockPulse 1.6s ease-in-out infinite;
  box-shadow: inset 0 0 46px #ffb02047, 0 0 60px #ffb02029;
}
@keyframes oclockPulse {
  0%,
  to {
    opacity: 0.55;
    filter: saturate(100%);
  }
  50% {
    opacity: 0.92;
    filter: saturate(130%);
  }
}
.plans-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.plan-card h3 {
  margin: 10px 0 4px;
}
.specs {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}
.specs li {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.badge.success {
  background: #19c37d26;
  border-color: #19c37d59;
}
.badge.warn {
  background: #ffb02026;
  border-color: #ffb02059;
}
.badge.error {
  background: #ff4d4f26;
  border-color: #ff4d4f59;
}
.badge.info {
  background: #3aa0ff26;
  border-color: #3aa0ff59;
}
.badge-phase {
  color: #0a2b33;
  background: linear-gradient(90deg, #9af2ff, #55dfff);
  border-color: transparent;
  font-weight: 700;
}
.badge-buyback {
  color: #3a2100;
  background: linear-gradient(90deg, #ffd08a, #ffb65c);
  border-color: transparent;
  font-weight: 700;
}
.miner-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
}
.progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin: 12px 0 4px;
  position: relative;
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.progress::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--accent1) 0%,
    var(--accent3) 50%,
    var(--accent5) 100%);
  border-radius: 12px 12px 0 0;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, 
    var(--accent1) 0%,
    var(--accent2) 50%,
    var(--accent3) 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.progress span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  animation: dataStream 2s linear infinite;
}
.claimable {
  color: var(--gold);
}
.value-hint {
  color: var(--muted-2);
  font-size: 12px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.radial {
  --p: 0deg;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
      var(--accent1) var(--p),
      rgba(255, 255, 255, 0.1) 0
    ),
    radial-gradient(circle at 50% 50%, #0000 60%, #00000059 61%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.radial.small {
  width: 72px;
  height: 72px;
}
.radial > span {
  font-weight: 800;
  font-size: 14px;
  color: #e9f9ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.radial.warn {
  --accent1: #ffcc66;
}
.radial.danger {
  --accent1: #ff6b6b;
}
.meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.meter > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  width: var(--val, 50%);
  transition: width 0.4s var(--ease);
}
.market-row {
  display: grid;
  gap: 12px;
  align-items: center;
  grid-template-columns: 80px 1fr auto;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chip {
  padding: 3px 5px;
  border-radius: var(--r-pill);
  border: var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  transition: background var(--t-med) var(--ease),
    color var(--t-med) var(--ease), border-color var(--t-med) var(--ease),
    transform var(--t-fast) var(--ease);
}
.chip:hover {
  transform: translateY(-1px);
}
.chip.active {
  background: #6c5ce726;
  border-color: #6c5ce759;
  color: #cfd8ff;
}
.listing {
  border: var(--border);
  background: var(--surface-1);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
  transition: box-shadow var(--t-med) var(--ease),
    transform var(--t-fast) var(--ease);
}
.listing:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px #00000059;
}
.listing .price {
  font-weight: 700;
  font-size: 18px;
}
.listing.floor-ok .price {
  color: var(--success);
}
.listing.floor-at .price {
  color: #e0e0e0;
}
.listing.floor-below .price {
  color: #ff7a7c;
}
.levels {
  margin-top: 8px;
}
.levels .chip {
  display: inline-block;
  margin: 4px 6px 0 0;
}
.levels .chip.on {
  background: #a3964c26;
  color: #e9d68f;
  border-color: #e9d68f59;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface-1);
  border: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-2);
}
.table tr:hover td {
  background: var(--surface-3);
}
#toastHost {
  position: fixed;
  right: 16px;
  display: grid;
  gap: 8px;
  z-index: 40;
  bottom: 16px;
}
@media (max-width: 760px) {
  #toastHost {
    bottom: calc(16px + var(--bottom-nav-h) + var(--safe-bottom));
  }
}
.toast {
  background: #191f2eeb;
  color: var(--txt);
  padding: 10px 12px;
  border-radius: 12px;
  border: var(--border);
  box-shadow: var(--shadow);
}
.toast.success {
  border-color: #19c37d59;
}
.toast.warn {
  border-color: #ffb02059;
}
.toast.error {
  border-color: #ff4d4f59;
}
.toast.info {
  border-color: #3aa0ff59;
}
.toast.out {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s var(--ease);
}
@media (max-width: 760px) {
  .modal-backdrop {
    place-items: end center;
  }
  .modal {
    width: 100vw;
    max-width: 100vw;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--r-card);
    border-top-right-radius: var(--r-card);
    max-height: calc(96vh - env(safe-area-inset-top));
    padding-bottom: max(16px, var(--safe-bottom));
    transform: translateY(18px);
    animation: sheetSlideUp var(--t-med) var(--ease) both;
  }
  .modal:before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translate(-50%);
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: #ffffff2e;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    #ffffff0f 25%,
    #ffffff1f 37%,
    #ffffff0f 63%
  );
  background-size: 400% 100%;
  animation: subtleShimmer 1.2s var(--ease) infinite;
  border-radius: 10px;
}
.skel-line {
  height: 12px;
  margin: 6px 0;
}
.skel-box {
  height: 120px;
}
@keyframes subtleShimmer {
  0% {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
#bottomNav {
  position: fixed;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: linear-gradient(135deg, 
    rgba(10, 14, 26, 0.95) 0%,
    rgba(26, 31, 58, 0.9) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: var(--border-glow);
  z-index: 26;
  min-height: var(--bottom-nav-h);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -4px 20px rgba(0, 245, 255, 0.1);
}

#bottomNav a,
#bottomNav button {
  display: grid;
  place-items: center;
  padding: 12px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  position: relative;
}

#bottomNav a:hover,
#bottomNav button:hover {
  color: var(--accent1);
  transform: translateY(-2px);
}

#bottomNav a.active,
#bottomNav button.active {
  color: var(--accent1);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

#bottomNav a.active::before,
#bottomNav button.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--accent1) 0%,
    var(--accent3) 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}
#bottomNav .bn-btn.connected {
  color: #cfd8ff;
  cursor: default;
}
@media (min-width: 761px) {
  #bottomNav {
    display: none;
  }
}
#mobileNavBackdrop {
  position: fixed;
  inset: 0;
  background: #060a12a6;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
  z-index: 25;
}
#mobileNavBackdrop.on {
  opacity: 1;
  pointer-events: auto;
}
input,
select,
textarea {
  width: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  border: var(--border);
  border-radius: var(--r-input);
  padding: 16px 20px;
  color: var(--txt);
  font-size: 16px;
  transition: all var(--t-med) var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent1);
  box-shadow: var(--glow-cyan);
  background: linear-gradient(135deg, 
    rgba(0, 245, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border: var(--border);
  font-size: 12px;
  border-radius: 12px;
  padding: 4px;
}
.segmented button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 3px 5px;
  border-radius: 10px;
  cursor: pointer;
}
.segmented button.active {
  background: var(--surface-1);
  color: #fff;
}
[data-tooltip] {
  position: relative;
}
[data-tooltip]:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%);
  background: #101623f2;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
  z-index: 50;
}
[data-tooltip]:hover:after {
  opacity: 1;
}
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, 
    var(--accent1) 0%,
    var(--accent3) 100%);
  border-radius: 12px;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}
.fade-in {
  animation: fadeInUp var(--t-slow) var(--ease) both;
}
.pop {
  animation: softPop var(--t-med) var(--ease) both;
}
.glow {
  animation: glowPulse 2s ease infinite;
}
.glass-hover:hover {
  background: var(--surface-2);
}
.price {
  font-variant-numeric: tabular-nums;
}
.kpi-grid {
  display: grid;
  gap: var(--space);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.kpi {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 20px;
  min-height: 140px;
  background: linear-gradient(135deg, 
    rgba(0, 245, 255, 0.1) 0%,
    rgba(168, 85, 247, 0.05) 100%);
  border: var(--border);
  border-radius: 20px;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--accent1) 0%,
    var(--accent3) 50%,
    var(--accent5) 100%);
  border-radius: 20px 20px 0 0;
}

.kpi .kpi-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.kpi .kpi-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
  background: linear-gradient(135deg, 
    var(--accent1) 0%,
    var(--accent3) 50%,
    var(--accent5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.kpi:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}
.icon,
.bx {
  vertical-align: middle;
  line-height: 1;
}
.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav a i {
  font-size: 18px;
  opacity: 0.9;
}
#bottomNav a i,
#bottomNav button i {
  font-size: 20px;
}
#marketToolbar {
  margin-bottom: 10px;
}
.btn-confirm {
  background: var(--accent);
  color: #00161f;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.btn-confirm:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-confirm:active {
  transform: translateY(0);
}
.trust-card {
  position: relative;
  overflow: hidden;
}
.trust-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  min-width: 0;
}
.trust-hero .note {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  min-width: 0;
}
@media (max-width: 520px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  .trust-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tile {
  position: relative;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  transition: transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  color: inherit;
}
.tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px #00000052;
  border-color: #00d4ff47;
}
.tile.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.tile.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #ffffff1f;
}
.tile .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  min-width: 0;
}
.tile .brand img {
  height: 40px;
  width: auto;
  flex: 0 0 auto;
}
.tile .brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile .status,
.tile .meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ok {
  background: #2ed573;
}
.warn {
  background: #ffa502;
}
.idle {
  background: #7f8c8d;
}
@media (max-width: 640px) {
  .header {
    max-height: none;
    padding: 6px 0;
  }
  .header__row {
    display: grid;
    grid-template-areas: "brand actions" "countdown countdown";
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    min-height: auto;
  }
  .brand {
    grid-area: brand;
  }
  .header__center {
    grid-area: countdown;
    justify-content: flex-start;
  }
  .header__right {
    grid-area: actions;
    justify-content: flex-end;
  }
  .header__right .btn {
    min-width: 40px;
    padding: 6px 10px;
  }
  .header__right .btn span {
    display: none;
  }
}
:root {
  --fx-aurora: 0.24;
  --fx-glow: 0.9;
}
body {
  position: relative;
  z-index: 0;
}
body:before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      60% 40% at 20% 10%,
      rgba(0, 224, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      50% 35% at 80% 0%,
      rgba(36, 130, 158, 0.22),
      transparent 60%
    ),
    radial-gradient(
      50% 50% at 50% 100%,
      rgba(233, 214, 143, 0.16),
      transparent 60%
    );
  filter: blur(42px) saturate(135%);
  opacity: var(--fx-aurora);
  animation: auroraPan 18s linear infinite alternate;
}
@keyframes auroraPan {
  0% {
    transform: translateY(-2%) rotate(0.6deg);
  }
  to {
    transform: translateY(2%) rotate(-0.6deg);
  }
}
.card:hover:before {
  opacity: var(--fx-glow);
  filter: blur(0.2px);
}
.card:hover {
  box-shadow: 0 16px 40px #00000073;
}
.kpi:hover {
  transform: translateY(-3px);
}
.nav a.active,
[aria-current="page"] {
  color: #fff;
  border-color: transparent;
  position: relative;
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.35);
}
.nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 14px #00e0ffa6;
}
.btn,
.btn-primary,
.btn-connect {
  position: relative;
  overflow: hidden;
}
.btn:after,
.btn-primary:after,
.btn-connect:after {
  content: "";
  position: absolute;
  inset: -120% -40% auto;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 70%
  );
  transform: translate(-120%) rotate(8deg);
  transition: transform 0.6s var(--ease);
}
.btn:hover:after,
.btn-primary:hover:after,
.btn-connect:hover:after {
  transform: translate(120%) rotate(8deg);
}
.chip.active {
  background: radial-gradient(120% 120% at 50% 120%, #00e0ff33, #6c5ce729 60%);
  border-color: #00e0ff6b;
  box-shadow: inset 0 0 24px #00e0ff38;
}
.listing .price {
  background: linear-gradient(90deg, #c7f7ff, #e9d68f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.listing.floor-below .price {
  background: none;
  color: #ff7a7c;
}
.listing.floor-ok .price {
  background: none;
  color: var(--success);
}
.pod .halo {
  opacity: 0.5;
  transition: opacity 0.25s var(--ease);
}
.pod:hover .halo {
  opacity: 0.9;
}
#bottomNav a.active,
#bottomNav button.active {
  color: #e7faff;
  text-shadow: 0 0 10px rgba(0, 224, 255, 0.45);
}
[data-tooltip]:after {
  box-shadow: 0 8px 24px #00000073, 0 0 0 1px #ffffff0f inset;
}
:root {
  --modal-sheet-height: 90dvh;
  --safe-bottom: env(safe-area-inset-bottom, 12px);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0000008c;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.modal-backdrop.fade-in {
  opacity: 1;
}
.modal {
  position: relative;
  max-width: 720px;
  width: min(92vw, 720px);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 38px;
  outline: none;
}
.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transition: background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.modal-close:hover {
  background: var(--surface-2);
  color: #fff;
  transform: translateY(-1px);
}
.modal-close:active {
  transform: translateY(0);
}
.modal-close:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
.modal-body {
  display: block;
}
@media (max-width: 760px) {
  .modal-backdrop {
    place-items: end center;
  }
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: var(--modal-sheet-height);
    max-height: var(--modal-sheet-height);
    overflow-y: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--r-card);
    border-top-right-radius: var(--r-card);
    padding-bottom: calc(16px + var(--safe-bottom));
    transform: translateY(18px);
    animation: sheetSlideUp var(--t-med) var(--ease) both;
  }
  .modal:before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translate(-50%);
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: #ffffff2e;
  }
  .modal-body {
    height: 100%;
    max-height: 100%;
    overflow: clip;
  }
}
@keyframes sheetSlideUp {
  0% {
    transform: translateY(18px);
    opacity: 0.98;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop {
    transition: none !important;
  }
  .modal {
    animation: none !important;
  }
}
