/* ============================================================
   StatusPro NextLevel — Premium Design System v4.0
   Themes: E811PRO · Engels Wolf · WonderLife Stream
   ============================================================ */

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

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

/* ─── GLOBAL TOKENS ─────────────────────────────────────────── */
:root {
  --font-sans: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-head: 'Sora', 'Outfit', var(--font-sans);
  --r:    8px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.25);
  --shadow:    0 8px 32px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.25);
  --shadow-glow: 0 0 40px -5px var(--primary);
  --glass:        rgba(255,255,255,0.035);
  --glass-border: rgba(255,255,255,0.08);
  --transition:        0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body.has-bg { background-size: cover; background-position: center; background-attachment: fixed; }
body.has-bg::before {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse at top, rgba(0,0,0,.4) 0%, rgba(0,0,0,.75) 100%);
  z-index: 0; pointer-events: none;
}
body.has-bg > * { position: relative; z-index: 1; }

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.025em; }
.mono { font-family: var(--font-mono); }
a { color: var(--primary); text-decoration: none; transition: all var(--transition); }
a:hover { opacity: .8; }

/* ─── PUBLIC STATUS PAGE ─────────────────────────────────────── */
.sp-container { max-width: 980px; margin: 0 auto; padding: 0 24px 100px; }
.sp-header {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(20px); transition: all var(--transition);
}
.sp-header-inner {
  max-width: 980px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sp-logo {
  display: flex; align-items: center; gap: 10px; color: var(--text);
  font-family: var(--font-head); font-weight: 800; font-size: 1.08rem;
  letter-spacing: -.02em; text-decoration: none;
}
.sp-logo img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.sp-logo-fallback {
  width: 30px; height: 30px; background: var(--primary); color: #fff;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 900; letter-spacing: .08em;
}
.sp-header-nav { display: flex; align-items: center; gap: 2px; }
.sp-header-nav a {
  color: var(--text-muted); font-size: .82rem; padding: 6px 12px;
  border-radius: var(--r); transition: all var(--transition); font-weight: 500;
}
.sp-header-nav a:hover { background: var(--bg3); color: var(--text); opacity: 1; }
.sp-header-actions { display: flex; align-items: center; gap: 8px; }
.sp-status-dot-header {
  width: 8px; height: 8px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 8px var(--up); animation: hdr-pulse 2s ease-in-out infinite;
}
@keyframes hdr-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(0.85)} }

