  .panel{
    text-align: center;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border:1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    position:relative;
    overflow:hidden;
  }
.stat-block {
background: #111;
padding: 10px;
border-radius: var(--radius);
border: 1px solid var(--color-accent);
margin-top: 10px;
}
.bar-energy {
width: 0;
height: 6px;
background: var(--color-accent);
border-radius: 3px;
transition: width 0.5s ease;
}
  .ui-terminal {
background: #000;
color: var(--color-accent);
font-family: monospace;
padding: 15px;
height: 200px;
overflow-y: auto;
border-radius: var(--radius);
border: 1px solid var(--color-accent);
}
  .ui-terminal::after {
content: "_";
animation: blink 1s infinite steps(2);
}
@keyframes blink { 50% { opacity: 0; } }
  .panel .title{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
  .hint{color:var(--muted); font-size:12px}

  /* I — System alive (pulses) */
  .pulse-ring{
    position:absolute; inset:auto auto 16px 16px; width:8px; height:8px; border-radius:50%;
    background: var(--accent); box-shadow:0 0 10px var(--accent);
  }
  .pulse-ring::after{
    content:""; position:absolute; inset:0; border-radius:inherit; border:2px solid var(--accent);
    animation: ring 2.4s infinite ease-out;
  }
  @keyframes ring{ 0%{transform:scale(1); opacity:.8} 100%{transform:scale(4); opacity:0} }

  /* Buttons */
  .btn{
    --b: 1px;
    font-family:var(--font-ui); letter-spacing:.5px; font-weight:600;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.2));
    color:var(--text); border: var(--b) solid rgba(255,255,255,0.18);
    border-radius:10px; padding:10px 16px; cursor:pointer;
    transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed), background var(--speed);
  }
  .btn:hover{ transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 10px 30px rgba(0,0,0,.5) }
  .btn.accent{ border-color: var(--accent); color: var(--accent); }
  .btn.accent:hover{ background: linear-gradient(180deg, rgba(52,245,197,0.12), rgba(52,245,197,0.02)); box-shadow:0 0 0 3px rgba(52,245,197,0.18) }
  .btn.danger{ border-color: var(--danger); color: var(--danger); }
  .btn:active{ transform: translateY(0) scale(.98) }

  /* Bars (VII + stat visuals) */
  .stat{display:grid; grid-template-columns: 110px 1fr; align-items:center; gap:10px; margin:8px 0}
  .bar{
    height:10px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius:999px;
    overflow:hidden; position:relative;
  }
  .bar > i{
    display:block; height:100%; width:0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px rgba(52,245,197,0.45) inset;
    transition: width 600ms ease-out;
  }

  /* Terminal (VIII — The Oracle) */
  .terminal{
    background:#000; color: #d1fae5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    border:1px solid rgba(52,245,197,0.3); border-radius:12px; padding:14px; height:200px; overflow:auto; position:relative;
  }
  .terminal .cursor{ display:inline-block; width:10px; height:1.1em; background: #34f5c5; vertical-align: -0.2em; animation: blink 1s steps(2,end) infinite}
  @keyframes blink {50%{opacity:0}}
  .term-title{
    position:absolute; right:10px; top:8px; font-size:11px; color:#67e8f9; opacity:.7;
  }

  /* Grid demo overlay toggle */
  .grid-demo{ position:relative; }
  .grid-demo::before{
    content:""; position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity var(--speed);
    background: repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.06), rgba(255,255,255,0.06) calc((100% / 12) - 1px),
      transparent calc((100% / 12) - 1px), transparent calc(100% / 12)
    );
    border-radius: var(--radius);
  }
  .grid-demo.active::before{ opacity:1 }

  /* Cards for examples */
  .card{
    background: linear-gradient(180deg, #0c1117, #0a0e13);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:12px; padding:14px;
  }
  .subtitle{color:var(--muted); font-size:13px}

  /* Small utilities */
  .row{display:flex; gap:10px; flex-wrap:wrap}
  .muted{color:var(--muted)}
  .k{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background:#0b1220; padding:2px 6px; border-radius:6px; border:1px solid rgba(255,255,255,0.08)}
  .divider{ height:1px; background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent); margin:16px 0}
  .footnote{ font-size:12px; color:#94a3b8; margin-top:14px}
@keyframes pulse {
0% { box-shadow: 0 0 0px var(--color-accent); }
50% { box-shadow: 0 0 10px var(--color-accent); }
100% { box-shadow: 0 0 0px var(--color-accent); }
}
.pulse { animation: pulse 0.3s; }
/* Toggle Button */
#igbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #00ffcc;
  color: #000;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,255,204,0.5);
  z-index: 10000;
  transition: transform 0.3s ease;
  user-select: none;
}

/* Notification Badge */
#igbot-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  display: none;
  font-weight: bold;
}

/* Chat Window */
#igbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 480px;
  background: #0e0e0e;
  color: #00ffcc;
  border: 2px solid #00ffcc;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,255,204,0.4);
  font-family: "Courier New", monospace;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
  z-index: 9999;
  user-select: none;
}

#igbot.active {
  transform: scale(1);
}

#igbot-header {
  background: #00ffcc;
  color: #000;
  text-align: center;
  padding: 8px;
  font-weight: bold;
  font-size: 14px;
  position: relative;
  cursor: move; /* For drag-and-drop */
}

#igbot-close {
  position: absolute;
  right: 8px;
  top: 4px;
  cursor: pointer;
  font-weight: bold;
}

#igbot-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

#igbot-options {
  border-top: 1px solid #00ffcc;
  padding: 10px;
  background: #111;
}

.option-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  border-radius: 6px;
  margin: 5px 0;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: 0.3s;
}

.option-btn:hover {
  background: #00ffcc;
  color: #000;
}

/* Vibration animation for new messages */
@keyframes vibrate {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
.vibrate {
  animation: vibrate 0.3s linear;
}