:root {
  --bg: #0d0d14;
  --panel: #171721;
  --panel-2: #1d1d29;
  --panel-3: #252535;
  --line: #2b2b3d;
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f4f2ff;
  --muted: #9b9bad;
  --soft: #c4c1df;
  --brand: #b2f055;
  --brand-2: #8fca31;
  --green: #b2f055;
  --yellow: #f3c969;
  --red: #ff7a85;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  box-shadow: none !important;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 13, 20, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #0d0d14;
  font-weight: 800;
}

.brand-text strong {
  display: block;
  font-size: 15px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-btn,
.ghost-btn,
.primary-btn,
.secondary-btn,
.tab-btn,
.filter-btn,
.icon-btn {
  border: 0;
  color: var(--text);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.nav-btn.active {
  background: var(--brand);
  color: #0d0d14;
}

.wallet-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--brand);
  color: #0d0d14;
  font-weight: 700;
  box-shadow: none;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-btn,
.ghost-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(178, 240, 85, 0.42);
  background: var(--brand);
  color: #0d0d14;
  font-weight: 700;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--soft);
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: none;
}

.status-dot.warn {
  background: var(--yellow);
  box-shadow: none;
}

.wallet-copy {
  text-align: left;
}

.wallet-copy strong,
.wallet-copy span {
  display: block;
}

.wallet-copy strong {
  font-size: 13px;
}

.wallet-copy span {
  color: var(--muted);
  font-size: 11px;
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #171721;
  box-shadow: var(--shadow);
}