.sp-announcement { padding: 0; font-size: .85rem; border-bottom: 1px solid transparent; }
.sp-announcement-inner {
  max-width: 980px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 8px; font-weight: 500;
}
.sp-announcement.info       { background: rgba(99,102,241,.10); color: var(--primary); border-color: rgba(99,102,241,.2); }
.sp-announcement.warning    { background: rgba(245,158,11,.09); color: #d97706; border-color: rgba(245,158,11,.2); }
.sp-announcement.danger     { background: rgba(239,68,68,.09);  color: var(--down); border-color: rgba(239,68,68,.2); }
.sp-announcement.success    { background: rgba(34,197,94,.09);  color: var(--up); border-color: rgba(34,197,94,.2); }
.sp-announcement.maintenance{ background: rgba(139,92,246,.09); color: var(--maintenance); border-color: rgba(139,92,246,.2); }

/* ─── STATUS BANNER ─────────────────────────────────────────── */
.status-banner { padding: 32px 24px 0; max-width: 980px; margin: 0 auto; }
.status-banner-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; transition: all var(--transition-slow);
  flex-wrap: wrap; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.status-banner-glow { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity var(--transition-slow); }
.status-banner-card.up    { border-color: rgba(34,197,94,.35); }
.status-banner-card.up    .status-banner-glow { background: radial-gradient(ellipse at top left, rgba(34,197,94,.1) 0%, transparent 60%); opacity: 1; }
.status-banner-card.down  { border-color: rgba(239,68,68,.35); }
.status-banner-card.down  .status-banner-glow { background: radial-gradient(ellipse at top left, rgba(239,68,68,.12) 0%, transparent 60%); opacity: 1; }
.status-banner-card.degraded { border-color: rgba(245,158,11,.35); }
.status-banner-card.degraded .status-banner-glow { background: radial-gradient(ellipse at top left, rgba(245,158,11,.1) 0%, transparent 60%); opacity: 1; }
.status-indicator { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 200px; position: relative; }
.status-pulse-wrap { position: relative; flex-shrink: 0; width: 32px; height: 32px; }
.status-dot-large { width: 32px; height: 32px; border-radius: 50%; position: absolute; inset: 0; }
.status-pulse-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid; opacity: 0; animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
.status-pulse-ring.up      { border-color: var(--up); }
.status-pulse-ring.down    { border-color: var(--down); }
.status-pulse-ring.degraded{ border-color: var(--degraded); }
@keyframes pulse-ring { 0% { transform: scale(0.5); opacity: .8; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.status-dot-large.up          { background: var(--up); box-shadow: 0 0 20px rgba(34,197,94,.5); }
.status-dot-large.down        { background: var(--down); box-shadow: 0 0 20px rgba(239,68,68,.5); }
.status-dot-large.degraded    { background: var(--degraded); box-shadow: 0 0 20px rgba(245,158,11,.5); }
.status-dot-large.maintenance { background: var(--maintenance); }
.status-main-text h1 { font-size: 1.65rem; font-weight: 800; margin-bottom: 6px; }
.status-sub { font-size: .9rem; opacity: .6; }
.status-stats { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.stat-item { text-align: center; padding: 12px 18px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 72px; }
.stat-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; opacity: .4; margin-top: 5px; font-weight: 600; }
.text-up   { color: var(--up); }
.text-down { color: var(--down); }

/* ─── UPTIME STRIP ─────────────────────────────────────────── */
.uptime-strip { max-width: 980px; margin: 20px auto 0; padding: 0 24px; display: flex; align-items: center; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.uptime-strip-item { flex: 1; padding: 14px 20px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.uptime-strip-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .4; font-weight: 600; }
.uptime-strip-value { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.uptime-strip-sep { width: 1px; background: var(--border); align-self: stretch; flex-shrink: 0; }

.search-wrap { max-width: 980px; margin: 20px auto 0; padding: 0 24px; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 10px 18px; transition: all var(--transition); }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim, rgba(99,102,241,.15)); }
.search-icon { opacity: .4; font-size: 1rem; }
.search-box input { flex: 1; border: none; background: none; outline: none; color: var(--text); font-family: var(--font-sans); font-size: .9rem; }
.search-box input::placeholder { color: var(--text-dim); }
.search-kbd { font-family: var(--font-mono); font-size: .7rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; opacity: .5; }
.sp-container > * { margin-top: 20px; }

.live-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); font-size: .8rem; color: var(--text-muted); }
.live-indicator { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 8px var(--up); animation: live-blink 2s ease-in-out infinite; }
@keyframes live-blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.live-bar-right { display: flex; align-items: center; gap: 8px; }
.last-update-time { font-family: var(--font-mono); font-size: .7rem; opacity: .5; }
.btn-refresh, .btn-view-toggle, .btn-theme-toggle { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--bg2); color: var(--text-muted); border-radius: var(--r); cursor: pointer; font-size: .85rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); line-height: 1; }
.btn-refresh:hover, .btn-view-toggle:hover, .btn-theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim, rgba(99,102,241,.1)); }
.btn-refresh.spinning { animation: spin .5s linear; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.maintenance-banner { display: flex; flex-direction: column; gap: 10px; }
.maintenance-card { display: flex; align-items: flex-start; gap: 14px; background: rgba(99,102,241,.07); border: 1px solid rgba(99,102,241,.2); border-radius: var(--r-lg); padding: 16px 20px; }
.maintenance-icon { font-size: 1.4rem; flex-shrink: 0; }
.maintenance-content { flex: 1; }
.maintenance-title { font-weight: 700; font-size: .92rem; color: var(--text); }
.maintenance-time { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.maintenance-desc { font-size: .78rem; opacity: .6; margin-top: 4px; }
.maintenance-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(99,102,241,.15); color: var(--maintenance); padding: 3px 8px; border-radius: 100px; flex-shrink: 0; height: fit-content; }

/* ─── MONITOR GROUPS ─────────────────────────────────────────── */
.monitor-group { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; animation: slideUp .4s ease both; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.monitor-group:hover { box-shadow: var(--shadow); }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.monitor-group-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; user-select: none; transition: background var(--transition); border-bottom: 1px solid var(--border); }
.monitor-group.collapsed .monitor-group-header { border-bottom-color: transparent; }
.monitor-group-header:hover { background: var(--bg2); }
.monitor-group-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; letter-spacing: -.01em; }
.group-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; transition: background var(--transition); }
.group-status-dot.up       { background: var(--up); box-shadow: 0 0 6px var(--up); }
.group-status-dot.down     { background: var(--down); box-shadow: 0 0 6px var(--down); }
.group-status-dot.degraded { background: var(--degraded); }
.monitor-group-count { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: .65rem; font-weight: 700; background: var(--bg3); border-radius: 100px; color: var(--text-muted); }
.monitor-group-meta { display: flex; align-items: center; gap: 8px; }
.group-uptime { font-size: .8rem; font-family: var(--font-mono); opacity: .6; font-weight: 500; }
.group-badge-down { font-size: .65rem; font-weight: 700; text-transform: uppercase; background: rgba(239,68,68,.12); color: var(--down); padding: 2px 7px; border-radius: 100px; letter-spacing: .06em; }
.group-badge-degraded { font-size: .65rem; font-weight: 700; text-transform: uppercase; background: rgba(245,158,11,.12); color: var(--degraded); padding: 2px 7px; border-radius: 100px; letter-spacing: .06em; }
.monitor-group-chevron { color: var(--text-dim); font-size: 1.2rem; transition: transform var(--transition); display: inline-block; }
.monitor-group.collapsed .monitor-group-chevron { transform: rotate(-90deg); }
.monitor-list { padding: 8px; }
.monitor-group.collapsed .monitor-list { display: none; }

