/* ─── Elite SaaS Glass Design System ─────────────────────────────────────────── */
:root {
  /* Core Palette */
  --bg-dark: #020617;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  
  --brand-primary: #0ea5e9;
  --brand-secondary: #6366f1;
  --brand-accent: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  
  --glass-blur: 16px;
  
  /* Status Colors */
  --status-up: #10b981;
  --status-down: #f43f5e;
  --status-unknown: #64748b;
  
  /* Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.1);
  
  /* Radii */
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ─── Light Mode Overrides ─── */
.light-mode {
  --bg-dark: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-hover: rgba(0, 0, 0, 0.1);
  
  --shadow-glass: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
}

.light-mode .orb { opacity: 0.1; mix-blend-mode: multiply; }
.light-mode .topbar { background: rgba(241, 245, 249, 0.8); }
.light-mode h1, .light-mode h2, .light-mode h3, .light-mode h4, .light-mode h5, .light-mode h6 { color: #0f172a; }
.light-mode .uptime-name { color: #0f172a; }
.light-mode .launch-btn { background: rgba(0, 0, 0, 0.03); color: #0f172a; border-color: rgba(0, 0, 0, 0.08); }
.light-mode .launch-btn:hover { background: var(--brand-primary); color: #fff; }
.light-mode .settings-panel, .light-mode .modal, .light-mode .icon-picker-dropdown { background: rgba(255, 255, 255, 0.95); }
.light-mode input, .light-mode textarea, .light-mode select { background: rgba(0, 0, 0, 0.03); color: #0f172a; border-color: rgba(0, 0, 0, 0.08); }
.light-mode input:focus, .light-mode textarea:focus { background: #fff; }
.light-mode .topbar-btn { background: rgba(0, 0, 0, 0.03); color: var(--text-secondary); }
.light-mode .topbar-btn:hover { background: rgba(0, 0, 0, 0.06); color: #0f172a; }
.light-mode .note-card { background: #fff; }
.light-mode .settings-service-row { background: rgba(0, 0, 0, 0.02); }
.light-mode .permission-group-card, .light-mode .permission-user-row, .light-mode .permission-service-chip { background: rgba(0, 0, 0, 0.02); }
.light-mode .badge { background: rgba(0, 0, 0, 0.03); }
.light-mode .status-label { color: var(--text-secondary); }
.light-mode .card-desc { color: var(--text-secondary); }
.light-mode .card-note { background: rgba(0, 0, 0, 0.02); color: var(--text-muted); }

/* ─── Quad-Orb Animated Background ──────────────────────────────────────────── */
.orb-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  background: var(--bg-dark);
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: orb-float 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.orb-1 { background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%); top: -10%; left: -10%; animation-duration: 25s; }
.orb-2 { background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%); bottom: -10%; right: -10%; animation-duration: 30s; animation-delay: -5s; }
.orb-3 { background: radial-gradient(circle, #ec4899 0%, transparent 70%); top: 20%; right: 10%; animation-duration: 22s; animation-delay: -2s; }
.orb-4 { background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); bottom: 20%; left: 10%; animation-duration: 28s; animation-delay: -7s; }

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10%, 15%) scale(1.1); }
  66% { transform: translate(-5%, 10%) scale(0.9); }
  100% { transform: translate(5%, -10%) scale(1.05); }
}

/* ─── Base Reset & Layout ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
.hidden { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 3.5rem;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: #fff; }
.section-title { font-size: 1.5rem; margin-bottom: 0.25rem; }
.section-sub { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ─── Components ─── */

/* Service Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  padding: 1.75rem; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.service-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-glass-hover);
  transform: translateY(-4px); box-shadow: var(--shadow-glass), var(--shadow-glow);
}
.service-card.card-sm { grid-column: span 1; }
.service-card.card-lg { grid-column: span 2; }
@media (max-width: 768px) { .service-card.card-lg { grid-column: span 1; } }

.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass);
  color: var(--icon-color, var(--brand-primary));
}
.card-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.card-title { font-size: 1.125rem; font-weight: 600; }
.card-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.card-note {
  font-size: 0.75rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 0.5rem;
}

.card-grip { position: absolute; top: 0.75rem; left: 0.5rem; cursor: grab; color: var(--text-muted); opacity: 0; transition: opacity 0.2s; padding: 4px; }
.service-card:hover .card-grip { opacity: 0.6; }

.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.25rem; gap: 0.5rem; }
.card-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Status Indicators */
.status-row { display: flex; align-items: center; gap: 0.5rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-up { background: var(--status-up); box-shadow: 0 0 12px var(--status-up); }
.dot-down { background: var(--status-down); box-shadow: 0 0 12px var(--status-down); }
.dot-unknown { background: var(--status-unknown); }
.status-label { font-size: 0.75rem; color: var(--text-muted); }

/* Badges */
.badge { font-size: 0.6875rem; font-weight: 700; padding: 0.25rem 0.625rem; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); }
.badge-cloud { color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }
.badge-onprem { color: #f59e0b; border-color: rgba(245, 158, 11, 0.2); }
.badge-hybrid { color: #a855f7; border-color: rgba(168, 85, 247, 0.2); }
.badge-external { color: #94a3b8; border-color: rgba(148, 163, 184, 0.2); }
.badge-vpn { color: #fb923c; border-color: rgba(249, 146, 60, 0.2); }

/* Quick Links */
.quicklinks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.quicklink {
  background: var(--bg-card); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass); border-radius: var(--radius-md);
  padding: 1rem; display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s;
}
.quicklink:hover { background: var(--bg-card-hover); color: #fff; border-color: var(--brand-primary); transform: translateY(-2px); }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white; padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
  font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4); }

.btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--border-glass); font-size: 0.875rem; font-weight: 500; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.launch-btn {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass);
  color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem;
}
.launch-btn:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

.btn-icon-sm {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-muted); transition: all 0.2s;
}
.btn-icon-sm:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn-icon-sm.btn-danger:hover { color: var(--brand-accent); background: rgba(244, 63, 94, 0.1); }

.btn-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-secondary); transition: all 0.2s; }
.btn-icon:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* ─── Uptime Panel ─── */
.uptime-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.overall-badge { font-size: 0.8125rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 99px; }
.badge-ok { background: rgba(16, 185, 129, 0.1); color: var(--status-up); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-down { background: rgba(244, 63, 94, 0.1); color: var(--status-down); border: 1px solid rgba(244, 63, 94, 0.2); }
.badge-checking { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-glass); }
.refresh-time { font-size: 0.75rem; color: var(--text-muted); }

.uptime-panel {
  background: var(--bg-card); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden;
}
.uptime-row {
  display: grid; grid-template-columns: 240px 1fr 130px; align-items: center;
  gap: 1.5rem; padding: 1.25rem 2rem; border-bottom: 1px solid var(--border-glass);
}
.uptime-info { display: flex; align-items: center; gap: 0.75rem; }
.uptime-name { font-size: 0.875rem; font-weight: 600; color: #fff; }
.uptime-latency { font-size: 0.75rem; color: var(--text-muted); }
.uptime-bar { display: flex; gap: 2px; align-items: center; overflow: hidden; }
.tick { flex: 1; height: 24px; border-radius: 2px; min-width: 4px; }
.tick-up { background: rgba(16, 185, 129, 0.4); }
.tick-down { background: rgba(244, 63, 94, 0.5); }
.tick-empty { background: rgba(255, 255, 255, 0.05); }
.uptime-status { display: flex; align-items: center; gap: 0.5rem; justify-content: flex-end; font-size: 0.82rem; color: var(--text-secondary); }
.uptime-placeholder { display: flex; align-items: center; gap: 1rem; padding: 2rem; color: var(--text-muted); }

/* ─── Login Screen ─── */
.login-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1000; }
.login-container {
  background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(32px);
  border: 1px solid var(--border-glass); border-radius: var(--radius-xl);
  padding: 4rem 3rem; text-align: center; width: 100%; max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.login-logo {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.login-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
.login-subtitle { color: var(--text-secondary); margin-bottom: 2rem; }
.login-hint { margin-top: 1.5rem; font-size: 0.75rem; color: var(--text-muted); }

/* ─── Settings Panel ─── */
.overlay {
  position: fixed; inset: 0; background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 100vw;
  background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-glass); z-index: 300;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.settings-panel.open { transform: translateX(0); }
.settings-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-glass); display: flex; align-items: center; justify-content: space-between; }
.settings-tabs { display: flex; border-bottom: 1px solid var(--border-glass); }
.settings-tab { flex: 1; padding: 1rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); text-align: center; transition: all 0.2s; }
.settings-tab.active { color: var(--brand-primary); border-bottom: 2px solid var(--brand-primary); }
.settings-pane { padding: 2rem; overflow-y: auto; display: none; flex-direction: column; gap: 1.5rem; }
.settings-pane.active { display: flex; }

.settings-service-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass); border-radius: var(--radius-md); }
.settings-svc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.settings-svc-name { font-size: 0.875rem; font-weight: 600; }
.settings-svc-url { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-svc-actions { display: flex; align-items: center; gap: 0.5rem; }
.settings-empty { text-align: center; padding: 2rem; color: var(--text-muted); }

/* ─── Modals ─── */
.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: 540px; max-width: calc(100vw - 2rem);
  background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(32px);
  border: 1px solid var(--border-glass-hover); border-radius: var(--radius-xl);
  z-index: 400; opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-glass); }
