:root {
  --bg: #0a0f18;
  --panel: #121a28;
  --panel-2: #182235;
  --text: #f4f7ff;
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #78a8ff;
  --border: rgba(120, 168, 255, 0.18);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}
.admin-shortcut {
    margin-left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.18);
    border: 1px solid rgba(79, 140, 255, 0.35);
    color: #cfe1ff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-shortcut:hover {
    background: rgba(79, 140, 255, 0.28);
}
body {
  touch-action: none;
  overscroll-behavior: none;
}
body[data-access="false"] .panel:not(.center) .panel-box {
  filter: blur(10px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

body[data-access="false"] .panel:not(.center)::after {
  content: "Access Required";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.today-panel {
  max-width: 760px;
  margin: 0 auto;
}

.today-panel .rolling-stack {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 6px;
}
.hud-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-left {
  font-weight: 600;
}
.login-cta::after {
  content: "";
  inset: -2px;
  border-radius: inherit;
  z-index: -1;

  background: radial-gradient(circle, rgba(0,212,255,0.25), transparent 70%);
  opacity: 0.5;
  filter: blur(10px);

  animation: orcaPulse 3s ease-in-out infinite;
}

@keyframes orcaPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.login-cta:hover {
  transform: translate(-50%, -3px) scale(1.02);

  box-shadow:
    0 18px 55px rgba(0,0,0,0.6),
    0 0 40px rgba(14,165,233,0.55),
    0 0 80px rgba(37,99,235,0.35);
}
.login-cta {
  position: absolute;
  left: 50%;
  bottom: -500px;
  transform: translateX(-50%);
  z-index: 20;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;
  border-radius: 999px;

  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;

  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 0 25px rgba(14,165,233,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);

  backdrop-filter: blur(8px);

  transition: all 0.25s ease;
}
.login-stack {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logout-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.12);
}
.login-hero {
  position: relative;
  top: auto;
  left: auto;
  transform: none;

  margin: 0;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  text-align: center;
}
.app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.45), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
/* === BACKGROUND LAYER === */

.liquid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: background-image 0.8s ease, 
  opacity 0.4s ease;
}

.liquid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background:
    linear-gradient(
      to right,
      rgba(255, 115, 45, 0.18),
      transparent 42%,
      transparent 58%,
      rgba(45, 145, 255, 0.18)
    ),
    radial-gradient(circle at center, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}
.top-right {
  left: calc(250vw - min(44vw, 480px));
  top: calc(50vh - min(38vh, 360px) - 70px);
}
.top-left {
  left: calc(50vw - min(44vw, 480px));
  top: calc(50vh - min(38vh, 360px) - 70px);
}

.bottom-right {
  left: calc(250vw - min(44vw, 480px));
  top: calc(250vh - min(44vh, 360px) - 60px);
}

.liquid-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  filter: blur(140px);
  opacity: 0.45;
  z-index: -2;
  animation: float 18s ease-in-out infinite;
}

.liquid-glow-one {
  background: #4f7cff;
  top: 10%;
  left: 15%;
}

.liquid-glow-two {
  background: #00d4ff;
  bottom: 10%;
  right: 15%;
}

@keyframes float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(40px, -30px); }
}
.login-chips {
  position: relative;
  left: auto;
  top: auto;
  transform: none;

  display: flex;
  justify-content: center;
  gap: 10px;
}

@keyframes chipsFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.login-chips span {
  padding: 7px 11px;
  border-radius: 999px;

  background: rgba(8,14,24,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);

  color: rgba(255,255,255,0.72);
  font-size: 0.75rem;
  font-weight: 700;
}
.world {
  position: absolute;
  width: 300vw;
  height: 300vh;
  left: -100vw;
  top: -100vh;
  transform: translate(0vw, 0vh);
  transition: transform 0.35s cubic-bezier(.22, .85, .18, 1);
  will-change: transform;
}

.world.dragging {
  transition: none;
}

.panel {
  position: absolute;
  width: min(92vw, 1100px); 
  min-height: min(76vh, 720px);
  border-radius: 32px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(14, 20, 31, 0.88), rgba(18, 26, 40, 0.94));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.today-panel .rolling-stack,
.system-panel .rolling-stack {
  max-height: calc(76vh - 220px);
  overflow-y: auto;
  padding-right: 8px;
}

.today-panel .rolling-stack::-webkit-scrollbar,
.system-panel .rolling-stack::-webkit-scrollbar {
  width: 6px;
}

.today-panel .rolling-stack::-webkit-scrollbar-thumb,
.system-panel .rolling-stack::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.center {
  left: calc(150vw - min(46vw, 550px));
  top: calc(150vh - min(38vh, 360px) - 100px);
}

.left {
  left: calc(50vw - min(46vw, 550px));
  top: calc(150vh - min(38vh, 360px) - 100px);
}

.right {
  left: calc(250vw - min(46vw, 550px));
  top: calc(150vh - min(38vh, 360px) - 100px);
}
.up   { 
  left: calc(150vw - min(44vw, 480px)); 
  top: calc(50vh - min(38vh, 360px) - 70px); 
}

