@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:wght@300;400;500;600&family=Syne:wght@600;700;800&display=swap');

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --bg:            #08080A;
  --bg-card:       #0D0D10;
  --bg-card-2:     #111116;
  --bg-card-3:     #16161C;
  --border:        rgba(232, 184, 75, 0.08);
  --border-hover:  rgba(232, 184, 75, 0.18);
  --border-active: rgba(232, 184, 75, 0.35);
  --accent:        #E8B84B;
  --accent-dim:    rgba(232, 184, 75, 0.06);
  --accent-mid:    rgba(232, 184, 75, 0.14);
  --success:       #2ECC71;
  --success-dim:   rgba(46, 204, 113, 0.10);
  --warning:       #E67E22;
  --warning-dim:   rgba(230, 126, 34, 0.10);
  --danger:        #E74C3C;
  --danger-dim:    rgba(231, 76, 60, 0.10);
  --info:          #3498DB;
  --info-dim:      rgba(52, 152, 219, 0.10);
  --text:          #EEEAE0;
  --text-muted:    #7A746C;
  --text-dim:      #B8B2A8;
  --header-h:      88px;
  --tab-h:         36px;
}

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

html, body {
  height: 100%;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* Ambient light */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 30% at 8% 0%, rgba(232,184,75,0.045) 0%, transparent 65%),
    radial-gradient(ellipse 35% 25% at 92% 100%, rgba(46,204,113,0.025) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header (2-row) ─────────────────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-active);
  height: var(--header-h);
  display: flex;
  flex-direction: column;
}

/* Row 1: logo + vitals */
.header-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

/* Row 2: tabs */
.header-row2 {
  display: flex;
  align-items: stretch;
  padding: 0 20px;
  height: var(--tab-h);
  gap: 2px;
}

/* ── Logo ───────────────────────────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-ring {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.logo-ring svg {
  position: absolute;
  inset: 0;
  animation: ring-spin 8s linear infinite;
}

.logo-ring-dot {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  line-height: 1;
}

/* ── Status vitals strip ────────────────────────────────────── */
.vitals-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.vital {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 10px;
  white-space: nowrap;
  transition: border-color 0.3s;
}

.vital .v-label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.vital .v-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.vital.ok    { border-color: rgba(46,204,113,0.25);  }
.vital.warn  { border-color: rgba(230,126,34,0.35);  }
.vital.crit  { border-color: rgba(231,76,60,0.45); background: rgba(231,76,60,0.05); }

.vital.ok   .v-val { color: var(--success); }
.vital.warn .v-val { color: var(--warning); }
.vital.crit .v-val { color: var(--danger);  }

.vital-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Header right (quota + refresh) ────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.quota-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quota-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quota-lbl {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  width: 14px;
}

.quota-bar {
  width: 64px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.quota-bar-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.6s ease, background 0.4s ease;
}
.quota-bar-fill.green { background: var(--success); }
.quota-bar-fill.amber { background: var(--warning); }
.quota-bar-fill.red   { background: var(--danger); box-shadow: 0 0 4px var(--danger); }

.quota-txt {
  font-size: 9px;
  color: var(--text-muted);
  min-width: 44px;
  text-align: right;
  letter-spacing: 0.03em;
}

.refresh-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--text-muted);
}

.blink {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink-anim 2s ease-in-out infinite;
}

/* ── Tab navigation ─────────────────────────────────────────── */
.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
  white-space: nowrap;
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-dim); }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 14px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  border-radius: 2px;
  line-height: 1;
  display: none;
}

.tab-badge.visible { display: inline-flex; }

/* ── Main content area ──────────────────────────────────────── */
#main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
}

/* ── Tab panels ─────────────────────────────────────────────── */
.tab-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  align-items: start;
  gap: 1px;
  padding: 1px;
  background: var(--border);
  min-height: calc(100vh - var(--header-h));
  animation: tabFadeIn 0.18s ease;
}

.tab-panel.active { display: grid; }

