:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --border: #e2e6ee;
  --text: #1f2430;
  --text-muted: #6b7280;
  --primary: #3b6df0;
  --primary-dark: #2851c4;
  --accent: #8b0a50;
  --success: #1a9c6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 4px;
}

.tab {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.tab--active {
  background: #eef2ff;
  color: var(--primary-dark);
}

.content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.panel-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.panel-hint.is-online {
  color: var(--success);
}

.panel-hint.is-offline {
  color: var(--accent);
}

.campaign-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.campaign-table th {
  text-align: left;
  padding: 10px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.campaign-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

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

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-pill--active {
  background: #e6f7ef;
  color: var(--success);
}

.status-pill--paused {
  background: #f1f2f6;
  color: var(--text-muted);
}
