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

body{
  font-family:Arial, sans-serif;
  background:#0b0f1a;
  color:#fff;
  padding-bottom:60px;
}

/* =====================
   HEADER
===================== */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#0f172a;
  padding:12px;
  text-align:center;
  border-bottom:1px solid #1f2937;
}

.header h1{
  font-size:18px;
}

.header p{
  font-size:12px;
  color:#94a3b8;
}

/* =====================
   PAGE WRAPPER
===================== */
.page{
  padding:15px;
}

/* =====================
   CARD
===================== */
.card{
  background:#111827;
  padding:15px;
  border-radius:10px;
  margin-top:10px;
}

/* =====================
   SEARCH
===================== */
#searchBox{
  width:100%;
  padding:10px;
  margin:10px 0;
  border:none;
  border-radius:8px;
  background:#111827;
  color:#fff;
  outline:none;
}

/* =====================
   COIN LIST
===================== */
.coin-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px;
  background:#111827;
  margin-bottom:8px;
  border-radius:10px;
  cursor:pointer;
  transition:0.2s;
}

.coin-item:hover{
  background:#1f2937;
}

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

.coin-left img{
  width:28px;
  height:28px;
}

/* =====================
   BUTTON
===================== */
#loadMoreBtn{
  width:100%;
  padding:12px;
  margin-top:10px;
  background:#1f2937;
  border:none;
  color:#fff;
  border-radius:8px;
  cursor:pointer;
}

#loadMoreBtn:hover{
  background:#374151;
}

/* =====================
   TIMEFRAME BUTTON
===================== */
.tf{
  display:flex;
  gap:6px;
  margin:10px 0;
}

.tf button{
  flex:1;
  padding:8px;
  background:#1f2937;
  border:none;
  color:#fff;
  border-radius:6px;
  cursor:pointer;
  font-size:12px;
}

.tf button:hover{
  background:#374151;
}

/* =====================
   CHART WRAP (CANDLE)
===================== */
.chart-wrap{
  position:relative;
}

/* candle + overlay */
#candleChart, #overlay{
  width:100%;
  height:350px;
  display:block;
}

/* overlay crosshair */
#overlay{
  position:absolute;
  top:0;
  left:0;
  pointer-events:none;
}

/* =====================
   MACD CHART
===================== */
#macdChart{
  width:100%;
  height:180px;
  display:block;
}

/* MACD card title optional */
.card h3{
  font-size:14px;
  margin-bottom:8px;
  color:#e5e7eb;
}

/* =====================
   PRICE BOX
===================== */
#priceBox{
  line-height:1.6;
}

#priceBox h2{
  font-size:20px;
  margin-bottom:5px;
}

/* =====================
   FUNDAMENTAL
===================== */
#fundamental p{
  font-size:13px;
  margin:4px 0;
  color:#cbd5e1;
}

/* =====================
   LOADING TEXT
===================== */
.loading{
  text-align:center;
  padding:10px;
  color:#94a3b8;
}

/* =====================
   NAV RIGHT LINKS
===================== */
.nav-right{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:15px;
  flex-wrap:wrap;
  padding:10px;
}

.nav-right a{
  text-decoration:none;
  color:#94a3b8;
  font-size:16px;
  padding:6px 10px;
  background:#111827;
  border:1px solid #1f2937;
  border-radius:6px;
  transition:0.2s;
}

.nav-right a:hover{
  background:#1f2937;
  color:#fff;
}

/* =====================
   FOOTER
===================== */
.footer{
  margin-top:20px;
  padding:15px;
  text-align:center;
  background:#0f172a;
  border-top:1px solid #1f2937;
  color:#94a3b8;
  font-size:16px;
}

.footer .sub{
  font-size:15px;
  color:#64748b;
  margin-top:5px;
}

