:root {
  color-scheme: dark;
  --bg: #0a0e17;
  --bg-soft: #111827;
  --panel: rgba(18, 27, 45, 0.88);
  --panel-strong: rgba(26, 36, 58, 0.96);
  --line: rgba(0, 212, 255, 0.22);
  --line-strong: rgba(0, 212, 255, 0.48);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.62);
  --cyan: #00d4ff;
  --green: #00ff88;
  --purple: #7c3aed;
  --red: #ef4444;
  --gold: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

body.light {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-soft: #eef2f7;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(14, 116, 144, 0.16);
  --line-strong: rgba(14, 116, 144, 0.34);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.14), transparent 34%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.14), transparent 32%),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  color: var(--text);
  font-family: "SF Pro Display", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1540px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  backdrop-filter: blur(20px);
}

.mobile-bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 18;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 16px;
  background: rgba(10, 14, 23, 0.92);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.18);
  backdrop-filter: blur(18px);
}

.bottom-nav-link {
  display: grid;
  min-height: 40px;
  place-items: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 800;
}

.bottom-nav-icon {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.bottom-nav-link.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(124, 58, 237, 0.16));
}

.brand,
.top-actions,
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.28), rgba(124, 58, 237, 0.22));
  color: var(--green);
  font-weight: 800;
}

.brand strong {
  display: block;
  color: #41f7ff;
  background: linear-gradient(90deg, #35f5ff 0%, #28ff9d 28%, #a855f7 58%, #ffcc23 82%, #35f5ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: calc(1rem + 4px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 7px rgba(0, 212, 255, 0.82),
    0 0 16px rgba(40, 255, 157, 0.5),
    0 0 25px rgba(168, 85, 247, 0.46),
    0 0 36px rgba(255, 204, 35, 0.22);
  white-space: nowrap;
  animation: brandNeonFlow 5s linear infinite;
}

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

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav {
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link,
.ghost-btn,
.primary-btn,
.select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.nav-link.active,
.ghost-btn:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.22);
}

.primary-btn {
  border-color: rgba(0, 255, 136, 0.62);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.96), rgba(124, 58, 237, 0.88) 54%, rgba(0, 255, 136, 0.9));
  color: #04111c;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.28), 0 0 34px rgba(0, 255, 136, 0.16);
}

.primary-btn:hover,
.small-btn:hover,
.provider-grid button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.34), 0 0 38px rgba(124, 58, 237, 0.18);
}

.select {
  background: var(--panel-strong);
}

.full {
  width: 100%;
}

.screen {
  display: none;
  padding: 14px 0 40px;
}

.screen.active {
  display: block;
}

.market-hero,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.chart-panel,
.summary-panel,
.table-panel,
.content-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(0, 212, 255, 0.055), rgba(124, 58, 237, 0.045) 42%, transparent),
    var(--panel);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 212, 255, 0.08), 0 0 28px rgba(0, 212, 255, 0.08);
  padding: 20px;
}

.chart-panel::before,
.summary-panel::before,
.table-panel::before,
.content-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), transparent) top left / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.35), transparent) top right / 1px 100% no-repeat;
  opacity: 0.78;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.section-title.compact {
  align-items: center;
}

.table-panel > .section-title.compact h2 {
  font-size: 1.4rem;
}

.asset-view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.view-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.view-tabs button.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.18);
}

.asset-view-select {
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.admin-tabs button {
  min-height: 38px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.admin-tabs button.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(124, 58, 237, 0.16));
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: grid;
}

.two-column.admin-tab-panel.active {
  display: grid;
}

.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  margin-bottom: 0;
}

#featuredPair {
  font-size: clamp(1rem, 2vw, 2.2rem);
}

h2 {
  margin-bottom: 12px;
}

.price-stack {
  text-align: right;
}

.price-stack strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.muted {
  color: var(--muted);
}

.pair-tabs,
.provider-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.market-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.market-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.75;
}

.market-stat span,
.pair-tabs small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.market-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--text);
}

.pair-tabs button,
.provider-grid button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.pair-tabs button {
  min-width: 104px;
  text-align: left;
}

.pair-tabs span {
  display: block;
  font-weight: 800;
}

.pair-tabs button.active,
.provider-grid button:hover {
  border-color: var(--green);
  color: var(--green);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(0, 255, 136, 0.1));
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.chart-mode-tabs,
.interval-tabs {
  display: flex;
  gap: 8px;
}

.chart-mode-tabs button,
.interval-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.chart-mode-tabs button.active,
.interval-tabs button.active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.22);
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.74fr);
  gap: 14px;
  align-items: stretch;
}

.kline-shell,
.depth-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.18));
  overflow: hidden;
}

.kline-shell {
  min-height: 420px;
}

#klineChart {
  display: block;
  width: 100%;
  height: 420px;
  background: rgba(0, 0, 0, 0.2);
}

.depth-panel {
  padding: 14px;
}

.depth-panel h3 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 1rem;
}

#depthChart {
  display: block;
  width: 100%;
  height: 170px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-book-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 12px;
  font-size: 0.82rem;
}

