:root {
  --nx-bg: #070b14;
  --nx-bg-2: #0c1220;
  --nx-side: rgba(10, 15, 27, 0.92);
  --nx-card: rgba(12, 18, 32, 0.82);
  --nx-card-2: rgba(18, 26, 42, 0.88);
  --nx-glass: rgba(255, 255, 255, 0.05);
  --nx-border: rgba(255, 255, 255, 0.08);
  --nx-purple: #7c3aed;
  --nx-purple-soft: rgba(124, 58, 237, 0.16);
  --nx-green: #10b981;
  --nx-green-soft: rgba(16, 185, 129, 0.16);
  --nx-red: #ef4444;
  --nx-red-soft: rgba(239, 68, 68, 0.16);
  --nx-yellow: #f59e0b;
  --nx-text: #ffffff;
  --nx-dim: #94a3b8;
  --nx-dim-2: #64748b;
  --nx-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --nx-radius-xl: 24px;
  --nx-radius-lg: 18px;
  --nx-radius-md: 14px;
  --nx-top-nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; font-size: 15px; }
body.nx-dark-theme {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.09), transparent 16%),
    linear-gradient(180deg, #060912 0%, #070b14 40%, #09111f 100%);
  color: var(--nx-text);
  min-height: 100vh;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.nx-top-nav {
  height: var(--nx-top-nav-h);
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(6, 10, 18, 0.9);
  border-bottom: 1px solid var(--nx-border);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nx-nav-left, .nx-nav-right, .nx-nav-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nx-nav-center { justify-content: center; }

.nx-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--nx-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nx-text);
  cursor: pointer;
  transition: 0.2s ease;
}
.nx-icon-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.18); }

.nx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.nx-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}
.nx-brand-copy { display: flex; flex-direction: column; }
.nx-logo-main { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.nx-logo-main span { color: #8ea3ff; font-weight: 600; }
.nx-brand-copy small { color: var(--nx-dim); font-size: 11px; }

.nx-header-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nx-header-slider::-webkit-scrollbar { display: none; }
.nx-tab {
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: var(--nx-dim);
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
}
.nx-tab.active, .nx-tab:hover {
  color: var(--nx-text);
  background: rgba(255,255,255,0.05);
  border-color: var(--nx-border);
}
.nx-badge-alpha {
  font-size: 10px;
  margin-left: 6px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 6px;
  border-radius: 999px;
}

.nx-search-wrapper {
  max-width: 520px;
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-border);
}
.nx-search-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--nx-text);
  outline: none;
  font-size: 14px;
}
.nx-search-wrapper input::placeholder { color: var(--nx-dim); }
.nx-search-wrapper kbd {
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom-width: 2px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--nx-dim);
}

.nx-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-border);
  color: var(--nx-dim);
  font-size: 12px;
}
.nx-dot-red {
  width: 8px; height: 8px; border-radius: 50%; background: var(--nx-red); display: inline-block;
}

.nx-btn-login, .nx-btn-signup, .nx-btn-primary, .nx-btn-secondary {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 700;
}
.nx-btn-login {
  color: var(--nx-text);
  background: transparent;
  padding: 10px 10px;
  font-size: 14px;
}
.nx-btn-signup, .nx-btn-primary {
  color: white;
  padding: 12px 18px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 14px 30px rgba(91, 33, 182, 0.28);
  font-size: 14px;
}
.nx-btn-secondary {
  color: var(--nx-text);
  padding: 12px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--nx-border);
  font-size: 14px;
}
.nx-full { width: 100%; }

.nx-app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 360px;
  gap: 0;
  height: calc(100vh - var(--nx-top-nav-h));
}
.nx-app-shell.sidebar-collapsed { grid-template-columns: 92px minmax(0, 1fr) 360px; }
.nx-app-shell.rail-collapsed { grid-template-columns: 270px minmax(0, 1fr) 84px; }
.nx-app-shell.sidebar-collapsed.rail-collapsed { grid-template-columns: 92px minmax(0, 1fr) 84px; }

