*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:
  Inter,
  Arial,
  sans-serif;
}

body{

  background:
  linear-gradient(
    135deg,
    #0f172a,
    #111827,
    #020617
  );

  color:white;

  overflow-x:hidden;
}

/* SCROLLBAR */

::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-thumb{

  background:#38bdf8;

  border-radius:10px;
}

/* TICKER */

.ticker-wrap{

  overflow:hidden;

  padding:14px;

  background:
  rgba(255,255,255,0.04);

  backdrop-filter:blur(18px);

  border-bottom:
  1px solid rgba(255,255,255,0.06);
}

.ticker{

  display:flex;

  gap:50px;

  animation:tickerMove 25s linear infinite;
}

.ticker-item{

  white-space:nowrap;

  font-weight:bold;
}

@keyframes tickerMove{

  0%{
    transform:translateX(100%);
  }

  100%{
    transform:translateX(-100%);
  }

}

/* SIDEBAR */

.sidebar{

  position:fixed;

  width:250px;

  height:100vh;

  background:
  rgba(255,255,255,0.05);

  backdrop-filter:blur(18px);

  border-right:
  1px solid rgba(255,255,255,0.08);

  padding:30px 20px;

  z-index:1000;
}

.logo{

  font-size:32px;

  font-weight:bold;

  margin-bottom:40px;

  background:
  linear-gradient(
    90deg,
    #38bdf8,
    #22d3ee
  );

  -webkit-background-clip:text;

  -webkit-text-fill-color:transparent;
}

.sidebar ul{
  list-style:none;
}

.sidebar li{

  padding:16px;

  margin-bottom:12px;

  border-radius:16px;

  cursor:pointer;

  transition:0.3s;
}

.sidebar li:hover{

  background:
  rgba(255,255,255,0.08);

  transform:translateX(5px);
}

/* MAIN */

.main{

  margin-left:250px;

  padding:20px;
}

/* HEADER */

header{

  position:sticky;

  top:0;

  z-index:999;

  display:flex;

  justify-content:space-between;

  align-items:center;

  padding:20px;

  margin-bottom:20px;

  border-radius:24px;

  background:
  rgba(255,255,255,0.05);

  backdrop-filter:blur(18px);

  border:
  1px solid rgba(255,255,255,0.08);
}

header input{

  width:320px;

  padding:14px;

  border:none;

  outline:none;

  border-radius:14px;

  background:
  rgba(255,255,255,0.06);

  color:white;

  font-size:15px;
}

.profile{

  font-weight:bold;

  color:#38bdf8;
}

/* HERO */

.hero{

  padding:50px;

  border-radius:30px;

  margin-bottom:20px;

  background:
  linear-gradient(
    135deg,
    rgba(56,189,248,0.2),
    rgba(34,211,238,0.08)
  );

  backdrop-filter:blur(20px);

  border:
  1px solid rgba(255,255,255,0.08);
}

.hero h1{

  font-size:54px;

  margin-bottom:10px;

  background:
  linear-gradient(
    90deg,
    #38bdf8,
    #22d3ee
  );

  -webkit-background-clip:text;

  -webkit-text-fill-color:transparent;
}

.hero p{

  color:#cbd5e1;

  font-size:18px;
}

/* TOP CARDS */

.top-cards{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(220px,1fr));

  gap:20px;

  margin-bottom:20px;
}

.card{

  padding:30px;

  border-radius:28px;

  background:
  rgba(255,255,255,0.05);

  backdrop-filter:blur(18px);

  border:
  1px solid rgba(255,255,255,0.08);

  transition:0.3s;
}

.card:hover{

  transform:
  translateY(-5px)
  scale(1.02);
}

.card h3{

  color:#94a3b8;

  margin-bottom:10px;
}

.card p{

  font-size:30px;

  font-weight:bold;

  color:#38bdf8;
}

/* TABLE SECTION */

.table-section{

  padding:25px;

  margin-bottom:20px;

  border-radius:28px;

  background:
  rgba(255,255,255,0.05);

  backdrop-filter:blur(18px);

  border:
  1px solid rgba(255,255,255,0.08);
}