.wallet-menu.hidden,
.hidden {
  display: none !important;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.wallet-row span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-row strong {
  font-size: 12px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.page {
  width: min(1220px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.lede {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.metric-tile,
.panel,
.table-card,
.action-card,
.vault-hero,
.chart-card,
.ptoken-card,
.info-card,
.asset-card,
.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 29, 41, 0.86);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-tile {
  min-height: 112px;
  padding: 20px 22px;
}

.metric-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  color: #dfff9a;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

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

.filter-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.filter-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #0d0d14;
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.info-trigger {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
}

.info-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.info-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 310px;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(178, 240, 85, 0.28);
  border-radius: 8px;
  background: #171721;
  box-shadow: var(--shadow);
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.info-popover strong {
  color: var(--text);
  font-weight: 800;
}

.info-popover a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.info-popover a:hover {
  text-decoration: underline;
}

.th-info-wrap:hover .info-popover,
.th-info-wrap:focus-within .info-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

td {
  color: var(--soft);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.market-row {
  cursor: pointer;
}

.market-row:hover td,
.market-row:focus-visible td {
  background: rgba(178, 240, 85, 0.045);
}

.market-row:focus-visible {
  outline: 1px solid rgba(178, 240, 85, 0.56);
  outline-offset: -1px;
}

.vault-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.vault-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2b2b3d;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.vault-title strong {
  display: block;
}

.vault-title strong {
  color: var(--text);
}

.num {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.amount-stack {
  display: grid;
  gap: 4px;
  min-width: 96px;
}

.amount-stack strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

.amount-stack span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.asset-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.asset-logo {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(178, 240, 85, 0.36);
  border-radius: 50%;
  background: rgba(178, 240, 85, 0.14);
  color: #dfff9a;
  font-size: 11px;
  font-weight: 900;
}

.position-token-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.position-token-line .asset-inline {
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
}

.position-token-line .asset-logo {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

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

.reward {
  color: #e7ffba;
  font-weight: 800;
}

.reward-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.reward-spark {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--brand);
  fill: currentColor;
}

.reward-spark path,
.reward-spark circle {
  fill: currentColor;
}

.tx-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(178, 240, 85, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.risk {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.risk.low {
  color: var(--green);
}

.risk.medium {
  color: var(--yellow);
}

.risk.high {
  color: var(--red);
}

.progress-wrap {
  width: 78px;
}

.progress-meta {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.backline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.backline .ghost-btn {
  min-height: 32px;
  padding: 0 10px;
}

.vault-hero {
  padding: 20px;
  margin-bottom: 18px;
}

.vault-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.vault-heading .vault-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 15px;
}

.vault-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.4vw, 34px);
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.kpi {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.kpi span {
  display: block;
  min-height: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.kpi strong {
  display: block;
  color: #dfff9a;
  font-size: 21px;
  line-height: 1.15;
}

.kpi small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.kpi-progress-bar {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.kpi-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.kpi-reward-value {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.kpi-reward-value .reward-spark {
  width: 18px;
  height: 18px;
}

.campaign-countdown {
  display: grid !important;
  gap: 5px;
}

.campaign-countdown span {
  min-height: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.campaign-countdown strong {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(178, 240, 85, 0.12);
  color: #dfff9a;
  font-size: 12px;
  line-height: 1.2;
}

.campaign-countdown strong.ended {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.chart-card {
  padding: 20px;
  margin-bottom: 18px;
}

.ptoken-card {
  padding: 20px;
  margin-bottom: 18px;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tabs,
.range-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.tab-btn {
  min-width: 70px;
  min-height: 30px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tab-btn.active {
  background: var(--brand);
  color: #0d0d14;
}

.chart-area {
  width: 100%;
  min-height: 280px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: 280px;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
}

.chart-point {
  fill: var(--brand);
  stroke: var(--panel);
  stroke-width: 2;
}

.chart-fill {
  fill: rgba(178, 240, 85, 0.14);
}

.chart-hit {
  fill: transparent;
  outline: none;
  cursor: crosshair;
  pointer-events: all;
}

.chart-hover-line {
  stroke: rgba(178, 240, 85, 0.42);
  stroke-dasharray: 4 5;
  stroke-width: 1;
  opacity: 0;
  pointer-events: none;
}

.chart-hover-line.ptoken-hit {
  stroke: rgba(85, 214, 240, 0.48);
}

.chart-hit:hover + .chart-hover-line,
.chart-hit:focus-visible + .chart-hover-line {
  opacity: 1;
}

.chart-hit:focus-visible {
  stroke: var(--brand);
  stroke-width: 2;
}

.chart-hit.ptoken-hit:focus-visible {
  stroke: #55d6f0;
}

.chart-tooltip {
  position: fixed;
  z-index: 140;
  display: grid;
  gap: 5px;
  min-width: 138px;
  padding: 10px 11px;
  border: 1px solid rgba(178, 240, 85, 0.24);
  border-radius: 8px;
  background: #14141d;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.chart-tooltip span,
.chart-tooltip small {
  color: var(--muted);
  font-size: 11px;
}

.chart-tooltip strong {
  color: var(--text);
  font-size: 14px;
}

.ptoken-layout {
  display: block;
}

.ptoken-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: -4px 0 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.ptoken-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ptoken-info-item span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ptoken-info-item strong {
  min-width: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}

.ptoken-chart-area {
  min-height: 280px;
}

.ptoken-svg {
  display: block;
  width: 100%;
  height: 280px;
}

.ptoken-chart-line {
  fill: none;
  stroke: #55d6f0;
  stroke-width: 3;
}

.ptoken-chart-point {
  fill: #55d6f0;
  stroke: var(--panel);
  stroke-width: 2;
}

.ptoken-chart-fill {
  fill: rgba(85, 214, 240, 0.14);
}

.ptoken-marker {
  fill: #55d6f0;
  stroke: #101017;
  stroke-width: 3;
}

.ptoken-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.asset-card {
  padding: 16px;
}

.asset-card strong {
  display: block;
  margin-bottom: 8px;
}

.asset-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.asset-share {
  margin-top: 14px;
  color: #dfff9a;
  font-size: 22px;
  font-weight: 800;
}

.info-card {
  padding: 20px;
}

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

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  border-bottom: 1px solid var(--line-soft);
}

.info-row span {
  color: var(--muted);
  font-size: 12px;
}

.info-row strong {
  max-width: 58%;
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.form-block {
  margin-top: 20px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel-3);
}

.token-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.token-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
}

.amount-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  text-align: right;
}

.preview-box {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.preview-row strong {
  color: var(--text);
  text-align: right;
}

.risk-check {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.risk-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.notice {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(243, 201, 105, 0.22);
  border-radius: 10px;
  background: rgba(243, 201, 105, 0.08);
  color: #ffe0a1;
  font-size: 12px;
  line-height: 1.5;
}

.error-text {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
}

.portfolio-wallet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 29, 41, 0.86);
}

.portfolio-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(178, 240, 85, 0.14);
  color: #dfff9a;
  font-size: 12px;
  font-weight: 900;
}

.portfolio-wallet-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.portfolio-wallet-copy strong {
  color: var(--text);
  font-size: 14px;
}

.portfolio-wallet-copy span {
  color: var(--muted);
  font-size: 12px;
}

.connection-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: auto;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(178, 240, 85, 0.12);
  color: #dfff9a;
  font-size: 12px;
  font-weight: 800;
}

.connection-tag.warn {
  background: rgba(243, 201, 105, 0.12);
  color: #ffe0a1;
}

.portfolio-grid {
  display: grid;
  gap: 14px;
}

.holding-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(120px, 1fr)) minmax(150px, 1fr) 84px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 29, 41, 0.86);
}

.holding-stat span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.holding-stat strong {
  color: var(--text);
}

.claimable-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.holding-card .wallet-actions {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.mini-claim-btn {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(178, 240, 85, 0.14);
  color: #dfff9a;
  font-size: 11px;
  font-weight: 800;
}

.mini-claim-btn:not(:disabled):hover {
  background: var(--brand);
  color: #0d0d14;
}

.history-card {
  margin-top: 18px;
  overflow: hidden;
}

.history-head {
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.empty-state {
  padding: 40px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #171721;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin-bottom: 0;
}

.wallet-options {
  display: grid;
  gap: 10px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
}

.wallet-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.wallet-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
}

.metamask {
  background: #f6851b;
}

.walletconnect {
  background: #3b99fc;
}

.okx {
  background: #111;
  border: 1px solid var(--line);
}

.modal-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(178, 240, 85, 0.28);
  border-radius: 12px;
  background: #15251d;
  color: #d7ffe8;
  box-shadow: var(--shadow);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .topbar {
    position: static;
    flex-wrap: wrap;
    padding: 14px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .nav-btn {
    min-width: 110px;
  }

  .wallet-area {
    margin-left: auto;
  }

  .page {
    width: min(100vw - 24px, 1220px);
    padding-top: 24px;
  }

  .page-head,
  .table-tools,
  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-wallet-card {
    width: 100%;
    min-width: 0;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .detail-kpis,
  .assets-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .table-card {
    overflow-x: auto;
  }

  table {
    min-width: 940px;
  }

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

  .wallet-menu {
    right: auto;
    left: 0;
    width: min(280px, calc(100vw - 24px));
  }
}