.nx-sidebar, .nx-prediction-rail {
  background: rgba(7, 11, 20, 0.7);
  border-right: 1px solid var(--nx-border);
  overflow-y: auto;
}
.nx-prediction-rail {
  border-right: none;
  border-left: 1px solid var(--nx-border);
  padding: 18px;
}
.nx-sidebar {
  padding: 18px 14px;
}
.nx-sidebar-top { margin-bottom: 16px; }
.nx-mini-balance {
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(16,185,129,.08));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nx-mini-balance span, .nx-mini-balance small, .nx-group-label { color: var(--nx-dim); }
.nx-mini-balance strong { font-size: 22px; }
.nx-group-label {
  font-size: 11px;
  margin: 16px 10px 10px;
  letter-spacing: 0.16em;
}
.nx-sidebar-group { margin-bottom: 10px; }

.nx-side-link, .nx-watch-item, .nx-collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 12px;
  color: var(--nx-dim);
  transition: 0.2s ease;
  font-size: 14px;
}
.nx-side-link span:first-child, .nx-collapse-btn span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nx-side-link:hover, .nx-side-link.active, .nx-watch-item:hover, .nx-collapse-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--nx-text);
}
.nx-num, .nx-num-pill {
  min-width: 30px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 12px;
}
.nx-num-pill { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.nx-icon-live { color: #fb7185; }

.nx-collapse-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.nx-collapse-btn i:last-child { transition: transform 0.2s ease; }
.nx-collapsible:not(.open) .nx-collapse-content { display: none; }
.nx-collapsible.open .nx-collapse-btn i:last-child { transform: rotate(180deg); }
.nx-collapse-content {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}
.nx-watch-item {
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}

.nx-main-scroll {
  overflow-y: auto;
  padding: 22px;
}

.nx-hero {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(255,255,255,.03));
  border: 1px solid var(--nx-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--nx-shadow);
  margin-bottom: 22px;
}
.nx-hero-badge {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(124,58,237,.16);
  color: #c4b5fd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.nx-hero-copy h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.nx-hero-copy p {
  color: var(--nx-dim);
  font-size: 14px;
  line-height: 1.7;
  max-width: 720px;
}
.nx-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.nx-hero-stats {
  display: grid;
  gap: 12px;
}
.nx-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 6px;
}
.nx-stat-card span, .nx-stat-card small { color: var(--nx-dim); }
.nx-stat-card strong { font-size: 24px; }

.nx-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.nx-section-head h2 { font-size: 26px; letter-spacing: -0.03em; }
.nx-inline-actions { display: flex; gap: 8px; }
.nx-nav-chip {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--nx-border); background: rgba(255,255,255,.04); color: var(--nx-text); cursor: pointer;
}

