@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0b1020;
  color: #e5eefc;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 35%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, #11182d 100%);
}

.container {
  width: min(1040px, calc(100% - 32px)) !important;
  max-width: 1040px !important;
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(8, 13, 28, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #07111f;
  font-weight: 900;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  color: #cbd5e1;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(56, 189, 248, 0.12);
  color: #f8fbff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-weight: 700;
}

.lang-switch:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #f8fbff;
}

.hero {
  padding: 42px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.hero-panel,
.info-panel,
.table-panel,
.detail-panel,
.exchange-panel,
.mini-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}

.hero-panel {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
}

.hero h1,
.section-title {
  margin: 16px 0 10px;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.lead {
  margin: 0;
  color: #b7c4d9;
  line-height: 1.7;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #07111f;
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.08);
  color: #e5eefc;
  border-color: rgba(148, 163, 184, 0.16);
}

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

.stat,
.mini-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-label,
.field-label {
  font-size: 12px;
  color: #94a3b8;
}

.stat-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

.section {
  padding: 14px 0 30px;
}

.home-main {
  padding: 14px 0 12px;
}

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.home-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
  overflow: hidden;
}

.home-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 10px;
}

.home-panel-head .section-title {
  margin: 0;
  font-size: 22px;
}

.home-table th,
.home-table td {
  padding: 9px 12px;
}

.home-table .asset-logo {
  width: 28px;
  height: 28px;
}

.home-exchange-list {
  display: grid;
  gap: 0;
  padding: 0 16px 14px;
}

.exchange-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.exchange-row:last-child {
  border-bottom: 0;
}

.exchange-row strong {
  white-space: nowrap;
  color: #e5eefc;
}

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

.section-title {
  font-size: 28px;
}

.section-subtitle {
  margin: 0;
  color: #94a3b8;
}

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

.input,
.select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.92);
  color: #e5eefc;
  padding: 0 14px;
  outline: none;
}

.input::placeholder {
  color: #64748b;
}

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

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

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.asset-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.asset-name {
  font-weight: 700;
}

.asset-meta {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}

.up {
  color: #4ade80;
}

.down {
  color: #f87171;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.detail-hero {
  padding: 24px;
}

.coin-summary {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), transparent 44%),
    rgba(15, 23, 42, 0.82);
}

.coin-heading-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-subline {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 13px;
}

.coin-price-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.coin-price {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.coin-change {
  padding-bottom: 9px;
  font-size: 18px;
  font-weight: 800;
}

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

.chart-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.chart-header .section-title {
  margin-bottom: 6px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.chart-legend span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
}

.chart-wrap {
  position: relative;
  height: 360px;
  margin-top: 18px;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #64748b;
}

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

.compact-info {
  padding: 24px;
}

.section-kicker {
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-info .section-title {
  margin: 8px 0 16px;
  font-size: 22px;
}

.snapshot-list,
.coin-links {
  display: grid;
  gap: 12px;
}

.snapshot-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.snapshot-list > div:last-child {
  border-bottom: 0;
}

.snapshot-list span {
  color: #94a3b8;
}

.coin-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  color: #bae6fd;
}

.coin-links a:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.08);
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.coin-title,
.exchange-title {
  margin: 0;
  font-size: 30px;
}

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

.kpi {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.kpi-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
}

.detail-list,
.link-list {
  display: grid;
  gap: 12px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.field-value {
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
}

.mini-panel {
  padding: 20px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.mini-row:last-child {
  border-bottom: 0;
}

.footer {
  padding: 24px 0 40px;
  color: #94a3b8;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pagination a {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
}

.pagination a.active {
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #07111f;
  border-color: transparent;
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

@media (max-width: 980px) {
  .home-dashboard,
  .hero-grid,
  .detail-layout,
  .grid-3,
  .coin-data-grid {
    grid-template-columns: 1fr;
  }

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

  .section-header,
  .detail-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1040px) !important;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid,
  .detail-kpis,
  .coin-kpis {
    grid-template-columns: 1fr;
  }

  .chart-panel {
    padding: 18px;
  }

  .chart-wrap {
    height: 260px;
  }

  .field-row {
    flex-direction: column;
  }

  .field-value {
    max-width: none;
    text-align: left;
  }
}
