:root {
  --bg: #070b14;
  --bg2: #0d1424;
  --bg3: #131d2e;
  --bg4: #1a2540;
  --accent: #3b82f6;
  --accent2: #6366f1;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --text: #e2e8f0;
  --muted: #64748b;
  --muted2: #94a3b8;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --glow-green: 0 0 20px rgba(16,185,129,0.3);
  --glow-red: 0 0 20px rgba(239,68,68,0.3);
  --glow-accent: 0 0 20px rgba(59,130,246,0.3);
  --sidebar-w: 240px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #60a5fa; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Sidebar ─────────────────────────────────────────────────────────────────*/
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, #0d1424 0%, #070b14 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.logo-hex {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--glow-accent);
  flex-shrink: 0;
}

.logo-text { font-size: .85rem; font-weight: 700; line-height: 1.2; }
.logo-text small { color: var(--muted); font-weight: 400; font-size: .72rem; display: block; margin-top: .1rem; }

.nav-links { list-style: none; padding: .75rem 0; flex: 1; }

.nav-links li a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1.1rem .65rem 1.25rem;
  color: var(--muted2);
  border-left: 2px solid transparent;
  transition: all .2s ease;
  font-size: .875rem;
  position: relative;
  margin: .1rem .5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-links li a:hover {
  color: var(--text);
  background: rgba(59,130,246,0.06);
  border-left-color: rgba(59,130,246,0.3);
}

.nav-links li.active a {
  color: #93c5fd;
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.04) 100%);
  font-weight: 600;
}

.nav-links li.active a .nav-icon svg { color: var(--accent); }

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: currentColor; }
.nav-icon svg { width: 100%; height: 100%; stroke: currentColor; display: block; }

.nav-label { flex: 1; }

.sidebar-section {
  padding: .5rem 1.5rem .25rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .5rem;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1rem;
  color: var(--muted2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  transition: all .2s;
  width: 100%;
}
.logout-btn:hover {
  color: var(--red);
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.06);
}

/* ── Main content ────────────────────────────────────────────────────────────*/
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 2rem 2.25rem 4rem;
  max-width: 1600px;
}

/* ── Page header ─────────────────────────────────────────────────────────────*/
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}

.page-sub { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ── Refresh bar ─────────────────────────────────────────────────────────────*/
.refresh-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--muted);
  flex-shrink: 0;
}
.refresh-bar .countdown {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Cards ───────────────────────────────────────────────────────────────────*/
.card {
  background: rgba(13,20,36,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border2); }

.card-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.card-title-icon { font-size: 1rem; }

/* ── Summary bar ─────────────────────────────────────────────────────────────*/
.summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.summary-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.summary-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
  transition: opacity .2s;
}
.summary-card:hover { transform: translateY(-2px); }