.nx-slider-container {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--nx-border);
  border-radius: 28px;
  padding: 22px;
  margin-bottom: 22px;
}
.nx-slider-track {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 540px) 1fr;
  align-items: center;
  gap: 24px;
}
.nx-trend-card {
  min-height: 300px;
  border-radius: 24px;
  border: 1px solid var(--nx-border);
  background: linear-gradient(180deg, rgba(12,18,32,.88), rgba(9,13,24,.96));
  position: relative;
  overflow: hidden;
}
.nx-trend-card.blurred {
  opacity: .28;
  filter: blur(2px);
  transform: scale(.94);
}
.nx-active-focus {
  box-shadow: var(--nx-shadow);
  border-color: rgba(255,255,255,.16);
}
.nx-card-top-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: #030712;
  border: 1px solid rgba(255,255,255,.08);
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-size: 11px;
  font-weight: 800;
}
.nx-card-inner { padding: 28px; margin-top: 14px; }
.nx-card-header, .nx-cand-row, .nx-vote-group, .nx-p-header, .nx-p-toolbar, .nx-summary-row { display: flex; align-items: center; }
.nx-card-header, .nx-cand-row, .nx-p-header, .nx-summary-row { justify-content: space-between; }
.nx-card-header { margin-bottom: 16px; }
.nx-cat { color: var(--nx-dim); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.nx-flag-circle { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cbd5e1; font-weight: 800; }
.nx-card-inner h3 { font-size: 28px; letter-spacing: -0.04em; margin-bottom: 18px; }
.nx-candidate-list { display: grid; gap: 10px; }
.nx-cand-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 12px;
}
.nx-user-info { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.nx-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #334155, #1e293b); }
.nx-vote-group { gap: 8px; }
.nx-pct { font-weight: 800; min-width: 40px; text-align: right; }
.nx-vote-btn, .nx-mode-chip, .nx-filter-chip, .nx-chip, .nx-mini-tabs button {
  border: 1px solid var(--nx-border);
  cursor: pointer;
}
.nx-vote-btn {
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: var(--nx-text);
  padding: 8px 12px;
}
.nx-vote-btn.nx-yes, .nx-chip.yes { color: #34d399; background: var(--nx-green-soft); border-color: rgba(16,185,129,.24); }
.nx-vote-btn.nx-no, .nx-chip.no { color: #f87171; background: var(--nx-red-soft); border-color: rgba(239,68,68,.24); }
.nx-more-options { margin-top: 16px; text-align: center; color: var(--nx-dim); }
.nx-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.nx-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.nx-dot.active { width: 22px; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #06b6d4); }

.nx-filter-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
  scrollbar-width: none;
}
.nx-filter-strip::-webkit-scrollbar { display: none; }
.nx-filter-chip, .nx-mode-chip, .nx-mini-tabs button {
  white-space: nowrap;
  color: var(--nx-dim);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 10px 14px;
}
.nx-filter-chip.active, .nx-mode-chip.active, .nx-mini-tabs button.active { color: var(--nx-text); background: var(--nx-purple-soft); border-color: rgba(124,58,237,.3); }

.nx-shelf {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--nx-border);
  border-radius: 26px;
  padding: 20px;
  margin-bottom: 20px;
}
.nx-shelf-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.nx-shelf-title i { color: #f8fafc; }
.nx-view-all { color: var(--nx-dim); font-weight: 600; }
.nx-mini-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.nx-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.nx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-market-card {
  background: linear-gradient(180deg, rgba(15,22,39,.84), rgba(9,13,24,.96));
  border: 1px solid var(--nx-border);
  border-radius: 20px;
  padding: 18px;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nx-market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,.34);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}
.nx-list-card { min-height: auto; }
.nx-m-head { font-size: 18px; font-weight: 700; line-height: 1.35; }
.nx-m-label, .nx-split-copy small { color: var(--nx-dim); }
.nx-m-price { margin-top: auto; }
.nx-m-val { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.nx-up { color: var(--nx-green); font-size: 13px; }
.nx-down { color: #f87171; font-size: 13px; }
.nx-split-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(16,185,129,.18) 50%, rgba(239,68,68,.18) 50%);
}
.nx-split-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
}
.nx-split-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 24px;
  font-weight: 800;
}
.nx-m-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.nx-m-btn {
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--nx-border);
  color: var(--nx-text);
  background: rgba(255,255,255,.05);
  font-weight: 700;
  cursor: pointer;
}
.nx-m-btn.nx-m-yes { background: rgba(16,185,129,.12); color: #34d399; border-color: rgba(16,185,129,.26); }
.nx-m-btn.nx-m-no { background: rgba(239,68,68,.12); color: #f87171; border-color: rgba(239,68,68,.26); }
.nx-option-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nx-option-row:last-child { border-bottom: none; }
.nx-option-row span { color: #e2e8f0; }
.nx-option-row strong { min-width: 44px; text-align: right; }
.nx-inline-btns { display: flex; gap: 8px; }
.nx-chip {
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.nx-prediction-box {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(12,18,32,.92), rgba(8,12,22,.98));
  border: 1px solid var(--nx-border);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nx-p-header h3 { font-size: 22px; }
.nx-p-header h3 span { color: var(--nx-dim); font-weight: 600; margin-left: 6px; }
.nx-p-header small { color: var(--nx-dim); }
.nx-small-btn { width: 36px; height: 36px; }
.nx-p-toolbar { gap: 8px; }
.nx-p-empty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 8px;
}
.nx-p-step {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  color: var(--nx-dim);
  font-size: 12px;
}
.nx-p-icon {
  font-size: 52px;
  opacity: .18;
  transform: rotate(-8deg);
}
.nx-p-empty p { color: var(--nx-dim); }
.nx-p-summary {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 14px;
}
.nx-summary-row span, .nx-p-footer { color: var(--nx-dim); }
.nx-p-footer { font-size: 12px; line-height: 1.6; }
.nx-p-footer a { color: #a78bfa; }

.nx-app-shell.sidebar-collapsed .nx-sidebar {
  padding-inline: 10px;
}
.nx-app-shell.sidebar-collapsed .nx-brand-copy,
.nx-app-shell.sidebar-collapsed .nx-group-label,
.nx-app-shell.sidebar-collapsed .nx-mini-balance span,
.nx-app-shell.sidebar-collapsed .nx-mini-balance strong,
.nx-app-shell.sidebar-collapsed .nx-mini-balance small,
.nx-app-shell.sidebar-collapsed .nx-side-link span:not(:first-child),
.nx-app-shell.sidebar-collapsed .nx-side-link .nx-num,
.nx-app-shell.sidebar-collapsed .nx-side-link .nx-num-pill,
.nx-app-shell.sidebar-collapsed .nx-collapse-btn span,
.nx-app-shell.sidebar-collapsed .nx-collapse-btn i:last-child,
.nx-app-shell.sidebar-collapsed .nx-collapse-content {
  display: none;
}
.nx-app-shell.sidebar-collapsed .nx-side-link,
.nx-app-shell.sidebar-collapsed .nx-collapse-btn {
  justify-content: center;
}

.nx-app-shell.rail-collapsed .nx-prediction-box > *:not(.nx-p-header) { display: none; }
.nx-app-shell.rail-collapsed .nx-prediction-box {
  padding: 12px;
  align-items: center;
}
.nx-app-shell.rail-collapsed .nx-p-header h3,
.nx-app-shell.rail-collapsed .nx-p-header small { display: none; }

.nx-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nx-top-nav-h);
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 24;
}
body.nx-sidebar-open .nx-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1500px) {
  .nx-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  :root { --nx-top-nav-h: 72px; }
  .nx-top-nav { padding: 0 12px; gap: 12px; }
  .nx-header-slider { display: none; }
  .nx-status-pill, .nx-btn-login { display: none; }
  #railToggle { display: none; }
  .nx-search-wrapper { width: 100%; max-width: 560px; }
  .nx-app-shell, .nx-app-shell.sidebar-collapsed, .nx-app-shell.rail-collapsed, .nx-app-shell.sidebar-collapsed.rail-collapsed {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .nx-prediction-rail { display: none; }
  .nx-hero { grid-template-columns: 1fr; }
  .nx-slider-track { grid-template-columns: 1fr; }
  .nx-trend-card.blurred { display: none; }
}

@media (max-width: 900px) {
  .nx-market-grid, .nx-grid-3 { grid-template-columns: 1fr; }
  .nx-main-scroll { padding: 14px; }
  .nx-shelf, .nx-slider-container, .nx-hero { padding: 16px; }
  .nx-card-inner h3, .nx-shelf-title, .nx-section-head h2 { font-size: 22px; }
  .nx-option-row { grid-template-columns: 1fr; }
  .nx-inline-btns { justify-content: flex-start; }
}

@media (max-width: 700px) {
  :root { --nx-top-nav-h: 64px; }
  .nx-top-nav { padding: 0 10px; gap: 10px; }
  .nx-icon-btn { width: 38px; height: 38px; }
  .nx-brand-copy small { display: none; }
  .nx-logo-main { font-size: 16px; }
  .nx-search-wrapper { padding: 9px 10px; gap: 10px; }
  .nx-search-wrapper kbd { display: none; }
  .nx-btn-signup { padding: 10px 12px; font-size: 13px; }

  .nx-app-shell, .nx-app-shell.sidebar-collapsed, .nx-app-shell.rail-collapsed, .nx-app-shell.sidebar-collapsed.rail-collapsed {
    grid-template-columns: 1fr;
  }
  .nx-sidebar {
    position: fixed;
    top: var(--nx-top-nav-h);
    bottom: 0;
    left: 0;
    width: min(86vw, 320px);
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    z-index: 26;
    border-right: 1px solid var(--nx-border);
  }
  body.nx-sidebar-open .nx-sidebar { transform: translateX(0); }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .nx-m-val { font-size: 26px; }
  .nx-split-copy { font-size: 22px; }
  .nx-m-btn { height: 42px; }
}




@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

.pm-prediction-section {
    background-color: #0a0b1c; /* Deep dark navy */
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

.pm-container {
    max-width: 100%;
    margin: 0 auto;
    background: #11122a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pm-market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pm-badge {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pm-live-indicator {
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pm-pulse 1.5s infinite;
}

@keyframes pm-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.pm-question {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 40px;
}

/* Match Display Area */
.pm-match-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 30px;
}

.pm-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 140px;
}

.pm-logo-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pm-logo-circle img {
    width: 100%;
    height: auto;
}

.pm-team-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.pm-vs-info {
    text-align: center;
    color: #94a3b8;
}

.pm-vs-label {
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    margin-top: 5px;
}

.pm-date, .pm-time {
    font-size: 12px;
}

/* Prediction Buttons */
.pm-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.pm-btn {
    border: none;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.pm-btn-yes {
    background: #7c3aed; /* Your primary purple */
    color: white;
}

.pm-btn-no {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pm-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.pm-btn-label {
    font-size: 18px;
    font-weight: 800;
}

.pm-btn-price {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

/* Stats Footer */
.pm-stats-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-stat-item {
    display: flex;
    flex-direction: column;
}

.pm-stat-val {
    font-weight: 700;
    font-size: 16px;
}

.pm-stat-lbl {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .pm-match-display { flex-direction: column; gap: 20px; }
    .pm-question { font-size: 18px; }
}



:root {
    --cp-primary: #5a6ff2;
    --cp-primary-dark: #4562ee;
    --cp-green: #10b86a;
    --cp-red: #ef6b6b;
    --cp-bg: #ffffff;
    --cp-sidebar-bg: #f8fafc;
    --cp-border: #e8edf4;
    --cp-text: #111827;
    --cp-text-soft: #5b6b82;
    --cp-text-light: #8b9ab0;
    --cp-shadow-soft: 0 8px 30px rgba(15, 23, 42, 0.04);
    --cp-shadow-card: 0 12px 35px rgba(15, 23, 42, 0.06);
    --cp-radius-xl: 24px;
    --cp-radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cp-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--cp-text);
}

.cp-dashboard-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    min-height: 100vh;
    background: #fff;
}

/* LEFT */
.cp-main-content {
    padding: 0 42px 50px;
}

.cp-top-nav {
    padding: 18px 0 22px;
}

.cp-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border: 1px solid #dde5ef;
    color: #111827;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cp-btn-back kbd {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--cp-text-soft);
}

.cp-market-header {
    border-top: 1px solid var(--cp-border);
    padding: 28px 0 26px;
}

.cp-title-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cp-title-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.cp-eth-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0b0b0f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

.cp-title-left h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cp-action-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cp-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--cp-border);
    color: #7b8797;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.cp-icon-circle:hover {
    transform: translateY(-1px);
    box-shadow: var(--cp-shadow-soft);
}

