:root {
  --bg: #0a0a0a;
  --panel: rgba(18, 18, 20, 0.74);
  --panel-strong: rgba(22, 22, 26, 0.92);
  --stroke: rgba(255, 255, 255, 0.10);
  --soft-stroke: rgba(255, 255, 255, 0.065);
  --text: #f5f5f7;
  --muted: #85858f;
  --orange: #ff9500;
  --orange-2: #ffb23e;
  --blue: #3b82ff;
  --purple: #a855f7;
  --green: #20e881;
  --red: #ff4d5e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: Inter, "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 149, 0, 0.16), transparent 36%),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 255, 0.12), transparent 30%),
    radial-gradient(circle at 70% 78%, rgba(168, 85, 247, 0.12), transparent 34%),
    linear-gradient(135deg, #050505 0%, #0a0a0a 45%, #070707 100%);
  overflow-x: hidden;
}

.scene-glow {
  position: fixed;
  pointer-events: none;
  filter: blur(46px);
  opacity: .8;
  z-index: 0;
}
.scene-glow-a { width: 420px; height: 420px; left: -160px; top: 90px; background: rgba(255,149,0,.22); }
.scene-glow-b { width: 520px; height: 520px; right: -210px; bottom: -120px; background: rgba(255,149,0,.10); }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.browser-shell {
  position: relative;
  z-index: 2;
  width: min(1780px, calc(100vw - 40px));
  margin: 24px auto;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(6, 6, 7, .72);
  box-shadow: 0 0 0 1px rgba(255,149,0,.06), 0 50px 160px rgba(0,0,0,.8);
  backdrop-filter: blur(22px);
}
.browser-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-bottom: 1px solid var(--soft-stroke);
}
.traffic-lights { display: flex; gap: 8px; }
.traffic-lights span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.traffic-lights span:nth-child(1) { background: #ff5f57; }
.traffic-lights span:nth-child(2) { background: #ffbd2e; }
.traffic-lights span:nth-child(3) { background: #28c840; }
.address-pill {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #a7a7ad;
  font-size: 13px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}
.browser-dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,149,0,.12); box-shadow: inset 0 0 0 1px rgba(255,149,0,.25); }

.app-frame { padding: 28px; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.logo-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(135deg, #ff9500, #ef6b00);
  box-shadow: 0 0 32px rgba(255,149,0,.38), inset 0 0 0 1px rgba(255,255,255,.28);
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(24px, 2.3vw, 38px); letter-spacing: -.05em; font-weight: 900; }
.brand p { margin-top: 5px; color: #a9a9b2; font-weight: 600; letter-spacing: .02em; }
.status-cluster { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.online-chip, .wallet-chip, .refresh-time, .refresh-btn, .live-badge, .quiet-chip {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 14px;
  color: #dddde4;
  font-weight: 700;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.wallet-chip { color: var(--orange-2); border-color: rgba(255,149,0,.24); background: rgba(255,149,0,.09); }
.refresh-time { color: #9797a2; font-size: 14px; }
.refresh-time strong { color: #fff; }
.pulse, .live-badge span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(32,232,129,.12), 0 0 18px rgba(32,232,129,.8);
}
.refresh-btn {
  cursor: pointer;
  color: #0a0a0a;
  border: 0;
  background: linear-gradient(135deg, #ffb23e, #ff9500 58%, #ef6b00);
  box-shadow: 0 14px 34px rgba(255,149,0,.25);
}
.refresh-btn svg { width: 16px; fill: currentColor; transition: transform .45s ease; }
.refresh-btn:hover svg { transform: rotate(180deg); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.stat-card {
  position: relative;
  isolation: isolate;
  min-height: 142px;
  padding: 21px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), rgba(255,255,255,.05), transparent 70%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 160px; height: 160px; right: -56px; top: -60px;
  border-radius: 50%; background: var(--accent); opacity: .18; filter: blur(12px); z-index: -1;
}
.stat-orange { --accent: var(--orange); }
.stat-blue { --accent: var(--blue); }
.stat-purple { --accent: var(--purple); }
.stat-green { --accent: var(--green); }
.stat-label { color: #b2b2bb; font-weight: 700; font-size: 14px; }
.stat-card strong { display: block; margin-top: 13px; font-size: clamp(25px, 2vw, 34px); letter-spacing: -.05em; white-space: nowrap; }
.stat-card small { display: block; margin-top: 13px; color: #80808b; font-weight: 600; }

.tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
  margin-bottom: 18px;
}
.tab {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #a5a5ad;
  font: 800 14px var(--font);
  background: transparent;
  transition: .25s ease;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.tab.active {
  color: #130b00;
  background: linear-gradient(135deg, #ffc15f, var(--orange));
  box-shadow: 0 12px 34px rgba(255,149,0,.28), inset 0 1px 0 rgba(255,255,255,.35);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1.55fr) minmax(460px, .85fr);
  gap: 18px;
  align-items: start;
}
.side-stack { display: grid; gap: 18px; }
.panel {
  position: relative;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(12,12,14,.82);
  border: 1px solid rgba(255,255,255,.105);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 16% 0, rgba(255,149,0,.11), transparent 28%);
  pointer-events: none;
}
.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 16px;
}
.panel-head.compact { padding-bottom: 14px; }
.eyebrow { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; text-shadow: 0 0 16px rgba(255,149,0,.5); }
h2 { font-size: 22px; letter-spacing: -.04em; }
.toolbar { display: flex; align-items: center; gap: 12px; }
.search-box {
  width: 260px; height: 42px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.09);
}
.search-box svg { width: 17px; fill: #85858f; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 600 14px var(--font); }
.search-box input::placeholder { color: #777783; }
.token-count { height: 42px; display: inline-flex; align-items: center; border-radius: 14px; padding: 0 13px; color: #a5a5ad; background: rgba(255,149,0,.07); border: 1px solid rgba(255,149,0,.18); font-weight: 700; }
.token-count strong { color: #fff; margin-right: 2px; }
.table-wrap { position: relative; z-index: 1; padding: 0 12px 14px; }
.token-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 14px; }
th { color: #777783; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 0 10px 7px; }
th:nth-child(1), td:nth-child(1) { width: 48px; text-align: center; color: #777783; }
th:nth-child(7), td:nth-child(7) { width: 92px; text-align: right; }
td {
  padding: 10px;
  background: rgba(255,255,255,.032);
  border-top: 1px solid rgba(255,255,255,.055);
  border-bottom: 1px solid rgba(255,255,255,.055);
  font-weight: 750;
  white-space: nowrap;
}
td:first-child { border-left: 1px solid rgba(255,255,255,.055); border-radius: 16px 0 0 16px; }
td:last-child { border-right: 1px solid rgba(255,255,255,.055); border-radius: 0 16px 16px 0; }
.token-table tr:hover td { background: rgba(255,149,0,.075); border-color: rgba(255,149,0,.17); }
td:nth-child(2) { display: flex; align-items: center; gap: 11px; }
td strong { display: block; font-size: 14px; }
td small { display: block; margin-top: 3px; color: #777783; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.coin-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  background: radial-gradient(circle at 30% 20%, #ffc15f, #ff9500 48%, #9b4d00 100%);
  box-shadow: 0 0 22px rgba(255,149,0,.25), inset 0 1px 0 rgba(255,255,255,.32);
  font-weight: 900;
}
.up { color: var(--green); text-shadow: 0 0 16px rgba(32,232,129,.24); }
.down { color: var(--red); text-shadow: 0 0 16px rgba(255,77,94,.24); }
td button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255,149,0,.26);
  border-radius: 11px;
  color: var(--orange-2);
  background: rgba(255,149,0,.09);
  font: 800 13px var(--font);
  cursor: pointer;
}

.mint-panel { min-height: 418px; }
.live-badge { height: 32px; padding: 0 11px; font-size: 12px; color: #e9fff3; background: rgba(32,232,129,.075); border-color: rgba(32,232,129,.2); }
.live-badge span { width: 7px; height: 7px; }
.rune-card {
  position: relative;
  z-index: 1;
  margin: 0 18px 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.085);
}
.primary-rune { border-color: rgba(255,149,0,.2); box-shadow: 0 0 26px rgba(255,149,0,.08); }
.rune-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rune-title span, .rune-metrics span { color: #85858f; font-size: 12px; font-weight: 800; }
.rune-title strong { color: var(--orange-2); font-size: 22px; letter-spacing: -.04em; }
.rune-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rune-metrics div { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.06); }
.rune-metrics strong { display: block; margin-top: 4px; font-size: 20px; }
.dual-progress { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.dual-progress span { display: block; height: 100%; }
.dual-progress .blue { width: 64%; background: linear-gradient(90deg, #1f6fff, #67adff); box-shadow: 0 0 18px rgba(59,130,255,.45); }
.dual-progress .orange { width: 36%; background: linear-gradient(90deg, #ff7b00, #ffbd3d); box-shadow: 0 0 18px rgba(255,149,0,.45); }
.dual-progress.slim { height: 8px; }
.mint-list { position: relative; z-index: 1; margin: 14px 18px 18px; display: grid; gap: 7px; }
.mint-row {
  display: grid;
  grid-template-columns: .9fr .7fr .8fr .9fr 1.1fr .8fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  color: #d6d6dc;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.055);
  font-size: 12px;
  font-weight: 700;
}
.mint-row.head { color: #777783; background: transparent; border: 0; min-height: 24px; }
.mint-row b { justify-self: start; border-radius: 999px; padding: 4px 8px; font-size: 11px; }
.queue { color: var(--orange-2); background: rgba(255,149,0,.1); }
.done { color: var(--green); background: rgba(32,232,129,.09); }

.gas-panel, .alert-panel { min-height: 255px; }
.mini-orbit { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,149,0,.32); box-shadow: 0 0 22px rgba(255,149,0,.16), inset 0 0 18px rgba(255,149,0,.08); position: relative; }
.mini-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); right: 1px; top: 5px; box-shadow: 0 0 14px var(--orange); }
.gas-content { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; padding: 0 18px; }
.gas-inputs { display: grid; gap: 10px; }
.gas-inputs label {
  min-height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 13px;
  border-radius: 14px;
  color: #8d8d97;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.065);
  font-size: 13px;
  font-weight: 800;
}
.gas-inputs strong { color: #fff; }
.estimate-card { padding: 12px; border-radius: 18px; background: rgba(255,149,0,.055); border: 1px solid rgba(255,149,0,.16); }
dl { margin: 0; display: grid; gap: 8px; }
dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.055); }
dl div:last-child { border: 0; padding-bottom: 0; }
dt { color: #8d8d97; font-size: 12px; font-weight: 800; }
dd { margin: 0; color: #fff; font-weight: 900; }
.success-tip { position: relative; z-index: 1; margin: 14px 18px 18px; padding: 13px 15px; border-radius: 16px; color: #caffdf; background: linear-gradient(135deg, rgba(32,232,129,.18), rgba(32,232,129,.06)); border: 1px solid rgba(32,232,129,.22); font-weight: 900; box-shadow: 0 0 26px rgba(32,232,129,.08); }

.quiet-chip { height: 32px; color: #a5a5ad; font-size: 12px; }
.alert-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .9fr; gap: 14px; padding: 0 18px 18px; }
.conditions { display: grid; gap: 10px; }
.condition { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px; border-radius: 17px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.065); }
.condition > span { width: 36px; height: 22px; border-radius: 999px; background: rgba(255,149,0,.18); border: 1px solid rgba(255,149,0,.28); position: relative; }
.condition > span::after { content: ""; position: absolute; width: 16px; height: 16px; right: 3px; top: 2px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px rgba(255,149,0,.8); }
.condition strong { display: block; font-size: 14px; }
.condition small { display: block; margin-top: 4px; color: #7b7b86; font-weight: 700; }
.empty-alert { min-height: 154px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; border-radius: 20px; background: radial-gradient(circle at center, rgba(255,149,0,.09), rgba(255,255,255,.025)); border: 1px dashed rgba(255,149,0,.22); }
.bell { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,149,0,.11); box-shadow: inset 0 0 0 1px rgba(255,149,0,.22), 0 0 26px rgba(255,149,0,.09); font-size: 24px; }
.empty-alert span { color: #85858f; font-size: 13px; font-weight: 700; }

@media (max-width: 1280px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .browser-shell { width: min(100vw - 18px, 1780px); margin: 9px auto; border-radius: 22px; }
  .app-frame { padding: 16px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { display: block; }
  .side-stack { margin-top: 18px; }
  .panel-head { flex-direction: column; align-items: stretch; }
  .toolbar, .tabs { overflow-x: auto; }
  .search-box { width: min(100%, 320px); }
  .table-wrap { overflow-x: auto; }
  .token-table { min-width: 820px; }
  .gas-content, .alert-content { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .stats-grid { grid-template-columns: 1fr; }
  .brand { align-items: flex-start; }
  .logo-box { width: 50px; height: 50px; }
  .mint-row { grid-template-columns: repeat(3, 1fr); padding: 8px; }
  .mint-row.head { display: none; }
}

/* Tab pages: only the selected module is visible */
.panel.is-hidden { display: none !important; }
.panel.active-panel { display: block; }
.dashboard-grid.focus-mode {
  grid-template-columns: 1fr;
}
.dashboard-grid.focus-mode .side-stack.single-mode {
  display: block;
}
.dashboard-grid.focus-mode .panel {
  min-height: min(720px, calc(100vh - 260px));
}
.dashboard-grid.focus-mode .mint-panel,
.dashboard-grid.focus-mode .gas-panel,
.dashboard-grid.focus-mode .alert-panel {
  width: 100%;
}
.dashboard-grid.focus-mode .mint-panel .mint-list {
  margin-top: 18px;
}
.dashboard-grid.focus-mode .mint-row {
  min-height: 48px;
  font-size: 14px;
}
.dashboard-grid.focus-mode .gas-content,
.dashboard-grid.focus-mode .alert-content {
  padding-top: 20px;
  gap: 22px;
}
.dashboard-grid.focus-mode .gas-inputs label {
  min-height: 70px;
  font-size: 15px;
}
.dashboard-grid.focus-mode .estimate-card {
  padding: 22px;
}
.dashboard-grid.focus-mode dl {
  gap: 16px;
}
.dashboard-grid.focus-mode dl div {
  padding-bottom: 16px;
}
.dashboard-grid.focus-mode dt,
.dashboard-grid.focus-mode dd {
  font-size: 16px;
}
.dashboard-grid.focus-mode .condition {
  min-height: 96px;
}
.dashboard-grid.focus-mode .empty-alert {
  min-height: 240px;
}