.order-book-mini .order-head {
  display: contents;
  color: var(--muted);
}

.order-book-mini div:not(.order-head) {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.order-book-mini small {
  color: var(--muted);
}

.order-book-mini .bids {
  color: var(--green);
}

.order-book-mini .asks {
  color: var(--red);
}

.summary-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#adminSummaryGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.stat-grid div,
.profile-grid div,
.asset-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

#adminSummaryGrid div {
  min-height: 58px;
  border-color: rgba(0, 212, 255, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
}

.asset-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--asset-accent, var(--cyan)) 38%, rgba(255, 255, 255, 0.08));
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--asset-accent, var(--cyan)) 26%, transparent), transparent 44%),
    linear-gradient(145deg, color-mix(in srgb, var(--asset-accent, var(--cyan)) 16%, rgba(255, 255, 255, 0.035)), rgba(255, 255, 255, 0.035));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.asset-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -42px auto;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--asset-accent, var(--cyan)) 22%, transparent);
  filter: blur(4px);
  opacity: 0.72;
  pointer-events: none;
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--asset-accent, var(--cyan)) 78%, white 8%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--asset-accent, var(--cyan)) 32%, transparent), 0 14px 34px color-mix(in srgb, var(--asset-accent, var(--cyan)) 22%, transparent);
}

.stat-grid span,
.profile-grid span,
.asset-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

#adminSummaryGrid span {
  font-size: 0.72rem;
}

.stat-grid strong,
.profile-grid strong,
.asset-card strong {
  display: block;
  margin-top: 6px;
  word-break: break-word;
}

#adminSummaryGrid strong {
  margin-top: 4px;
  font-size: 1.02rem;
}

.table-panel {
  margin-top: 18px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.asset-card strong {
  color: var(--text);
  font-size: 1.2rem;
}

.asset-card strong:first-of-type {
  color: color-mix(in srgb, var(--asset-accent, var(--cyan)) 82%, white 18%);
  text-shadow: 0 0 16px color-mix(in srgb, var(--asset-accent, var(--cyan)) 38%, transparent);
}

.asset-list {
  display: grid;
  gap: 6px;
}

.asset-list-head,
.asset-row {
  display: grid;
  grid-template-columns: 48px minmax(70px, 0.7fr) minmax(150px, 1.2fr) minmax(110px, 1fr) minmax(82px, 0.7fr) minmax(100px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-width: 760px;
}

.asset-list-head {
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.asset-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--asset-accent, var(--cyan)) 14%, transparent), rgba(255, 255, 255, 0.035));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.asset-row:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--asset-accent, var(--cyan)) 68%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 18px color-mix(in srgb, var(--asset-accent, var(--cyan)) 22%, transparent);
}

.asset-row span {
  color: var(--muted);
}

.asset-row strong {
  color: var(--text);
}

.asset-row strong:first-of-type {
  color: color-mix(in srgb, var(--asset-accent, var(--cyan)) 84%, white 16%);
}

.asset-list {
  overflow-x: auto;
  padding-bottom: 4px;
}

.asset-card .card-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.small-input {
  min-height: 38px;
  padding: 8px 10px;
}

.small-btn {
  min-height: 34px;
  border: 1px solid rgba(0, 212, 255, 0.36);
  border-radius: 9px;
  padding: 7px 10px;
  color: #04111c;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(124, 58, 237, 0.78), rgba(0, 255, 136, 0.72));
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.small-btn:hover {
  border-color: rgba(0, 255, 136, 0.68);
  color: #04111c;
  filter: brightness(1.08);
}

.mini-ledger {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-ledger .entry {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  word-break: break-word;
}

.admin-record-list {
  margin-top: 12px;
}

.admin-record-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-record {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(130px, 0.9fr) minmax(180px, 1.25fr) minmax(180px, 1.25fr) minmax(180px, 1.25fr) minmax(140px, 0.9fr) minmax(160px, auto);
  gap: 12px;
  align-items: center;
}

.admin-record span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.admin-record strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  word-break: break-all;
}

.record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small-btn.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(124, 58, 237, 0.78));
  border-color: rgba(239, 68, 68, 0.62);
  color: #fff;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.ops-card .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-alerts {
  order: 1;
}

.ops-tasks {
  order: 2;
}

.ops-settings {
  order: 3;
  grid-column: 1 / -1;
}

.ops-multisig {
  order: 4;
}

.ops-address {
  order: 5;
}

.ops-admin-permissions {
  order: 6;
  grid-column: 1 / -1;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.permission-option {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.permission-option input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--cyan);
}

.permission-option span {
  font-size: 0.86rem;
}

.swap-box,
.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12), 0 0 18px rgba(0, 212, 255, 0.16);
}

.file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker .ghost-btn {
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.file-picker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-select {
  width: 100%;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.12)),
    var(--panel-strong);
}

.wallet-card {
  min-height: 320px;
}

.member-only {
  display: none;
}

body.logged-in .member-only {
  display: inline-flex;
}

