.ativos-cripto-page {
  --crypto-bg: #08090a;
  --crypto-surface: #0e0f12;
  --crypto-surface-2: #13151a;
  --crypto-border: rgba(255, 255, 255, 0.1);
  --crypto-border-strong: rgba(255, 255, 255, 0.18);
  --crypto-title: #f5f7fa;
  --crypto-text: #d8dce5;
  --crypto-muted: #8b91a2;
  --crypto-accent: #4bcd95;
  --crypto-accent-soft: rgba(75, 205, 149, 0.12);
  --crypto-bitcoin: #f7931a;
  --crypto-blue: #6aa8ff;
  --crypto-negative: #ea4b6a;
  --crypto-warning: #f2c94c;
  color: var(--crypto-title);
}

.crypto-top-bar h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.crypto-kicker {
  color: var(--crypto-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.crypto-market-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--crypto-border);
  border-radius: 10px;
  background: var(--crypto-surface);
}

.crypto-market-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--crypto-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.crypto-market-tabs a:hover,
.crypto-market-tabs a.active {
  background: var(--crypto-accent-soft);
  color: var(--crypto-accent);
}

.crypto-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(75, 205, 149, 0.32);
  border-radius: 10px;
  background: rgba(75, 205, 149, 0.08);
  color: var(--crypto-text);
  font-size: 13px;
  font-weight: 600;
}

.crypto-status[hidden] {
  display: none;
}