.summary-card.ok {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
}
.summary-card.ok::before { background: radial-gradient(circle at top left, #10b981, transparent 70%); opacity: .15; }
.summary-card.ok:hover { box-shadow: var(--glow-green); }

.summary-card.down {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}
.summary-card.down::before { background: radial-gradient(circle at top left, #ef4444, transparent 70%); opacity: .15; }
.summary-card.down:hover { box-shadow: var(--glow-red); }

.summary-card.ext {
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
}
.summary-card.ext::before { background: radial-gradient(circle at top left, #06b6d4, transparent 70%); opacity: .15; }
.summary-card.ext:hover { box-shadow: 0 0 20px rgba(6,182,212,0.3); }

.summary-card.total {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
}
.summary-card.total::before { background: radial-gradient(circle at top left, #3b82f6, transparent 70%); opacity: .15; }
.summary-card.total:hover { box-shadow: var(--glow-accent); }

.summary-card.slow {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
}

.summary-card .num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  position: relative;
}
.summary-card.ok .num    { color: var(--green); }
.summary-card.down .num  { color: var(--red); }
.summary-card.ext .num   { color: var(--cyan); }
.summary-card.total .num { color: var(--accent); }
.summary-card.slow .num  { color: var(--yellow); }

.summary-card .label {
  font-size: .72rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  position: relative;
}

/* ── Status dots ─────────────────────────────────────────────────────────────*/
.dot {
  display: inline-block;
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.ok     { background: var(--green); box-shadow: var(--glow-green); }
.dot.down   { background: var(--red);   box-shadow: var(--glow-red); }
.dot.slow   { background: var(--yellow); box-shadow: 0 0 10px rgba(245,158,11,0.4); }
.dot.unknown{ background: var(--muted); opacity: .4; }

.dot.ok::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-ok 2.4s ease-in-out infinite;
}
@keyframes pulse-ok {
  0%,100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(2.4); opacity: 0; }
}

/* ── Service group cards ─────────────────────────────────────────────────────*/
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.service-list { display: flex; flex-direction: column; gap: .2rem; }

.service-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  transition: background .15s ease;
  cursor: default;
}
.service-row:hover { background: rgba(255,255,255,0.04); }

.service-name {
  flex: 1;
  font-size: .875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── RT Badges ───────────────────────────────────────────────────────────────*/
.rt-badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 9999px;
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.rt-fast   { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.rt-medium { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.rt-slow   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.rt-na     { background: rgba(100,116,139,0.1); color: var(--muted); border: 1px solid var(--border); }

/* ── Ext indicator ───────────────────────────────────────────────────────────*/
.ext-indicator {
  display: inline-flex;
  align-items: center;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .35rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.ext-ok   { background: rgba(6,182,212,0.15); color: var(--cyan); border: 1px solid rgba(6,182,212,0.25); }
.ext-down { background: rgba(239,68,68,0.15);  color: var(--red);  border: 1px solid rgba(239,68,68,0.25); }
.ext-none { background: rgba(100,116,139,0.1); color: var(--muted); border: 1px solid var(--border); }

/* ── Uptime bar ──────────────────────────────────────────────────────────────*/
.uptime-bar {
  display: flex;
  gap: 2px;
  height: 20px;
  align-items: center;
  margin-top: .75rem;
}
.uptime-seg {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  min-width: 4px;
  transition: transform .1s;
}
.uptime-seg:hover { transform: scaleY(1.15); }
.uptime-seg.ok      { background: var(--green); opacity: .7; }
.uptime-seg.down    { background: var(--red);   opacity: .9; }
.uptime-seg.unknown { background: var(--bg4);   opacity: .5; }

/* 48-segment mini uptime bars */
.uptime-mini {
  display: flex;
  gap: 1.5px;
  height: 14px;
  align-items: center;
}
.uptime-mini .uptime-seg { border-radius: 1.5px; }

/* ── Tables ──────────────────────────────────────────────────────────────────*/
.mon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.mon-table th {
  text-align: left;
  padding: .6rem .75rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  white-space: nowrap;
}
.mon-table td {
  padding: .7rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.mon-table tr:last-child td { border-bottom: none; }
.mon-table tr:hover td { background: rgba(255,255,255,0.025); }

/* ── Buttons ─────────────────────────────────────────────────────────────────*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s ease;
  letter-spacing: -.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
  box-shadow: 0 4px 20px rgba(59,130,246,0.5);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg3);
  color: var(--muted2);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--bg4); color: var(--text); border-color: rgba(255,255,255,0.2); }

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); box-shadow: 0 0 12px rgba(239,68,68,0.2); }

.btn-sm { padding: .35rem .7rem; font-size: .78rem; border-radius: 6px; }

/* ── Badges ──────────────────────────────────────────────────────────────────*/
.badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .6rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge-ok     { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-down   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-slow   { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge-off    { background: rgba(100,116,139,0.1); color: var(--muted2); border: 1px solid var(--border); }
.badge-ext    { background: rgba(6,182,212,0.12);  color: var(--cyan);  border: 1px solid rgba(6,182,212,0.25); }
.badge-warn   { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }

/* ── Group icon ──────────────────────────────────────────────────────────────*/
.group-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.group-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.group-icon.web   { background: rgba(59,130,246,0.15); }
.group-icon.infra { background: rgba(100,116,139,0.15); }
.group-icon.game  { background: rgba(139,92,246,0.15); }
.group-icon.media { background: rgba(245,158,11,0.15); }
.group-icon.sec   { background: rgba(239,68,68,0.15); }

.group-name { font-weight: 700; font-size: .95rem; }
.group-count { margin-left: auto; font-size: .75rem; color: var(--muted); }

/* ── Tabs ────────────────────────────────────────────────────────────────────*/
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: .5rem 1.1rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
  font-weight: 500;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.tab:hover:not(.active) { color: var(--text); }

/* ── Toggle switch ───────────────────────────────────────────────────────────*/
.toggle { position: relative; display: inline-block; width: 38px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg4);
  border-radius: 20px;
  transition: .2s;
  border: 1px solid var(--border2);
}
.slider:before {
  content: '';
  position: absolute;
  height: 14px; width: 14px;
  left: 2px; bottom: 2px;
  background: var(--muted2);
  border-radius: 50%;
  transition: .2s;
}
input:checked + .slider { background: rgba(16,185,129,0.25); border-color: rgba(16,185,129,0.5); }
input:checked + .slider:before { transform: translateX(18px); background: var(--green); }

/* ── Form elements ───────────────────────────────────────────────────────────*/
.form-row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-row label {
  font-size: .72rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}
.form-input,
.form-row input[type=text],
.form-row input[type=password],
.form-row input[type=number] {
  padding: .7rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* ── Alert / notice ──────────────────────────────────────────────────────────*/
.notice {
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.notice-success { background: rgba(16,185,129,0.1);  border: 1px solid rgba(16,185,129,0.25); color: #34d399; }
.notice-error   { background: rgba(239,68,68,0.1);   border: 1px solid rgba(239,68,68,0.25);  color: #f87171; }
.notice-info    { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }
.notice-warn    { background: rgba(245,158,11,0.1);  border: 1px solid rgba(245,158,11,0.25); color: #fbbf24; }

/* ── Stats mini cards ────────────────────────────────────────────────────────*/
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--border2); }
.stat-card .snum  { font-size: 1.9rem; font-weight: 900; }
.stat-card .slabel { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; font-weight: 600; }

/* ── Spinner ─────────────────────────────────────────────────────────────────*/
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(59,130,246,0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Security card ───────────────────────────────────────────────────────────*/
.sec-stat { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; }
.sec-stat-num { font-size: 1.5rem; font-weight: 800; min-width: 3rem; }
.sec-stat-label { font-size: .8rem; color: var(--muted2); line-height: 1.3; }
.trend-up   { color: var(--red); }
.trend-down { color: var(--green); }
.trend-flat { color: var(--muted); }

/* ── Alert event badges ──────────────────────────────────────────────────────*/
.ev-down      { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.ev-recovered { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.ev-ext       { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ── Section divider ─────────────────────────────────────────────────────────*/
.section-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Expandable service row ──────────────────────────────────────────────────*/
.svc-detail { display: none; background: var(--bg3); border-radius: var(--radius-sm); padding: 1rem; margin-top: .5rem; }
.svc-detail.open { display: block; }

/* ── Login page ──────────────────────────────────────────────────────────────*/
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(99,102,241,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(6,182,212,0.03) 0%, transparent 70%);
  animation: bg-pulse 8s ease-in-out infinite alternate;
}
@keyframes bg-pulse {
  0%   { opacity: .6; }
  100% { opacity: 1; }
}

.login-wrap { width: 100%; max-width: 400px; padding: 1rem; position: relative; z-index: 1; }

.login-card {
  background: rgba(13,20,36,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(59,130,246,0.05);
}

.login-logo { text-align: center; margin-bottom: 2.25rem; }
.login-logo .hex-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: 16px;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(59,130,246,0.35), 0 0 0 8px rgba(59,130,246,0.08);
  animation: hex-glow 3s ease-in-out infinite alternate;
}
@keyframes hex-glow {
  0%   { box-shadow: 0 8px 32px rgba(59,130,246,0.35), 0 0 0 8px rgba(59,130,246,0.08); }
  100% { box-shadow: 0 8px 40px rgba(99,102,241,0.5),  0 0 0 12px rgba(99,102,241,0.1); }
}
.login-logo h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.login-logo p  { color: var(--muted2); font-size: .85rem; margin: .3rem 0 0; }

/* ── Responsive ──────────────────────────────────────────────────────────────*/
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; padding: 1rem; }
  .group-grid { grid-template-columns: 1fr; }
  .summary-bar { grid-template-columns: repeat(2, 1fr); }
}
