:root{
  --bg:#FFF9F0;
  --card:#ffffff;
  --text:#0f172a;      /* slate-900 */
  --muted:#475569;     /* slate-600 */
  --line:#e2e8f0;      /* slate-200 */
  --chip:#f1f5f9;      /* slate-100 */
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  /* new */
  --chartFrame: #0b1220;  /* deep navy/charcoal */
  --chartBorder: rgba(15, 23, 42, 0.18);
}
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.wrap{max-width:1150px;margin:0 auto;padding:18px}

.site-header{
  position:relative;
  min-height:210px;
  background-size:cover;
  background-position:center;
  border-bottom:1px solid rgba(0,0,0,0.06);
}

/* keep the banner readable */
.header-overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.45));
}

.header-inner{
  position:relative;
  max-width:1150px;
  margin:0 auto;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#fff}
.brand-logo{
  width:58px;height:58px;border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.30);
}
.brand-title{
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:1.02rem;
}
.brand-tagline{color:rgba(255,255,255,0.85);font-size:0.95rem;margin-top:3px}

.nav{display:flex;gap:14px}
.nav a{
  color:#fff;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-size:0.85rem;
  opacity:0.92;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(0,0,0,0.10);
}
.nav a:hover{background:rgba(0,0,0,0.18)}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow);
  margin-top:14px;
}

h1{margin:0 0 10px;font-size:1.35rem}
h2{margin:0 0 12px;font-size:1.1rem}
p{line-height:1.55}
.muted{color:var(--muted)}
.tiny{font-size:0.88rem}

.section-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  margin-bottom:10px;
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 980px){
  .grid-2{grid-template-columns:1fr}
  .nav{display:none}
}

.chart-card{
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding:12px;
}

.chart-card-wide{
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fafbfc 100%
    );
}

.chart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding-bottom:8px;
  border-bottom:1px solid rgba(0, 0, 0, 0.06);
  margin-bottom:10px;
}

.chart-head h3{
  margin:0;
  font-weight:600;
  letter-spacing:0.02em;
}

.chip{
  font-size:0.78rem;
  color:#0f172a;
  border:1px solid var(--line);
  background:var(--chip);
  padding:5px 8px;
  border-radius:999px;
}

.tv-chart{
  width:100%;
  height:380px;
  border-radius:14px;
  overflow:hidden;

  /* Subtle metallic panel behind the chart */
  background:
    linear-gradient(
      180deg,
      rgba(245, 247, 250, 1) 0%,
      rgba(236, 239, 244, 1) 100%
    );

  border:1px solid rgba(0, 0, 0, 0.10);

  /* Soft depth without going dark */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 12px 28px rgba(15, 23, 42, 0.10);
}

.cmc-wrap{display:flex;flex-direction:column;gap:12px}
.cmc-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}
.tv-chart{
  padding: 6px; /* creates a subtle border mat */
}
.tv-chart > div, .tv-chart iframe{
  border-radius:10px;
}
.cmc-wrap{display:flex;flex-direction:column;gap:12px}
.cmc-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}
.footer{
  margin-top:18px;
  border-top:1px solid rgba(0,0,0,0.06);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.footer-left{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.footer-right{
  display:flex;
  align-items:center;
}

/* Reddit icon button */
.footer-icon-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}

.footer-icon{
  width:18px;
  height:18px;
  fill: var(--muted);
}

.footer-icon-link:hover .footer-icon{ fill: var(--text); }
.footer-icon-link:hover{ transform: translateY(-1px); }

/* Mobile: keep it visible */
@media (max-width: 600px){
  .footer-inner{ flex-direction:row; }
}

.btn:hover{transform: translateY(-1px)}

.btn:hover{transform: translateY(-1px)}

.footer{margin-top:18px;border-top:1px solid rgba(0,0,0,0.06)}
.footer-inner{display:flex;justify-content:space-between;gap:12px}
.badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

/* Badge styles (light theme friendly) */
.badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 10px;
  font-size:0.78rem;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
}

.badge.ok{
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.10);
  color: #065f46;
}
.chart-head{
  border-bottom:1px solid rgba(0, 0, 0, 0.06);
  padding-bottom:8px;
}

.chart-head h3{
  font-weight:600;
  letter-spacing:0.02em;
}
.chart-head::after{
  content:"";
  display:block;
  margin-top:6px;
  height:1px;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,0.12),
    rgba(0,0,0,0)
  );
}

.badge.warn{
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.10);
  color: #7c4a03;
}
.chart-card{
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06);
}
.chart-card-wide{
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fafbfc 100%
    );
}
.chart-head::after{
  content:"";
  display:block;
  width:100%;
  margin-top:8px;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.12),
    rgba(0,0,0,0)
  );
}
.chart-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.chart-card{
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.chip{
  font-size:0.78rem;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.08);
  background: rgba(241,245,249,0.85);
  color:#0f172a;
}
/* =========================
   Status Row (above charts)
   ========================= */
.status-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:10px 0 12px;
}

.status-pill{
  font-size:0.78rem;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(241,245,249,0.85);
  color:#0f172a;
  line-height:1.2;
}

/* Backed */
.status-pill.backed{
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.25);
  color:#065f46;
}

/* Redeemable */
.status-pill.redeem{
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.28);
  color:#7c4a03;
}

/* Network */
.status-pill.net{
  background: rgba(59,130,246,0.10);
  border-color: rgba(59,130,246,0.22);
  color:#1e3a8a;
}

/* Minimum redemption */
.status-pill.min{
  background: rgba(148,163,184,0.16);
  border-color: rgba(148,163,184,0.35);
  color:#334155;
}

/* Audit/Docs link aligns right on desktop */
.status-link{
  margin-left:auto;
  font-size:0.82rem;
  color: var(--text, #0f172a);
  text-decoration:none;
  border-bottom:1px dotted rgba(0,0,0,0.35);
  padding:4px 0;
}

.status-link:hover{
  border-bottom-color: rgba(0,0,0,0.75);
}


/* =========================
   Premium vs Spot (below chart)
   ========================= */
.premium-box{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.08);
  background: rgba(248,250,252,0.92);
  font-size:0.9rem;
  color:#0f172a;
}


/* =========================
   Premium Heat Indicator
   ========================= */
.heat-row{
  margin-top:8px;
  display:flex;
  align-items:center;
}

.heat-badge{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 12px;
  font-size:0.82rem;
  border:1px solid rgba(0,0,0,0.10);
  background:#fff;
  color:#0f172a;
}

/* Heat states */
.heat-badge.discount{
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.28);
  color:#065f46;
}

.heat-badge.neutral{
  background: rgba(148,163,184,0.16);
  border-color: rgba(148,163,184,0.35);
  color:#334155;
}

.heat-badge.premium{
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.28);
  color:#7f1d1d;
}

.heat-badge.nodata{
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.28);
  color:#7c4a03;
}


/* =========================
   Mobile polish
   ========================= */
@media (max-width: 640px){
  /* make link not fight for space */
  .status-link{
    margin-left:0;
  }
}
