.lab-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.lab-header {
  background: linear-gradient(
    180deg,
    rgba(120, 180, 255, 0.08),
    rgba(0, 0, 0, 0)
  );
  border: 1px solid rgba(120, 180, 255, 0.15);
  border-radius: 14px;
  padding: 2.5rem 3rem;
  margin-bottom: 4rem;
  box-shadow: 0 0 0 1px rgba(120, 180, 255, 0.05);
}

.lab-header h1 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.lab-header p {
   color: var(--text-secondary);
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.lab-card {
  position: relative;
  background: rgba(20, 26, 36, 0.9);
  border-radius: 14px;
  padding: 1.75rem 1.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lab-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(120, 180, 255, 0.15);
}

.lab-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #dbe8ff;
  margin-bottom: 0.6rem;
}

.lab-card p {
  color: #aab6cc;
  font-size: 0.95rem;
  line-height: 1.55;
}

.lab-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #7fa7ff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lab-card::before {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(120, 180, 255, 0.6);
}

.lab-card a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #7fb2ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.lab-card a:hover {
  border-bottom-color: rgba(120, 180, 255, 0.5);
}

.lab-link {
    cursor: pointer;
}


.auth-note {
  font-size: 0.75rem;
  color: #8fb3ff;
  margin-left: 0.5rem;
}

.lab-card.locked {
  opacity: 0.55;
}

.lab-badge {
  position: absolute;
  top: 12px;
  right: 14px;

  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;

  padding: 4px 6px;
  border-radius: 4px;

  color: #8fb3ff;
  background: rgba(120, 160, 255, 0.12);

  display: none;
}

.lab-card.locked .lab-badge {
  display: inline-block;
}

.lab-card.locked .lab-action {
  pointer-events: none;
  color: #777;
}

.lab-card:not(.locked) {
  opacity: 1;
  filter: none;
}

.requires-auth:not(.locked) {
  color: var(--accent);
}