.admin-gate {
  width: 28px;
  min-height: 28px;
  padding: 0;
  opacity: 0.28;
}

.admin-gate:hover {
  opacity: 1;
}

.admin-screen .two-column {
  margin-top: 18px;
}

.program-page {
  padding-top: 18px;
}

.program-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.program-title h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #2fdcff;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(47, 220, 255, 0.28);
}

.program-title h2 em {
  color: #9b5cff;
  font-style: normal;
  font-size: 1.15rem;
}

.staking-page .program-title h2,
.shareholder-page .program-title h2 span:last-child {
  color: #e03aff;
}

.program-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.staking-icon::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 9px;
  left: 2px;
  top: 5px;
  border-radius: 8px;
  background: #27d7ff;
  box-shadow: 0 0 20px rgba(39, 215, 255, 0.55);
  transform: rotate(42deg);
}

.staking-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 27px;
  left: 5px;
  top: 4px;
  border-radius: 8px;
  background: #27d7ff;
  transform: rotate(-42deg);
}

.shareholder-icon {
  background:
    linear-gradient(#27d7ff 0 0) 0 8px / 28px 22px no-repeat,
    linear-gradient(#27d7ff 0 0) 0 4px / 18px 10px no-repeat;
  filter: drop-shadow(0 0 14px rgba(39, 215, 255, 0.45));
}

.program-summary {
  position: relative;
  display: grid;
  min-height: 66px;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.38);
  border-radius: 20px;
  background: rgba(18, 20, 39, 0.92);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  margin-bottom: 22px;
  overflow: hidden;
}

.program-summary::before,
.program-summary::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.program-summary::before {
  width: 5px;
  height: 5px;
  top: -10px;
  left: 76%;
  background: #00eaff;
  box-shadow: 0 0 18px #00eaff;
}

.program-summary::after {
  width: 6px;
  height: 6px;
  right: 0;
  top: 50%;
  background: #7c3aed;
  box-shadow: 0 0 18px #7c3aed;
}

.shareholder-summary {
  min-height: 190px;
  align-content: center;
  gap: 4px;
}

.shareholder-summary span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.shareholder-summary strong {
  color: #10ffd0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.shareholder-summary small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.shareholder-summary b {
  color: #00d4ff;
  margin-top: 12px;
}

.staking-page .asset-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 20px;
}

.shareholder-page .asset-grid {
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 22px;
}

.shareholder-page #shareholderGrid {
  display: block;
}

.shareholder-summary {
  display: block;
  min-height: auto;
  place-items: stretch;
  border-radius: 16px;
  padding: 22px 20px 18px;
  background:
    linear-gradient(145deg, rgba(0, 212, 255, 0.075), rgba(124, 58, 237, 0.045) 48%, transparent),
    rgba(18, 20, 39, 0.94);
}

.shareholder-summary::before,
.shareholder-summary::after {
  display: none;
}

.shareholder-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.shareholder-register {
  min-width: 108px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b49ff, #8a62ff);
  color: #fff;
  box-shadow: 0 0 24px rgba(138, 98, 255, 0.38);
}

.shareholder-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 18px;
}

.shareholder-info-grid div {
  min-width: 0;
}

.shareholder-info-grid span,
.shareholder-level-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.shareholder-info-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
}

.shareholder-info-grid div:nth-child(2) strong,
.shareholder-info-grid div:nth-child(3) strong {
  color: var(--green);
}

.shareholder-info-grid div:nth-child(4) strong {
  color: #ffc400;
}

.shareholder-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.shareholder-level-row b {
  display: inline-grid;
  min-width: 38px;
  min-height: 31px;
  place-items: center;
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.shareholder-structure-panel {
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 16px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.045) 48%, transparent),
    rgba(18, 20, 39, 0.94);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.shareholder-ladder {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 0 2px;
  background: rgba(5, 11, 24, 0.34);
  border-radius: 10px;
}

.shareholder-tier {
  --tier-color: #00d4ff;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.42fr);
  align-items: center;
  gap: 10px;
  width: var(--tier-width);
  margin-inline: auto;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--tier-color) 62%, rgba(255, 255, 255, 0.12));
  border-radius: 6px;
  padding: 7px 10px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tier-color) 24%, rgba(255, 255, 255, 0.08)), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--tier-color) 10%, transparent);
}

.tier-7,
.tier-4 {
  --tier-color: #ffe000;
}

.tier-6 {
  --tier-color: #8eeaff;
}

.tier-5,
.tier-3 {
  --tier-color: #c9d2df;
}

.tier-2 {
  --tier-color: #f59e42;
}

.tier-1 {
  --tier-color: #35f5e6;
}

.tier-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.tier-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tier-color) 44%, transparent));
}

.shareholder-tier h3,
.shareholder-tier p {
  margin: 0;
}

.shareholder-tier h3 {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
}

.shareholder-tier p,
.tier-meta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
}

.tier-meta {
  text-align: right;
}

.tier-meta strong {
  display: block;
  color: var(--tier-color);
  font-size: 1rem;
  font-weight: 950;
}

