

@layer components {

.rpt-cta-primary {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}
.rpt-cta-primary .pl-icon { width: 16px; height: 16px; }

.rpt-stack { display: flex; flex-direction: column; gap: 20px; }
.rpt-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.rpt-ambient {
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  border-radius: 50%;
  transform: translate(40%, -40%);
  pointer-events: none;
}
.rpt-ambient--purple { background: radial-gradient(circle, rgba(94, 106, 210, 0.12) 0%, transparent 70%); }
.rpt-ambient--yellow { background: radial-gradient(circle, rgba(234, 179, 8, 0.1) 0%, transparent 70%); }
.rpt-card-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.rpt-card-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.rpt-card-title { font-size: 1.1rem; font-weight: 500; color: #fff; letter-spacing: -0.02em; margin: 0 0 8px; }
.rpt-card-title--yellow { color: #EAB308; }
.rpt-card-desc { font-size: 0.84rem; line-height: 1.5; color: rgba(255, 255, 255, 0.55); margin: 0 0 20px; flex: 1; }

.rpt-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rpt-cta .pl-icon { width: 15px; height: 15px; }
.rpt-cta--purple { background: rgba(94, 106, 210, 0.12); color: #818cf8; border-color: rgba(94, 106, 210, 0.25); }
.rpt-cta--yellow { background: rgba(234, 179, 8, 0.08); color: #EAB308; border-color: rgba(234, 179, 8, 0.2); }
.rpt-cta--white { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.15); }

.rpt-wide {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  align-items: center;
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.rpt-wide-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 55%);
  pointer-events: none;
}
.rpt-wide-left { position: relative; display: flex; align-items: center; gap: 16px; padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, 0.05); min-width: 0; }
.rpt-wide-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rpt-wide-title { font-size: 1.05rem; font-weight: 500; color: #fff; letter-spacing: -0.02em; }
.rpt-wide-sub { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.rpt-wide-stats { position: relative; display: flex; justify-content: center; }
.rpt-wide-stat { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 24px; border-right: 1px solid rgba(255, 255, 255, 0.05); }
.rpt-wide-stat:last-child { border-right: none; }
.rpt-wide-right { position: relative; display: flex; justify-content: flex-end; align-items: center; }

.god-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.god-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 20px;
  min-width: 0;
}
.god-panel--glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.god-panel--hero {
  background: linear-gradient(135deg, #1A1F2C 0%, #0F131C 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.3);
}
.god-mesh {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03), transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.god-orb {
  position: absolute;
  top: -50px; right: -50px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.god-head {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.god-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}
.god-badge { padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.god-hint { font-size: 0.75rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.god-summary { position: relative; z-index: 10; margin-bottom: 32px; }
.god-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin: 10px 0 0; }

.god-sub { position: relative; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 20px; }
.god-bleed-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); letter-spacing: -0.01em; }

.god-bleed { position: relative; z-index: 10; }
.god-bleed-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.god-bleed-head { display: flex; justify-content: space-between; gap: 16px; }
.god-bar { width: 100%; height: 12px; border-radius: 100px; background: rgba(0, 0, 0, 0.3); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); }

.god-tree { display: flex; flex-direction: column; }
.god-tree-root,
.god-tree-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
}
.god-tree-root { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); margin-bottom: 12px; }
.god-tree-alt { background: rgba(249, 115, 22, 0.05); border: 1px solid rgba(249, 115, 22, 0.1); margin-top: 8px; }
.god-tree-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: #fff; }
.god-flow { padding-left: 20px; margin-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.god-flow-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.god-flow-node::before {
  content: '';
  position: absolute;
  left: -20px; top: 50%;
  width: 20px; height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.god-flow-node:first-child::before { display: none; }
.god-flow-label { font-size: 0.9rem; font-weight: 500; color: #fff; }

.god-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.god-item:last-child { margin-bottom: 0; }
.god-rank {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.god-rank svg { width: 16px; height: 16px; }
.god-rank--2 { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); }
.god-rank--3 { background: rgba(255, 255, 255, 0.02); color: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.05); }
.god-item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.god-item-name { font-size: 1rem; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.god-item-desc { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

@media (max-width: 1200px) {

  .rz-screen:not([data-screen="pulse"]) { padding: 20px 24px 0; }
  .pl-track { padding: 40px 24px 24px; }
  .mod-metrics { gap: 24px; }
  .mod-plate, .rpt-plate, .intel-hub { padding: 24px; }
}

@media (max-width: 1024px) {
  .rz-hero--inner { min-height: 260px; }
  .rpt-top { grid-template-columns: 1fr; }
  .mod-lower { grid-template-columns: 1fr; }
  .god-grid { grid-template-columns: 1fr; }
  .rpt-wide { grid-template-columns: 1fr; gap: 20px; }
  .rpt-wide-left { padding-right: 0; border-right: none; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .rpt-wide-right { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .rz-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin: 0 auto 4px;
    width: 100%;
    scrollbar-width: none;
  }
  .rz-tabs::-webkit-scrollbar { display: none; }
  .mod-metrics { justify-content: flex-start; text-align: left; }
  .mod-metric { align-items: flex-start; }
  .pl-fork { display: none; }
}

@media (max-width: 640px) {
  .rz-hero--inner,
  .rz-hero--violet { min-height: 0; }
  .rz-time--inner { position: static; }
  .pl-track { flex-wrap: wrap; gap: 16px; padding: 36px 18px 20px; }
  .pl-conn { display: none; }
  .pl-bif { flex: 1 1 100%; }
  .pl-node { flex: 1 1 auto; }
  .mod-plate, .rpt-plate, .intel-hub { padding: 18px; border-radius: 18px; }
  .mod-chart, .mod-panel, .rpt-hero, .rpt-card, .rpt-wide, .god-panel { padding: 20px; }
  .rpt-hero { min-height: 0; }
  .hn-roster { grid-template-columns: 1fr; gap: 12px; }
}
}

@layer components {

.pl-conn::after { animation: plFlowPulse 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.pl-track-wrapper--brand .pl-conn::after { animation-delay: 1s; }
@keyframes plFlowPulse {
  0%   { transform: translateX(-200%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(500%); opacity: 0; }
}

.hn-card--ai .hn-avatar-dot { --vivo: #8B5CF6; }
.hn-card--brand:not(.hn-card--ai) .hn-avatar-dot { --vivo: #3B82F6; }
.mod-status-dot { --vivo: #10b981; position: relative; }
.rpt-badge--unread .rpt-badge-dot { --vivo: #10b981; position: relative; }
.hn-card--ai .hn-avatar-dot::after,
.hn-card--brand .hn-avatar-dot::after,
.mod-status-dot::after,
.rpt-badge--unread .rpt-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vivo);
  pointer-events: none;
  opacity: 0;
  animation: rzVivo 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hn-card--brand:not(.hn-card--ai) .hn-avatar-dot::after { animation-delay: 0.9s; }
.hn-card--brand.hn-card--ai .hn-avatar-dot::after { animation-delay: 1.7s; }
@keyframes rzVivo {
  0%       { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

.god-orb { animation: rzRisco 6s ease-in-out infinite; }
@keyframes rzRisco {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .pl-conn::after { animation: none; opacity: 0.35; }
  .hn-card--ai .hn-avatar-dot::after,
  .hn-card--brand .hn-avatar-dot::after,
  .mod-status-dot::after,
  .rpt-badge--unread .rpt-badge-dot::after,
  .god-orb { animation: none; }
}
}
