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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #0c0a1d 0%, #1a1333 100%);
  color: #f8fafc;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.back {
  display: inline-block;
  color: #a78bfa;
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back:hover {
  color: #c4b5fd;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #a5b4fc;
  font-size: 1.1rem;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #c4b5fd;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #a78bfa;
  color: #e2e8f0;
}

.filter-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

.filter-btn.priority {
  border-color: #f59e0b;
  color: #fbbf24;
}

.filter-btn.priority.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #1a1333;
}

.loading {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  color: #94a3b8;
}

.error {
  text-align: center;
  padding: 2rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}

.error.hidden {
  display: none;
}

.error p {
  color: #fca5a5;
  margin-bottom: 0.75rem;
}

.error code {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #a5f3fc;
  margin-bottom: 1rem;
}

.retry-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: #7c3aed;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.retry-btn:hover {
  background: #6d28d9;
}

.ships-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ships-list.hidden {
  display: none;
}

.ship-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ship-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ship-card.priority {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.ship-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.ship-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.ship-title a {
  color: inherit;
  text-decoration: none;
}

.ship-title a:hover {
  color: #a78bfa;
}

.attest-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.attest-badge.two {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.attest-badge.one {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.attest-badge.zero {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.ship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.ship-meta a {
  color: #a78bfa;
  text-decoration: none;
}

.ship-meta a:hover {
  text-decoration: underline;
}

.ship-description {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.ship-actions {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.action-btn.primary {
  background: #7c3aed;
  color: white;
}

.action-btn.primary:hover {
  background: #6d28d9;
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
}

.empty-state.hidden {
  display: none;
}

footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: #64748b;
  font-size: 0.9rem;
}

footer a {
  color: #a78bfa;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.note {
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .ship-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ship-actions {
    flex-direction: column;
  }
}