.tier-actions {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  justify-content: center;
  transform: translate(-50%, -50%);
  width: 86px;
  z-index: 2;
}

.tier-actions .program-apply {
  width: 76px;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.shareholder-ops-panel,
.shareholder-issued-panel,
.shareholder-records-panel {
  margin-top: 20px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 16px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(0, 212, 255, 0.055), rgba(124, 58, 237, 0.055)),
    rgba(18, 20, 39, 0.88);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.055), 0 0 26px rgba(0, 212, 255, 0.065);
}

.shareholder-op-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.shareholder-op-tabs button,
.segmented-control button {
  min-height: 38px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.shareholder-op-tabs button.active,
.segmented-control button.active {
  color: #00eaff;
  border-color: rgba(0, 212, 255, 0.95);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.14);
}

.shareholder-op-body {
  display: grid;
  gap: 12px;
}

.shareholder-op-body label span {
  font-size: 0.82rem;
  font-weight: 800;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shareholder-op-balance,
.shareholder-op-balance-row {
  margin: 0;
  color: #00eaff;
  font-size: 0.82rem;
  font-weight: 800;
}

.shareholder-op-balance-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.shareholder-op-confirm {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(42, 255, 130, 0.4);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, #2bd160, #16a34a);
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.22), 0 0 18px rgba(34, 197, 94, 0.2);
  font-weight: 900;
  cursor: pointer;
}

.shareholder-issued-panel,
.shareholder-records-panel {
  padding-top: 16px;
}

.shareholder-empty-row {
  margin-top: 12px;
  border-radius: 10px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
}

.shareholder-record-table {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.shareholder-record-head,
.shareholder-record-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.shareholder-record-head {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.28);
}

.shareholder-record-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.85rem;
}

.program-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(0, 212, 255, 0.065), rgba(124, 58, 237, 0.055) 55%, rgba(0, 255, 136, 0.035)),
    rgba(18, 20, 39, 0.94);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.07), 0 0 28px rgba(0, 212, 255, 0.09);
  min-height: 212px;
  padding: 26px 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.7), transparent 45%, rgba(124, 58, 237, 0.45)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(0, 212, 255, 0.48), transparent 55%, rgba(0, 255, 136, 0.36)) left / 1px 100% no-repeat;
}

.program-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 255, 0.68);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.16), 0 18px 42px rgba(0, 212, 255, 0.12);
}

.staking-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  min-height: 298px;
}

.staking-card h3 {
  margin: 0;
  color: #f5a623;
  font-size: 1.14rem;
  font-weight: 900;
}

.staking-card strong {
  color: #00eaff;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: 0;
}

.staking-card p,
.shareholder-card p {
  margin: 0;
  color: #00ff88;
  font-weight: 900;
}

.stake-medal {
  position: relative;
  display: grid;
  width: 62px;
  height: 48px;
  place-items: end center;
}

.stake-medal::before {
  content: "";
  position: absolute;
  top: 0;
  width: 45px;
  height: 20px;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
  background: linear-gradient(90deg, #20ff4d, #5dff78 45%, #1a6dff 50%, #1de3ff);
  filter: drop-shadow(0 2px 2px #000);
}

.stake-medal span {
  position: relative;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #5e3216;
  background: #f4a45d;
  border: 3px solid #cf6c2b;
  font-weight: 900;
  font-size: 1rem;
  z-index: 1;
}

.stake-medal.silver::before {
  background: linear-gradient(90deg, #27d7ff, #a5f3ff 45%, #d8d8d8 50%, #27d7ff);
}

.stake-medal.silver span {
  color: #555;
  background: #d7d7d7;
  border-color: #909090;
}

.stake-medal.gold::before {
  background: linear-gradient(90deg, #ff391f, #ff765d 45%, #ffe066 50%, #ff391f);
}

.stake-medal.gold span {
  color: #5a3b00;
  background: #ffc400;
  border-color: #d49100;
}

.stake-medal.diamond::before {
  display: none;
}

.stake-medal.diamond span {
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 0;
  color: #32e9ff;
  background: transparent;
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(50, 233, 255, 0.5));
}

.program-apply {
  min-height: 38px;
  min-width: 100px;
  border: 0;
  border-radius: 999px;
  color: #05091a;
  background: linear-gradient(110deg, #22d7ef 0%, #52c4ff 48%, #6b49ff 74%, #8a62ff 100%);
  box-shadow: 0 0 34px rgba(34, 215, 239, 0.22);
  font-weight: 900;
  cursor: pointer;
}

.program-apply.wide {
  width: 100%;
}

.game-page {
  display: grid;
  gap: 18px;
}

.game-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.55fr);
  gap: 18px;
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 28% 18%, rgba(168, 85, 247, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(0, 212, 255, 0.06), rgba(255, 176, 64, 0.08) 48%, rgba(124, 58, 237, 0.07)),
    rgba(18, 20, 39, 0.94);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.wheel-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.game-pair {
  color: var(--cyan);
  font-weight: 900;
}

.wheel-stage {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(5, 11, 24, 0.42);
}

.wheel-pointer {
  position: absolute;
  top: 20px;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-top: 62px solid #ffcc23;
  filter: drop-shadow(0 0 12px rgba(255, 204, 35, 0.45));
}

.game-wheel {
  position: relative;
  width: min(74vw, 360px);
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    conic-gradient(
      from -22.5deg,
      #e64db2 0deg 45deg,
      #7b55f7 45deg 90deg,
      #435f74 90deg 135deg,
      #0bb5d1 135deg 180deg,
      #8ba0a7 180deg 225deg,
      #22c76b 225deg 270deg,
      #13a8ec 270deg 315deg,
      #f3ba22 315deg 360deg
    );
  box-shadow: 0 0 38px rgba(168, 85, 247, 0.42), inset 0 0 34px rgba(0, 0, 0, 0.34);
  transition: transform 1200ms cubic-bezier(0.18, 0.78, 0.22, 1);
}

.wheel-center {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 8px solid rgba(42, 76, 110, 0.92);
  border-radius: 50%;
  color: #10172a;
  background: linear-gradient(135deg, #ffd028, #f1a70b);
  font-weight: 950;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 86px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%) rotate(calc(var(--wheel-step) * 45deg)) translateY(-108px) rotate(calc(var(--wheel-step) * -45deg));
  transform-origin: center;
  pointer-events: none;
}

.wheel-label em {
  font-style: normal;
  font-size: 0.75rem;
}

.wheel-label-0 { --wheel-step: 0; }
.wheel-label-1 { --wheel-step: 1; }
.wheel-label-2 { --wheel-step: 2; }
.wheel-label-3 { --wheel-step: 3; }
.wheel-label-4 { --wheel-step: 4; }
.wheel-label-5 { --wheel-step: 5; }
.wheel-label-6 { --wheel-step: 6; }
.wheel-label-7 { --wheel-step: 7; }

.game-side {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: stretch;
  min-height: 390px;
}

.game-reward-banner {
  position: relative;
  grid-column: 1 / -1;
  min-height: 58px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 16px 13px 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 20, 49, 0.72)),
    rgba(0, 0, 0, 0.22);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
}

.game-reward-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #ff3d81, #ffce2e, #00ffa3, #00d4ff, #8b5cf6);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.34);
}