/* ── Tab iframe (USAGE) ─────────────────────────────────────── */
.tab-panel.tab-iframe {
  display: none;
  padding: 0;
  background: #fff;
}

.tab-panel.tab-iframe.active {
  display: block;
  height: calc(100vh - var(--header-h));
}

.tab-panel.tab-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Widget ─────────────────────────────────────────────────── */
.widget {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
  position: relative;
}

.widget:hover { background: var(--bg-card-2); }

.widget.wide { grid-column: span 3; }

.widget-accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}

.widget.has-alert  .widget-accent-bar { background: var(--warning); }
.widget.has-crit   .widget-accent-bar { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}

.widget-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.widget-status {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.widget-body {
  flex: 1;
  padding: 12px 14px;
  overflow: hidden;
}

.widget-body.fade-in { animation: fadein 0.2s ease; }

/* ── Typography helpers ─────────────────────────────────────── */
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-green  { color: var(--success); }
.text-amber  { color: var(--warning); }
.text-red    { color: var(--danger); }
.text-cyan   { color: var(--accent); }
.text-blue   { color: var(--info); }
.text-sm     { font-size: 10px; }
.text-xs     { font-size: 9px; }
.text-mono   { font-family: 'JetBrains Mono', monospace; }

/* ── Stat cards ─────────────────────────────────────────────── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }

.stat-card {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: center;
}

.stat-card.stat-green { background: var(--success-dim); border-color: rgba(46,204,113,0.15); }
.stat-card.stat-warn  { background: var(--warning-dim); border-color: rgba(230,126,34,0.2); }
.stat-card.stat-crit  { background: var(--danger-dim);  border-color: rgba(231,76,60,0.2); }

.stat-card .value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--accent);
}

.stat-card.stat-green .value { color: var(--success); }
.stat-card.stat-warn  .value { color: var(--warning); }
.stat-card.stat-crit  .value { color: var(--danger); }

.stat-card .label {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 3px;
}

/* ── Big metric ─────────────────────────────────────────────── */
.big-metric {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--accent);
}

/* ── Metric rows ────────────────────────────────────────────── */
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(232,184,75,0.04);
  gap: 8px;
  min-height: 24px;
}
.metric-row:last-child { border-bottom: none; }

.metric-label {
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  flex-shrink: 0;
}

.metric-value {
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  color: var(--text-dim);
}

/* ── Divider / section label ────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* ── Status dot ─────────────────────────────────────────────── */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.status-dot.active   { background: var(--success); animation: pulse-dot 2s infinite; box-shadow: 0 0 4px var(--success); }
.status-dot.inactive { background: var(--danger); }
.status-dot.unknown  { background: var(--text-muted); }
.status-dot.warning  { background: var(--warning); animation: pulse-dot 1.4s infinite; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 1px 5px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.badge-p0 { background: var(--danger);  color: #fff; }
.badge-p1 { background: var(--warning); color: #000; }
.badge-p2 { background: var(--accent);  color: #000; }
.badge-p3 { background: var(--bg-card-3); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Tag ────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 1px 5px;
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  margin: 1px;
}

/* ── Task items ─────────────────────────────────────────────── */
.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(232,184,75,0.04);
  overflow: hidden;
}
.task-item:last-child { border-bottom: none; }

.task-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--text-dim);
}

.task-id {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Service rows ───────────────────────────────────────────── */
.service-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(232,184,75,0.04);
  font-size: 11px;
}
.service-row:last-child { border-bottom: none; }

.service-name {
  flex: 1;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-restarts { font-size: 9px; color: var(--text-muted); }

/* ── Alert items ────────────────────────────────────────────── */
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(232,184,75,0.04);
  font-size: 11px;
}
.alert-item:last-child { border-bottom: none; }

.alert-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 1px 5px;
  white-space: nowrap;
  background: var(--warning-dim);
  color: var(--warning);
  flex-shrink: 0;
}
.alert-type.critical { background: var(--danger-dim); color: var(--danger); }

/* ── Funnel bars ────────────────────────────────────────────── */
.funnel-step { margin-bottom: 7px; }

