:root{
  --bg: #0b0714;
  --bg-2: #120a1f;
  --panel: #16102a;
  --panel-2: #1a1230;
  --border: #2a1f45;
  --text: #f1ecff;
  --text-dim: #a99fc9;
  --text-faint: #6f6493;
  --gold: #f4b942;
  --violet: #8b5cf6;
  --violet-soft: #b794f6;
  --green: #3ddc97;
  --red: #ff6b6b;
  --radius: 16px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

.bg-grid{
  position:fixed; inset:0; z-index:0;
  background-image:
    linear-gradient(rgba(139,92,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.bg-glow{
  position:fixed; top:-200px; left:50%; transform:translateX(-50%);
  width:900px; height:600px; z-index:0;
  background: radial-gradient(circle, rgba(244,185,66,0.12), rgba(139,92,246,0.10) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events:none;
}

.shell{
  position:relative; z-index:1;
  display:grid;
  grid-template-columns: 240px 1fr;
  min-height:100vh;
}

/* Sidebar */
.sidebar{
  border-right: 1px solid var(--border);
  padding: 22px 18px;
  display:flex; flex-direction:column; gap:22px;
  background: linear-gradient(180deg, rgba(22,16,42,0.6), rgba(11,7,20,0.2));
}
.brand{ display:flex; align-items:center; gap:10px; padding: 0 4px; }
.brand-mark{
  width:32px; height:32px; border-radius:9px;
  background: linear-gradient(135deg, var(--gold), var(--violet));
  color:#120a1f; font-weight:800; font-size:16px;
  display:flex; align-items:center; justify-content:center;
}
.brand-name{ font-weight:700; font-size:17px; letter-spacing:-0.02em; }
.brand-name .dot{ color: var(--gold); }

.nav{ display:flex; flex-direction:column; gap:2px; }
.nav-link{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px;
  color: var(--text-dim); text-decoration:none; font-size:14px; font-weight:500;
  transition: background .15s, color .15s;
}
.nav-link:hover{ background: rgba(139,92,246,0.10); color: var(--text); }
.nav-link.active{ background: rgba(244,185,66,0.10); color: var(--gold); }
.ic{ width:16px; height:16px; display:inline-block; flex-shrink:0; }
.ic::before{ content:''; display:block; width:100%; height:100%; }
.ic-grid::before{ background: currentColor; -webkit-mask: radial-gradient(circle at 30% 30%, #000 2px, transparent 2.5px) 0 0/8px 8px, radial-gradient(circle at 30% 30%, #000 2px, transparent 2.5px) 8px 0/8px 8px; mask: radial-gradient(circle at 30% 30%, #000 2px, transparent 2.5px) 0 0/8px 8px; opacity:.9; border-radius:3px; background-color:currentColor; -webkit-mask-image:none; mask-image:none; background: repeating-linear-gradient(currentColor 0 3px, transparent 3px 6px); }
.ic-rocket::before,.ic-gavel::before,.ic-vault::before,.ic-search::before,.ic-info::before,.ic-clock::before,.ic-wave::before{
  background: currentColor; border-radius:3px; opacity:.85;
}
.ic-rocket::before{ clip-path: polygon(50% 0%, 90% 100%, 50% 75%, 10% 100%); }
.ic-gavel::before{ clip-path: polygon(0% 60%, 40% 20%, 55% 35%, 15% 75%); }
.ic-vault::before{ border-radius:50%; }
.ic-search::before{ border-radius:50%; clip-path: polygon(0 0, 70% 0, 70% 70%, 100% 70%, 100% 100%, 0 100%); }
.ic-info::before{ border-radius:50%; }
.ic-clock::before{ border-radius:50%; }
.ic-wave::before{ clip-path: polygon(0 50%, 15% 20%, 30% 80%, 45% 20%, 60% 80%, 75% 20%, 90% 80%, 100% 50%, 100% 100%, 0 100%); }

.widget{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
}
.widget-head{
  display:flex; justify-content:space-between; align-items:center;
  font-size:11px; font-weight:700; letter-spacing:.06em; color: var(--text-faint);
  margin-bottom:10px;
}
.pill{ font-size:10px; padding:2px 8px; border-radius:99px; font-weight:600; }
.pill-muted{ background: rgba(255,255,255,0.06); color: var(--text-dim); }
.pill-grad{ background: rgba(61,220,151,0.14); color: var(--green); }
.pill-idle{ background: rgba(255,255,255,0.06); color: var(--text-faint); }

.gauge-track{ height:6px; border-radius:99px; background: rgba(255,255,255,0.06); overflow:hidden; }
.gauge-fill{ height:100%; width:50%; background: linear-gradient(90deg, var(--violet), var(--gold)); border-radius:99px; transition: width 1.2s ease; }
.gauge-labels{ display:flex; justify-content:space-between; font-size:10px; color: var(--text-faint); margin-top:6px; }
.gauge-value{ font-size:22px; font-weight:800; margin-top:8px; }

.big-number{ font-size:26px; font-weight:800; }
.widget-sub{ font-size:12px; color: var(--text-faint); margin-top:4px; }

.chain-status{
  margin-top:auto;
  font-size:11px; color: var(--text-faint);
  display:flex; align-items:center; gap:7px;
  padding: 4px;
}
.dot-live{ width:7px; height:7px; border-radius:50%; background: var(--green); box-shadow:0 0 8px var(--green); }

/* Main */
.main{ padding: 22px 30px 60px; min-width:0; }

.topbar{
  display:flex; align-items:center; gap:18px; margin-bottom:14px;
}
.search{
  flex:1; display:flex; align-items:center; gap:10px;
  background: var(--panel); border:1px solid var(--border); border-radius:12px;
  padding: 11px 16px; color: var(--text-faint);
}
.search input{
  border:none; background:none; outline:none; color: var(--text);
  font-size:14px; width:100%; font-family:inherit;
}
.search input::placeholder{ color: var(--text-faint); }
.topbar-stats{ display:flex; align-items:center; gap:22px; }
.stat{ display:flex; flex-direction:column; gap:2px; text-align:right; }
.stat-label{ font-size:10px; color: var(--text-faint); letter-spacing:.06em; font-weight:700; }
.stat-value{ font-size:14px; font-weight:700; font-variant-numeric: tabular-nums; }

.btn{
  border:none; cursor:pointer; font-family:inherit; font-weight:700;
  border-radius:10px; transition: transform .12s, box-shadow .12s, opacity .12s;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{
  background: linear-gradient(135deg, var(--gold), #e0a12f);
  color:#1a1030; padding:11px 20px; font-size:13px;
  box-shadow: 0 6px 18px rgba(244,185,66,0.22);
}
.btn-primary:hover{ box-shadow: 0 8px 22px rgba(244,185,66,0.32); }
.btn-ghost{
  background: rgba(255,255,255,0.04); color: var(--text);
  border:1px solid var(--border); padding:11px 20px; font-size:13px;
}
.btn-ghost:hover{ background: rgba(255,255,255,0.08); }
.btn-lg{ padding:14px 26px; font-size:14px; border-radius:12px; }

.marquee{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  overflow:hidden; white-space:nowrap; padding:8px 0; margin-bottom:14px;
}
.marquee-track{ display:inline-flex; animation: scroll-left 22s linear infinite; font-size:12px; color: var(--text-faint); }
@keyframes scroll-left{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

.notice{
  display:flex; align-items:center; gap:9px;
  background: rgba(139,92,246,0.08); border:1px solid rgba(139,92,246,0.25);
  color: var(--violet-soft); font-size:12.5px; font-weight:600;
  padding:10px 16px; border-radius:10px; margin-bottom:22px;
}
.notice .ic-info::before{ background: var(--violet-soft); }

.hero{
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap:30px; align-items:center;
  margin-bottom:36px;
}
.badge{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.04em;
  color: var(--gold); background: rgba(244,185,66,0.10); border:1px solid rgba(244,185,66,0.3);
  padding:6px 12px; border-radius:99px; margin-bottom:18px;
}
.hero-copy h1{
  font-size:44px; line-height:1.08; font-weight:800; letter-spacing:-0.02em; margin:0 0 18px;
}
.hero-copy p{
  font-size:15.5px; line-height:1.65; color: var(--text-dim); max-width:520px; margin:0 0 24px;
}
.stages{ display:flex; gap:10px; margin-bottom:26px; flex-wrap:wrap; }
.stage{
  background: var(--panel); border:1px solid var(--border); border-radius:10px;
  padding:9px 14px; display:flex; flex-direction:column; gap:2px;
}
.stage-tag{ font-size:9.5px; font-weight:800; letter-spacing:.08em; color: var(--text-faint); }
.stage-name{ font-size:13px; font-weight:700; }
.stage:first-child .stage-tag{ color: var(--gold); }
.cta-row{ display:flex; gap:12px; }

.hero-art{ position:relative; display:flex; justify-content:center; align-items:center; }
.rings{ width:100%; max-width:420px; }
.mascot-vault{ animation: float 5s ease-in-out infinite; transform-origin: 210px 150px; }
.mascot-coin{ animation: float 4.2s ease-in-out infinite 0.3s; transform-origin: 120px 290px; }
.mascot-chart{ animation: float 4.8s ease-in-out infinite 0.6s; transform-origin: 320px 300px; }
@keyframes float{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }

.float-chip{
  position:absolute; font-size:12px; font-weight:700; padding:6px 12px; border-radius:99px;
  background: var(--panel-2); border:1px solid var(--border); box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.chip-1{ top:12%; right:8%; color: var(--green); animation: float 5s ease-in-out infinite; }
.chip-2{ bottom:18%; left:2%; color: var(--gold); animation: float 4.5s ease-in-out infinite 0.4s; }

.panels{
  display:grid; grid-template-columns: 1.6fr 1fr; gap:20px; margin-bottom:30px;
}
.panel{
  background: var(--panel); border:1px solid var(--border); border-radius: var(--radius);
  padding:20px;
}
.panel-wide{ min-width:0; }
.panel-head{
  display:flex; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap;
}
.panel-head h2{ font-size:16px; margin:0; font-weight:700; }
.panel-sub{ font-size:12px; color: var(--text-faint); flex:1; }
.tabs{ display:flex; gap:4px; background: rgba(255,255,255,0.04); padding:3px; border-radius:9px; }
.tab{
  border:none; background:none; color: var(--text-faint); font-size:12px; font-weight:600;
  padding:6px 12px; border-radius:7px; cursor:pointer; font-family:inherit;
}
.tab.active{ background: var(--panel-2); color: var(--text); }

.table-head{
  display:grid; grid-template-columns: 24px 1.2fr 1fr 1fr 1fr 1fr 1fr;
  font-size:10.5px; font-weight:700; letter-spacing:.05em; color: var(--text-faint);
  padding: 0 10px 10px; border-bottom:1px solid var(--border);
}
.table-empty{
  display:flex; align-items:center; gap:8px; justify-content:center;
  color: var(--text-faint); font-size:13px; padding: 42px 0;
}
.table-empty .ic-clock::before{ background: var(--text-faint); }

.live-dot{
  margin-left:auto; font-size:11px; color: var(--green); font-weight:700;
  display:flex; align-items:center; gap:6px;
}
.live-dot::before{ content:''; width:6px; height:6px; border-radius:50%; background: var(--green); box-shadow:0 0 6px var(--green); }
.fills-empty{
  display:flex; align-items:center; gap:8px; justify-content:center;
  color: var(--text-faint); font-size:13px; padding: 30px 0; margin-bottom:14px;
  border-bottom:1px solid var(--border);
}
.fills-empty .ic-wave::before{ background: var(--text-faint); }
.grad-row, .idle-row{
  display:flex; align-items:center; gap:10px; font-size:12px; color: var(--text-dim);
  padding: 8px 0;
}

.explainer{
  border-top:1px solid var(--border); padding-top:22px; margin-bottom:22px;
}
.explainer p{ font-size:13px; line-height:1.7; color: var(--text-faint); max-width:820px; }

.footer{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  font-size:11.5px; color: var(--text-faint); padding-top:16px; border-top:1px solid var(--border);
}
.footer-links{ display:flex; gap:18px; }
.footer-links a{ color: var(--text-faint); text-decoration:none; }
.footer-links a:hover{ color: var(--text); }

/* View switching */
.view{ display:none; }
.view.active{ display:block; }

.page-head{ margin-bottom:26px; max-width:640px; }
.page-head h1{ font-size:34px; line-height:1.1; font-weight:800; letter-spacing:-0.02em; margin:0 0 10px; }
.page-head p{ font-size:14.5px; line-height:1.6; color: var(--text-dim); margin:0; }

/* Launch form */
.launch-form{
  background: var(--panel); border:1px solid var(--border); border-radius: var(--radius);
  padding:22px; display:flex; flex-direction:column; gap:16px; max-width:520px; margin-bottom:26px;
}
.form-row{ display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:12px; font-weight:700; color: var(--text-dim); letter-spacing:.03em; }
.form-row input{
  background: var(--panel-2); border:1px solid var(--border); border-radius:10px;
  padding:11px 14px; color: var(--text); font-size:14px; font-family:inherit; outline:none;
  transition: border-color .15s;
}
.form-row input:focus{ border-color: var(--violet); }
.form-row input::placeholder{ color: var(--text-faint); }
.form-note{
  display:flex; align-items:flex-start; gap:8px;
  font-size:12px; line-height:1.6; color: var(--text-faint);
  background: rgba(139,92,246,0.06); border:1px solid rgba(139,92,246,0.2);
  padding:10px 12px; border-radius:10px;
}
.form-note .ic-info{ flex-shrink:0; margin-top:2px; }
.form-note .ic-info::before{ background: var(--violet-soft); }

.queue-panel{
  background: var(--panel); border:1px solid var(--border); border-radius: var(--radius);
  padding:20px; max-width:520px;
}
.queue-list{ display:flex; flex-direction:column; gap:8px; }
.queue-item{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: var(--panel-2); border:1px solid var(--border); border-radius:10px;
  padding:10px 14px; font-size:13px;
}
.queue-item .q-ticker{ font-weight:800; color: var(--gold); }
.queue-item .q-name{ color: var(--text-dim); flex:1; padding:0 10px; }
.queue-item .q-time{ color: var(--text-faint); font-size:11px; }

.link-btn{
  background:none; border:none; padding:0; margin:0; cursor:pointer; font-family:inherit;
  color: var(--gold); font-size:inherit; font-weight:700; text-decoration:underline;
  text-underline-offset:2px;
}
.link-btn:hover{ color: var(--violet-soft); }

/* Auctions table */
.auctions-head{
  display:grid; grid-template-columns: 24px 1.2fr 1fr 1fr 1fr;
  font-size:10.5px; font-weight:700; letter-spacing:.05em; color: var(--text-faint);
  padding: 0 10px 10px; border-bottom:1px solid var(--border);
}

/* Vault */
.vault-stats{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-bottom:20px;
}

/* Toast */
.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background: var(--panel-2); border:1px solid var(--border); border-radius:12px;
  padding:12px 20px; font-size:13px; font-weight:600; color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity:0; pointer-events:none; transition: opacity .25s, transform .25s;
  z-index:100;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width: 980px){
  .shell{ grid-template-columns:1fr; }
  .sidebar{ flex-direction:row; overflow-x:auto; border-right:none; border-bottom:1px solid var(--border); }
  .nav{ flex-direction:row; }
  .widget{ min-width:180px; }
  .chain-status{ margin-top:0; }
  .hero{ grid-template-columns:1fr; }
  .panels{ grid-template-columns:1fr; }
  .topbar{ flex-wrap:wrap; }
  .hero-copy h1{ font-size:34px; }
  .vault-stats{ grid-template-columns:1fr; }
  .auctions-head{ grid-template-columns: 20px 1fr 1fr; }
  .auctions-head span:nth-child(4), .auctions-head span:nth-child(5){ display:none; }
}