.game-reward-banner.reward {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 61, 129, 0.98), rgba(255, 206, 46, 0.98), rgba(0, 255, 163, 0.96), rgba(0, 212, 255, 0.98), rgba(139, 92, 246, 0.98)),
    rgba(0, 0, 0, 0.2);
  background-size: 240% 100%;
  box-shadow: 0 0 24px rgba(255, 206, 46, 0.28), 0 0 42px rgba(0, 212, 255, 0.22);
  font-size: 1.58rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42), 0 0 18px rgba(255, 255, 255, 0.36);
  animation: rewardPop 650ms ease both, rewardRainbow 2200ms linear infinite;
}

.game-reward-banner.reward::before {
  display: none;
}

.game-reward-banner.drawing {
  color: #00eaff;
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.16);
}

@keyframes rewardPop {
  0% {
    opacity: 0.68;
    transform: scale(0.92) translateY(7px);
  }
  55% {
    opacity: 1;
    transform: scale(1.05) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.game-stat,
.game-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.24);
}

.game-stat span,
.game-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.game-stat strong {
  display: block;
  margin-top: 5px;
  color: #3b82ff;
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  line-height: 1;
}

.game-stat:nth-of-type(1) strong {
  color: var(--green);
}

.game-stat:nth-of-type(2) strong {
  color: #ff4d6d;
}

.game-token-card {
  display: grid;
  place-items: center;
  min-height: 96px;
  border-color: rgba(255, 187, 64, 0.58);
  background:
    radial-gradient(circle at 78% 88%, rgba(236, 72, 153, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(165, 116, 55, 0.88), rgba(126, 69, 90, 0.86)),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 26px rgba(255, 221, 120, 0.06), 0 0 20px rgba(255, 187, 64, 0.1);
  text-align: center;
}

.game-token-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.game-token-card span b,
.game-token-card span em {
  font-style: normal;
}

.game-token-card strong {
  margin-top: 3px;
  color: #ffcf35;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  text-shadow: 0 0 18px rgba(255, 207, 53, 0.32);
}

.game-token-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
}

.game-spin-btn {
  grid-column: 1 / -1;
  min-height: 60px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #9b5cff, #6b49ff);
  box-shadow: 0 0 24px rgba(155, 92, 255, 0.32);
  font-size: 1.05rem;
  font-weight: 950;
  cursor: pointer;
}

.game-side .primary-btn,
.game-side .muted {
  grid-column: 1 / -1;
}

.game-activity-hub {
  display: grid;
  gap: 14px;
}

.game-activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-activity-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 8px 15px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.game-activity-tabs button.active {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.78);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.28);
}

.game-tab-panel {
  display: none;
}

.game-tab-panel.active {
  display: grid;
  gap: 18px;
}

.game-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 18px 22px 0;
  color: #2cff9a;
  background: linear-gradient(135deg, rgba(42, 96, 50, 0.82), rgba(52, 48, 61, 0.82));
}

