/* ============================================================
   Mission Control v3.1.0 — design language
   Inspired by paKlXto + Guy Hawkins dashboards
   Brand colors: --bg-primary #0F0F11, --accent #CEFD82 (lime),
                 --accent-2 #6D4AFF (purple)
   ============================================================ */

/* ==== Page wrapper ==== */
.mc-page { display: flex; flex-direction: column; gap: 18px; }

/* ==== Hero band ==== */
.mc-hero {
  background: linear-gradient(135deg, #0F0F11 0%, #13131A 60%, #0F0F11 100%);
  border: 1px solid #2A2A35;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.mc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(206, 253, 130, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(109, 74, 255, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.mc-hero-band {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  padding: 32px 36px;
  position: relative;
  z-index: 1;
}
.mc-hero-eyebrow {
  color: #CEFD82;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 10px;
}
.mc-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.mc-hero-sub {
  color: #D1D1D8;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 640px;
}
.mc-hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.mc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(206, 253, 130, 0.08);
  border: 1px solid rgba(206, 253, 130, 0.25);
  border-radius: 100px;
  color: #CEFD82;
  font-size: 12px;
  font-weight: 600;
}
.mc-pill-icon { width: 14px; height: 14px; }
.mc-hero-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.mc-hero-stat { display: flex; flex-direction: column; }
.mc-hero-stat-value {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.mc-hero-stat-label {
  color: #8A8A93;
  font-size: 11px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.mc-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.mc-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-hero-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(206, 253, 130, 0.4);
  animation: mc-ring-pulse 4s ease-in-out infinite;
}
.mc-hero-ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.mc-hero-ring-2 { width: 180px; height: 180px; animation-delay: 0.5s; border-color: rgba(109, 74, 255, 0.4); }
.mc-hero-ring-3 { width: 240px; height: 240px; animation-delay: 1s; }
@keyframes mc-ring-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.mc-hero-glyph {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #CEFD82 0%, #6D4AFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: #0F0F11;
  box-shadow: 0 12px 40px rgba(206, 253, 130, 0.4);
  position: relative;
  z-index: 2;
}

/* ==== Buttons ==== */
.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}
.mc-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(206, 253, 130, 0.3);
  transform: translateY(-1px);
}
.mc-btn-primary {
  background: linear-gradient(135deg, #CEFD82 0%, #B5E96A 100%);
  color: #0F0F11;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(206, 253, 130, 0.3);
}
.mc-btn-primary:hover {
  background: linear-gradient(135deg, #D4FFA0 0%, #C0F080 100%);
  box-shadow: 0 6px 24px rgba(206, 253, 130, 0.5);
}
.mc-btn i { width: 16px; height: 16px; }

.mc-link {
  color: #CEFD82;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.mc-link:hover { background: rgba(206, 253, 130, 0.1); }

/* ==== KPI grid (4 columns) ==== */
.mc-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .mc-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .mc-kpis { grid-template-columns: 1fr; } }

.mc-kpi-card {
  background: var(--bg-card, #1A1A1F);
  border: 1px solid #2A2A35;
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.mc-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.mc-kpi-card:hover { border-color: var(--accent); }
.mc-kpi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mc-kpi-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.mc-kpi-icon i { width: 18px; height: 18px; }
.mc-kpi-label {
  color: #8A8A93;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mc-kpi-value {
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}
.mc-kpi-suffix { font-size: 18px; color: #D1D1D8; margin-left: 2px; }
.mc-kpi-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.mc-kpi-delta i { width: 12px; height: 12px; }
.mc-kpi-delta-up   { background: rgba(206, 253, 130, 0.12); color: #CEFD82; }
.mc-kpi-delta-down { background: rgba(255, 107, 107, 0.12); color: #FF6B6B; }
.mc-kpi-sparkline { display: inline-flex; }
.mc-sparkline-svg { display: block; }

/* ==== Charts row (2 columns) ==== */
.mc-charts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) { .mc-charts { grid-template-columns: 1fr; } }

.mc-chart-card {
  background: var(--bg-card, #1A1A1F);
  border: 1px solid #2A2A35;
  border-radius: 14px;
  padding: 18px 20px;
}
.mc-chart-body { margin-top: 8px; }
.mc-line-chart, .mc-bar-chart { display: block; }

/* ==== Generic card ==== */
.mc-card {
  background: var(--bg-card, #1A1A1F);
  border: 1px solid #2A2A35;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.mc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2A2A35;
}
.mc-card-header h3 {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}
.mc-card-meta {
  color: #8A8A93;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==== Feed row (3 columns) ==== */
.mc-feed {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 14px;
}
@media (max-width: 1100px) { .mc-feed { grid-template-columns: 1fr; } }

/* ==== Activity list ==== */
.mc-activity-list { display: flex; flex-direction: column; gap: 8px; }
.mc-activity-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mc-activity-row:hover { background: rgba(255, 255, 255, 0.04); }
.mc-activity-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #CEFD82;
  font-weight: 700;
  font-size: 13px;
  background: rgba(206, 253, 130, 0.12);
  flex-shrink: 0;
}
.mc-activity-body { min-width: 0; }
.mc-activity-title {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-activity-sep { color: #8A8A93; margin: 0 4px; }
.mc-activity-meta {
  color: #8A8A93;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-activity-time {
  color: #8A8A93;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.mc-activity-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mc-status-success { background: #CEFD82; box-shadow: 0 0 8px rgba(206, 253, 130, 0.6); }
.mc-status-pending { background: #FFD66B; }
.mc-status-failed  { background: #FF6B6B; }

/* ==== Donut ==== */
.mc-donut-wrap { display: flex; gap: 16px; align-items: center; }
.mc-donut-svg { flex-shrink: 0; }
.mc-donut-legend { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.mc-legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.mc-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.mc-legend-label { color: #D1D1D8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-legend-count { color: #FFFFFF; font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ==== Table ==== */
.mc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mc-table th {
  color: #8A8A93;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #2A2A35;
}
.mc-table td {
  color: #D1D1D8;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(42, 42, 53, 0.5);
}
.mc-table td code {
  color: #CEFD82;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(206, 253, 130, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}
.mc-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mc-pill-paid    { background: rgba(206, 253, 130, 0.12); color: #CEFD82; }
.mc-pill-pending { background: rgba(255, 214, 107, 0.12); color: #FFD66B; }
.mc-pill-failed  { background: rgba(255, 107, 107, 0.12); color: #FF6B6B; }

/* ==== Quick actions (4 columns) ==== */
.mc-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .mc-actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .mc-actions { grid-template-columns: 1fr; } }

.mc-action-card {
  background: var(--bg-card, #1A1A1F);
  border: 1px solid #2A2A35;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}
.mc-action-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.mc-action-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.mc-action-card:hover::before { opacity: 1; }
.mc-action-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 12px;
}
.mc-action-icon i { width: 20px; height: 20px; }
.mc-action-title {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.mc-action-desc {
  color: #8A8A93;
  font-size: 11px;
  margin-bottom: 12px;
  flex: 1;
}
.mc-action-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #2A2A35;
}
.mc-action-count {
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}
.mc-action-label { color: #8A8A93; font-size: 11px; flex: 1; }
.mc-action-arrow { color: var(--accent); width: 14px; height: 14px; }

/* ==== System health (5 columns) ==== */
.mc-health {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) { .mc-health { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .mc-health { grid-template-columns: repeat(2, 1fr); } }

.mc-health-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card, #1A1A1F);
  border: 1px solid #2A2A35;
  border-radius: 12px;
  transition: border-color 0.2s;
}
.mc-health-stat:hover { border-color: rgba(206, 253, 130, 0.3); }
.mc-health-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(206, 253, 130, 0.1);
  color: #CEFD82;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mc-health-icon i { width: 16px; height: 16px; }
.mc-health-body { min-width: 0; }
.mc-health-value {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.mc-health-label {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.mc-health-sub {
  color: #8A8A93;
  font-size: 11px;
  margin-top: 2px;
}

/* ==== Side panels (notifications + activities + contacts) ==== */
.mc-side {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 1100px) { .mc-side { grid-template-columns: 1fr; } }

.mc-list { display: flex; flex-direction: column; gap: 4px; }
.mc-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mc-list-row:hover { background: rgba(255, 255, 255, 0.04); }
.mc-list-row i { width: 16px; height: 16px; flex-shrink: 0; }
.mc-list-body { min-width: 0; flex: 1; }
.mc-list-title {
  color: #D1D1D8;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-list-time {
  color: #8A8A93;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}
.mc-contact-row { gap: 8px; }
.mc-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.mc-online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mc-online-dot.on  { background: #CEFD82; box-shadow: 0 0 6px rgba(206, 253, 130, 0.6); }
.mc-online-dot.off { background: #8A8A93; }

/* ==== Empty state ==== */
.mc-empty {
  color: #8A8A93;
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
}

/* ==== Skeleton ==== */
.mc-hero.skeleton {
  min-height: 280px;
  background: linear-gradient(90deg, #1A1A1F 0%, #2A2A35 50%, #1A1A1F 100%);
  background-size: 200% 100%;
  animation: mc-shimmer 1.5s infinite;
}
@keyframes mc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==== Mobile ==== */
@media (max-width: 700px) {
  .mc-hero-band { grid-template-columns: 1fr; padding: 20px; }
  .mc-hero-art { display: none; }
  .mc-hero-title { font-size: 22px; }
  .mc-hero-stats { gap: 16px; }
  .mc-hero-stat-value { font-size: 18px; }
  .mc-kpi-value { font-size: 24px; }
  .mc-activity-row { grid-template-columns: 28px 1fr auto; }
  .mc-activity-status { display: none; }
  .mc-donut-wrap { flex-direction: column; align-items: flex-start; }
}
