/* Compact Collapsible Bridge Guide */
.bx-guide {
  margin: 1rem 0 1.5rem;
  background: linear-gradient(135deg, rgba(0,30,40,0.9), rgba(0,20,30,0.95));
  border: 1px solid rgba(0,255,255,0.2);
  border-radius: 12px;
  overflow: hidden;
  animation: guideSlideIn 0.5s ease;
}

.bx-guide.dismissed { display: none; }

@keyframes guideSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bx-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: rgba(0,255,255,0.03);
  transition: background 0.2s;
}

.bx-guide-header:hover { background: rgba(0,255,255,0.06); }

.bx-guide-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bx-guide-title .guide-icon {
  width: 28px;
  height: 28px;
  animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(0,255,255,0.3)); }
  50% { filter: drop-shadow(0 0 8px rgba(0,255,255,0.6)); }
}

.bx-guide-title span {
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
}

.bx-guide-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-badge {
  background: rgba(0,255,255,0.1);
  color: #0ff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.chevron {
  width: 20px;
  height: 20px;
  stroke: #0ff;
  transition: transform 0.3s ease;
}

.bx-guide.collapsed .chevron { transform: rotate(-90deg); }

.bx-guide-content {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(0,255,255,0.1);
  max-height: 400px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}

.bx-guide.collapsed .bx-guide-content {
  max-height: 0;
  padding: 0 1rem;
  opacity: 0;
}

.bx-guide-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.guide-tab {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #888;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.guide-tab:hover { border-color: rgba(0,255,255,0.3); color: #fff; }
.guide-tab.active { background: rgba(0,255,255,0.1); border-color: #0ff; color: #0ff; }

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.guide-step {
  background: rgba(0,0,0,0.3);
  padding: 0.6rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  opacity: 0;
  animation: stepFadeIn 0.4s ease forwards;
}

.guide-step:nth-child(1) { animation-delay: 0.1s; }
.guide-step:nth-child(2) { animation-delay: 0.2s; }
.guide-step:nth-child(3) { animation-delay: 0.3s; }
.guide-step:nth-child(4) { animation-delay: 0.4s; }

@keyframes stepFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.guide-step .num {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #0ff, #00ff88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #000;
}

.guide-step span:last-child {
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.3;
}

.guide-step code {
  background: rgba(0,255,255,0.1);
  color: #0ff;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.7rem;
}

.guide-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.5rem;
}

.guide-info span {
  font-size: 0.7rem;
  color: #888;
}

.guide-dismiss {
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.2);
  color: #666;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.guide-dismiss:hover {
  border-color: rgba(0,255,255,0.3);
  color: #0ff;
}

@media (max-width: 768px) {
  .guide-steps { grid-template-columns: repeat(2, 1fr); }
  .guide-info { flex-wrap: wrap; justify-content: center; }
}
