/* Wren Demo Controls Banner */
#wren-demo-banner {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  font-family: system-ui, Arial, sans-serif;
  font-size: 13px;
}

#wren-demo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10,15,30,0.92);
  border: 1px solid rgba(74,154,191,0.35);
  border-radius: 100px;
  padding: 8px 14px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  user-select: none;
}

#wren-demo-badge:hover {
  border-color: rgba(74,154,191,0.6);
  color: #e8edf5;
}

#wren-demo-badge .badge-bird {
  font-size: 16px;
  line-height: 1;
}

#wren-demo-panel {
  display: none;
  background: rgba(10,15,30,0.96);
  border: 1px solid rgba(74,154,191,0.3);
  border-radius: 16px;
  padding: 20px;
  min-width: 280px;
  max-width: 320px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

#wren-demo-panel.open {
  display: block;
}

.wdb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wdb-title {
  font-size: 13px;
  font-weight: 700;
  color: #e8edf5;
  display: flex;
  align-items: center;
  gap: 7px;
}

.wdb-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.wdb-close:hover {
  background: rgba(255,255,255,0.12);
  color: #e8edf5;
}

.wdb-tiers {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.wdb-tier-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(74,154,191,0.25);
  background: rgba(74,154,191,0.06);
  color: #8896a8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  line-height: 1.3;
}

.wdb-tier-btn:hover {
  border-color: rgba(74,154,191,0.45);
  color: #c8d8e8;
}

.wdb-tier-btn.active {
  background: rgba(74,154,191,0.18);
  border-color: #4a9abf;
  color: #e8edf5;
}

.wdb-tier-btn .tier-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.wdb-tier-btn .tier-name {
  display: block;
  font-size: 10px;
}

.wdb-speed {
  font-size: 11px;
  color: #64748b;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.wdb-speed strong {
  color: #4a9abf;
}

.wdb-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wdb-learn {
  font-size: 11px;
  color: #e07820;
  text-decoration: none;
  font-weight: 600;
}

.wdb-learn:hover {
  color: #f09040;
}
