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

:root {
    --bg: #0a0a0f;
    --card: rgba(20, 20, 30, 0.9);
    --accent: #00d4ff;
    --accent2: #7b2cbf;
    --green: #00ff88;
    --red: #ff4466;
    --yellow: #ffd700;
    --text: #e4e4e4;
    --muted: #666;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(
      120deg,
      #0a0f1c,
      #1c1240,
      #102a4d,
      #2a0f3d,
      #0a0f1c
    );
    background-size: 300% 300%;
    animation: neuraxFlow 14s ease-in-out infinite;
}

@keyframes neuraxFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 44, 191, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    z-index: -1;
}

/* Live purple animated lines background */
.bg-lines{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(160,32,240,0.18), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(120,60,255,0.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
  overflow: hidden;
}

.bg-lines::before,
.bg-lines::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(160,32,240,0.0) 0px,
      rgba(160,32,240,0.0) 18px,
      rgba(160,32,240,0.20) 19px,
      rgba(160,32,240,0.0) 22px
    );
  filter: blur(0.2px);
  transform: translate3d(0,0,0);
}

.bg-lines::before{
  animation: drift1 18s linear infinite;
  opacity: 0.55;
}

.bg-lines::after{
  animation: drift2 28s linear infinite;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      65deg,
      rgba(180,80,255,0.0) 0px,
      rgba(180,80,255,0.0) 22px,
      rgba(180,80,255,0.16) 23px,
      rgba(180,80,255,0.0) 27px
    );
}

@keyframes drift1{
  0%   { transform: translate(-6%, -4%) scale(1.05); }
  100% { transform: translate(6%, 4%) scale(1.05); }
}

@keyframes drift2{
  0%   { transform: translate(8%, -6%) scale(1.08); }
  100% { transform: translate(-8%, 6%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce){
  .bg-lines::before, .bg-lines::after{ animation: none; }
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.name {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-title{
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(
    90deg,
    #00d2ff 0%,
    #7a5cff 25%,
    #ff4fd8 50%,
    #7a5cff 75%,
    #00d2ff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(122,92,255,0.35);
  animation: shimmerWave 3.2s ease-in-out infinite;
  margin: 0;
}

@keyframes shimmerWave{
  0%   { background-position: 0% 50%;   filter: drop-shadow(0 0 12px rgba(0,210,255,0.25)); }
  50%  { background-position: 100% 50%; filter: drop-shadow(0 0 22px rgba(255,79,216,0.25)); }
  100% { background-position: 0% 50%;   filter: drop-shadow(0 0 12px rgba(0,210,255,0.25)); }
}

@media (prefers-reduced-motion: reduce){
  .brand-title{ animation: none; }
}

.tagline {
    font-size: 0.75rem;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 8px;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pill:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent);
}

.wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.hero {
    margin-bottom: 24px;
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: var(--muted);
    margin-bottom: 8px;
}

.live-note {
    text-align: center;
    font-size: 14px;
    color: #00f0ff;
    opacity: 0.85;
    margin-top: 25px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.live-badge {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: #00ff9d;
    font-weight: bold;
    letter-spacing: 1px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.input, .select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.input {
    flex: 1;
    min-width: 200px;
}

.input:focus, .select:focus {
    outline: none;
    border-color: var(--accent);
}

.select option {
    background: #1a1a2e;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat {
    text-align: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.panel-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.feed::-webkit-scrollbar {
    width: 6px;
}

.feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.feed::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.item {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
}

.item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.item.new {
    animation: newItem 2s ease-out;
}

@keyframes newItem {
    0% { border-color: var(--green); box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    100% { border-color: var(--border); box-shadow: none; }
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge.tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent);
}

.badge.score {
    background: rgba(123, 44, 191, 0.2);
    color: #b366ff;
}

.badge.senti.bullish {
    background: rgba(0, 255, 136, 0.2);
    color: var(--green);
}

.badge.senti.bearish {
    background: rgba(255, 68, 102, 0.2);
    color: var(--red);
}

.badge.senti.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.badge.soft {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.source {
    font-size: 0.75rem;
    color: var(--muted);
}

.time {
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: auto;
}

.title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.4;
}

.title:hover {
    color: var(--accent);
}

.sum {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.coin-search {
    position: relative;
}

.coin-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.coin-results.show {
    display: block;
}

.coin-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.coin-item:last-child {
    border-bottom: none;
}

.coin-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.coin-name {
    font-weight: 600;
}

.coin-symbol {
    color: var(--muted);
    text-transform: uppercase;
}

#sources {
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

#sources span,
#sources div,
#sources {
    background: linear-gradient(
        90deg,
        #00d2ff,
        #7a5cff,
        #ff4fd8,
        #00d2ff
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sourceTextFlow 18s ease-in-out infinite;
}

@keyframes sourceTextFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer {
    margin-top: 48px;
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    opacity: 0.8;
}

.privacy-text {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-list {
    color: var(--muted);
    margin-left: 24px;
    margin-bottom: 16px;
    line-height: 1.8;
}

.privacy-list li {
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .topbar {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.coin-row {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.coin-row:last-child {
    border-bottom: none;
}

.coin-row:hover {
    background: rgba(0, 212, 255, 0.1);
}

.coin-row a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.coin-row a:hover {
    color: var(--accent);
}

.coin-row .muted {
    font-size: 0.75rem;
    color: var(--muted);
}

.chart-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.chart-card {
    padding: 14px;
}

canvas {
    width: 100%;
}
