:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ticker {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.share-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: background 0.2s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: #0f172a;
  text-transform: uppercase;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.coin-icon--sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
}

.coin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coin-icon .coin-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.price-link {
  color: inherit;
  text-decoration: underline dotted;
  transition: color 0.2s ease;
}

.price-link:hover {
  color: #10b981;
}

.exchange-label img {
  object-fit: cover;
}

.exchange-label .badge-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-weight: 600;
}

html:not(.dark) body {
  background-color: #f8fafc;
  color: #0f172a;
}

html:not(.dark) .bg-slate-950,
html:not(.dark) .bg-slate-950\/80,
html:not(.dark) .bg-slate-900\/70,
html:not(.dark) .bg-slate-900\/60,
html:not(.dark) .bg-gradient-to-br {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

html:not(.dark) header,
html:not(.dark) footer {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

html:not(.dark) .border-white\/10,
html:not(.dark) .border-white\/15,
html:not(.dark) .border-white\/20 {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html:not(.dark) .text-white {
  color: #0f172a !important;
}

html:not(.dark) .text-slate-400 {
  color: #475569 !important;
}

html:not(.dark) .text-slate-300 {
  color: #475569 !important;
}

html:not(.dark) .text-slate-200 {
  color: #1e293b !important;
}

html:not(.dark) .text-slate-500 {
  color: #475569 !important;
}

html:not(.dark) table thead {
  background-color: #f8fafc !important;
  color: #475569 !important;
}

html:not(.dark) tbody tr {
  background-color: #fff;
}

html:not(.dark) .bg-white\/5 {
  background-color: rgba(15, 23, 42, 0.06) !important;
}

html:not(.dark) .bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

html:not(.dark) .share-btn {
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

html:not(.dark) .share-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

html:not(.dark) .coin-icon {
  color: #0f172a;
}

html:not(.dark) .coin-icon {
  border-color: rgba(15, 23, 42, 0.15);
}

html:not(.dark) .exchange-label img {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.05);
}

html:not(.dark) .text-brand-100,
html:not(.dark) a.text-brand-100,
html:not(.dark) .hover\:text-brand-100:hover {
  color: #047857 !important;
}

html:not(.dark) .status-pill {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #065f46 !important;
}

html:not(.dark) #tickerStrip span {
  color: #0f172a;
}

html:not(.dark) .arb-card {
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

/* Stack tables on small screens */
@media (max-width: 768px) {
  .responsive-table {
    overflow: visible;
  }

  .responsive-table table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td,
  .responsive-table th {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .responsive-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .responsive-table tbody tr {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    padding: 0;
  }

  html:not(.dark) .responsive-table tbody tr {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  }

  .responsive-table tbody td {
    border: none !important;
    padding: 0.85rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .responsive-table tbody td::before {
    content: attr(data-label);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
  }

  html:not(.dark) .responsive-table tbody td::before {
    color: #475569;
  }

  .responsive-table tbody td + td {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  html:not(.dark) .responsive-table tbody td + td {
    border-color: rgba(15, 23, 42, 0.08) !important;
  }
}

html:not(.dark) .bg-brand-500 {
  color: #0f172a;
  background-color: #10b981 !important;
}

html:not(.dark) [data-role="spread-value"] {
  background-color: rgba(16, 185, 129, 0.18) !important;
  color: #065f46 !important;
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  display: inline-block;
}

html:not(.dark) .arb-card header span {
  background-color: rgba(16, 185, 129, 0.18) !important;
  color: #065f46 !important;
}

html:not(.dark) .price-link:hover {
  color: #047857;
}

html:not(.dark) .badge-initial {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