.down { 
  left: calc(150vw - min(44vw, 480px)); 
  top: calc(250vh - min(44vh, 360px) - 60px); 
}
.dashboard-panel {
  width: min(92vw, 1100px);
  height: min(80vh, 720px);
  padding: 0;
  overflow: hidden;
  position: relative;
}
 
.feed-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.feed-stack {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.feed-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
}

.feed-line {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.feed-bullet {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.feed-bullet.fail {
  color: #ff9a9a;
}

.highlight {
  color: #9dffc4;
  font-weight: 800;
}

.reason {
  color: rgba(255,255,255,0.7);
  font-style: italic;
}
.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(120,168,255,0.15), transparent 70%);
  pointer-events: none;
}
.dashboard-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 28px;
  background: #000;
}
.hud {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(92vw, 760px);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  color: var(--text);
}

.hud-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.hud-left {
  font-weight: 600;
}

.hud-access-state {
  opacity: 0.8;
}

.logout-form {
  margin: 0;
  flex: 0 0 auto;
}

.logout-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.12);
}
.status {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(92vw, 800px);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}
.panel-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: auto;
  border-radius: 28px;
  border: 1px solid rgba(120, 168, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(22, 31, 48, 0.96), rgba(14, 21, 34, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -18px 40px rgba(0, 0, 0, 0.22),
    0 18px 55px rgba(0, 0, 0, 0.28);
  padding: 30px 28px;
  display: grid;
  gap: 14px;
  text-align: center;
  overflow: hidden;
}

.panel-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(120, 168, 255, 0.10), transparent 40%);
  opacity: 0.8;
}

.panel-box::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 26px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.035);
}
.panel-box__badge {
  width: fit-content;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(120, 168, 255, 0.24);
  background: rgba(120, 168, 255, 0.08);
  color: #cfe1ff;
  position: relative;
  z-index: 1;
}

.panel-box__title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  position: relative;
  z-index: 1;
}

.panel-box__text {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.system-panel {
  text-align: left;
}

.system-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.system-stat__label {
  margin-bottom: 7px;
  color: rgba(255,255,255,0.48);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-stat__value {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}
.system-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.rolling-stack {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.rolling-line {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* section spacing */
.rolling-line:has([DATE]),
.rolling-line:first-child {
  margin-top: 12px;
  font-weight: 800;
  color: #fff;
}

/* highlight key metrics */
.highlight {
  color: #9dffc4;
  font-weight: 800;
}

/* verdict styling */
.verdict {
  margin-top: 20px;
  color: #ffcf8a;
  font-weight: 800;
}

/* AGGREGATE section */
.rolling-line:contains("AGGREGATE") {
  margin-top: 24px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}
@media (max-width: 700px) {
  .system-grid {
    grid-template-columns: 1fr;
  }
}
.summary-panel {
  text-align: left;
}

.summary-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.summary-card__label {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.52);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-card__headline {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.summary-card__detail {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

.summary-card__time {
  margin-top: 18px;
  color: rgba(255,255,255,0.44);
  font-size: 0.78rem;
}
.summary-card__extra {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.summary-card__bullet {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .panel {
    width: 90vw;
    min-height: 72vh;
    padding: 24px;
  }
}
  /* === PAGE BACKGROUNDS === */
/* === CENTER PANEL (LOGIN vs ACCESS) === */
body[data-panel="topRight"] .liquid-bg {
  background-image: url("/assets/images/o_topright.png");
}

body[data-panel="center"][data-access="false"] .liquid-bg {
  background-image: url("/assets/images/o_login.png");
}

body[data-panel="center"][data-access="true"] .liquid-bg {
  background-image: url("/assets/images/o_center.png");
}

body[data-panel="left"] .liquid-bg {
  background-image: url("/assets/images/o_left.png");
}

body[data-panel="right"] .liquid-bg {
  background-image: url("/assets/images/o_right.png");
}

body[data-panel="up"] .liquid-bg {
  background-image: url("/assets/images/o_up.png");
}

body[data-panel="down"] .liquid-bg {
  background-image: url("/assets/images/o_down.png");
}
body[data-access="false"] .center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
body[data-panel="topLeft"] .liquid-bg {
  background-image: url("/assets/images/o_topleft.png");
}

body[data-panel="bottomRight"] .liquid-bg {
  background-image: url("/assets/images/o_bottomright.png");
}
/* === PANEL POSITIONS === */

.center { 
  left: calc(150vw - min(46vw, 550px)); 
  top: calc(150vh - min(38vh, 360px) - 100px); 
}

.left {
  left: calc(50vw - min(46vw, 550px));
  top: calc(150vh - min(38vh, 360px) - 100px);
}

.right {
  left: calc(250vw - min(46vw, 550px));
  top: calc(150vh - min(38vh, 360px) - 100px);
}

.up {
  left: calc(150vw - min(46vw, 550px));
  top: calc(50vh - min(38vh, 360px) - 100px);
}

.down {
  left: calc(150vw - min(46vw, 550px));
  top: calc(250vh - min(38vh, 360px) - 100px);
}

