/* ================= OVERLAY & PANEL FIX ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 100;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* PANEL CONTAINER */
.panel-shell {
  background: var(--panel-bg);
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-strong);
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.panel-shell.open {
  display: flex;
}

/* PANEL HEADER */
.panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148,163,184,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(56,189,248,0.12),
    rgba(2,6,23,0.9)
  );
}

.panel-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: var(--blue);
}

.panel-chip {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* SCROLLABLE CONTENT */
.panel-scroll {
  padding: 18px 20px 26px;
  overflow-y: auto;
}

/* CONTENT BLOCKS */
.panel-block {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.25);
}

.panel-block h3 {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--cyan);
}

.panel-block p,
.panel-block li {
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.6;
}

/* LINKS */
.github-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  text-decoration: none;
}

.github-link:hover {
  text-decoration: underline;
}

/* BACK BUTTON */
.back-btn {
  border: none;
  background: none;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
}
