@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #030712;
  --surface: rgba(17, 24, 39, 0.6);
  --surface-hover: rgba(31, 41, 55, 0.7);
  --surface-card: rgba(17, 24, 39, 0.45);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --quiet: #6b7280;
  
  /* Accent Colors */
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.25);
  --bull: #10b981;
  --bull-glow: rgba(16, 185, 129, 0.2);
  --bear: #ef4444;
  --bear-glow: rgba(239, 68, 68, 0.2);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.2);
  
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.shell {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.topbar,
.panel-head,
.runtime-grid {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-pill.live {
  border-color: rgba(6, 182, 212, 0.32);
  color: #ffffff;
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.12);
}

.status-pill.stale {
  border-color: rgba(245, 158, 11, 0.3);
  color: #ffffff;
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--quiet);
  transition: all 0.3s ease;
}

.status-pill.live .dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.8s infinite;
}

.status-pill.stale .dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.metric {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-height: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.metric:hover::after {
  opacity: 1;
}

.metric .label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.workspace {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.workspace-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.panel {
  min-width: 0;
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: background 0.5s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.primary-panel {
  border-color: rgba(6, 182, 212, 0.25);
  background: rgba(12, 20, 33, 0.65);
  box-shadow: 0 10px 35px rgba(6, 182, 212, 0.05);
}

.primary-panel::before {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.primary-panel:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.panel:hover .panel-icon {
  transform: scale(1.15);
}

.cyan-icon { color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan-glow)); }
.amber-icon { color: var(--amber); filter: drop-shadow(0 0 6px var(--amber-glow)); }
.bear-icon { color: var(--bear); filter: drop-shadow(0 0 6px var(--bear-glow)); }
.purple-icon { color: var(--purple); filter: drop-shadow(0 0 6px var(--purple-glow)); }
.blue-icon { color: var(--blue); filter: drop-shadow(0 0 6px var(--blue-glow)); }
.quiet-icon { color: var(--muted); }

.panel-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
}

button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  transform: translateY(-1px);
}

button:hover svg {
  transform: rotate(180deg);
}

button:active {
  transform: translateY(0);
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.coverage-block,
.health-stack {
  display: grid;
  gap: 16px;
}

.coverage-block > div,
.health-stack > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.4);
}

.coverage-block strong,
.health-stack strong {
  display: block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip,
.rule-pill,
.score-pill,
.price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 7px;
  background: rgba(6, 182, 212, 0.08);
  color: #a5f3fc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}

.chip.frame {
  border-color: rgba(139, 92, 246, 0.22);
  background: rgba(139, 92, 246, 0.08);
  color: #ddd6fe;
}

.rule-pill {
  white-space: nowrap;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 18, 0.4);
}

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

.compact-signal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.compact-signal {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.compact-signal:hover {
  background: rgba(31, 41, 55, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.compact-signal strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #ffffff;
}

.compact-signal span,
.compact-signal time {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.compact-signal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.signal-row:hover {
  background: rgba(31, 41, 55, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.signal-main {
  display: grid;
  gap: 4px;
}

.signal-main strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
}

.signal-main span,
.empty-state span,
.empty-text {
  color: var(--muted);
  font-size: 13px;
}

.signal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.signal-meta time {
  color: var(--quiet);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.score-pill {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}

.price-pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.34);
}

.runtime-grid > div {
  min-height: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.4);
  transition: all 0.25s ease;
}

.runtime-grid > div:hover {
  background: rgba(3, 7, 18, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.runtime-grid .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.runtime-grid strong {
  display: block;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #ffffff;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.summary-line {
  margin: 20px 0 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.55);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.funnel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  justify-content: center;
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar:nth-child(2) .bar-fill {
  background: linear-gradient(90deg, var(--purple), #ec4899);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.bar:nth-child(3) .bar-fill {
  background: linear-gradient(90deg, var(--amber), #ef4444);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.bar:nth-child(4) .bar-fill {
  background: linear-gradient(90deg, var(--bull), #059669);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.table-wrap {
  overflow: auto;
  max-height: 280px;
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.table-wrap::-webkit-scrollbar,
.events::-webkit-scrollbar,
.compact-signal-list::-webkit-scrollbar {
  width: 5px;
}
.table-wrap::-webkit-scrollbar-track,
.events::-webkit-scrollbar-track,
.compact-signal-list::-webkit-scrollbar-track {
  background: transparent;
}
.table-wrap::-webkit-scrollbar-thumb,
.events::-webkit-scrollbar-thumb,
.compact-signal-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}
.table-wrap::-webkit-scrollbar-thumb:hover,
.events::-webkit-scrollbar-thumb:hover,
.compact-signal-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(17, 24, 39, 0.55);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

td {
  color: #e5e7eb;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s ease;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

.events,
.diagnostics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.events {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.event {
  list-style: none;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.45);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event:hover {
  background: rgba(3, 7, 18, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--quiet);
  font-size: 11px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.tag {
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
}

/* Diagnostics alerts styles */
.diagnostics li {
  list-style: none;
  padding: 16px 16px 16px 44px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.05);
  color: #fca5a5;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  transition: all 0.2s ease;
}

.diagnostics li::before {
  content: '!';
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 15px;
}

/* Dynamic styling classes applied via script */
.diagnostics li.diag-ok {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
  color: #a7f3d0;
}

.diagnostics li.diag-ok::before {
  content: 'OK';
  font-size: 11px;
  font-weight: 800;
}

.diagnostics li.diag-info {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.05);
  color: #93c5fd;
}

.diagnostics li.diag-info::before {
  content: 'i';
  font-weight: 800;
}

/* Directions & Badge details */
.direction-bullish {
  color: var(--bull) !important;
  font-weight: 700;
}

.direction-bearish {
  color: var(--bear) !important;
  font-weight: 700;
}

.badge-direction {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-direction.bullish {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge-direction.bearish {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.badge-strategy {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-mode {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: lowercase;
}

@media (max-width: 1200px) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 320px 1fr;
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .runtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .signal-meta {
    justify-content: flex-start;
  }
}

/* Spinner Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