.funnel-step-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 3px;
}

.funnel-step-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.funnel-step-count { font-size: 11px; font-weight: 500; color: var(--text-dim); }

.funnel-bar-bg { height: 2px; background: rgba(255,255,255,0.05); overflow: hidden; }

.funnel-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.5s ease;
}
.funnel-bar-fill.bottleneck { background: var(--warning); }

/* ── Progress bar ───────────────────────────────────────────── */
.progress-bar { height: 2px; background: rgba(255,255,255,0.05); margin-top: 3px; }
.progress-fill { height: 100%; transition: width 0.6s ease; }
.progress-fill.green { background: var(--success); }
.progress-fill.amber { background: var(--warning); }
.progress-fill.red   { background: var(--danger); }

/* ── Countdown ──────────────────────────────────────────────── */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
}

.countdown-unit {
  text-align: center;
  border: 1px solid var(--border-active);
  padding: 8px 4px;
  background: var(--accent-dim);
}

.countdown-number {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.countdown-label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 3px;
}

/* ── Check items ────────────────────────────────────────────── */
.checklist-item, .check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(232,184,75,0.04);
  font-size: 11px;
}
.checklist-item:last-child, .check-item:last-child { border-bottom: none; }

.check-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.check-icon.done    { color: var(--success); }
.check-icon.pending { color: var(--text-muted); }

/* ── VM cards ───────────────────────────────────────────────── */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.vm-card {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.vm-card .vm-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 7px;
  text-transform: uppercase;
}

/* ── Approval card ──────────────────────────────────────────── */
.approval-card {
  border-left: 2px solid var(--warning);
  padding: 6px 10px;
  margin-bottom: 6px;
  background: var(--accent-dim);
}

.version-block {
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg-card-3);
  border: 1px solid var(--border);
  padding: 4px 6px;
  margin: 3px 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 56px;
  overflow-y: auto;
}

.approval-actions {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 2px 9px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-action:hover { background: var(--accent-mid); }
.btn-action:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-danger {
  padding: 2px 9px;
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-danger:hover { background: var(--danger-dim); }
.btn-danger:disabled { opacity: 0.35; cursor: not-allowed; }

.approval-feedback {
  font-size: 10px;
  margin-top: 3px;
  padding: 2px 4px;
}
.approval-feedback.ok  { color: var(--success); border: 1px solid rgba(46,204,113,0.3); }
.approval-feedback.err { color: var(--danger);  border: 1px solid rgba(231,76,60,0.3); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 0;
}

/* ── Action grid ────────────────────────────────────────────── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* ── Infra ops layout ───────────────────────────────────────── */
.infra-ops-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.infra-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 4px;
}

.infra-svc-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  font-size: 10px;
}

/* ── Section infra ──────────────────────────────────────────── */
.infra-section-services {}
.infra-section-metrics {}

/* ── Login ──────────────────────────────────────────────────── */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: var(--bg);
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  padding: 40px 36px;
  min-width: 300px;
  text-align: center;
}

.login-card h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 4px;
}

.login-card p {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.login-card input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border-active);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-bottom: 12px;
  outline: none;
  letter-spacing: 0.04em;
}

.login-card input:focus { border-color: var(--accent); }

.login-card button {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  border: none;
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: opacity 0.2s;
  text-transform: uppercase;
}
.login-card button:hover { opacity: 0.85; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes blink-anim {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .vitals-strip { gap: 3px; }
  .vital { padding: 2px 6px; }
}

@media (max-width: 860px) {
  .tab-panel { grid-template-columns: repeat(2, 1fr); }
  .widget.wide { grid-column: span 2; }
  .vitals-strip { display: none; }
}

@media (max-width: 600px) {
  .tab-panel { grid-template-columns: 1fr; }
  .widget.wide { grid-column: span 1; }
  .action-grid { grid-template-columns: 1fr; }
  .infra-ops-layout { grid-template-columns: 1fr; }
  .header-right { display: none; }
}
