:root {
  --bg: #0b0b0b;
  --panel: #101010;
  --ink: #e9e9e9;
  --muted: #a3a3a3;
  --line: #1f1f1f;
  --accent: #e11d48;
  --accent-2: #861b2d;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 32px rgba(0,0,0,.35);
  --max-w: 1140px;
  --speed: .15s;
  --focus: #fff;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

/* Navigation */
.nav {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  transition: color var(--speed);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* Dashboard */
.dashboard-main {
  padding: 48px 0 80px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 48px;
}

.dashboard-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}

.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
}

/* Dashboard Container */
.dashboard-container {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  min-height: 500px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.loading,
.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: var(--muted);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.error button {
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.error button:hover {
  background: var(--accent-2);
}

.dashboard-content {
  display: none;
}

.dashboard-content.loaded {
  display: block;
}

/* Solidarity Hero Display */
.solidarity-hero {
  text-align: center;
  padding: 60px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.solidarity-number {
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.solidarity-label {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.solidarity-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  margin-bottom: 24px;
}

.solidarity-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.separator {
  color: var(--line);
}

/* Solidarity Message */
.solidarity-message {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

.solidarity-message h3 {
  margin: 0 0 16px;
  font-size: 24px;
  color: var(--accent);
}

.solidarity-message p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.solidarity-message p:last-child {
  margin-bottom: 0;
}

/* CTA */
.solidarity-cta {
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--speed), box-shadow var(--speed);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

.cta-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.cta-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Privacy Notice */
.privacy-notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}

.privacy-notice h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.privacy-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
}

.footlinks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}

.footlinks a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.footlinks a:hover {
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 32px 20px;
  }

  .solidarity-hero {
    padding: 40px 20px;
  }

  .solidarity-number {
    font-size: 56px;
  }

  .solidarity-message {
    padding: 24px;
  }

  .nav-links {
    gap: 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Activity Feed */
.activity-section {
  margin-top: 48px;
  padding: 32px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.activity-section h2 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--line);
  align-items: center;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-time {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
  min-width: 70px;
}

.activity-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
}

.activity-text strong {
  color: var(--accent);
  font-weight: 600;
}

.readiness-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.readiness-badge.high {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.readiness-badge.medium {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.readiness-badge.low {
  background: rgba(163, 163, 163, 0.15);
  color: var(--muted);
  border: 1px solid rgba(163, 163, 163, 0.3);
}

.activity-loading,
.activity-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Activity feed scrollbar styling */
.activity-feed::-webkit-scrollbar {
  width: 8px;
}

.activity-feed::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

.activity-feed::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
