/* ==========================================================================
   SEEYOUSOON SUPER-APP — SCREEN R: SYSTEM STATES & NOTIFICATIONS (R-SYSTEM-UI)
   R1 (Offline) · R2 (Error) · R3 (Maintenance) · R4 (Update) · R6 (Toasts)
   ========================================================================== */

/* ── 1. Fullscreen System Shell ── */
.sys-screen {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ink, #090B10);
  color: var(--on-surface, #E2E2E9);
  padding-bottom: calc(var(--safe-bottom) + 32px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.sys-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sys-aurora-blob-1 {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 75%);
  filter: blur(40px);
}
.sys-aurora-blob-2 {
  position: absolute;
  top: 380px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  filter: blur(50px);
}

/* ── 2. System Topbar Header ── */
.sys-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 8px) 16px 12px;
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sys-btn-back {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20, 26, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.sys-btn-back:active { transform: scale(0.92); }

.sys-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sys-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0;
}
.sys-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--paper-muted, #94A3B8);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.sys-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
}

.sys-id-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #D0BCFF;
  font-size: 11px;
  font-weight: 800;
}

/* ── 3. Content Body ── */
.sys-body {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

/* Status Alert Ribbon */
.sys-alert-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
}
.sys-alert-ribbon--amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #F59E0B;
}
.sys-alert-ribbon--rose {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #F43F5E;
}
.sys-alert-ribbon--cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06B6D4;
}

/* Trust Row horizontal chips */
.sys-trust-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.sys-trust-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(14, 18, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: #CBC3D7;
}

/* Central Radar Landmark Stage */
.sys-landmark-stage {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px 0 6px;
}
.sys-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.25);
  pointer-events: none;
}
.sys-radar-ring-1 { width: 140px; height: 140px; }
.sys-radar-ring-2 { width: 200px; height: 200px; }
.sys-radar-ring-3 { width: 260px; height: 260px; }

.sys-landmark-art {
  position: relative;
  z-index: 5;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 26, 41, 0.85);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.35);
}
.sys-landmark-img {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.sys-landmark-text {
  text-align: center;
  margin-top: 14px;
}
.sys-landmark-heading {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}
.sys-landmark-desc {
  font-size: 12px;
  color: #94A3B8;
  max-width: 280px;
  margin: 4px auto 0;
  line-height: 1.4;
}

/* Glass Panels & Action Cards */
.sys-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(20, 26, 41, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1), 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sys-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sys-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sys-card-badge {
  font-size: 10px;
  font-weight: 700;
  color: #D0BCFF;
  background: rgba(168, 85, 247, 0.15);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Action Rows */
.sys-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 14px;
  background: rgba(14, 18, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  color: inherit;
}
.sys-action-row:active {
  transform: scale(0.98);
  background: rgba(20, 26, 41, 0.9);
}
.sys-action-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sys-action-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  color: #D0BCFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sys-action-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}
.sys-action-sub {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 1px;
}
.sys-action-arrow {
  color: #958EA0;
}

/* Primary & Secondary Buttons */
.sys-btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease;
}
.sys-btn-primary:active { transform: scale(0.97); }

.sys-btn-secondary {
  width: 100%;
  padding: 13px;
  border-radius: 16px;
  background: rgba(20, 26, 41, 0.8);
  color: #E2E2E9;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.18s ease;
}
.sys-btn-secondary:active { transform: scale(0.97); }

/* Version / Diagnostic Footer */
.sys-footer {
  text-align: center;
  padding: 12px 16px;
  font-size: 10.5px;
  color: #64748B;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sys-footer-code {
  font-family: var(--font-mono, monospace);
  color: #94A3B8;
}

/* ── 4. Keyframe Animations (Reduced Motion Protected) ── */
@media (prefers-reduced-motion: no-preference) {
  .sys-aurora-blob-1 {
    animation: sysAurora 12s ease-in-out infinite alternate;
  }
  .sys-aurora-blob-2 {
    animation: sysAurora 15s ease-in-out infinite alternate-reverse;
  }
  .sys-radar-ring-1 {
    animation: sysSignal 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  }
  .sys-radar-ring-2 {
    animation: sysSignal 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 1s;
  }
  .sys-radar-ring-3 {
    animation: sysSignal 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 2s;
  }
}

@keyframes sysAurora {
  0% { transform: translateX(-50%) scale(1); opacity: 0.14; }
  50% { transform: translate(-45%, 15px) scale(1.15); opacity: 0.22; }
  100% { transform: translate(-55%, -10px) scale(1.05); opacity: 0.16; }
}

@keyframes sysSignal {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
