/* vCryptoCoin v7 - Coinranking Style */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@400;500&display=swap');

#vc-app {
  font-family: 'Syne', sans-serif;
  background: #080c14;
  color: #f1f5f9;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* TOP BAR */
.vc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #080c14;
  gap: 10px;
}
.vc-topbar-left { display: flex; align-items: center; gap: 8px; }
.vc-topbar-right { flex-shrink: 0; }

.vc-cur-toggle {
  display: flex;
  background: #0d1425;
  border: 1.5px solid #1a2540;
  border-radius: 10px;
  padding: 3px;
}
.vc-cur {
  padding: 6px 16px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  transition: all .13s;
  white-space: nowrap;
}
.vc-cur.active { background: #3b82f6; color: #fff; }
.vc-cur:hover:not(.active) { color: #e2e8f0; }

.vc-search { display: none !important; }

.vc-upd {
  font-size: 10px;
  color: #94a3b8;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}

/* TABLE WRAPPER */
.vc-tbl-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #1a2540 transparent;
}
.vc-tbl-wrap::-webkit-scrollbar { height: 3px; }
.vc-tbl-wrap::-webkit-scrollbar-thumb { background: #1a2540; border-radius: 2px; }

.vc-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

/* THEAD */
.vc-thead-row {
  border-top: 1px solid #0d1425;
  border-bottom: 1px solid #0d1425;
  background: #080c14;
}

.vc-tbl th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color .12s;
  background: #080c14;
  position: sticky;
  top: 0;
  z-index: 5;
}
.th-rank { text-align: left; padding-left: 20px !important; width: 44px; }
.th-coin { text-align: left; min-width: 160px; }
.th-num  { text-align: right; }
.th-arr  { font-size: 10px; color: #475569; margin-left: 2px; }
.vc-tbl th.vc-sorted { color: #3b82f6; }
.vc-tbl th:hover { color: #e2e8f0; }

/* sticky first cols */
.th-rank, .td-rank { position: sticky; left: 0; z-index: 3; background: #080c14; }
.th-coin, .td-coin { position: sticky; left: 44px; z-index: 3; background: #080c14; }

.vc-tbl tbody tr:hover .td-rank,
.vc-tbl tbody tr:hover .td-coin { background: #0d1425; }

/* ROWS */
.vc-tbl tbody tr {
  border-bottom: 1px solid #0a0f1c;
  cursor: pointer;
  transition: background .1s;
}
.vc-tbl tbody tr:hover { background: #0d1425; }

.vc-tbl td {
  padding: 12px 14px;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #f1f5f9;
  text-align: right;
}
.thl { text-align: left !important; }

.td-rank {
  color: #64748b;
  font-size: 12px;
  padding-left: 20px !important;
  text-align: left !important;
  width: 44px;
}

/* COIN CELL */
.coin-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}
.coin-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #0d1425;
}
.coin-name { font-size: 14px; font-weight: 700; color: #f1f5f9; font-family: 'Syne', sans-serif; line-height: 1.2; }
.coin-sym  { font-size: 10px; color: #475569; font-family: 'DM Mono', monospace; text-transform: uppercase; }

.td-price-col { color: #f1f5f9; font-weight: 600; font-size: 13px; min-width: 95px; text-align: right; }
.td-mcap  { color: #94a3b8; font-size: 12px; min-width: 95px; }
.td-vol   { color: #94a3b8; font-size: 12px; min-width: 90px; }

/* COLORED PILLS — Coinranking style */
.pct {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  min-width: 58px;
  text-align: center;
  font-family: 'DM Mono', monospace;
}
.pct-up { background: #064e3b; color: #34d399; }
.pct-dn { background: #4c0519; color: #f87171; }
.pct-nc { background: #1e293b; color: #64748b; }

/* LOADER */
.vc-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; gap: 12px;
  color: #475569; font-size: 12px;
  font-family: 'DM Mono', monospace;
}
.vc-spin {
  width: 24px; height: 24px;
  border: 2px solid #0d1425;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: vcspin .7s linear infinite;
}
@keyframes vcspin { to { transform: rotate(360deg); } }

/* PAGINATION */
.vc-pages { display: flex; gap: 6px; padding: 16px 20px; justify-content: center; }
.vc-pg {
  padding: 7px 20px;
  background: #0d1425; border: 1px solid #1a2540;
  border-radius: 8px; color: #64748b;
  font-size: 12px; font-family: 'DM Mono', monospace;
  cursor: pointer; transition: all .12s;
}
.vc-pg.active { background: #3b82f6; border-color: #3b82f6; color: #fff; font-weight: 700; }
.vc-pg:hover:not(.active) { border-color: #334155; color: #94a3b8; }

/* MOBILE */
@media(max-width: 600px) {
  .vc-topbar { padding: 10px 14px; }
  .vc-cur { padding: 5px 12px; font-size: 12px; }

  /* On mobile: no sticky, allow full scroll */
  .th-rank, .td-rank,
  .th-coin, .td-coin { position: static !important; }

  .vc-tbl { min-width: 500px; }
  .vc-tbl th { padding: 9px 8px; font-size: 10px; background: #080c14; }
  .vc-tbl td { padding: 11px 8px; font-size: 12px; }

  .th-rank { padding-left: 12px !important; width: 32px; }
  .td-rank { padding-left: 12px !important; width: 32px; font-size: 11px; }

  .coin-cell { gap: 7px; min-width: 120px; }
  .coin-logo { width: 26px; height: 26px; }
  .coin-name { font-size: 12px; }
  .coin-sym  { font-size: 9px; }

  .td-price-col { font-size: 12px; min-width: 75px; }
  .pct { min-width: 46px; font-size: 10px; padding: 3px 5px; }
  .td-mcap, .td-vol { font-size: 11px; min-width: 70px; }

  .vc-pages { padding: 12px; }
  .vc-pg { padding: 6px 14px; font-size: 11px; }
}

@media(max-width: 380px) {
  .vc-cur { padding: 5px 9px; font-size: 11px; }
  .coin-name { font-size: 11px; }
}