.table-section h2{

  color:#38bdf8;
}

/* TABLE */

table{

  width:100%;

  border-collapse:collapse;
}

th{

  padding:18px;

  text-align:left;

  color:#94a3b8;
}

td{

  padding:18px;

  border-top:
  1px solid rgba(255,255,255,0.06);
}

tr{

  transition:0.3s;
}

tr:hover{

  background:
  rgba(255,255,255,0.04);
}

/* COIN */

.coin-info{

  display:flex;

  align-items:center;

  gap:14px;
}

.coin-info img{

  border-radius:50%;
}

/* COLORS */

.green{

  color:#22c55e;

  font-weight:bold;
}

.red{

  color:#ef4444;

  font-weight:bold;
}

/* BUTTON */

.watch-btn{

  background:
  linear-gradient(
    90deg,
    #38bdf8,
    #22d3ee
  );

  color:white;

  border:none;

  padding:10px 16px;

  border-radius:12px;

  cursor:pointer;

  font-weight:bold;

  transition:0.3s;
}

.watch-btn:hover{

  transform:scale(1.05);
}

/* NEWS */

#newsContainer{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(320px,1fr));

  gap:20px;
}

.news-card{

  overflow:hidden;

  border-radius:24px;

  background:
  rgba(255,255,255,0.05);

  backdrop-filter:blur(18px);

  border:
  1px solid rgba(255,255,255,0.08);

  transition:0.3s;
}

.news-card:hover{

  transform:
  translateY(-5px)
  scale(1.01);
}

.news-card img{

  width:100%;

  height:220px;

  object-fit:cover;
}

.news-card h3{

  padding:20px;

  font-size:20px;
}

.news-card p{

  padding:0 20px 20px;

  color:#cbd5e1;

  line-height:1.6;
}

.news-card a{

  display:block;

  padding:20px;

  color:#38bdf8;

  text-decoration:none;

  font-weight:bold;
}

/* WATCHLIST */

.watch-item{

  padding:20px;

  border-radius:22px;

  margin-bottom:15px;

  background:
  rgba(255,255,255,0.05);

  backdrop-filter:blur(18px);

  border:
  1px solid rgba(255,255,255,0.08);

  transition:0.3s;
}

.watch-item:hover{

  transform:translateY(-3px);
}

/* TOP MOVERS */

.top-movers{

  display:grid;

  grid-template-columns:1fr 1fr;

  gap:20px;
}

/* FEAR GREED */

#fearGreed{

  text-align:center;
}

#fearGreed h1{

  font-size:72px;

  margin-bottom:10px;

  background:
  linear-gradient(
    90deg,
    #38bdf8,
    #22d3ee
  );

  -webkit-background-clip:text;

  -webkit-text-fill-color:transparent;
}

/* SKELETON */

.skeleton{

  height:20px;

  border-radius:12px;

  background:
  linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.05) 75%
  );

  background-size:200% 100%;

  animation:skeleton 1.5s infinite;
}

@keyframes skeleton{

  0%{
    background-position:200% 0;
  }

  100%{
    background-position:-200% 0;
  }

}

/* MODAL */

.coin-modal{

  display:none;

  position:fixed;

  inset:0;

  background:rgba(0,0,0,0.8);

  z-index:9999;
}

.coin-modal-content{

  width:90%;

  max-width:600px;

  margin:80px auto;

  padding:30px;

  border-radius:30px;

  background:
  rgba(255,255,255,0.08);

  backdrop-filter:blur(20px);

  border:
  1px solid rgba(255,255,255,0.1);

  position:relative;
}

.close-modal{

  position:absolute;

  right:20px;

  top:20px;

  font-size:30px;

  cursor:pointer;
}

/* MINI CHART */

svg{

  overflow:visible;
}

/* MOBILE */

@media(max-width:900px){

  .sidebar{

    position:relative;

    width:100%;

    height:auto;
  }

  .main{

    margin-left:0;
  }

  header{

    flex-direction:column;

    gap:15px;
  }

  header input{

    width:100%;
  }

  .top-movers{

    grid-template-columns:1fr;
  }

  .hero h1{

    font-size:36px;
  }

}