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

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #1a1a25;
  --border: #1e1e30;
  --text: #e0e0e8;
  --text-dim: #70707a;
  --accent: #6c5ce7;
  --accent-dim: #4a3faf;
  --green: #00c853;
  --yellow: #ffd600;
  --red: #ff1744;
  --orange: #ff9100;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.app { max-width: 1280px; margin: 0 auto; padding: 24px; }

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}

.header-left h1 { font-size: 24px; font-weight: 700; color: #fff; }
.subtitle { font-size: 13px; color: var(--text-dim); }

.header-right { text-align: right; }
.live-clock { font-size: 28px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.date-display { font-size: 13px; color: var(--text-dim); }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.stat-number { font-size: 32px; font-weight: 700; color: #fff; }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h2 { font-size: 16px; font-weight: 600; }

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-dim);
  color: #fff;
}

.count-badge { background: var(--accent); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}

.product-card:hover { background: var(--bg-card-hover); border-color: var(--accent-dim); transform: translateY(-1px); }

.product-name { font-size: 13px; font-weight: 600; color: #fff; }
.product-price { font-size: 11px; color: var(--accent); margin-top: 2px; }
.product-status { font-size: 10px; color: var(--green); margin-top: 4px; font-weight: 500; }
.product-status.coming { color: var(--orange); }

/* Cron List */
.cron-list { max-height: 400px; overflow-y: auto; }
.cron-list::-webkit-scrollbar { width: 6px; }
.cron-list::-webkit-scrollbar-track { background: transparent; }
.cron-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.cron-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.cron-item:last-child { border-bottom: none; }

.cron-time {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--text-dim);
  width: 50px;
  flex-shrink: 0;
}

.cron-name { flex: 1; }

.cron-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-active { background: rgba(0, 200, 83, 0.15); color: var(--green); }

/* Video Pipeline */
.video-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 8px;
}

.video-info { display: flex; flex-direction: column; }
.video-label { font-size: 13px; font-weight: 600; }
.video-schedule { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.video-status { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }

/* Grants */
.grant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 8px;
}

.grant-item.urgent { border-left: 3px solid var(--orange); }

.grant-info { display: flex; flex-direction: column; }
.grant-name { font-size: 13px; font-weight: 600; }
.grant-value { font-size: 11px; color: var(--green); margin-top: 2px; }
.grant-deadline { font-size: 11px; color: var(--orange); font-weight: 600; }

/* Quick Actions */
.quick-actions-card { margin-bottom: 16px; }

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.action-btn:hover { background: var(--accent-dim); border-color: var(--accent); color: #fff; }
.action-btn.current { border-color: var(--accent); background: rgba(108, 92, 231, 0.1); }

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 12px;
}