/* ─── MONITOR CARDS ──────────────────────────────────────────── */
.monitor-card { display: flex; flex-direction: column; gap: 0; padding: 14px 16px; border-radius: var(--r-lg); transition: all var(--transition); cursor: default; border: 1px solid transparent; }
.monitor-card:hover { background: var(--bg2); border-color: var(--border); }
.monitor-card.compact { padding: 10px 14px; }
.monitor-card-header { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; transition: all var(--transition); }
.status-dot.up          { background: var(--up); box-shadow: 0 0 8px rgba(34,197,94,.5); }
.status-dot.down        { background: var(--down); box-shadow: 0 0 8px rgba(239,68,68,.5); animation: dot-down 1s ease-in-out infinite; }
.status-dot.degraded    { background: var(--degraded); }
.status-dot.maintenance { background: var(--maintenance); }
.status-dot.pending     { background: var(--text-dim); animation: dot-pend 1.5s ease-in-out infinite; }
@keyframes dot-down { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes dot-pend { 0%,100%{opacity:.4} 50%{opacity:1} }
.monitor-name-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.monitor-name { font-weight: 600; font-size: .92rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--bg3); color: var(--text-dim); padding: 1px 6px; border-radius: 100px; border: 1px solid var(--border); }
.monitor-desc { font-size: .78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }
.monitor-desc a { color: var(--primary); text-decoration: underline; }
.monitor-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.monitor-badge { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 100px; border: 1px solid transparent; }
.badge-up          { background: rgba(34,197,94,.12); color: var(--up); border-color: rgba(34,197,94,.2); }
.badge-down        { background: rgba(239,68,68,.12); color: var(--down); border-color: rgba(239,68,68,.2); animation: badge-flash 1.5s ease-in-out infinite; }
.badge-degraded    { background: rgba(245,158,11,.12); color: var(--degraded); border-color: rgba(245,158,11,.2); }
.badge-maintenance { background: rgba(139,92,246,.12); color: var(--maintenance); border-color: rgba(139,92,246,.2); }
.badge-pending     { background: var(--bg3); color: var(--text-dim); border-color: var(--border); }
@keyframes badge-flash { 0%,100%{opacity:1} 50%{opacity:.6} }
.monitor-uptime-pct { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.monitor-rt { font-family: var(--font-mono); font-size: .72rem; background: var(--bg3); padding: 2px 7px; border-radius: 6px; color: var(--text-muted); border: 1px solid var(--border); }
.monitor-rt.rt-slow   { color: var(--down); border-color: rgba(239,68,68,.2); }
.monitor-rt.rt-medium { color: var(--degraded); border-color: rgba(245,158,11,.2); }
.monitor-link { font-size: .8rem; opacity: .35; transition: opacity var(--transition); text-decoration: none; color: var(--text); }
.monitor-link:hover { opacity: 1; color: var(--primary); }
.monitor-cert { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.cert-warn     { background: rgba(245,158,11,.12); color: var(--degraded); }
.cert-critical { background: rgba(239,68,68,.12); color: var(--down); }

.uptime-bars-container { padding-top: 12px; padding-left: 21px; }
.uptime-bars { display: flex; gap: 2px; height: 26px; align-items: flex-end; }
.uptime-bar { flex: 1; border-radius: 3px; min-width: 3px; max-width: 12px; transition: all var(--transition); cursor: default; height: 100%; }
.uptime-bar.up       { background: var(--up); opacity: .7; }
.uptime-bar.down     { background: var(--down); }
.uptime-bar.degraded { background: var(--degraded); opacity: .8; }
.uptime-bar:hover    { opacity: 1; transform: scaleY(1.1); transform-origin: bottom; }
.uptime-bars-footer { display: flex; justify-content: space-between; padding-top: 5px; font-size: .65rem; color: var(--text-dim); opacity: .7; }

.grid-mode .monitor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 8px; }
.grid-mode .monitor-card { border: 1px solid var(--border) !important; background: var(--bg2); padding: 16px; border-radius: var(--r-lg); }
.grid-mode .uptime-bars-container { padding-left: 0; }

.timeline-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 20px 24px; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.section-header { font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.section-link { font-size: .8rem; color: var(--primary); opacity: .7; transition: opacity var(--transition); }
.section-link:hover { opacity: 1; }
.timeline-legend { display: flex; align-items: center; gap: 12px; font-size: .75rem; color: var(--text-muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.up       { background: var(--up); }
.legend-dot.degraded { background: var(--degraded); }
.legend-dot.down     { background: var(--down); }
.overall-timeline { display: flex; gap: 2px; height: 32px; align-items: flex-end; }
.timeline-bar { flex: 1; border-radius: 3px; min-width: 3px; cursor: default; transition: all var(--transition); }
.timeline-bar.up       { background: var(--up); opacity: .55; }
.timeline-bar.down     { background: var(--down); }
.timeline-bar.degraded { background: var(--degraded); opacity: .7; }
.timeline-bar:hover    { opacity: 1; }
.timeline-dates { display: flex; justify-content: space-between; padding-top: 8px; font-size: .7rem; color: var(--text-dim); font-family: var(--font-mono); }

.incidents-section { display: flex; flex-direction: column; gap: 12px; }
.incident-card { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.incident-card:hover { box-shadow: var(--shadow); }
.incident-card.critical { border-color: rgba(239,68,68,.3); }
.incident-card.resolved { opacity: .65; }
.incident-card-left { width: 4px; flex-shrink: 0; }
.incident-severity-bar { height: 100%; }
.incident-severity-bar.critical    { background: var(--down); }
.incident-severity-bar.major       { background: var(--degraded); }
.incident-severity-bar.minor       { background: var(--primary); }
.incident-severity-bar.maintenance { background: var(--maintenance); }
.incident-card-body { flex: 1; padding: 18px 20px; min-width: 0; }
.incident-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.incident-title { font-weight: 700; font-size: .92rem; }
.incident-time { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.incident-badges { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.incident-message { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }
.incident-timeline-toggle { margin-top: 12px; font-size: .8rem; }
.incident-timeline-toggle summary { cursor: pointer; color: var(--primary); font-weight: 600; list-style: none; opacity: .8; transition: opacity var(--transition); }
.incident-timeline-toggle summary:hover { opacity: 1; }
.incident-timeline { padding: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.incident-update { display: flex; gap: 12px; }
.incident-update-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; margin-top: 5px; border: 2px solid var(--bg); }
.incident-update-time { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.incident-update-msg { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

.badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 3px 8px; border-radius: 100px; border: 1px solid transparent; }
.badge-investigating { background: rgba(99,102,241,.12); color: var(--primary); border-color: rgba(99,102,241,.2); }
.badge-identified    { background: rgba(245,158,11,.12); color: var(--degraded); border-color: rgba(245,158,11,.2); }
.badge-monitoring    { background: rgba(6,182,212,.12); color: #06b6d4; border-color: rgba(6,182,212,.2); }
.badge-resolved      { background: rgba(34,197,94,.12); color: var(--up); border-color: rgba(34,197,94,.2); }
.badge-critical      { background: rgba(239,68,68,.12); color: var(--down); border-color: rgba(239,68,68,.2); }
.badge-major         { background: rgba(245,158,11,.12); color: var(--degraded); border-color: rgba(245,158,11,.2); }
.badge-minor         { background: rgba(99,102,241,.10); color: var(--primary); border-color: rgba(99,102,241,.15); }
.badge-maintenance   { background: rgba(139,92,246,.10); color: var(--maintenance); border-color: rgba(139,92,246,.15); }

.subscribe-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px 28px; }
.subscribe-icon { font-size: 2rem; flex-shrink: 0; }
.subscribe-text { flex: 1; min-width: 180px; }
.subscribe-title { font-weight: 700; font-size: .95rem; }
.subscribe-sub { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-input { flex: 1; min-width: 200px; padding: 10px 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--text); font-family: var(--font-sans); font-size: .88rem; outline: none; transition: all var(--transition); }
.subscribe-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim, rgba(99,102,241,.15)); }
.subscribe-btn { padding: 10px 22px; background: var(--primary); color: #fff; border: none; border-radius: var(--r-lg); cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: .88rem; transition: all var(--transition-bounce); }
.subscribe-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.4); }

.empty-state { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state-icon { font-size: 3rem; opacity: .4; }
.empty-state-text { font-size: .9rem; color: var(--text-muted); }

.sp-footer { border-top: 1px solid var(--border); background: var(--bg2); margin-top: auto; }
.sp-footer-inner { max-width: 980px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.sp-footer-left { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); }
.sp-footer-center { display: flex; align-items: center; }
.sp-footer-right { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.sp-footer-divider { opacity: .3; }
.fw-bold { font-weight: 700; color: var(--text); }
.powered-by { font-size: .75rem; color: var(--text-dim); opacity: .5; transition: opacity var(--transition); }
.powered-by:hover { opacity: 1; }
.footer-time { font-family: var(--font-mono); font-size: .7rem; opacity: .4; }
.social-links { display: flex; align-items: center; gap: 4px; }
.social-link { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); font-size: .9rem; color: var(--text-muted); transition: all var(--transition); text-decoration: none; }
.social-link:hover { background: var(--bg3); color: var(--text); opacity: 1; }

.stagger > * { animation: slideUp .45s ease both; }
.stagger > *:nth-child(1) { animation-delay: .04s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .16s; }
.stagger > *:nth-child(5) { animation-delay: .20s; }
.stagger > *:nth-child(6) { animation-delay: .24s; }


/* ╔══════════════════════════════════════════════════════════════╗
   ║         CUSTOM THEME OVERRIDES — 3 USER THEMES             ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ── 1. E811PRO ──────────────────────────────────────────────── */
body.theme-e811pro {
  background: radial-gradient(circle at top, #1a0d0d 0%, #050507 60%) !important;
}
body.theme-e811pro::after {
  content: ""; position: fixed; inset: 0;
  background: url('https://i.ibb.co/GvWrqf3k/E811-PRO-Banner.png') center/cover no-repeat;
  opacity: 0.08; z-index: -1; pointer-events: none;
}
body.theme-e811pro .sp-header {
  background: linear-gradient(90deg, #000, #1a0000) !important;
  border-bottom: 2px solid #ff2a2a !important;
  box-shadow: 0 0 25px rgba(255,60,0,.6) !important;
}
body.theme-e811pro h1,body.theme-e811pro h2,body.theme-e811pro h3,
body.theme-e811pro .section-header,.theme-e811pro .monitor-group-title {
  background: linear-gradient(135deg, #ff2a2a, #ff6a00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-e811pro .monitor-group {
  background: linear-gradient(145deg, #0b0b10, #14141a) !important;
  border-color: rgba(255,42,42,.25) !important;
  box-shadow: 0 0 15px rgba(255,0,0,.1), inset 0 0 10px rgba(255,0,0,.05) !important;
}
body.theme-e811pro .monitor-card:hover { background: rgba(255,42,42,.05) !important; border-color: rgba(255,42,42,.2) !important; }
body.theme-e811pro .sp-footer { background: linear-gradient(90deg, #000, #1a0000) !important; border-top-color: rgba(255,42,42,.25) !important; }
body.theme-e811pro ::-webkit-scrollbar-thumb { background: linear-gradient(#ff2a2a, #ff6a00) !important; }
@keyframes e811-fire { 0% { box-shadow: 0 0 10px #ff2a2a; } 50% { box-shadow: 0 0 30px #ff6a00; } 100% { box-shadow: 0 0 10px #ff2a2a; } }
body.theme-e811pro .monitor-group:hover { animation: e811-fire 2s infinite; transform: translateY(-4px) scale(1.01); }

/* ── 2. WOLF ─────────────────────────────────────────────────── */
body.theme-wolf {
  background: radial-gradient(circle at top, #1a0000 0%, #020204 70%) !important;
}
body.theme-wolf::after {
  content: ""; position: fixed; inset: 0;
  background: url("https://i.ibb.co/Y7zCgFFt/Chat-GPT-Image-27-Dez-2025-09-42-07.png") center/contain no-repeat;
  opacity: 0.06; z-index: -1; pointer-events: none;
}
body.theme-wolf .sp-header {
  background: linear-gradient(90deg, #000, #120000) !important;
  border-bottom: 2px solid #ff1e1e !important;
  box-shadow: 0 0 25px rgba(255,80,0,.7) !important;
}
body.theme-wolf h1,body.theme-wolf h2,body.theme-wolf h3,
body.theme-wolf .section-header,.theme-wolf .monitor-group-title {
  background: linear-gradient(135deg, #ff1e1e, #ff5a00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-wolf .monitor-group {
  background: linear-gradient(145deg, #08080c, #111117) !important;
  border-color: rgba(255,30,30,.2) !important; position: relative; overflow: hidden;
}
body.theme-wolf .monitor-group::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,50,0,.15), transparent);
  opacity: 0; transition: .3s; pointer-events: none;
}
body.theme-wolf .monitor-group:hover::before { opacity: 1; }
body.theme-wolf svg { filter: drop-shadow(0 0 6px #ff1e1e); }
body.theme-wolf .sp-footer { background: linear-gradient(90deg, #000, #120000) !important; border-top-color: rgba(255,30,30,.2) !important; }
body.theme-wolf ::-webkit-scrollbar-thumb { background: linear-gradient(#ff1e1e, #ff5a00) !important; }
@keyframes wolf-fire { 0% { box-shadow: 0 0 10px #ff1e1e; } 50% { box-shadow: 0 0 35px #ff5a00; } 100% { box-shadow: 0 0 10px #ff1e1e; } }
body.theme-wolf .monitor-group:hover { animation: wolf-fire 2s infinite; transform: translateY(-4px) scale(1.01); }

/* ── 3. STREAM (WonderLife) ──────────────────────────────────── */
body.theme-stream {
  background: radial-gradient(circle at top, #0b0b1a 0%, #050508 70%) !important;
}
body.theme-stream::after {
  content: ""; position: fixed; inset: 0;
  background: url("https://i.ibb.co/sdfGs7vL/Chat-GPT-Image-27-Dez-2025-04-57-41.png") center/contain no-repeat;
  opacity: 0.05; z-index: -1; pointer-events: none;
}
body.theme-stream .sp-header {
  background: linear-gradient(90deg, #050508, #0b0b1a) !important;
  border-bottom: 2px solid #8b5cf6 !important;
  box-shadow: 0 0 25px rgba(139,92,246,.6) !important;
}
body.theme-stream h1,body.theme-stream h2,body.theme-stream h3,
body.theme-stream .section-header,.theme-stream .monitor-group-title {
  background: linear-gradient(135deg, #8b5cf6, #ff4fd8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.theme-stream .monitor-group {
  background: linear-gradient(145deg, #0b0b13, #141420) !important;
  border-color: rgba(139,92,246,.2) !important; position: relative; overflow: hidden;
}
body.theme-stream .monitor-group::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(139,92,246,.15), transparent);
  opacity: 0; transition: .3s; pointer-events: none;
}
body.theme-stream .monitor-group:hover::before { opacity: 1; }
body.theme-stream svg { filter: drop-shadow(0 0 6px #8b5cf6); }
body.theme-stream .sp-footer { background: linear-gradient(90deg, #050508, #0b0b1a) !important; border-top-color: rgba(139,92,246,.2) !important; }
body.theme-stream ::-webkit-scrollbar-thumb { background: linear-gradient(#8b5cf6, #ff4fd8) !important; }
@keyframes stream-neon { 0% { box-shadow: 0 0 10px #8b5cf6; } 50% { box-shadow: 0 0 35px #ff4fd8; } 100% { box-shadow: 0 0 10px #8b5cf6; } }
body.theme-stream .monitor-group:hover { animation: stream-neon 2s infinite; transform: translateY(-4px) scale(1.01); }


/* ╔══════════════════════════════════════════════════════════════╗
   ║                 ADMIN DASHBOARD PREMIUM UI                  ║
   ╚══════════════════════════════════════════════════════════════╝ */

.admin-wrap { display: flex; min-height: 100vh; background: var(--bg); }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--bg2);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  transition: width var(--transition); z-index: 100;
}
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); flex-shrink: 0;
}
.admin-sidebar-brand-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
  color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900; letter-spacing: .08em;
  box-shadow: 0 4px 12px var(--primary-glow, rgba(99,102,241,.3));
}
.admin-sidebar-brand-name { font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.admin-sidebar-brand-sub { font-size: .68rem; color: var(--text-dim); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin-top: 1px; }

.admin-nav { padding: 12px 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-section { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); padding: 14px 10px 6px; opacity: .6; }
.admin-nav-section:first-child { padding-top: 4px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-lg);
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  text-decoration: none; transition: all var(--transition);
  position: relative; overflow: hidden; white-space: nowrap;
}
.admin-nav-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.admin-nav-item:hover { background: var(--glass); color: var(--text); opacity: 1; transform: translateX(2px); }
.admin-nav-item.active {
  background: linear-gradient(135deg, var(--primary-glow, rgba(99,102,241,.2)), transparent);
  color: var(--primary); font-weight: 600;
  border: 1px solid var(--primary-glow, rgba(99,102,241,.2));
  box-shadow: 0 2px 12px var(--primary-glow, rgba(99,102,241,.15));
}
.admin-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
}
.admin-sidebar-bottom { padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.admin-sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-border); cursor: default; }
.admin-sidebar-avatar { width: 32px; height: 32px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.admin-sidebar-user-name { font-size: .82rem; font-weight: 600; color: var(--text); }
.admin-sidebar-user-role { font-size: .68rem; color: var(--text-dim); }

/* ── MAIN ────────────────────────────────────────────────────── */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px; flex-shrink: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(20px); gap: 16px;
}
.admin-topbar-title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.025em; color: var(--text); display: flex; align-items: center; gap: 8px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-content { flex: 1; padding: 28px; display: flex; flex-direction: column; gap: 24px; }

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card-new {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px 24px; position: relative; overflow: hidden; transition: all var(--transition); cursor: default;
}
.stat-card-new::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card-new.c-primary::before { background: linear-gradient(90deg, var(--primary), var(--primary-dark, var(--primary))); }
.stat-card-new.c-up::before      { background: var(--up); }
.stat-card-new.c-down::before    { background: var(--down); }
.stat-card-new.c-warn::before    { background: var(--degraded); }
.stat-card-new:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-glow, rgba(99,102,241,.3)); }
.stat-card-new-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.stat-card-new-value { font-family: var(--font-head); font-size: 2.4rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.c-primary .stat-card-new-value { color: var(--primary); }
.c-up      .stat-card-new-value { color: var(--up); }
.c-down    .stat-card-new-value { color: var(--down); }
.c-warn    .stat-card-new-value { color: var(--degraded); }

/* ── SECTIONS ────────────────────────────────────────────────── */
.admin-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: box-shadow var(--transition); }
.admin-section:hover { box-shadow: var(--shadow-sm); }
.admin-section-title { font-family: var(--font-head); font-weight: 700; font-size: .88rem; letter-spacing: -.01em; padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; color: var(--text); }
.admin-section-body { padding: 20px 22px; }

/* ── FORMS ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.form-hint { font-size: .72rem; color: var(--text-dim); margin-top: 3px; }
.form-control {
  width: 100%; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg); color: var(--text); font-family: var(--font-sans); font-size: .9rem;
  outline: none; transition: all var(--transition); -webkit-appearance: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow, rgba(99,102,241,.15)); background: var(--bg3); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-lg); font-family: var(--font-sans);
  font-size: .875rem; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition-bounce); white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
  color: #fff !important; border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow, rgba(99,102,241,.3));
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-glow, rgba(99,102,241,.4)); opacity: 1; }
.btn-ghost { background: var(--glass); border-color: var(--glass-border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg3); border-color: var(--border); color: var(--text); opacity: 1; }
.btn-danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.25); color: var(--down); }
.btn-danger:hover { background: rgba(239,68,68,.2); border-color: var(--down); opacity: 1; }
.btn-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); color: var(--up); }
.btn-success:hover { background: rgba(34,197,94,.2); border-color: var(--up); opacity: 1; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 12px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── ALERTS ──────────────────────────────────────────────────── */
.alert { padding: 12px 18px; border-radius: var(--r-lg); font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); color: var(--up); }
.alert-danger   { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.25);  color: var(--down); }
.alert-warning  { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); color: var(--degraded); }
.alert-info     { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.25); color: var(--primary); }

/* ── TABLES ──────────────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table thead { background: var(--bg2); }
.admin-table th { padding: 11px 16px; text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); font-weight: 700; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.admin-table tbody tr { transition: background var(--transition); }
.admin-table tbody tr:hover { background: var(--bg2); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .td-name { font-weight: 600; color: var(--text); }

.admin-status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; }
.admin-status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.admin-status-dot.up::before    { background: var(--up); box-shadow: 0 0 8px var(--up); }
.admin-status-dot.down::before  { background: var(--down); box-shadow: 0 0 8px var(--down); }
.admin-status-dot.degraded::before { background: var(--degraded); }
.admin-status-dot.up    { color: var(--up); }
.admin-status-dot.down  { color: var(--down); }
.admin-status-dot.degraded { color: var(--degraded); }

/* ── THEME GRID ──────────────────────────────────────────────── */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.theme-card { border: 2px solid var(--border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all var(--transition); position: relative; }
.theme-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.theme-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow, rgba(99,102,241,.2)); }
.theme-preview { height: 60px; display: flex; align-items: flex-end; gap: 3px; padding: 8px; overflow: hidden; }
.theme-preview-bar { border-radius: 3px; width: 20%; transition: height .3s; }
.theme-label { font-size: .75rem; font-weight: 700; padding: 8px 10px 4px; color: var(--text); }
.theme-group-label { font-size: .62rem; color: var(--text-dim); padding: 0 10px 8px; }
.theme-check { position: absolute; top: 6px; right: 6px; font-size: .9rem; }

.color-picker-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 14px; }
.color-picker-item { display: flex; flex-direction: column; gap: 5px; }
.color-picker-label { font-size: .72rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.color-picker-row { display: flex; align-items: center; gap: 8px; }
.color-picker-row input[type="color"] { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; background: none; padding: 2px; }

.progress-wrap { background: var(--bg3); border-radius: 100px; overflow: hidden; height: 8px; }
.progress-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--primary), var(--primary-dark, var(--primary))); transition: width .6s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 10px var(--primary-glow, rgba(99,102,241,.4)); }
.progress-bar.bar-up   { background: var(--up); box-shadow: 0 0 8px var(--up); }
.progress-bar.bar-down { background: var(--down); }
.progress-bar.bar-warn { background: var(--degraded); }

.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-label { font-size: .875rem; color: var(--text-muted); }
input[type="checkbox"].toggle { display: none; }
.toggle-slider { position: relative; width: 42px; height: 24px; background: var(--bg3); border: 1px solid var(--border); border-radius: 100px; cursor: pointer; transition: all var(--transition); flex-shrink: 0; }
.toggle-slider::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: all var(--transition-bounce); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
input[type="checkbox"].toggle:checked + .toggle-slider { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"].toggle:checked + .toggle-slider::after { transform: translateX(18px); }


/* ╔══════════════════════════════════════════════════════════════╗
   ║                 LOGIN PAGE — PREMIUM v4                     ║
   ╚══════════════════════════════════════════════════════════════╝ */

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ''; position: fixed; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.3; z-index: 0;
  animation: grid-scroll 20s linear infinite;
}
@keyframes grid-scroll { from { background-position: 0 0; } to { background-position: 60px 60px; } }
.login-wrap::after {
  content: ''; position: fixed; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow, rgba(99,102,241,.25)), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none; animation: orb-pulse 4s ease-in-out infinite;
}
@keyframes orb-pulse { 0%,100% { transform: translate(-50%, -50%) scale(1); opacity: .7; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } }

.login-card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid var(--glass-border); border-radius: var(--r-2xl);
  padding: 44px 40px; box-shadow: var(--shadow-lg);
  position: relative; z-index: 1; backdrop-filter: blur(20px);
  animation: login-appear .6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes login-appear { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.login-card::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent); border-radius: 100px;
}
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 8px 24px var(--primary-glow, rgba(99,102,241,.4));
  animation: icon-float 3s ease-in-out infinite;
}
@keyframes icon-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.login-logo h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: 5px; }
.login-logo p { font-size: .82rem; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.login-card .form-group { margin-bottom: 18px; }
.login-card .form-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; display: block; }
.login-card .form-control { height: 50px; font-size: .95rem; letter-spacing: .04em; }
.login-btn {
  width: 100%; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
  color: #fff; border: none; border-radius: var(--r-lg);
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .03em; cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow, rgba(99,102,241,.4));
  transition: all var(--transition-bounce);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}
.login-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.15), transparent); opacity: 0; transition: opacity var(--transition); }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--primary-glow, rgba(99,102,241,.5)); }
.login-btn:hover::before { opacity: 1; }
.login-btn:active { transform: translateY(0); }
.login-back { display: block; text-align: center; margin-top: 22px; font-size: .78rem; color: var(--text-dim); transition: color var(--transition); }
.login-back:hover { color: var(--primary); opacity: 1; }
.login-card .alert { margin-bottom: 20px; border-radius: var(--r-lg); }


/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { width: 60px; }
  .admin-sidebar-brand-name,.admin-sidebar-brand-sub,.admin-nav-section { display: none; }
  .admin-nav-item span:not(.admin-nav-icon) { display: none; }
  .admin-sidebar-brand { padding: 16px; justify-content: center; }
  .admin-nav { padding: 8px 6px; }
  .admin-nav-item { justify-content: center; padding: 10px; }
  .admin-nav-item.active::before { display: none; }
  .admin-sidebar-bottom { display: none; }
}
@media (max-width: 680px) {
  .status-banner-card { padding: 24px 20px; flex-direction: column; }
  .status-stats { width: 100%; justify-content: space-around; }
  .stat-item { min-width: 60px; padding: 10px 12px; }
  .stat-value { font-size: 1.4rem; }
  .uptime-strip { flex-wrap: wrap; }
  .uptime-strip-item { min-width: 50%; }
  .sp-footer-inner { flex-direction: column; text-align: center; }
  .sp-footer-center { order: -1; }
  .subscribe-form { width: 100%; }
  .subscribe-input { min-width: 0; width: 100%; }
  .monitor-group-header { flex-wrap: wrap; gap: 8px; }
  .search-wrap { padding: 0 16px; }
  .sp-container { padding: 0 16px 80px; }
  .status-banner { padding: 20px 16px 0; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 16px; }
  .form-row,.form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .status-main-text h1 { font-size: 1.25rem; }
  .grid-mode .monitor-list { grid-template-columns: 1fr; }
  .search-kbd { display: none; }
}
@media print {
  .sp-header,.live-bar,.search-wrap,.sp-footer,.admin-sidebar { display: none; }
  .monitor-group { break-inside: avoid; }
}
