:root {
  --bg-primary: #0a0a0a;
  --bg-surface: #111111;
  --bg-surface2: #1a1a1a;
  --accent-gold: #e8b923;
  --accent-blue: #4a9eff;
  --text-primary: #e5e5e5;
  --text-secondary: #aaaaaa;
  --text-muted: #777777;
  --border-color: #333333;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;

  --radius-sm: 4px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.dashboard-header {
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface2);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
  padding: 20px;
}

.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 180ms ease;
}

.widget:hover {
  box-shadow: 0 2px 3px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}

.widget-header {
  padding: var(--space-md);
  background: var(--bg-surface2);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.widget-content {
  padding: var(--space-md);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: 6px;
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.btn {
  padding: 8px 16px;
  margin: 4px;
  background: var(--bg-surface2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}