﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #0c0d12;
  --bg-2: #101320;
  --panel: #141827;
  --accent: #5bffcb;
  --accent-2: #ffb86b;
  --text: #e9edf7;
  --muted: #9aa3b5;
  --danger: #ff5e7e;
}

* { box-sizing: border-box; }

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(91,255,203,0.6);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.2);
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #1b2142 0%, var(--bg) 50%),
              radial-gradient(900px 700px at 100% 0%, #14202a 0%, var(--bg) 55%);
  min-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(91,255,203,0.6) rgba(0,0,0,0.2);
}

.bg-glow {
  position: fixed;
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(91,255,203,0.25), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.hero {
  position: relative;
  padding: 48px 8vw 24px;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--accent);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin: 8px 0 12px;
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-actions {
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.subtitle {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.5;
}

.hero-actions { display: flex; gap: 12px; margin-top: 18px; }

.hero-card {
  background: linear-gradient(135deg, #1c2236, #121725);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.now-playing {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 8vw 60px;
  position: relative;
  z-index: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  min-height: 240px;
}

.panel.wide { grid-column: 1 / -1; }

.kickstart-panel {
  width: min(700px, 100%);
  margin: 0 auto;
  text-align: center;
}

.kickstart-panel .panel-head {
  justify-content: center;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.toggle .btn.ghost {
  border-color: transparent;
}

.toggle .btn.is-active {
  background: var(--accent);
  color: #07120f;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(91,255,203,0.12);
  color: var(--accent);
  letter-spacing: 0.2em;
}

.list { display: grid; gap: 12px; }

#playlistPanel .list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#playlistPanel .list.all {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

#activityPanel .list {
  max-height: 460px;
  overflow-y: auto;
  padding-right: 6px;
}

.track-row, .activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.track-row .title, .activity-row .title {
  font-weight: 600;
}

.track-row .meta, .activity-row .meta {
  font-size: 12px;
  color: var(--muted);
}

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

.btn {
  background: var(--accent);
  color: #07120f;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.btn.small { padding: 6px 12px; font-size: 12px; }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(91,255,203,0.5);
}

.btn:hover { filter: brightness(1.05); }

.card {
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

input, textarea, select {
  background: #0d111b;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
}

textarea { resize: vertical; }

.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.row { display: flex; gap: 10px; }

#trackDialog::backdrop { background: rgba(0,0,0,0.6); }

#trackDialog {
  border: none;
  background: transparent;
}

.dialog-inner {
  background: var(--panel);
  border-radius: 14px;
  padding: 18px;
  min-width: min(560px, 90vw);
  border: 1px solid rgba(255,255,255,0.08);
}

.dialog-content { margin-top: 10px; }

.kickstart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  justify-items: center;
}

.kickstart-card {
  width: min(620px, 100%);
  background: linear-gradient(160deg, rgba(91,255,203,0.12), rgba(255,184,107,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.kickstart-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}

.kickstart-code {
  margin-top: 10px;
  background: #0c101a;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--accent-2);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.kickstart-card .btn {
  margin-top: 10px;
}

.kickstart-steps {
  width: min(620px, 100%);
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.kickstart-steps .step {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
}

.kickstart-steps .step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(91,255,203,0.15);
  color: var(--accent);
  font-weight: 700;
}

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