.modal-body { padding: 2rem; overflow-y: auto; }
.modal-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border-glass); display: flex; justify-content: flex-end; gap: 1rem; }

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
label { font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); }
input, textarea, select {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 0.75rem 1rem;
  color: #fff; font-size: 0.875rem; outline: none; transition: all 0.2s;
}
input:focus, textarea:focus { border-color: var(--brand-primary); background: rgba(255, 255, 255, 0.08); }

.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1); border-radius: 99px; transition: .4s; border: 1px solid var(--border-glass); }
.toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background: white; transition: .4s; border-radius: 50%; }
input:checked + .toggle-slider { background: var(--brand-primary); }
input:checked + .toggle-slider:before { transform: translateX(18px); }

/* ─── Icon Picker ─── */
.icon-picker-dropdown { position: absolute; top: 100%; left: 0; margin-top: 8px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(24px); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 1rem; width: 320px; max-height: 400px; z-index: 100; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-glass); }
.icon-picker-search-wrap { display: flex; align-items: center; gap: 0.75rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 0.5rem 0.75rem; }
.icon-picker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; overflow-y: auto; flex: 1; }
.icon-picker-item { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-secondary); transition: all 0.2s; }
.icon-picker-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--brand-primary); }
.icon-picker-footer { font-size: 0.75rem; color: var(--text-muted); text-align: right; }