.cp-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.cp-tag-official {
    background: #dff2ff;
    color: #0071b8;
}

.cp-tag-new {
    background: #fff0cc;
    color: #d98900;
}

.cp-volume {
    color: var(--cp-text-soft);
    font-size: 14px;
}

.cp-price-timer-grid {
    display: flex;
    align-items: flex-end;
    gap: 88px;
    margin-top: 34px;
    padding-bottom: 6px;
}

.cp-stat-box label {
    display: block;
    margin-bottom: 10px;
    color: var(--cp-text-soft);
    font-size: 15px;
    font-weight: 600;
}

.cp-price {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.cp-price-dark {
    color: #475569;
}

.cp-txt-blue {
    color: var(--cp-primary);
}

.cp-txt-up {
    color: var(--cp-green);
    font-weight: 700;
}

.cp-txt-down {
    color: var(--cp-red);
    font-weight: 700;
}

.cp-main-countdown {
    display: flex;
    gap: 22px;
    align-items: flex-end;
}

.cp-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--cp-red);
}

.cp-time-unit span {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cp-time-unit small {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* CHART */
.cp-chart-section {
    padding-top: 22px;
}

.cp-chart-wrap {
    display: flex;
    min-height: 340px;
    border-bottom: 1px solid var(--cp-border);
    padding-bottom: 8px;
}

.cp-chart-y-axis {
    width: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 12px 12px 0;
    color: var(--cp-text-soft);
    font-size: 13px;
    text-align: right;
}

.cp-chart-label {
    display: inline-block;
    align-self: flex-end;
    padding: 6px 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.cp-label-green {
    background: var(--cp-green);
}

.cp-label-dark {
    background: #1f2937;
}

.cp-chart-svg-wrap {
    flex: 1;
    min-height: 340px;
    display: flex;
    align-items: stretch;
}

.cp-chart-svg-wrap svg {
    width: 100%;
    height: 100%;
}

/* NEXT ROUND */
.cp-next-round-bar {
    padding-top: 28px;
}

.cp-btn-primary {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #6674f4 0%, #5e6ef2 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--cp-shadow-soft);
}

.cp-resolved-box {
    margin-top: 12px;
    border: 1px solid var(--cp-border);
    border-radius: 18px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-text-soft);
    font-size: 15px;
    background: #fff;
}

/* DETAILS */
.cp-details-section {
    padding-top: 34px;
}

.cp-section-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
}

.cp-details-section p {
    margin: 0;
    color: var(--cp-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.cp-toggle-details {
    margin-top: 14px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
}

/* ACTIVITY */
.cp-activity-section {
    padding-top: 34px;
}

.cp-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.cp-tab {
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 800;
    color: #c4ccd8;
    cursor: pointer;
    padding: 0;
}

.cp-tab.active {
    color: #111827;
}

.cp-feed-list {
    background: #fff;
}

.cp-feed-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid #edf2f7;
}

.cp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.cp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-avatar-grad {
    background: radial-gradient(circle at top left, #baf7d0, #42d884);
}

.cp-feed-info {
    flex: 1;
    min-width: 0;
}

.cp-feed-info p {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.5;
    color: #111827;
}

.cp-feed-info small {
    color: var(--cp-text-soft);
    font-size: 14px;
}

.cp-feed-item time {
    font-size: 14px;
    color: var(--cp-text-soft);
    white-space: nowrap;
}

/* RIGHT SIDEBAR */
.cp-sidebar {
    background: var(--cp-sidebar-bg);
    border-left: 1px solid var(--cp-border);
    padding: 40px 26px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cp-prediction-card {
    width: 100%;
    max-width: 288px;
    background: #fdfefe;
    border: 1px solid var(--cp-border);
    border-radius: 28px;
    padding: 26px 22px 24px;
    box-shadow: none;
}

.cp-card-head {
    text-align: center;
}

.cp-card-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #c8d4e3;
}

.cp-step-label {
    margin: 24px auto 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff4fa;
    color: #d3dce8;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
}

.cp-bet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cp-bet-btn {
    border: none;
    border-radius: 22px;
    min-height: 146px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.cp-bet-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.cp-bet-up {
    background: #0db567;
}

.cp-bet-down {
    background: #ef6d6d;
}

.cp-btn-count {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
}

.cp-dir {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cp-odds {
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 800;
}

.cp-legal {
    margin: 22px 0 0;
    text-align: center;
    color: var(--cp-text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.cp-legal a {
    color: #425b84;
    font-weight: 600;
    text-decoration: none;
}

.cp-hidden {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .cp-dashboard-container {
        grid-template-columns: 1fr;
    }

    .cp-sidebar {
        border-left: none;
        border-top: 1px solid var(--cp-border);
    }

    .cp-prediction-card {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .cp-main-content {
        padding: 0 18px 32px;
    }

    .cp-title-block,
    .cp-title-left,
    .cp-price-timer-grid,
    .cp-feed-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cp-action-icons {
        align-self: flex-end;
    }

    .cp-chart-wrap {
        min-height: 250px;
    }

    .cp-chart-y-axis {
        width: 82px;
        font-size: 11px;
    }

    .cp-feed-item time {
        white-space: normal;
    }
}



/* Unique Class Prefix: gla- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.gla-overlay {
    width: 100%;
    height: 100vh;
    background: #000; /* Dark background to see the glass effect */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    perspective: 1000px;
}

.gla-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Close Button */
.gla-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}
.gla-close-btn:hover { color: #fff; }

/* Tabs */
.gla-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.gla-tab {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s;
}

.gla-tab.active {
    color: #fff;
}

.gla-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 4px;
    background: #ff6b35; /* Orange indicator from image */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Form Styles */
.gla-input-group {
    margin-bottom: 25px;
}

.gla-input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    margin-bottom: 10px;
    font-weight: 500;
}

.gla-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border 0.3s;
}

.gla-form input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.gla-pass-wrapper {
    position: relative;
}

.gla-eye-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 16px;
}

/* Wallet Buttons Row */
.gla-wallet-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.gla-wallet-btn {
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gla-wallet-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.gla-wallet-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.gla-btn-blue {
    background: rgba(51, 117, 243, 0.15); /* Slight blue for coinbase */
}

/* Decorative Glow on the right */
.gla-glow {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 255, 178, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}