* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root {
  --bg: #070707;
  --panel: #111113;
  --panel-2: #17171b;
  --line: rgba(255, 196, 0, 0.24);
  --line-soft: rgba(255, 255, 255, 0.06);
  --gold: #ffd54a;
  --gold-soft: rgba(255, 213, 74, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-2: rgba(255, 255, 255, 0.52);
  --red: #ff4d4f;
  --green: #7dff9b;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 196, 0, 0.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(255, 196, 0, 0.06), transparent 20%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18,18,20,0.97), rgba(10,10,12,0.98));
  box-shadow: 0 0 30px rgba(255, 196, 0, 0.07);
  padding: 28px;
}

.header {
  margin-bottom: 24px;
}

.headline {
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -1.6px;
}

.subheadline {
  color: var(--muted);
  font-size: 17px;
  max-width: 950px;
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.sidebar {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.filter-btn {
  border: 1px solid rgba(255, 209, 71, 0.42);
  background: rgba(255, 196, 0, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(180deg, #ffd54a, #d8a600);
  color: #111;
  border-color: #ffd54a;
  box-shadow: 0 0 18px rgba(255, 213, 74, 0.14);
}

.content {
  min-width: 0;
}

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

.mini-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.asset-symbol {
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 10px;
}

.asset-description {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 780px;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 71, 0.36);
  background: rgba(255, 196, 0, 0.05);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.chart-card,
.section-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28,28,33,0.95), rgba(15,15,18,0.98));
}

.chart-card {
  padding: 22px;
}

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

.chart-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.chart-status {
  font-size: 14px;
  color: var(--muted-2);
}

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

.time-btn {
  border: 1px solid rgba(255, 209, 71, 0.35);
  background: transparent;
  color: rgba(255,255,255,0.82);
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.time-btn.active,
.time-btn:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.chart-wrap {
  width: 100%;
  height: 420px;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat-box {
  border: 1px solid rgba(255, 196, 0, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.015);
  padding: 16px;
}

.stat-box span {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-box strong {
  font-size: 22px;
  font-weight: 900;
}

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

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

.dual-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.section-card {
  padding: 18px;
}

.section-card h3,
.section-header h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.section-card p {
  color: var(--muted);
  line-height: 1.6;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-item {
  color: var(--muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.bullet-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 9px;
}

.metrics-section,
.watchlist-section,
.notes-section {
  margin-top: 18px;
}

.section-header {
  margin-bottom: 12px;
}

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

.metric-card {
  border: 1px solid rgba(255, 196, 0, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.015);
  padding: 16px;
}

.metric-card span {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 22px;
  font-weight: 900;
}

.watchlist-table {
  border: 1px solid rgba(255, 196, 0, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}

.watchlist-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 0.9fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.watchlist-row:last-child {
  border-bottom: none;
}

.watchlist-head {
  background: rgba(255, 196, 0, 0.04);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.asset-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 0, 0.25);
  background: rgba(255, 196, 0, 0.09);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

.asset-icon.stock {
  color: #8dff8d;
  border-color: rgba(124,255,124,0.25);
  background: rgba(124,255,124,0.08);
}

.asset-icon.index {
  color: #8ac5ff;
  border-color: rgba(138,197,255,0.25);
  background: rgba(138,197,255,0.08);
}

.asset-icon.commodity {
  color: #ffb870;
  border-color: rgba(255,184,112,0.25);
  background: rgba(255,184,112,0.08);
}

.asset-icon.crypto {
  color: #c898ff;
  border-color: rgba(200,152,255,0.25);
  background: rgba(200,152,255,0.08);
}

.asset-text strong {
  display: block;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-text span {
  color: var(--muted-2);
  font-size: 13px;
}

.price-cell,
.change-cell {
  font-size: 17px;
  font-weight: 800;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 196, 0, 0.25);
  background: rgba(255, 196, 0, 0.08);
  color: var(--gold);
}

.type-badge.stock {
  color: #8dff8d;
  border-color: rgba(124,255,124,0.25);
  background: rgba(124,255,124,0.08);
}

.type-badge.index {
  color: #8ac5ff;
  border-color: rgba(138,197,255,0.25);
  background: rgba(138,197,255,0.08);
}

.type-badge.commodity {
  color: #ffb870;
  border-color: rgba(255,184,112,0.25);
  background: rgba(255,184,112,0.08);
}

.type-badge.crypto {
  color: #c898ff;
  border-color: rgba(200,152,255,0.25);
  background: rgba(200,152,255,0.08);
}

.notes-card {
  border: 1px solid rgba(255, 196, 0, 0.18);
  border-radius: 20px;
  background: rgba(255,255,255,0.015);
  padding: 18px;
}

.notes-card p {
  color: var(--muted);
  line-height: 1.6;
}

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

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

  .dual-grid,
  .analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .watchlist-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .watchlist-head {
    display: none;
  }

  .price-cell,
  .change-cell {
    padding-left: 60px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 12px;
  }

  .page {
    padding: 18px;
    border-radius: 22px;
  }

  .headline {
    font-size: 38px;
  }

  .asset-symbol {
    font-size: 42px;
  }

  .chart-wrap {
    height: 300px;
  }

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