.crypto-status button {
  border: 1px solid rgba(75, 205, 149, 0.4);
  border-radius: 8px;
  background: rgba(75, 205, 149, 0.12);
  color: var(--crypto-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.crypto-card,
.crypto-mini-card {
  border: 1px solid var(--crypto-border);
  border-radius: 12px;
  background: var(--crypto-surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.crypto-card {
  padding: 22px;
  margin-bottom: 24px;
}

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

.crypto-card-header h2 {
  margin: 0;
  color: var(--crypto-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.crypto-card-header p {
  margin: 6px 0 0;
  max-width: 680px;
  color: var(--crypto-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.crypto-price-header {
  align-items: center;
}

.crypto-asset-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.crypto-btc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--crypto-bitcoin);
  color: #08090a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.crypto-asset-name {
  color: var(--crypto-title);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.crypto-asset-meta {
  margin-top: 4px;
  color: var(--crypto-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.crypto-control-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.crypto-segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid var(--crypto-border);
  border-radius: 10px;
  background: var(--crypto-surface-2);
}

.crypto-segmented button {
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--crypto-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.crypto-segmented button:hover {
  color: var(--crypto-title);
}

.crypto-segmented button.active {
  background: var(--crypto-accent-soft);
  color: var(--crypto-accent);
}

.crypto-currency-toggle button.active,
.crypto-converter-currency button.active {
  background: var(--crypto-title);
  color: var(--crypto-bg);
}

.crypto-price-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.crypto-main-price {
  color: var(--crypto-title);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.crypto-price-change {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--crypto-muted);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.crypto-price-change.is-positive,
.crypto-return-grid strong.is-positive,
.crypto-etf-table .is-positive,
.crypto-mini-card.is-positive strong,
.crypto-mini-card.is-positive small,
.crypto-dominance-kpis small.is-positive {
  color: var(--crypto-accent);
}

.crypto-price-change.is-negative,
.crypto-return-grid strong.is-negative,
.crypto-etf-table .is-negative,
.crypto-mini-card.is-negative strong,
.crypto-mini-card.is-negative small,
.crypto-dominance-kpis small.is-negative {
  color: var(--crypto-negative);
}

.crypto-mini-card.is-neutral strong,
.crypto-mini-card.is-neutral small,
.crypto-etf-table .is-neutral,
.crypto-dominance-kpis small.is-neutral {
  color: var(--crypto-muted);
}

.crypto-mini-card.is-warning strong,
.crypto-mini-card.is-warning small {
  color: var(--crypto-warning);
}

.crypto-updated {
  color: var(--crypto-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.crypto-chart-wrap {
  position: relative;
  width: 100%;
}

.crypto-chart-lg {
  min-height: 240px;
}

.crypto-chart-md {
  min-height: 220px;
}

.crypto-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--crypto-border);
}

.crypto-stat-grid dt,
.crypto-return-grid span,
.crypto-return-summary span,
.crypto-history-list span,
.crypto-dominance-kpis span,
.crypto-extremes span {
  color: var(--crypto-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.crypto-stat-grid dd {
  margin: 6px 0 0;
  color: var(--crypto-title);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.crypto-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--crypto-border);
  color: var(--crypto-muted);
  font-size: 11px;
  font-weight: 700;
}

.crypto-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.crypto-mini-card {
  min-height: 132px;
  padding: 16px;
  overflow: hidden;
}

.crypto-mini-card span {
  display: block;
  color: var(--crypto-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.crypto-mini-card strong {
  display: block;
  margin-top: 9px;
  color: var(--crypto-title);
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.crypto-mini-card small {
  display: block;
  margin-top: 6px;
  min-height: 17px;
  color: var(--crypto-accent);
  font-size: 12px;
  font-weight: 700;
}

.crypto-mini-card svg {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 12px;
}

.crypto-mini-card path {
  fill: none;
  stroke: var(--crypto-accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.crypto-mini-card.is-negative path {
  stroke: var(--crypto-negative);
}

.crypto-mini-card.is-neutral path {
  stroke: var(--crypto-muted);
}

.crypto-mini-card.is-warning path {
  stroke: var(--crypto-warning);
}

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

.crypto-converter-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--crypto-border);
  border-radius: 10px;
  background: var(--crypto-surface-2);
}

.crypto-converter-panel label {
  margin-bottom: 8px;
  color: var(--crypto-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.crypto-converter-panel p {
  margin: 14px 0 0;
  color: var(--crypto-text);
  font-size: 15px;
  font-weight: 600;
}

.crypto-converter-panel p strong {
  color: var(--crypto-title);
  font-variant-numeric: tabular-nums;
}

.crypto-money-input {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--crypto-border-strong);
  border-radius: 10px;
  background: #08090a;
  overflow: hidden;
}

.crypto-money-input span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 100%;
  color: var(--crypto-muted);
  font-size: 12px;
  font-weight: 800;
}

.crypto-money-input input,
.crypto-date-input {
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--crypto-title);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.crypto-date-input {
  padding: 0 12px;
  border: 1px solid var(--crypto-border-strong);
  border-radius: 10px;
  background: #08090a;
  color-scheme: dark;
}

.crypto-primary-btn {
  height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(75, 205, 149, 0.45);
  border-radius: 10px;
  background: var(--crypto-accent);
  color: #08130e;
  font-size: 14px;
  font-weight: 800;
}

.crypto-return-grid,
.crypto-return-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.crypto-return-grid div,
.crypto-return-summary div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--crypto-border);
  border-radius: 10px;
  background: var(--crypto-surface-2);
}

.crypto-return-grid strong,
.crypto-return-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--crypto-title);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.crypto-section-title {
  margin: 34px 0 16px;
}

.crypto-section-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.crypto-split-card {
  padding: 0;
  overflow: hidden;
}

.crypto-split-card .crypto-card-header {
  margin: 0;
  padding: 22px;
  border-bottom: 1px solid var(--crypto-border);
}

.crypto-split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
}

.crypto-side-panel {
  padding: 22px;
  border-right: 1px solid var(--crypto-border);
}

.crypto-split-layout > .crypto-chart-wrap {
  padding: 22px;
}

.crypto-gauge {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 150px;
  margin-bottom: 22px;
}

.crypto-gauge svg {
  width: 100%;
  max-width: 240px;
}

.crypto-gauge .track,
.crypto-gauge .value {
  fill: none;
  stroke-linecap: round;
  stroke-width: 15;
}

.crypto-gauge .track {
  stroke: rgba(255, 255, 255, 0.09);
}

.crypto-gauge .value {
  stroke: var(--crypto-gauge-color, var(--crypto-accent));
  stroke-dasharray: 267 267;
  stroke-dashoffset: 267;
}

.crypto-gauge .needle {
  fill: var(--crypto-gauge-color, var(--crypto-title));
  stroke: var(--crypto-bg);
  stroke-width: 4;
}

.crypto-gauge > div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
}

.crypto-gauge strong {
  display: block;
  color: var(--crypto-title);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.crypto-gauge span {
  display: block;
  margin-top: 6px;
  color: var(--crypto-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.crypto-history-list {
  display: grid;
  gap: 14px;
}

.crypto-history-list div,
.crypto-extremes > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.crypto-history-list strong,
.crypto-dominance-kpis strong,
.crypto-extremes strong {
  color: var(--crypto-title);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.crypto-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.crypto-card-value {
  color: var(--crypto-title);
  font-size: 36px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.crypto-zone-row {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.crypto-zone-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crypto-zone-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crypto-zone-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 6px;
  background: var(--crypto-surface-2);
  color: var(--crypto-muted);
}

.crypto-zone-row strong {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.crypto-zone-row .crypto-zone-good {
  color: var(--crypto-accent);
}

.crypto-zone-row .crypto-zone-neutral {
  color: var(--crypto-muted);
}

.crypto-zone-row .crypto-zone-warning {
  color: var(--crypto-warning);
}

.crypto-zone-row .crypto-zone-danger {
  color: var(--crypto-negative);
}

.crypto-mayer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--crypto-muted);
  font-size: 12px;
  font-weight: 700;
}

.crypto-mayer-meta strong {
  color: var(--crypto-title);
  font-variant-numeric: tabular-nums;
}

.crypto-dominance-kpis {
  display: grid;
  gap: 18px;
}

.crypto-dominance-kpis > div {
  display: grid;
  gap: 6px;
}

.crypto-dominance-kpi-value {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.crypto-dominance-kpis small {
  display: inline-block;
  color: var(--crypto-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.crypto-dominance-kpis small.is-positive {
  color: var(--crypto-accent);
}

.crypto-dominance-kpis small.is-negative {
  color: var(--crypto-negative);
}

.crypto-dominance-kpis small.is-neutral {
  color: var(--crypto-muted);
}

.crypto-dominance-kpis strong {
  display: block;
  line-height: 1;
}

.crypto-composition-block {
  margin: 22px 0;
}

.crypto-composition {
  display: flex;
  width: 100%;
  height: 10px;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.crypto-composition [data-part="btc"] {
  background: var(--crypto-bitcoin);
}

.crypto-composition [data-part="eth"] {
  background: var(--crypto-blue);
}

.crypto-composition [data-part="others"] {
  background: var(--crypto-muted);
}

.crypto-composition-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--crypto-muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.crypto-composition-labels span {
  white-space: nowrap;
}

.crypto-composition-labels strong {
  color: inherit;
  font-weight: 800;
}

.crypto-composition-labels [data-label="btc"] {
  color: var(--crypto-bitcoin);
}

.crypto-composition-labels [data-label="eth"] {
  color: var(--crypto-blue);
}

.crypto-extremes {
  display: grid;
  gap: 12px;
}

.crypto-extremes > div,
.crypto-extremes strong {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.crypto-extremes > div {
  justify-content: space-between;
}

.crypto-extremes strong {
  white-space: nowrap;
}

.crypto-extremes strong span,
.crypto-extremes strong time {
  display: inline;
}

.crypto-extremes strong time {
  color: var(--crypto-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.crypto-note {
  margin: 16px 0 0;
  color: var(--crypto-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.crypto-return-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 420px;
}

.crypto-returns-chart-wrap {
  margin-top: 10px;
}

.crypto-etf-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crypto-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--crypto-border);
  border-radius: 10px;
}

.crypto-etf-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  background: var(--crypto-surface-2);
}

.crypto-etf-table th,
.crypto-etf-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--crypto-border);
  color: var(--crypto-title);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.crypto-etf-table th:first-child,
.crypto-etf-table td:first-child {
  text-align: left;
}

.crypto-etf-table th {
  color: var(--crypto-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.crypto-etf-table tr:last-child td {
  border-bottom: 0;
}

.is-loading .crypto-skeleton-text,
.crypto-card.is-loading .crypto-main-price,
.crypto-card.is-loading .crypto-card-value,
.crypto-mini-card.is-loading strong {
  width: fit-content;
  min-width: 96px;
  border-radius: 6px;
  color: transparent !important;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.13), rgba(255,255,255,0.05));
  background-size: 220% 100%;
  animation: crypto-pulse 1.25s ease-in-out infinite;
}

@keyframes crypto-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 1199px) {
  .crypto-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 991px) {
  .crypto-top-bar {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .crypto-card-header,
  .crypto-price-main {
    flex-direction: column;
  }

  .crypto-control-stack,
  .crypto-updated {
    justify-content: flex-start;
    text-align: left;
  }

  .crypto-split-layout,
  .crypto-two-col,
  .crypto-converter-grid {
    grid-template-columns: 1fr;
  }

  .crypto-side-panel {
    border-right: 0;
    border-bottom: 1px solid var(--crypto-border);
  }

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

@media (max-width: 767px) {
  .ativos-cripto-page {
    margin-top: 2rem !important;
  }

  .crypto-top-bar h1 {
    font-size: 32px;
  }

  .crypto-card {
    padding: 16px;
    border-radius: 10px;
  }

  .crypto-split-card {
    padding: 0;
  }

  .crypto-split-card .crypto-card-header,
  .crypto-side-panel,
  .crypto-split-layout > .crypto-chart-wrap {
    padding: 16px;
  }

  .crypto-main-price {
    font-size: 34px;
  }

  .crypto-segmented {
    max-width: 100%;
    overflow-x: auto;
  }

  .crypto-stat-grid,
  .crypto-return-grid,
  .crypto-etf-kpis,
  .crypto-return-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .crypto-chart-lg,
  .crypto-chart-md {
    min-height: 210px;
  }
}

@media (max-width: 480px) {
  .crypto-market-tabs {
    width: 100%;
  }

  .crypto-market-tabs a {
    flex: 1;
  }

  .crypto-stat-grid,
  .crypto-return-grid,
  .crypto-etf-kpis,
  .crypto-return-summary {
    grid-template-columns: 1fr;
  }
}
