/* Glowgrid Crypto by SWC styles */
:root{
  --bg: #05060a;
  --card: rgba(16,18,28,0.7);
  --text: #f2f5ff;
  --muted: #a9b1c6;
  --accent1: #7c3aed;
  --accent2: #00d4ff;
  --green: #00ffa3;
  --red: #ff5c7a;
}

*{ box-sizing: border-box; }

html, body{
  height:100%; margin:0; padding:0;
  background: radial-gradient(1000px 600px at 10% 10%, rgba(124,58,237,0.25), transparent 60%),
              radial-gradient(900px 700px at 90% 20%, rgba(0,212,255,0.18), transparent 60%),
              radial-gradient(700px 500px at 20% 90%, rgba(0,255,163,0.15), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#app{ padding: 24px; max-width: 1200px; margin: 0 auto; }

.glow-header{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom: 16px;
}
.glow-header h1{
  font-weight:800; font-size: 28px; letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(124,58,237,0.7), 0 0 24px rgba(0,212,255,0.5);
}
.by{ font-weight:400; color: var(--muted); }

.controls{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.watch-add{ display:flex; gap:8px; }
input#symbolInput{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color: var(--text);
  padding:10px 12px; border-radius:10px; min-width: 220px;
  outline: none;
}
.btn{
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(0,212,255,0.9));
  color:#001015; border:0; padding:10px 14px; border-radius:12px;
  font-weight:700; cursor:pointer; box-shadow: 0 0 20px rgba(124,58,237,0.45);
}
.btn:hover{ filter: brightness(1.05); }

.grid{
  display:grid; grid-template-columns: repeat(12, 1fr); gap:16px;
}
.card{
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(124,58,237,0.2), inset 0 0 40px rgba(0,212,255,0.06);
  padding: 16px;
}
.card[data-module="ticker-board"]{ grid-column: span 12; }
.card[data-module="chart"]{ grid-column: span 8; }
.card[data-module="news"]{ grid-column: span 4; max-height: 520px; overflow: hidden; display:flex; flex-direction:column; }
.card[data-module="about"]{ grid-column: span 12; }

.card-header{ display:flex; align-items: baseline; gap:8px; margin-bottom:12px; }
.card-header h2{ margin:0; font-size: 20px; }
.card-header .sub{ color: var(--muted); font-size: 12px; }

.ticker-board{ display:grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap:12px; }
.tile{
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding:12px;
  box-shadow: inset 0 0 20px rgba(124,58,237,0.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover{ transform: translateY(-2px); box-shadow: 0 0 16px rgba(0,212,255,0.25); }
.tile .sym{ font-weight:700; font-size:14px; letter-spacing:0.5px; }
.tile .price{ font-weight:800; font-size: 20px; margin-top:6px; }
.tile .row{ display:flex; align-items:center; justify-content:space-between; }
.tile .chg{ font-size:13px; }
.up{ color: var(--green); }
.down{ color: var(--red); }

.news-list{ list-style:none; margin:0; padding:0; overflow:auto; }
.news-item{ padding:10px 6px; border-bottom:1px solid rgba(255,255,255,0.06); }
.news-item a{ color: #b1e4ff; text-decoration: none; }
.news-item a:hover{ text-decoration: underline; }
.news-item .src{ color: var(--muted); font-size: 12px; display:block; }

.about{ color: var(--muted); }
.about-points{ margin:8px 0 0 16px; }
.footer{ color: var(--muted); margin-top: 18px; text-align:center; font-size: 12px; }

/* drag styles */
.card[draggable="true"]{ cursor: move; }
.card.dragging{ opacity: 0.6; outline: 2px dashed rgba(255,255,255,0.2); }
.card.drop-target{ outline: 2px dashed rgba(0,212,255,0.5); }
@media (max-width: 960px){
  .card[data-module="chart"]{ grid-column: span 12; }
  .card[data-module="news"]{ grid-column: span 12; max-height: none; }
}