.game-panel-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 950;
}

.game-panel-head span {
  color: #4f8cff;
  font-weight: 950;
}

.game-panel-head.task {
  color: #3ba7ff;
  border-color: rgba(59, 130, 246, 0.36);
  background: linear-gradient(135deg, rgba(56, 75, 83, 0.82), rgba(61, 51, 69, 0.82));
}

.game-panel-head.rank {
  color: #ffcc23;
  border-color: rgba(255, 204, 35, 0.42);
  background: linear-gradient(135deg, rgba(91, 81, 32, 0.82), rgba(77, 47, 41, 0.82));
}

.mall-grid,
.task-center-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(43, 84, 47, 0.82), rgba(47, 48, 58, 0.82) 58%, rgba(57, 43, 62, 0.82));
}

.mall-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 178px;
  border-radius: 9px;
  padding: 20px 16px 16px;
  background: rgba(2, 8, 16, 0.42);
  text-align: center;
}

.mall-icon {
  font-size: 2.55rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 204, 35, 0.28));
}

.mall-card h3,
.mall-card p {
  margin: 0;
}

.mall-card h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 950;
}

.mall-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.mall-card button {
  align-self: end;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(90deg, #f8c12f, #e58b0a);
  font-size: 0.76rem;
  font-weight: 950;
}

.mall-card button.pink {
  background: linear-gradient(90deg, #e24ca2, #ca246f);
}

.mall-card button.purple {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

.task-center-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: rgba(59, 130, 246, 0.36);
  background:
    radial-gradient(circle at 8% 5%, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(53, 72, 78, 0.82), rgba(51, 48, 61, 0.82) 58%, rgba(67, 45, 64, 0.82));
}

.task-center-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 128px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.task-center-card.yellow { border-left-color: #ffcc23; }
.task-center-card.pink { border-left-color: #e24ca2; }
.task-center-card.purple { border-left-color: #8b5cf6; }

.task-icon {
  font-size: 1.45rem;
}

.task-center-card h3,
.task-center-card p {
  margin: 0;
}

.task-center-card h3 {
  color: #fff;
  font-size: 0.96rem;
}

.task-center-card p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.task-center-card strong {
  display: block;
  margin-top: 12px;
  color: #ffcc23;
  font-size: 0.83rem;
}

.task-pill {
  align-self: start;
  border-radius: 999px;
  padding: 5px 10px;
  color: #2cff9a;
  background: rgba(34, 197, 94, 0.2);
  font-size: 0.68rem;
  font-weight: 950;
}

.task-center-card button {
  grid-column: 3;
  align-self: end;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 13px;
  color: #fff;
  background: #17c964;
  font-weight: 900;
}

.task-center-card small {
  grid-column: 3;
  align-self: end;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

.rank-podium {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 28px;
  min-height: 185px;
  border: 1px solid rgba(255, 204, 35, 0.42);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 24px 20px 10px;
  background: linear-gradient(135deg, rgba(91, 81, 32, 0.82), rgba(77, 47, 41, 0.82));
}

.rank-medal {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 78px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 900;
}

.rank-medal span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2.2rem;
}

.rank-medal.first span {
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, #ffef72, #f5b911);
  box-shadow: 0 0 30px rgba(255, 204, 35, 0.38);
}

.rank-medal.third span {
  background: radial-gradient(circle, #ff9f43, #d65a0b);
}

.rank-medal em {
  color: #00ff88;
  font-style: normal;
}

.rank-medal.first em,
.rank-medal.first b {
  color: #ffcc23;
}

.rank-table {
  display: grid;
  border: 1px solid rgba(255, 204, 35, 0.42);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.rank-table > div {
  display: grid;
  grid-template-columns: 0.35fr 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.rank-table > div:first-child {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.64);
  font-weight: 900;
}

.rank-table > div span:first-child {
  color: #ffcc23;
  font-weight: 950;
}

.rank-table em {
  color: #00ff88;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.game-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-challenge-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  border: 1px solid rgba(255, 186, 36, 0.38);
  border-radius: 9px;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(34, 197, 94, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(88, 70, 35, 0.78), rgba(65, 42, 52, 0.78) 58%, rgba(52, 31, 68, 0.72)),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 24px rgba(255, 186, 36, 0.08);
}

.game-challenge-card:nth-child(2) {
  background:
    radial-gradient(circle at 92% 10%, rgba(34, 197, 94, 0.15), transparent 30%),
    linear-gradient(135deg, rgba(84, 72, 34, 0.76), rgba(65, 43, 46, 0.76) 58%, rgba(55, 32, 64, 0.72)),
    rgba(0, 0, 0, 0.28);
}

.game-challenge-card:nth-child(3) {
  background:
    radial-gradient(circle at 92% 10%, rgba(34, 197, 94, 0.15), transparent 30%),
    linear-gradient(135deg, rgba(85, 62, 28, 0.76), rgba(75, 43, 54, 0.76) 58%, rgba(68, 31, 72, 0.72)),
    rgba(0, 0, 0, 0.28);
}

.game-challenge-card:nth-child(4) {
  grid-column: span 1;
}

.challenge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.challenge-head h3 {
  margin: 0;
  color: #ffcc23;
  font-size: 1rem;
  font-weight: 950;
}

.challenge-head span {
  border-radius: 999px;
  padding: 4px 10px;
  color: #22ff93;
  background: rgba(34, 197, 94, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
}

.game-challenge-card p {
  margin: 0;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 700;
}

.challenge-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
}

.challenge-meta b,
.challenge-meta em {
  font-style: normal;
}

.challenge-meta .reward-line {
  color: #00ff88;
}

.challenge-meta span:nth-child(even) {
  text-align: right;
}

.challenge-timer {
  border-radius: 7px;
  padding: 10px 12px;
  color: #ffcc23;
  background: rgba(255, 255, 255, 0.075);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 950;
}

.challenge-timer b {
  font-weight: 950;
}

.game-challenge-card button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  color: #16110a;
  background: linear-gradient(180deg, #ffc72d, #f59e0b);
  box-shadow: 0 4px 0 rgba(146, 64, 14, 0.44), 0 0 20px rgba(245, 158, 11, 0.12);
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.game-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.game-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 1.55rem;
}

.game-metrics div:nth-child(1) strong {
  color: #ffcc23;
}

.game-metrics div:nth-child(3) strong,
.game-metrics div:nth-child(4) strong {
  color: #6b8cff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.visually-compact {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.payment-hint {
  display: none;
}

.shareholder-card {
  display: grid;
  align-content: space-between;
  min-height: 212px;
  border-left: 3px solid #00eaff;
  padding: 24px;
}

.shareholder-card h3 {
  margin: 0 0 12px;
  color: #ff33ff;
  font-size: 1rem;
  font-weight: 900;
}

.shareholder-card p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.9;
}

@media (max-width: 1120px) {
  .staking-page .asset-grid,
  .shareholder-page .asset-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .shareholder-tier {
    width: max(72%, calc(100% - var(--tier-index) * 5%));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.45fr);
  }

  .tier-actions {
    width: 82px;
  }
}

@media (max-width: 620px) {
  .staking-page .asset-grid,
  .shareholder-page .asset-grid {
    grid-template-columns: 1fr;
  }

  .shareholder-summary {
    min-height: 150px;
  }

  .shareholder-info-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shareholder-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shareholder-structure-panel {
    padding: 14px;
  }

  .shareholder-ladder {
    position: relative;
    padding-top: 10px;
    padding-inline: 0;
  }

  .shareholder-tier {
    width: max(70%, calc(100% - var(--tier-index) * 5.5%));
    margin-inline: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
    border-left-width: 4px;
    box-shadow:
      inset 7px 0 18px color-mix(in srgb, var(--tier-color) 18%, transparent),
      0 0 0 1px color-mix(in srgb, var(--tier-color) 10%, transparent);
  }

  .shareholder-tier::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: color-mix(in srgb, var(--tier-color) 76%, transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--tier-color) 54%, transparent);
    transform: translate(-50%, -50%);
  }

  .tier-main {
    align-items: flex-start;
  }

  .tier-actions {
    width: 64px;
  }

  .tier-actions .program-apply {
    width: 60px;
    min-height: 25px;
    padding: 0 6px;
    font-size: 0.64rem;
  }

  .tier-meta {
    grid-column: 1 / -1;
    text-align: left;
    padding-right: 70px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 24px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

@media (max-width: 980px) {
  .topbar,
  .market-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .admin-record {
    grid-template-columns: 1fr;
  }

  .admin-record-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }

  .permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-actions {
    justify-content: flex-start;
  }

  .market-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #adminSummaryGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chart-layout {
    grid-template-columns: 1fr;
  }

  .game-hero-panel,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-side {
    align-self: stretch;
    min-height: 0;
  }

  .game-challenge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-center-grid {
    grid-template-columns: 1fr;
  }

  .game-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kline-shell,
  #klineChart {
    min-height: 340px;
    height: 340px;
  }

  .nav {
    justify-content: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 66px;
  }

  .app-shell {
    width: min(100vw - 14px, 1540px);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding-block: 8px;
  }

  .topbar .nav {
    display: none;
  }

  .brand span {
    display: none;
  }

  .top-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: calc(0.92rem + 4px);
    line-height: 1;
  }

  .top-actions .select {
    min-height: 34px;
    max-width: 72px;
    border-radius: 9px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  #adminGateOpen {
    display: none;
  }

  #themeToggle {
    display: grid;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
    padding: 0;
    font-size: 0;
  }

  #themeToggle::before {
    content: "◐";
    color: var(--cyan);
    font-size: 1.05rem;
    line-height: 1;
  }

  #loginOpen {
    min-width: 76px;
    min-height: 34px;
    border-radius: 10px;
    padding-inline: 8px;
    font-size: 0;
    white-space: nowrap;
  }

  #loginOpen::before {
    content: attr(data-mobile-label);
    font-size: 0.72rem;
    line-height: 1;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    left: 8px;
    right: 8px;
    bottom: 6px;
    padding: 6px;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(12, 18, 44, 0.96), rgba(17, 18, 37, 0.98)),
      rgba(9, 13, 31, 0.96);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.34), 0 0 22px rgba(0, 212, 255, 0.12);
  }

  .mobile-bottom-nav .member-only {
    display: grid;
  }

  .bottom-nav-link {
    grid-template-rows: auto auto;
    min-width: 0;
    min-height: 54px;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 4px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(124, 58, 237, 0.08)),
      rgba(31, 33, 55, 0.95);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.64rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .bottom-nav-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.28));
  }

  .bottom-nav-link.active {
    border-color: rgba(0, 212, 255, 0.7);
    color: var(--cyan);
    background:
      linear-gradient(145deg, rgba(0, 212, 255, 0.16), rgba(124, 58, 237, 0.22)),
      rgba(24, 39, 68, 0.98);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.18), 0 0 22px rgba(0, 212, 255, 0.28);
  }

  .chart-panel,
  .summary-panel,
  .table-panel,
  .content-panel {
    padding: 10px;
    border-radius: 12px;
  }

  .section-title {
    display: block;
  }

  .asset-view-controls {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 10px;
  }

  .price-stack {
    text-align: left;
    margin-top: 12px;
  }

  #featuredPair {
    font-size: 1.08rem;
  }

  #featuredPrice {
    font-size: 2rem;
  }

  #featuredChange {
    font-size: 0.9rem;
  }

  .market-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }

  #adminSummaryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .market-stat {
    min-height: 42px;
    padding: 5px 4px;
    border-radius: 7px;
  }

  .market-stat span {
    font-size: 0.52rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-stat strong {
    margin-top: 4px;
    font-size: 0.66rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pair-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .pair-tabs button {
    flex: 0 0 92px;
    min-height: 36px;
    padding: 6px 8px;
    scroll-snap-align: start;
  }

  .pair-tabs button strong {
    font-size: 0.82rem;
  }

  .pair-tabs button span {
    font-size: 0.65rem;
  }

  .chart-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .game-hero-panel {
    padding: 14px;
  }

  .wheel-stage {
    min-height: 330px;
  }

  .game-wheel {
    width: min(82vw, 300px);
  }

  .wheel-label {
    width: 74px;
    transform: translate(-50%, -50%) rotate(calc(var(--wheel-step) * 45deg)) translateY(-90px) rotate(calc(var(--wheel-step) * -45deg));
  }

  .wheel-label em {
    font-size: 0.66rem;
  }

  .wheel-center {
    width: 58px;
    height: 58px;
    border-width: 6px;
  }

  .game-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-activity-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .game-activity-tabs button {
    min-height: 32px;
    padding: 7px 8px;
    justify-content: center;
    font-size: 0.7rem;
  }

  .game-challenge-grid {
    grid-template-columns: 1fr;
  }

  .game-panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px 0;
  }

  .mall-grid,
  .task-center-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .task-center-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-center-card button,
  .task-center-card small,
  .task-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .rank-podium {
    gap: 12px;
    padding-inline: 12px;
  }

  .rank-medal span {
    width: 58px;
    height: 58px;
    font-size: 1.8rem;
  }

  .rank-medal.first span {
    width: 70px;
    height: 70px;
  }

  .rank-table > div {
    grid-template-columns: 0.35fr 1fr 0.8fr 0.8fr;
    gap: 8px;
    padding: 10px;
    font-size: 0.72rem;
  }

  .game-challenge-card {
    min-height: 0;
    padding: 14px;
  }

  .challenge-meta {
    grid-template-columns: 1fr;
  }

  .challenge-meta span:nth-child(even) {
    text-align: left;
  }

  .game-side .primary-btn,
  .game-side .game-spin-btn,
  .game-side .muted {
    grid-column: 1 / -1;
  }

  .game-stat {
    padding: 9px 10px;
  }

  .game-stat strong {
    font-size: 1.35rem;
  }

  .admin-record-form {
    grid-template-columns: 1fr;
  }

  .ops-card .form-grid {
    grid-template-columns: 1fr;
  }

  .chart-mode-tabs,
  .interval-tabs {
    flex: 0 0 auto;
    overflow-x: auto;
    gap: 5px;
  }

  .chart-mode-tabs button,
  .interval-tabs button {
    min-height: 29px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.72rem;
  }

  .kline-shell,
  #klineChart {
    min-height: 260px;
    height: 260px;
  }

  .depth-panel {
    padding: 12px;
  }

  #depthChart {
    height: 140px;
  }

  .order-book-mini {
    font-size: 0.78rem;
  }

  .shareholder-ops-panel,
  .shareholder-issued-panel,
  .shareholder-records-panel {
    padding: 14px;
  }

  .shareholder-op-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shareholder-op-tabs button,
  .segmented-control button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .shareholder-op-balance-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .shareholder-record-head {
    display: none;
  }

  .shareholder-record-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }
}
