/* ============================
   REALTIME ANALYTICS
   ============================ */

   .rt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
  }
  
  .rt-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #002e6b;
  }
  
  .rt-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    color: #6b7280;
  }
  
  .rt-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
  }
  
  .rt-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
  }
  
  .rt-dot-offline {
    background: #d1d5db;
  }
  
  .rt-dot-online {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.3);
  }
  
  /* Cards */
  
  .rt-top-row {
    display: grid;
    grid-template-columns: 1.15fr 1.3fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .rt-card {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    padding: 1rem 1.15rem;
  }
  
  .rt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }
  
  .rt-card-header h2 {
    margin: 0;
    font-size: 1rem;
    color: #111827;
  }
  
  .rt-pill {
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #eff6ff;
    color: #1d4ed8;
  }
  
  /* Active visitors */
  
  .rt-active-count {
    font-size: 2.4rem;
    font-weight: 600;
    color: #002e6b;
  }
  
  .rt-active-count small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #6b7280;
  }
  
  /* Devices */
  
  .rt-device-bars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  
  .rt-device-row {
    display: grid;
    grid-template-columns: 70px 1fr 30px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
  }
  
  .rt-bar-wrapper {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #f3f4f6;
    overflow: hidden;
  }
  
  .rt-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #0ea5e9, #bf9745);
  }
  
  .rt-bar-count {
    font-size: 0.8rem;
    text-align: right;
    color: #6b7280;
  }
  
  /* Feed */
  
  .rt-feed-card {
    margin-bottom: 1rem;
  }
  
  .rt-feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
  }
  
  .rt-feed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
  }
  
  .rt-feed-left {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  
  .rt-feed-path {
    font-weight: 500;
    color: #111827;
  }
  
  .rt-feed-meta {
    font-size: 0.75rem;
    color: #6b7280;
  }
  
  .rt-feed-badge {
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
  }
  
  .rt-feed-badge-member {
    background: #dbeafe;
    color: #1d4ed8;
  }
  
  .rt-feed-badge-guest {
    background: #fef3c7;
    color: #b45309;
  }
  
  .rt-feed-empty {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
  }
  
  /* Funnel */
  
  .rt-funnel-card {
    margin-bottom: 1rem;
  }
  
  .rt-funnel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
  }
  
  .rt-funnel-step {
    border-radius: 14px;
    padding: 0.7rem 0.8rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
  }
  
  .rt-funnel-label {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
  }
  
  .rt-funnel-value {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #002e6b;
  }
  
  /* Responsive */
  
  @media (max-width: 960px) {
    .rt-top-row {
      grid-template-columns: 1fr;
    }
  
    .rt-funnel-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 640px) {
    .rt-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.6rem;
    }
  
    .rt-funnel-grid {
      grid-template-columns: 1fr;
    }
  }
  