/* ─── Notes ─── */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.note-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; transition: all 0.3s; }
.note-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.note-blue { border-left: 4px solid #3b82f6; }
.note-green { border-left: 4px solid #10b981; }
.note-pink { border-left: 4px solid #ec4899; }
.note-purple { border-left: 4px solid #8b5cf6; }
.note-content { font-size: 0.9375rem; color: var(--text-primary); line-height: 1.6; }
.note-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }
.note-actions { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; gap: 0.5rem; opacity: 0; transition: opacity 0.2s; }
.note-card:hover .note-actions { opacity: 1; }
.note-action-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border-radius: 4px; color: var(--text-muted); }
.note-action-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.notes-empty { text-align: center; padding: 2rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-md); }

/* ─── Permissions ─── */
.permission-group-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; }
.permission-group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.permission-group-name { font-weight: 700; font-size: 1rem; }
.permission-service-chip { background: rgba(255, 255, 255, 0.05); padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--border-glass); }
.permission-all-badge { color: var(--status-up); font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; }
.permission-user-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass); border-radius: var(--radius-md); margin-bottom: 0.5rem; }
.permission-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; }
.user-group-chip { background: rgba(255, 255, 255, 0.05); padding: 0.2rem 0.5rem; border-radius: 99px; font-size: 0.7rem; color: var(--text-secondary); }
.group-auto-badge { font-size: 0.7rem; color: var(--brand-secondary); background: rgba(99, 102, 241, 0.1); padding: 0.2rem 0.5rem; border-radius: 99px; }
.users-loading { text-align: center; padding: 2rem; color: var(--text-muted); }

/* ─── Utility ─── */
.spinner-sm { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.1); border-top-color: var(--brand-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.logo-mark-sm { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); border-radius: var(--radius-sm); padding: 0.4rem 0.75rem; display: inline-flex; align-items: baseline; gap: 2px; }
.logo-iium-sm { font-size: 0.95rem; font-weight: 800; color: #fff; }
.logo-h-sm { font-size: 0.95rem; font-weight: 800; color: #fff; opacity: 0.8; }
.topbar-clock { font-size: 0.75rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.user-role-badge { font-size: 0.65rem; padding: 0.15rem 0.5rem; background: var(--brand-secondary); color: #fff; border-radius: var(--radius-pill); font-weight: 700; text-transform: uppercase; }

/* ─── Responsive ─── */
@media (max-width: 900px) { .uptime-row { grid-template-columns: 180px 1fr 100px; padding: 1rem; } }
@media (max-width: 640px) { .main-content { padding: 1.5rem 1rem; } .services-grid { grid-template-columns: 1fr; } .uptime-row { grid-template-columns: 1fr; gap: 0.5rem; } .modal { width: 100%; border-radius: 0; height: 100%; top: 0; left: 0; transform: none !important; } }
